mgetgroups: do not write bytes beyond end of malloc'd buffer
[gnulib.git] / ChangeLog
1 2009-12-10  Jim Meyering  <meyering@redhat.com>
2
3         mgetgroups: do not write bytes beyond end of malloc'd buffer
4         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5         username, we call getgroups with a one-element-shorter buffer,
6         but still told it the length was original, max_n_groups.
7
8 2009-12-09  Eric Blake  <ebb9@byu.net>
9
10         cloexec: relax license
11         * modules/cloexec (Maintainer): Add myself.
12         (License): Use LGPL, not GPL.
13
14         link-warning: optimize generation
15         * modules/link-warning (Makefile.am): Reduce process usage.
16
17 2009-12-09  Bruno Haible  <bruno@clisp.org>
18
19         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20         workaround was added on 2009-11-17.
21
22 2009-12-09  Jim Meyering  <meyering@redhat.com>
23             Bruno Haible  <bruno@clisp.org>
24
25         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26         * modules/link-warning (Makefile.am): Make the comment-removing sed
27         command more robust in the face of bootstrap-prepended comment lines.
28
29 2009-12-09  Bruno Haible  <bruno@clisp.org>
30
31         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32         most one group.
33
34 2009-12-09  Simon Josefsson <simon@josefsson.org>
35             Bruno Haible  <bruno@clisp.org>
36
37         * build-aux/link-warning.h: Add copyright notice.
38         * modules/link-warning (Makefile.am): Generate link-warning.h from
39         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40         * NEWS: Mention change in link-warning module.
41         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
44         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
45         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
46         * modules/math (Makefile.am): Add dependency to math.h.
47         * modules/search (Makefile.am): Add dependency to search.h.
48         * modules/signal (Makefile.am): Add dependency to signal.h.
49         * modules/spawn (Makefile.am): Add dependency to spawn.h.
50         * modules/stdio (Makefile.am): Add dependency to stdio.h.
51         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
52         * modules/string (Makefile.am): Add dependency to string.h.
53         * modules/strings (Makefile.am): Add dependency to strings.h.
54         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
55         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
56         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
57         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
58         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
59         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
60         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61         * modules/unistd (Makefile.am): Add dependency to unistd.h.
62         * modules/wchar (Makefile.am): Add dependency to wchar.h.
63
64 2009-12-09  Bruno Haible  <bruno@clisp.org>
65
66         fchdir: Optimize away rpl_fstat when possible.
67         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
68         REPLACE_OPEN_DIRECTORY.
69         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
70
71 2009-12-09  Bruno Haible  <bruno@clisp.org>
72
73         * lib/fchdir.c: Update comment.
74
75 2009-12-09  Bruno Haible  <bruno@clisp.org>
76
77         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
78
79 2009-12-08  Eric Blake  <ebb9@byu.net>
80
81         fchdir: avoid memory leak on re-registration.
82         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
83
84 2009-12-08  Jim Meyering  <meyering@redhat.com>
85
86         init.sh: avoid Solaris 10 /bin/sh portability problem
87         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
88         sourced script:
89           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
90           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
91           bar
92         tests/init.sh relied on that, accepting a --set-path=DIR argument,
93         and two tests used that idiom.
94         * tests/init.sh: Update suggested usage comments.
95         (path_prepend_): New function, to be used in place
96         of the --src-path=DIR option.
97         (setup_): Move PATH-prepending code into path_prepend_.
98         * tests/test-pread.sh: Adapt to new usage.
99         * tests/test-xalloc-die.sh: Likewise.
100
101 2009-12-08  Simon Josefsson  <simon@josefsson.org>
102
103         * doc/gnulib.texi (Glibc pty.h): Add.
104         * doc/glibc-functions/forkpty.texi: Add.
105         * doc/glibc-functions/openpty.texi: Add.
106         Suggested by Bruno Haible.
107
108 2009-12-08  Eric Blake  <ebb9@byu.net>
109
110         fchdir: fix logic bugs
111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
112         * tests/test-fchdir.c (main): Enhance test.
113         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
114         is in use.
115
116         dup2: fix logic bugs
117         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
118         REPLACE_DUP2 to decide when rpl_dup2 is needed.
119         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
120         exists.
121         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
122
123 2009-12-07  Eric Blake  <ebb9@byu.net>
124
125         unlink: fix m4 detection
126         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
127
128         unistd-safer: add unit test
129         * modules/unistd-safer-tests: New file.
130         * tests/test-dup-safer.c: Likewise.
131         * tests/test-cloexec.c (setmode): Avoid compiler warning.
132         * tests/test-dup2.c (setmode): Likewise.
133         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
134
135         cloexec: preserve text vs. binary across dup_cloexec
136         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
137         mode.
138         * modules/dup2-tests (Depends-on): Add binary-io.
139         * modules/cloexec-tests (Depends-on): Likewise.
140         * tests/test-dup2.c (setmode, is_mode): New helpers.
141         (main): Add tests that translation mode is preserved.
142         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
143         Reported by Bruno Haible.
144
145         mgetgroups: reduce duplicate listings
146         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
147         resulting array.
148         * tests/test-chown.h (test_chown): Simplify client.
149         * tests/test-lchown.h (test_lchown): Likewise.
150
151 2009-12-06  Bruno Haible  <bruno@clisp.org>
152
153         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
154         value.
155
156 2009-12-06  Bruno Haible  <bruno@clisp.org>
157
158         * lib/progname.c: Include stdio.h, stdlib.h.
159         (set_program_name): Reject a NULL argument.
160
161 2009-12-05  Eric Blake  <ebb9@byu.net>
162
163         pipe2-safer: new module
164         * modules/pipe2-safer: New file.
165         * lib/unistd-safer.h (pipe2_safer): New prototype.
166         * lib/unistd--.h (pipe2): New wrapper.
167         * lib/pipe-safer.c (pipe2_safer): New function.
168         * modules/pipe (Depends-on): Add pipe2-safer.
169         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
170
171         stdlib-safer: preserve cloexec flag for mkostemp[s]
172         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
173         fd_safer_flag.
174
175         unistd-safer: allow preservation of cloexec status via flag
176         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
177         prototypes.
178         * lib/dup-safer.c (dup_safer_flag): New function.
179         * lib/fd-safer.c (fd_safer_flag): Likewise.
180         * modules/cloexec (configure.ac): Set witness.
181
182         test-dup2: enhance test
183         * modules/dup2-tests (Depends-on): Add cloexec.
184         * tests/test-dup2.c (main): Enhance test.
185
186         cloexec: add dup_cloexec
187         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
188         header and comments.
189         * lib/cloexec.c (set_cloexec_flag): Add comments.
190         (dup_cloexec): New function, with mingw implementation borrowed
191         from...
192         * lib/w32spawn.h (dup_noinherit): ...here.
193         * modules/execute (Depends-on): Add cloexec.
194         * modules/pipe (Depends-on): Likewise.
195         * modules/cloexec (Depends-on): Add dup2.
196         * modules/cloexec-tests (Files): New file.
197         * tests/test-cloexec.c: Likewise.
198
199         test-xalloc-die: fix test for mingw
200         * modules/xalloc-die-tests (Files): Add tests/init.sh.
201         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
202         directory and .exe suffix off argv[0] output.
203
204         test-fseeko: fix test for mingw
205         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
206         than undefining fseek, so test will pass on mingw.
207
208 2009-12-05  Bruno Haible  <bruno@clisp.org>
209
210         * lib/progname.h (set_program_name): Clarify specification.
211         * lib/progname.c (set_program_name): Likewise.
212         Reported by Jim Meyering.
213
214 2009-12-05  Jim Meyering  <meyering@redhat.com>
215
216         maint.mk: backslash-escape parens in default regexp
217         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
218         backslash-escape the literal parentheses.
219
220         maint.mk: news-date-check: use grep -E
221         * top/maint.mk (today): Define a Make variable, not a...
222         (news-date-check): ...shell variable.
223         (news-date-regexp): Use the Make variable.
224         Use grep's -E option.  Change the failing diagnostic to mention
225         the variable, $(news-date-regexp).
226
227 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
228
229         maintainer-makefile: allow customization of NEWS entry format
230         * top/maint.mk (news-date-regexp): New overridable variable.
231         (news-date-check): Use it.
232
233 2009-12-04  Eric Blake  <ebb9@byu.net>
234
235         mgetgroups: add xgetgroups, and avoid ENOSYS failures
236         * lib/mgetgroups.h (xgetgroups): New prototype.
237         * lib/mgetgroups.c (xgetgroups): New wrapper.
238         (mgetgroups): Handle ENOSYS.
239         * modules/mgetgroups (Depends-on): Add realloc.
240         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
241
242         mgetgroups: avoid argument promotion issues with -1
243         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
244         for invalid gid_t.
245         * tests/test-chown.h (getegid, test_chown): Likewise.
246         * tests/test-lchown.h (getegid, test_lchown): Likewise.
247
248 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
249
250         exclude: Fix header file problems.
251         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
252
253 2009-12-01  Jim Meyering  <meyering@redhat.com>
254
255         fts: fts_open: do not let an empty string cause immediate failure
256         This is required in support of GNU rm, for which the command
257         "rm A '' B" must process and remove both A and B, in spite of
258         the empty string argument.
259         * lib/fts.c (fts_open): Do not let the presence of an empty string
260         cause fts_open to fail immediately.  Most fts-using tools must be
261         able to process all arguments, in order, and can be expected to
262         diagnose such arguments themselves.
263
264 2009-11-30  Eric Blake  <ebb9@byu.net>
265
266         utimens: fix compilation error
267         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
268         Declare variable at right scope.
269
270 2009-11-29  Jim Meyering  <meyering@redhat.com>
271
272         bootstrap: handle perl-5.11's changed --version output
273         * build-aux/bootstrap (get_version): Handle perl separately,
274         since perl-5.11's --version output is different.
275
276 2009-11-28  Jim Meyering  <meyering@redhat.com>
277
278         userspec: depend on the inttostr module, too
279         * modules/userspec (Depends-on): Add inttostr.
280
281         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
282         * lib/userspec.c (parse_with_separator): Do not accept a user ID
283         number of MAXUID when it evaluates to (uid_t) -1.
284         Likewise for group ID.  Reported by Matt McCutchen in
285         <http://savannah.gnu.org/bugs/?28113>
286
287         userspec: reformat to use spaces, not TABs
288         * lib/userspec.c: Expand TABs to spaces.
289         Add Emacs' "indent-tabs-mode: nil" hint.
290
291 2009-11-27  Eric Blake  <ebb9@byu.net>
292
293         getopt-gnu: flush out another BSD bug
294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
295         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
296         flush out BSD bug.
297         * tests/test-getopt.h (test_getopt): End lists with NULL.
298         * tests/test-getopt_long.h (test_getopt_long): Likewise.
299         (test_getopt_long_posix): Enhance test.
300         * modules/getopt-posix-tests (Depends-on): Add stdbool.
301         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
302         getopt-gnu.
303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
304         Likewise.
305
306 2009-11-27  Simon Josefsson  <simon@josefsson.org>
307
308         * modules/idpriv-droptemp-tests (Notice): Fix text.
309
310 2009-11-27  Jim Meyering  <meyering@redhat.com>
311
312         test-xalloc-die: avoid spurious failure due to libtool argv difference
313         In a libtool-enabled project, this test would fail due to a difference
314         in the emitted program name, e.g.,
315         -test-xalloc-die: memory exhausted
316         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
317         Use program to avoid that.
318         * modules/xalloc-die-tests (Depends-on): Add progname.
319         * tests/test-xalloc-die.c: Include progname.h".
320         (program_name): Remove decl.
321         (main): Call set_program_name.
322         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
323
324 2009-11-26  Richard Jones  <rjones@redhat.com>
325
326         w32sock: leave win32 error in place.
327         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
328
329 2009-11-26  Eric Blake  <ebb9@byu.net>
330
331         init.sh: suggest to use skip_ and fail_ functions in comments
332         * tests/init.sh: Add a sentence.
333
334 2009-11-25  Bruno Haible  <bruno@clisp.org>
335
336         init.sh: add documentation in comments
337         * tests/init.sh: Add some developer and user documentation.
338
339 2009-11-26  Jim Meyering  <meyering@redhat.com>
340
341         init.sh: accommodate even those who specify bogus srcdir manually
342         * tests/init.sh: Normally, srcdir is guaranteed by automake and
343         configure-time tests to be sanitized, so that there is no need to
344         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
345         (with no double quotes) suffices.  However, since tests may be
346         invoked manually, and since you may explicitly set srcdir to the
347         name of a directory containing spaces, do quote its uses here.
348         * tests/test-pread.sh: Likewise.
349         Suggested by Bruno Haible.
350
351         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
352         * tests/test-pread.sh: Write no data into the pipe, because
353         test-pread actually reads none.  This avoids a diagnostic,
354         "bash: echo: write error: Broken pipe", that arises in the unusual
355         event something is ignoring SIGPIPE, and might be interpreted
356         as some sort of failure.  Reported by Bruno Haible.
357
358 2009-11-25  Jim Meyering  <meyering@redhat.com>
359
360         test-pread: cover failure with ESPIPE and EINVAL
361         * tests/test-pread.c (main): Test for failure, too.
362         * tests/test-pread.sh: Invoke with stdin on a pipe.
363         Suggested by Eric Blake.
364
365         pread: improvement and fix
366         * modules/pread (Depends-on): Depend on lseek, for portability to
367         e.g., mingw.  Suggested by Eric Blake.
368         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
369
370         unistd.in.h: correct declaration of pread
371         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
372         Reported by Richard W.M. Jones.
373
374         test-pread.sh: distribute the test script
375         * modules/pread-tests (Files): Include test-pread.sh.
376
377         test-pread.sh: clean up
378         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
379         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
380         That is unnecessary, since it's always ".".
381         Suggestion from Eric Blake.
382
383         test-pread.sh: make executable
384         * tests/test-pread.sh: Set executable bit.
385         Reported by Eric Blake.
386
387         correct typo in test-pread.sh
388         * tests/test-pread.sh: Add #! line.
389
390         test pread
391         * tests/test-pread.c: New file.
392         * tests/test-pread.sh: Likewise.
393         * modules/pread-tests: Likewise.
394
395         pread: new module
396         * modules/pread: New file.
397         * lib/unistd.in.h (pread): Define/declare.
398         * lib/pread.c (pread): New file.
399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
400         * modules/unistd (Makefile.am): Substitute witnesses.
401         * doc/posix-functions/pread.texi (pread): Update.
402         * MODULES.html.sh: Add pread.
403
404 2009-11-25  Jim Meyering  <meyering@redhat.com>
405
406         tests/init.sh: new file to be used via most *.sh tests
407         * tests/init.sh: New file.
408
409 2009-11-25  Eric Blake  <ebb9@byu.net>
410
411         utimens: work around older Linux failure with symlinks
412         * lib/utimens.c (lutimensat_works_really): New variable.
413         (fdutimens, lutimens): Use it to manage kernels that support
414         nanosecond times on files, but not on symlinks.
415         Reported by OndÅ™ej Vašík.
416
417         utimes: fix configure grammar
418         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
419
420 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
421
422         regex: Fix fastmap for multibyte character ranges.
423         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
424         characters when a multibyte character range is included.
425
426 2009-11-22  Andy Wingo  <wingo@pobox.com>
427
428         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
429         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
430
431 2009-11-24  Bruno Haible  <bruno@clisp.org>
432
433         doc: Most *_l functions exist in MacOS X 10.5.
434         * doc/posix-functions/duplocale.texi: Update platforms list.
435         * doc/posix-functions/freelocale.texi: Likewise.
436         * doc/posix-functions/newlocale.texi: Likewise.
437         * doc/posix-functions/uselocale.texi: Likewise.
438         * doc/posix-functions/isalnum_l.texi: Likewise.
439         * doc/posix-functions/isalpha_l.texi: Likewise.
440         * doc/posix-functions/isblank_l.texi: Likewise.
441         * doc/posix-functions/iscntrl_l.texi: Likewise.
442         * doc/posix-functions/isdigit_l.texi: Likewise.
443         * doc/posix-functions/isgraph_l.texi: Likewise.
444         * doc/posix-functions/islower_l.texi: Likewise.
445         * doc/posix-functions/isprint_l.texi: Likewise.
446         * doc/posix-functions/ispunct_l.texi: Likewise.
447         * doc/posix-functions/isspace_l.texi: Likewise.
448         * doc/posix-functions/isupper_l.texi: Likewise.
449         * doc/posix-functions/iswalnum_l.texi: Likewise.
450         * doc/posix-functions/iswalpha_l.texi: Likewise.
451         * doc/posix-functions/iswblank_l.texi: Likewise.
452         * doc/posix-functions/iswcntrl_l.texi: Likewise.
453         * doc/posix-functions/iswctype_l.texi: Likewise.
454         * doc/posix-functions/iswdigit_l.texi: Likewise.
455         * doc/posix-functions/iswgraph_l.texi: Likewise.
456         * doc/posix-functions/iswlower_l.texi: Likewise.
457         * doc/posix-functions/iswprint_l.texi: Likewise.
458         * doc/posix-functions/iswpunct_l.texi: Likewise.
459         * doc/posix-functions/iswspace_l.texi: Likewise.
460         * doc/posix-functions/iswupper_l.texi: Likewise.
461         * doc/posix-functions/iswxdigit_l.texi: Likewise.
462         * doc/posix-functions/isxdigit_l.texi: Likewise.
463         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
464         * doc/posix-functions/strcasecmp_l.texi: Likewise.
465         * doc/posix-functions/strcoll_l.texi: Likewise.
466         * doc/posix-functions/strfmon_l.texi: Likewise.
467         * doc/posix-functions/strftime_l.texi: Likewise.
468         * doc/posix-functions/strncasecmp_l.texi: Likewise.
469         * doc/posix-functions/strxfrm_l.texi: Likewise.
470         * doc/posix-functions/tolower_l.texi: Likewise.
471         * doc/posix-functions/toupper_l.texi: Likewise.
472         * doc/posix-functions/towctrans_l.texi: Likewise.
473         * doc/posix-functions/towlower_l.texi: Likewise.
474         * doc/posix-functions/towupper_l.texi: Likewise.
475         * doc/posix-functions/wcscoll_l.texi: Likewise.
476         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
477         * doc/posix-functions/wctrans_l.texi: Likewise.
478         * doc/posix-functions/wctype_l.texi: Likewise.
479         * doc/glibc-functions/strptime_l.texi: Likewise.
480         * doc/glibc-functions/strtod_l.texi: Likewise.
481         * doc/glibc-functions/strtof_l.texi: Likewise.
482         * doc/glibc-functions/strtol_l.texi: Likewise.
483         * doc/glibc-functions/strtold_l.texi: Likewise.
484         * doc/glibc-functions/strtoll_l.texi: Likewise.
485         * doc/glibc-functions/strtoul_l.texi: Likewise.
486         * doc/glibc-functions/strtoull_l.texi: Likewise.
487         * doc/glibc-functions/wcsftime_l.texi: Likewise.
488         * doc/glibc-functions/wcstod_l.texi: Likewise.
489         * doc/glibc-functions/wcstof_l.texi: Likewise.
490         * doc/glibc-functions/wcstol_l.texi: Likewise.
491         * doc/glibc-functions/wcstold_l.texi: Likewise.
492         * doc/glibc-functions/wcstoll_l.texi: Likewise.
493         * doc/glibc-functions/wcstoul_l.texi: Likewise.
494         * doc/glibc-functions/wcstoull_l.texi: Likewise.
495
496 2009-11-24  Bruno Haible  <bruno@clisp.org>
497
498         duplocale: Fix logic bug.
499         * lib/duplocale.c: Don't include <langinfo.h>.
500         (_NL_LOCALE_NAME): Remove macro.
501         (rpl_duplocale): Use setlocale instead of nl_langinfo.
502         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
503
504 2009-11-23  Jim Meyering  <meyering@redhat.com>
505
506         test-update-copyright: don't hard-code /usr/bin/perl
507         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
508         perl to print the current year.  Gilles Espinasse reported that
509         the replaced use of perl was hard-coded as /usr/bin/perl.
510
511 2009-11-23  Bruno Haible  <bruno@clisp.org>
512
513         duplocale: Add support for glibc 2.3.x.
514         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
515
516 2009-11-22  Bruno Haible  <bruno@clisp.org>
517
518         vasnprintf: Tiny optimization.
519         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
520         MacOS X.
521
522 2009-11-22  Bruno Haible  <bruno@clisp.org>
523
524         Tests for module 'duplocale'.
525         * modules/duplocale-tests: New file.
526         * tests/test-duplocale.c: New file.
527
528         New module 'duplocale'.
529         * m4/duplocale.m4: New file.
530         * lib/locale.in.h (duplocale): New declaration.
531         * lib/duplocale.c: New file.
532         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
533         gl_LOCALE_H_DEFAULTS): New macros.
534         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
535         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
536         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
537         REPLACE_DUPLOCALE.
538         * modules/duplocale: New file.
539         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
540
541 2009-11-22  Bruno Haible  <bruno@clisp.org>
542
543         * modules/locale-tests (configure.ac): Test for newlocale function.
544         * tests/test-locale.c: When the system has extended locale functions,
545         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
546
547         locale: Make locale_t available when possible.
548         * lib/locale.in.h: Include <xlocale.h> when it exists.
549         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
550         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
551         * modules/locale (Depends-on): Add extensions.
552         (Makefile.am): Also substitute HAVE_XLOCALE_H.
553         * doc/posix-headers/locale.texi: Document the problem with locale_t.
554
555 2009-11-22  Bruno Haible  <bruno@clisp.org>
556
557         Add comments.
558         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
559         invocation.
560         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
561         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
563
564 2009-11-22  Bruno Haible  <bruno@clisp.org>
565
566         error: account for the possibility of freopen (stdout).
567         * lib/error.c: Include <unistd.h>.
568         (flush_stdout): New function, extracted from error and error_at_line.
569         Determine stdout's fd dynamically.
570         (error, error_at_line): Invoke flush_stdout.
571         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
572         * modules/error (Depends-on): Add unistd.
573
574 2009-11-22  Bruno Haible  <bruno@clisp.org>
575
576         diffseq: Add comment.
577         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
578
579 2009-11-22  Jim Meyering  <meyering@redhat.com>
580
581         c-stack: avoid defining an unused static function
582         * lib/c-stack.c (find_stack_direction): Do not define this function
583         when it will not be used.
584
585         diffseq: avoid spurious gcc warnings
586         * lib/diffseq.h (IF_LINT2): Define.
587         (compareseq): Use it to initialize two members of "part".
588         This avoids two used-uninitialized warnings.
589
590 2009-11-21  Jim Meyering  <meyering@redhat.com>
591
592         c-stack: avoid "ignoring return value of `write'" warning
593         * lib/c-stack.c: Include "ignore-value.h".
594         (die): Explicitly ignore each write return value.
595         * modules/c-stack (Depends-on): Add ignore-value.
596
597 2009-11-21  Bruno Haible  <bruno@clisp.org>
598
599         diffseq: reduce scope of variable 'best'.
600         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
601         variable, earlier used for two different purposes.
602
603 2009-11-21  Jim Meyering  <meyering@redhat.com>
604
605         diffseq: remove useless assignment to "best"
606         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
607         assignment.  At that point "best" is already guaranteed to be zero.
608
609 2009-11-20  Eric Blake  <ebb9@byu.net>
610
611         build: mention ftp redirector in release announcements
612         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
613         values that used to come from cfg.mk; mention FTP redirect URL.
614         * build-aux/announce-gen: Mention the mirror list.
615         Suggested by Karl Berry.
616
617         nanosleep: improve port to mingw
618         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
620         LIB_NANOSLEEP, but only when needed.
621         * modules/select (Link): Document LIBSOCKET.
622         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
623         enough.
624
625         nanosleep: work around cygwin bug
626         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
627         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
628         bug.
629         (getnow): Delete, not needed.
630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
631         LIB_CLOCK_GETTIME.
632         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
633         clock-time, gettime.
634         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
635         bug.
636         * modules/nanosleep-tests: New test.
637         * tests/test-nanosleep.c: New file.
638
639         sleep: work around cygwin bug
640         * lib/sleep.c (rpl_sleep): Work around the bug.
641         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
642         (gl_PREREQ_SLEEP): Delete unused macro.
643         * modules/sleep (Depends-on): Add verify.
644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
645         * modules/unistd (Makefile.am): Substitute witness.
646         * lib/unistd.in.h (sleep): Update prototype.
647         * doc/posix-functions/sleep.texi (sleep): Document the bug.
648         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
649         * modules/sleep-tests (Depends-on): Check for alarm.
650
651 2009-11-20  Jim Meyering  <meyering@redhat.com>
652
653         maint.mk: improve sc_prohibit_magic_number_exit
654         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
655         so it does not match uses like System.exit(1).
656         Add comments showing how to correct all offenders.
657
658 2009-11-19  Eric Blake  <ebb9@byu.net>
659
660         xalloc-die-tests: add missing library
661         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
662
663         test-xvasprintf: silence compiler warnings
664         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
665         empty string from gcc.
666
667 2009-11-19  Jim Meyering  <meyering@redhat.com>
668
669         xfreopen: new module, from coreutils
670         * modules/xfreopen: New module.
671         * lib/xfreopen.c: New file.
672         * lib/xfreopen.h: New file.
673         * MODULES.html.sh (File stream based Input/Output"): Add it.
674
675 2009-11-19  Eric Blake  <ebb9@byu.net>
676
677         manywarnings: depend on warnings
678         * modules/manywarnings (Depends-on): Add warnings.
679
680         build: avoid compiler warnings
681         * lib/select.c (rpl_select): Delete unused variable.
682         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
683
684 2009-11-18  Eric Blake  <ebb9@byu.net>
685
686         tests: avoid false negative with --with-packager
687         * tests/test-version-etc.sh: Discard packager information.
688         * tests/test-argp-version-etc-1.sh: Likewise.
689         Reported by Mike Frysinger.
690
691         utimens: fix regression on Solaris
692         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
693         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
694         can only change fd timestamps via futimesat.  Instead, use an
695         additional witness macro to avoid BSD bug.
696         Reported by Jim Meyering.
697
698 2009-11-17  Eric Blake  <ebb9@byu.net>
699
700         usleep: use it to simplify tests
701         * modules/stat-time-tests (Depends-on): Add usleep.
702         (configure.ac): Drop usleep check.
703         * modules/chown-tests (Depends-on, configure.ac): Likewise.
704         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
705         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
706         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
707         * modules/openat-tests (Depends-on, configure.ac): Likewise.
708         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
709         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
710         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
711         Likewise.
712         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
713         * tests/test-lchown.h (nap): Likewise.
714         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
715         * tests/test-stat-time.c (nap): Likewise.
716         * tests/test-utimens-common.h (nap): Update comments.
717
718         usleep: new module
719         * modules/usleep: New file.
720         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
721         * lib/usleep.c (usleep): Likewise.
722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
723         * modules/unistd (Makefile.am): Substitute witnesses.
724         * lib/unistd.in.h (usleep): Add declaration.
725         * doc/pastposix-functions/usleep.texi (usleep): Document this.
726         * MODULES.html.sh (Date and time): Likewise.
727         * modules/usleep-tests (Depends-on): New test.
728         * tests/test-usleep.c: New file.
729
730         chown: work around OpenBSD bug
731         * lib/chown.c (rpl_chown): Work around the bug.
732         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
733         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
734         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
735         * modules/chown (Depends-on): Add stdbool.
736         * modules/lchown (Depends-on): Likewise.
737         * doc/posix-functions/chown.texi (chown): Document the bug.
738         * doc/posix-functions/lchown.texi (lchown): Likewise.
739         * tests/test-lchown.h (test_chown): Relax test.
740
741         mkstemp: avoid conflict with C++ keyword template
742         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
743         * lib/mkostemp.c (mkostemp): Likewise.
744         * lib/mkostemps.c (mkostemps): Likewise.
745         * lib/mkstemp.c (mkstemp): Likewise.
746         * lib/mkstemps.c (mkstemps): Likewise.
747
748         xalloc-die-tests: optimize
749         * tests/test-xalloc-die.sh: Reduce number of processes.
750
751 2009-11-17  Simon Josefsson  <simon@josefsson.org>
752
753         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
754         patch from ludo@gnu.org (Ludovic Courtès).
755
756 2009-11-17  Jim Meyering  <meyering@redhat.com>
757
758         version-etc: use proper license string
759         * modules/version-etc (License): Use LGPL, not LGPLv3+.
760         * modules/version-etc-fsf: Likewise.
761
762 2009-11-17  Simon Josefsson  <simon@josefsson.org>
763
764         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
765         printed to stdout.  Deal with EOL differences.
766
767 2009-11-17  Eric Blake  <ebb9@byu.net>
768
769         unsetenv: work around Solaris bug
770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
771         * lib/unsetenv.c (rpl_unsetenv): Work around it.
772         Reported by Jim Meyering.
773
774         vasnprintf: avoid compiler warnings
775         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
776         variables.
777         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
778
779 2009-11-17  Simon Josefsson  <simon@josefsson.org>
780
781         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
782         settings since xalloc-die is no longer the self test,
783         xalloc-die.sh is.
784
785 2009-11-17  Jim Meyering  <meyering@redhat.com>
786
787         test-xalloc-die.sh: make the code agree with the commit log
788         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
789         at the end, just in case you happen to have a test-xalloc-die
790         program in some other PATH directory.
791
792         test-xalloc-die.sh: fix a portability bug
793         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
794         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
795         Otherwise, argv[0] (as often seen in diagnostics) would be too
796         system-dependent, sometimes with, and sometimes without the leading "./".
797
798         version-etc-fsf: relax license to LGPLv3+
799         * modules/version-etc-fsf (License): Relax license.
800
801 2009-11-16  Eric Blake  <ebb9@byu.net>
802
803         xalloc-die-tests: avoid printing null pointer
804         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
805         shell script.
806         * tests/test-xalloc-die.c (program_name): Declare.
807         * tests/test-xalloc-die.sh (tmpfiles): New file.
808
809         setenv, unsetenv: work around various bugs
810         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
811         (setenv) [HAVE_SETENV]: Work around bugs.
812         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
814         for bugs.
815         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
816         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
818         * modules/stdlib (Makefile.am): Update substitutions.
819         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
820         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
821         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
822         * modules/setenv-tests: New test.
823         * modules/unsetenv-tests: Likewise.
824         * tests/test-setenv.c: New file.
825         * tests/test-unsetenv.c: Likewise.
826
827 2009-11-16  Jim Meyering  <meyering@redhat.com>
828
829         version-etc: relax license to LGPLv3+
830         * modules/version-etc (License): Relax license.
831
832         better AC_REQUIRE expanded-before-required-warning avoidance
833         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
834         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
835         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
836         which is no longer needed.
837
838 2009-11-16  Eric Blake  <ebb9@byu.net>
839
840         test-freading: clean up temporary file
841         * tests/test-freading.c (main): Remove file on success, and use
842         ASSERT more liberally.
843         Reported by Jim Meyering.
844
845 2009-11-16  Jim Meyering  <meyering@redhat.com>
846
847         avoid new AC_REQUIRE expanded-before-required warnings
848         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
849         merely using it.
850         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
851         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
852
853 2009-11-15  Simon Josefsson  <simon@josefsson.org>
854
855         * tests/test-xalloc-die.c: New file.
856         * modules/xalloc-die-tests: New file.
857         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
858         XFAIL_TESTS so it can be appended by modules.
859
860 2009-11-15  Simon Josefsson  <simon@josefsson.org>
861
862         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
863         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
864
865 2009-11-14  Eric Blake  <ebb9@byu.net>
866
867         fnmatch: avoid compiler warning
868         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
869         to silence compiler warning about mismatch signedness in ?:.
870         Reported by Robert Millan.
871
872         intprops: add double-inclusion guard
873         * lib/intprops.h: Allow idempotent includes.
874         Suggested by Bruce Korb.
875
876         openat: detect Solaris fchownat bug
877         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
878         penalizing glibc chownat when only lchownat is broken.
879         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
880         trailing slash bugs.
881         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
882         * modules/openat-tests (Files): Include more files.
883         (Depends-on): Add mgetgroups, sleep, stat-time.
884         (configure.ac): Add additional checks.
885         (Makefile.am): Build new test.
886         * tests/test-fchownat.c: New file.
887
888         lchown: detect Solaris and FreeBSD bug
889         * lib/lchown.c (rpl_lchown): Work around bug.
890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
892         * modules/unistd (Makefile.am): Populate it.
893         * lib/unistd.in.h (lchown): Update declaration.
894         * doc/posix-functions/lchown.texi (lchown): Document the bug.
895         * modules/lchown-tests: New file.
896         * tests/test-lchown.h (test_lchown): Likewise.
897         * tests/test-lchown.c (main): Likewise.
898
899         chown: detect Solaris and FreeBSD bug
900         * lib/chown.c (rpl_chown): Work around bug.
901         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
902         (gl_PREREQ_CHOWN): Delete.
903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
904         * modules/unistd (Makefile.am): Populate it.
905         * lib/unistd.in.h (chown): Update declaration.
906         * lib/lchown.c (chown): Update client.
907         * modules/lchown (Depends-on): Add lstat.
908         * doc/posix-functions/chown.texi (chown): Document the bug.
909         * doc/posix-functions/getgroups.texi (getgroups): Document
910         getgroups pitfall.
911         * modules/chown-tests: New file.
912         * tests/test-chown.h (test_chown): Likewise.
913         * tests/test-chown.c (main): Likewise.
914
915 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
916
917         gnulib-tool: correctly detect absence of m4 directories
918         * gnulib-tool: Avoid extra newline on data passed to wc -l.
919
920 2009-11-14  Jim Meyering  <meyering@redhat.com>
921
922         maint.mk: Prohibit inclusion of "xalloc.h" without use.
923         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
924
925 2009-11-14  John W. Eaton  <jwe@gnu.org>
926
927         strftime.h: wrap funtion declaration in extern "C" block
928         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
929
930 2009-11-13  Eric Blake  <ebb9@byu.net>
931
932         getgroups: avoid compiler warning
933         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
934
935         getgroups: work around FreeBSD bug
936         * lib/getgroups.c (rpl_getgroups): Work around the bug.
937         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
938         * doc/posix-functions/getgroups.texi (getgroups): Document it.
939         * tests/test-getgroups.c (main): Fix buffer overrun.
940
941         getgroups: avoid compilation failure
942         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
943         * modules/getgroups (Depends-on): Add stdint.
944
945 2009-11-13  Jim Meyering  <meyering@redhat.com>
946
947         test-getgroups: avoid compilation failure
948         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
949
950 2009-11-13  Eric Blake  <ebb9@byu.net>
951
952         mgetgroups: new module, taken from coreutils
953         * modules/mgetgroups: New file.
954         * lib/mgetgroups.h: Likewise.
955         * lib/mgetgroups.c (mgetgroups): Likewise.
956         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
957         * MODULES.html.sh (Users and groups): Mention it.
958
959         getgroups: don't expose GETGROUPS_T to user
960         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
961         an element at a time if GETGROUPS_T is wrong size.
962         * lib/getugroups.h (getugroups): Change signature.
963         * lib/unistd.in.h (getgroups): Likewise.
964         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
965         signature needs fixing.
966         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
967         AC_TYPE_GETGROUPS.
968         * modules/group-member (Depends-on): Add getgroups.
969         * lib/group-member.c (group_info, get_group_info): Use gid_t.
970         (group_member): Rely on getgroups replacement.
971         * lib/getugroups.c (getugroups): Use gid_t.
972         * tests/test-getgroups.c (main): Likewise.
973         * NEWS: Mention the signature change.
974         * doc/posix-functions/getgroups.texi (getgroups): Mention the
975         problem with signature.
976         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
977         GETGROUPS_T is still useful for setgroups.
978
979         getgroups, getugroups: provide stubs for mingw
980         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
981         * lib/getugroups.c (getugroups): Likewise.
982         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
983         function.  Modernize replacement scheme.
984         (gl_PREREQ_GETGROUPS): Delete.
985         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
986         * modules/getgroups (configure.ac): Declare witness.
987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
988         * modules/unistd (Depends-on): Substitute witness.
989         * lib/unistd.in.h (getgroups): Declare replacement.
990
991         getgroups: avoid calling exit
992         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
993         drop xalloc.
994         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
995         dependencies.
996         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
997         exiting, in the rare case of malloc failure.
998
999         getgroups: fix logic error
1000         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
1001         has more than 20 groups.
1002         * modules/getgroups-tests: New test.
1003         * tests/test-getgroups.c: New file.
1004
1005 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1006
1007         * tests/test-base64.c: Improve.
1008
1009 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1010
1011         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
1012         Blake <ebb9@byu.net>.
1013
1014 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1015
1016         * tests/test-xvasprintf.c: Add %s%s related checks.
1017
1018 2009-11-12  Eric Blake  <ebb9@byu.net>
1019
1020         version-etc: match standards.texi style
1021         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
1022         and use <> only for URLs.
1023
1024 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
1025
1026         fts: do not fail on a submount during traversal
1027         * lib/fts.c (fts_build): Read the stat info again after opening
1028         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
1029         Original report at http://bugzilla.redhat.com/501848.
1030
1031 2009-11-12  Jim Meyering  <meyering@redhat.com>
1032
1033         bootstrap: sync from coreutils
1034         * build-aux/bootstrap (bootstrap_epilogue): New function.
1035         Use git_modules_config in one more place.  This make bootstrap's
1036         --gnulib-srcdir option more useful for testing.
1037
1038         bootstrap: generalize autoheader check
1039         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
1040         AC_CONFIG_HEADERS.
1041
1042 2009-11-11  Eric Blake  <ebb9@byu.net>
1043
1044         mkfifoat: use new modules for Solaris and BSD bugs
1045         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
1046         * lib/mkfifoat.c (mknodat): Split...
1047         * lib/mknodat.c (mknodat): ...into new file.
1048         * modules/mkfifoat (Files): Ship new file.
1049         (Depends-on): Add mkfifo, mknod.
1050         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
1051         (Depends-on): Add symlink.
1052         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
1053         redundant with test_mkfifo.h.
1054         (do_mkfifoat, do_mknodat): New helpers.
1055
1056         mknod: new module
1057         * modules/mknod: New file.
1058         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1059         * lib/mknod.c (mknod): Likewise.
1060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
1061         defaults.
1062         * modules/sys_stat (Makefile.am): Substitute them.
1063         * lib/sys_stat.in.h (mknod): Declare replacement.
1064         * MODULES.html.sh (Support for systems lacking POSIX:2008):
1065         Document it.
1066         * doc/posix-functions/mknod.texi (mknod): Likewise.
1067         * modules/mknod-tests: New test.
1068         * tests/test-mknod.c: Likewise.
1069
1070         mkfifo: new module
1071         * modules/mkfifo: New file.
1072         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1073         * lib/mkfifo.c (mkfifo): Likewise.
1074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
1075         defaults.
1076         * modules/sys_stat (Makefile.am): Substitute them.
1077         * lib/sys_stat.in.h (mkfifo): Declare replacement.
1078         * MODULES.html.sh (Support for systems lacking POSIX:2008):
1079         Document it.
1080         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
1081         * modules/mkfifo-tests: New test.
1082         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
1083         from test-mkfifoat.c.
1084         * tests/test-mkfifo.c: New file.
1085
1086         readlink: detect FreeBSD bug
1087         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
1088         slash on symlink.
1089         * doc/posix-functions/readlink.texi (readlink): Document the bug.
1090         * tests/test-readlink.h (test_readlink): Enhance test.
1091
1092         symlink: detect FreeBSD bug
1093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
1094         slash on symlink.
1095         * doc/posix-functions/symlink.texi (symlink): Document the bug.
1096         * tests/test-symlink.h (test_symlink): Enhance test.
1097
1098 2009-11-10  Eric Blake  <ebb9@byu.net>
1099
1100         link: detect FreeBSD bug
1101         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
1102         symlink.
1103         * doc/posix-functions/link.texi (link): Document the bug.
1104         * tests/test-link.h (test_link): Enhance test.
1105         * tests/test-linkat.c (main): Update caller.
1106
1107         unlink, remove: detect FreeBSD bug
1108         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
1109         slash on symlink.
1110         * doc/posix-functions/unlink.texi (unlink): Document the bug.
1111         * doc/posix-functions/remove.texi (remove): Likewise.
1112         * tests/test-unlink.h (test_unlink): Enhance test.
1113         * tests/test-remove.c (main): Likewise.
1114
1115 2009-11-09  Eric Blake  <ebb9@byu.net>
1116
1117         rename: detect FreeBSD bug
1118         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
1119         slash on symlink.
1120         * modules/renameat-tests (Depends-on): Add filenamecat.
1121         * tests/test-rename.h (test_rename): Allow one more errno.
1122         * tests/test-renameat.c (main): Likewise.
1123         * doc/posix-functions/rename.texi (rename): Document the bug.
1124
1125         open: detect FreeBSD bug
1126         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
1127         symlink.
1128         * doc/posix-functions/open.texi (open): Document the bug.
1129         * doc/posix-functions/utimes.texi (utimes): Likewise.
1130         * tests/test-open.h (test_open): Add parameters, and test symlink
1131         handling.
1132         * tests/test-open.c (main): Adjust caller.
1133         * tests/test-fcntl-safer.c (main): Likewise.
1134         * modules/open-tests (Depends-on): Add stdbool, symlink.
1135         * modules/fcntl-safer-tests (Depends-on): Likewise.
1136         * tests/test-openat.c (main): Add test-open tests.
1137
1138         stat: detect FreeBSD bug
1139         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
1140         symlink.
1141         * doc/posix-functions/stat.texi (stat): Document the bug.
1142         * tests/test-stat.h (test_stat_func): Add argument.
1143         * tests/test-stat.c (main): Adjust caller.
1144         * tests/test-fstatat.c (main): Likewise.
1145         * modules/stat-tests (Depends-on): Add stdbool, symlink.
1146         Reported by Jim Meyering.
1147
1148 2009-11-09  James Youngman  <jay@gnu.org>
1149
1150         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
1151         * lib/strftime.c: Correct placement of #include "ignore-value.h".
1152
1153 2009-11-08  Jim Meyering  <meyering@redhat.com>
1154
1155         utimens: remove invalid futimesat call
1156         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
1157         It used the file descriptor of the target file as the DIR_FD
1158         parameter and NULL as the file name.  That caused failure with
1159         errno == EFAULT on FreeBSD-8.0-rc2
1160
1161 2009-11-07  Eric Blake  <ebb9@byu.net>
1162
1163         fflush, freadseek: use fseeko, not fseek
1164         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1165         (clear_ungetc_buffer): Avoid potential problems on large files.
1166         * lib/freadseek.c (freadseek): Likewise.
1167         * modules/freadseek (Depends-on): Add fseeko.
1168         * modules/fseek (configure.ac): Set a witness.
1169         * tests/test-fflush.c (main): Use fseeko.
1170         * tests/test-fpurge.c (fseek): Disable link warning.
1171         * tests/test-freadable.c (fseek): Likewise.
1172         * tests/test-freading.c (fseek): Likewise.
1173         * tests/test-fseeko.c (fseek): Likewise.
1174         * tests/test-ftell.c (fseek): Likewise.
1175         * tests/test-ftello.c (fseek): Likewise.
1176         * tests/test-fwritable.c (fseek): Likewise.
1177         * tests/test-fwriting.c (fseek): Likewise.
1178
1179 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1180
1181         * modules/memchr (Depends-on): Drop getpagesize dependency.
1182
1183 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1184
1185         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
1186         Reported by Ludovic Courtès.
1187         * build-aux/pmccabe2html: Improve example usage.
1188         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
1189
1190 2009-11-06  Jim Meyering  <meyering@redhat.com>
1191
1192         do-release-commit-and-tag: New module.
1193         Automate the release-commit and tag process.
1194         * build-aux/do-release-commit-and-tag: New script, from coreutils.
1195         * modules/do-release-commit-and-tag: New file.
1196         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1197
1198 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1199
1200         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
1201         because test-select.c uses inet_pton.
1202
1203 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1204
1205         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
1206         GETADDRINFO_LIB.  Bump serial number.
1207         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
1208         Suggested by Eric Blake <ebb9@byu.net>.
1209
1210 2009-11-05  Eric Blake  <ebb9@byu.net>
1211
1212         strtod: detect darwin bug
1213         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
1214         Reported by Leo Davis.
1215
1216         freopen-safer: new module
1217         * modules/freopen-safer: New module.
1218         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
1219         * lib/freopen-safer.c (freopen_safer): New file.
1220         * lib/stdio-safer.h (freopen_safer): New declaration.
1221         * lib/stdio--.h (freopen): New override.
1222         * MODULES.html.sh (File stream based Input/Output): Mention it.
1223         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
1224         freopen-safer module.
1225         * doc/posix-functions/stderr.texi (stderr): Likewise.
1226         * doc/posix-functions/stdin.texi (stdin): Likewise.
1227         * doc/posix-functions/stdout.texi (stdout): Likewise.
1228         * modules/freopen-safer-tests: New test.
1229         * tests/test-reopen-safer.c: New file.
1230
1231 2009-11-05  Jim Meyering  <meyering@redhat.com>
1232
1233         maint.mk: Prohibit inclusion of "close-stream.h" without use.
1234         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
1235
1236 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1237
1238         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
1239
1240 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1241
1242         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
1243
1244 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1245
1246         Fix link error.
1247         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
1248         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1249
1250 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1251
1252         * tests/test-func.c: Also test value of __func__.
1253
1254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1255
1256         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
1257         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
1258
1259 2009-11-05  Bruno Haible  <bruno@clisp.org>
1260
1261         Fix link error.
1262         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
1263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1264         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
1265
1266 2009-11-05  Bruno Haible  <bruno@clisp.org>
1267
1268         Tests for module 'inet_pton'.
1269         * modules/inet_pton-tests: New file.
1270         * tests/test-inet_pton.c: New file.
1271
1272 2009-11-05  Bruno Haible  <bruno@clisp.org>
1273
1274         Tests for module 'inet_ntop'.
1275         * modules/inet_ntop-tests: New file.
1276         * tests/test-inet_ntop.c: New file.
1277
1278 2009-11-04  Eric Blake  <ebb9@byu.net>
1279
1280         stdlib-safer: wrap all mkstemp variants
1281         * modules/mkostemp (configure.ac): Set witness.
1282         * modules/mkostemps (configure.ac): Likewise.
1283         * modules/mkstemps (configure.ac): Likewise.
1284         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
1285         (mkstemps_safer): Wrap more functions.
1286         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
1287         wrapping.
1288         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
1289         (mkstemps_safer): Implement the wrappers.
1290
1291         mkstemps, mkostemps: new modules
1292         * modules/mkostemps: New module.
1293         * modules/mkstemps: Likewise.
1294         * lib/mkostemps.c (mkostemps): New file.
1295         * lib/mkstemps.c (mkstemps): Likewise.
1296         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
1297         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
1298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
1299         * modules/stdlib (Makefile.am): Substitute them.
1300         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
1301         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
1302         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
1303         * doc/gnulib.texi (Glibc stdlib.h): Include them.
1304         * MODULES.html.sh (File system functions): Mention them.
1305
1306         tempname: resync from glibc
1307         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
1308         same values for __GT_FILE as glibc.  Abort even when assertions
1309         are disabled.
1310         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
1311         match its value otherwise.  Allow idempotent inclusion.
1312         * lib/mkdtemp.c (mkdtemp): Adjust caller.
1313         * lib/mkostemp.c (mkostemp): Likewise.
1314         * lib/mkstemp.c (mkstemp): Likewise.
1315         * lib/tmpfile.c (tmpfile): Likewise.
1316         * NEWS: Document this.
1317
1318         utimens: fix use of futimens on older Linux
1319         * lib/utimens.c (fdutimens): Use updated, rather than original,
1320         timespec to avoid bug in older Linux kernel.
1321         Reported by Simon Josefsson.
1322
1323 2009-11-04  Bruno Haible  <bruno@clisp.org>
1324
1325         Make num_processors more flexible and consistent.
1326         * lib/nproc.h (enum nproc_query): New type.
1327         (num_processors): Add a 'query' argument.
1328         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
1329         (num_processors): Add a 'query' argument. Test the value of the
1330         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
1331         mingw, count the number of CPUs available for the current process.
1332         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
1333         Check for sched_getaffinity and sched_getaffinity_np.
1334         * modules/nproc (Depends-on): Add c-ctype, extensions.
1335         * NEWS: Mention the change.
1336
1337 2009-11-03  Bruno Haible  <bruno@clisp.org>
1338
1339         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
1340
1341 2009-11-03  Jim Meyering  <meyering@redhat.com>
1342
1343         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
1344         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
1345         if it is defined.
1346
1347 2009-11-02  Eric Blake  <ebb9@byu.net>
1348
1349         mktime, timegm: share common declaration
1350         * lib/mktime-internal.h: New file.
1351         * lib/mktime.c: Use it rather than open-coding a declaration.
1352         * lib/timegm.c: Likewise.
1353         * modules/mktime (Files): Ship it.
1354         * modules/timegm (Files): Likewise.
1355         Suggested by Bruno Haible.
1356
1357         test-update-copyright: update test to match script changes
1358         * tests/test-update-copyright.sh: Avoid hard-coding perl
1359         location.  Don't update *.bak created by earlier runs.
1360
1361 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1362             Simon Josefsson  <simon@josefsson.org>
1363             Bruno Haible  <bruno@clisp.org>
1364
1365         Fix link error on Solaris 8.
1366         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
1367         also in libnsl. Define also INET_PTON_LIB.
1368         * modules/inet_pton (Link): New section.
1369
1370 2009-11-02  Simon Josefsson  <simon@josefsson.org>
1371             Bruno Haible  <bruno@clisp.org>
1372
1373         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
1374         * modules/inet_ntop (Link): New section.
1375         Reported by Boyan Kasarov <bkasarov@gmail.com>.
1376
1377 2009-11-02  Eric Blake  <ebb9@byu.net>
1378
1379         maint: avoid compiler warnings in m4 macros
1380         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
1381         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
1382
1383 2009-11-02  Simon Josefsson  <simon@josefsson.org>
1384
1385         * m4/pmccabe2html.m4: Remove file.
1386         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
1387         function.  Change maintainer.
1388         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
1389         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
1390         Courtès).
1391
1392 2009-10-31  Eric Blake  <ebb9@byu.net>
1393
1394         fseeko: fix m4 regression
1395         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
1396         regression from 2009-10-27.
1397         Reported by Ralf Wildenhues.
1398
1399 2009-10-31  Jim Meyering  <meyering@redhat.com>
1400
1401         inttostr: aesthetics and improved (compile-time) safety
1402         Define inttype_is_signed rather than inttype_is_unsigned,
1403         since the sole use is via "#if inttype_is_signed".
1404         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
1405         inttype_is_unsigned.
1406         * lib/offtostr.c (inttype_is_signed): Likewise.
1407         * lib/uinttostr.c (inttype_is_signed): Likewise.
1408         * lib/umaxtostr.c (inttype_is_signed): Likewise.
1409         * lib/inttostr.c (inttostr): Use verify to cross-check the
1410         inttype_is_signed value and the signedness of the actual type.
1411         * modules/inttostr (Depends-on): Add verify.
1412
1413 2009-10-30  Eric Blake  <ebb9@byu.net>
1414
1415         build: avoid compiler warnings
1416         * lib/fchmodat.c (lchmod): Mark unused variables.
1417         * lib/getopt.c (_getopt_initialize): Likewise.
1418         * lib/mktime.c (__mktime_internal): Provide prototype.
1419         * lib/inttostr.c (inttostr): Avoid compiler warning even with
1420         older gcc that do not understand #pragma GCC diagnostic.
1421         * lib/uinttostr.c (inttype_is_unsigned): Define.
1422         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
1423
1424 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1425
1426         stat: fix compilation on AIX
1427         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
1428         only see struct stat64.
1429
1430 2009-10-30  Eric Blake  <ebb9@byu.net>
1431
1432         exclude: make more robust
1433         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
1434         rather than masking a coding bug.
1435         Suggested by Bruno Haible.
1436
1437 2009-10-30  Jim Meyering  <meyering@redhat.com>
1438
1439         perl scripts: remove #!/usr/bin/perl in favor of more portable...
1440         Rather than putting #!/usr/bin/perl on the first line,
1441         start with a variant of what's recommended by "man perlrun" that
1442         invokes the first "perl" program from your shell's search path.
1443         * build-aux/gitlog-to-changelog: Replace #!... as above.
1444         Add a "Local Variables" perl mode setting.
1445         Prompted by a patch from Ludovic Courtès.
1446         Improved by Eric Blake.
1447         * build-aux/useless-if-before-free: Likewise.
1448         * build-aux/announce-gen: Likewise.
1449         * build-aux/update-copyright: Likewise.
1450
1451 2009-10-29  Eric Blake  <ebb9@byu.net>
1452
1453         filenamecat-lgpl: adjust clients
1454         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
1455         filenamecat.
1456         * modules/renameat (Depends-on): Likewise.
1457
1458         filenamecat: split into filenamecat-lgpl
1459         * modules/filenamecat-lgpl: New module.
1460         * modules/filenamecat (Files): Move library-safe files into
1461         filenamecat-lgpl.
1462         (Depends-on): Add filenamecat-lgpl.
1463         (configure.ac): Declare witness.
1464         * lib/filenamecat.h (file_name_concat): Only declare when using
1465         GPL module.
1466         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
1467         Move...
1468         * lib/filenamecat-lgpl.c: ...into new file.
1469         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
1470         (gl_FILE_NAME_CONCAT): Use it.
1471         * MODULES.html.sh (File system functions): Mention new module.
1472
1473         argp: avoid memory leak
1474         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
1475         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
1476         base_name, since the latter malloc()s and can call exit().
1477         Leak introduced 2006-07-03.
1478
1479         dirname-lgpl: adjust clients that don't need full dirname
1480         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
1481         * modules/filenamecat (Depends-on): Likewise.
1482         * modules/linkat (Depends-on): Likewise.
1483         * modules/mkancesdirs (Depends-on): Likewise.
1484         * modules/mkdir (Depends-on): Likewise.
1485         * modules/openat (Depends-on): Likewise.
1486         * modules/savewd (Depends-on): Likewise.
1487         * modules/rename (Depends-on): Likewise.
1488         (License): Relax license.
1489         * modules/mkdir-tests (Depends-on): Drop progname.
1490         (Makefile.am): Delete unneeded LDADD.
1491         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
1492
1493         dirname: split into dirname-lgpl
1494         * modules/dirname-lgpl: New module.
1495         * modules/dirname (Files): Move library-safe files into
1496         dirname-lgpl.
1497         (Depends-on): Add dirname-lgpl.
1498         (configure.ac): Declare witness.
1499         * modules/double-slash-root (License): Relax license.
1500         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
1501         module.
1502         * lib/dirname.c (dir_len, mdir_name): Move...
1503         * lib/dirname-lgpl.c: ...into new file.
1504         * lib/basename.c (last_component, base_len): Move...
1505         * lib/basename-lgpl.c: ...into new file.
1506         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
1507         (gl_DIRNAME): Use it.
1508         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
1509         Mention new module.
1510         * modules/dirname-tests (Depends-on): Add progname.
1511         * tests/test-dirname.c (program_name): Delete.
1512
1513         mkdir: make safe for libraries
1514         * modules/mkdir (Depends-on): Drop xalloc.
1515         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
1516         exit.
1517
1518         tests: avoid some compiler warnings
1519         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
1520         literals.
1521         * tests/test-memchr.c (main): Avoid type mismatch.
1522         * tests/test-arpa_inet.c (main): Avoid unused parameters.
1523         * tests/test-base64.c (main): Likewise.
1524         * tests/test-getdelim.c (main): Likewise.
1525         * tests/test-gethostname.c (main): Likewise.
1526         * tests/test-getline.c (main): Likewise.
1527         * tests/test-netinet_in.c (main): Likewise.
1528         * tests/test-select.c (open_server_socket, main): Likewise.
1529         * tests/test-select-stdin.c (main): Likewise.
1530         * tests/test-sockets.c (main): Likewise.
1531         * tests/test-strsignal.c (main): Likewise.
1532         * tests/test-sys_select.c (main): Likewise.
1533         * tests/test-sys_socket.c (main): Likewise.
1534         * tests/test-u64.c (main): Likewise.
1535         * tests/test-xfprintf-posix.c (main): Likewise.
1536         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
1537
1538         sockets: avoid compiler warning
1539         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
1540
1541         maint: detect usage(1) and other suspicious exits
1542         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
1543
1544 2009-10-29  Jim Meyering  <meyering@redhat.com>
1545
1546         timespec: long-to-int truncation could make timespec_cmp malfunction
1547         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
1548         a multiple of 2^32 nanoseconds as no difference.
1549
1550 2009-10-28  Jim Meyering  <meyering@redhat.com>
1551
1552         fprintftime: wrap macro code argument in "do {...} while(0)"
1553         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
1554         cpy macro must be a statement that can be followed by a semicolon.
1555         Now that the else clause contains a comment and is hence longer
1556         than one line, I require curly braces.  That in turn requires
1557         that we wrap this code block in the standard do...while(0).
1558
1559         fprintftime: remove stray semicolon from previous change
1560         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
1561
1562         fprintftime: avoid a warning about ignored fwrite return value
1563         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
1564         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
1565         that is unsafe.
1566         * modules/fprintftime (Depends-on): Add ignore-value.
1567
1568         exclude: avoid an unwarranted warning
1569         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
1570
1571 2009-10-27  Eric Blake  <ebb9@byu.net>
1572
1573         fseek: avoid compilation failure when fflush is replaced
1574         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
1575         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
1576         module is in use.
1577         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
1578         module is not in use; since REPLACE_FSEEK worked otherwise.
1579         (GNULIB_FTELLO): Likewise for ftell.
1580         Reported by Ian Beckwith and others.
1581
1582 2009-10-27  Bruno Haible  <bruno@clisp.org>
1583
1584         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
1585         Reported by Jim Meyering.
1586
1587 2009-10-27  Jim Meyering  <jim@meyering.net>
1588             Bruno Haible  <bruno@clisp.org>
1589
1590         Avoid warning despite dropping the return value of fwrite.
1591         * lib/unicodeio.c: Include ignore-value.h.
1592         (fwrite_success_callback): Explicitly ignore fwrite's return value.
1593         * modules/unicodeio (Depends-on): Add ignore-value.
1594
1595 2009-10-26  Eric Blake  <ebb9@byu.net>
1596
1597         areadlinkat: fix fallback path
1598         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
1599         pointer and zero.
1600
1601 2009-10-22  Pádraig Brady  <P@draigBrady.com>
1602
1603         Use a better IO block size for modern systems
1604         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
1605         * lib/md2.c: Likewise.
1606         * lib/md4.c: Likewise.
1607         * lib/md5.c: Likewise.
1608         * lib/sha1.c: Likewise.
1609         * lib/sha256.c: Likewise.
1610         * lib/sha512.c: Likewise.
1611
1612 2009-10-22  Eric Blake  <ebb9@byu.net>
1613
1614         tests: avoid several compiler warnings
1615         * tests/test-getcwd.c (main): Avoid buffer underflow.
1616         * tests/test-getdate.c (main): String literals are not safe with
1617         putenv, so use setenv.  Declare unused argument.
1618         * modules/getdate-tests (Depends-on): Add setenv.
1619         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
1620         problems with string literals in char *.
1621         * tests/test-hash.c (main): Avoid shadowing declaration.
1622         (insert_new): Treat string literals as char const *.
1623         * tests/test-getopt.h (test_getopt): Likewise.
1624         (getopt_loop): Alter types to minimize casting elsewhere.
1625         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
1626         (test_getopt_long_posix): Likewise.
1627         (do_getopt_long): Add wrapper to minimize casting.
1628         * tests/test-atexit.c (clear_temp_file): Use void.
1629         * tests/test-areadlink-with-size.c (main): Declare unused
1630         arguments.
1631         * tests/test-areadlink.c (main): Likewise.
1632         * tests/test-areadlinkat-with-size.c (main): Likewise.
1633         * tests/test-areadlinkat.c (main): Likewise.
1634         * tests/test-canonicalize-lgpl.c (main): Likewise.
1635         * tests/test-canonicalize.c (main): Likewise.
1636         * tests/test-dirent-safer.c (main): Likewise.
1637         * tests/test-dirname.c (main): Likewise.
1638         * tests/test-dup2.c (main): Likewise.
1639         * tests/test-fchdir.c (main): Likewise.
1640         * tests/test-fcntl-h.c (main): Likewise.
1641         * tests/test-fcntl-safer.c (main): Likewise.
1642         * tests/test-fdopendir.c (main): Likewise.
1643         * tests/test-fdutimensat.c (main): Likewise.
1644         * tests/test-fflush.c (main): Likewise.
1645         * tests/test-filenamecat.c (main): Likewise.
1646         * tests/test-filevercmp.c (main): Likewise.
1647         * tests/test-fopen-safer.c (main): Likewise.
1648         * tests/test-fopen.c (main): Likewise.
1649         * tests/test-fpending.c (main): Likewise.
1650         * tests/test-fpurge.c (main): Likewise.
1651         * tests/test-freading.c (main): Likewise.
1652         * tests/test-fstatat.c (main): Likewise.
1653         * tests/test-fsync.c (main): Likewise.
1654         * tests/test-futimens.c (main): Likewise.
1655         * tests/test-getndelim2.c (main): Likewise.
1656         * tests/test-gettimeofday.c (main): Likewise.
1657         * tests/test-getopt.c (main): Likewise.
1658         * tests/test-i-ring.c (main): Likewise.
1659         * tests/test-inttypes.c (main): Likewise.
1660         * tests/test-link.c (main): Likewise.
1661         * tests/test-lstat.c (main): Likewise.
1662         * tests/test-math.c (main): Likewise.
1663         * tests/test-md5.c (main): Likewise.
1664         * tests/test-memchr2.c (main): Likewise.
1665         * tests/test-memrchr.c (main): Likewise.
1666         * tests/test-mkdir.c (main): Likewise.
1667         * tests/test-mkdirat.c (main): Likewise.
1668         * tests/test-mkfifoat.c (main): Likewise.
1669         * tests/test-open.c (main): Likewise.
1670         * tests/test-openat-safer.c (main): Likewise.
1671         * tests/test-openat.c (main): Likewise.
1672         * tests/test-quotearg.c (main): Likewise.
1673         * tests/test-rawmemchr.c (main): Likewise.
1674         * tests/test-readlink.c (main): Likewise.
1675         * tests/test-remove.c (main): Likewise.
1676         * tests/test-rename.c (main): Likewise.
1677         * tests/test-renameat.c (main): Likewise.
1678         * tests/test-rmdir.c (main): Likewise.
1679         * tests/test-sha1.c (main): Likewise.
1680         * tests/test-signal.c (main): Likewise.
1681         * tests/test-sigaction.c (main): Likewise.
1682         * tests/test-stat.c (main): Likewise.
1683         * tests/test-stat-time.c (main): Likewise.
1684         * tests/test-stddef.c (main): Likewise.
1685         * tests/test-stdint.c (main): Likewise.
1686         * tests/test-stdio.c (main): Likewise.
1687         * tests/test-stdlib.c (main): Likewise.
1688         * tests/test-strchrnul.c (main): Likewise.
1689         * tests/test-strerror.c (main): Likewise.
1690         * tests/test-string.c (main): Likewise.
1691         * tests/test-strtod.c (main): Likewise.
1692         * tests/test-strverscmp.c (main): Likewise.
1693         * tests/test-symlink.c (main): Likewise.
1694         * tests/test-symlinkat.c (main): Likewise.
1695         * tests/test-sys_stat.c (main): Likewise.
1696         * tests/test-sys_time.c (main): Likewise.
1697         * tests/test-time.c (main): Likewise.
1698         * tests/test-unistd.c (main): Likewise.
1699         * tests/test-unlink.c (main): Likewise.
1700         * tests/test-unlinkat.c (main): Likewise.
1701         * tests/test-utimens.c (main): Likewise.
1702         * tests/test-utimensat.c (main): Likewise.
1703         * tests/test-version-etc.c (main): Likewise.
1704         * tests/test-wchar.c (main): Likewise.
1705         * tests/test-wctype.c (main): Likewise.
1706         * tests/test-xprintf-posix.c (main): Likewise.
1707         * tests/test-posixtm.c (main): Likewise.
1708         (STREQ): Delete unused macro.
1709         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
1710         shadowed variables.
1711         * tests/test-memchr.c (main): Likewise.
1712
1713 2009-10-21  Eric Blake  <ebb9@byu.net>
1714
1715         areadlinkat: avoid failure on older glibc
1716         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
1717         rather than mis-comparing 0 against FUNC_RESULT of char*.
1718
1719 2009-10-21  Bruno Haible  <bruno@clisp.org>
1720
1721         * modules/stpncpy (License): Relicense under LGPLv2+.
1722         Reported by David Lutterkort <lutter@redhat.com>.
1723
1724 2009-10-20  Eric Blake  <ebb9@byu.net>
1725
1726         utimensat: work around Solaris 9 bug
1727         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
1728         has trailing slash bugs.
1729         * tests/test-lutimens.h (test_lutimens): Enhance test.
1730         * tests/test-utimens.h (test_utimens): Likewise.
1731         * doc/posix-functions/utime.texi (utime): Enhance documentation.
1732         * doc/posix-functions/utimes.texi (utimes): Likewise.
1733         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
1734         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
1735         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
1736         * doc/posix-functions/futimens.texi (futimens): Likewise.
1737
1738         fdutimensat: new module
1739         * modules/fdutimensat: New file.
1740         * lib/fdutimensat.c (fdutimensat): Likewise.
1741         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
1742         * MODULES.html.sh (File system functions): Mention module.
1743         * modules/fdutimensat-tests: New test.
1744         * tests/test-fdutimensat.c: Likewise.
1745
1746         doc: regenerate INSTALL
1747         * doc/INSTALL: Reflect recent autoconf update.
1748         * doc/INSTALL.ISO: Likewise.
1749         * doc/INSTALL.UTF-8: Likewise.
1750
1751 2009-10-20  Pádraig Brady  <P@draigBrady.com>
1752
1753         acl: warn if ACL support is not detected
1754         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
1755
1756 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
1757
1758         * lib/nproc.h: Add extern "C" block for C++.
1759
1760 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
1761             Bruno Haible  <bruno@clisp.org>
1762
1763         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
1764         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
1765         * doc/posix-functions/isalpha.texi: Likewise.
1766         * doc/posix-functions/isblank.texi: Likewise.
1767         * doc/posix-functions/iscntrl.texi: Likewise.
1768         * doc/posix-functions/isdigit.texi: Likewise.
1769         * doc/posix-functions/isgraph.texi: Likewise.
1770         * doc/posix-functions/islower.texi: Likewise.
1771         * doc/posix-functions/isprint.texi: Likewise.
1772         * doc/posix-functions/ispunct.texi: Likewise.
1773         * doc/posix-functions/isspace.texi: Likewise.
1774         * doc/posix-functions/isupper.texi: Likewise.
1775         * doc/posix-functions/isxdigit.texi: Likewise.
1776
1777 2009-10-18  Bruno Haible  <bruno@clisp.org>
1778
1779         Tests for module 'isblank'.
1780         * modules/isblank-tests: New file.
1781         * tests/test-isblank.c: New file.
1782
1783         New module 'isblank'.
1784         * lib/isblank.c: New file.
1785         * m4/isblank.m4: New file.
1786         * modules/isblank: New file.
1787         * doc/posix-functions/isblank.texi: Mention the new module.
1788
1789 2009-10-18  Bruno Haible  <bruno@clisp.org>
1790
1791         New module 'ctype'.
1792         * lib/ctype.in.h: New file.
1793         * m4/ctype.m4: New file.
1794         * modules/ctype: New file.
1795         * doc/posix-headers/ctype.texi: Mention the new module.
1796
1797 2009-10-18  Jim Meyering  <meyering@redhat.com>
1798
1799         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
1800         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
1801         right after its initialization, rather than farther down.
1802         Keeping these in close proximity makes it easier to ensure
1803         that each such variable is initialized.  E.g.,
1804
1805             LIB_CLOCK_GETTIME=
1806             AC_SUBST([LIB_CLOCK_GETTIME])
1807
1808         This change also increments these serial numbers.
1809         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
1810         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1812
1813 2009-10-18  Bruno Haible  <bruno@clisp.org>
1814
1815         Don't let environment variables perturb build.
1816         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
1817         (gl_PREREQ_GETHRXTIME): ... not here.
1818
1819 2009-10-18  Bruno Haible  <bruno@clisp.org>
1820
1821         Avoid symlink attack in localcharset module.
1822         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
1823         (O_NOFOLLOW): Define fallback.
1824         (get_charset_aliases): Don't open the file if it is a symbolic link.
1825         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
1826         gl_FCNTL_H.
1827         (gl_FCNTL_H): Require it.
1828         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
1829         * modules/localcharset (Files): Add m4/fcntl_h.m4.
1830         Reported by Fergal Glynn <fglynn@veracode.com>.
1831
1832 2009-10-18  Bruno Haible  <bruno@clisp.org>
1833
1834         Implement nproc for mingw.
1835         * lib/nproc.c: Include <windows.h>
1836         (num_processors): On native Windows platforms, try GetSystemInfo.
1837
1838 2009-10-18  Bruno Haible  <bruno@clisp.org>
1839
1840         Implement nproc for IRIX.
1841         * lib/nproc.c: Include <sys/sysmp.h>.
1842         (num_processors): On IRIX systems, try sysmp.
1843         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
1844
1845 2009-10-18  Bruno Haible  <bruno@clisp.org>
1846
1847         Implement nproc for HP-UX.
1848         * lib/nproc.c: Include <sys/pstat.h>
1849         (num_processors): On HP-UX systems, try pstat_getdynamic.
1850         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
1851         pstat_getdynamic.
1852
1853 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
1854             Bruno Haible  <bruno@clisp.org>
1855
1856         Implement nproc for NetBSD, OpenBSD.
1857         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
1858         (ARRAY_SIZE): New macro.
1859         (num_processors): On BSD systems, try sysctl of HW_NCPU.
1860         * m4/nproc.m4: New file.
1861         * modules/nproc (Files): Add m4/nproc.m4.
1862         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
1863         (Makefile.am): Instead, augment lib_SOURCES.
1864
1865 2009-10-18  Bruno Haible  <bruno@clisp.org>
1866
1867         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
1868         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
1869         sys/param.h.
1870
1871 2009-10-16  Eric Blake  <ebb9@byu.net>
1872
1873         utimensat: new module
1874         * modules/utimensat: New file.
1875         * lib/utimensat.c (utimensat): Likewise.
1876         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1877         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
1878         so we can work around Linux bugs.
1879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1880         * modules/sys_stat (Makefile.am): Substitute them.
1881         * lib/sys_stat.in.h (utimensat): Declare it.
1882         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1883         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
1884         * modules/utimensat-tests: New test.
1885         * tests/test-utimensat.c: Likewise.
1886
1887         utimens: let lutimens work on non-symlinks
1888         * lib/utimens.c (lutimens): Fall back to utimens rather than
1889         failing with ENOSYS, when file is not a symlink.
1890         (utimens): Reduce redirection.
1891         * tests/test-lutimens.h (test_lutimens): Update test to cover
1892         non-symlinks.
1893         * tests/test-utimens.h (test_utimens): Update test to cover
1894         symlinks.
1895         * tests/test-utimens.c (main): Update caller.
1896
1897         utimens: cache whether utimensat syscall works
1898         * lib/utimens.c (utimensat_works_really): New cache variable.
1899         (fdutimens, lutimens): Use it to avoid failing syscall.
1900
1901         test-stat-time, test-utimens: improve portability
1902         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
1903         ext4 on alpha, and for cygwin.
1904         * tests/test-utimens-common.h: New file.
1905         (nap): Factor delays into single function.
1906         * tests/test-lutimens.h (test_lutimens): Use new header.
1907         * tests/test-futimens.h (test_futimens): Likewise.
1908         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
1909         timestamps to occur from same machine, as was done previously for
1910         test_utimens.
1911         * modules/utimens-tests (Files): Ship new file.
1912         * modules/futimens-tests (Files): Likewise.
1913         Reported in part by Jim Meyering.
1914
1915         sys_stat: sort replacement declarations
1916         * lib/sys_stat.in.h: Sort declarations.
1917         * lib/futimens.c (futimens): Fix typo.
1918
1919 2009-10-15  Jim Meyering  <meyering@redhat.com>
1920
1921         don't let environment settings perturb build
1922         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
1923         could cause a configure-time and/or build-time malfunction.
1924         Typically, a configure-time function-in-library test is performed
1925         via code like this:
1926
1927           LIB_VAR=
1928           AC_SUBST([LIB_VAR])
1929           prefix_saved_LIBS=$LIBS
1930             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
1931                        [test "$ac_cv_search_FUNC" = "none required" ||
1932                         LIB_VAR=$ac_cv_search_FUNC])
1933           LIBS=$prefix_saved_LIBS
1934
1935         However, in each of the files affected by this change, the LIB_VAR=
1936         initialization was omitted.  Thus, when set in the environment, its
1937         value would propagate into generated Makefiles when FUNC is not found
1938         in LIB_NAME.
1939         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
1940         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1942
1943 2009-10-14  Eric Blake  <ebb9@byu.net>
1944
1945         fchdir: avoid infinite recursion in mingw
1946         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
1947         recursing.
1948
1949         test-stat-time: port to mingw
1950         * tests/test-stat-time.c (force_unlink): Return a value.
1951         (test_ctime) [W32]: Fix compilation error.
1952         (nap): Don't call usleep with too large an argument.  Use
1953         force_unlink.
1954         * doc/pastposix-functions/usleep.texi (usleep): Document the
1955         portability issue.
1956
1957 2009-10-13  Jim Meyering  <meyering@redhat.com>
1958
1959         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
1960         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
1961         * modules/pipe-filter-ii: Likewise.
1962         * modules/sys_socket-tests: Likewise.
1963         * modules/tsearch-tests: Likewise.
1964         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
1965         (check): Depend on it.
1966
1967 2009-10-12  Eric Blake  <ebb9@byu.net>
1968
1969         utimens-tests: port to NFS file systems
1970         * tests/test-utimens.h (test_utimens): Refactor utimecmp
1971         comparisons to avoid spurious failures from timestamp drift
1972         between NFS machines.
1973
1974 2009-10-12  Eric Blake  <ebb9@byu.net>
1975
1976         stat-time-tests: minor cleanups
1977         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1978         * tests/test-stat-time.c (nap): Separate assignment from call.
1979         Suggested by Paolo Bonzini and Bruno Haible.
1980
1981         sys_stat: guarantee struct timespec
1982         * lib/sys_stat.in.h (includes): Always include <time.h>
1983         * modules/sys_stat (Depends-on): Add time.
1984         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
1985         mode_t permission values.
1986         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
1987         get at subsecond timestamps.
1988
1989 2009-10-10  Eric Blake  <ebb9@byu.net>
1990
1991         futimens: new module
1992         * modules/futimens: New file.
1993         * lib/futimens.c (futimens): Likewise.
1994         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
1995         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
1996         we can work around Linux bugs.
1997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1998         * modules/sys_stat (Makefile.am): Substitute them.
1999         * lib/sys_stat.in.h (futimens): Declare it.
2000         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2001         * doc/posix-functions/futimens.texi (futimens): Likewise.
2002         * modules/futimens-tests: New test.
2003         * tests/test-futimens.c: Likewise.
2004
2005         utimens: introduce fdutimens
2006         * lib/utimens.h (fdutimens): New prototype.
2007         * lib/utimens.c (gl_futimens): Move guts...
2008         (fdutimens): ...to new interface.
2009         * tests/test-utimens.c (do_fdutimens): Use it.
2010
2011         utimens: add UTIME_NOW and UTIME_OMIT support
2012         * lib/utimens.c (validate_timespec, update_timespec): New helper
2013         functions.
2014         (gl_futimens, lutimens): Use them.
2015         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
2016         stdbool, sys_stat.
2017         (Link): Mention resulting library dependency.
2018         * modules/utimecmp (Link): Likewise.
2019         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
2020         (Makefile.am): Pick up library dependency.
2021         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
2022         definition.
2023         * tests/test-sys_stat.c: Test the definitions.
2024         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
2025         * NEWS: Document library dependency.
2026
2027         utimecmp: support symlink timestamps
2028         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
2029         hashing when possible.  Use pathconf when available.
2030         (SYSCALL_RESOLUTION): Recognize tighter resolution.
2031         * modules/utimecmp (Depends-on): Add lstat.
2032
2033         utimens: add lutimens interface
2034         * lib/utimens.c (lutimens): New function.
2035         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
2036         * lib/utimens.h (lutimens): Declare new interface.
2037         * tests/test-utimens.c (main): Enhance test.
2038         * tests/test-lutimens.h (test_lutimens): New file.
2039         * modules/utimens-tests (Files): Distribute it.
2040         (Depends-on): Add symlink.
2041         (configure.ac): Check for usleep.
2042
2043         utimens: validate futimens usage
2044         * lib/utimens.c (gl_futimens): Require valid fd up front, using
2045         fewer syscalls on failure later on.  Avoid compiler warning on
2046         mingw.
2047         * modules/utimens (Depends-on): Add dup2.
2048
2049         utimens: add test
2050         * modules/utimens-tests: New test.
2051         * tests/test-utimens.h: New file.
2052         * tests/test-futimens.h: Likewise.
2053         * tests/test-utimens.c: Likewise.
2054
2055         doc: mention timestamp portability issues
2056         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
2057         instead.
2058         * doc/posix-functions/utime.texi (utime): Likewise.
2059         * doc/posix-functions/utimes.texi (utimes): Likewise.
2060         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
2061         instead.
2062         * doc/posix-functions/futimens.texi (futimens): Mention utimens
2063         module.
2064         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2065         Mention weakness with symlink timestamps.
2066         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
2067         to utimensat/futimens instead.
2068         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
2069
2070         test-dup2: enhance test
2071         * tests/test-dup2.c (main): Also check AT_FDCWD.
2072
2073         test-stat-time: avoid more spurious failures
2074         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
2075         xfs; and avoid race if the two timestamps cross quantization edge.
2076
2077         relocatable: prefer 'file system' over 'filesystem'
2078         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
2079         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
2080         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
2081         * doc/relocatable.texi (Enabling Relocatability): Likewise.
2082         * lib/relocatable.c (compute_curr_prefix): Likewise.
2083
2084 2009-10-10  Jim Meyering  <meyering@redhat.com>
2085
2086         stat-time-tests: check for the usleep function
2087         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
2088
2089 2009-10-10  Bruno Haible  <bruno@clisp.org>
2090
2091         * modules/xnanosleep: Put the Link section after the Include section.
2092
2093 2009-10-09  Eric Blake  <ebb9@byu.net>
2094
2095         dup2: work around FreeBSD 6.1 bug
2096         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
2097         * doc/posix-functions/dup2.texi (dup2): Document it.
2098         Reported by Nelson H. F. Beebe and Jim Meyering.
2099
2100         test-stat-time: port to buggy NFS clients
2101         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
2102         (test_ctime): Also skip test if mtime and ctime are skewed.
2103
2104         maint: prefer 'file system' over 'filesystem'
2105         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
2106         * doc/posix-functions/lstat.texi (lstat): Likewise.
2107         * lib/file-has-acl.c (file_has_acl): Likewise.
2108         * lib/fwriteerror.c [TEST]: Likewise.
2109         * tests/test-areadlink.h (test_areadlink): Likewise.
2110         * tests/test-areadlinkat-with-size.c (main): Likewise.
2111         * tests/test-areadlinkat.c (main): Likewise.
2112         * tests/test-canonicalize-lgpl.c (main): Likewise.
2113         * tests/test-canonicalize.c (main): Likewise.
2114         * tests/test-fstatat.c (main): Likewise.
2115         * tests/test-linkat.c (main): Likewise.
2116         * tests/test-lstat.h (test_lstat_func): Likewise.
2117         * tests/test-mkdir.h (test_mkdir): Likewise.
2118         * tests/test-readlink.h (test_readlink): Likewise.
2119         * tests/test-remove.c (main): Likewise.
2120         * tests/test-rename.h (test_rename): Likewise.
2121         * tests/test-renameat.c (main): Likewise.
2122         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2123         * tests/test-symlink.h (test_symlink): Likewise.
2124         * tests/test-symlinkat.c (main): Likewise.
2125         * tests/test-unlink.h (test_unlink_func): Likewise.
2126         * tests/test-unlinkat.c (main): Likewise.
2127
2128         maint: make realtime library usage explicit
2129         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
2130         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
2131         * modules/settime (Link): Likewise.
2132         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
2133
2134         test-stat-time: speed up execution
2135         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
2136         warning on mingw.
2137         (nap): New helper function.
2138         (prepare_test): Use it to reduce sleep time.
2139         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
2140         execution.
2141         * modules/stat-time-tests (configure.ac): Check for usleep.
2142
2143 2009-10-09  Jim Meyering  <meyering@redhat.com>
2144
2145         selinux-h: always use getfilecon wrappers
2146         * lib/getfilecon.c: New file.
2147         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
2148         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
2149         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
2150         (fgetfilecon): Provide a stub.
2151         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
2152         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
2153         file unconditionally.
2154         When <selinux/selinux.h> is found, arrange to use wrappers.
2155         * modules/selinux-h (Files): Add getfilecon.c.
2156         (Makefile.am): Substitute include-next-related bits
2157         into the now-always-generated selinux/selinux.h file.
2158         * doc/glibc-functions/lgetfilecon.texi: New file.
2159         * doc/glibc-functions/fgetfilecon.texi: New file.
2160         * doc/glibc-functions/getfilecon.texi: New file.
2161         * doc/glibc-functions/getfilecon-desc.texi: New file.
2162         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
2163         which to pull in the new files.
2164         * MODULES.html.sh (Misc): Add selinux-h.
2165
2166 2009-10-08  Jim Meyering  <meyering@redhat.com>
2167
2168         unistd: fix comment typo
2169         * lib/unistd.in.h (euidaccess): Fix a comment typo.
2170
2171 2009-10-08  Eric Blake  <ebb9@byu.net>
2172
2173         areadlink: use SIZE_MAX consistently
2174         * modules/areadlink (Depends-on): Add stdint.
2175         * modules/areadlink-with-size (Depends-on): Likewise.
2176         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
2177         gives NULL; drop sys/types, since unistd gives size_t; and add
2178         stdint for SIZE_MAX.
2179         (SIZE_MAX): Rely on headers.
2180         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
2181         and add stdint.
2182         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
2183         (SIZE_MAX): Likewise.
2184         (INITIAL_BUF_SIZE): Turn into enum.
2185         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
2186
2187 2009-10-08  Jim Meyering  <meyering@redhat.com>
2188
2189         areadlinkat: avoid compilation failure
2190         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
2191         Fix typo in comment.
2192
2193 2009-10-07  Eric Blake  <ebb9@byu.net>
2194
2195         areadlinkat-with-size: new module
2196         * modules/areadlinkat-with-size: New module.
2197         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
2198         * lib/areadlink.h (areadlinkat): Declare it.
2199         * MODULES.html.sh (File system functions): Mention it.
2200         * modules/areadlinkat-with-size-tests: New test.
2201         * tests/test-areadlinkat-with-size.c: New file.
2202
2203         xreadlinkat: new module
2204         * modules/xreadlinkat: New module.
2205         * lib/xreadlinkat.c (xreadlinkat): New file.
2206         * lib/xreadlink.h (xreadlinkat): Declare it.
2207         * MODULES.html.sh (File system functions): Mention it.
2208
2209         areadlinkat: new module
2210         * lib/at-func.c (FUNC_FAIL): New define.
2211         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
2212         * modules/areadlinkat: New module.
2213         * lib/linkat.c (areadlinkat): Move...
2214         * lib/areadlinkat.c (areadlinkat): ...to new file.
2215         * lib/areadlink.h (areadlinkat): Declare it.
2216         * modules/linkat (Depends-on): Add areadlinkat.
2217         * MODULES.html.sh (File system functions): Mention it.
2218         * modules/areadlinkat-tests: New test.
2219         * tests/test-areadlinkat.c: New file.
2220
2221         areadlink, areadlink-with-size: add tests
2222         * modules/areadlink-tests: New test.
2223         * modules/areadlink-with-size-tests: Likewise.
2224         * tests/test-areadlink.h: New file.
2225         * tests/test-areadlink.c: Likewise.
2226         * tests/test-areadlink-with-size.c: Likewise.
2227
2228         maint: minor cleanups
2229         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
2230         _UNUSED_PARAMETER_ instead.
2231         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
2232         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
2233         * modules/linkat-tests (Files): Distribute test-link.h.
2234
2235         openat, utimens: whitespace cleanup
2236         * lib/openat.c: Prefer space throughout, rather than mix of 8
2237         spaces vs. tabs.
2238         * lib/at-func.c: Likewise.
2239         * lib/utimens.c: Likewise.
2240
2241         openat: avoid using wrong fd
2242         * lib/openat.c (openat_permissive): Reject user's fd if saving the
2243         working directory chooses same fd.
2244         * lib/at-func.c (AT_FUNC_NAME): Likewise.
2245
2246         mkdir, mkdirat: fix cygwin 1.5.x bug
2247         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
2248         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
2249         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
2250         bug.
2251         (gl_PREREQ_MKDIR): Delete unused macro.
2252         * modules/mkdir (Files): Track file rename.
2253         (configure.ac): Update macro name.
2254         * modules/openat (Depends-on): Add mkdir.
2255         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
2256
2257         mkdir, mkdirat: add tests
2258         * modules/mkdir-tests: New test.
2259         * tests/test-mkdir.h: New file.
2260         * tests/test-mkdir.c: Likewise.
2261         * tests/test-mkdirat.c: Likewise.
2262         * modules/openat-tests (Files): Add new files.
2263         (Makefile.am): Run new test.
2264
2265 2009-10-06  Eric Blake  <ebb9@byu.net>
2266
2267         doc: tweak *at function documentation
2268         * doc/posix-functions/faccessat.texi (faccessat): Mention
2269         known issue with replacement.
2270         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
2271         * doc/posix-functions/linkat.texi (linkat): Likewise.
2272         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
2273         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
2274         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2275         * doc/posix-functions/renameat.texi (renameat): Likewise.
2276         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2277
2278         openat: fix GNU/Hurd bug in unlinkat
2279         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
2280         broken.
2281         * doc/posix-functions/unlink.texi (unlink): Document this.
2282         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
2283
2284         fdopendir: fix GNU/Hurd bug
2285         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
2286         allowing non-directory fds.
2287         * lib/fdopendir.c (rpl_fdopendir): Work around it.
2288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
2289         * modules/dirent (Makefile.am): Substitute it.
2290         * lib/dirent.in.h (fdopendir): Declare replacement.
2291         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
2292         * tests/test-fdopendir.c (main): Test something other than
2293         /dev/null, since on Hurd that behaves like a directory.
2294
2295         test-symlink: port to GNU/Hurd
2296         * tests/test-symlink.h (test_symlink): Relax expected errno.
2297
2298         doc: tweak more cygwin information
2299         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
2300         now compatible with glibc.
2301         * doc/posix-functions/getopt.texi (getopt): Likewise.
2302
2303         getopt-gnu: add another test
2304         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
2305         guarantee behavior relied on by m4.
2306         * tests/test-getopt.c (main): Use it.
2307         * modules/getopt-posix-tests (Depends-on): Add setenv.
2308         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
2309
2310         getopt: fix compilation on darwin
2311         * lib/getopt.in.h (includes): Leave breadcrumbs during system
2312         include.
2313         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
2314         Reported by Ludovic Courtès.
2315
2316 2009-10-06  Bruno Haible  <bruno@clisp.org>
2317
2318         * modules/size_max (Description): Discourage its use.
2319         Reported by Simon Josefsson.
2320
2321 2009-10-06  Jim Meyering  <meyering@redhat.com>
2322
2323         linkat: avoid compilation failure
2324         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
2325
2326 2009-10-05  Eric Blake  <ebb9@byu.net>
2327
2328         linkat: support Linux 2.6.17
2329         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
2330         linkat on Linux, but allow cache variable override.
2331         * lib/linkat.c (rpl_linkat): Define override.
2332         * modules/linkat (Depends-on): Add symlinkat.
2333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
2334         * modules/unistd (Makefile.am): Substitute it.
2335         * lib/unistd.in.h (linkat): Declare replacement.
2336         Reported by Pádraig Brady.
2337
2338         quotearg: port test to systems with C.UTF-8 locale
2339         * tests/test-quotearg.c (struct result_strings): Add another
2340         member, differentiating between C.ASCII and C.UTF-8 handling.
2341         (compare_strings): Add parameter.
2342         (main): Adjust all callers.
2343
2344         getopt: avoid clash with FreeBSD _getopt_internal
2345         * lib/getopt.in.h (_getopt_internal): Override the name.
2346         * lib/getopt_int.h (includes): Pick up any overrides.
2347         Reported by Reuben Thomas.
2348
2349         hash: allow C89 compilation
2350         * lib/hash.c (check_tuning): Move declaration before statement.
2351         Reported by Reuben Thomas.
2352
2353 2009-10-05  Karl Berry  <karl@gnu.org>
2354
2355         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
2356
2357 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
2358             Bruno Haible  <bruno@clisp.org>
2359
2360         * lib/uname.c (uname): Use a table-driven algorithm to compute
2361         Windows NT versions.
2362
2363 2009-10-04  Bruno Haible  <bruno@clisp.org>
2364
2365         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
2366         program_invocation_short_name.
2367         * modules/progname (configure.ac): Test for presence of
2368         program_invocation_short_name.
2369         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2370
2371 2009-10-04  Bruno Haible  <bruno@clisp.org>
2372
2373         * lib/progname.c (set_program_name): Fix comment.
2374         Reported by Jim Meyering.
2375
2376 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
2377             Bruno Haible  <bruno@clisp.org>
2378
2379         * lib/uname.c: Include <string.h>.
2380         (uname): Do only one call to GetVersionEx in the common case.
2381
2382 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
2383             Bruno Haible  <bruno@clisp.org>
2384
2385         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
2386         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
2387         (uname): Add support for Windows CE and various non-x86 CPU types.
2388
2389 2009-10-03  Bruno Haible  <bruno@clisp.org>
2390
2391         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
2392         invocation to tests/configure.ac.
2393         Reported by Ian Beckwith <ianb@erislabs.net>.
2394
2395 2009-10-02  Eric Blake  <ebb9@byu.net>
2396
2397         fchdir: avoid compiler warning
2398         * lib/fchdir.c (canonicalize_file_name)
2399         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
2400
2401         test-open: support mingw errno values
2402         * tests/test-open.h (test_open): Relax test.
2403         * tests/test-fopen.h (test_fopen): Likewise.
2404         * tests/test-openat-safer.c (main): Likewise.
2405
2406         open: fix opening directory on mingw
2407         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
2408
2409         test-open: on GNU/Hurd, /dev/null is a directory
2410         * tests/test-fopen.h (main): Rename...
2411         (test_fopen): ...to this.  Use a guaranteed non-directory when
2412         confirming open behavior on trailing slash.
2413         * tests/test-openat-safer.c (main): Likewise.
2414         * tests/test-open.h (main): Likewise....
2415         (test_open): ...to this.
2416         * tests/test-fopen.c (main): Adjust caller.
2417         * tests/test-fopen-safer.c (main): Likewise.
2418         * tests/test-open.c (main): Likewise.
2419         * tests/test-fcntl-safer.c (main): Likewise.
2420         Reported by Samuel Thibault.
2421
2422         rename, fchdir: don't ignore chdir failure
2423         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
2424         * lib/rename.c (rpl_rename) [W32]: Likewise.
2425         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
2426         an empty destination directory if source cannot be renamed,
2427         although there is still possibility for failure.
2428         * doc/posix-functions/rename.texi (rename): Document the race.
2429         Reported by Jim Meyering.
2430
2431         maint: cleanup whitespace in recent commits
2432         * lib/rename.c (rpl_rename): Remove tabs.
2433         * tests/test-link.h (test_link): Likewise.
2434         * lib/fchdir.c (get_name): Likewise.
2435         Reported by Jim Meyering.
2436
2437 2009-10-02  Ben Pfaff  <blp@gnu.org>
2438
2439         relocatable-prog-wrapper: Add missing dependency on
2440         double-slash-root.
2441         * modules/relocatable-prog-wrapper: Add dependency.
2442         Reported by Ian Beckwith <ianb@erislabs.net>.
2443
2444 2009-10-02  Eric Blake  <ebb9@byu.net>
2445
2446         renameat: fix Solaris bugs
2447         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
2448         needed fixing.
2449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
2450         * modules/stdio (Makefile.am): Substitute it.
2451         * lib/stdio.in.h (renameat): Declare replacement.
2452         * lib/renameat.c (rpl_renameat): Implement fix.
2453
2454         renameat: new module
2455         * modules/renameat: New file.
2456         * lib/renameat.c (renameat): Likewise.
2457         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
2458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
2459         * modules/stdio (Makefile.am): Substitute them.
2460         * lib/stdio.in.h (renameat): Declare it.
2461         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2462         * doc/posix-functions/renameat.texi (renameat): Likewise.
2463         * modules/renameat-tests: New test.
2464         * tests/test-renameat.c: Likewise.
2465
2466         rename: fix mingw bugs
2467         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
2468         directory overwrite bugs.
2469
2470         rename: fix another cygwin 1.5 bug
2471         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
2472         checks.
2473         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
2474         unnecessary cygwin workarounds.  Also work around bug with moving
2475         full directory onto an empty one.
2476         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
2477
2478         rename-dest-slash: merge into rename module
2479         * modules/rename-dest-slash (Status): Mark obsolete.
2480         (Depends-on): Add rename.
2481         (Files): Let rename do it all.
2482         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
2483         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
2484         * m4/rename-dest-slash.m4: ...so this file can be deleted.
2485         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
2486         * lib/rename.c (rpl_rename): Update comments.
2487
2488         rename: fix cygwin 1.5.x bugs
2489         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
2490         * lib/rename.c (rpl_rename): Work around them.
2491         * modules/rename (Depends-on): Add same-inode.
2492
2493         rename: fix Solaris 10 bug
2494         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
2495         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
2496         was the only bug.
2497
2498         rename: fix Solaris 9 bug
2499         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
2500         on non-directory.  Avoid calling exit.
2501         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
2502         strdup.
2503         * modules/rename-tests (Depends-on): Drop lstat.
2504         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
2505         (gl_PREREQ_RENAME): Delete unused macro.
2506
2507         rename-dest-slash: fix NetBSD bug
2508         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
2509         links.
2510         * modules/rename-dest-slash (Depends-on): Add same-inode.
2511
2512         rename-tests: new test, exposes several platform bugs
2513         * modules/rename-tests: New file.
2514         * tests/test-rename.h: Likewise.
2515         * tests/test-rename.c: Likewise.
2516         * doc/posix-functions/rename.texi (rename): Improve documentation,
2517         including bugs that will eventually be fixed in gnulib.
2518
2519 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
2520
2521         * lib/uname.c: Include <stdlib.h>
2522         (uname): Assume version info is available.
2523
2524 2009-10-02  Jim Meyering  <meyering@redhat.com>
2525
2526         gnu-web-doc-update: correct --help output
2527         * build-aux/gnu-web-doc-update: Make --help output relevant.
2528
2529         gnu-web-doc-update: add standard options
2530         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
2531
2532         gnu-web-doc-update: New module.
2533         Use this script to automatically update the on-line web documentation
2534         for your GNU project at http://www.gnu.org/software/$pkg/manual/
2535         * modules/gnu-web-doc-update: New file, from coreutils.
2536         * build-aux/gnu-web-doc-update: New script.
2537
2538 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
2539
2540         link: LoadLibrary is not needed.
2541         * lib/link.c: Use GetModuleHandle.
2542
2543 2009-10-01  Eric Blake  <ebb9@byu.net>
2544
2545         getopt: bump serial number
2546         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
2547         change.
2548
2549         tests: tighten link, rmdir, and remove tests
2550         * tests/test-link.h (includes): No need to use <config.h> here.
2551         Clean up if directory hard link was created, otherwise test for
2552         trailing '.'.
2553         * tests/test-linkat.c (main): Simplify.
2554         * tests/test-remove.c (main): Enhance test for trailing '.'.
2555         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2556
2557 2009-10-01  Jim Meyering  <meyering@redhat.com>
2558
2559         maint.mk: requiring "make major" was annoying, for a "minor" release.
2560         What is intended is "stable", to contrast with alpha and beta,
2561         so require "make stable", not "make major".
2562         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
2563         (get_tool_versions): Likewise.
2564         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
2565
2566 2009-09-30  Ben Pfaff  <blp@gnu.org>
2567
2568         Fix broken build of replacement for Windows tmpfile().
2569         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
2570         flags argument added along with the 'mkostemp' module.
2571
2572 2009-09-28  Bruno Haible  <bruno@clisp.org>
2573
2574         Avoid identifier clash with POSIX function 'remove' defined as a macro.
2575         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
2576         to 'remove_elt'.
2577         (gl_list_remove): Update.
2578         * lib/gl_list.c (gl_list_remove): Update.
2579         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
2580         to 'remove_elt'.
2581         (gl_oset_remove): Update.
2582         * lib/gl_list.c (gl_oset_remove): Update.
2583         Reported by Eric Blake.
2584
2585 2009-09-28  Eric Blake  <ebb9@byu.net>
2586
2587         doc: mention yet more cygwin 1.7 status
2588         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
2589         cygwin.
2590         * doc/glibc-functions/execvpe.texi (execvpe): New file.
2591         * doc/gnulib.texi (Glibc unistd.h): Mention it.
2592
2593         argp: fix test failure
2594         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
2595         that are not upper-case.  Pass correct range to tolower.
2596
2597 2009-09-27  Jim Meyering  <meyering@redhat.com>
2598
2599         test-yesno: work around sparc-dash here-document infelicity
2600         Without this change, the literal \177 byte in a here document
2601         would make dash 0.5.5.1-3 access uninitialized memory.
2602         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
2603         Instead, use a marker, "@", and filter through tr to create the desired
2604         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
2605
2606 2009-09-27  Bruno Haible  <bruno@clisp.org>
2607
2608         Disable untested support for new flavours of ACLs on AIX.
2609         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
2610         progress.
2611         * lib/set-mode-acl.c (qset_acl): Likewise.
2612
2613 2008-12-07  Bruno Haible  <bruno@clisp.org>
2614
2615         Add support for new flavours of ACLs on AIX. (Untested.)
2616         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
2617         (file_has_acl): Add support for newer AIX.
2618         * lib/set-mode-acl.c (qset_acl): Likewise.
2619         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
2620         Rainer Tammer <tammer@tammer.net>.
2621
2622 2009-09-26  Eric Blake  <ebb9@byu.net>
2623
2624         argp: fix compilation of getopt
2625         * lib/getopt.in.h (includes): Use different guard than glibc.
2626         Reported by Sergey Poznyakoff.
2627
2628         doc: mention more cygwin 1.7 status
2629         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
2630         bug.
2631         * doc/posix-functions/execl.texi (execl): Likewise.
2632         * doc/posix-functions/execle.texi (execle): Likewise.
2633         * doc/posix-functions/execlp.texi (execlp): Likewise.
2634         * doc/posix-functions/execv.texi (execv): Likewise.
2635         * doc/posix-functions/execve.texi (execve): Likewise.
2636         * doc/posix-functions/execvp.texi (execvp): Likewise.
2637         * doc/glibc-functions/canonicalize_file_name.texi
2638         (canonicalize_file_name): Cygwin 1.7 now provides this.
2639         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
2640         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
2641         on AT_SYMLINK_NOFOLLOW.
2642
2643 2009-09-24  Eric Blake  <ebb9@byu.net>
2644
2645         test-linkat: make test more robust
2646         * tests/test-linkat.c (main): Avoid collision with EEXIST.
2647
2648         getopt: fix inclusion guards for cygwin
2649         * modules/getopt-posix (Depends-on): Add include-next.
2650         (Makefile.am): Substitute more items in replacement header.
2651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
2652         <getopt.h>.
2653         * lib/getopt.in.h (includes): Use split inclusion guard, and
2654         prefer <getopt.h> over include <unistd.h> when one is present.
2655         (option): Also override name of 'struct option'.
2656
2657         same-inode: revert prior change; it is not yet ready
2658         * NEWS: Undo mention of this change.
2659         * lib/same-inode.h (same-inode.h): Undo tri-state change.
2660         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
2661         * lib/cycle-check.c (cycle_check): Likewise.
2662         * lib/same.c (same_name): Likewise.
2663         * lib/at-func2.c (at_func2): Likewise.
2664
2665 2009-09-23  Eric Blake  <ebb9@byu.net>
2666
2667         linkat: new module
2668         * modules/linkat: New file.
2669         * lib/at-func2.c (at_func2): Likewise.
2670         * lib/linkat.c (linkat): Likewise.
2671         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2672         * lib/openat-priv.h (at_func2): Add declaration.
2673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
2674         * modules/unistd (Makefile.am): Substitute them.
2675         * lib/unistd.in.h (linkat): Declare it.
2676         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2677         * doc/posix-functions/linkat.texi (linkat): Likewise.
2678         * doc/posix-functions/link.texi (link): Tweak wording.
2679         * tests/test-link.c (main): Move guts...
2680         * tests/test-link.h (test_link): ...into new file.
2681         * modules/linkat-tests: New test.
2682         * tests/test-linkat.c: Likewise.
2683         * modules/link-tests (Files): Ship new file.
2684         (Depends-on): Add stdbool.
2685
2686         dirname: add library-safe mdir_name
2687         * lib/dirname.h (mdir_name): New prototype.
2688         * lib/dirname.c (dir_name): Move guts...
2689         (mdir_name): ...to new function that avoids xalloc_die.
2690
2691         fchdir: another mingw fix
2692         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
2693         * lib/fchdir.c (get_name): New helper method; skips canonicalize
2694         on mingw (where it has not yet been ported), and make it optional
2695         elsewhere.
2696         (_gl_register_fd): Use it.
2697
2698         same-inode: make SAME_INODE tri-state, to port to mingw
2699         * NEWS: Mention this change.
2700         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
2701         st_ino always being 0.
2702         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
2703         * lib/cycle-check.c (cycle_check): Likewise.
2704         * lib/same.c (same_name): Likewise.
2705
2706         lstat: avoid mingw compilation error
2707         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
2708         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
2709         lstat ourselves.
2710         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
2711         was adequate.
2712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
2713         the checks for lstat.
2714         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
2715
2716         link: fix test failure on Solaris 9
2717         * lib/link.c (rpl_link): Don't assume link will catch bogus
2718         trailing slash on source.
2719
2720         test-symlinkat: enhance test
2721         * tests/test-readlink.c (main): Move guts...
2722         * tests/test-readlink.h (test_readlink): ...into new file.
2723         * tests/test-symlink.c (main): Move guts...
2724         * tests/test-symlink.h (test_symlink): ...into new file.
2725         * tests/test-symlinkat.c (main): Use new files for further
2726         coverage.
2727         (do_symlink, do_readlink): New helper functions.
2728         * modules/symlink-tests (Files): Ship new file.
2729         (Depends-on): Add stdbool.
2730         * modules/readlink-tests (Files): Ship new file.
2731         (Depends-on): Add stdbool.
2732         * modules/symlinkat-tests (Files): Use new files.
2733
2734 2009-09-23  Eric Blake  <ebb9@byu.net>
2735
2736         readlink: document portability issue with symlink length
2737         * doc/posix-functions/lstat.texi (lstat): Mention that some file
2738         systems have bogus st_size on symlinks, and mention the
2739         areadlink-with-size module.
2740         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
2741         * doc/posix-functions/readlink.texi (readlink): Mention the
2742         areadlink module, and ERANGE failure.
2743         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2744         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
2745
2746         readlink: fix Solaris 9 bug with trailing slash
2747         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
2748         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
2749         * doc/posix-functions/readlink.texi (readlink): Document this.
2750         * modules/readlink-tests: New test.
2751         * tests/test-readlink.c: Likewise.
2752
2753         readlink: fix cygwin 1.5.x bug with return type
2754         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
2755         * lib/unistd.in.h (readlink): Use ssize_t.
2756         * lib/readlink.c (readlink): Likewise.
2757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2758         * modules/unistd (Makefile.am): Substitute it.
2759         * lib/unistd.in.h (readlink): Declare replacement.
2760         * doc/posix-functions/readlink.texi (readlink): Document this.
2761
2762         symlink: use throughout gnulib
2763         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
2764         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
2765         symlink is not used.
2766         * modules/symlinkat (Depends-on): Add symlink.
2767         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2768         * modules/canonicalize-tests (Depends-on): Likewise.
2769         * modules/lstat-tests (Depends-on): Likewise.
2770         * modules/openat-tests (Depends-on): Likewise.
2771         * modules/remove-tests (Depends-on): Likewise.
2772         * modules/rmdir-tests (Depends-on): Likewise.
2773         * modules/unlink-tests (Depends-on): Likewise.
2774         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
2775         * tests/test-canonicalize.c (symlink): Likewise.
2776         * tests/test-fstatat.c (symlink): Likewise.
2777         * tests/test-lstat.c (symlink): Likewise.
2778         * tests/test-remove.c (symlink): Likewise.
2779         * tests/test-rmdir.c (symlink): Likewise.
2780         * tests/test-unlink.c (symlink): Likewise.
2781         * tests/test-unlinkat.c (symlink): Likewise.
2782
2783         symlink: new module, for Solaris 9 bug
2784         * modules/symlink: New file.
2785         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2786         * lib/symlink.c: Likewise.
2787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
2788         * modules/unistd (Makefile.am): Substitute them.
2789         * lib/unistd.in.h (symlink): Declare replacement.
2790         * MODULES.html.sh (File system functions): Mention it.
2791         * doc/posix-functions/symlink.texi (symlink): Likewise.
2792         * modules/symlink-tests: New test.
2793         * tests/test-symlink.c: Likewise.
2794
2795 2009-09-23  Bruno Haible  <bruno@clisp.org>
2796
2797         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
2798         when needed.
2799         Test case: gnulib-tool --import --with-tests atexit inttypes.
2800         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
2801
2802 2009-09-23  Bruno Haible  <bruno@clisp.org>
2803
2804         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
2805         subcommand, not in a subshell.
2806
2807 2009-09-22  Eric Blake  <ebb9@byu.net>
2808
2809         unistd: sort replacement declarations
2810         * lib/unistd.in.h: Sort declarations.
2811
2812         open, openat: minor optimization
2813         * lib/open.c (open): If open succeeded, len is non-zero.
2814         * lib/openat.c (rpl_openat): Likewise.
2815
2816         link-follow: ensure correct result
2817         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
2818         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
2819         distinguish between possible failures.
2820
2821 2009-09-21  Eric Blake  <ebb9@byu.net>
2822
2823         fts: avoid compiler warning
2824         * lib/fts.c (dirent_inode_sort_may_be_useful)
2825         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
2826
2827 2009-09-19  Bruno Haible  <bruno@clisp.org>
2828
2829         * lib/progreloc.c (canonicalize_file_name): New declaration.
2830
2831 2009-09-19  Eric Blake  <ebb9@byu.net>
2832
2833         link: fix quoting
2834         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
2835
2836         openat: fix openat bugs on Solaris 9
2837         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
2838         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
2839         * modules/openat (Depends-on): Add open.
2840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
2841         * modules/fcntl-h (Makefile.am): Substitute it.
2842         * lib/fcntl.in.h (openat): Declare replacement.
2843         * doc/posix-functions/openat.texi (openat): Document this.
2844
2845         openat: move fstatat and unlinkat into correct files
2846         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
2847         compiled.
2848         * lib/openat.c (fstatat, unlinkat): Move...
2849         * lib/fstatat.c (fstatat): ...into correct files.
2850         * lib/unlinkat.c (unlinkat): Likewise.
2851
2852         openat: fix unlinkat bugs on Solaris 9
2853         * lib/unlinkat.c (unlinkat): New file.
2854         * modules/openat (Depends-on): Add unlink.
2855         (Files): Distribute it.
2856         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
2857         trailing slash behavior is broken.
2858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2859         * modules/unistd (Makefile.am): Substitute it.
2860         * lib/unistd.in.h (unlinkat): Declare replacement.
2861         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
2862
2863         openat: fix fstatat bugs on Solaris 9
2864         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
2865         stat.
2866         * doc/posix-functions/fstatat.texi (fstatat): Document this.
2867
2868         test-unlinkat: enhance test, to expose Solaris 9 bug
2869         * tests/test-unlink.c (main): Factor guts...
2870         * tests/test-unlink.h (test_rmdir_func): ...into new file.
2871         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
2872         * tests/test-rmdir.c (main): Adjust caller.
2873         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
2874         (unlinker): New helper function.
2875         (rmdirat): Enhance check.
2876         * modules/rmdir-tests (Depends-on): Add stdbool.
2877         * modules/unlink-tests (Depends-on): Likewise.
2878         (Files): Add test-unlink.h.
2879         * modules/openat-tests (Files): Likewise.
2880         (Depends-on): Add unlinkdir.
2881
2882         test-fstatat: new test, to expose Solaris 9 bugs
2883         * tests/test-stat.c (main): Factor guts...
2884         * tests/test-stat.h (test_stat_func): ...into new file.
2885         * tests/test-lstat.c (main): Factor guts...
2886         * tests/test-lstat.h (test_lstat_func): ...into new file.
2887         * tests/test-fstatat.c: New file.
2888         * modules/stat-tests (Files): Add test-stat.h.
2889         * modules/lstat-tests (Files): Add test-lstat.h.
2890         (Depends-on): Add stdbool.
2891         * modules/openat-tests (Depends-on): Add pathmax.
2892         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
2893         (Makefile.am): Run new test.
2894
2895         remove: new module, for mingw and Solaris 9 bugs
2896         * modules/remove: New file.
2897         * lib/remove.c: Likewise.
2898         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
2899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
2900         * modules/stdio (Makefile.am): Use them.
2901         * lib/stdio.in.h (remove): Declare replacement.
2902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2903         * doc/posix-functions/remove.texi (remove): Likewise.
2904         * modules/remove-tests: New test.
2905         * tests/test-remove.c: Likewise.
2906
2907         unlink: new module, for Solaris 9 bug
2908         * modules/unlink: New file.
2909         * lib/unlink.c: Likewise.
2910         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
2912         * modules/unistd (Makefile.am): Use them.
2913         * lib/unistd.in.h (stat): Declare replacement.
2914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2915         * doc/posix-functions/unlink.texi (unlink): Likewise.
2916         * modules/unlink-tests: New test.
2917         * tests/test-unlink.c: Likewise.
2918
2919         lstat: fix Solaris 9 bug
2920         * lib/lstat.c (lstat): Also check for trailing slash on
2921         non-symlink, non-directories.  Use stat module to simplify logic.
2922         * doc/posix-functions/lstat.texi (lstat): Document it.
2923         * modules/lstat-tests (Depends-on): Add errno, same-inode.
2924         (configure.ac): Check for symlink.
2925         * tests/test-lstat.c (main): Add more tests.
2926
2927         stat: add as dependency to other modules
2928         * modules/chown (Depends-on): Add stat.
2929         * modules/euidaccess (Depends-on): Likewise.
2930         * modules/fchdir (Depends-on): Likewise.
2931         * modules/isdir (Depends-on): Likewise.
2932         * modules/link (Depends-on): Likewise.
2933         * modules/lstat (Depends-on): Likewise.
2934         * modules/mkdir-p (Depends-on): Likewise.
2935         * modules/modechange (Depends-on): Likewise.
2936         * modules/open (Depends-on): Likewise.
2937         * modules/readlink (Depends-on): Likewise.
2938         * modules/same (Depends-on): Likewise.
2939
2940         stat: fix Solaris 9 bug
2941         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
2942         slash.
2943         * lib/stat.c (rpl_stat): Work around it.
2944         * doc/posix-functions/stat.texi (stat): Update documentation.
2945
2946         stat: new module, for mingw bug
2947         * modules/stat: New file.
2948         * lib/stat.c: Likewise.
2949         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2951         * modules/sys_stat (Makefile.am): Use them.
2952         * lib/sys_stat.in.h (stat): Declare replacement.
2953         * lib/openat.c (fstatat): Deal with lstat and stat being function
2954         macros.
2955         * modules/openat (Depends-on): Add inline.
2956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2957         * doc/posix-functions/stat.texi (stat): Likewise.
2958         * modules/stat-tests: New test.
2959         * tests/test-stat.c: Likewise.
2960
2961 2009-09-19  Jim Meyering  <meyering@redhat.com>
2962
2963         syntax-check: detect unnecessary inclusion of canonicalize.h
2964         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
2965
2966 2009-09-19  Eric Blake  <ebb9@byu.net>
2967
2968         canonicalize-lgpl: adjust clients to use correct header
2969         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2970         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
2971         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
2972         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
2973         * lib/progreloc.c (includes): Likewise.
2974
2975 2009-09-19  Jim Meyering  <meyering@redhat.com>
2976
2977         test-posixtm.c: correct a comment
2978         * tests/test-posixtm.c: Correct first-line comment.
2979         Spotted by Eric Blake.
2980
2981 2009-09-16  Jim Meyering  <meyering@redhat.com>
2982
2983         posixtm-tests: make T const-correct; add a test case
2984         * tests/test-posixtm.c (T): Declare const.
2985         Add a test for -(2^31+1).
2986         Remove useless can-succeed-only-in-2002 test.
2987
2988         posixtm-tests: adjust the sole failing test
2989         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
2990         expected output matches what mktime now produces.  Cross-checked via
2991         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
2992
2993         posixtm: move #ifdef'd tests into a new module
2994         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
2995         * tests/test-posixtm.c: ... this new file.
2996         * modules/posixtm-tests: New module.
2997
2998 2009-09-19  Eric Blake  <ebb9@byu.net>
2999
3000         openat: simplify use of at-func.c
3001         * lib/at-func.c (includes): Include prerequisites here, to
3002         simplify requirements on client files.
3003         * lib/openat-priv.h: Add double-inclusion guard.
3004         * lib/faccessat.c (includes): Simplify.
3005         * lib/fchmodat.c (includes): Likewise.
3006         * lib/fchownat.c (includes): Likewise.
3007         * lib/mkdirat.c (includes): Likewise.
3008         * lib/mkfifoat.c (includes): Likewise.
3009         * lib/symlinkat.c (includes): Likewise.
3010
3011         openat: allow return of fd 0
3012         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
3013         * modules/save-cwd (Depends-on): Replace fcntl-safer with
3014         unistd-safer.
3015         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
3016         <fcntl.h>; this module does not leak fds.
3017         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
3018         must be allowed to return 0, leaving openat_safer to add the
3019         safety.
3020         (openat_permissive): Avoid writing to just-opened fd 2 if
3021         restoring the current directory fails.
3022         * lib/openat-die.c (openat_restore_fail): Add comment.
3023         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
3024         (save_cwd): Guarantee safe fd, but without use of open_safer.
3025         * tests/test-openat.c: New test.
3026         * modules/openat-tests (Files, Makefile.am): Distribute and build
3027         new file.
3028
3029         relocatable-prog-wrapper: fix build
3030         * modules/relocatable-prog-wrapper (Files): Update name of
3031         canonicalize m4 file, broken on 2009-09-17.
3032         Reported by emad hajjar <aleppos@hotmail.com>.
3033
3034 2009-09-19  Bruno Haible  <bruno@clisp.org>
3035
3036         * lib/safe-alloc.h: Use the standard header with GPL copyright.
3037         * lib/safe-alloc.c: Likewise.
3038         Reported by Ian Beckwith <ianb@erislabs.net>.
3039
3040 2009-09-18  Bruno Haible  <bruno@clisp.org>
3041
3042         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
3043         Reported by <erobles@sensacd.com.mx>.
3044
3045 2009-09-17  Eric Blake  <ebb9@byu.net>
3046
3047         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
3048         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
3049         slashes when checking if last component is missing.
3050         * tests/test-canonicalize.c (main): Test this.
3051
3052         canonicalize, canonicalize-lgpl: honor // if distinct from /
3053         * modules/canonicalize (Files): Add double-slash-root.m4.
3054         * modules/canonicalize-lgpl (Files): Likewise.
3055         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3056         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
3057         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
3058         fallback definition.
3059         (canonicalize_filename_mode): Use it to protect //.
3060         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
3061         (__realpath): Likewise.
3062         * tests/test-canonicalize.c (main): Test this.
3063         * tests/test-canonicalize-lgpl.c (main): Likewise.
3064         * modules/canonicalize-tests (Depends-on): Add same-inode.
3065         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3066
3067         canonicalize-lgpl: fix glibc bug with trailing slash
3068         * m4/canonicalize-lgpl.m4: Move contents...
3069         * m4/canonicalize.m4: ...here.
3070         (gl_CANONICALIZE_LGPL): Factor realpath check...
3071         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
3072         glibc 2.3.5 bug, fixed 2005-04-27.
3073         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
3074         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
3075         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
3076         * modules/canonicalize-lgpl (Files): Manage file rename.
3077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
3078         * modules/stdlib (Makefile.am): Substitute witness.
3079         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
3080         is needed.
3081         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
3082         replacement is required.
3083         * lib/canonicalize.c (canonicalize_file_name): Likewise.
3084         * doc/glibc-functions/canonicalize_file_name.texi
3085         (canonicalize_file_name): Document this.
3086         * doc/posix-functions/realpath.texi (realpath): Likewise.
3087
3088         canonicalize-lgpl: reject non-directory with trailing slash
3089         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
3090         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
3091         catches failures in glibc 2.3.5.
3092         * tests/test-canonicalize.c (main): Likewise.
3093
3094         canonicalize-lgpl: use native realpath if it works
3095         * lib/canonicalize-lgpl.c (realpath): Guard with
3096         FUNC_REALPATH_WORKS.
3097         * lib/stdlib.in.h (realpath): Make declaration optional based on
3098         HAVE_REALPATH.
3099         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
3100         native realpath works.
3101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
3102         * modules/stdlib (Makefile.am): Substitute witness.
3103
3104         canonicalize, canonicalize-lgpl: use <stdlib.h>
3105         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
3106         (Include): Mention <stdlib.h>.
3107         (configure.ac): Mention functions we provide.
3108         * modules/canonicalize (configure.ac): Likewise.
3109         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
3110         realpath if canonicalize_file_name is missing.
3111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
3112         * modules/stdlib (Makefile.am): Substitute witnesses.
3113         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
3114         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
3115         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
3116         * NEWS: Document this.
3117         * doc/glibc-functions/canonicalize_file_name.texi
3118         (canonicalize_file_name): Likewise.
3119         * doc/posix-functions/realpath.texi (realpath): Likewise.
3120         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
3121
3122         test-canonicalize: consolidate into single C program
3123         * tests/test-canonicalize.sh: Delete; move setup into...
3124         * tests/test-canonicalize.c (main): ...the program, making it
3125         easier to run in debugger.  Add some tests.
3126         * modules/canonicalize-tests (Files): Remove unused file.
3127         (Depends-on): Add progname.
3128         (configure.ac, Makefile.am): Simplify.
3129
3130         test-canonicalize-lgpl: consolidate into single C program
3131         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
3132         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
3133         easier to run in debugger.  Add some tests.
3134         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
3135         (configure.ac, Makefile.am): Simplify.
3136
3137         canonicalize: avoid resolvepath
3138         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
3139         unnecessary checks.
3140         * lib/canonicalize.c (includes): Simplify.
3141         (canonicalize_file_name): Drop resolvepath implementation.
3142         * modules/canonicalize (Depends-on): Drop filenamecat.
3143
3144         canonicalize: don't lose errno
3145         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
3146         over calls to free.
3147
3148         canonicalize: simplify errno handling
3149         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
3150         assignment.
3151
3152         canonicalize, canonicalize-lgpl: update module dependencies
3153         * modules/canonicalize (Depends-on): Add extensions, lstat,
3154         pathmax, stdlib.
3155         (Files): Drop pathmax.h.
3156         (configure.ac): Adjust macro name.
3157         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
3158         lstat, stdlib, sys_stat.
3159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
3160         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
3161         extensions.
3162         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
3163         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
3164         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
3165         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
3166         declaration, if available.
3167         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
3168         we can rely on the readlink module.
3169         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
3170         (includes): Use <unistd.h> unconditionally.
3171
3172 2009-09-17  Eric Blake  <ebb9@byu.net>
3173
3174         maint: make Include sections of modules consistent
3175         * modules/alloca: Use only header name; no need to list #include.
3176         * modules/alloca-opt: Likewise.
3177         * modules/arpa_inet: Likewise.
3178         * modules/canon-host: Likewise.
3179         * modules/configmake: Likewise.
3180         * modules/dirent: Likewise.
3181         * modules/eealloc: Likewise.
3182         * modules/environ: Likewise.
3183         * modules/fchdir: Likewise.
3184         * modules/fcntl: Likewise.
3185         * modules/fcntl-h: Likewise.
3186         * modules/gethrxtime: Likewise.
3187         * modules/gettime: Likewise.
3188         * modules/ignore-value: Likewise.
3189         * modules/inet_ntop: Likewise.
3190         * modules/inet_pton: Likewise.
3191         * modules/inttypes: Likewise.
3192         * modules/isnand-nolibm: Likewise.
3193         * modules/isnanf-nolibm: Likewise.
3194         * modules/mbchar: Likewise.
3195         * modules/mbfile: Likewise.
3196         * modules/mbiter: Likewise.
3197         * modules/mbuiter: Likewise.
3198         * modules/netdb: Likewise.
3199         * modules/netinet_in: Likewise.
3200         * modules/nproc: Likewise.
3201         * modules/pagealign_alloc: Likewise.
3202         * modules/poll: Likewise.
3203         * modules/printf-frexp: Likewise.
3204         * modules/pthread: Likewise.
3205         * modules/putenv: Likewise.
3206         * modules/random_r: Likewise.
3207         * modules/relocatable-prog: Likewise.
3208         * modules/search: Likewise.
3209         * modules/select: Likewise.
3210         * modules/selinux-h: Likewise.
3211         * modules/settime: Likewise.
3212         * modules/signal: Likewise.
3213         * modules/size_max: Likewise.
3214         * modules/socklen: Likewise.
3215         * modules/ssize_t: Likewise.
3216         * modules/stdarg: Likewise.
3217         * modules/stdbool: Likewise.
3218         * modules/stddef: Likewise.
3219         * modules/stdint: Likewise.
3220         * modules/stdio: Likewise.
3221         * modules/stdlib: Likewise.
3222         * modules/string: Likewise.
3223         * modules/strings: Likewise.
3224         * modules/sys_file: Likewise.
3225         * modules/sys_ioctl: Likewise.
3226         * modules/sys_select: Likewise.
3227         * modules/sys_socket: Likewise.
3228         * modules/sys_stat: Likewise.
3229         * modules/sys_time: Likewise.
3230         * modules/sys_times: Likewise.
3231         * modules/sys_utsname: Likewise.
3232         * modules/sys_wait: Likewise.
3233         * modules/sysexits: Likewise.
3234         * modules/time: Likewise.
3235         * modules/times: Likewise.
3236         * modules/tmpfile: Likewise.
3237         * modules/trim: Likewise.
3238         * modules/unistd: Likewise.
3239         * modules/wchar: Likewise.
3240         * modules/wctype: Likewise.
3241
3242 2009-09-17  Bruno Haible  <bruno@clisp.org>
3243
3244         Make getdate.y compile on QNX and NetBSD 5 / i386.
3245         * m4/getdate.m4 (gl_GETDATE): Conditionally define
3246         TIME_T_FITS_IN_LONG_INT.
3247         * lib/getdate.y (long_time_t): New type.
3248         (relative_time): Change type of 'seconds' field to long_time_t.
3249         (get_date): Update types of local variables. Check against overflow
3250         during conversion from long_time_t to time_t.
3251         Reported by Matt Kraai <kraai@ftbfs.org>
3252         and Hasso Tepper <hasso@netbsd.org>.
3253
3254 2009-09-17  Bruno Haible  <bruno@clisp.org>
3255
3256         * modules/COPYING: Update copyright years.
3257         * modules/README: Likeiwse.
3258         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
3259         Reported by Ian Beckwith <ianb@erislabs.net>.
3260
3261 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
3262
3263         * users.txt: Update references for gnuit package.
3264
3265 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
3266
3267         * m4/getdelim.m4: Fix typo in copyright line.
3268
3269 2009-09-17  Bruno Haible  <bruno@clisp.org>
3270
3271         * lib/atoll.c: Use the standard header with GPL copyright.
3272         * lib/argz.in.h: Likewise.
3273         * lib/glob.c: Likewise.
3274         * lib/glob-libc.h: Likewise.
3275         * lib/random_r.c: Likewise.
3276         * lib/siglist.h: Likewise.
3277         * lib/strsignal.c: Likewise.
3278         Reported by Ian Beckwith <ianb@erislabs.net>.
3279
3280 2009-09-17  Eric Blake  <ebb9@byu.net>
3281
3282         rmdir: ensure correct dependency order
3283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
3284
3285 2009-09-17  Bruno Haible  <bruno@clisp.org>
3286
3287         Disable assertion that fails on NetBSD 5 / i386.
3288         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
3289         Reported by Sam Steingold <sds@gnu.org>
3290         and Hasso Tepper <hasso@netbsd.org>.
3291
3292 2009-09-16  Eric Blake  <ebb9@byu.net>
3293
3294         unlinkdir: port to mingw
3295         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
3296         on which no one can unlink a directory.
3297
3298         stdlib: sort witness names
3299         * modules/stdlib (Makefile.am): Sort replacements.
3300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
3301         * lib/stdlib.in.h: Likewise.
3302
3303         parse-duration-tests: avoid link failure
3304         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
3305         LIBINTL.
3306         Reported by Tom G. Christensen.
3307
3308         openat-tests: ensure unlinkat behaves like rmdir
3309         * tests/test-rmdir.c (main): Factor guts...
3310         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
3311         * modules/rmdir-tests (Files): Ship new file.
3312         * modules/openat-tests: New test.
3313         * tests/test-unlinkat.c: Likewise.
3314
3315         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
3316         * modules/rmdir-errno (Status, Notice): Now obsolete.
3317
3318         rmdir: work around cygwin 1.5.x and mingw bugs
3319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
3320         * lib/rmdir.c (rmdir): Work around it.
3321         * modules/rmdir (Status, Notice): No longer obsolete.
3322         (Files): Add dos.m4.
3323         (Depends-on): Add unistd.
3324         (configure.ac): Set witnesses.
3325         (License): Relax to LGPLv2+.
3326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
3327         * modules/unistd (Makefile.am): Substitute witnesses.
3328         * lib/unistd.in.h (rmdir): Declare replacement.
3329         * doc/posix-functions/rmdir.texi (rmdir): Document this.
3330         * modules/rmdir-tests: New tests.
3331         * tests/test-rmdir.c: Likewise.
3332
3333 2009-09-15  Eric Blake  <ebb9@byu.net>
3334
3335         fchdir: improve use of replacement functions
3336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
3337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
3338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
3339         REPLACE_CLOSEDIR.
3340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
3341         * modules/sys_stat (Makefile.am): Substitute correct witness.
3342         * modules/dirent (Makefile.am): Likewise.
3343         * modules/unistd (Makefile.am): Likewise.
3344         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
3345         * lib/unistd.in.h (dup): Likewise.
3346         * lib/sys_stat.in.h (fstat): Likewise.
3347
3348         maint: ignore gnulib-tool temp files
3349         * .gitignore: Ignore files created during gnulib-tool --test.
3350
3351 2009-09-13  Jim Meyering  <meyering@redhat.com>
3352
3353         posixtm: don't reject a time that specify "60" as the number of seconds
3354         * lib/posixtm.c (posixtime): The code to reject invalid dates
3355         would also reject a time specified with the .60 suffix.
3356         But POSIX allows that, in order to accommodate leap seconds.
3357         So don't reject it.
3358         (main): Adjust tests accordingly.
3359         * modules/posixtm (Depends-on): Add stpcpy.
3360
3361 2009-09-11  Jim Meyering  <meyering@redhat.com>
3362
3363         announce-gen: include [$release_type] in emitted Subject:
3364         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
3365         e.g., [stable] in the emitted Subject: line.
3366
3367 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3368
3369         Remove obsolete macros from several modules.
3370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
3371         obsolete Autoconf macros with their modern counterparts.
3372         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
3373         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
3374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3375         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
3376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
3377         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3379         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3380         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3381         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
3382         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3384         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3385         * m4/sockets.m4 (gl_SOCKETS): Likewise.
3386         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
3387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
3388         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
3389         * m4/time_r.m4 (gl_TIME_R): Likewise.
3390         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3391         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
3392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
3393
3394         Fix copyright header in build-aux scripts.
3395         * build-aux/git-version-gen: Fix copyright header to match GPLv3
3396         recommendation.
3397         * build-aux/ncftpput-ftp: Likewise.
3398         * build-aux/update-copyright: Likewise.
3399
3400 2009-09-09  Eric Blake  <ebb9@byu.net>
3401
3402         test-link: allow Linux choice of errno
3403         * tests/test-link.c (main): Relax test for alternate error.
3404
3405         strndup: fix improper m4 caching
3406         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
3407         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
3408         (gl_PREREQ_STRNDUP): Delete.
3409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
3410         * modules/string (Makefile.am): Substitute it.
3411         * lib/string.in.h (strndup): Modernize prototype.
3412
3413         getcwd: port to mingw
3414         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
3415         different from the POSIX assumptions made throughout the getcwd
3416         module; fortunately, the mingw getcwd does not need replacement.
3417         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
3418         * modules/getcwd-tests: New test.
3419         * tests/test-getcwd.c: Likewise.
3420
3421         link: fix platform bugs
3422         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
3423         * lib/link.c (link): Work around them.  Fix related mingw bug.
3424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
3425         * modules/unistd (Makefile.am): Substitute it.
3426         * lib/unistd.in.h (link): Declare replacement.
3427         * doc/posix-functions/link.texi (link): Document this.
3428         * modules/link (Depends-on): Add strdup-posix, sys_stat.
3429
3430         test-link: consolidate into single C program, test more cases
3431         * tests/test-link.sh: Delete.
3432         * tests/test-link.c: Test more error conditions.  Exposes bugs on
3433         at least Cygwin and Solaris.
3434         * modules/link-tests (Files): Remove unused file.
3435         (Depends-on): Add errno, sys_stat.
3436         (Makefile.am): Simplify.
3437
3438 2009-09-08  Bruno Haible  <bruno@clisp.org>
3439
3440         Work around towlower, towupper bug on mingw.
3441         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
3442         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
3443         * doc/posix-functions/towlower.texi: Mention the mingw bug.
3444         * doc/posix-functions/towupper.texi: Likewise.
3445         Reported by Eric Blake.
3446
3447 2009-09-08  Jim Meyering  <meyering@redhat.com>
3448
3449         build: don't try to run autoheader if we don't use it
3450         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
3451         is not used in configure.ac.
3452
3453 2009-09-08  Eric Blake  <ebb9@byu.net>
3454
3455         euidaccess: fix compilation error
3456         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
3457
3458         rawmemchr: relax license
3459         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
3460         okay.
3461         Reported by Jim Meyering.
3462
3463         mkfifoat: new module
3464         * modules/mkfifoat: New file.
3465         * lib/mkfifoat.c: Likewise.
3466         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
3467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3468         * modules/sys_stat (Makefile.am): Use them.
3469         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
3470         * MODULES.html.sh (File system functions): Mention module.
3471         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
3472         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
3473         * modules/mkfifoat-tests: New test.
3474         * tests/test-mkfifoat.c: Likewise.
3475
3476         strchrnul: relax license
3477         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
3478         okay.
3479         Reported by Jim Meyering.
3480
3481 2009-09-08  Eric Blake  <ebb9@byu.net>
3482
3483         fstatat: fix compilation on Solaris
3484         * lib/fstatat.c (includes): Add fcntl.h.
3485         Reported by Pádraig Brady.
3486
3487 2009-09-07  Eric Blake  <ebb9@byu.net>
3488
3489         rename: modernize replacement
3490         * modules/rename (Depends-on): Add stdio.
3491         (configure.ac): Declare witness.
3492         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
3493         stdio take care of replacement.
3494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
3495         * modules/stdio (Makefile.am): Substitute them.
3496         * lib/stdio.in.h (rename): Declare replacement.
3497         * lib/rename.c (includes): Allow cross-compilation to non-windows
3498         machines.
3499         * doc/posix-functions/rename.texi (rename): Improve
3500         documentation.
3501
3502         stdio: sort witness names
3503         * modules/stdio (Makefile.am): Sort replacements.
3504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3505         * lib/stdio.in.h: Likewise.
3506
3507         getcwd: minor cleanups
3508         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
3509         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
3510
3511         openat: provide more convenience names
3512         * modules/faccessat (configure.ac): Add C witness.
3513         * lib/unistd.in.h (readlinkat): Fix typo.
3514         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
3515         convenience wrappers.
3516         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
3517         wrappers in syntax checks.
3518
3519 2009-09-06  Eric Blake  <ebb9@byu.net>
3520
3521         doc: fix comments in recent patches
3522         * lib/faccessat.c: Mention correct function.
3523         * lib/fchmodat.c: Likewise.
3524         * lib/fchownat.c: Likewise.
3525         * lib/symlinkat.c: Likewise.
3526         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
3527         constants.
3528
3529         faccessat, symlinkat: continue cleanup of previous patch
3530         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
3531         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
3532         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
3533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
3534         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
3535         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
3536         set.
3537
3538 2009-09-06  Bruno Haible  <bruno@clisp.org>
3539
3540         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
3541         (fstatat): Declare if GNULIB_FSTATAT is set.
3542         (mkdirat): Declare if GNULIB_MKDIRAT is set.
3543         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
3544         (unlinkat): Declare if GNULIB_UNLINKAT is set.
3545         * modules/fcntl-h (Files): Remove m4/openat.m4.
3546         * modules/sys_stat (Files): Remove m4/openat.m4.
3547         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
3548         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
3549         * modules/unistd (Files): Remove m4/openat.m4.
3550         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
3551         GNULIB_OPENAT.
3552         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
3553         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
3554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
3555         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
3556         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
3557         gl_OPENAT_DEFAULTS.
3558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
3559         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
3560         Don't require gl_OPENAT_DEFAULTS.
3561         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
3562         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
3563         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
3564         (gl_OPENAT_DEFAULTS): Remove macro.
3565
3566 2009-09-06  Bruno Haible  <bruno@clisp.org>
3567
3568         * modules/openat (configure.ac): Remove unneeded witness.
3569
3570 2009-09-06  Bruno Haible  <bruno@clisp.org>
3571
3572         Set errno to ENOSYS when a function is entirely unsupported.
3573         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
3574         EOPNOTSUPP.
3575         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
3576         * modules/chown (Depends-on): Remove errno.
3577
3578 2009-09-06  Bruno Haible  <bruno@clisp.org>
3579
3580         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
3581
3582 2009-09-06  Bruno Haible  <bruno@clisp.org>
3583
3584         * lib/sys_stat.in.h: Fix preprocessor command indentation.
3585
3586 2009-09-06  Ben Pfaff  <blp@gnu.org>
3587             Bruno Haible  <bruno@clisp.org>
3588
3589         Work around a glibc bug in strtok_r.
3590         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
3591         Undefine if UNDEFINE_STRTOK_R is set.
3592         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
3593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3594         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
3595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
3596         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
3597         UNDEFINE_STRTOK_R.
3598         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
3599
3600 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3601
3602         exclude: minor fix
3603         * lib/exclude.c: Include wctype.h
3604
3605 2009-09-06  Akim Demaille  <demaille@gostai.com>
3606
3607         bootstrap: improve error message
3608         * build-aux/bootstrap (find_tool): Upon failure, report the list
3609         of candidates.
3610         Honor the initial value of the envvar.
3611
3612 2009-09-05  Eric Blake  <ebb9@byu.net>
3613
3614         symlinkat: new module
3615         * modules/symlinkat: New file.
3616         * lib/symlinkat.c: Likewise.
3617         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3619         * modules/unistd (Makefile.am): Use them.
3620         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
3621         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
3622         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
3623         * MODULES.html.sh (File system functions): Mention module.
3624         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3625         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3626         * modules/symlinkat-tests: New test.
3627         * tests/test-symlinkat.c: Likewise.
3628
3629         test-openat-safer: add more checks
3630         * tests/test-openat-safer.c (main): Check more code paths.
3631
3632 2009-09-05  Jim Meyering  <meyering@redhat.com>
3633
3634         syntax-check: detect unnecessary inclusion of openat.h
3635         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
3636
3637 2009-09-05  Bruno Haible  <bruno@clisp.org>
3638
3639         Support towlower, towupper.
3640         * doc/posix-functions/towlower.texi: Mention module wctype.
3641         * doc/posix-functions/towupper.texi: Likewise.
3642         * lib/wctype.in.h (towlower, towupper): New functions.
3643         * tests/test-wctype.c: Include stdio.h, stdlib.h.
3644         (ASSERT): New macro.
3645         (e): New variable.
3646         (main): Test also towlower, towupper. Test WEOF argument.
3647         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3648
3649 2009-09-05  Bruno Haible  <bruno@clisp.org>
3650
3651         Fix conversion behaviour when the input is invalid.
3652         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
3653         mark occurring in first pass of indirect conversion.
3654         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
3655         input.
3656         Found by clang's static analyzer.
3657
3658 2009-09-05  Bruno Haible  <bruno@clisp.org>
3659
3660         * tests/test-striconveh.c (main): Test indirect conversion on platforms
3661         where direct conversion is possible.
3662
3663 2009-09-04  Eric Blake  <ebb9@byu.net>
3664
3665         openat: fail with ENOENT on empty name
3666         * lib/openat-proc.c (openat_proc_name): Special-case the empty
3667         buffer.
3668
3669         link-follow: fix logic bug in prior patch
3670         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
3671         reversed sense of yes and no in prior patch.  Avoid confusing
3672         compilation failure with desired semantics.
3673
3674         link-follow: accomodate mingw and cross-compilation
3675         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
3676         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
3677         cross-compilation results to -1, to make linkat easier to
3678         implement when cross-compiling.  Trivially support mingw.
3679         * modules/link-follow (configure.ac): Call new name.
3680         * NEWS: Mention this.
3681
3682 2009-09-03  Eric Blake  <ebb9@byu.net>
3683
3684         faccessat: compile replacement
3685         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
3686         needed.
3687
3688         fts: fix compilation error
3689         * lib/fts.c (includes): Re-add "openat.h", for
3690         openat_needs_fchdir.
3691
3692         faccessat: new module
3693         * modules/faccessat: New file.
3694         * lib/faccessat.c: Likewise.
3695         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
3696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3697         * modules/unistd (Makefile.am): Use it.
3698         * lib/unistd.in.h (faccessat): Declare it.
3699         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
3700         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
3701         * MODULES.html.sh (File system functions): Mention it.
3702         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
3703         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3704
3705         euidaccess: prefer POSIX over non-standard implementation
3706         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
3707         * lib/euidaccess.c (euidaccess): Use it if available.
3708
3709         openat: make template easier to use
3710         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
3711         AT_FUNC_F2 to be undefined.
3712         (VALIDATE_FLAG): New macro; use it to reject bad flags.
3713         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
3714         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
3715         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
3716         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
3717         Likewise.
3718         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
3719         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
3720         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
3721         Likewise.
3722
3723         openat: declare in POSIX headers
3724         * NEWS: Mention this.
3725         * modules/openat (configure.ac): Declare witnesses.
3726         (Depends-on): Add fcntl-h, sys_stat, unistd.
3727         (Include): Mention correct headers.
3728         * modules/fcntl-h (Depends-on): Add link-warning.
3729         (Files): Add openat.m4.
3730         (Makefile.am): Substitute witnesses.
3731         * modules/sys_stat (Files, Makefile.am): Likewise.
3732         * modules/unistd (Files, Makefile.am): Likewise.
3733         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
3734         (gl_OPENAT_DEFAULTS): New macro.
3735         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
3736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
3737         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
3738         (SYS_STAT_H): Remove unused variable.
3739         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
3740         * lib/fcntl--.h (includes): Remove unneeded header.
3741         * lib/openat-safer.c (includes): Likewise.
3742         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
3743         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
3744         appropriate headers.
3745         (__OPENAT_PREFIX): Delete.
3746         * lib/fcntl.in.h (openat): Provide declaration.
3747         (AT_FDCWD): Fix Solaris bug.
3748         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
3749         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
3750         * lib/fchmodat.c (includes):  Adjust to find declaration.
3751         * lib/fchownat.c (includes): Likewise.
3752         * lib/mkdirat.c (includes): Likewise.
3753         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
3754         still visible.
3755
3756 2009-09-02  Eric Blake  <ebb9@byu.net>
3757
3758         errno: use consistently
3759         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
3760         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
3761         * lib/canonicalize.c (ELOOP): Likewise.
3762         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
3763         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
3764         * lib/lchown.c (EOPNOTSUPP): Likewise.
3765         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
3766         * lib/savewd.c (ESTALE): Likewise.
3767         * lib/settime.c (ENOSYS): Likewise.
3768         * lib/utimens.c (ENOSYS): Likewise.
3769         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
3770         * lib/chdir-safer.c (ELOOP): Likewise.
3771         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
3772         * modules/c-stack (Depends-on): Add errno.
3773         * modules/canonicalize (Depends-on): Likewise.
3774         * modules/chdir-safer (Depends-on): Likewise.
3775         * modules/fdopendir (Depends-on): Likewise.
3776         * modules/inet_ntop (Depends-on): Likewise.
3777         * modules/inet_pton (Depends-on): Likewise.
3778         * modules/lchown (Depends-on): Likewise.
3779         * modules/openat (Depends-on): Likewise.
3780         * modules/savewd (Depends-on): Likewise.
3781         * modules/settime (Depends-on): Likewise.
3782         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
3783
3784         fts: avoid leaking fds
3785         * modules/fts (Depends-on): Add cloexec.
3786         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
3787         flag.
3788
3789         fts: make directory fds more robust
3790         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
3791         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
3792
3793         backupfile, chdir-long, fts, savedir: make safer
3794         * lib/backupfile.c (includes): Use "dirent--.h", since
3795         numbered_backup can write to stderr during readdir.
3796         * lib/savedir.c (includes): Likewise.
3797         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
3798         emulation can write to stderr on failure.
3799         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
3800         * lib/getcwd.c: Document why opendir_safer is unused.
3801         * lib/glob.c: Likewise.
3802         * lib/scandir.c: Likewise.
3803         * lib/openat-proc.c: Likewise, for open_safer.
3804         * modules/backupfile (Depends-on): Add dirent-safer.
3805         * modules/savedir (Depends-on): Likewise.
3806         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
3807         * modules/chdir-long (Depends-on): Add openat-safer.
3808
3809         openat-safer: new module
3810         * modules/openat-safer: New file.
3811         * lib/openat-safer.c: Likewise.
3812         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
3813         * lib/fcntl-safer.h (openat_safer): Declare.
3814         * lib/fcntl--.h (openat): Override.
3815         * MODULES.html.sh (File descriptor based I/O): Mention it.
3816         * lib/openat.h: Add double-inclusion guards.
3817         * lib/openat.c (includes): Only include "fcntl-safer.h", not
3818         "fcntl--.h", so we can implement openat.
3819         * modules/openat-safer-tests: New test.
3820         * tests/test-openat-safer.c: New file.
3821
3822         dirent-safer: new module
3823         * modules/dirent-safer: New file.
3824         * lib/dirent--.h: Likewise.
3825         * lib/dirent-safer.h: Likewise.
3826         * lib/opendir-safer.c: Likewise.
3827         * m4/dirent-safer.m4: Likewise.
3828         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
3829         * modules/dirent-safer-tests: New test.
3830         * tests/test-dirent-safer.c: New file.
3831         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
3832
3833         fdopendir: optimize on mingw
3834         * lib/unistd.in.h (_gl_directory_name): New prototype.
3835         * lib/fchdir.c (_gl_directory_name): Implement it.
3836         (fchdir): Use it to simplify implementation.
3837         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
3838         fchdir, when available, to avoid calling [f]chdir().
3839
3840         fdopendir: split into its own module
3841         * lib/openat.c (fdopendir): Move...
3842         * lib/fdopendir.c: ...into new file.
3843         * modules/fdopendir: New module.
3844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
3845         * modules/openat (Depends-on): Add fdopendir.
3846         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
3847         fdopendir here.
3848         * modules/savedir (Depends-on): Only need fdopendir, not full
3849         openat.
3850         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
3851         * lib/openat.h (fdopendir): Drop prototype.
3852         * lib/dirent.in.h (fdopendir): Provide prototype.
3853         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
3854         * modules/dirent (Makefile.am): Substitute them.
3855         * MODULES.html.sh (File system functions): Mention it.
3856         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
3857         * modules/fdopendir-tests: New file.
3858         * tests/test-fdopendir.c: Likewise.
3859
3860         fchdir: use more consistent macro convention
3861         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
3862         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
3863         REPLACE_FCHDIR, rather than relying on config.h macros.
3864         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
3865         inside a single make-time REPLACE_FCHDIR block, rather than using
3866         the config.h FCHDIR_REPLACEMENT.
3867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
3868         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
3869         Manage fstat replacement.
3870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
3871         REPLACE_FCHDIR.
3872         * modules/sys_stat (Files): Add m4/unistd_h.m4.
3873         (Makefile.am): Substitute REPLACE_FCHDIR.
3874         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
3875         FCHDIR_REPLACEMENT.
3876         * lib/dup-safer.c (dup_safer): Likewise.
3877         * lib/dup2.c (rpl_dup2): Likewise.
3878         * lib/dup3.c (rpl_dup3): Likewise.
3879         * lib/open.c (rpl_open): Likewise.
3880
3881         fchdir: simplify error handling, and support dup3
3882         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
3883         stdbool, malloc-posix, realloc-posix.
3884         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
3885         (ensure_dirs_slot): Return false on allocation failure.
3886         (rpl_dup2): Delete.
3887         (_gl_register_dup): New function.
3888         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
3889         (_gl_register_fd): Close fd on allocation failure.
3890         * lib/fcntl.in.h (_gl_register_fd): Update signature.
3891         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
3892         prototype.
3893         (rpl_dup2_fchdir): Delete prototype.
3894         * lib/open.c (open): Update caller.
3895         * lib/dup2.c (dup2): Track fchdir metadata.
3896         * lib/dup3.c (dup3): Likewise.
3897         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
3898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
3899
3900 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3901
3902         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
3903         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
3904         don't pass arguments to AC_OUTPUT.
3905
3906 2009-09-02  Bruno Haible  <bruno@clisp.org>
3907
3908         * modules/mkdtemp (License): Relicense under LGPLv2+.
3909         Reported by Paolo Bonzini.
3910
3911 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3912
3913         Replace uses of obsolete autoconf macros in Jim's modules.
3914         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
3915         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
3916         can evoke a warning from autoconf when run with -Wobsolete
3917         enabled.  They were declared obsolete for good reasons (see
3918         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
3919         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
3920         should not continue using the deprecated macros.
3921         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
3922         obsolete Autoconf macros with modern counterparts.
3923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3924         * m4/dos.m4 (gl_AC_DOS): Likewise.
3925         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3927         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3928         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
3929         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
3930         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
3931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
3932         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
3933         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3934         Likewise.
3935         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3936         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3937         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
3938         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
3939         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
3940         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
3941
3942 2009-09-01  Eric Blake  <ebb9@byu.net>
3943
3944         fchdir: fix off-by-one bug in previous patch
3945         * lib/fchdir.c (rpl_fstat): Use correct bounds.
3946         (_gl_unregister_fd): Delete useless if.
3947
3948 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
3949
3950         maint.mk: sort the list of syntax-check rules
3951         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
3952         easier to get a sense of progress when the rules are run sequentially
3953         and take a long time.
3954
3955 2009-09-01  Simon Josefsson  <simon@josefsson.org>
3956
3957         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
3958         * modules/netinet_in: Likewise.
3959         * modules/sys_file: Likewise.
3960         * modules/sys_ioctl: Likewise.
3961         * modules/sys_select: Likewise.
3962         * modules/sys_socket: Likewise.
3963         * modules/sys_stat: Likewise.
3964         * modules/sys_time: Likewise.
3965         * modules/sys_times: Likewise.
3966         * modules/sys_utsname: Likewise.
3967         * modules/sys_wait: Likewise.
3968
3969 2009-09-01  Jim Meyering  <meyering@redhat.com>
3970
3971         fts: help ensure that return values are not ignored
3972         * lib/fts_.h (__GNUC_PREREQ): Define.
3973         (__attribute_warn_unused_result__): Define.
3974         (fts_children, fts_close, fts_open, fts_read): Declare with
3975         __attribute_warn_unused_result__.
3976
3977         fts: fts_close now fails also when closing a dir file descriptor fails
3978         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
3979         and propagate to caller, along with errno.
3980
3981         announce-gen: correct formatting in --help output
3982         * build-aux/announce-gen (usage): Move the one-line description in
3983         --help output "up", to where it belongs, just after Usage:.
3984
3985 2009-08-31  Eric Blake  <ebb9@byu.net>
3986
3987         fchdir: port to mingw
3988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
3989         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
3990         opened, then use a substitute.
3991         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
3992         replacement.
3993         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
3994         (_gl_register_fd): No need to check stat if open already filters
3995         all directories.
3996         (fchdir): Fix error condition to match POSIX.
3997         * modules/fchdir (Depends-on): Add sys_stat.
3998         * doc/posix-functions/open.texi (open): Document the limitation.
3999         * modules/fchdir-tests: New file.
4000         * tests/test-fchdir.c: Likewise.
4001
4002         canonicalize: allow cross-testing from cygwin to mingw
4003         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
4004         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
4005         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
4006         Likewise.
4007         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
4008         target does not support symlinks.
4009         * tests/test-canonicalize-lgpl.sh: Likewise.
4010
4011         chown: avoid compilation warning on mingw
4012         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
4013         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
4014         mingw.
4015         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4016         * modules/chown (Depends-on): Add errno.
4017
4018 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4019
4020         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
4021         command.
4022
4023 2009-08-31  Jim Meyering  <meyering@redhat.com>
4024
4025         canonicalize: remove useless initialization
4026         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
4027         initialization of local, "end".
4028
4029 2009-08-30  Bruno Haible  <bruno@clisp.org>
4030
4031         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
4032         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
4033         ENOSYS.
4034
4035 2009-08-30  Bruno Haible  <bruno@clisp.org>
4036
4037         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
4038         /usr/xpg4/bin/tr when it exists.
4039         * tests/test-pipe-filter-gi1.sh: Likewise.
4040
4041 2009-08-30  Bruno Haible  <bruno@clisp.org>
4042
4043         Work around deficient /usr/bin/id program on Solaris.
4044         * tests/test-file-has-acl.sh (ID): New variable.
4045         * tests/test-set-mode-acl.sh (ID): Likewise.
4046         * tests/test-copy-acl.sh (ID): Likewise.
4047         * tests/test-copy-file.sh (ID): Likewise.
4048
4049 2009-08-30  Bruno Haible  <bruno@clisp.org>
4050
4051         New module 'xstriconveh'.
4052         * lib/xstriconveh.h: New file.
4053         * lib/xstriconveh.c: New file.
4054         * modules/xstriconveh: New file.
4055
4056 2009-08-30  Bruno Haible  <bruno@clisp.org>
4057
4058         Make it easier to use mem_cd_iconveh.
4059         * lib/striconveh.h (iconveh_t): New type.
4060         (iconveh_open, iconveh_close): New declarations.
4061         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4062         with a single 'const iconveh_t *' argument.
4063         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
4064         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4065         with a single 'const iconveh_t *' argument.
4066         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
4067         * tests/test-striconveh.c (main): Update.
4068         * NEWS: Mention the change.
4069
4070 2009-08-30  Bruno Haible  <bruno@clisp.org>
4071
4072         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
4073         problem.
4074
4075 2009-08-30  Bruno Haible  <bruno@clisp.org>
4076
4077         Work around iconv_open problem on Solaris.
4078         * lib/iconv_open-solaris.gperf: New file.
4079         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
4080         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
4081         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
4082         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
4083         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
4084         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
4085
4086 2009-08-29  Jim Meyering  <meyering@redhat.com>
4087
4088         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
4089         * top/maint.mk (cvs-check): Remove target; it was just an alias
4090         to the better-named vc-diff-check.
4091         (maintainer-distcheck): Remove rule.  It was used only from
4092         the (alpha/beta/major) target, and all of its commands but one
4093         were coreutils-specific.
4094         (vc-dist): Remove rule.
4095         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
4096         Run vc-diff-check, not vc-dist.
4097         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
4098
4099 2009-08-27  Bruno Haible  <bruno@clisp.org>
4100
4101         * tests/test-bitrotate.c (main): Remove test that uses a shift count
4102         of 0.
4103
4104 2009-08-27  Bruno Haible  <bruno@clisp.org>
4105
4106         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
4107         compilers.
4108         * doc/func.texi: Document the SunPRO C bug.
4109
4110 2009-08-27  Bruno Haible  <bruno@clisp.org>
4111
4112         Fix link error on Solaris.
4113         * tests/test-parse-duration.c (xstrdup): Remove function.
4114
4115 2009-08-26  Pádraig Brady  <P@draigbrady.com>
4116
4117         ignore-value: handle pointer types, too
4118         * lib/ignore-value.h (__attribute__): Remove definition.
4119         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
4120         of a more concise and more-often effective "(void) i" statement.
4121         (ignore_ptr): New function to suppress warnings from functions that
4122         return pointers, and to make it explicit that one function doesn't
4123         handle all cases.
4124
4125 2009-08-25  Bruno Haible  <bruno@clisp.org>
4126
4127         dup2: work around a Linux bug.
4128         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
4129         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
4130         * doc/posix-functions/dup2.texi: Mention the Linux bug.
4131         Reported by Simon Josefsson.
4132
4133 2009-08-25  Jim Meyering  <meyering@redhat.com>
4134
4135         libguestfs uses gnulib
4136         * users.txt: Add libguestfs.
4137
4138 2009-08-24  Eric Blake  <ebb9@byu.net>
4139
4140         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
4141         * lib/pipe2.c (includes): Add binary-io.h.
4142         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
4143
4144 2009-08-24  Bruno Haible  <bruno@clisp.org>
4145
4146         Tolerate declared but missing accept4 syscall.
4147         * lib/accept4.c (accept4): Invoke original accept4 function first, if
4148         available.
4149         * lib/sys_socket.in.h (accept4): If the function is already present,
4150         override it.
4151         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
4152         * modules/accept4 (Makefile.am): Compile accept4.c always.
4153         Reported by Paolo Bonzini and Eric Blake.
4154
4155 2009-08-23  Bruno Haible  <bruno@clisp.org>
4156
4157         New module 'accept4'.
4158         * lib/sys_socket.in.h (accept4): New declaration.
4159         * lib/accept4.c: New file.
4160         * m4/accept4.m4: New file.
4161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4162         GNULIB_ACCEPT4, HAVE_ACCEPT4.
4163         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
4164         HAVE_ACCEPT4.
4165         * modules/accept4: New file.
4166         * doc/glibc-functions/accept4.texi: Mention the new module.
4167
4168 2009-08-24  Jim Meyering  <meyering@redhat.com>
4169
4170         progname: also set global program_invocation_name, when possible
4171         Before this change, a libtool-enabled program that calls glibc's
4172         error function would report the program name as
4173         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
4174         * modules/progname (configure.ac): Check for a declaration of
4175         program_invocation_name.
4176         * lib/progname.c:  Include <errno.h>.
4177         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
4178         Set program_invocation_name.
4179
4180 2009-08-23  Bruno Haible  <bruno@clisp.org>
4181
4182         * lib/dup3.c: Include <string.h>.
4183
4184 2009-08-23  Bruno Haible  <bruno@clisp.org>
4185
4186         * lib/dup3.c (dup3): Test only once whether the system actually exists.
4187         * lib/pipe2.c (pipe2): Likewise.
4188         Suggested by Eric Blake.
4189
4190 2009-08-23  Bruno Haible  <bruno@clisp.org>
4191
4192         Tolerate declared but missing dup3 syscall.
4193         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
4194         * lib/unistd.in.h (dup3): If the function is already present,
4195         override it.
4196         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
4197         * modules/dup3 (Makefile.am): Compile dup3.c always.
4198         Reported by Paolo Bonzini.
4199
4200 2009-08-23  Bruno Haible  <bruno@clisp.org>
4201
4202         Tolerate declared but missing pipe2 syscall.
4203         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
4204         available.
4205         * lib/unistd.in.h (pipe2): If the function is already present,
4206         override it.
4207         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
4208         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
4209         Reported by Paolo Bonzini.
4210
4211 2009-08-23  Bruno Haible  <bruno@clisp.org>
4212
4213         * lib/pipe2.c (pipe2): Move #ifs inside function.
4214
4215 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4216
4217         quotearg: document limitations of quote_these_too
4218         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
4219         those limitations are created.
4220         * lib/quotearg.h (set_char_quoting): Document that digits and
4221         letters that are special after backslash are not permitted.
4222         (quotearg_char): Cross-reference set_char_quoting documentation.
4223
4224 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
4225
4226         quotearg: implement custom_quoting_style
4227         * lib/quotearg.c: (struct quoting_options): Add left_quote and
4228         right_quote fields.
4229         (set_custom_quoting): New public function.
4230         (quotearg_buffer_restyled): Add left_quote and right_quote
4231         arguments, handle them very much like locale quoting, and update
4232         all uses.
4233         (quotearg_n_custom): New public function.
4234         (quotearg_n_custom_mem): New public function.
4235         (quotearg_custom): New public function.
4236         (quotearg_custom_mem): New public function.
4237         * lib/quotearg.h: Prototype and document new public functions.
4238         (enum quoting_style): For escape_quoting_style and
4239         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
4240         ignored even though they're otherwise like c_quoting_style.
4241         Add custom_quoting_style member and document with comparison to
4242         clocale_quoting_style.
4243         * tests/test-quotearg.c (custom_quotes): New array.
4244         (custom_results): New array.
4245         (main): Extend to test custom quoting.
4246
4247 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4248
4249         quotearg: fix right quote escaping when it's in quote_these_too
4250         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
4251         quote, be sure to prepend only one backslash.
4252         * tests/test-quotearg.c (use_quote_double_quotes): New function.
4253         (main): Test it.
4254
4255 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4256
4257         quotearg-tests: test escaping of embedded locale quotes
4258         * tests/test-quotearg.c (struct result_strings): Add member for
4259         new input.
4260         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
4261         (inputs): Add new input.
4262         (results_g): Add expected results.
4263         (flag_results): Likewise.
4264         (locale_results): Likewise.
4265         (compare_strings): Check those.
4266
4267 2009-08-23  Bruno Haible  <bruno@clisp.org>
4268
4269         Tests for module 'dup3'.
4270         * modules/dup3-tests: New file.
4271         * tests/test-dup3.c: New file.
4272
4273         New module 'dup3'.
4274         * lib/unistd.in.h (dup3): New declaration.
4275         * lib/dup3.c: New file.
4276         * m4/dup3.m4: New file.
4277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
4278         HAVE_DUP3.
4279         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
4280         * modules/dup3: New file.
4281         * doc/glibc-functions/dup3.texi: Mention the new module.
4282
4283 2009-08-23  Bruno Haible  <bruno@clisp.org>
4284
4285         Tweak the dup2 test.
4286         * tests/test-dup2.c (main): Create the test file empty. Verify that an
4287         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
4288         the test file is still empty. Fix argument order of lseek.
4289
4290 2009-08-23  Bruno Haible  <bruno@clisp.org>
4291
4292         Avoid test link errors when the modules getopt-gnu, gettext are used.
4293         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
4294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4295
4296 2009-08-23  Bruno Haible  <bruno@clisp.org>
4297
4298         Fix getdtablesize() on mingw.
4299         * lib/getdtablesize.c (getdtablesize): Implement differently.
4300         * lib/unistd.in.h (getdtablesize): Improve comment.
4301
4302 2009-08-23  Bruno Haible  <bruno@clisp.org>
4303
4304         New module 'mkostemp'.
4305         Based on Ulrich Drepper's 2007-08-10 change in glibc.
4306         * lib/stdlib.in.h (mksotemp): New declaration.
4307         * lib/mkostemp.c: New file, from glibc with modifications.
4308         * lib/tempname.h (GT_FILE): Remove outdated comment.
4309         (gen_tempname): Add flags argument.
4310         * lib/tempname.c (__GT_BIGFILE): Remove macro.
4311         (__GT_FILE): Map to 1.
4312         (small_open, large_open): Remove macros.
4313         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
4314         * lib/mkstemp.c (mkstemp): Update.
4315         * lib/mkdtemp.c (mkdtemp): Likewise.
4316         * m4/mkostemp.m4: New file.
4317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
4318         HAVE_MKOSTEMP.
4319         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
4320         HAVE_MKOSTEMP.
4321         * modules/mkostemp: New file, based on modules/mkstemp.
4322         * doc/glibc-functions/mkostemp.texi: Mention the new module.
4323         * NEWS: Mention the change.
4324
4325 2009-08-23  Bruno Haible  <bruno@clisp.org>
4326
4327         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
4328         Reported by Eric Blake.
4329
4330 2009-08-23  Bruno Haible  <bruno@clisp.org>
4331
4332         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
4333         Reported by Eric Blake.
4334
4335 2009-08-23  Bruno Haible  <bruno@clisp.org>
4336
4337         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
4338         * modules/pipe2 (Depends-on): Likewise.
4339
4340 2009-08-23  Eric Blake  <ebb9@byu.net>
4341
4342         fcntl-h: add O_TTY_INIT support
4343         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
4344         * tests/test-fcntl-h.c (o): Test it.
4345         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4346
4347         fcntl-h: rename from fcntl, in preparation for fcntl(2)
4348         * modules/fcntl: Move <fcntl.h> header replacement...
4349         * modules/fcntl-h: ...to new name, so as not to collide with
4350         like-named function.
4351         * tests/test-fcntl.c: Rename...
4352         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
4353         * modules/fcntl-tests: Rename...
4354         * modules/fcntl-h-tests: ...to this.  Update test file name.
4355         * modules/chdir-long (Depends-on): Update clients.
4356         * modules/chdir-safer (Depends-on): Likewise.
4357         * modules/fcntl-safer (Depends-on): Likewise.
4358         * modules/fts (Depends-on): Likewise.
4359         * modules/mkancesdirs (Depends-on): Likewise.
4360         * modules/mkdir-p (Depends-on): Likewise.
4361         * modules/open (Depends-on): Likewise.
4362         * modules/savewd (Depends-on): Likewise.
4363         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
4364         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4365
4366 2009-08-22  Bruno Haible  <bruno@clisp.org>
4367
4368         * modules/binary-io (License): Relicense under LGPL.
4369         * modules/pipe2 (License): Likewise.
4370
4371 2009-08-22  Bruno Haible  <bruno@clisp.org>
4372
4373         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
4374         return value.
4375         * lib/pipe-filter-gi.c (filter_init): Likewise.
4376         Reported by Eric Blake.
4377
4378 2009-08-22  Bruno Haible  <bruno@clisp.org>
4379
4380         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
4381         * modules/pipe (Depends-on): Add pipe2.
4382
4383 2009-08-22  Bruno Haible  <bruno@clisp.org>
4384
4385         Tests for module 'pipe2'.
4386         * modules/pipe2-tests: New file.
4387         * tests/test-pipe2.c: New file.
4388
4389         New module 'pipe2'.
4390         * lib/unistd.in.h (pipe2): New declaration.
4391         * lib/pipe2.c: New file.
4392         * m4/pipe2.m4: New file.
4393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
4394         HAVE_PIPE2.
4395         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
4396         * modules/pipe2: New file.
4397         * doc/glibc-functions/pipe2.texi: Mention the new module.
4398
4399 2009-08-22  Bruno Haible  <bruno@clisp.org>
4400
4401         Reference some new glibc functions.
4402         * doc/glibc-functions/accept4.texi: New file.
4403         * doc/glibc-functions/dup3.texi: New file.
4404         * doc/glibc-functions/mkostemp.texi: New file.
4405         * doc/glibc-functions/pipe2.texi: New file.
4406         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
4407         (Glibc sys/socket.h): Refer to accept4.
4408         (Glibc unistd.h): Refer to dup3, pipe2.
4409         Reported by Eric Blake.
4410
4411 2009-08-22  Jim Meyering  <meyering@redhat.com>
4412             Bruno Haible  <bruno@clisp.org>
4413
4414         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
4415         This makes it so packages using automake-1.11's silent-rules option
4416         can print e.g., a single "GEN    configmake.h" line, rather than
4417         the 30+ statements that perform the job.  If you want to see the
4418         actual commands, you can still run "make V=1".
4419         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
4420         so that make output is abbreviated when those variables are defined
4421         appropriately.
4422         * modules/argz: Likewise.
4423         * modules/arpa_inet: Likewise.
4424         * modules/byteswap: Likewise.
4425         * modules/configmake: Likewise.
4426         * modules/dirent: Likewise.
4427         * modules/errno: Likewise.
4428         * modules/fcntl: Likewise.
4429         * modules/float: Likewise.
4430         * modules/fnmatch: Likewise.
4431         * modules/getopt-posix: Likewise.
4432         * modules/glob: Likewise.
4433         * modules/iconv_open: Likewise.
4434         * modules/inttypes: Likewise.
4435         * modules/localcharset: Likewise.
4436         * modules/locale: Likewise.
4437         * modules/math: Likewise.
4438         * modules/netdb: Likewise.
4439         * modules/netinet_in: Likewise.
4440         * modules/poll: Likewise.
4441         * modules/posix_spawnp-tests: Likewise.
4442         * modules/sched: Likewise.
4443         * modules/search: Likewise.
4444         * modules/selinux-h: Likewise.
4445         * modules/signal: Likewise.
4446         * modules/spawn: Likewise.
4447         * modules/stdarg: Likewise.
4448         * modules/stdbool: Likewise.
4449         * modules/stddef: Likewise.
4450         * modules/stdint: Likewise.
4451         * modules/stdio: Likewise.
4452         * modules/stdlib: Likewise.
4453         * modules/string: Likewise.
4454         * modules/strings: Likewise.
4455         * modules/sys_file: Likewise.
4456         * modules/sys_ioctl: Likewise.
4457         * modules/sys_select: Likewise.
4458         * modules/sys_socket: Likewise.
4459         * modules/sys_stat: Likewise.
4460         * modules/sys_time: Likewise.
4461         * modules/sys_times: Likewise.
4462         * modules/sys_utsname: Likewise.
4463         * modules/sys_wait: Likewise.
4464         * modules/sysexits: Likewise.
4465         * modules/time: Likewise.
4466         * modules/unistd: Likewise.
4467         * modules/wchar: Likewise.
4468         * modules/wctype: Likewise.
4469
4470 2009-08-22  Jim Meyering  <meyering@redhat.com>
4471
4472         announce-gen: detect write failure
4473         * build-aux/announce-gen: Add Coda at end.
4474         Remove equivalent-but-more-verbose block at top.
4475
4476 2009-08-19  Akim Demaille  <demaille@gostai.com>
4477
4478         bootstrap: --help to stdout.
4479         * bootstrap (usage): Don't send --help to stderr.
4480         Use a here doc instead of a long string.
4481
4482 2009-08-21  Eric Blake  <ebb9@byu.net>
4483
4484         test-popen-safer: split from test-popen
4485         * tests/test-popen.c (main): Move...
4486         * tests/test-popen.h: ...into new file.
4487         * tests/test-popen-safer2.c: New file.
4488         * modules/popen-tests (Files): Add test-popen.h.
4489         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
4490         Suggested by Bruno Haible.
4491
4492         test-fcntl-safer: split from test-open
4493         * tests/test-open.c (main): Move...
4494         * tests/test-open.h: ...into new file.
4495         * tests/test-fcntl-safer.c: New file.
4496         * modules/open-tests (Files): Add test-open.h.
4497         * modules/fcntl-safer-tests: New file.
4498         Suggested by Bruno Haible.
4499
4500         test-fopen-safer: split from test-fopen
4501         * tests/test-fopen.c (main): Move...
4502         * tests/test-fopen.h: ...into new file.
4503         * tests/test-fopen-safer.c: New file.
4504         * modules/fopen-tests (Files): Add test-fopen.h.
4505         * modules/fopen-safer-tests: New file.
4506         Suggested by Bruno Haible.
4507
4508 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
4509
4510         popen-safer: test O_CLOEXEC at run-time.
4511         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
4512
4513 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
4514
4515         fcntl: move more flags to the header
4516         * lib/cloexec.c: Do not define FD_CLOEXEC here.
4517         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
4518         * lib/fcntl.in.h: Do both things here.
4519
4520 2009-08-21  Jim Meyering  <meyering@redhat.com>
4521
4522         consistently remove $@-t before redirecting to it
4523         * modules/argz: Remove $@-t and $@ before redirecting to the former.
4524         * modules/alloca-opt: Likewise.
4525         * modules/byteswap: Likewise.
4526         * modules/fnmatch: Likewise.
4527         * modules/getopt-posix: Likewise.
4528         * modules/glob: Likewise.
4529         * modules/poll: Likewise.
4530         * modules/posix_spawnp-tests: Likewise.
4531         * modules/sys_socket: Likewise.
4532         * modules/sysexits: Likewise.
4533
4534 2009-08-21  Eric Blake  <ebb9@byu.net>
4535
4536         popen: simplify access to original popen
4537         * lib/popen.c (rpl_popen): No need to worry about popen being a
4538         macro.
4539         Reported by Bruno Haible.
4540
4541 2009-08-20  Eric Blake  <ebb9@byu.net>
4542
4543         build: avoid some compiler warnings
4544         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
4545         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
4546         type.
4547         (new_exclude_segment, excluded_file_pattern_p)
4548         (excluded_file_name_p): Reduce scope.
4549         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
4550         old-style declaration.
4551
4552 2009-08-20  Simon Josefsson  <simon@josefsson.org>
4553
4554         * tests/test-exclude1.sh: Handle Windows EOL.
4555         * tests/test-exclude2.sh: Likewise.
4556         * tests/test-exclude3.sh: Likewise.
4557         * tests/test-exclude4.sh: Likewise.
4558         * tests/test-exclude5.sh: Likewise.
4559         * tests/test-exclude6.sh: Likewise.
4560         * tests/test-exclude7.sh: Likewise.
4561
4562 2009-08-19  Akim Demaille  <demaille@gostai.com>
4563
4564         bootstrap: find sha1sum when named gsha1sum.
4565         * bootstrap (find_tool): New.
4566         ($SHA1SUM): New.
4567         Use it.
4568
4569 2009-08-20  Jim Meyering  <meyering@redhat.com>
4570
4571         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
4572         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
4573         expression that converts "." in a file name to "\." in the resulting
4574         regexp.  Start with a dummy statement, so that prior shell variable
4575         definitions are expanded portably.  Reported by Simon Josefsson.
4576
4577 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
4578
4579         Fix polling for writeability of a screen buffer.
4580         * lib/poll.c: Distinguish input and screen buffers for the
4581         Win32 implementation.
4582         * lib/select.c: Likewise.
4583
4584 2009-08-19  Eric Blake  <ebb9@byu.net>
4585
4586         popen-safer: prevent popen from clobbering std descriptors
4587         * modules/popen-safer: New file.
4588         * lib/popen-safer.c: Likewise.
4589         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
4590         * lib/stdio--.h (popen): Provide override.
4591         * lib/stdio-safer.h (popen_safer): Provide declaration.
4592         * tests/test-popen.c (includes): Partially test this.
4593         * modules/popen-safer-tests: New file, for more tests.
4594         * tests/test-popen-safer.c: Likewise.
4595         * MODULES.html.sh (file stream based Input/Output): Mention it.
4596
4597         tests: test some of the *-safer modules
4598         * modules/fopen-safer (Depends-on): Add fopen.
4599         * modules/fcntl-safer (Depends-on): Add fcntl.
4600         * modules/stdlib-safer (Depends-on): Add stdlib.
4601         (configure.ac): Set indicator.
4602         * modules/unistd-safer (configure.ac): Likewise.
4603         * modules/tmpfile-safer (configure.ac): Likewise.
4604         (Depends-on): Add tmpfile.
4605         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
4606         active.
4607         * tests/test-fopen.c (includes): Test safer versions when they are
4608         in use.
4609         * tests/test-open.c (includes): Likewise.
4610
4611         popen: fix cygwin 1.5 bug when stdin closed
4612         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
4613         * modules/popen: New file.
4614         * modules/popen-tests: Likewise.
4615         * tests/test-popen.c: Likewise.
4616         * m4/popen.m4: Likewise.
4617         * lib/popen.c: Likewise.
4618         * lib/stdio.in.h (popen): New declaration.
4619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
4620         * modules/stdio (Makefile.am): Likewise.
4621         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
4622
4623 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
4624
4625         maint.mk: give full control over update-copyright exclusions
4626         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
4627         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
4628         (update-copyright): Don't force inclusion of top-level
4629         ChangeLog.  Don't force exclusion of all COPYING files, but make
4630         them the default exclusion instead.
4631
4632 2009-08-16  Bruno Haible  <bruno@clisp.org>
4633
4634         Fix test failures on Solaris 10.
4635         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
4636         tests when Solaris iconv() is used.
4637         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4638         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4639         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4640         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4641         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4642
4643 2009-08-16  Bruno Haible  <bruno@clisp.org>
4644
4645         Fix test failures on Solaris 10.
4646         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
4647         'tr' program and pass it as first argument.
4648         * tests/test-pipe-filter-gi1.sh: Likewise.
4649         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
4650         program as first argument.
4651         * tests/test-pipe-filter-gi1.c (main): Likewise.
4652
4653 2009-08-16  Eric Blake  <ebb9@byu.net>
4654
4655         fpurge: fix previous commits
4656         * modules/fpurge (Makefile.am): Make replacement conditional,
4657         partially reverting 2007-04-29 change; missed in previous
4658         attempt.
4659         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
4660         is missing.
4661
4662 2009-08-16  Bruno Haible  <bruno@clisp.org>
4663
4664         Clarify fpurge's effect on the file position.
4665         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
4666         * tests/test-fpurge.c (main): Make a second pass for checking the file
4667         position.
4668
4669 2009-08-16  Bruno Haible  <bruno@clisp.org>
4670
4671         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
4672         declaration of fpurge is missing.
4673         * tests/test-fpurge.c (main): Check that the file has not more contents
4674         than expected. Close the file before removing it.
4675
4676 2009-08-15  Eric Blake  <ebb9@byu.net>
4677
4678         fpurge: don't wrap working cygwin implementation
4679         * lib/fpurge.c (fpurge): Fix comment typo.
4680         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
4681         1.7 to avoid replacement.
4682         * tests/test-fpurge.c (main): Enhance test.
4683
4684 2009-08-15  Eric Blake  <ebb9@byu.net>
4685         and Jim Meyering  <meyering@redhat.com>
4686
4687         test-update-copyright: skip if perl is insufficient
4688         * tests/test-update-copyright.sh: Failure to run maintainer tool
4689         should not cause testsuite failure on cygwin 1.5.
4690
4691 2009-08-14  Eric Blake  <ebb9@byu.net>
4692
4693         doc: mention more functions added in cygwin 1.7.0
4694         * doc/posix-headers/limits.texi (limits.h): Update for recent
4695         cygwin additions.
4696         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
4697         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4698         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
4699         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
4700         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
4701
4702 2009-08-14  Eric Blake  <ebb9@byu.net>
4703
4704         maint.mk: simplify update-copyright rule
4705         * top/maint.mk (update-copyright-local): Delete, and document how
4706         to do it in cfg.mk instead.
4707         (update-copyright-exclude-regexp): Delete, and document how to do
4708         it in .x-update-copyright instead.
4709         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
4710         exclude ChangeLog.
4711
4712 2009-08-14  Bruno Haible  <bruno@clisp.org>
4713
4714         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
4715
4716 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
4717
4718         maint.mk: support update-copyright-env
4719         * top/maint.mk (update-copyright-env): Define place-holder.
4720         (update-copyright): Expand $(update-copyright-env) before
4721         invoking update-copyright.
4722
4723 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
4724
4725         update-copyright: implement forced reformatting
4726         * build-aux/update-copyright: Implement and document
4727         UPDATE_COPYRIGHT_FORCE.
4728         * tests/test-update-copyright.sh: Test it.
4729
4730 2009-08-14  Eric Blake  <ebb9@byu.net>
4731         and Bruno Haible  <bruno@clisp.org>
4732
4733         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
4734         * tests/test-locale.c: Revert previous patch related to NULL.
4735         * tests/test-stdio.c: Likewise.
4736         * tests/test-stdlib.c: Likewise.
4737         * tests/test-string.c: Likewise.
4738         * tests/test-unistd.c: Likewise.
4739         * modules/time-tests (Depends-on): Add verify.
4740         * modules/wchar-tests (Depends-on): Likewise.
4741         * tests/test-time.c: Test for NULL compliance.
4742         * tests/test-wchar.c: Likewise.
4743         * modules/locale (Depends-on): Add stddef.
4744         * modules/stdio (Depends-on): Likewise.
4745         * modules/stdlib (Depends-on): Likewise.
4746         * modules/string (Depends-on): Likewise.
4747         * modules/time (Depends-on): Likewise.
4748         * modules/unistd (Depends-on): Likewise.
4749         * modules/wchar (Depends-on): Likewise.
4750         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
4751         * lib/stdlib.in.h (includes): Likewise.
4752         * lib/string.in.h (includes): Likewise.
4753         * lib/time.in.h (includes): Likewise.
4754         * lib/unistd.in.h (includes): Likewise.
4755         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
4756         replaced.
4757         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4758         * m4/stddef_h.m4: New file.
4759         * modules/stddef: Likewise.
4760         * lib/stddef.in.h: Likewise.
4761         * modules/stddef-tests: Likewise.
4762         * tests/test-stddef.c: Likewise.
4763         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
4764         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
4765         * doc/posix-headers/locale.texi (locale.h): Likewise.
4766         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
4767         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4768         * doc/posix-headers/string.texi (string.h): Likewise.
4769         * doc/posix-headers/time.texi (time.h): Likewise.
4770         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
4771         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
4772
4773 2009-08-14  Eric Blake  <ebb9@byu.net>
4774
4775         doc: improve git diff of texinfo files
4776         * .gitattributes: Add rule for *.texi files, with hint on how to
4777         use it.
4778         Copied from m4, and based on a report by Bruno Haible.
4779
4780 2009-08-14  Bruno Haible  <bruno@clisp.org>
4781
4782         Disable multithread support by default on Cygwin 1.5.x for real.
4783         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
4784
4785 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
4786
4787         update-copyright: much ado about intervals
4788         * build-aux/update-copyright: Implement and document
4789         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
4790         of copyright year intervals.
4791         Also, document UPDATE_COPYRIGHT_YEAR.
4792         * tests/test-update-copyright.sh: Test it.
4793
4794         update-copyright: convert 2-digit to 4-digit years
4795         * build-aux/update-copyright: Implement and document.
4796         * tests/test-update-copyright.sh: Update.
4797
4798 2009-08-14  Jim Meyering  <meyering@redhat.com>
4799
4800         test-exclude: avoid coreutils "make check" failure
4801         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
4802         just as in test-argmatch.c.
4803
4804 2009-08-13  Eric Blake  <ebb9@byu.net>
4805
4806         test-dup2: fix bad assumption
4807         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
4808         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
4809
4810         test-version-etc: fix CRLF portability issue
4811         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
4812         recognize \r.
4813         * tests/test-argp-version-etc-1.sh: Likewise.
4814
4815         getopt: update client modules
4816         * modules/argp (Depends-on): Use getopt-gnu.
4817         * modules/git-merge-changelog (Depends-on): Likewise.
4818         * modules/long-options (Depends-on): Likewise.
4819         * modules/xstrtol (Depends-on): Likewise.
4820
4821 2009-08-13  Simon Josefsson  <simon@josefsson.org>
4822
4823         * tests/test-version-etc.sh: Don't fail on different
4824         project/version.  Don't fail on CRLF differences.  Rewrite to use
4825         multiple -e instead of multiple sed forks, suggested by Eric Blake
4826         <ebb9@byu.net>.
4827         * tests/test-argp-version-etc-1.sh: Likewise.
4828
4829 2009-08-13  Simon Josefsson  <simon@josefsson.org>
4830
4831         * tests/test-version-etc.sh: Don't fail on different
4832         project/version.
4833
4834 2009-08-12  Bruno Haible  <bruno@clisp.org>
4835
4836         Tests for modules 'getopt-posix', 'getopt-gnu'.
4837         * modules/getopt-posix-tests: New file.
4838         * tests/test-getopt.c: New file.
4839         * tests/test-getopt.h: New file.
4840         * tests/test-getopt_long.h: New file.
4841
4842         New modules 'getopt-posix', 'getopt-gnu'.
4843         * modules/getopt-gnu: New file, renamed from modules/getopt.
4844         * modules/getopt-posix: New file.
4845         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
4846         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
4847         (gl_GETOPT): Remove macro.
4848         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
4849         Disable the test against BSD systems that declare optreset. Test
4850         against mingw bug. Test against lack of support of optional arguments
4851         on many platforms.
4852         * doc/glibc-headers/getopt.texi: Update module name and list of
4853         relevant platforms.
4854         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
4855         'getopt-gnu' and more portability problems.
4856         * NEWS: Mention the changes.
4857
4858 2009-08-12  Bruno Haible  <bruno@clisp.org>
4859
4860         Ensure that optarg etc. get declared by <unistd.h>.
4861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
4862         AC_USE_SYSTEM_EXTENSIONS.
4863         * modules/getopt (Depends-on): Add 'extensions'.
4864
4865 2009-08-12  Bruno Haible  <bruno@clisp.org>
4866
4867         Avoid test link errors.
4868         * modules/pipe-filter-ii-tests (Makefile.am): Define
4869         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
4870         * modules/pipe-filter-gi-tests (Makefile.am): Define
4871         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
4872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4873
4874 2009-08-12  Bruno Haible  <bruno@clisp.org>
4875
4876         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
4877         gl_GETOPT_SUBSTITUTE before.
4878         (gl_GETOPT): Use it.
4879         * m4/argp.m4 (gl_ARGP): Update.
4880         Reported by Sergey Poznyakoff.
4881
4882         * m4/getopt.m4: Reorder macros.
4883         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
4884         (gl_GETOPT_SUBSTITUTE): Remove macro.
4885
4886 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4887
4888         Minor improvement in gitlog-to-changelog
4889
4890         * build-aux/gitlog-to-changelog: New option `--format' makes
4891         output format string configurable.
4892
4893 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4894
4895         Optimize exclude: use hash tables for non-wildcard patterns.
4896
4897         * lib/exclude.c: Include hash.h and mbuiter.h
4898         (struct exclude_pattern, exclude_segment): New data types.
4899         (struct exclude): Rewrite.
4900         (fnmatch_pattern_has_wildcards): New function.
4901         (new_exclude_segment, free_exclude_segment): New functions.
4902         (excluded_file_pattern_p, excluded_file_name_p): New functions.
4903         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
4904         * lib/exclude.h (is_fnmatch_pattern): New prototype.
4905         * modules/exclude: Depend on hash and mbuiter.
4906
4907         * modules/exclude-tests: New file.
4908         * tests/test-exclude.c: New file.
4909         * tests/test-exclude1.sh: New file.
4910         * tests/test-exclude2.sh: New file.
4911         * tests/test-exclude3.sh: New file.
4912         * tests/test-exclude4.sh: New file.
4913         * tests/test-exclude5.sh: New file.
4914         * tests/test-exclude6.sh: New file.
4915         * tests/test-exclude7.sh: New file.
4916
4917 2009-08-12  Bruno Haible  <bruno@clisp.org>
4918
4919         Ensure that getopt() gets declared by <unistd.h>.
4920         * lib/unistd.in.h: Conditionally include getopt.h.
4921         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
4922         Set GNULIB_UNISTD_H_GETOPT.
4923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4924         GNULIB_UNISTD_H_GETOPT.
4925         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
4926
4927 2009-08-12  Bruno Haible  <bruno@clisp.org>
4928
4929         Clarify logic.
4930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
4931         gl_replace_getopt instead of GETOPT_H.
4932
4933 2009-08-12  Bruno Haible  <bruno@clisp.org>
4934
4935         * m4/getopt.m4: Add comments.
4936
4937 2009-08-12  Bruno Haible  <bruno@clisp.org>
4938
4939         Disable multithread support by default on Cygwin 1.5.x.
4940         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
4941         set gl_use_threads=no if not specified otherwise.
4942
4943 2009-08-11  Bruno Haible  <bruno@clisp.org>
4944
4945         Avoid compilation error on NetBSD 5.0.
4946         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
4947         * tests/test-stdio.c: Likewise.
4948         * tests/test-stdlib.c: Likewise.
4949         * tests/test-string.c: Likewise.
4950         * tests/test-unistd.c: Likewise.
4951         Reported by Greg Troxel <gdt@ir.bbn.com>
4952         at <https://savannah.gnu.org/support/?106973>.
4953
4954 2009-08-11  Bruno Haible  <bruno@clisp.org>
4955
4956         * modules/dup2-tests (Depends-on): Remove close.
4957
4958         Undo 2009-07-19 commit.
4959         * modules/acl-tests (Depends-on): Remove close.
4960         * modules/binary-io-tests (Depends-on): Likewise.
4961         * modules/closein-tests (Depends-on): Likewise.
4962         * modules/flock-tests (Depends-on): Likewise.
4963         * modules/fsync-tests (Depends-on): Likewise.
4964         * modules/lseek-tests (Depends-on): Likewise.
4965         * modules/pipe-tests (Depends-on): Likewise.
4966         * modules/posix_spawn-tests (Depends-on): Likewise.
4967         * modules/posix_spawnp-tests (Depends-on): Likewise.
4968         * modules/stat-time-tests (Depends-on): Likewise.
4969         * modules/yesno-tests (Depends-on): Likewise.
4970
4971 2009-08-10  Bruno Haible  <bruno@clisp.org>
4972
4973         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
4974
4975 2009-08-10  Bruno Haible  <bruno@clisp.org>
4976
4977         Fix a gcc warning.
4978         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
4979
4980 2009-08-10  Bruno Haible  <bruno@clisp.org>
4981
4982         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
4983         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
4984         not only the first time.
4985         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
4986         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
4987         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
4988         is 1, not only the the first time.
4989
4990 2009-08-10  Bruno Haible  <bruno@clisp.org>
4991
4992         Make it possible to use module 'gethostname' without module 'close'.
4993         * lib/unistd.in.h (close): Evoke a link error only if
4994         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
4995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4996         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
4997         * modules/unistd (Makefile.am): Substitute
4998         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
4999         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
5000         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
5001         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5002         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5003         * modules/sys_ioctl (Makefile.am): Substitute
5004         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5005         * modules/socket (configure.ac): On native Windows, set
5006         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
5007         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5008         Reported by Sam Steingold <sds@gnu.org>.
5009
5010 2009-08-10  Bruno Haible  <bruno@clisp.org>
5011
5012         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
5013         * modules/ioctl (configure.ac): Likewise.
5014
5015 2009-08-10  Bruno Haible  <bruno@clisp.org>
5016
5017         Avoid collision between gnulib wrapper and libintl wrapper.
5018         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
5019         already defined in intl/printf.c.
5020         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
5021         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
5022
5023 2009-08-09  Bruno Haible  <bruno@clisp.org>
5024
5025         Make <sys/select.h> really self-contained, also on Solaris 10.
5026         * lib/sys_select.in.h: Include <string.h>.
5027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
5028         Solaris 10 problem.
5029         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
5030         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
5031         Reported by Jim Meyering.
5032
5033 2009-08-09  Bruno Haible  <bruno@clisp.org>
5034
5035         Avoid warnings from 'aclocal' that are due to a use of macro name
5036         AM_XGETTEXT_OPTION that is not defined in automake.
5037         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
5038         automake.
5039         * modules/error (configure.ac): Likewise.
5040         * modules/propername (configure.ac): Likewise.
5041         * modules/vasprintf (configure.ac): Likewise.
5042         * modules/verror (configure.ac): Likewise.
5043         * modules/xprintf (configure.ac): Likewise.
5044         * modules/xvasprintf (configure.ac): Likewise.
5045
5046 2009-08-08  Bruno Haible  <bruno@clisp.org>
5047
5048         Avoid compilation error in C++ mode.
5049         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
5050         Reported by Sam Steingold <sds@gnu.org>.
5051
5052 2009-08-08  Bruno Haible  <bruno@clisp.org>
5053
5054         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
5055         for the various Unix platforms.
5056         * doc/posix-headers/limits.texi: Update platforms list regarding
5057         HOST_NAME_MAX.
5058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5059
5060 2009-08-07  Jim Meyering  <meyering@redhat.com>
5061
5062         selinux-at: fix typo in a comment
5063         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
5064         Spotted by Paolo Bonzini.
5065
5066         selinux-at: remove redundant m4 code, add documentation
5067         * modules/selinux-at (configure.ac): Remove redundant code.
5068         LIB_SELINUX is already set via the dependent module, selinux-h.
5069         (Include): Add quotes around selinux-at.h.
5070         * lib/selinux-at.h: Add documentation.
5071         Reported by Bruno Haible in
5072         http://marc.info/?l=gnulib-bug&m=124958988300749
5073
5074 2009-08-07  Bruno Haible  <bruno@clisp.org>
5075
5076         Avoid link error on MacOS X 10.3 and 10.4.
5077         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
5078         on non-ELF systems.
5079         * lib/argp-pv.c (argp_program_version): Likewise.
5080         Reported by Simon Josefsson.
5081
5082 2009-08-07  Simon Josefsson  <simon@josefsson.org>
5083
5084         * tests/test-version-etc.sh: Use $EXEEXT.
5085
5086 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
5087
5088         update-copyright: update documentation to point to maint.mk
5089         * build-aux/update-copyright: Here.
5090
5091 2009-08-06  Jim Meyering  <meyering@redhat.com>
5092
5093         maint.mk: support update-copyright-local
5094         * top/maint.mk (update-copyright-local): Define place-holder.
5095         (update-copyright): Depend on $(update-copyright-local).
5096
5097 2009-08-06  Jim Meyering  <meyering@redhat.com>
5098
5099         selinux-at: new module
5100         Initially written for coreutils, this module will soon be
5101         used by findutils, too.
5102         * MODULES.html.sh [Misc]: Add selinux-at.
5103         * lib/selinux-at.h: New file, from coreutils.
5104         * lib/selinux-at.c: Likewise.
5105         * modules/selinux-at: Likewise.
5106         (License): Change from LGPL to GPL, since it depends
5107         on the GPL'd openat module.
5108
5109         doc: update README
5110         * README: Remove references to cogito.
5111         Remove cvs-repo-updating instructions from 2007.
5112         Don't imply that CVS is better if you have limited disk space.
5113
5114 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5115
5116         update-copyright: support C-style comments
5117         * build-aux/update-copyright: Implement and document.
5118         * tests/test-update-copyright.sh: Test.
5119
5120 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5121
5122         update-copyright: support omitted "(C)"
5123         * build-aux/update-copyright: Implement and document.  Also,
5124         allow variable whitespace before "(C)".
5125         * tests/test-update-copyright.sh: Test.
5126
5127 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5128
5129         update-copyright: don't trip on non-FSF copyright statements
5130         * build-aux/update-copyright: Fix so that the first correctly
5131         formatted FSF copyright statement is recognized no matter what
5132         appears before it.  Update documentation.
5133         * tests/test-update-copyright.sh: Test that.
5134
5135 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5136
5137         update-copyright: clean up code a little
5138         * build-aux/update-copyright: Append "_re" to the name of any
5139         variable holding a regular expression.
5140         Replace "old" and "new" with "stmt" in variable names.
5141         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
5142         handled correctly.
5143         Format code more consistently.
5144
5145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5146
5147         update-copyright-tests: improve portability
5148         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
5149         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
5150
5151 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
5152
5153         update-copyright: support @copyright{} and &copy;
5154         * build-aux/update-copyright: Implement and document.
5155         * tests/test-update-copyright.sh: Test.
5156
5157 2009-08-04  Jim Meyering  <meyering@redhat.com>
5158
5159         update-copyright-tests: correctly test EOL=\r\n handling
5160         * tests/test-update-copyright.sh: Put \r at the end of some lines
5161         for the dos-eol tests.  Based on a patch by Joel E. Denny.
5162
5163         maint.mk: make update-copyright exclusion list more configurable
5164         * top/maint.mk (update-copyright): Default to excluding COPYING,
5165         but allow an override, in case someone does want to update that file.
5166
5167         maint.mk: don't update copyright date in COPYING
5168         * top/maint.mk (update-copyright): Exclude COPYING.
5169
5170         maint.mk: add a copyright-updating rule
5171         * top/maint.mk (update-copyright): New rule.
5172         Derived from coreutils/Makefile.am.
5173
5174         update-copyright: rename some variables
5175         * build-aux/update-copyright: Rename a few variables for clarity.
5176         Tweak syntax.  List Joel E. Denny as coauthor.
5177
5178 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
5179
5180         update-copyright: fix bug for 2-digit last year and add tests
5181         * build-aux/update-copyright: Fix bug.
5182         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
5183         specified.
5184         * modules/update-copyright-tests: New
5185         * tests/test-update-copyright.sh: New.
5186
5187 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5188
5189         update-copyright: handle leading tabs in line prefix
5190         * build-aux/update-copyright: Count leading tabs as 8 spaces
5191         when computing margin.  This helps with the formatting of
5192         ChangeLogs, for example.
5193         Fix documentation a little.
5194
5195 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5196
5197         update-copyright: support EOL=\r\n
5198         * build-aux/update-copyright: Implement that.
5199
5200 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5201
5202         update-copyright: automatically format copyright statements
5203         * build-aux/update-copyright: Implement that.
5204         Also, be a little more predictable and safer by always failing
5205         when the full copyright format is not perfectly recognized as an
5206         unbroken whole.  Discussed at
5207         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
5208         Rewrite documentation.
5209
5210 2009-08-03  Bruno Haible  <bruno@clisp.org>
5211
5212         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
5213
5214 2009-08-02  Bruno Haible  <bruno@clisp.org>
5215
5216         Tests for module 'uname'.
5217         * modules/uname-tests: New file.
5218         * tests/test-uname.c: New file.
5219
5220         New module 'uname'.
5221         * lib/uname.c: New file.
5222         * m4/uname.m4: New file.
5223         * modules/uname: New file.
5224         * doc/posix-functions/uname.texi: Mention the new module.
5225
5226 2009-08-02  Bruno Haible  <bruno@clisp.org>
5227
5228         Tests for module 'sys_utsname'.
5229         * modules/sys_utsname-tests: New file.
5230         * tests/test-sys_utsname.c: New file.
5231
5232         New module 'sys_utsname'.
5233         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
5234         * m4/sys_utsname_h.m4: New file.
5235         * modules/sys_utsname: New file.
5236         * doc/posix-headers/sys_utsname.texi: Mention the new module.
5237
5238 2009-08-02  Bruno Haible  <bruno@clisp.org>
5239
5240         Implicitly initialize the sockets library.
5241         * lib/gethostname.c: Include sockets.h.
5242         (rpl_gethostname): Invoke gl_sockets_startup.
5243         * lib/socket.c: Include sockets.h.
5244         (rpl_socket): Invoke gl_sockets_startup.
5245         * modules/gethostname (Depends-on): Add sockets.
5246         * modules/socket (Depends-on): Likewise.
5247         * tests/test-poll.c: Don't include sockets.h.
5248         (main): Don't invoke gl_sockets_startup.
5249         * tests/test-select.c: Don't include sockets.h.
5250         (main): Don't invoke gl_sockets_startup.
5251
5252 2009-08-02  Bruno Haible  <bruno@clisp.org>
5253
5254         Allow multiple calls to gl_sockets_startup.
5255         * lib/sockets.c (initialized_sockets_version): New variable.
5256         (gl_sockets_startup): Do nothing if already called for this or a higher
5257         version.
5258         (gl_sockets_cleanup): Reset initialized_sockets_version.
5259
5260 2009-08-03  Simon Josefsson  <simon@josefsson.org>
5261
5262         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
5263         different project/version.
5264
5265 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
5266             Bruno Haible  <bruno@clisp.org>
5267
5268         Tests for module 'pipe-filter-gi'.
5269         * modules/pipe-filter-gi-tests: New file.
5270         * tests/test-pipe-filter-gi1.sh: New file.
5271         * tests/test-pipe-filter-gi1.c: New file.
5272         * tests/test-pipe-filter-gi2.sh: New file.
5273         * tests/test-pipe-filter-gi2-main.c: New file.
5274         * tests/test-pipe-filter-gi2-child.c: New file.
5275
5276         New module 'pipe-filter-gi'.
5277         * lib/pipe-filter-gi.c: New file.
5278         * modules/pipe-filter-gi: New file.
5279
5280 2009-08-02  Bruno Haible  <bruno@clisp.org>
5281             Paolo Bonzini  <bonzini@gnu.org>
5282
5283         Tests for module 'pipe-filter-ii'.
5284         * modules/pipe-filter-ii-tests: New file.
5285         * tests/test-pipe-filter-ii1.sh: New file.
5286         * tests/test-pipe-filter-ii1.c: New file.
5287         * tests/test-pipe-filter-ii2.sh: New file.
5288         * tests/test-pipe-filter-ii2-main.c: New file.
5289         * tests/test-pipe-filter-ii2-child.c: New file.
5290
5291         New module 'pipe-filter-ii'.
5292         * lib/pipe-filter.h: New file.
5293         * lib/pipe-filter-ii.c: New file.
5294         * lib/pipe-filter-aux.h: New file.
5295         * modules/pipe-filter-ii: New file.
5296
5297 2009-08-02  Simon Josefsson  <simon@josefsson.org>
5298
5299         * lib/gc-libgcrypt.c: Change copyright to FSF.
5300         * lib/gc-gnulib.c: Likewise.
5301
5302 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
5303
5304         * lib/gethostname.c: Include limits.h.
5305
5306 2009-08-02  Simon Josefsson  <simon@josefsson.org>
5307             Bruno Haible  <bruno@clisp.org>
5308
5309         Ensure HOST_NAME_MAX as part of the gethostname module.
5310         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
5311         define also HOST_NAME_MAX.
5312         * tests/test-gethostname.c: Include <limits.h>.
5313         (main): Check also HOST_NAME_MAX.
5314         * doc/posix-headers/limits.texi: Document the mingw problem.
5315
5316 2009-08-02  Bruno Haible  <bruno@clisp.org>
5317
5318         * lib/gethostname.c (gethostname): Fix handling of large len argument.
5319         Add comments.
5320
5321 2009-03-31  Simon Josefsson  <simon@josefsson.org>
5322
5323         * lib/gethostname.c: Add Windows wrapper.
5324         * m4/gethostname.m4: Look for gethostname in -lws2_32.
5325         * modules/gethostname: Depend on sys_socket & errno, for also
5326         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
5327         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
5328
5329 2009-07-31  Jim Meyering  <meyering@redhat.com>
5330
5331         getloadavg: fix symbol name in comment
5332         * lib/getloadavg.c: Correct a typo I introduced when adding
5333         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
5334         Matt Kraai spotted the problem.
5335
5336 2009-07-29  Matt Kraai  <mkraai@beckman.com>
5337
5338         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
5339         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
5340         code also if ! defined N_NAME_POINTER.
5341         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
5342         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
5343         but the n_name member is a 12-byte array.
5344
5345 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
5346
5347         update-copyright: generalize comment handling
5348         * build-aux/update-copyright: Handle copyright statements
5349         within more comment styles.
5350         Document usage.
5351         Report any file with an external copyright holder or parse failure.
5352
5353 2009-07-29  Jim Meyering  <meyering@redhat.com>
5354
5355         mktime: correct setting of REPLACE_MKTIME
5356         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
5357
5358         update-copyright: new module
5359         * modules/update-copyright: New file.
5360         * build-aux/update-copyright: New file.
5361         * MODULES.html.sh (maint+release support): Add update-copyright.
5362
5363 2009-07-27  Bruno Haible  <bruno@clisp.org>
5364
5365         Fix compilation error when <ctime> is used and mktime is replaced.
5366         * lib/time.in.h (mktime): New declaration.
5367         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
5368         REPLACE_MKTIME instead of defining mktime in config.h.
5369         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
5370         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
5371         Reported by Ross McFarland <rwmcfa1@neces.com>.
5372
5373 2009-07-27  Bruno Haible  <bruno@clisp.org>
5374
5375         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
5376         Reported by Matt Kraai <mkraai@beckman.com>.
5377
5378 2009-07-25  Jim Meyering  <meyering@redhat.com>
5379
5380         maint.mk: avoid warnings about missing files
5381         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
5382         diagnostic when .prev-version does not exist.
5383         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
5384         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
5385         nonexistent cfg.mk.
5386         Suggestions from Simon Josefsson.
5387
5388 2009-07-25  Bruno Haible  <bruno@clisp.org>
5389
5390         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
5391         defined as macros. Needed on QNX 6.4.1.
5392         Reported by Matt Kraai <mkraai@beckman.com>.
5393
5394 2009-07-23  Jim Meyering  <meyering@redhat.com>
5395
5396         maint.mk: invoke "make dist" with a working value of XZ_OPT
5397         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
5398
5399 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
5400
5401         Make fseeko.c compile on QNX.
5402         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
5403
5404 2009-07-22  Peter Simons  <simons@cryp.to>
5405
5406         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
5407         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
5408         * lib/md4.h: Likewise.
5409         * lib/md5.h: Likewise.
5410         * lib/sha1.h: Likewise.
5411         * lib/sha256.h: Likewise.
5412         * lib/sha512.h: Likewise.
5413
5414         tests-sha1: don't assign literal string to 'char *' variable
5415         * tests/test-sha1.c (main): Declare locals with "const" to match
5416         attributes of the right hand side.
5417
5418 2009-07-21  Eric Blake  <ebb9@byu.net>
5419
5420         dup2: fix more mingw problems
5421         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
5422         fd to itself.
5423         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5424         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
5425         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
5426         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
5427         care of mingw bugs.
5428
5429 2009-07-21  Jim Meyering  <meyering@redhat.com>
5430
5431         vc-list-files: avoid failure when /bin/sh is dash
5432         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
5433         On some Debian based systems, /bin/sh is a symlink to dash, and running
5434         this command would omit the "/" following each 'tests' prefix:
5435           dash -x build-aux/vc-list-files -C . tests
5436         That is because bash and dash work differently:
5437           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
5438           bash ok
5439           dash odd
5440
5441 2009-07-21  Eric Blake  <ebb9@byu.net>
5442
5443         dup2-tests: test previous patch
5444         * modules/dup2-tests: New file.
5445         * tests/test-dup2.c: Likewise.
5446         * tests/test-open.c (main): Avoid unspecified behavior.
5447         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
5448         test.
5449
5450         dup2: work around mingw and cygwin 1.5 bug
5451         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
5452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5453         * modules/unistd (Makefile.am): Substitute it.
5454         * lib/unistd.in.h (dup2): Declare the replacement.
5455         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
5456         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
5457         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
5458         * modules/execute (Depends-on): Add dup2.
5459         * modules/fseterr (Depends-on): Likewise.
5460         * modules/pipe (Depends-on): Likewise.
5461         * modules/posix_spawn-internal (Depends-on): Likewise.
5462
5463 2009-07-21  Bruno Haible  <bruno@clisp.org>
5464
5465         * modules/.gitattributes: New file.
5466
5467 2009-07-20  Bruno Haible  <bruno@clisp.org>
5468
5469         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
5470         (main): Use it.
5471
5472 2009-07-20  Eric Blake  <ebb9@byu.net>
5473
5474         test-pipe: make a bit more robust.
5475         * tests/test-pipe.c (myerr): Allow error messages regardless of
5476         what we do to stderr.
5477         (test_pipe): Rearrange to avoid deadlock.
5478         (child_main): Try a larger read, to ensure we avoided deadlock.
5479         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
5480         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
5481         if misused.
5482
5483 2009-07-19  Jim Meyering  <meyering@redhat.com>
5484
5485         fts: avoid false-positive cycle-detection
5486         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
5487         for each new command line argument.
5488
5489 2009-07-19  Bruno Haible  <bruno@clisp.org>
5490
5491         Fix build error on mingw with the modules sys_select and unistd.
5492         * modules/acl-tests (Depends-on): Add close.
5493         * modules/binary-io-tests (Depends-on): Likewise.
5494         * modules/closein-tests (Depends-on): Likewise.
5495         * modules/flock-tests (Depends-on): Likewise.
5496         * modules/fsync-tests (Depends-on): Likewise.
5497         * modules/lseek-tests (Depends-on): Likewise.
5498         * modules/pipe-tests (Depends-on): Likewise.
5499         * modules/posix_spawn-tests (Depends-on): Likewise.
5500         * modules/posix_spawnp-tests (Depends-on): Likewise.
5501         * modules/stat-time-tests (Depends-on): Likewise.
5502         * modules/yesno-tests (Depends-on): Likewise.
5503
5504 2009-07-19  Bruno Haible  <bruno@clisp.org>
5505
5506         Unify conditionals.
5507         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
5508         macros, not at the compiler macros.
5509         * lib/pipe.c: Likewise.
5510         * lib/execute.c: Likewise.
5511         * lib/spawni.c: Likewise.
5512
5513 2009-07-19  Bruno Haible  <bruno@clisp.org>
5514
5515         Fix handling of closed stdin/stdout/stderr on mingw.
5516         * lib/w32spawn.h: Include unistd.h.
5517         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
5518         file descriptor with O_NOINHERIT flag.
5519         (fd_safer_noinherit): New function, based on fd-safer.c.
5520         (dup_safer_noinherit): New function, based on dup-safer.c.
5521         (undup_safer_noinherit): New function.
5522         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
5523         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
5524         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
5525         instead of fd_safer.
5526         * tests/test-pipe.c: Include <windows.h>.
5527         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
5528
5529         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
5530         from main.
5531         (test_pipe): Pass an extra argument for disambiguation.
5532         (main): Invoke parent_main or child_main.
5533
5534         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
5535         consistently.
5536
5537 2009-07-18  Eric Blake  <ebb9@byu.net>
5538
5539         test-pipe: fix mingw build
5540         * tests/test-pipe.c (main): Avoid fcntl on mingw.
5541
5542 2009-07-18  Bruno Haible  <bruno@clisp.org>
5543
5544         * modules/pipe-tests (Makefile.am): Fix typo.
5545
5546 2009-07-18  Eric Blake  <ebb9@byu.net>
5547
5548         error: fix mingw build
5549         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
5550         Reported by Bruno Haible.
5551
5552         error: avoid undefined use of stdout
5553         * lib/error.c (error, error_at_line): Check that fd 1 is open
5554         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
5555         is handling faults and the close_stdout module wants to report the
5556         detection of closed stdout as an error.
5557
5558 2009-07-17  Eric Blake  <ebb9@byu.net>
5559
5560         pipe: be robust in face of closed fds
5561         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
5562         should cause child to misbehave.
5563         * modules/pipe-tests: New module.
5564         * tests/test-pipe.c: New file.
5565         * tests/test-pipe.sh: New file.
5566         Reported by Akim Demaille.
5567
5568 2009-07-14  Bruno Haible  <bruno@clisp.org>
5569
5570         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
5571         Reported by anonymous kc.
5572
5573 2009-07-07  Jim Meyering  <meyering@redhat.com>
5574
5575         maint.mk: don't look for translatable strings in *.m4 or *.mk
5576         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
5577         when searching for translatable strings.
5578
5579 2009-07-05  Jim Meyering  <meyering@redhat.com>
5580
5581         remove superfluous parentheses in STREQ definition
5582         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
5583         * lib/getugroups.c (STREQ): Likewise.
5584         * lib/fnmatch.c (STREQ): Likewise.
5585         Spotted by Bruno Haible.
5586
5587 2009-07-04  Jim Meyering  <meyering@redhat.com>
5588
5589         argv-iter: new module
5590         * MODULES.html.sh: Add argv-iter.
5591         * lib/argv-iter.c, lib/argv-iter.h: New files.
5592         * modules/argv-iter: New file.
5593         * modules/argv-iter-tests: New file.
5594         * tests/test-argv-iter.c: Test it.
5595
5596 2009-07-04  Bruno Haible  <bruno@clisp.org>
5597
5598         Fix assertion.
5599         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
5600         contains more exact copies of a given entry than file2, leave the extra
5601         copies unpaired rather than aborting.
5602         Reported by Eric Blake.
5603
5604 2009-07-02  Bruno Haible  <bruno@clisp.org>
5605
5606         Speedup git-merge-changelog for git cherry-pick.
5607         * lib/git-merge-changelog.c (struct entries_mapping): New type.
5608         (entries_mapping_get): New function, extracted from compute_mapping.
5609         (entries_mapping_reverse_get): New function.
5610         (compute_mapping): Add a 'full' argument. Return the result in a
5611         'struct entries_mapping'.
5612         (main): Update. Access the mappings through entries_mapping_get.
5613         Reported by Eric Blake.
5614
5615 2009-07-02  Bruno Haible  <bruno@clisp.org>
5616
5617         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
5618         best_i.
5619
5620 2009-07-02  Bruno Haible  <bruno@clisp.org>
5621
5622         Speed up approximate search for matching ChangeLog entries.
5623         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
5624         argument. Call fstrcmp_bounded instead of fstrcmp.
5625         (compute_mapping, try_split_merged_entry, main): Update callers.
5626
5627 2009-07-02  Bruno Haible  <bruno@clisp.org>
5628
5629         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
5630
5631 2009-06-30  Bruno Haible  <bruno@clisp.org>
5632
5633         Reduce the number of uc_is_cased calls.
5634         * lib/unicase.h (casing_suffix_context_t): Add
5635         'first_char_except_ignorable' field.
5636         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
5637         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
5638         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
5639         Update initializer.
5640         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
5641         case-ignorable characters.
5642         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
5643         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
5644         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
5645         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
5646         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
5647
5648 2009-06-30  Bruno Haible  <bruno@clisp.org>
5649
5650         Tests for module 'unicase/ignorable'.
5651         * modules/unicase/ignorable-tests: New file.
5652         * tests/unicase/test-ignorable.c: New file, generated by
5653         gen-uni-tables.
5654
5655         Tests for module 'unicase/cased'.
5656         * modules/unicase/cased-tests: New file.
5657         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
5658         * tests/unicase/test-predicate-part1.h: New file, derived from
5659         tests/unictype/test-predicate-part1.h.
5660         * tests/unicase/test-predicate-part2.h: New file, same as
5661         tests/unictype/test-predicate-part2.h.
5662
5663         Fix evaluation of "Before C" condition of FINAL_SIGMA.
5664         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
5665         (output_casing_properties): New function.
5666         (main): Call it.
5667         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
5668         * lib/unicase/cased.c: Include unictype/bitmap.h.
5669         (uc_is_cased): Define through a bitmap lookup.
5670         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
5671         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
5672         (uc_is_case_ignorable): Define through a bitmap lookup.
5673         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
5674         lib/unictype/bitmap.h.
5675         (Depends-on): Add inline. Clean up.
5676         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
5677         lib/unictype/bitmap.h.
5678         (Depends-on): Add inline. Clean up.
5679         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
5680         recognition.
5681         * tests/unicase/test-u16-tolower.c (main): Likewise.
5682         * tests/unicase/test-u32-tolower.c (main): Likewise.
5683
5684 2009-06-30  Bruno Haible  <bruno@clisp.org>
5685
5686         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
5687         * lib/unicase/u16-casemap.c: Likewise.
5688         * lib/unicase/u32-casemap.c: Likewise.
5689
5690 2009-06-29  Bruno Haible  <bruno@clisp.org>
5691
5692         Define u32_casefold as a wrapper around u32_ct_casefold.
5693         * lib/unicase/u32-casefold.c: Update.
5694         * modules/unicase/u32-casefold (Depends-on): Add
5695         unicase/u32-ct-casefold, unicase/empty-prefix-context,
5696         unicase/empty-suffix-context. Clean up.
5697
5698         Define u16_casefold as a wrapper around u16_ct_casefold.
5699         * lib/unicase/u16-casefold.c: Update.
5700         * modules/unicase/u16-casefold (Depends-on): Add
5701         unicase/u16-ct-casefold, unicase/empty-prefix-context,
5702         unicase/empty-suffix-context. Clean up.
5703
5704         Define u8_casefold as a wrapper around u8_ct_casefold.
5705         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
5706         * lib/unicase/u8-casefold.c: Update.
5707         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
5708         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
5709
5710         Define u32_totitle as a wrapper around u32_ct_totitle.
5711         * lib/unicase/u32-totitle.c: Update.
5712         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
5713         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
5714
5715         Define u16_totitle as a wrapper around u16_ct_totitle.
5716         * lib/unicase/u16-totitle.c: Update.
5717         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
5718         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
5719
5720         Define u8_totitle as a wrapper around u8_ct_totitle.
5721         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
5722         functions.
5723         (FUNC): Delegate to U_CT_TOTITLE.
5724         * lib/unicase/u8-totitle.c: Update.
5725         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
5726         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
5727
5728         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
5729         invocation.
5730         * modules/unicase/u32-tolower (Depends-on): Add
5731         unicase/empty-prefix-context, unicase/empty-suffix-context.
5732
5733         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
5734         invocation.
5735         * modules/unicase/u16-tolower (Depends-on): Add
5736         unicase/empty-prefix-context, unicase/empty-suffix-context.
5737
5738         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
5739         * modules/unicase/u8-tolower (Depends-on): Add
5740         unicase/empty-prefix-context, unicase/empty-suffix-context.
5741
5742         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
5743         invocation.
5744         * modules/unicase/u32-toupper (Depends-on): Add
5745         unicase/empty-prefix-context, unicase/empty-suffix-context.
5746
5747         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
5748         invocation.
5749         * modules/unicase/u16-toupper (Depends-on): Add
5750         unicase/empty-prefix-context, unicase/empty-suffix-context.
5751
5752         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
5753         * modules/unicase/u8-toupper (Depends-on): Add
5754         unicase/empty-prefix-context, unicase/empty-suffix-context.
5755
5756         New module 'unicase/u32-ct-casefold'.
5757         * lib/unicase/u32-ct-casefold.c: New file.
5758         * modules/unicase/u32-ct-casefold: New file.
5759
5760         New module 'unicase/u16-ct-casefold'.
5761         * lib/unicase/u16-ct-casefold.c: New file.
5762         * modules/unicase/u16-ct-casefold: New file.
5763
5764         New module 'unicase/u8-ct-casefold'.
5765         * lib/unicase/u8-ct-casefold.c: New file.
5766         * lib/unicase/u-ct-casefold.h: New file, derived from
5767         lib/unicase/u-casefold.h.
5768         * modules/unicase/u8-ct-casefold: New file.
5769
5770         New module 'unicase/u32-ct-totitle'.
5771         * lib/unicase/u32-ct-totitle.c: New file.
5772         * modules/unicase/u32-ct-totitle: New file.
5773
5774         New module 'unicase/u16-ct-totitle'.
5775         * lib/unicase/u16-ct-totitle.c: New file.
5776         * modules/unicase/u16-ct-totitle: New file.
5777
5778         New module 'unicase/u8-ct-totitle'.
5779         * lib/unicase/u8-ct-totitle.c: New file.
5780         * lib/unicase/u-ct-totitle.h: New file, derived from
5781         lib/unicase/u-totitle.h.
5782         * modules/unicase/u8-ct-totitle: New file.
5783
5784         New module 'unicase/u32-ct-tolower'.
5785         * lib/unicase/u32-ct-tolower.c: New file.
5786         * modules/unicase/u32-ct-tolower: New file.
5787
5788         New module 'unicase/u16-ct-tolower'.
5789         * lib/unicase/u16-ct-tolower.c: New file.
5790         * modules/unicase/u16-ct-tolower: New file.
5791
5792         New module 'unicase/u8-ct-tolower'.
5793         * lib/unicase/u8-ct-tolower.c: New file.
5794         * modules/unicase/u8-ct-tolower: New file.
5795
5796         New module 'unicase/u32-ct-toupper'.
5797         * lib/unicase/u32-ct-toupper.c: New file.
5798         * modules/unicase/u32-ct-toupper: New file.
5799
5800         New module 'unicase/u16-ct-toupper'.
5801         * lib/unicase/u16-ct-toupper.c: New file.
5802         * modules/unicase/u16-ct-toupper: New file.
5803
5804         New module 'unicase/u8-ct-toupper'.
5805         * lib/unicase/u8-ct-toupper.c: New file.
5806         * modules/unicase/u8-ct-toupper: New file.
5807
5808         Add context arguments to u*_casemap functions.
5809         * lib/unicase/unicasemap.h: Include unicase.h.
5810         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
5811         suffix_context arguments.
5812         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
5813         functions.
5814         (FUNC): Add prefix_context and suffix_context arguments. Use
5815         uc_is_cased and uc_is_case_ignorable.
5816         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
5817         * lib/unicase/u16-casemap.c: Likewise.
5818         * lib/unicase/u32-casemap.c: Likewise.
5819         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
5820         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
5821         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
5822         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
5823         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
5824         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
5825
5826         New module 'unicase/u32-suffix-context'.
5827         * lib/unicase/u32-suffix-context.c: New file.
5828         * modules/unicase/u32-suffix-context: New file.
5829
5830         New module 'unicase/u16-suffix-context'.
5831         * lib/unicase/u16-suffix-context.c: New file.
5832         * modules/unicase/u16-suffix-context: New file.
5833
5834         New module 'unicase/u8-suffix-context'.
5835         * lib/unicase/u8-suffix-context.c: New file.
5836         * lib/unicase/u-suffix-context.h: New file.
5837         * modules/unicase/u8-suffix-context: New file.
5838
5839         New module 'unicase/empty-suffix-context'.
5840         * lib/unicase/empty-suffix-context.c: New file.
5841         * modules/unicase/empty-suffix-context: New file.
5842
5843         New module 'unicase/u32-prefix-context'.
5844         * lib/unicase/u32-prefix-context.c: New file.
5845         * modules/unicase/u32-prefix-context: New file.
5846
5847         New module 'unicase/u16-prefix-context'.
5848         * lib/unicase/u16-prefix-context.c: New file.
5849         * modules/unicase/u16-prefix-context: New file.
5850
5851         New module 'unicase/u8-prefix-context'.
5852         * lib/unicase/u8-prefix-context.c: New file.
5853         * lib/unicase/u-prefix-context.h: New file.
5854         * lib/unicase/context.h: New file.
5855         * modules/unicase/u8-prefix-context: New file.
5856
5857         New module 'unicase/empty-prefix-context'.
5858         * lib/unicase/empty-prefix-context.c: New file.
5859         * modules/unicase/empty-prefix-context: New file.
5860
5861         New module 'unicase/ignorable'.
5862         * lib/unicase/ignorable.c: New file.
5863         * modules/unicase/ignorable: New file.
5864
5865         New module 'unicase/cased'.
5866         * lib/unicase/caseprop.h: New file.
5867         * lib/unicase/cased.c: New file.
5868         * modules/unicase/cased: New file.
5869
5870         New functions for case mapping of substrings.
5871         * lib/unicase.h (casing_prefix_context_t): New type.
5872         (unicase_empty_prefix_context): New variable.
5873         (u8_casing_prefix_context, u16_casing_prefix_context,
5874         u32_casing_prefix_context, u8_casing_prefixes_context,
5875         u16_casing_prefixes_context, u32_casing_prefixes_context): New
5876         declarations.
5877         (casing_suffix_context_t): New type.
5878         (unicase_empty_suffix_context): New variable.
5879         (u8_casing_suffix_context, u16_casing_suffix_context,
5880         u32_casing_suffix_context, u8_casing_suffixes_context,
5881         u16_casing_suffixes_context, u32_casing_suffixes_context,
5882         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
5883         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
5884         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
5885         declarations.
5886
5887 2009-06-28  Jim Meyering  <meyering@redhat.com>
5888
5889         boostrap: indent only with spaces
5890         * build-aux/bootstrap: Indent only with spaces, never TABs.
5891
5892         bootstrap: split long lines
5893         * build-aux/bootstrap: Keep line length < 80.
5894
5895         bootstrap: sync from coreutils
5896         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
5897         just as autoreconf does.  Verify a list of prerequisite
5898         package-name,version-number pairs if defined in bootstrap.conf.
5899         Refer to README-prereq, if prerequisites are not satisfied.
5900
5901 2009-06-27  Eric Blake  <ebb9@byu.net>
5902
5903         tests: add test for bogus NULL definition
5904         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
5905         * tests/test-stdlib.c: Likewise.
5906         * tests/test-string.c: Likewise.
5907         * tests/test-locale.c: Likewise.
5908         * tests/test-unistd.c: Likewise.
5909         * modules/stdio-tests (Depends-on): Add verify.
5910         * modules/stdlib-tests (Depends-on): Likewise.
5911         * modules/string-tests (Depends-on): Likewise.
5912         * modules/locale-tests (Depends-on): Likewise.
5913         * modules/unistd-tests (Depends-on): Likewise.
5914
5915 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
5916
5917         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
5918         self-explaining comment.
5919         * m4/selinux-selinux-h: Update serial.
5920         (gl_LIBSELINUX): New macro, adding a warning for missing development
5921         packages to code extracted from...
5922         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
5923         Add warning for missing development packages here, too.
5924
5925 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
5926
5927         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
5928
5929 2009-06-25  Eric Blake  <ebb9@byu.net>
5930
5931         version-etc: fix regression
5932         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
5933         gcc.
5934         (version_etc): Use it, to catch bugs with trailing NULL.
5935         * lib/version-etc.c (version_etc_arn): Delete unused argument.
5936         (version_etc_va): Fix logic bug.
5937         * modules/version-etc-tests: Add test.
5938         * tests/test-version-etc.c: New file.
5939         * tests/test-version-etc.sh: Likewise.
5940
5941 2009-06-25  Sam Steingold  <sds@gnu.org>
5942
5943         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
5944         mbtowc declaration.
5945
5946 2009-06-25  Eric Blake  <ebb9@byu.net>
5947
5948         fpurge: migrate into <stdio.h>
5949         * lib/fpurge.h: Delete...
5950         * lib/stdio.in.h (fpurge): ...and declare here, instead.
5951         * lib/fpurge.c (fpurge): Change declaring header.
5952         * modules/fpurge (Files): Drop deleted file.
5953         (Depends-on): Add stdio.
5954         (configure.ac): Set witness.
5955         * modules/stdio (Makefile.am): Support fpurge macros.
5956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
5957         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
5958         * lib/fflush.c: Update client.
5959         * tests/test-fpurge.c: Likewise.
5960         * NEWS: Mention the change.
5961
5962 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5963
5964         * lib/argp-version-etc.c (program_authors): Add const
5965         qualifier.
5966         * lib/version-etc.c: Fix typos in the comments.
5967         * modules/argp-version-etc: Depends on version-etc.
5968
5969 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5970
5971         argp-version-etc: new module.
5972
5973         * lib/argp-version-etc.c: New file.
5974         * lib/argp-version-etc.h: New file.
5975         * modules/argp-version-etc: New file.
5976         * modules/argp-version-etc-tests: New file.
5977         * tests/test-argp-version-etc.c: New test.
5978         * tests/test-argp-version-etc-1.sh: New test.
5979
5980 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
5981
5982         Provide additional interfaces and documentation for version-etc
5983         module.
5984
5985         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
5986         interfaces.
5987         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
5988         prototypes.
5989
5990 2009-06-24  Bruno Haible  <bruno@clisp.org>
5991
5992         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
5993         HAVE_LIB${NAME} macro.
5994         Reported by Sam Steingold <sds@gnu.org>.
5995
5996 2009-06-23  Simon Josefsson  <simon@josefsson.org>
5997
5998         * modules/hash-tests (test_hash_LDADD): Link to libintl when
5999         needed.
6000
6001 2009-06-21  Bruno Haible  <bruno@clisp.org>
6002
6003         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
6004         work.
6005         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
6006         together with LIB${NAME}, LTLIB${NAME}.
6007         Reported by Sam Steingold <sds@gnu.org>.
6008
6009 2009-06-20  Jim Meyering  <meyering@redhat.com>
6010
6011         tests: make sc_require_test_exit_idiom more generic
6012         * top/maint.mk (Exit_witness_file): New overridable variable.
6013         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
6014         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
6015
6016 2009-06-19  Jim Meyering  <meyering@redhat.com>
6017
6018         hash: reverse order of src/dst parameters in an internal interface
6019         * lib/hash.c (transfer_entries): Reverse order of parameters to
6020         put DST before SRC.  Adjust callers.
6021
6022         tests: test-hash: avoid wholesale duplication
6023         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
6024         Instead, use a loop and add a single conditional.
6025
6026         tests: test-hash: allow seed selection via a command line argument
6027         * tests/test-hash.c (get_seed): New function.
6028         (main): Use it.
6029
6030 2009-06-19  Eric Blake  <ebb9@byu.net>
6031
6032         hash: avoid memory leak on allocation failure
6033         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
6034         failure.  Factor repeated algorithm...
6035         (transfer_entries): ...into new helper routine.
6036         (hash_delete): React to hash_rehash return value.
6037
6038         hash: reduce memory pressure in hash_rehash no-op case
6039         * lib/hash.c (next_prime): Avoid overflow.
6040         (hash_initialize): Factor bucket size computation...
6041         (compute_bucket_size): ...into new helper function.
6042         (hash_rehash): Use new function and open coding to reduce memory
6043         pressure, and avoid a memory leak in USE_OBSTACK code.
6044         Reported by Jim Meyering.
6045
6046 2009-06-18  Eric Blake  <ebb9@byu.net>
6047
6048         hash: make rotation more obvious
6049         * modules/hash (Depends-on): Add bitrotate and stdint.
6050         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
6051         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
6052         (SIZE_MAX): Rely on headers for definition.
6053         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
6054         (raw_hasher): Use rotr_sz.
6055         Suggested by Jim Meyering.
6056
6057         hash: fix memory leak in last patch
6058         * lib/hash.c (hash_rehash): Avoid memory leak.
6059
6060         hash: avoid no-op rehashing
6061         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
6062
6063         hash: provide default callback functions
6064         * lib/hash.c (raw_hasher, raw_comparator): New functions.
6065         (hash_initialize): Use them as defaults.
6066         * tests/test-hash.c (main): Test this.
6067
6068         hash: minor optimization
6069         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
6070         when possible.
6071         (hash_initialize): Document this promise.
6072         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
6073         * tests/test-hash.c (hash_compare_strings): Test this.
6074
6075 2009-06-18  Bruno Haible  <bruno@clisp.org>
6076
6077         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
6078         going to be replaced anyway.
6079
6080 2009-06-18  Bruno Haible  <bruno@clisp.org>
6081
6082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
6083         in one place.
6084         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
6085         be replaced anyway.
6086
6087 2009-06-18  Eric Blake  <ebb9@byu.net>
6088
6089         hash: check for resize before insertion
6090         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
6091         threshold before insertion, so that a pathological hash_rehash
6092         that fills every bucket can still trigger another rehash.
6093
6094 2009-06-18  Jim Meyering  <meyering@redhat.com>
6095
6096         hash-tests: add a loop around the small tests
6097         * tests/test-hash.c (main): Repeat small tests with selected
6098         small initial table sizes.
6099
6100 2009-06-17  Eric Blake  <ebb9@byu.net>
6101
6102         hash: minor cleanups
6103         * lib/hash.h (hash_entry): Make opaque, by moving...
6104         * lib/hash.c (hash_entry): ...here.
6105         (hash_insert): Clarify restrictions on what can be inserted.
6106         (hash_get_next): Clarify when it is safe to remove an element
6107         during traversal.
6108         (check_tuning): Skip verification when tuning is known safe.
6109         (hash_initialize): Clarify restrictions on tuning.
6110
6111 2009-06-17  Jim Meyering  <jim@meyering.net>
6112         and Eric Blake  <ebb9@byu.net>
6113
6114         hash-tests: new module
6115         * modules/hash-tests: New file.
6116         * tests/test-hash.c: New file.
6117
6118 2009-06-17  Eric Blake  <ebb9@byu.net>
6119
6120         strstr-simple: document new module
6121         * MODULES.html.sh: Document new module.
6122
6123         strstr, strcasestr: replace on platforms with broken memchr
6124         * modules/strstr: Split into...
6125         * modules/strstr-simple: ...new module that does not care about
6126         performance, but does care about glibc bug.
6127         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
6128         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
6129         if platform memchr is broken, per Debian bug 521737.
6130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
6131         memchr.
6132         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
6133         * doc/posix-functions/strstr.texi (strstr): Document the fix.
6134         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6135         * modules/mountlist (Depends-on): Add strstr-simple.
6136         * modules/gen-uni-tables (Depends-on): Likewise.
6137         * modules/argz (Depends-on): Add strstr.
6138
6139 2009-06-17  Bruno Haible  <bruno@clisp.org>
6140
6141         * modules/posix_spawn-internal (Depends-on): Add errno.
6142
6143 2009-06-17  Bruno Haible  <bruno@clisp.org>
6144
6145         Define missing ESTALE on Interix 3.5.
6146         * lib/errno.in.h (ESTALE): Assign a value if missing.
6147         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
6148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
6149         missing.
6150         * doc/posix-headers/errno.texi: Mention the Interix bug.
6151         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
6152
6153 2009-06-15  Eric Blake  <ebb9@byu.net>
6154
6155         memchr, memchr2: add valgrind exception
6156         * lib/memchr.valgrind: New file.
6157         * lib/memchr2.valgrind: New file.
6158         * modules/memchr (Files): Distribute valgrind file.
6159         * modules/memchr2 (Files): Likewise.
6160
6161         docs: memchr is no longer obsolete
6162         * MODULES.html.sh: Move memchr from obsolete to string.h section.
6163         * lib/string.in.h (memchr): Simplify logic.
6164
6165 2009-06-14  Jim Meyering  <meyering@redhat.com>
6166
6167         link-follow: fix the "checking..." message to not mention trailing slash
6168         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
6169         never considered trailing slashes.
6170
6171 2009-06-14  Bruno Haible  <bruno@clisp.org>
6172
6173         * m4/memchr.m4: Mention also the bug on IA-64.
6174         * doc/posix-functions/memchr.texi: Likewise.
6175
6176 2009-06-12  Eric Blake  <ebb9@byu.net>
6177
6178         memchr: detect broken x86_64 and alpha implementations
6179         * modules/memchr-tests (Depends-on): Move mmap detection...
6180         * modules/memchr (Depends-on): ...here.
6181         (configure.ac): Set indicator.
6182         * lib/string.in.h (memchr): Declare replacement.
6183         * modules/string (Makefile.am): Trigger replacement.
6184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6185         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
6186         bugs.
6187         * doc/posix-functions/memchr.texi (memchr): Document the bug.
6188         * modules/getpagesize (License): Relax license.
6189
6190 2009-06-11  Bruno Haible  <bruno@clisp.org>
6191
6192         * lib/idpriv.h: Add more references.
6193
6194 2009-06-08  Bruno Haible  <bruno@clisp.org>
6195
6196         Tests for module 'idpriv-droptemp'.
6197         * modules/idpriv-droptemp-tests: New file.
6198         * tests/test-idpriv-droptemp.sh: New file.
6199         * tests/test-idpriv-droptemp.su.sh: New file.
6200         * tests/test-idpriv-droptemp.c: New file.
6201
6202         New module 'idpriv-droptemp'.
6203         * lib/idpriv-droptemp.c: New file.
6204         * modules/idpriv-droptemp: New file.
6205
6206 2009-06-08  Bruno Haible  <bruno@clisp.org>
6207
6208         Tests for module 'idpriv-drop'.
6209         * modules/idpriv-drop-tests: New file.
6210         * tests/test-idpriv-drop.sh: New file.
6211         * tests/test-idpriv-drop.su.sh: New file.
6212         * tests/test-idpriv-drop.c: New file.
6213
6214         New module 'idpriv-drop'.
6215         * lib/idpriv.h: New file.
6216         * lib-idpriv-drop.c: New file.
6217         * m4/idpriv.m4: New file.
6218         * modules/idpriv-drop: New file.
6219
6220 2009-06-08  Bruno Haible  <bruno@clisp.org>
6221
6222         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
6223         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6224         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6225         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6226         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6227         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6228         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6229
6230 2009-06-08  Eric Blake  <ebb9@byu.net>
6231
6232         test-strstr: use memory fence, when possible
6233         * tests/test-strstr.c (main): Use memory fence, in order to be
6234         more likely to trigger Debian bug 521737.
6235         * modules/strstr-tests (Files): Pull in additional files.
6236
6237         memchr: no longer obsolete, for wider field testing
6238         * modules/memchr (Status, Notice): Delete, this module is no
6239         longer obsolete.
6240         * modules/vasnprintf (Depends-on): Add memchr.
6241
6242 2009-06-07  Jim Meyering  <meyering@redhat.com>
6243
6244         hash: declare some functions with the warn_unused_result attribute
6245         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
6246
6247 2009-06-07  Bruno Haible  <bruno@clisp.org>
6248
6249         * tests/test-alignof.c: Don't test int64_t if it does not exist.
6250         Reported by Eric Blake.
6251
6252 2009-06-06  Eric Blake  <ebb9@byu.net>
6253
6254         test-alignof: fix typo with long double
6255         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
6256         compiler error.
6257
6258 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
6259
6260         Escape non-texinfo { and }s.
6261         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
6262         markup error.
6263
6264 2009-06-04  Jim Meyering  <meyering@redhat.com>
6265
6266         gitlog-to-changelog: don't infloop on an empty commit log
6267         * build-aux/gitlog-to-changelog: Warn about an empty log message.
6268         Reported by Boris Petersen <transacid@centerim.org>.
6269
6270 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
6271
6272         version-etc: extend for packagers
6273         Add three new configure options, intended for packagers:
6274           --with-packager="packager name"
6275           --with-packager-version="packager-specific version"
6276           --with-packager-bug-reports="packager bug reporting"
6277         An example with coreutils:
6278           $ ./configure \
6279             --with-packager=Gentoo \
6280             --with-packager-bug-report=http://bugs.gentoo.org/ \
6281             --with-packager-version="patchset 1.6"
6282           $ ./src/ls --version | head -n3
6283           ls (GNU coreutils) 7.1-dirty
6284           Packaged by Gentoo (patchset 1.6)
6285           Copyright (C) 2009 Free Software Foundation, Inc.
6286         Note that the bug reporting info via --help doesn't show up because
6287         coreutils uses its own custom emit_bug_reporting_address() implementation
6288         in src/system.h.  If it didn't, it'd look like:
6289           $ ./src/ls --help | tail -n4
6290           Report bugs to <bug-coreutils@gnu.org>.
6291           Report Gentoo bugs to <http://bugs.gentoo.org/>.
6292           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
6293           General help using GNU software: <http://www.gnu.org/gethelp/>.
6294         * lib/version-etc.c: Print new information, if provided.
6295         * m4/version-etc.m4: New file.
6296         * modules/version-etc (Files): Add m4/version-etc.m4.
6297         (configure.ac): Add gl_VERSION_ETC.
6298
6299 2009-05-31  Bruno Haible  <bruno@clisp.org>
6300
6301         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
6302         and 'int64_t'.
6303         * modules/alignof-tests (Dependencies): Add stdint.
6304         Reported by Eric Blake.
6305
6306 2009-05-31  Bruno Haible  <bruno@clisp.org>
6307
6308         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
6309         restriction due to compiler bugs.
6310         Reported by Eric Blake.
6311
6312 2009-05-31  Simon Josefsson  <simon@josefsson.org>
6313             Bruno Haible  <bruno@clisp.org>
6314
6315         Fix test-alignof failure.
6316         * lib/alignof.h (alignof_slot): New macro.
6317         (alignof_type): New macro, with the same semantics as the previous
6318         'alignof'.
6319         (alignof): Alias to alignof_slot.
6320         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
6321         check that the results are usable as constant expressions.
6322
6323 2009-05-31  Bruno Haible  <bruno@clisp.org>
6324
6325         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
6326         * tests/test-memchr.c (main): Check that memchr does not read past the
6327         first occurrence of the byte.
6328         * tests/test-strstr.c (main): Update comment.
6329         Suggested by Eric Blake.
6330
6331 2009-05-30  Bruno Haible  <bruno@clisp.org>
6332
6333         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
6334         detail how to use dumpbin.
6335         Reported by David Byron <dbyron@dbyron.com>.
6336
6337 2009-06-02  Simon Josefsson  <simon@josefsson.org>
6338
6339         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
6340
6341 2009-06-02  Simon Josefsson  <simon@josefsson.org>
6342
6343         * m4/manywarnings.m4: Add GCC 4.4 warnings.
6344
6345 2009-05-28  Bruno Haible  <bruno@clisp.org>
6346
6347         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
6348         build-aux/ files.
6349
6350 2009-05-28  Simon Josefsson  <simon@josefsson.org>
6351
6352         * gnulib-tool (func_import): Transform license on build-aux/ files too.
6353
6354 2009-05-27  Simon Josefsson  <simon@josefsson.org>
6355
6356         * gnulib-tool (sed_transform_main_lib_file)
6357         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
6358         regexps.
6359
6360 2009-05-26  Simon Josefsson  <simon@josefsson.org>
6361
6362         * tests/test-strstr.c: Add another self-test.
6363         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
6364         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
6365
6366 2009-05-23  Bruno Haible  <bruno@clisp.org>
6367
6368         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
6369         change.
6370
6371 2009-05-21  Bruno Haible  <bruno@clisp.org>
6372
6373         Simplify use of mode_t varargs.
6374         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
6375         uses 'mode_t' or 'int'.
6376         * lib/openat.c (openat): Likewise.
6377         * lib/open-safer.c (open_safer): Likewise.
6378         * m4/mode_t.m4: New file.
6379         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
6380         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
6381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
6382         * modules/open (Files): Add m4/mode_t.m4.
6383         * modules/openat (Files): Likewise.
6384         * modules/fcntl-safer (Files): Likewise.
6385         Suggested by Eric Blake.
6386
6387 2009-05-21  Pádraig Brady  <P@draigbrady.com>
6388
6389         * doc/glibc-functions/fallocate.texi: New file.
6390         * doc/gnulib.texi: Include it.
6391
6392 2009-05-21  Eric Blake  <ebb9@byu.net>
6393             Bruno Haible  <bruno@clisp.org>
6394
6395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
6396         invocations.
6397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6398
6399 2009-05-21  Eric Blake  <ebb9@byu.net>
6400             Bruno Haible  <bruno@clisp.org>
6401
6402         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
6403         include_next. Fix of 2008-11-20 commit.
6404         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
6405         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
6406         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
6407         NEXT_MATH_H.
6408         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
6409         instead of NEXT_MATH_H.
6410
6411 2009-05-21  Bruno Haible  <bruno@clisp.org>
6412
6413         Avoid redefinition warnings for SIZE_MAX.
6414         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
6415         Reported by Simon Josefsson.
6416
6417 2009-05-21  Bruno Haible  <bruno@clisp.org>
6418
6419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
6420         AC_CACHE_VAL.
6421
6422 2009-05-20  Bruno Haible  <bruno@clisp.org>
6423
6424         Make zeroptr.h work on mingw.
6425         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
6426         mprotect.
6427         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
6428         * modules/memchr2-tests (configure.ac): Likewise.
6429         * modules/memcmp-tests (configure.ac): Likewise.
6430         * modules/memmem-tests (configure.ac): Likewise.
6431         * modules/memrchr-tests (configure.ac): Likewise.
6432         Reported by Simon Josefsson.
6433
6434 2009-05-20  Simon Josefsson  <simon@josefsson.org>
6435
6436         * tests/test-glob.c: Include string.h for strcmp prototype.
6437
6438 2009-05-20  Simon Josefsson  <simon@josefsson.org>
6439
6440         * modules/getdelim (Depends-on): Add explicit stdint, although it
6441         was implicitly already pulled in via realloc-posix.
6442         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
6443
6444 2009-05-20  Simon Josefsson  <simon@josefsson.org>
6445
6446         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
6447         G. Christensen" <tgc@jupiterrise.com>.
6448         * m4/sys_socket_h.m4: Check for sa_family_t.
6449         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
6450         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
6451         * tests/test-sys_socket.c: Check that sa_family_t works.
6452
6453 2009-05-18  Eric Blake  <ebb9@byu.net>
6454
6455         maint.mk: allow gnulib_dir in VPATH build
6456         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
6457
6458 2009-05-15  Jim Meyering  <meyering@redhat.com>
6459
6460         maint.mk: Give gnulib_dir a default definition.
6461         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
6462         Thus, most packages no longer need to specify this variable in cfg.mk
6463
6464 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
6465
6466         rename.m4: fix typos that would make non-mingw cross-configure fail
6467         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
6468
6469 2009-05-13  Eric Blake  <ebb9@byu.net>
6470
6471         mmap-anon: avoid out-of-order autoconf expansion
6472         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
6473         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
6474         * modules/memchr-tests (Depends-on): Add extensions.
6475         * modules/memchr2-tests (Depends-on): Add extensions.
6476         * modules/memcmp-tests (Depends-on): Add extensions.
6477         * modules/memmem-tests (Depends-on): Add extensions.
6478         * modules/memrchr-tests (Depends-on): Add extensions.
6479
6480 2009-05-13  Bruno Haible  <bruno@clisp.org>
6481
6482         Make some tests ISO C 99 compliant.
6483         * tests/zerosize-ptr.h: New file.
6484         * tests/test-memchr.c: Include zerosize-ptr.h.
6485         (main): Use a zero-size object pointer instead of NULL.
6486         * tests/test-memchr2.c: Include zerosize-ptr.h.
6487         (main): Use a zero-size object pointer instead of NULL.
6488         * tests/test-memcmp.c: Include zerosize-ptr.h.
6489         (main): Use a zero-size object pointer instead of NULL.
6490         * tests/test-memmem.c: Include zerosize-ptr.h.
6491         (main): Use a zero-size object pointer instead of NULL.
6492         * tests/test-memrchr.c: Include zerosize-ptr.h.
6493         (main): Use a zero-size object pointer instead of NULL.
6494         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
6495         m4/mmap-anon.m4.
6496         (Depends-on): Add getpagesize.
6497         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
6498         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
6499         m4/mmap-anon.m4.
6500         (Depends-on): Add getpagesize.
6501         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
6502         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
6503         m4/mmap-anon.m4.
6504         (Depends-on): Add getpagesize.
6505         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
6506         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
6507         m4/mmap-anon.m4.
6508         (Depends-on): Add getpagesize.
6509         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
6510         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
6511         m4/mmap-anon.m4.
6512         (Depends-on): Add getpagesize.
6513         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
6514
6515 2009-05-12  Bruno Haible  <bruno@clisp.org>
6516
6517         Tests for module 'alignof'.
6518         * modules/alignof-tests: New file.
6519         * tests/test-alignof.c: New file.
6520
6521 2009-05-12  Bruno Haible  <bruno@clisp.org>
6522
6523         Fix alignof macro.
6524         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
6525         vendor compilers that are always correct.
6526
6527 2009-05-12  Bruno Haible  <bruno@clisp.org>
6528
6529         Make the MAP_ANONYMOUS detection work on HP-UX 11.
6530         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
6531         not whether its fully works.
6532
6533 2009-05-12  Bruno Haible  <bruno@clisp.org>
6534
6535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
6536
6537 2009-05-12  Jim Meyering  <meyering@redhat.com>
6538
6539         * top/maint.mk: Adjust backslash alignment.
6540
6541 2009-05-11  Simon Josefsson  <simon@josefsson.org>
6542
6543         * top/maint.mk: Make $(srcdir)/build-aux configurable.
6544
6545 2009-05-11  Eric Blake  <ebb9@byu.net>
6546
6547         argp: avoid undefined behavior
6548         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
6549         macros.
6550
6551 2009-05-08  Simon Josefsson  <simon@josefsson.org>
6552
6553         * tests/test-vc-list-files-git.sh: Do git config of user.email and
6554         user.name to prevent git commit from complaining.
6555
6556 2009-05-10  Bruno Haible  <bruno@clisp.org>
6557
6558         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
6559         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
6560         it rewrites every file name only once.
6561         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
6562
6563 2009-05-08  Bruno Haible  <bruno@clisp.org>
6564
6565         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
6566         instead of 'max'.
6567
6568 2009-05-08  Simon Josefsson  <simon@josefsson.org>
6569
6570         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
6571         sockaddr_storage test.
6572
6573 2009-05-07  Simon Josefsson  <simon@josefsson.org>
6574
6575         * modules/sys_socket (Makefile.am): Substitute
6576         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
6577         * m4/sys_socket_h.m4: Check for sockaddr_storage.
6578         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
6579         * tests/test-sys_socket.c: Check sockaddr_storage.
6580
6581 2009-05-08  Bruno Haible  <bruno@clisp.org>
6582
6583         New module 'alignof'.
6584         * lib/alignof.h: New file.
6585         * modules/alignof: New file.
6586
6587 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
6588             Bruno Haible  <bruno@clisp.org>
6589
6590         Fix test-file-has-acl on FreeBSD.
6591         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
6592         mask is implicitly added.
6593         * tests/test-file-has-acl.c: Include <signal.h>.
6594         (main): Terminate the test after 5 seconds.
6595         * modules/acl-tests (configure.ac): Check for alarm function.
6596
6597 2009-05-04  Bruno Haible  <bruno@clisp.org>
6598
6599         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
6600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
6601         * modules/errno (configure.ac): Drop AC_REQUIRE.
6602         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
6603         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
6604
6605 2009-05-04  Simon Josefsson  <simon@josefsson.org>
6606
6607         * modules/glob-tests: New module.
6608         * tests/test-glob.c: Add.
6609
6610 2009-05-04  Simon Josefsson  <simon@josefsson.org>
6611
6612         * modules/fnmatch-tests: New module.
6613         * tests/test-fnmatch.c: Add.
6614
6615 2009-05-04  Eric Blake  <ebb9@byu.net>
6616
6617         maint: make the new no-submodule-changes rule VPATH-safe
6618         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
6619
6620 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
6621             Bruno Haible  <bruno@clisp.org>
6622
6623         acl: Fix infinite loop on FreeBSD.
6624         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
6625         of return value from acl_get_entry.
6626         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
6627         Likewise.
6628
6629 2009-05-03  Bruno Haible  <bruno@clisp.org>
6630
6631         * lib/acl-internal.h (acl_entries): Clarify return value.
6632         * lib/acl_entries.c (acl_entries): Likewise.
6633
6634 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
6635
6636         Bug fix in acl module.
6637         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
6638
6639 2009-05-03  Bruno Haible  <bruno@clisp.org>
6640
6641         Create gperf-generated file in the source dir, not in the build dir.
6642         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
6643         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
6644         * modules/unicase/locale-language (unicase/locale-languages.h):
6645         Likewise.
6646         * modules/unicase/special-casing (unicase/special-casing-table.h):
6647         Likewise.
6648         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
6649         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
6650         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
6651         Reported by Ralf Wildenhues.
6652
6653 2009-05-03  Bruno Haible  <bruno@clisp.org>
6654
6655         * modules/fnmatch (Description, configure.ac): Taken from
6656         fnmatch-posix.
6657         * modules/fnmatch-posix: Turn into a symbolic reference to the
6658         'fnmatch' module, and deprecate.
6659         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
6660
6661 2009-05-03  Bruno Haible  <bruno@clisp.org>
6662
6663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
6664         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
6665         Reported by Ralf Wildenhues.
6666
6667 2009-05-04  Simon Josefsson  <simon@josefsson.org>
6668
6669         * m4/fnmatch.m4: Fix fnmatch re-define.
6670
6671 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
6672
6673         priv-set: new module and tests; adapt write-any-file
6674         * lib/priv-set.c: New file.
6675         * lib/priv-set.h: New file.
6676         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
6677         * lib/write-any-file.c: Simplify by using priv-set module.
6678         * m4/priv-set.m4: New file.
6679         * modules/priv-set: New file.
6680         * modules/unlinkdir: Add dependency on priv-set module.
6681         * modules/write-any-file: Likewise.
6682
6683         Tests for module 'priv-set'.
6684         * modules/priv-set-tests: New file.
6685         * tests/test-priv-set.c: New file.
6686
6687 2009-05-03  Jim Meyering  <meyering@redhat.com>
6688             Bruno Haible  <bruno@clisp.org>
6689
6690         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
6691         use the converted UTF-8 variant of the name instead.
6692
6693 2009-05-03  Jim Meyering  <meyering@redhat.com>
6694
6695         tests: tighten some getdate tests
6696         * tests/test-getdate.c (main): Tighten tests: require equality,
6697         not just greater than.  Set TZ envvar to UTC0.
6698
6699 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6700
6701         getdate: correctly interpret "next monday" when run on a Monday
6702         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
6703         that e.g., "next tues" (when run on a tuesday) results in a date
6704         that is one week in the future, and not today's date.
6705         I.e., add a week when the wday is the same as the current one.
6706         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
6707         and earlier by Martin Bernreuther and Jan Minář.
6708         * tests/test-getdate.c (main): Check that "next DAY" is always in
6709         the future and that "last DAY" is always in the past.
6710
6711 2009-05-02  Jim Meyering  <meyering@redhat.com>
6712
6713         build: ensure that a release build fails when a submodule is unclean
6714         * top/maint.mk (no-submodule-changes): New rule.
6715         (alpha beta major): Depend on it.
6716
6717 2009-05-02  Bruno Haible  <bruno@clisp.org>
6718
6719         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
6720         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
6721         shell variable gl_fnmatch_required to detect which variant is
6722         requested.
6723         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
6724         gl_FUNC_FNMATCH_POSIX.
6725         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
6726         exclude fnmatch-posix.
6727
6728 2009-05-02  Bruno Haible  <bruno@clisp.org>
6729
6730         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
6731         * modules/mbsrtowcs (License): Change to LGPLv2+.
6732         * modules/strnlen1 (License): Likewise.
6733         Reported by Simon Josefsson.
6734
6735 2009-05-02  Bruno Haible  <bruno@clisp.org>
6736
6737         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
6738         "cross".
6739         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
6740         gnulib-tool was called with option --source-base=lib.
6741
6742 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6743
6744         Use automake *-local hooks without commands, for extensibility.
6745         * modules/localcharset (Makefile.am): Rename install-exec-local
6746         rule to install-exec-localcharset, and make it a prerequisite of
6747         install-exec-local.  Likewise, rename the uninstall-local rule to
6748         uninstall-localcharset, and make it a prerequisite of the former.
6749
6750 2009-05-01  Bruno Haible  <bruno@clisp.org>
6751
6752         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
6753         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
6754         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
6755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
6756         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
6757         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
6758         m4/locale-zh.m4, m4/codeset.m4.
6759
6760         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
6761         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
6762         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
6763         m4/locale-zh.m4.
6764
6765         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
6766         REPLACE_WCRTOMB if mbstate_t must be replaced.
6767         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
6768         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
6769
6770 2009-05-01  Bruno Haible  <bruno@clisp.org>
6771
6772         Avoid compiler warnings when redefining macros defined by <libintl.h>.
6773         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
6774         dngettext, dcngettext, textdomain, bindtextdomain,
6775         bind_textdomain_codeset): Undefine before redefining.
6776
6777 2009-04-30  Bruno Haible  <bruno@clisp.org>
6778
6779         Fix bug introduced on 2009-04-25.
6780         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
6781         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
6782         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
6783         is defined.
6784         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
6785         is defined.
6786         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
6787         is defined.
6788         Reported by Elbert_Pol <elbert.pol@gmail.com>.
6789
6790 2009-04-28  Bruno Haible  <bruno@clisp.org>
6791
6792         Comment tweaks.
6793         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
6794         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
6795         * lib/unicase.h (u*_casexfrm): Likewise.
6796         Reported by Paolo Bonzini.
6797
6798 2009-04-28  Bruno Haible  <bruno@clisp.org>
6799
6800         Fix a compilation error.
6801         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
6802         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
6803         Reported by Jim Meyering.
6804
6805 2009-04-27  Bruno Haible  <bruno@clisp.org>
6806
6807         New module 'libunistring'.
6808         * modules/libunistring: New file.
6809         * m4/libunistring.m4: New file.
6810         * MODULES.html.sh (Unicode string functions): Add it.
6811
6812 2009-04-27  Eric Blake  <ebb9@byu.net>
6813
6814         maint.mk: allow package-specific header to provide <config.h>
6815         * top/maint.mk (sc_require_config_h): New variable.
6816         (sc_require_config_h, sc_require_config_h_first): Use it.
6817
6818 2009-04-27  Simon Josefsson  <simon@josefsson.org>
6819
6820         * top/maint.mk (sc_avoid_if_before_free): Except
6821         useless-if-before-free script.
6822
6823 2009-04-27  Eric Blake  <ebb9@byu.net>
6824
6825         maintainer-makefile: depend on all required helper scripts
6826         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
6827         useless-if-before-free.
6828         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
6829         version, rather than assuming gnulib checkout is available.
6830         Reported by Simen Josefsson.
6831
6832 2009-04-26  Bruno Haible  <bruno@clisp.org>
6833
6834         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
6835         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
6836         "../" or "..".
6837
6838 2009-04-26  Bruno Haible  <bruno@clisp.org>
6839
6840         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
6841         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
6842         AC_LIB_HAVE_LINKFLAGS.
6843
6844 2009-04-26  Bruno Haible  <bruno@clisp.org>
6845
6846         Simplify calling convention of u*_conv_from_encoding.
6847         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
6848         u32_conv_from_encoding): Expect a resultbuf argument and return the
6849         result directly as a pointer.
6850         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
6851         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
6852         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
6853         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
6854         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
6855         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
6856         Update.
6857         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
6858         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
6859         * lib/vasnprintf.c (VASNPRINTF): Update.
6860         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
6861         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
6862         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
6863         * NEWS: Mention the change.
6864
6865 2009-04-26  Bruno Haible  <bruno@clisp.org>
6866
6867         Simplify calling convention of u*_conv_to_encoding.
6868         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
6869         u32_conv_to_encoding): Expect a resultbuf argument and return the
6870         result directly as a pointer.
6871         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6872         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
6873         freeing scaled_offsets if mem_iconveha failed.
6874         * lib/unicase/u-casexfrm.h (FUNC): Update.
6875         * lib/uninorm/u-normxfrm.h (FUNC): Update.
6876         * lib/vasnprintf.c (VASNPRINTF): Update.
6877         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
6878         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
6879         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
6880         * NEWS: Mention the change.
6881
6882 2009-04-26  Bruno Haible  <bruno@clisp.org>
6883
6884         Avoid test failures on AIX and OSF/1.
6885         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
6886         malloc(0).
6887         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6888         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
6889         Likewise.
6890         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
6891         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
6892         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
6893         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
6894         * doc/posix-functions/malloc.texi: Document the portability problem
6895         related to malloc(0).
6896
6897 2009-04-26  Bruno Haible  <bruno@clisp.org>
6898
6899         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
6900         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
6901         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
6902
6903 2009-04-25  Bruno Haible  <bruno@clisp.org>
6904
6905         Avoid link error when creating a namespace clean library.
6906         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
6907         as macro with arguments if already defined as an alias.
6908         * lib/signbitf.c (gl_signbitf): Don't undefine.
6909         * lib/signbitd.c (gl_signbitd): Don't undefine.
6910         * lib/signbitl.c (gl_signbitl): Don't undefine.
6911
6912 2009-04-25  Jim Meyering  <meyering@redhat.com>
6913
6914         vc-list-files: fix another quoting bug
6915         * build-aux/vc-list-files: Avoid sed backslash expansion
6916         of pathological directory names.
6917
6918 2009-04-25  Eric Blake  <ebb9@byu.net>
6919
6920         vc-list-files: fix shell quoting error
6921         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
6922         timestamp.
6923
6924 2009-04-25  Jim Meyering  <meyering@redhat.com>
6925
6926         vc-list-files: restore lost functionality with subdir argument
6927         * build-aux/vc-list-files: When given a non-"." sub-directory
6928         argument, substitute the $dir/ prefix back onto each resulting name.
6929         Otherwise, coreutils' root_tests check would fail.
6930
6931 2009-04-24  Eric Blake  <ebb9@byu.net>
6932
6933         vc-list-files: ignore git symlinks
6934         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
6935         than ls-files, to ignore git symlinks.
6936
6937         maint.mk: import improvements from m4
6938         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
6939         (move_if_change): Delete unused macro.
6940         (news-date-check, vc-diff-check): Support VPATH builds.
6941         (announcement): Likewise.  Split --bootstrap-tools list...
6942         (boostrap-tools): ...into separate list, which can be overridden
6943         in cfg.mk.
6944         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
6945         requiring dependency on useless-if-before-free module.
6946         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
6947         Support VPATH builds.
6948
6949 2009-04-24  Jim Meyering  <meyering@redhat.com>
6950
6951         maint.mk: remove coreutils-specific rules and variables
6952         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
6953         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
6954         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
6955
6956         maint.mk: remove obsolete rule
6957         * top/maint.mk (rel-check): Remove rule.
6958         (WGET, WGETFLAGS): Remove now-unused variables.
6959
6960 2009-04-24  Simon Josefsson  <simon@josefsson.org>
6961
6962         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
6963         consistency.
6964
6965         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
6966         '$(PATH_SEPARATOR)' instead of ':'.
6967
6968 2009-04-24  Simon Josefsson  <simon@josefsson.org>
6969
6970         * lib/getopt1.c (main): Use 'const' for static array.
6971
6972 2009-04-24  Simon Josefsson  <simon@josefsson.org>
6973
6974         * top/maint.mk: Sync with coreutils.
6975         * NEWS: Explain incompatibilities.
6976
6977 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6978             Bruno Haible  <bruno@clisp.org>
6979
6980         Fix cross-compilation results.
6981         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
6982         statement, as third argument of AC_TRY_RUN.
6983         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6984         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6985         Likewise.
6986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6988         Likewise.
6989         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
6991         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
6992
6993 2009-04-20  Bruno Haible  <bruno@clisp.org>
6994
6995         Avoid test failure on mingw.
6996         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
6997
6998 2009-04-20  Bruno Haible  <bruno@clisp.org>
6999
7000         Avoid compilation error on mingw.
7001         * modules/localename-tests (Depends-on): Add locale.
7002
7003 2009-04-19  Bruno Haible  <bruno@clisp.org>
7004
7005         Support for building a shared library on Windows platforms.
7006         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
7007         (main): Test the presence of UNINORM_NFC here.
7008         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
7009         (main): Test the presence of UNINORM_NFD here.
7010         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
7011         (main): Test the presence of UNINORM_NFKC here.
7012         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
7013         (main): Test the presence of UNINORM_NFKD here.
7014
7015 2009-04-19  Bruno Haible  <bruno@clisp.org>
7016
7017         Avoid a compiler warning.
7018         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
7019         Change type of variable 'sequence'.
7020
7021 2009-04-19  Bruno Haible  <bruno@clisp.org>
7022
7023         * modules/configmake (Makefile.am): When the contents of configmake.h
7024         does not change, arrange to preserve its modification time.
7025
7026 2009-04-17  Simon Josefsson  <simon@josefsson.org>
7027
7028         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
7029         gettext domain.
7030
7031 2009-04-16  Jim Meyering  <meyering@redhat.com>
7032
7033         useless-if-before-free: improve conversion code
7034         * build-aux/useless-if-before-free: Adjust code-in-comment to match
7035         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
7036
7037 2009-04-14  Bruno Haible  <bruno@clisp.org>
7038
7039         * modules/fcntl (Depends-on): Add extensions.
7040         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
7041
7042 2009-04-12  Ben Pfaff  <blp@gnu.org>
7043
7044         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
7045         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
7046
7047 2009-03-20  Ben Pfaff  <blp@gnu.org>
7048
7049         Make rename replace existing destinations on Windows.
7050         * m4/rename.m4: Add test for Mingw.
7051         * lib/rename.c: Add rename replacement that uses MoveFileEx with
7052         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
7053         * doc/posix-functions/rename.texi: Document.
7054
7055 2009-04-10  Bruno Haible  <bruno@clisp.org>
7056
7057         New include file "iconveh.h".
7058         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
7059         * lib/striconveh.h: Include it.
7060         (enum iconv_ilseq_handler): Remove definition.
7061         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
7062         striconveh.h.
7063         * lib/striconveha.c: Include striconveh.h.
7064         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
7065         * modules/striconveh (Files): Add lib/iconveh.h.
7066         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
7067         lib/striconveh.h.
7068
7069 2009-04-10  Bruno Haible  <bruno@clisp.org>
7070
7071         * lib/uniconv.h: Update comment.
7072
7073 2009-04-10  Bruno Haible  <bruno@clisp.org>
7074
7075         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
7076         always.
7077         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7078         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7079         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7080         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
7081         "unistring-notinline.h", so that the function gets defined always.
7082         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7083         * lib/unistr/u8-uctomb.c: Likewise.
7084         * lib/unistr/u16-mbtouc.c: Likewise.
7085         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7086         * lib/unistr/u16-uctomb.c: Likewise.
7087         * lib/unistr/u32-mbtouc.c: Likewise.
7088         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7089         * lib/unistr/u32-uctomb.c: Likewise.
7090
7091 2009-04-10  Bruno Haible  <bruno@clisp.org>
7092
7093         Mark 'utime' obsolete.
7094         * modules/utime (Status, Notice): New sections.
7095         Suggested by Jim Meyering.
7096
7097         Fix cross-compile guess for utime test.
7098         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
7099         autoconf.
7100         * doc/posix-functions/utime.texi: Give more precisions.
7101         Reported by Jan <ipif@ymail.com>.
7102
7103 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
7104
7105         filevercmp: correct today's change
7106         * lib/filevercmp.c: Also handle coreutils' test inputs.
7107         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
7108
7109         Fix regression in 'filevercmp' module. Thanks Sven Joachim
7110         for reporting it.
7111         * lib/filevercmp.c: Special handle for "", "." and "..".
7112         * tests/test-filevercmp.c: Enlarge the set suite.
7113
7114 2009-04-07  Jim Meyering  <meyering@redhat.com>
7115
7116         useless-if-before-free: show how to remove braced useless free, too
7117         * build-aux/useless-if-before-free: still only in a comment, though.
7118
7119 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
7120
7121         maint.mk: import changes to syntax-check macros from coreutils
7122         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
7123         Use them in the relevant macros.
7124
7125 2009-04-06  Bruno Haible  <bruno@clisp.org>
7126
7127         Fix unportable use of bit-fields.
7128         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
7129         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
7130         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
7131
7132 2009-04-06  Bruno Haible  <bruno@clisp.org>
7133
7134         Avoid test failures on AIX and OSF/1.
7135         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
7136         that malloc(0) = NULL.
7137         * tests/unicase/test-u8-tolower.c (check): Likewise.
7138         * tests/unicase/test-u8-totitle.c (check): Likewise.
7139         * tests/unicase/test-u8-toupper.c (check): Likewise.
7140         * tests/unicase/test-u16-casefold.c (check): Likewise.
7141         * tests/unicase/test-u16-tolower.c (check): Likewise.
7142         * tests/unicase/test-u16-totitle.c (check): Likewise.
7143         * tests/unicase/test-u16-toupper.c (check): Likewise.
7144         * tests/unicase/test-u32-casefold.c (check): Likewise.
7145         * tests/unicase/test-u32-tolower.c (check): Likewise.
7146         * tests/unicase/test-u32-totitle.c (check): Likewise.
7147         * tests/unicase/test-u32-toupper.c (check): Likewise.
7148         * tests/uninorm/test-u8-nfc.c (check): Likewise.
7149         * tests/uninorm/test-u8-nfd.c (check): Likewise.
7150         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
7151         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
7152         * tests/uninorm/test-u16-nfc.c (check): Likewise.
7153         * tests/uninorm/test-u16-nfd.c (check): Likewise.
7154         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
7155         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
7156         * tests/uninorm/test-u32-nfc.c (check): Likewise.
7157         * tests/uninorm/test-u32-nfd.c (check): Likewise.
7158         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
7159         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
7160
7161 2009-04-05  Bruno Haible  <bruno@clisp.org>
7162
7163         Work around an autoconf limitation.
7164         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
7165         comment line if it would be longer than 3 KB.
7166
7167 2009-04-05  Bruno Haible  <bruno@clisp.org>
7168
7169         Avoid test failure with libiconv-1.13.
7170         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
7171         of the expected test results.
7172
7173 2009-04-05  Bruno Haible  <bruno@clisp.org>
7174
7175         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
7176         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
7177         that it should be installed.
7178
7179 2009-04-05  Bruno Haible  <bruno@clisp.org>
7180
7181         * gnulib-tool: New option --copy-file.
7182         (func_usage): Document it.
7183         (func_dest_tmpfilename): Moved out of func_import.
7184         (func_add_file, func_update_file): New functions, extracted from
7185         func_import.
7186         (func_import): Update.
7187
7188 2009-04-05  Karl Berry  <karl@gnu.org>
7189
7190         * README: prominently mention gnulib-tool.
7191         Rearrange sections so getting the code is near the top.
7192
7193 2009-04-05  Bruno Haible  <bruno@clisp.org>
7194
7195         * lib/unicase.h: Mention u*_cmp2.
7196         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
7197         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
7198         * lib/unicase/ulc-casecmp.c: Likewise.
7199         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
7200         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
7201         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
7202         unistr/u8-cmp.
7203         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
7204         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
7205         unistr/u16-cmp.
7206         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
7207         unistr/u32-cmp.
7208
7209         * lib/uninorm.h: Mention u*_cmp2.
7210         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
7211         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
7212         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
7213         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
7214         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
7215         unistr/u8-cmp.
7216         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
7217         unistr/u16-cmp.
7218         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
7219         unistr/u32-cmp.
7220
7221         New module 'unistr/u32-cmp2'.
7222         * lib/unistr/u32-cmp2.c: New file.
7223         * modules/unistr/u32-cmp2: New file.
7224
7225         New module 'unistr/u16-cmp2'.
7226         * lib/unistr/u16-cmp2.c: New file.
7227         * modules/unistr/u16-cmp2: New file.
7228
7229         New module 'unistr/u8-cmp2'.
7230         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
7231         * lib/unistr/u8-cmp2.c: New file.
7232         * lib/unistr/u-cmp2.h: New file.
7233         * modules/unistr/u8-cmp2: New file.
7234
7235 2009-04-05  Bruno Haible  <bruno@clisp.org>
7236
7237         * lib/unictype.h (uc_property_is_valid): New macro.
7238         * tests/unictype/test-pr_byname.c (main): Use it.
7239
7240         * lib/unistr.h: Doc fixes.
7241         * lib/uniconv.h: Doc fixes.
7242         * lib/unictype.h: Doc fixes.
7243
7244 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
7245
7246         Port coreutils 7.2 to Solaris 8.
7247
7248         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
7249         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
7250         for Solaris 8.  This is a bit of a hack, as it means it's the
7251         caller's responsibility to add -lnsl if needed, but most likely it
7252         won't be needed since only getaddrinfo uses this and getaddrinfo
7253         isn't needed on Solaris 8.
7254
7255         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
7256         problem to Solaris 8 encountered with coreutils 7.2, which
7257         resulted in a message "fnmatch.c:292: warning: passing argument 4
7258         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
7259         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
7260
7261 2009-04-03  Simon Josefsson  <simon@josefsson.org>
7262
7263         * m4/ld-version-script.m4: Add FIXME comment.
7264
7265 2009-04-02  Simon Josefsson  <simon@josefsson.org>
7266
7267         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
7268         SOVERSION variable.
7269
7270 2009-04-02  Bruno Haible  <bruno@clisp.org>
7271
7272         * Makefile (info, html, dvi, pdf): Combine the rules.
7273         Suggested by Jim Meyering.
7274
7275 2009-04-01  Bruno Haible  <bruno@clisp.org>
7276
7277         * Makefile (info, html, dvi, pdf): New targets.
7278         Reported by Reuben Thomas <rrt@sc3d.org>.
7279
7280 2009-04-01  Bruno Haible  <bruno@clisp.org>
7281
7282         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
7283         can be put into PATH.
7284         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
7285
7286 2009-04-01  Bruno Haible  <bruno@clisp.org>
7287
7288         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
7289
7290 2009-04-01  Bruno Haible  <bruno@clisp.org>
7291
7292         Rename module 'visibility'.
7293         * modules/lib-symbol-visibility: Renamed from modules/visibility.
7294         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
7295         * doc/gnulib.texi: Update.
7296         * MODULES.html.sh (Misc): Update.
7297         * NEWS: Mention the change.
7298
7299 2009-04-01  Simon Josefsson  <simon@josefsson.org>
7300
7301         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
7302         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
7303         Eric Blake <ebb9@byu.net> for review.
7304         * MODULES.html.sh: Add lib-msvc-compat.
7305         * doc/gnulib.texi: Link to new section.
7306         * m4/ld-output-def.m4: New file.
7307         * doc/ld-output-def.texi: New file.
7308
7309 2009-04-01  Simon Josefsson  <simon@josefsson.org>
7310
7311         Rename ld-version-script to lib-symbol-versions.  Suggested by
7312         Bruno Haible <bruno@clisp.org>.
7313         * modules/ld-version-script: Renamed to lib-symbol-versions.
7314         * doc/ld-version-script.texi: Fix module name.
7315         * MODULES.html.sh: Add lib-symbol-versions.
7316
7317 2009-03-31  Simon Josefsson  <simon@josefsson.org>
7318
7319         * modules/u64-tests: New file.
7320         * tests/test-u64.c: New file.
7321
7322 2009-03-04  Simon Josefsson  <simon@josefsson.org>
7323
7324         * MODULES.html.sh: Mention u64.
7325         * modules/u64: New module.
7326         * modules/crypto/sha512: Depend on u64 module instead of providing
7327         u64.h.
7328
7329 2009-03-27  Eric Blake  <ebb9@byu.net>
7330
7331         test-strerror: make debugging EAI_SYSTEM easier
7332         * modules/getaddrinfo-tests (Depends-on): Add strerror.
7333         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
7334         failure was EAI_SYSTEM.
7335
7336 2009-03-25  Bruno Haible  <bruno@clisp.org>
7337
7338         Fix a problem with --enable-relocatable on Solaris 7.
7339         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
7340         since 2008-02-24.
7341
7342 2009-03-25  Eric Blake  <ebb9@byu.net>
7343
7344         test-sockets: avoid gcc warning
7345         * tests/test-sockets.c (main): Silence compiler warning.
7346
7347 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         New modules nproc, pthread, contributed by Glen Lenker.
7350
7351         * MODULES.html.sh: Add pthread, nproc.
7352         * lib/nproc.c: New file.
7353         * lib/nproc.h: New file.
7354         * lib/pthread.in.h: New file.
7355         * m4/pthread.m4: New file.
7356         * modules/nproc: New file.
7357         * modules/pthread: New file.
7358
7359 2009-03-24  Simon Josefsson  <simon@josefsson.org>
7360
7361         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
7362         New variable.
7363
7364 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
7365
7366         filevercmp: handle simple~ and numbered.~3~ backup suffixes
7367         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
7368         * tests/test-filevercmp.c: Add tests for backup suffixes.
7369
7370 2009-03-24  Simon Josefsson  <simon@josefsson.org>
7371
7372         * modules/stdlib (Depends-on): Add stdint, needed when defining
7373         struct random_data on, for example, HP-UX 10.20.  Reported by
7374         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7375
7376 2009-03-24  Simon Josefsson  <simon@josefsson.org>
7377
7378         * lib/readline.c (readline): Call fflush on stdout after printing
7379         prompt.
7380
7381 2009-03-20  Bruno Haible  <bruno@clisp.org>
7382
7383         Remove dependency from 'close' module to -lws2_32 on native Windows.
7384         * lib/close-hook.h: New file.
7385         * lib/close-hook.c: New file.
7386         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
7387         w32sock.h.
7388         (_gl_close_fd_maybe_socket): Remove function.
7389         (rpl_close): Invoke execute_all_close_hooks instead of
7390         _gl_close_fd_maybe_socket.
7391         * lib/sockets.c: Include close-hook.h, w32sock.h.
7392         (close_fd_maybe_socket): New function, essentially from lib/close.c.
7393         (close_sockets_hook): New variable.
7394         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
7395         (gl_sockets_cleanup): Unregister it.
7396         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
7397         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
7398         * modules/close-hook: New file.
7399         * modules/close (Files): Remove lib/w32sock.h.
7400         (Depends-on): Add close-hook.
7401         (Link): Remove section.
7402         * modules/sockets (Files): Add lib/w32sock.h.
7403         (Depends-on): Add close-hook.
7404         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
7405         invocation.
7406         * NEWS: Mention that LIB_CLOSE is gone.
7407
7408 2009-03-23  Eric Blake  <ebb9@byu.net>
7409
7410         signal-tests: test previous patch
7411         * tests/test-signal.c: New file.
7412         * modules/signal-tests: Likewise.
7413
7414         signal.h: always support 'volatile sig_atomic_t'
7415         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
7416         (gl_SIGNAL_H_DEFAULTS): Add a default.
7417         * modules/signal (Makefile.am): Substitute if needed.
7418         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
7419         users can blindly add volatile.
7420         * doc/posix-headers/signal.texi (signal.h): Document it.
7421         Reported by Matthew Woehlke.
7422
7423 2009-03-23  Jim Meyering  <meyering@redhat.com>
7424
7425         pathmax: PATH_MAX: use pathconf only when available
7426         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
7427         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
7428         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
7429         This avoids a link failure in a PSP cross-compilation environment
7430         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
7431
7432         * lib/vasnprintf.c (divide): Fix typo in comment.
7433
7434 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7435
7436         * gnulib-tool (func_filter_filelist): Fix comment.
7437
7438 2009-03-20  Bruno Haible  <bruno@clisp.org>
7439
7440         Make sockets.h self-contained.
7441         * lib/sockets.c: Include sockets.h first.
7442         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
7443
7444 2009-03-19  Eric Blake  <ebb9@byu.net>
7445
7446         doc: mention more functions added in cygwin 1.7.0
7447         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
7448         addition.
7449         * doc/posix-functions/log2f.texi: Likewise.
7450
7451 2009-03-19  Jim Meyering  <meyering@redhat.com>
7452
7453         fsusage: avoid syntax error due to statement-before-declaration
7454         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
7455         after all declarations.  Reported by Matthew Woehlke in
7456         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
7457
7458 2009-03-18  Eric Blake  <ebb9@byu.net>
7459
7460         build-aux/compile: sync from automake
7461         * build-aux/compile: New file, from automake.
7462         * config/srclist.txt: Mention build-aux/compile.
7463
7464 2009-03-17  Bruno Haible  <bruno@clisp.org>
7465
7466         * lib/git-merge-changelog.c: Fix typo in comment.
7467         Reported by Reuben Thomas <rrt@sc3d.org>.
7468
7469 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
7470
7471         * m4/regex.m4: update and improve help for
7472         --without-included-regex.
7473
7474 2009-03-17  Simon Josefsson  <simon@josefsson.org>
7475
7476         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
7477         failure on missing include files.
7478
7479 2009-03-17  Eric Blake  <ebb9@byu.net>
7480
7481         doc: mention more functions added in cygwin 1.7.0
7482         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
7483         addition.
7484         * doc/posix-functions/fwscanf.texi: Likewise.
7485         * doc/posix-functions/swprintf.texi: Likewise.
7486         * doc/posix-functions/swscanf.texi: Likewise.
7487         * doc/posix-functions/vfwprintf.texi: Likewise.
7488         * doc/posix-functions/vfwscanf.texi: Likewise.
7489         * doc/posix-functions/vswprintf.texi: Likewise.
7490         * doc/posix-functions/vswscanf.texi: Likewise.
7491         * doc/posix-functions/vwprintf.texi: Likewise.
7492         * doc/posix-functions/vwscanf.texi: Likewise.
7493         * doc/posix-functions/wcscasecmp.texi: Likewise.
7494         * doc/posix-functions/wcsdup.texi: Likewise.
7495         * doc/posix-functions/wcsftime.texi: Likewise.
7496         * doc/posix-functions/wcsncasecmp.texi: Likewise.
7497         * doc/posix-functions/wprintf.texi: Likewise.
7498         * doc/posix-functions/wscanf.texi: Likewise.
7499         * doc/glibc-functions/gethostbyname2.texi: Likewise.
7500
7501 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7502
7503         maint.mk: really add $(AM_MAKEFLAGS)
7504         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
7505         was inadvertently omitted in the last commit.
7506         Spotted by Bruno Haible.
7507
7508         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
7509         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
7510         $(AM_MAKEFLAGS)' rather than plain `make'.
7511
7512         gnulib-tool: execute $MAKE not make
7513         * gnulib-tool: Default $MAKE to 'make'.
7514         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
7515         than make.  Initialize $MAKE in the do-autobuild script.
7516
7517         gnulib-tool: use $MAKE not make in generated files
7518         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
7519         make, in generated files.  Initialize $MAKE in the do-autobuild
7520         script.
7521
7522         * top/GNUmakefile (_have-git-version-gen): Fix typo.
7523
7524         GNUmakefile: disable parallelism only for multiple, recursive targets
7525         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
7526         additions in the Makefile.
7527         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
7528         by Automake.
7529         (.NOTPARALLEL): Only disable parallel builds if multiple targets
7530         are listed on the command line and at least one of them is
7531         listed in $(ALL_RECURSIVE_TARGETS).
7532
7533 2009-03-14  Bruno Haible  <bruno@clisp.org>
7534
7535         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
7536         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
7537         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
7538         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
7539         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
7540         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
7541         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
7542         unistr/u8-uctomb.
7543         * modules/unistr/u8-strchr (Depends-on): Likewise.
7544         * modules/unistr/u8-strrchr (Depends-on): Likewise.
7545         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
7546         unistr/u16-uctomb.
7547         * modules/unistr/u16-strchr (Depends-on): Likewise.
7548         * modules/unistr/u16-strrchr (Depends-on): Likewise.
7549
7550 2009-03-12  Bruno Haible  <bruno@clisp.org>
7551
7552         Work around select() bug on Interix 3.5.
7553         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
7554         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
7555         * m4/select.m4: New file.
7556         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
7557         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
7558         * modules/select (Files): Add m4/select.m4.
7559         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
7560         * modules/nanosleep (Depends-on): Add select.
7561         * modules/poll (Depends-on): Likewise.
7562         * doc/posix-functions/select.texi: Mention the Interix bug.
7563         Reported by Markus Duft <mduft@gentoo.org>.
7564
7565         * lib/select.c: Renamed from lib/winsock-select.c.
7566         * modules/select (Files): Add lib/select.c, remove
7567         lib/winsock-select.c.
7568         (configure.ac): Update.
7569
7570 2009-03-12  Jim Meyering  <meyering@redhat.com>
7571
7572         avoid gcc warnings about unused macro definitions
7573         * lib/readtokens.c (STREQ): Remove unused definition.
7574         * lib/xmalloc.c (SIZE_MAX): Likewise.
7575         * lib/openat-die.c (N_): Likewise.
7576         * lib/mountlist.c (SIZE_MAX): Remove definition.
7577         Instead, include <stdint.h>.
7578         * lib/readutmp.c: Likewise.
7579         * modules/readutmp (Depends-on): Add stdint.
7580         * modules/mountlist (Depends-on): Add stdint.
7581         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
7582
7583 2009-03-10  Bruno Haible  <bruno@clisp.org>
7584
7585         Tests for module 'mbmemcasecoll'.
7586         * modules/mbmemcasecoll-tests: New file.
7587         * tests/test-mbmemcasecoll1.sh: New file.
7588         * tests/test-mbmemcasecoll2.sh: New file.
7589         * tests/test-mbmemcasecoll3.sh: New file.
7590         * tests/test-mbmemcasecoll.c: New file.
7591
7592         New module 'mbmemcasecoll'.
7593         * lib/mbmemcasecoll.h: New file.
7594         * lib/mbmemcasecoll.c: New file.
7595         * modules/mbmemcasecoll: New file.
7596
7597         * tests/test-mbmemcasecmp.h: New file, extracted from
7598         tests/test-mbmemcasecmp.c.
7599         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
7600         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
7601         (main): Update.
7602         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
7603
7604 2009-03-09  Bruno Haible  <bruno@clisp.org>
7605
7606         Tests for module 'mbmemcasecmp'.
7607         * modules/mbmemcasecmp-tests: New file.
7608         * tests/test-mbmemcasecmp1.sh: New file.
7609         * tests/test-mbmemcasecmp2.sh: New file.
7610         * tests/test-mbmemcasecmp3.sh: New file.
7611         * tests/test-mbmemcasecmp.c: New file.
7612
7613         New module 'mbmemcasecmp'.
7614         * lib/mbmemcasecmp.h: New file.
7615         * lib/mbmemcasecmp.c: New file.
7616         * modules/mbmemcasecmp: New file.
7617
7618 2009-03-09  Bruno Haible  <bruno@clisp.org>
7619
7620         Tests for module 'unicase/ulc-casecoll'.
7621         * modules/unicase/ulc-casecoll-tests: New file.
7622         * tests/unicase/test-ulc-casecoll1.sh: New file.
7623         * tests/unicase/test-ulc-casecoll2.sh: New file.
7624         * tests/unicase/test-ulc-casecoll.c: New file.
7625
7626         New module 'unicase/ulc-casecoll'.
7627         * lib/unicase.h (ulc_casecoll): New declaration.
7628         * lib/unicase/ulc-casecoll.c: New file.
7629         * modules/unicase/ulc-casecoll: New file.
7630
7631         New module 'unicase/ulc-casexfrm'.
7632         * lib/unicase.h (ulc_casexfrm): New declaration.
7633         * lib/unicase/ulc-casexfrm.c: New file.
7634         * modules/unicase/ulc-casexfrm: New file.
7635
7636 2009-03-09  Bruno Haible  <bruno@clisp.org>
7637
7638         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
7639         invocations.
7640
7641         * m4/mbscasecmp.m4: Remove file.
7642         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
7643         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
7644
7645         * m4/mbscasestr.m4: Remove file.
7646         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
7647         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
7648
7649         * m4/mbschr.m4: Remove file.
7650         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
7651         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
7652
7653         * m4/mbscspn.m4: Remove file.
7654         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
7655         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
7656
7657         * m4/mbslen.m4: Remove file.
7658         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
7659         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
7660
7661         * m4/mbsncasecmp.m4: Remove file.
7662         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
7663         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
7664
7665         * m4/mbsnlen.m4: Remove file.
7666         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
7667         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
7668
7669         * m4/mbspbrk.m4: Remove file.
7670         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
7671         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
7672
7673         * m4/mbspcasecmp.m4: Remove file.
7674         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
7675         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
7676
7677         * m4/mbsrchr.m4: Remove file.
7678         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
7679         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
7680
7681         * m4/mbssep.m4: Remove file.
7682         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
7683         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
7684
7685         * m4/mbsspn.m4: Remove file.
7686         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
7687         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
7688
7689         * m4/mbsstr.m4: Remove file.
7690         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
7691         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
7692
7693         * m4/mbstok_r.m4: Remove file.
7694         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
7695         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
7696
7697         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
7698
7699         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
7700         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
7701
7702         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
7703
7704 2009-03-08  Bruno Haible  <bruno@clisp.org>
7705
7706         Tests for module 'unicase/ulc-casecmp'.
7707         * modules/unicase/ulc-casecmp-tests: New file.
7708         * tests/unicase/test-ulc-casecmp1.sh: New file.
7709         * tests/unicase/test-ulc-casecmp2.sh: New file.
7710         * tests/unicase/test-ulc-casecmp.c: New file.
7711
7712         New module 'unicase/ulc-casecmp'.
7713         * lib/unicase.h (ulc_casecmp): New declaration.
7714         * lib/unicase/ulc-casecmp.c: New file.
7715         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
7716         'const SRC_UNIT *'.
7717         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
7718         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
7719         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
7720         * modules/unicase/ulc-casecmp: New file.
7721
7722         Tests for module 'unicase/u32-is-cased'.
7723         * modules/unicase/u32-is-cased-tests: New file.
7724         * tests/unicase/test-u32-is-cased.c: New file.
7725
7726         Tests for module 'unicase/u16-is-cased'.
7727         * modules/unicase/u16-is-cased-tests: New file.
7728         * tests/unicase/test-u16-is-cased.c: New file.
7729
7730         Tests for module 'unicase/u8-is-cased'.
7731         * modules/unicase/u8-is-cased-tests: New file.
7732         * tests/unicase/test-u8-is-cased.c: New file.
7733         * tests/unicase/test-is-cased.h: New file.
7734
7735         New module 'unicase/u32-is-cased'.
7736         * lib/unicase/u32-is-cased.c: New file.
7737         * modules/unicase/u32-is-cased: New file.
7738
7739         New module 'unicase/u16-is-cased'.
7740         * lib/unicase/u16-is-cased.c: New file.
7741         * modules/unicase/u16-is-cased: New file.
7742
7743         New module 'unicase/u8-is-cased'.
7744         * lib/unicase/u8-is-cased.c: New file.
7745         * lib/unicase/u-is-cased.h: New file.
7746         * modules/unicase/u8-is-cased: New file.
7747
7748         Tests for module 'unicase/u32-is-casefolded'.
7749         * modules/unicase/u32-is-casefolded-tests: New file.
7750         * tests/unicase/test-u32-is-casefolded.c: New file.
7751
7752         Tests for module 'unicase/u16-is-casefolded'.
7753         * modules/unicase/u16-is-casefolded-tests: New file.
7754         * tests/unicase/test-u16-is-casefolded.c: New file.
7755
7756         Tests for module 'unicase/u8-is-casefolded'.
7757         * modules/unicase/u8-is-casefolded-tests: New file.
7758         * tests/unicase/test-u8-is-casefolded.c: New file.
7759         * tests/unicase/test-is-casefolded.h: New file.
7760
7761         New module 'unicase/u32-is-casefolded'.
7762         * lib/unicase/u32-is-casefolded.c: New file.
7763         * modules/unicase/u32-is-casefolded: New file.
7764
7765         New module 'unicase/u16-is-casefolded'.
7766         * lib/unicase/u16-is-casefolded.c: New file.
7767         * modules/unicase/u16-is-casefolded: New file.
7768
7769         New module 'unicase/u8-is-casefolded'.
7770         * lib/unicase/u8-is-casefolded.c: New file.
7771         * modules/unicase/u8-is-casefolded: New file.
7772
7773         Tests for module 'unicase/u32-is-titlecase'.
7774         * modules/unicase/u32-is-titlecase-tests: New file.
7775         * tests/unicase/test-u32-is-titlecase.c: New file.
7776
7777         Tests for module 'unicase/u16-is-titlecase'.
7778         * modules/unicase/u16-is-titlecase-tests: New file.
7779         * tests/unicase/test-u16-is-titlecase.c: New file.
7780
7781         Tests for module 'unicase/u8-is-titlecase'.
7782         * modules/unicase/u8-is-titlecase-tests: New file.
7783         * tests/unicase/test-u8-is-titlecase.c: New file.
7784         * tests/unicase/test-is-titlecase.h: New file.
7785
7786         New module 'unicase/u32-is-titlecase'.
7787         * lib/unicase/u32-is-titlecase.c: New file.
7788         * modules/unicase/u32-is-titlecase: New file.
7789
7790         New module 'unicase/u16-is-titlecase'.
7791         * lib/unicase/u16-is-titlecase.c: New file.
7792         * modules/unicase/u16-is-titlecase: New file.
7793
7794         New module 'unicase/u8-is-titlecase'.
7795         * lib/unicase/u8-is-titlecase.c: New file.
7796         * modules/unicase/u8-is-titlecase: New file.
7797
7798         Tests for module 'unicase/u32-is-lowercase'.
7799         * modules/unicase/u32-is-lowercase-tests: New file.
7800         * tests/unicase/test-u32-is-lowercase.c: New file.
7801
7802         Tests for module 'unicase/u16-is-lowercase'.
7803         * modules/unicase/u16-is-lowercase-tests: New file.
7804         * tests/unicase/test-u16-is-lowercase.c: New file.
7805
7806         Tests for module 'unicase/u8-is-lowercase'.
7807         * modules/unicase/u8-is-lowercase-tests: New file.
7808         * tests/unicase/test-u8-is-lowercase.c: New file.
7809         * tests/unicase/test-is-lowercase.h: New file.
7810
7811         New module 'unicase/u32-is-lowercase'.
7812         * lib/unicase/u32-is-lowercase.c: New file.
7813         * modules/unicase/u32-is-lowercase: New file.
7814
7815         New module 'unicase/u16-is-lowercase'.
7816         * lib/unicase/u16-is-lowercase.c: New file.
7817         * modules/unicase/u16-is-lowercase: New file.
7818
7819         New module 'unicase/u8-is-lowercase'.
7820         * lib/unicase/u8-is-lowercase.c: New file.
7821         * modules/unicase/u8-is-lowercase: New file.
7822
7823         Tests for module 'unicase/u32-is-uppercase'.
7824         * modules/unicase/u32-is-uppercase-tests: New file.
7825         * tests/unicase/test-u32-is-uppercase.c: New file.
7826
7827         Tests for module 'unicase/u16-is-uppercase'.
7828         * modules/unicase/u16-is-uppercase-tests: New file.
7829         * tests/unicase/test-u16-is-uppercase.c: New file.
7830
7831         Tests for module 'unicase/u8-is-uppercase'.
7832         * modules/unicase/u8-is-uppercase-tests: New file.
7833         * tests/unicase/test-u8-is-uppercase.c: New file.
7834         * tests/unicase/test-is-uppercase.h: New file.
7835
7836         New module 'unicase/u32-is-uppercase'.
7837         * lib/unicase/u32-is-uppercase.c: New file.
7838         * modules/unicase/u32-is-uppercase: New file.
7839
7840         New module 'unicase/u16-is-uppercase'.
7841         * lib/unicase/u16-is-uppercase.c: New file.
7842         * modules/unicase/u16-is-uppercase: New file.
7843
7844         New module 'unicase/u8-is-uppercase'.
7845         * lib/unicase/u8-is-uppercase.c: New file.
7846         * modules/unicase/u8-is-uppercase: New file.
7847
7848         New module 'unicase/u32-is-invariant'.
7849         * lib/unicase/u32-is-invariant.c: New file.
7850         * modules/unicase/u32-is-invariant: New file.
7851
7852         New module 'unicase/u16-is-invariant'.
7853         * lib/unicase/u16-is-invariant.c: New file.
7854         * modules/unicase/u16-is-invariant: New file.
7855
7856         New module 'unicase/u8-is-invariant'.
7857         * lib/unicase/u8-is-invariant.c: New file.
7858         * lib/unicase/invariant.h: New file.
7859         * lib/unicase/u-is-invariant.h: New file.
7860         * modules/unicase/u8-is-invariant: New file.
7861
7862         Tests for module 'unicase/u32-casecoll'.
7863         * modules/unicase/u32-casecoll-tests: New file.
7864         * tests/unicase/test-u32-casecoll.c: New file.
7865
7866         Tests for module 'unicase/u16-casecoll'.
7867         * modules/unicase/u16-casecoll-tests: New file.
7868         * tests/unicase/test-u16-casecoll.c: New file.
7869
7870         Tests for module 'unicase/u8-casecoll'.
7871         * modules/unicase/u8-casecoll-tests: New file.
7872         * tests/unicase/test-u8-casecoll.c: New file.
7873
7874         New module 'unicase/u32-casecoll'.
7875         * lib/unicase/u32-casecoll.c: New file.
7876         * modules/unicase/u32-casecoll: New file.
7877
7878         New module 'unicase/u16-casecoll'.
7879         * lib/unicase/u16-casecoll.c: New file.
7880         * modules/unicase/u16-casecoll: New file.
7881
7882         New module 'unicase/u8-casecoll'.
7883         * lib/unicase/u8-casecoll.c: New file.
7884         * lib/unicase/u-casecoll.h: New file.
7885         * modules/unicase/u8-casecoll: New file.
7886
7887         New module 'unicase/u32-casexfrm'.
7888         * lib/unicase/u32-casexfrm.c: New file.
7889         * modules/unicase/u32-casexfrm: New file.
7890
7891         New module 'unicase/u16-casexfrm'.
7892         * lib/unicase/u16-casexfrm.c: New file.
7893         * modules/unicase/u16-casexfrm: New file.
7894
7895         New module 'unicase/u8-casexfrm'.
7896         * lib/unicase/u8-casexfrm.c: New file.
7897         * lib/unicase/u-casexfrm.h: New file.
7898         * modules/unicase/u8-casexfrm: New file.
7899
7900         Tests for module 'unicase/u32-casecmp'.
7901         * modules/unicase/u32-casecmp-tests: New file.
7902         * tests/unicase/test-u32-casecmp.c: New file.
7903
7904         Tests for module 'unicase/u16-casecmp'.
7905         * modules/unicase/u16-casecmp-tests: New file.
7906         * tests/unicase/test-u16-casecmp.c: New file.
7907
7908         Tests for module 'unicase/u8-casecmp'.
7909         * modules/unicase/u8-casecmp-tests: New file.
7910         * tests/unicase/test-u8-casecmp.c: New file.
7911         * tests/unicase/test-casecmp.h: New file.
7912
7913         New module 'unicase/u32-casecmp'.
7914         * lib/unicase/u32-casecmp.c: New file.
7915         * modules/unicase/u32-casecmp: New file.
7916
7917         New module 'unicase/u16-casecmp'.
7918         * lib/unicase/u16-casecmp.c: New file.
7919         * modules/unicase/u16-casecmp: New file.
7920
7921         New module 'unicase/u8-casecmp'.
7922         * lib/unicase/u8-casecmp.c: New file.
7923         * lib/unicase/u-casecmp.h: New file.
7924         * modules/unicase/u8-casecmp: New file.
7925
7926         Tests for module 'unicase/u32-casefold'.
7927         * modules/unicase/u32-casefold-tests: New file.
7928         * tests/unicase/test-u32-casefold.c: New file.
7929
7930         Tests for module 'unicase/u16-casefold'.
7931         * modules/unicase/u16-casefold-tests: New file.
7932         * tests/unicase/test-u16-casefold.c: New file.
7933
7934         Tests for module 'unicase/u8-casefold'.
7935         * modules/unicase/u8-casefold-tests: New file.
7936         * tests/unicase/test-u8-casefold.c: New file.
7937
7938         New module 'unicase/u32-casefold'.
7939         * lib/unicase/u32-casefold.c: New file.
7940         * modules/unicase/u32-casefold: New file.
7941
7942         New module 'unicase/u16-casefold'.
7943         * lib/unicase/u16-casefold.c: New file.
7944         * modules/unicase/u16-casefold: New file.
7945
7946         New module 'unicase/u8-casefold'.
7947         * lib/unicase/u8-casefold.c: New file.
7948         * lib/unicase/u-casefold.h: New file.
7949         * modules/unicase/u8-casefold: New file.
7950
7951         New module 'unicase/tocasefold'.
7952         * lib/unicase/casefold.h: New file.
7953         * lib/unicase/tocasefold.c: New file.
7954         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
7955         * modules/unicase/tocasefold: New file.
7956
7957         Tests for module 'unicase/u32-totitle'.
7958         * modules/unicase/u32-totitle-tests: New file.
7959         * tests/unicase/test-u32-totitle.c: New file.
7960
7961         Tests for module 'unicase/u16-totitle'.
7962         * modules/unicase/u16-totitle-tests: New file.
7963         * tests/unicase/test-u16-totitle.c: New file.
7964
7965         Tests for module 'unicase/u8-totitle'.
7966         * modules/unicase/u8-totitle-tests: New file.
7967         * tests/unicase/test-u8-totitle.c: New file.
7968
7969         New module 'unicase/u32-totitle'.
7970         * lib/unicase/u32-totitle.c: New file.
7971         * modules/unicase/u32-totitle: New file.
7972
7973         New module 'unicase/u16-totitle'.
7974         * lib/unicase/u16-totitle.c: New file.
7975         * modules/unicase/u16-totitle: New file.
7976
7977         New module 'unicase/u8-totitle'.
7978         * lib/unicase/u8-totitle.c: New file.
7979         * lib/unicase/u-totitle.h: New file.
7980         * modules/unicase/u8-totitle: New file.
7981
7982         Tests for module 'unicase/u32-tolower'.
7983         * modules/unicase/u32-tolower-tests: New file.
7984         * tests/unicase/test-u32-tolower.c: New file.
7985
7986         Tests for module 'unicase/u16-tolower'.
7987         * modules/unicase/u16-tolower-tests: New file.
7988         * tests/unicase/test-u16-tolower.c: New file.
7989
7990         Tests for module 'unicase/u8-tolower'.
7991         * modules/unicase/u8-tolower-tests: New file.
7992         * tests/unicase/test-u8-tolower.c: New file.
7993
7994         New module 'unicase/u32-tolower'.
7995         * lib/unicase/u32-tolower.c: New file.
7996         * modules/unicase/u32-tolower: New file.
7997
7998         New module 'unicase/u16-tolower'.
7999         * lib/unicase/u16-tolower.c: New file.
8000         * modules/unicase/u16-tolower: New file.
8001
8002         New module 'unicase/u8-tolower'.
8003         * lib/unicase/u8-tolower.c: New file.
8004         * modules/unicase/u8-tolower: New file.
8005
8006         Tests for module 'unicase/u32-toupper'.
8007         * modules/unicase/u32-toupper-tests: New file.
8008         * tests/unicase/test-u32-toupper.c: New file.
8009
8010         Tests for module 'unicase/u16-toupper'.
8011         * modules/unicase/u16-toupper-tests: New file.
8012         * tests/unicase/test-u16-toupper.c: New file.
8013
8014         Tests for module 'unicase/u8-toupper'.
8015         * modules/unicase/u8-toupper-tests: New file.
8016         * tests/unicase/test-u8-toupper.c: New file.
8017
8018         New module 'unicase/u32-toupper'.
8019         * lib/unicase/u32-toupper.c: New file.
8020         * modules/unicase/u32-toupper: New file.
8021
8022         New module 'unicase/u16-toupper'.
8023         * lib/unicase/u16-toupper.c: New file.
8024         * modules/unicase/u16-toupper: New file.
8025
8026         New module 'unicase/u8-toupper'.
8027         * lib/unicase/u8-toupper.c: New file.
8028         * modules/unicase/u8-toupper: New file.
8029
8030         New module 'unicase/u32-casemap'.
8031         * lib/unicase/u32-casemap.c: New file.
8032         * modules/unicase/u32-casemap: New file.
8033
8034         New module 'unicase/u16-casemap'.
8035         * lib/unicase/u16-casemap.c: New file.
8036         * modules/unicase/u16-casemap: New file.
8037
8038         New module 'unicase/u8-casemap'.
8039         * lib/unicase/unicasemap.h: New file.
8040         * lib/unicase/u8-casemap.c: New file.
8041         * lib/unicase/u-casemap.h: New file.
8042         * modules/unicase/u8-casemap: New file.
8043
8044         New module 'unicase/special-casing'.
8045         * lib/unicase/special-casing.h: New file.
8046         * lib/unicase/special-casing.c: New file.
8047         * lib/unicase/special-casing-table.gperf: New file, generated by
8048         gen-uni-tables.c.
8049         * modules/unicase/special-casing: New file.
8050
8051         Tests for module 'unicase/locale-language'.
8052         * modules/unicase/locale-language-tests: New file.
8053         * tests/unicase/test-locale-language.sh: New file.
8054         * tests/unicase/test-locale-language.c: New file.
8055
8056         New module 'unicase/locale-language'.
8057         * lib/unicase/locale-language.c: New file.
8058         * lib/unicase/locale-languages.gperf: New file.
8059         * modules/unicase/locale-language: New file.
8060
8061         Generate more tables for case conversion and case folding.
8062         * lib/gen-uni-tables.c (SCC_*): New enum items.
8063         (struct special_casing_rule): New type.
8064         (casing_rules, num_casing_rules, allocated_casing_rules): New
8065         variables.
8066         (add_casing_rule, fill_casing_rules): New functions.
8067         (struct casefold_rule): New type.
8068         (casefolding_rules, num_casefolding_rules,
8069         allocated_casefolding_rules): New variables.
8070         (fill_casefolding_rules): New function.
8071         (unicode_casefold): New variable.
8072         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
8073         sort_casing_rules, output_casing_rules): New functions.
8074         (main): Accept to more arguments: SpecialCasing.txt and
8075         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
8076         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
8077         Output mapping for casefolding.
8078
8079         * lib/unicase.h: Include stdbool.h, uninorm.h.
8080         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
8081         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
8082         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
8083         arguments.
8084         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
8085         resultp arguments.
8086         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
8087         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
8088         resultp arguments.
8089         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
8090         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
8091         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
8092         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
8093         declarations.
8094         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
8095
8096 2009-03-08  Bruno Haible  <bruno@clisp.org>
8097
8098         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
8099         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
8100         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
8101         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
8102
8103 2009-03-07  Bruno Haible  <bruno@clisp.org>
8104
8105         Adjust u*_normcmp, u*_normcoll API.
8106         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
8107         u16_normcoll, u32_normcoll): Change failure conventions.
8108         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
8109         errno and return -1.
8110         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
8111
8112 2009-03-07  Bruno Haible  <bruno@clisp.org>
8113
8114         Tests for module 'uninorm/u32-normcoll'.
8115         * modules/uninorm/u32-normcoll-tests: New file.
8116         * tests/uninorm/test-u32-normcoll.c: New file.
8117
8118         Tests for module 'uninorm/u16-normcoll'.
8119         * modules/uninorm/u16-normcoll-tests: New file.
8120         * tests/uninorm/test-u16-normcoll.c: New file.
8121
8122         Tests for module 'uninorm/u8-normcoll'.
8123         * modules/uninorm/u8-normcoll-tests: New file.
8124         * tests/uninorm/test-u8-normcoll.c: New file.
8125
8126 2009-03-07  Bruno Haible  <bruno@clisp.org>
8127
8128         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
8129         tests/uninorm/test-u32-normcmp.c.
8130         * tests/uninorm/test-u32-normcmp.c: Include it.
8131         (test_nonascii): New function, extracted from main. Add some more
8132         tests.
8133         (main): Invoke test_ascii and test_nonascii.
8134         * modules/uninorm/u32-normcmp-tests (Files): Add
8135         tests/uninorm/test-u32-normcmp.h.
8136         (Depends-on): Remove uninorm/u32-normcmp.
8137
8138         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
8139         tests/uninorm/test-u16-normcmp.c.
8140         * tests/uninorm/test-u16-normcmp.c: Include it.
8141         (test_nonascii): New function, extracted from main. Add some more
8142         tests.
8143         (main): Invoke test_ascii and test_nonascii.
8144         * modules/uninorm/u16-normcmp-tests (Files): Add
8145         tests/uninorm/test-u16-normcmp.h.
8146         (Depends-on): Remove uninorm/u16-normcmp.
8147
8148         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
8149         tests/uninorm/test-u8-normcmp.c.
8150         * tests/uninorm/test-u8-normcmp.c: Include it.
8151         (test_nonascii): New function, extracted from main. Add some more
8152         tests.
8153         (main): Invoke test_ascii and test_nonascii.
8154         * modules/uninorm/u8-normcmp-tests (Files): Add
8155         tests/uninorm/test-u8-normcmp.h.
8156         (Depends-on): Remove uninorm/u8-normcmp.
8157
8158 2009-03-07  Bruno Haible  <bruno@clisp.org>
8159
8160         New module 'uninorm/u32-normcoll'.
8161         * lib/uninorm/u32-normcoll.c: New file.
8162         * modules/uninorm/u32-normcoll: New file.
8163
8164         New module 'uninorm/u16-normcoll'.
8165         * lib/uninorm/u16-normcoll.c: New file.
8166         * modules/uninorm/u16-normcoll: New file.
8167
8168         New module 'uninorm/u8-normcoll'.
8169         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
8170         declarations.
8171         * lib/uninorm/u8-normcoll.c: New file.
8172         * lib/uninorm/u-normcoll.h: New file.
8173         * modules/uninorm/u8-normcoll: New file.
8174
8175         New module 'uninorm/u32-normxfrm'.
8176         * lib/uninorm/u32-normxfrm.c: New file.
8177         * modules/uninorm/u32-normxfrm: New file.
8178
8179         New module 'uninorm/u16-normxfrm'.
8180         * lib/uninorm/u16-normxfrm.c: New file.
8181         * modules/uninorm/u16-normxfrm: New file.
8182
8183         New module 'uninorm/u8-normxfrm'.
8184         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
8185         declarations.
8186         * lib/uninorm/u8-normxfrm.c: New file.
8187         * lib/uninorm/u-normxfrm.h: New file.
8188         * modules/uninorm/u8-normxfrm: New file.
8189
8190 2009-03-07  Bruno Haible  <bruno@clisp.org>
8191
8192         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
8193         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
8194         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
8195
8196 2009-03-07  Bruno Haible  <bruno@clisp.org>
8197
8198         New module 'memxfrm'.
8199         * lib/memxfrm.h: New file.
8200         * lib/memxfrm.c: New file.
8201         * modules/memxfrm: New file.
8202
8203 2009-03-07  Bruno Haible  <bruno@clisp.org>
8204
8205         New module 'memcmp2'.
8206         * lib/memcmp2.h: New file.
8207         * lib/memcmp2.c: New file.
8208         * modules/memcmp2: New file.
8209
8210 2009-03-07  Bruno Haible  <bruno@clisp.org>
8211
8212         Tests for module 'uninorm/decomposing-form'.
8213         * modules/uninorm/decomposing-form-tests: New file.
8214         * tests/uninorm/test-decomposing-form.c: New file.
8215
8216         New module 'uninorm/decomposing-form'.
8217         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
8218         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
8219         Add 'decomposing_variant' field.
8220         * lib/uninorm/decomposing-form.c: New file.
8221         * lib/uninorm/nfc.c (uninorm_nfc): Update.
8222         * lib/uninorm/nfd.c (uninorm_nfd): Update.
8223         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
8224         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
8225         * modules/uninorm/decomposing-form: New file.
8226         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
8227         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
8228
8229 2009-03-07  Bruno Haible  <bruno@clisp.org>
8230
8231         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
8232         strings.
8233
8234 2009-03-06  Bruno Haible  <bruno@clisp.org>
8235
8236         Tests for module 'uninorm/u32-normcmp'.
8237         * tests/uninorm/test-u32-normcmp.c: New file.
8238         * modules/uninorm/u32-normcmp-tests: New file.
8239
8240         Tests for module 'uninorm/u16-normcmp'.
8241         * tests/uninorm/test-u16-normcmp.c: New file.
8242         * modules/uninorm/u16-normcmp-tests: New file.
8243
8244         Tests for module 'uninorm/u8-normcmp'.
8245         * tests/uninorm/test-u8-normcmp.c: New file.
8246         * modules/uninorm/u8-normcmp-tests: New file.
8247
8248         New module 'uninorm/u32-normcmp'.
8249         * lib/uninorm/u32-normcmp.c: New file.
8250         * modules/uninorm/u32-normcmp: New file.
8251
8252         New module 'uninorm/u16-normcmp'.
8253         * lib/uninorm/u16-normcmp.c: New file.
8254         * modules/uninorm/u16-normcmp: New file.
8255
8256         New module 'uninorm/u8-normcmp'.
8257         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
8258         declarations.
8259         * lib/uninorm/u8-normcmp.c: New file.
8260         * lib/uninorm/u-normcmp.h: New file.
8261         * modules/uninorm/u8-normcmp: New file.
8262
8263 2009-03-06  Bruno Haible  <bruno@clisp.org>
8264
8265         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
8266         Reported by Eric Blake.
8267
8268 2009-03-06  Eric Blake  <ebb9@byu.net>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
8272         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
8273         condition.
8274         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
8275         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
8276         condition.
8277         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
8278
8279 2009-03-06  Eric Blake  <ebb9@byu.net>
8280
8281         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
8282         to avoid compiler warnings.
8283         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
8284
8285 2009-03-05  Bruno Haible  <bruno@clisp.org>
8286
8287         * tests/test-ftell.c (main): Disable test beyond end of file on
8288         FreeMiNT.
8289         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
8290
8291 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
8292
8293         * lib/filevercmp.c: Move hidden files up in ordering.
8294         * tests/test-filevercmp.c: Add tests for hidden files.
8295
8296 2009-03-04  Bruno Haible  <bruno@clisp.org>
8297
8298         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
8299         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
8300         AM_CFLAGS.
8301         Reported by Simon Josefsson.
8302
8303 2009-03-03  Bruno Haible  <bruno@clisp.org>
8304
8305         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
8306         Reported by Simon Josefsson.
8307
8308         * doc/ld-version-script.texi: Update node reference.
8309
8310 2009-03-03  Bruno Haible  <bruno@clisp.org>
8311
8312         * modules/visibility (License): Change to 'unlimited'.
8313         Suggested by Simon Josefsson.
8314
8315 2009-03-03  Jim Meyering  <meyering@redhat.com>
8316
8317         unlinkdir: cannot_unlink_dir may modify process state
8318         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
8319         it's neither thread-safe nor appropriate for use in a library.
8320
8321 2009-03-03  Eric Blake  <ebb9@byu.net>
8322
8323         test-closein: silence test under Darwin
8324         * tests/test-closein.sh: Ignore stderr from cat, since we don't
8325         care if it dies from EPIPE or EBADF.
8326
8327 2009-03-03  Bruno Haible  <bruno@clisp.org>
8328
8329         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
8330         earlier.
8331         * doc/visibility.texi: Fix @node and @section.
8332
8333 2009-03-03  Simon Josefsson  <simon@josefsson.org>
8334
8335         * doc/gnulib.texi: Link to sections for ld version script and
8336         visibility.
8337         * doc/visibility.texi: Add @node and @section.
8338         * modules/ld-version-script: New module.
8339         * m4/ld-version-script.m4: New file.
8340         * doc/ld-version-script.texi: New file.
8341
8342 2009-03-02  David Lutterkort  <lutter@redhat.com>
8343
8344         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
8345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8346
8347 2009-03-02  Bruno Haible  <bruno@clisp.org>
8348
8349         * doc/visibility.texi: Mention libtool's -export-symbols option.
8350
8351 2009-03-02  Jim Meyering  <meyering@redhat.com>
8352
8353         announce-gen: new option: --no-print-checksums
8354         * build-aux/announce-gen (usage): Describe it.
8355         (print_checksums): Print a newline here, not in the [*] footnote.
8356         (main): Honor it.
8357
8358 2009-03-01  Bruno Haible  <bruno@clisp.org>
8359
8360         Use socklen_t in the native Windows replacements prototypes.
8361         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
8362         instead of 'int'.
8363         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8364         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8365         * modules/getsockopt (Depends-on): Add socklen.
8366         * modules/setsockopt (Depends-on): Add socklen.
8367
8368 2009-03-01  Bruno Haible  <bruno@clisp.org>
8369
8370         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
8371         least 4.2.
8372
8373 2009-03-01  Eric Blake  <ebb9@byu.net>
8374             Bruno Haible  <bruno@clisp.org>
8375
8376         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
8377         error messages.
8378         * lib/wait-process.c (wait_subprocess): Omit error message about
8379         deadly signal sent to the child of termsigp != NULL.
8380
8381 2009-03-01  Eric Blake  <ebb9@byu.net>
8382
8383         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
8384
8385 2009-03-01  Bruno Haible  <bruno@clisp.org>
8386
8387         Avoid a gcc warning.
8388         * tests/test-sched.c (b): Make global.
8389         Reported by Eric Blake.
8390
8391 2009-01-19  Martin Lambers  <marlam@marlam.de>
8392
8393         Provide POSIX semantics for socket timeout options on W32.
8394         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
8395         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
8396         * modules/setsockopt: Depend on sys_time module for struct timeval.
8397         * modules/getsockopt: Depend on sys_time module for struct timeval.
8398
8399 2009-03-01  Simon Josefsson  <simon@josefsson.org>
8400
8401         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
8402         __USE_GNU, for consistency with netdb.in.h.
8403         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8404
8405 2009-03-01  Bruno Haible  <bruno@clisp.org>
8406
8407         More support for FreeMiNT.
8408         * lib/fseeko.c (rpl_fseeko): Complete last commit.
8409         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8410
8411 2009-03-01  Bruno Haible  <bruno@clisp.org>
8412
8413         More support for FreeMiNT.
8414         * lib/fpurge.c (fpurge): Correct last commit.
8415         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8416
8417 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8418
8419         Fix unportable awk script in vc-list-files.
8420         * build-aux/vc-list-files: In the replacement awk script, use
8421         substr with a second argument of 1, not zero.
8422         Report by Simon Josefsson.
8423
8424 2009-02-28  Bruno Haible  <bruno@clisp.org>
8425
8426         More support for FreeMiNT.
8427         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
8428         to FreeMiNT today.
8429         * lib/fwriting.c (fwriting): Likewise.
8430         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
8431
8432 2009-02-28  Bruno Haible  <bruno@clisp.org>
8433
8434         * tests/test-freadseek.c (main): Disable test beyond end of file on
8435         FreeMiNT.
8436         * tests/test-ftello.c (main): Likewise.
8437         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
8438
8439 2009-02-28  Bruno Haible  <bruno@clisp.org>
8440
8441         Add tentative support for FreeMiNT.
8442         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
8443         * lib/fpurge.c (fpurge): Likewise.
8444         * lib/freadable.c (freadable): Likewise.
8445         * lib/freading.c (freading): Likewise.
8446         * lib/freadptr.c (freadptr): Likewise.
8447         * lib/freadseek.c (freadptrinc): Likewise.
8448         * lib/fseeko.c (rpl_fseeko): Likewise.
8449         * lib/fseterr.c (fseterr): Likewise.
8450         * lib/fwritable.c (fwritable): Likewise.
8451         * lib/fwriting.c (fwriting): Likewise.
8452         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
8453         Hourihane.
8454         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8455
8456 2009-02-28  Bruno Haible  <bruno@clisp.org>
8457
8458         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
8459         SIGCHLD.
8460         Reported by Jim Meyering.
8461
8462 2009-02-28  Bruno Haible  <bruno@clisp.org>
8463
8464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
8465         Mention the results of these tests on various platforms.
8466         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
8467         order.
8468         * doc/posix-functions/printf.texi: Likewise.
8469         * doc/posix-functions/snprintf.texi: Likewise.
8470         * doc/posix-functions/sprintf.texi: Likewise.
8471         * doc/posix-functions/vfprintf.texi: Likewise.
8472         * doc/posix-functions/vprintf.texi: Likewise.
8473         * doc/posix-functions/vsnprintf.texi: Likewise.
8474         * doc/posix-functions/vsprintf.texi: Likewise.
8475         * doc/glibc-functions/obstack_printf.texi: Likewise.
8476         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8477
8478 2009-02-28  Bruno Haible  <bruno@clisp.org>
8479
8480         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
8481         Reported by Loïc Minier <lool@dooz.org>.
8482
8483 2009-02-27  Bruno Haible  <bruno@clisp.org>
8484
8485         * gnulib-tool (func_import): Make the sed expression used to create the
8486         sed script for updating the .gitignore file POSIX compliant.
8487         Reported by Eric Blake.
8488
8489 2009-02-27  Bruno Haible  <bruno@clisp.org>
8490
8491         * gnulib-tool (sed): Don't alias as "sed --posix".
8492         Reported by Eric Blake.
8493
8494 2009-02-27  Bruno Haible  <bruno@clisp.org>
8495
8496         Avoid test link errors.
8497         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
8498         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
8499         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
8500         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
8501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8502
8503 2009-02-27  Bruno Haible  <bruno@clisp.org>
8504
8505         Avoid spurious "(cached)" in configure output.
8506         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
8507         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
8508         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
8509         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
8510         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
8511         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
8512         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
8513         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
8514         Reported by Eric Blake.
8515
8516 2009-02-27  Eric Blake  <ebb9@byu.net>
8517
8518         printf: fix regression in previous patch
8519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
8520
8521 2009-02-27  Bruno Haible  <bruno@clisp.org>
8522
8523         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
8524         value.
8525         * lib/stdint.in.h: Likewise.
8526         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
8527
8528 2009-02-27  Eric Blake  <ebb9@byu.net>
8529
8530         doc: mention more functions added in cygwin 1.7.0
8531         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
8532         addition.
8533         * doc/posix-functions/open_wmemstream.texi: Likewise.
8534         * doc/posix-functions/wcsnlen.texi: Likewise.
8535         * doc/posix-functions/wcsnrtombs.texi: Likewise.
8536         * doc/posix-functions/wcstod.texi: Likewise.
8537         * doc/posix-functions/wcstof.texi: Likewise.
8538         * doc/posix-functions/wcstoimax.texi: Likewise.
8539         * doc/posix-functions/wcstok.texi: Likewise.
8540         * doc/posix-functions/wcstoumax.texi: Likewise.
8541
8542         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
8543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
8544         * doc/posix-functions/fprintf.texi: Update.
8545         * doc/posix-functions/printf.texi: Update.
8546         * doc/posix-functions/snprintf.texi: Update.
8547         * doc/posix-functions/sprintf.texi: Update.
8548         * doc/posix-functions/vfprintf.texi: Update.
8549         * doc/posix-functions/vprintf.texi: Update.
8550         * doc/posix-functions/vsnprintf.texi: Update.
8551         * doc/posix-functions/vsprintf.texi: Update.
8552         * doc/glibc-functions/obstack_printf.texi: Update.
8553         * doc/glibc-functions/obstack_vprintf.texi: Update.
8554
8555 2009-02-26  Eric Blake  <ebb9@byu.net>
8556
8557         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
8558         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
8559         compilation bug by using runtime conversion.
8560         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8561         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
8562         * modules/ceill-tests (Files): Use nan.h.
8563         * modules/floorl-tests (Files): Likewise.
8564         * modules/frexpl-tests (Files): Likewise.
8565         * modules/isnanl-tests (Files): Likewise.
8566         * modules/ldexpl-tests (Files): Likewise.
8567         * modules/roundl-tests (Files): Likewise.
8568         * modules/truncl-tests (Files): Likewise.
8569         * tests/test-ceill.c (main): Use a working NaN.
8570         * tests/test-floorl.c (main): Likewise.
8571         * tests/test-frexpl.c (main): Likewise.
8572         * tests/test-isnan.c (test_long_double): Likewise.
8573         * tests/test-isnanl.h (main): Likewise.
8574         * tests/test-ldexpl.h (main): Likewise.
8575         * tests/test-roundl.h (main): Likewise.
8576         * tests/test-truncl.h (main): Likewise.
8577         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
8578
8579 2009-02-26  Eric Blake  <ebb9@byu.net>
8580             Bruno Haible  <bruno@clisp.org>
8581
8582         Work around a *printf bug with %ls on Solaris.
8583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
8584         precision is specified, sprintf stops converting the wide string
8585         argument when the number of bytes that have been produced by this
8586         conversion equals or exceeds the precision.
8587         * doc/posix-functions/fprintf.texi: Update.
8588         * doc/posix-functions/printf.texi: Update.
8589         * doc/posix-functions/snprintf.texi: Update.
8590         * doc/posix-functions/sprintf.texi: Update.
8591         * doc/posix-functions/vfprintf.texi: Update.
8592         * doc/posix-functions/vprintf.texi: Update.
8593         * doc/posix-functions/vsnprintf.texi: Update.
8594         * doc/posix-functions/vsprintf.texi: Update.
8595         * doc/glibc-functions/obstack_printf.texi: Update.
8596         * doc/glibc-functions/obstack_vprintf.texi: Update.
8597
8598 2009-02-26  Eric Blake  <ebb9@byu.net>
8599
8600         stdlib: favor compiler check of random.h
8601         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
8602         to avoid an ObjC random.h installed by Swarm.
8603
8604 2009-02-26  Bruno Haible  <bruno@clisp.org>
8605
8606         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
8607         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
8608         Reported by Gary V. Vaughan <gary@gnu.org>.
8609
8610 2009-02-26  Bruno Haible  <bruno@clisp.org>
8611
8612         Fix *printf behaviour regarding the %ls directive.
8613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
8614         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
8615         NEED_PRINTF_DIRECTIVE_LS.
8616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
8617         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
8618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8619         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
8620         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
8621         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
8622         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
8623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8627         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
8628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8631         * doc/posix-functions/fprintf.texi: Update.
8632         * doc/posix-functions/printf.texi: Update.
8633         * doc/posix-functions/snprintf.texi: Update.
8634         * doc/posix-functions/sprintf.texi: Update.
8635         * doc/posix-functions/vfprintf.texi: Update.
8636         * doc/posix-functions/vprintf.texi: Update.
8637         * doc/posix-functions/vsnprintf.texi: Update.
8638         * doc/posix-functions/vsprintf.texi: Update.
8639         * doc/glibc-functions/obstack_printf.texi: Update.
8640         * doc/glibc-functions/obstack_vprintf.texi: Update.
8641         Reported by Eric Blake.
8642
8643 2009-02-25  Bruno Haible  <bruno@clisp.org>
8644
8645         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
8646         with known value.
8647         Reported by Gary V. Vaughan <gary@gnu.org>.
8648
8649 2009-02-25  Bruno Haible  <bruno@clisp.org>
8650
8651         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
8652         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
8653         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
8654         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
8655         Reported by Gary V. Vaughan <gary@gnu.org>.
8656
8657 2009-02-25  Bruno Haible  <bruno@clisp.org>
8658
8659         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
8660         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
8661         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
8662         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
8663         Reported by Gary V. Vaughan <gary@gnu.org>.
8664
8665 2009-02-25  Eric Blake  <ebb9@byu.net>
8666
8667         tests: skip fseek/ftell tests if ungetc is broken
8668         * m4/ungetc.m4: New file.
8669         * modules/fseek-tests: Split test, so ungetc dependency is
8670         separate from rest of test.
8671         * modules/fseeko-tests: Likewise.
8672         * modules/ftell-tests: Likewise.
8673         * modules/ftello-tests: Likewise.
8674         * tests/test-fseek.c (main): Isolate ungetc dependency.
8675         * tests/test-fseeko.c (main): Likewise.
8676         * tests/test-ftell.c (main): Likewise.
8677         * tests/test-ftello.c (main): Likewise.
8678         * tests/test-fseek2.sh: New file.
8679         * tests/test-fseeko2.sh: Likewise.
8680         * tests/test-ftell2.sh: Likewise.
8681         * tests/test-ftello2.sh: Likewise.
8682
8683 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
8684
8685         test-getaddrinfo: fix usage of skip return code 77
8686         * tests/test-gettaddrinfo.c: Return skip code 77 only
8687         for first occurance of skip (4x77 is not 77)
8688
8689 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
8690
8691         strtod: avoid C99 decl-after-statement
8692         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
8693
8694 2009-02-24  Eric Blake  <ebb9@byu.net>
8695
8696         strtod: detect HP-UX 11.31 bug
8697         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
8698         Reported by Gary V. Vaughan.
8699
8700 2009-02-23  Bruno Haible  <bruno@clisp.org>
8701
8702         Fix invalid read past end of memory block.
8703         * lib/vasnprintf.c (DCHAR_SET): Define.
8704         (local_wcslen): Define only when needed.
8705         (local_strnlen, local_wcsnlen): New functions.
8706         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
8707         directives that involve a conversion ourselves.
8708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
8709         wcsnlen, mbrtowc, wcrtomb.
8710         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
8711         * tests/test-vasprintf-posix.c (test_function): Likewise.
8712         * tests/test-snprintf-posix.h (test_function): Likewise.
8713         * tests/test-sprintf-posix.h (test_function): Likewise.
8714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8715
8716 2009-02-22  Bruno Haible  <bruno@clisp.org>
8717
8718         Implement new clarified decomposition of Hangul syllables.
8719         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
8720         of type LTV, return only a pairwise decomposition.
8721         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
8722         Likewise.
8723         * tests/uninorm/test-decomposition.c (main): Updated expected result.
8724         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
8725         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
8726
8727 2009-02-22  Bruno Haible  <bruno@clisp.org>
8728
8729         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
8730         zero-length results and shrink excess allocated memory.
8731         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
8732         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
8733         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
8734         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
8735         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
8736         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
8737         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
8738         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
8739         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
8740         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
8741         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
8742         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
8743
8744 2009-02-21  Bruno Haible  <bruno@clisp.org>
8745
8746         * doc/gnulib.texi: Include safe-alloc.texi earlier.
8747         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
8748         spaces after a period. Put a space between a macro name and its
8749         argument list. Trivial rewordings.
8750         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
8751         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
8752         (main): Return 0 explicitly.
8753
8754 2009-02-21  Bruno Haible  <bruno@clisp.org>
8755
8756         Tests for module 'uninorm/filter'.
8757         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
8758         * modules/uninorm/filter-tests: New file.
8759
8760         New module 'uninorm/filter'.
8761         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
8762         uninorm_filter_flush, uninorm_filter_free): New declarations.
8763         * lib/uninorm/uninorm-filter.c: New file.
8764         * modules/uninorm/filter: New file.
8765
8766 2009-02-21  Bruno Haible  <bruno@clisp.org>
8767
8768         Tests for module 'uninorm/nfkc'.
8769         * tests/uninorm/test-nfkc.c: New file.
8770         * tests/uninorm/test-u8-nfkc.c: New file.
8771         * tests/uninorm/test-u16-nfkc.c: New file.
8772         * tests/uninorm/test-u32-nfkc.c: New file.
8773         * tests/uninorm/test-u32-nfkc-big.sh: New file.
8774         * tests/uninorm/test-u32-nfkc-big.c: New file.
8775         * modules/uninorm/nfkc-tests: New file.
8776
8777         New module 'uninorm/nfkc'.
8778         * lib/uninorm/nfkc.c: New file.
8779         * modules/uninorm/nfkc: New file.
8780
8781         Tests for module 'uninorm/nfkd'.
8782         * tests/uninorm/test-nfkd.c: New file.
8783         * tests/uninorm/test-u8-nfkd.c: New file.
8784         * tests/uninorm/test-u16-nfkd.c: New file.
8785         * tests/uninorm/test-u32-nfkd.c: New file.
8786         * tests/uninorm/test-u32-nfkd-big.sh: New file.
8787         * tests/uninorm/test-u32-nfkd-big.c: New file.
8788         * modules/uninorm/nfkd-tests: New file.
8789
8790         New module 'uninorm/nfkd'.
8791         * lib/uninorm/nfkd.c: New file.
8792         * modules/uninorm/nfkd: New file.
8793
8794         Tests for module 'uninorm/nfc'.
8795         * tests/uninorm/test-nfc.c: New file.
8796         * tests/uninorm/test-u8-nfc.c: New file.
8797         * tests/uninorm/test-u16-nfc.c: New file.
8798         * tests/uninorm/test-u32-nfc.c: New file.
8799         * tests/uninorm/test-u32-nfc-big.sh: New file.
8800         * tests/uninorm/test-u32-nfc-big.c: New file.
8801         * modules/uninorm/nfc-tests: New file.
8802
8803         New module 'uninorm/nfc'.
8804         * lib/uninorm/nfc.c: New file.
8805         * modules/uninorm/nfc: New file.
8806
8807         Tests for module 'uninorm/nfd'.
8808         * tests/uninorm/test-nfd.c: New file.
8809         * tests/uninorm/test-u8-nfd.c: New file.
8810         * tests/uninorm/test-u16-nfd.c: New file.
8811         * tests/uninorm/test-u32-nfd.c: New file.
8812         * tests/uninorm/test-u32-nfd-big.sh: New file.
8813         * tests/uninorm/test-u32-nfd-big.c: New file.
8814         * tests/uninorm/test-u32-normalize-big.h: New file.
8815         * tests/uninorm/test-u32-normalize-big.c: New file.
8816         * tests/uninorm/NormalizationTest.txt: New file, created from
8817         Unicode 5.1.0 NormalizationTest.txt.
8818         * modules/uninorm/nfd-tests: New file.
8819
8820         New module 'uninorm/nfd'.
8821         * lib/uninorm/nfd.c: New file.
8822         * modules/uninorm/nfd: New file.
8823
8824         New module 'uninorm/u32-normalize'.
8825         * lib/uninorm/u32-normalize.c: New file.
8826         * modules/uninorm/u32-normalize: New file.
8827
8828         New module 'uninorm/u16-normalize'.
8829         * lib/uninorm/u16-normalize.c: New file.
8830         * modules/uninorm/u16-normalize: New file.
8831
8832         New module 'uninorm/u8-normalize'.
8833         * lib/uninorm/u8-normalize.c: New file.
8834         * lib/uninorm/normalize-internal.h: New file.
8835         * lib/uninorm/u-normalize-internal.h: New file.
8836         * modules/uninorm/u8-normalize: New file.
8837
8838         New module 'uninorm/decompose-internal'.
8839         * lib/uninorm/decompose-internal.c: New file.
8840         * modules/uninorm/decompose-internal: New file.
8841
8842         Tests for module 'uninorm/composition'.
8843         * tests/uninorm/test-composition.c: New file.
8844         * modules/uninorm/composition-tests: New file.
8845
8846         New module 'uninorm/composition'.
8847         * lib/uninorm/composition.c: New file.
8848         * lib/uninorm/composition-table.gperf: New file, generated by
8849         gen-uni-tables.
8850         * modules/uninorm/composition: New file.
8851
8852         Tests for module 'uninorm/compat-decomposition'.
8853         * tests/uninorm/test-compat-decomposition.c: New file.
8854         * modules/uninorm/compat-decomposition-tests: New file.
8855
8856         New module 'uninorm/compat-decomposition'.
8857         * lib/uninorm/decompose-internal.h: New file.
8858         * lib/uninorm/compat-decomposition.c: New file.
8859         * modules/uninorm/compat-decomposition: New file.
8860
8861         Tests for module 'uninorm/canonical-decomposition'.
8862         * tests/uninorm/test-canonical-decomposition.c: New file.
8863         * modules/uninorm/canonical-decomposition-tests: New file.
8864
8865         New module 'uninorm/canonical-decomposition'.
8866         * lib/uninorm/canonical-decomposition.c: New file.
8867         * modules/uninorm/canonical-decomposition: New file.
8868
8869         Tests for module 'uninorm/decomposition'.
8870         * tests/uninorm/test-decomposition.c: New file.
8871         * modules/uninorm/decomposition-tests: New file.
8872
8873         New module 'uninorm/decomposition'.
8874         * lib/uninorm/decomposition.c: New file.
8875         * modules/uninorm/decomposition: New file.
8876
8877         New module 'uninorm/decomposition-table'.
8878         * lib/uninorm/decomposition-table.h: New file.
8879         * lib/uninorm/decomposition-table.c: New file.
8880         * lib/uninorm/decomposition-table1.h: New file, generated by
8881         gen-uni-tables.
8882         * lib/uninorm/decomposition-table2.h: New file, generated by
8883         gen-uni-tables.
8884         * modules/uninorm/decomposition-table: New file.
8885
8886         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
8887         (UC_DECOMP_*): New enumeration items.
8888         (get_decomposition): New function.
8889         (struct decomp_table): New type.
8890         (output_decomposition, output_decomposition_tables): New functions.
8891         (unicode_composition_exclusions): New variable.
8892         (fill_composition_exclusions, debug_output_composition_tables): New
8893         functions.
8894         (main): Accept one more argument. Invoke fill_composition_exclusions.
8895         Output decomposition and composition tables.
8896
8897         New module 'uninorm/base'.
8898         * lib/uninorm.h: New file.
8899         * lib/unictype.h: Update comment.
8900         * modules/uninorm/base: New file.
8901
8902 2009-02-21  David Lutterkort  <lutter@redhat.com>
8903
8904         Tests for module 'safe-alloc'.
8905         * tests/test-safe-alloc.c: New file.
8906         * modules/safe-alloc-tests: New file.
8907
8908         New module 'safe-alloc'.
8909         * lib/safe-alloc.h: New file.
8910         * lib/safe-alloc.c: New file.
8911         * m4/safe-alloc.m4: New file.
8912         * modules/safe-alloc: New file.
8913         * doc/safe-alloc.texi: New file.
8914         * doc/gnulib.texi: Include it.
8915         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
8916         safe-alloc.
8917
8918 2009-02-18  Bruno Haible  <bruno@clisp.org>
8919
8920         Fix link error on non-glibc systems.
8921         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
8922         variable.
8923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8924
8925 2009-02-18  Jim Meyering  <meyering@redhat.com>
8926
8927         fts: avoid used-uninitialized error due to recent change
8928         * lib/fts.c (fts_read): Guard uses of the new member,
8929         parent->fts_n_dirs_remaining, since it's not relevant for
8930         the parent of a directory specified on the command-line.
8931
8932 2009-02-17  James Youngman  <jay@gnu.org>
8933             Bruno Haible  <bruno@clisp.org>
8934
8935         * m4/include_next.m4: Reformulate comment.
8936
8937 2009-02-16  Jim Meyering  <meyering@redhat.com>
8938
8939         fts: add #if guards so that the fts_lgpl module still builds
8940         * lib/fts.c: Guard just-added hash-table-using parts with
8941         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
8942         Reported by Simon Josefsson.
8943
8944 2009-02-15  Bruno Haible  <bruno@clisp.org>
8945
8946         * modules/array-mergesort-tests: New file.
8947         * tests/test-array-mergesort.c: New file.
8948
8949         New module 'array-mergesort'.
8950         * modules/array-mergesort: New file.
8951         * lib/array-mergesort.h: New file.
8952
8953 2009-02-15  Bruno Haible  <bruno@clisp.org>
8954
8955         Fix 2009-02-07 commit.
8956         * lib/gen-uni-tables.c (output_predicate, output_category,
8957         output_combclass, output_bidi_category, output_decimal_digit,
8958         output_digit, output_numeric, output_mirror, output_scripts,
8959         output_ident_category, output_simple_mapping): Fix format directives.
8960         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
8961
8962 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
8963
8964         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
8965         fixes are available from IBM.
8966
8967 2009-02-13  Jim Meyering  <meyering@redhat.com>
8968
8969         fts: arrange not to stat non-directories in more cases
8970         This makes GNU find (when it doesn't need to stat each file)
8971         *much* more efficient at traversing reiserfs file systems.
8972         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
8973         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
8974         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
8975         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
8976         (leaf_optimization_applies): New function.
8977         (LCO_hash, LCO_compare): New helper functions.
8978         (link_count_optimize_ok): New function.
8979         (fts_stat): Initialize new member (if dir).
8980         (fts_read): Decrement parent's fts_n_dirs_remaining count if
8981         we've just stat'ed a directory.  Skip the stat call when possible.
8982         ---
8983         Note this AFS-related exchange:
8984         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
8985         and note find's pioctl call in find/fstype.c.
8986         But that is necessary only if you want to enable the
8987         optimization for AFS, and for now, I don't.
8988
8989         fts: move a function definition "up" (no semantic change)
8990         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
8991         "up" to precede upcoming use of a related function.
8992
8993 2009-02-11  Jim Meyering  <meyering@redhat.com>
8994
8995         fts: correct internal computation of nlinks (optimization-related)
8996         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
8997         whether the current entry is a directory, so don't test it.
8998
8999 2009-02-10  Bruno Haible  <bruno@clisp.org>
9000
9001         Tests for module 'uniwbrk/ulc-wordbreaks'.
9002         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
9003         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
9004         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
9005
9006         Tests for module 'uniwbrk/u32-wordbreaks'.
9007         * modules/uniwbrk/u32-wordbreaks-tests: New file.
9008         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
9009
9010         Tests for module 'uniwbrk/u16-wordbreaks'.
9011         * modules/uniwbrk/u16-wordbreaks-tests: New file.
9012         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
9013
9014         Tests for module 'uniwbrk/u8-wordbreaks'.
9015         * modules/uniwbrk/u8-wordbreaks-tests: New file.
9016         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
9017
9018 2009-02-10  Bruno Haible  <bruno@clisp.org>
9019
9020         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
9021         property.
9022         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
9023         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
9024         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
9025
9026 2009-02-10  Simon Josefsson  <simon@josefsson.org>
9027
9028         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
9029         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
9030
9031 2009-02-10  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
9034         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
9035         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
9036         * lib/unilbrk/u8-possible-linebreaks.c: Update.
9037         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
9038         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
9039
9040 2009-02-09  Simon Josefsson  <simon@josefsson.org>
9041
9042         * lib/sockets.h (gl_fd_to_handle): New function.
9043
9044         * tests/test-sockets.c: Call gl_fd_to_handle.
9045
9046 2009-02-09  Bruno Haible  <bruno@clisp.org>
9047
9048         * doc/havelib.texi: Document the conventions on bi-arch systems.
9049
9050 2009-02-08  Bruno Haible  <bruno@clisp.org>
9051
9052         Document the AC_LIB_LINKFLAGS macro.
9053         * doc/havelib.texi: New file, mostly written on 2005-05-24.
9054         * doc/gnulib.texi: Include it.
9055
9056 2009-02-08  Bruno Haible  <bruno@clisp.org>
9057
9058         Fix wrong order of sections, compared to TOC.
9059         * doc/gnulib.texi: Include relocatable-maint.texi after the
9060         "Regular expressions" node, not before.
9061
9062 2009-02-08  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'unicase/totitle'.
9065         * modules/unicase/totitle-tests: New file.
9066
9067         Tests for module 'unicase/tolower'.
9068         * modules/unicase/tolower-tests: New file.
9069
9070         Tests for module 'unicase/toupper'.
9071         * modules/unicase/toupper-tests: New file.
9072         * tests/unicase/test-mapping-part1.h: New file.
9073         * tests/unicase/test-mapping-part2.h: New file.
9074
9075         New module 'unicase/totitle'.
9076         * modules/unicase/totitle: New file.
9077         * lib/unicase/totitle.c: New file.
9078
9079         New module 'unicase/tolower'.
9080         * modules/unicase/tolower: New file.
9081         * lib/unicase/tolower.c: New file.
9082
9083         New module 'unicase/toupper'.
9084         * modules/unicase/toupper: New file.
9085         * lib/unicase/toupper.c: New file.
9086         * lib/unicase/simple-mapping.h: New file.
9087
9088         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
9089         (mapping_table): New structure.
9090         (output_simple_mapping): New function.
9091         (main): Invoke output_simple_mapping_test and output_simple_mapping.
9092         * modules/gen-uni-tables (Description): Update.
9093         * lib/unicase/toupper.h: New file, automatically generated by
9094         gen-uni-tables.
9095         * lib/unicase/tolower.h: New file, automatically generated by
9096         gen-uni-tables.
9097         * lib/unicase/totitle.h: New file, automatically generated by
9098         gen-uni-tables.
9099         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
9100         gen-uni-tables.
9101         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
9102         gen-uni-tables.
9103         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
9104         gen-uni-tables.
9105
9106         New module 'unicase/base'.
9107         * modules/unicase/base: New file.
9108         * lib/unicase.h: New file.
9109
9110 2009-02-08  Bruno Haible  <bruno@clisp.org>
9111
9112         New module 'uniwbrk/ulc-wordbreaks'.
9113         * modules/uniwbrk/ulc-wordbreaks: New file.
9114         * lib/uniwbrk/ulc-wordbreaks.c: New file.
9115
9116         New module 'uniwbrk/u32-wordbreaks'.
9117         * modules/uniwbrk/u32-wordbreaks: New file.
9118         * lib/uniwbrk/u32-wordbreaks.c: New file.
9119
9120         New module 'uniwbrk/u16-wordbreaks'.
9121         * modules/uniwbrk/u16-wordbreaks: New file.
9122         * lib/uniwbrk/u16-wordbreaks.c: New file.
9123
9124         New module 'uniwbrk/u8-wordbreaks'.
9125         * modules/uniwbrk/u8-wordbreaks: New file.
9126         * lib/uniwbrk/u8-wordbreaks.c: New file.
9127         * lib/uniwbrk/u-wordbreaks.h: New file.
9128
9129         New module 'uniwbrk/table'.
9130         * modules/uniwbrk/table: New file.
9131         * lib/uniwbrk/wbrktable.h: New file.
9132         * lib/uniwbrk/wbrktable.c: New file.
9133
9134         New module 'uniwbrk/wordbreak-property'.
9135         * modules/uniwbrk/wordbreak-property: New file.
9136         * lib/uniwbrk/wordbreak-property.c: New file.
9137
9138         * lib/gen-uni-tables.c (WBP_*): New enum items.
9139         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
9140         (unicode_org_wbp): New variable.
9141         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
9142         New functions.
9143         (wbp_table): New structure.
9144         (output_wbp, output_wbrk_tables): New functions.
9145         (main): Accept additional argument. Invoke fill_org_wbp,
9146         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
9147         output_wbrk_tables.
9148         * modules/gen-uni-tables (Description): Update.
9149         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
9150         gen-uni-tables.
9151
9152         New module 'uniwbrk/base'.
9153         * modules/uniwbrk/base: New file.
9154         * lib/uniwbrk.h: New file.
9155
9156 2009-02-08  Bruno Haible  <bruno@clisp.org>
9157
9158         Update to Unicode 5.1.0.
9159         * lib/gen-uni-tables.c (is_property_alphabetic): Include
9160         U+2185..U+2188.
9161         (is_property_default_ignorable_code_point): Don't include characters
9162         of category Cc or Cs and not-a-characters.
9163         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
9164         U+0D79, U+109E, U+109F, U+A60C.
9165         * lib/unictype/bidi_of.h: Regenerated.
9166         * lib/unictype/blocks.h: Regenerated.
9167         * lib/unictype/categ_C.h: Regenerated.
9168         * lib/unictype/categ_Cf.h: Regenerated.
9169         * lib/unictype/categ_Cn.h: Regenerated.
9170         * lib/unictype/categ_L.h: Regenerated.
9171         * lib/unictype/categ_Ll.h: Regenerated.
9172         * lib/unictype/categ_Lm.h: Regenerated.
9173         * lib/unictype/categ_Lo.h: Regenerated.
9174         * lib/unictype/categ_Lu.h: Regenerated.
9175         * lib/unictype/categ_M.h: Regenerated.
9176         * lib/unictype/categ_Mc.h: Regenerated.
9177         * lib/unictype/categ_Me.h: Regenerated.
9178         * lib/unictype/categ_Mn.h: Regenerated.
9179         * lib/unictype/categ_N.h: Regenerated.
9180         * lib/unictype/categ_Nd.h: Regenerated.
9181         * lib/unictype/categ_Nl.h: Regenerated.
9182         * lib/unictype/categ_No.h: Regenerated.
9183         * lib/unictype/categ_P.h: Regenerated.
9184         * lib/unictype/categ_Pd.h: Regenerated.
9185         * lib/unictype/categ_Pe.h: Regenerated.
9186         * lib/unictype/categ_Pf.h: Regenerated.
9187         * lib/unictype/categ_Pi.h: Regenerated.
9188         * lib/unictype/categ_Po.h: Regenerated.
9189         * lib/unictype/categ_Ps.h: Regenerated.
9190         * lib/unictype/categ_S.h: Regenerated.
9191         * lib/unictype/categ_Sk.h: Regenerated.
9192         * lib/unictype/categ_Sm.h: Regenerated.
9193         * lib/unictype/categ_So.h: Regenerated.
9194         * lib/unictype/categ_of.h: Regenerated.
9195         * lib/unictype/combining.h: Regenerated.
9196         * lib/unictype/ctype_alnum.h: Regenerated.
9197         * lib/unictype/ctype_alpha.h: Regenerated.
9198         * lib/unictype/ctype_graph.h: Regenerated.
9199         * lib/unictype/ctype_lower.h: Regenerated.
9200         * lib/unictype/ctype_print.h: Regenerated.
9201         * lib/unictype/ctype_punct.h: Regenerated.
9202         * lib/unictype/ctype_upper.h: Regenerated.
9203         * lib/unictype/decdigit.h: Regenerated.
9204         * lib/unictype/digit.h: Regenerated.
9205         * lib/unictype/mirror.h: Regenerated.
9206         * lib/unictype/numeric.h: Regenerated.
9207         * lib/unictype/pr_alphabetic.h: Regenerated.
9208         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
9209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
9210         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
9211         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
9212         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
9213         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
9214         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
9215         * lib/unictype/pr_combining.h: Regenerated.
9216         * lib/unictype/pr_dash.h: Regenerated.
9217         * lib/unictype/pr_decimal_digit.h: Regenerated.
9218         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
9219         * lib/unictype/pr_deprecated.h: Regenerated.
9220         * lib/unictype/pr_diacritic.h: Regenerated.
9221         * lib/unictype/pr_extender.h: Regenerated.
9222         * lib/unictype/pr_format_control.h: Regenerated.
9223         * lib/unictype/pr_grapheme_base.h: Regenerated.
9224         * lib/unictype/pr_grapheme_extend.h: Regenerated.
9225         * lib/unictype/pr_grapheme_link.h: Regenerated.
9226         * lib/unictype/pr_id_continue.h: Regenerated.
9227         * lib/unictype/pr_id_start.h: Regenerated.
9228         * lib/unictype/pr_ideographic.h: Regenerated.
9229         * lib/unictype/pr_ignorable_control.h: Regenerated.
9230         * lib/unictype/pr_lowercase.h: Regenerated.
9231         * lib/unictype/pr_math.h: Regenerated.
9232         * lib/unictype/pr_numeric.h: Regenerated.
9233         * lib/unictype/pr_other_alphabetic.h: Regenerated.
9234         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
9235         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
9236         * lib/unictype/pr_other_id_continue.h: Regenerated.
9237         * lib/unictype/pr_other_lowercase.h: Regenerated.
9238         * lib/unictype/pr_other_math.h: Regenerated.
9239         * lib/unictype/pr_punctuation.h: Regenerated.
9240         * lib/unictype/pr_sentence_terminal.h: Regenerated.
9241         * lib/unictype/pr_soft_dotted.h: Regenerated.
9242         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
9243         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
9244         * lib/unictype/pr_unified_ideograph.h: Regenerated.
9245         * lib/unictype/pr_uppercase.h: Regenerated.
9246         * lib/unictype/pr_xid_continue.h: Regenerated.
9247         * lib/unictype/pr_xid_start.h: Regenerated.
9248         * lib/unictype/pr_zero_width.h: Regenerated.
9249         * lib/unictype/scripts.h: Regenerated.
9250         * lib/unictype/scripts_byname.gperf: Regenerated.
9251         * lib/unictype/sy_java_ident.h: Regenerated.
9252         * lib/unilbrk/lbrkprop1.h: Regenerated.
9253         * lib/unilbrk/lbrkprop2.h: Regenerated.
9254         * tests/unictype/test-categ_C.c: Regenerated.
9255         * tests/unictype/test-categ_Cf.c: Regenerated.
9256         * tests/unictype/test-categ_Cn.c: Regenerated.
9257         * tests/unictype/test-categ_L.c: Regenerated.
9258         * tests/unictype/test-categ_Ll.c: Regenerated.
9259         * tests/unictype/test-categ_Lm.c: Regenerated.
9260         * tests/unictype/test-categ_Lo.c: Regenerated.
9261         * tests/unictype/test-categ_Lu.c: Regenerated.
9262         * tests/unictype/test-categ_M.c: Regenerated.
9263         * tests/unictype/test-categ_Mc.c: Regenerated.
9264         * tests/unictype/test-categ_Me.c: Regenerated.
9265         * tests/unictype/test-categ_Mn.c: Regenerated.
9266         * tests/unictype/test-categ_N.c: Regenerated.
9267         * tests/unictype/test-categ_Nd.c: Regenerated.
9268         * tests/unictype/test-categ_Nl.c: Regenerated.
9269         * tests/unictype/test-categ_No.c: Regenerated.
9270         * tests/unictype/test-categ_P.c: Regenerated.
9271         * tests/unictype/test-categ_Pd.c: Regenerated.
9272         * tests/unictype/test-categ_Pe.c: Regenerated.
9273         * tests/unictype/test-categ_Pf.c: Regenerated.
9274         * tests/unictype/test-categ_Pi.c: Regenerated.
9275         * tests/unictype/test-categ_Po.c: Regenerated.
9276         * tests/unictype/test-categ_Ps.c: Regenerated.
9277         * tests/unictype/test-categ_S.c: Regenerated.
9278         * tests/unictype/test-categ_Sk.c: Regenerated.
9279         * tests/unictype/test-categ_Sm.c: Regenerated.
9280         * tests/unictype/test-categ_So.c: Regenerated.
9281         * tests/unictype/test-ctype_alnum.c: Regenerated.
9282         * tests/unictype/test-ctype_alpha.c: Regenerated.
9283         * tests/unictype/test-ctype_graph.c: Regenerated.
9284         * tests/unictype/test-ctype_lower.c: Regenerated.
9285         * tests/unictype/test-ctype_print.c: Regenerated.
9286         * tests/unictype/test-ctype_punct.c: Regenerated.
9287         * tests/unictype/test-ctype_upper.c: Regenerated.
9288         * tests/unictype/test-decdigit.h: Regenerated.
9289         * tests/unictype/test-digit.h: Regenerated.
9290         * tests/unictype/test-numeric.h: Regenerated.
9291         * tests/unictype/test-pr_alphabetic.c: Regenerated.
9292         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
9293         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
9294         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
9295         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
9296         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
9297         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
9298         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
9299         * tests/unictype/test-pr_combining.c: Regenerated.
9300         * tests/unictype/test-pr_dash.c: Regenerated.
9301         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
9302         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
9303         * tests/unictype/test-pr_deprecated.c: Regenerated.
9304         * tests/unictype/test-pr_diacritic.c: Regenerated.
9305         * tests/unictype/test-pr_extender.c: Regenerated.
9306         * tests/unictype/test-pr_format_control.c: Regenerated.
9307         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
9308         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
9309         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
9310         * tests/unictype/test-pr_id_continue.c: Regenerated.
9311         * tests/unictype/test-pr_id_start.c: Regenerated.
9312         * tests/unictype/test-pr_ideographic.c: Regenerated.
9313         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
9314         * tests/unictype/test-pr_lowercase.c: Regenerated.
9315         * tests/unictype/test-pr_math.c: Regenerated.
9316         * tests/unictype/test-pr_numeric.c: Regenerated.
9317         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
9318         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
9319         Regenerated.
9320         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
9321         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
9322         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
9323         * tests/unictype/test-pr_other_math.c: Regenerated.
9324         * tests/unictype/test-pr_punctuation.c: Regenerated.
9325         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
9326         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
9327         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
9328         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
9329         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
9330         * tests/unictype/test-pr_uppercase.c: Regenerated.
9331         * tests/unictype/test-pr_xid_continue.c: Regenerated.
9332         * tests/unictype/test-pr_xid_start.c: Regenerated.
9333         * tests/unictype/test-pr_zero_width.c: Regenerated.
9334
9335         Update to Unicode 5.1.0.
9336         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
9337         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
9338         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
9339         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
9340         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
9341         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
9342         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
9343         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
9344         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
9345         (nonspacing_table_ind): Update.
9346         * tests/uniwidth/test-uc_width2.sh: Update expected result.
9347
9348         Update to Unicode 5.1.0.
9349         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
9350         code transform.
9351         * lib/uniname/uniname.c (unicode_character_name,
9352         unicode_name_character): Add the range 0x1Fxxx to the code transform.
9353         * lib/uniname/uninames.h: Regenerated.
9354         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
9355
9356 2009-02-07  Bruno Haible  <bruno@clisp.org>
9357
9358         Merge gen-ctype and gen-lbrk into a single program.
9359         * lib/gen-uni-tables.c: New file, incorporating
9360         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
9361         Add directory prefixes to the names of the generated files.
9362         * lib/unictype/gen-ctype.c: Remove file.
9363         * lib/unilbrk/gen-lbrk.c: Remove file.
9364         * modules/gen-uni-tables: New file.
9365         * modules/unictype/gen-ctype: Remove file.
9366         * modules/unilbrk/gen-lbrk: Remove file.
9367
9368 2009-02-07  Bruno Haible  <bruno@clisp.org>
9369
9370         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
9371
9372         New module 'unistr/u32-strcoll'.
9373         * modules/unistr/u32-strcoll: New file.
9374         * lib/unistr/u32-strcoll.c: New file.
9375
9376         New module 'unistr/u16-strcoll'.
9377         * modules/unistr/u16-strcoll: New file.
9378         * lib/unistr/u16-strcoll.c: New file.
9379
9380         New module 'unistr/u8-strcoll'.
9381         * modules/unistr/u8-strcoll: New file.
9382         * lib/unistr/u8-strcoll.c: New file.
9383         * lib/unistr/u-strcoll.h: New file.
9384
9385 2009-02-07  Bruno Haible  <bruno@clisp.org>
9386
9387         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
9388         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
9389         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
9390         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
9391         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
9392         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
9393
9394 2009-02-07  Bruno Haible  <bruno@clisp.org>
9395
9396         Make 64-bit clean.
9397         * lib/unictype/gen-ctype.c (output_predicate, output_category,
9398         output_combclass, output_bidi_category, output_decimal_digit,
9399         output_digit, output_numeric, output_mirror, output_scripts,
9400         output_ident_category): Use proper width specifier in format strings.
9401
9402 2009-02-07  Bruno Haible  <bruno@clisp.org>
9403
9404         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
9405         failure behaviour.
9406
9407 2009-02-07  Jim Meyering  <meyering@redhat.com>
9408
9409         regex: avoid compilation failure with upcoming gcc-4.4
9410         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
9411         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
9412         "... error: integer overflow in preprocessor expression".
9413
9414 2009-02-05  Ben Pfaff  <blp@gnu.org>
9415
9416         Fix link errors on Windows when close module is used.
9417         * modules/close: Add $(LIB_CLOSE) to Link section.
9418         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
9419         $(LIB_CLOSE) on Windows.
9420
9421 2009-02-05  Jim Meyering  <meyering@redhat.com>
9422
9423         still avoid unused-parameter warnings, but do it cleanly
9424         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
9425         (get_fs_usage): Cast to void instead.
9426         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
9427         (dev_from_mount_options, read_file_system_list): Cast to void.
9428         Prompted by Bruno Haible.
9429
9430 2009-02-04  Jim Meyering  <meyering@redhat.com>
9431
9432         fsusage.c: correct copyright year
9433         * lib/fsusage.c: Reflect year in which the change is pushed into
9434
9435         avoid misc. warnings
9436         * lib/fsusage.c (UNUSED_PARAM): Define.
9437         (get_fs_usage): Mark parameter "disk" as unused.
9438         * lib/getugroups.c (getgrent): Use "void" in prototype.
9439         * lib/mountlist.c: Mark unused parameters.
9440         (read_file_system_list): Declare a local with "const".
9441         * lib/nanosleep.c (getnow): Declare static.
9442         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
9443
9444         dirfd: set errno upon failure
9445         * lib/dirfd.c: Include <errno.h>.
9446         Set errno to ENOTSUP when returning -1.
9447         * modules/dirfd (Depends-on): Add errno.
9448         Suggested by John Kodis <kodis@comcast.net>.
9449
9450 2009-02-01  Bruno Haible  <bruno@clisp.org>
9451
9452         Don't assume sizeof (long) >= sizeof (void *).
9453         * lib/memcmp.c: Include stdint.h.
9454         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
9455         srcp2 to 'const byte *'.
9456         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
9457         types to uintptr_t.
9458         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
9459         * modules/memcmp (Depends-on): Add stdint.
9460         Reported by Ozkan Sezer <sezeroz@gmail.com>.
9461
9462 2009-01-30  Eric Blake  <ebb9@byu.net>
9463
9464         fix more require-before-expand issues
9465         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
9466         expand, AC_PROG_AWK.
9467         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
9468
9469 2009-01-28  Eric Blake  <ebb9@byu.net>
9470
9471         version-etc: use consistent URL formatting
9472         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
9473         Improve formatting.  Use fputs for string without %.
9474
9475 2009-01-28  Jim Meyering  <meyering@redhat.com>
9476
9477         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
9478         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
9479         "underquoted definition of NAME" from autoconf-2.59.
9480
9481 2009-01-28  Bruno Haible  <bruno@clisp.org>
9482
9483         * doc/gnulib.texi: Add "Obsolete modules" to index.
9484
9485 2009-01-28  Jim Meyering  <meyering@redhat.com>
9486
9487         useless-if-before-free: recognize more variants
9488         * build-aux/useless-if-before-free: Also recognize e.g.,
9489         if (NULL != p) free (p);
9490
9491 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
9492
9493         test-getaddrinfo: skip (don't fail) this test when there's no network
9494         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
9495         on the presumption that it means you lack network access.
9496
9497 2009-01-26  Jim Meyering  <meyering@redhat.com>
9498
9499         fflush: avoid warnings on modern systems
9500         * lib/fflush.c (rpl_fflush): Move declarations of locals,
9501         pos and result, into scopes where they're used.
9502
9503 2009-01-26  Eric Blake  <ebb9@byu.net>
9504
9505         Silence warning reintroduced by recent extensions patch.
9506         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
9507         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
9508         autoconf.
9509
9510         Backport improved autoconf semantics of AC_DEFUN_ONCE.
9511         * m4/00gnulib.m4: New file.
9512         * gnulib-tool (func_get_filelist): Always use it.
9513         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
9514         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
9515
9516 2009-01-25  Bruno Haible  <bruno@clisp.org>
9517
9518         Make test-quotearg work on MacOS X and AIX.
9519         * tests/test-quotearg.sh: New file.
9520         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
9521         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
9522         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
9523         include <libintl.h>.
9524         (fake_locale): Remove variable.
9525         (gettext, dgettext, dcgettext): Remove functions.
9526         (main): Instead of setting a fake locale, set a real locale. Call
9527         textdomain and bindtextdomain.
9528         * modules/quotearg-tests (Files): Add the new files.
9529         (Depends-on): Add gettext, setenv, unsetenv.
9530         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
9531         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
9532         Augment TESTS_ENVIRONMENT.
9533
9534 2009-01-25  Bruno Haible  <bruno@clisp.org>
9535
9536         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
9537         fr_FR.ISO8859-1 locale on MacOS X.
9538         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
9539         ja_JP.eucJP locale on MacOS X.
9540         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
9541         zh_CN.GB18030 locale on MacOS X.
9542
9543 2009-01-25  Bruno Haible  <bruno@clisp.org>
9544
9545         Avoid link errors on MacOS X 10.3.
9546         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
9547         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
9548
9549 2009-01-25  Bruno Haible  <bruno@clisp.org>
9550
9551         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
9552         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
9553         * modules/pipe (Files): Remove m4/posix_spawn.m4.
9554         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
9555         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
9556         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
9557         posix_spawnattr_init, posix_spawnattr_setsigmask,
9558         posix_spawnattr_setflags, posix_spawnattr_destroy.
9559
9560         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
9561         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
9562         * modules/execute (Files): Remove m4/posix_spawn.m4.
9563         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
9564         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
9565         posix_spawnattr_init, posix_spawnattr_setsigmask,
9566         posix_spawnattr_setflags, posix_spawnattr_destroy.
9567
9568 2009-01-25  Bruno Haible  <bruno@clisp.org>
9569
9570         * lib/glthread/threadlib.c: Include <stdlib.h>.
9571
9572 2009-01-25  Bruno Haible  <bruno@clisp.org>
9573
9574         * lib/glthread/threadlib.c (dummy): New declaration.
9575
9576 2009-01-25  Bruno Haible  <bruno@clisp.org>
9577
9578         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
9579         multibyte characters also for the GB18030 encoding. Don't crash when
9580         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
9581
9582 2009-01-25  Bruno Haible  <bruno@clisp.org>
9583
9584         Avoid redefining 'struct random_data' on OSF/1 5.1.
9585         * lib/stdlib.in.h: Include <random.h> if it exists.
9586         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
9587         HAVE_RANDOM_H. Include <random.h> when testing whether
9588         'struct random_data' exists.
9589         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
9590
9591 2009-01-25  Bruno Haible  <bruno@clisp.org>
9592
9593         Don't install charset.alias on MacOS X >= 10.3.
9594         * lib/localcharset.c (DARWIN7): New macro.
9595         (get_charset_aliases): Hardcode the result for Darwin7.
9596         * modules/localcharset (install-exec-local): Don't install
9597         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
9598
9599 2009-01-25  Bruno Haible  <bruno@clisp.org>
9600
9601         Don't install charset.alias on mingw and Cygwin.
9602         * modules/localcharset (install-exec-local): Don't install
9603         charset.alias on mingw and Cygwin, if the file does not yet exist.
9604         The result for these platforms is hardcoded in localcharset.c.
9605
9606 2009-01-25  Bruno Haible  <bruno@clisp.org>
9607
9608         Make it possible again to use AC_GNU_SOURCE together with gnulib.
9609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
9610         before requiring AC_USE_SYSTEM_EXTENSIONS.
9611
9612 2009-01-25  Jim Meyering  <meyering@redhat.com>
9613
9614         c-strtod: avoid warnings
9615         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
9616         "assignment discards qualifiers from pointer target type" warnings.
9617
9618 2009-01-24  Bruno Haible  <bruno@clisp.org>
9619
9620         Add support for non-UTF-8 locales on MacOS X.
9621         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
9622         canonical encodings. For Darwin 7 and newer, don't map traditional
9623         encodings to UTF-8.
9624         Reported by Vincent Lefevre <vincent@vinc17.org>
9625         at <http://savannah.gnu.org/bugs/?25235>.
9626
9627 2009-01-24  Bruno Haible  <bruno@clisp.org>
9628
9629         * doc/gnulib.texi (Obsolete modules): New section.
9630         Reported by Mike Frysinger <vapier@gentoo.org>.
9631
9632 2009-01-24  Bruno Haible  <bruno@clisp.org>
9633
9634         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
9635         (%.dvi): New rule.
9636
9637 2009-01-24  Bruno Haible  <bruno@clisp.org>
9638
9639         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
9640         Reported by Eric Blake.
9641
9642 2009-01-24  Bruno Haible  <bruno@clisp.org>
9643
9644         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
9645         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
9646         Reported by Gary V. Vaughan <gary@gnu.org>.
9647
9648 2009-01-24  Bruno Haible  <bruno@clisp.org>
9649
9650         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
9651
9652 2009-01-23  Bruno Haible  <bruno@clisp.org>
9653
9654         Make c-strtod, c-strtold usable in libraries.
9655         * lib/c-strtod.c: Include string.h instead of xalloc.h.
9656         (C_STRTOD): Call strdup instead of xstrdup.
9657         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
9658         * modules/c-strtold (Depends-on): Likewise.
9659         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
9660         * NEWS: Mention the change.
9661         Reported by Michael Gold <mgold@ncf.ca>.
9662
9663 2009-01-23  Jim Meyering  <meyering@redhat.com>
9664
9665         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
9666         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
9667         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
9668
9669 2009-01-23  Simon Josefsson  <simon@josefsson.org>
9670
9671         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
9672         GNU CoreUtils.
9673         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
9674         * modules/version-etc (Description): Update.
9675
9676 2009-01-22  Bruno Haible  <bruno@clisp.org>
9677
9678         Cache the C locale object.
9679         * lib/c-strtod.c (c_locale_cache): New variable.
9680         (c_locale): New function.
9681         (C_STRTOD): Use it, and don't call freelocale.
9682         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
9683         Suggested by Paolo Bonzini.
9684
9685 2009-01-21  Bruno Haible  <bruno@clisp.org>
9686
9687         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
9688         conditions other than overflow.
9689
9690 2009-01-21  Bruno Haible  <bruno@clisp.org>
9691
9692         * lib/c-strtod.c: Include errno.h.
9693         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
9694         value from STRTOD_L and STRTOD.
9695
9696 2009-01-21  Bruno Haible  <bruno@clisp.org>
9697         and Jim Meyering  <meyering@redhat.com>
9698
9699         nanosleep: skip configure test (fail it) for apple universal builds
9700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
9701         universal builds, assume that nanosleep does not work.
9702         * modules/nanosleep (Depends-on): Add multiarch.
9703
9704         mktime: skip configure test (fail it) for apple universal builds
9705         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
9706         universal builds, assume that mktime does not work.
9707         * modules/mktime (Depends-on): Add multiarch.
9708
9709 2009-01-21  Eric Blake  <ebb9@byu.net>
9710
9711         multiarch: avoid expand-before-require warning
9712         * modules/multiarch (configure.ac): Require, rather than expand,
9713         gl_MULTIARCH.
9714         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
9715         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
9716         enforce that all clients require it.  Partial reversion of
9717         2008-12-29 patch.
9718
9719         error: avoid expand-before-require warning
9720         * modules/errno (configure.ac): Require, rather than expand,
9721         gl_HEADER_ERRNO_H.
9722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
9723         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
9724         enforce that all clients require it.
9725
9726         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
9727         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
9728         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
9729         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
9730
9731 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
9732
9733         Revert:
9734         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
9735
9736         regex: do not depend on obsolete modules.
9737         * modules/regex: Remove memcmp and memmove.
9738
9739 2009-01-20  Bruno Haible  <bruno@clisp.org>
9740
9741         Make the 'link' module link on Windows NT 4.
9742         * lib/link.c (_WIN32_WINNT): Don't define.
9743         (CreateHardLinkFuncType): New type.
9744         (CreateHardLinkFunc, initialized): New variables.
9745         (initialize): New function.
9746         (link): Invoke CreateHardLink indirectly through the function pointer.
9747
9748 2009-01-20  Bruno Haible  <bruno@clisp.org>
9749
9750         Fix compilation failure on mingw.
9751         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
9752
9753 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
9754
9755         * doc/c-strtod.texi: Mention a couple of restrictions.
9756
9757 2009-01-20  Jim Meyering  <meyering@redhat.com>
9758
9759         gettimeofday: move more declarations out of functions
9760         * lib/gettimeofday.c: Move extern declarations of tzset and
9761         gmtime out of containing functions.  Prompted by Bruno Haible.
9762
9763 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
9764
9765         regex: do not depend on obsolete modules.
9766         * modules/regex: Remove memcmp and memmove.
9767
9768 2009-01-19  Bruno Haible  <bruno@clisp.org>
9769
9770         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
9771         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
9772         gl_BIGENDIAN, not AC_C_BIGENDIAN.
9773         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
9774         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
9775
9776 2009-01-19  Bruno Haible  <bruno@clisp.org>
9777
9778         * tests/test-link.c: Include <errno.h>.
9779         (main): Exit with code 77 when a hard link cannot be created due to
9780         the file system.
9781         * tests/test-link.sh: Skip test when a hard link cannot be created due
9782         to the file system.
9783         Suggested by Eric Blake.
9784
9785 2009-01-19  Martin Lambers  <marlam@marlam.de>
9786
9787         * modules/link-tests: New file.
9788         * tests/test-link.sh: New file.
9789         * tests/test-link.c: New file.
9790
9791 2009-01-19  Eric Blake  <ebb9@byu.net>
9792
9793         doc: mention another function added in cygwin 1.7.0
9794         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
9795         Another new function in cygwin 1.7.
9796
9797 2009-01-19  Bruno Haible  <bruno@clisp.org>
9798
9799         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
9800         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
9801         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
9802         gl_BIGENDIAN, not AC_C_BIGENDIAN.
9803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9804         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
9805         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9806         * m4/md4.m4 (gl_MD4): Likewise.
9807         * m4/md5.m4 (gl_MD5): Likewise.
9808         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
9809         * m4/sha1.m4 (gl_SHA1): Likewise.
9810         * m4/sha256.m4 (gl_SHA256): Likewise.
9811         * m4/sha512.m4 (gl_SHA512): Likewise.
9812
9813 2009-01-19  Bruno Haible  <bruno@clisp.org>
9814
9815         * modules/uniname/uniname-tests (Depends-on): Add progname.
9816         * tests/uniname/test-uninames.c: Include progname.h.
9817         (main): Call set_program_name.
9818
9819         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
9820         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
9821         (main): Call set_program_name.
9822
9823         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
9824         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
9825         (main): Call set_program_name.
9826
9827         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
9828         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
9829         (main): Call set_program_name.
9830
9831         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
9832         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
9833         (main): Call set_program_name.
9834
9835         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
9836         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
9837         (main): Call set_program_name.
9838
9839         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
9840         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
9841         (main): Call set_program_name.
9842
9843         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
9844         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
9845         (main): Call set_program_name.
9846
9847         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
9848         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
9849         (main): Call set_program_name.
9850
9851 2009-01-19  Eric Blake  <ebb9@byu.net>
9852
9853         test-unistd: test previous patch
9854         * tests/test-unistd.c: Test *_FILENO macros.
9855
9856         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
9857         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
9858         Guarantee a definition.
9859         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
9860         * modules/unistd-safer (Depends-on): Add dependency on unistd.
9861         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
9862         * lib/dup-safer.c (STDERR_FILENO): Likewise.
9863         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
9864         Likewise.
9865         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
9866         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
9867         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
9868         Likewise.
9869         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
9870         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
9871         (STDERR_FILENO): Likewise.
9872         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
9873         (STDERR_FILENO): Likewise.
9874         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
9875         (STDERR_FILENO): Likewise.
9876         Reported by Elbert Pol.
9877
9878 2009-01-19  Eric Blake  <ebb9@byu.net>
9879
9880         doc: mention more functions added in cygwin 1.7.0
9881         * doc/posix-functions/abort.texi (abort): Update wording related
9882         to cygwin.
9883         * doc/posix-functions/daylight.texi (daylight): Likewise.
9884         * doc/posix-functions/optarg.texi (optarg): Likewise.
9885         * doc/posix-functions/optarg.texi (opterr): Likewise.
9886         * doc/posix-functions/optarg.texi (optind): Likewise.
9887         * doc/posix-functions/optarg.texi (optopt): Likewise.
9888         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
9889         worked in 1.5.x, and was withdrawn in 1.7.
9890         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9891         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
9892         cygwin versions.
9893         * doc/posix-functions/perror.texi (perror): Likewise.
9894         * doc/posix-functions/printf.texi (printf): Likewise.
9895         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
9896         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
9897         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9898         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9899         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9900         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
9901         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9902         Likewise.
9903         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9904         Likewise.
9905         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
9906         this function.
9907         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
9908         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
9909         Likewise.
9910         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
9911         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
9912         * doc/posix-functions/confstr.texi (confstr): Likewise.
9913         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
9914         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
9915         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
9916         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
9917         * doc/posix-functions/fputws.texi (fputws): Likewise.
9918         * doc/posix-functions/fwide.texi (fwide): Likewise.
9919         * doc/posix-functions/getwc.texi (getwc): Likewise.
9920         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
9921         * doc/posix-functions/putwc.texi (putwc): Likewise.
9922         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9923         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
9924         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
9925         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9926         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
9927         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
9928         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
9929         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
9930         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
9931         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
9932         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
9933
9934 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
9935
9936         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
9937         * lib/ioctl.c: Include <sys/ioctl.h>.
9938
9939 2009-01-19  Simon Josefsson  <simon@josefsson.org>
9940
9941         * modules/getdate-tests (Depends-on): Add progname.
9942         * tests/test-getdate.c: Use progname module, to avoid link errors
9943         on non-glibc systems.
9944
9945 2009-01-18  Simon Josefsson  <simon@josefsson.org>
9946
9947         * modules/filenamecat-tests (Depends-on): Add progname.
9948         * modules/fstrcmp-tests (Depends-on): Likewise.
9949
9950         * tests/test-filenamecat.c: Use progname module, to avoid link
9951         errors on non-glibc systems.
9952         * tests/test-fstrcmp.c: Likewise.
9953
9954 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
9955
9956         gettimeofday: avoid warning: nested extern declaration of 'localtime'
9957         * lib/gettimeofday.c: Move extern declaration out of function.
9958
9959 2009-01-18  Bruno Haible  <bruno@clisp.org>
9960
9961         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
9962         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
9963         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
9964
9965 2009-01-18  Bruno Haible  <bruno@clisp.org>
9966
9967         * lib/strftime.c (MEMPCPY): Remove unused macro.
9968         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
9969
9970 2009-01-18  Martin Lambers  <marlam@marlam.de>
9971
9972         New module 'link'.
9973         * lib/unistd.in.h (link): New declaration.
9974         * lib/link.c: New file.
9975         * m4/link.m4: New file.
9976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
9977         HAVE_LINK.
9978         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
9979         * modules/link: New file.
9980         * doc/posix-functions/link.texi: Mention the new module.
9981
9982 2009-01-18  Bruno Haible  <bruno@clisp.org>
9983
9984         * tests/test-avltree_list.c (main): Call set_program_name.
9985         * tests/test-avltree_oset.c (main): Likewise.
9986         * tests/test-obstack-printf.c: Include progname.h.
9987         (main): Call set_program_name.
9988         * tests/test-quotearg.c: Include progname.h.
9989         (main): Call set_program_name.
9990         * tests/test-xmemdup0.c: Include progname.h.
9991         (main): Call set_program_name.
9992
9993 2009-01-18  Bruno Haible  <bruno@clisp.org>
9994
9995         New module 'alphasort'.
9996         * lib/dirent.in.h (alphasort): New declaration.
9997         * lib/alphasort.c: New file, from glibc with modifications.
9998         * m4/alphasort.m4: New file.
9999         * modules/alphasort: New file.
10000         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
10001         HAVE_ALPHASORT.
10002         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
10003         HAVE_ALPHASORT.
10004         * doc/posix-functions/alphasort.texi: Mention the new module and the
10005         portability problems.
10006
10007 2009-01-18  Bruno Haible  <bruno@clisp.org>
10008
10009         New module 'scandir'.
10010         * lib/dirent.in.h (scandir): New declaration.
10011         * lib/scandir.c: New file, from glibc with modifications.
10012         * m4/scandir.m4: New file.
10013         * modules/scandir: New file.
10014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
10015         HAVE_SCANDIR.
10016         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
10017         HAVE_SCANDIR.
10018         * doc/posix-functions/scandir.texi: Mention the new module and the
10019         portability problems.
10020
10021 2009-01-17  Bruno Haible  <bruno@clisp.org>
10022
10023         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
10024         Update documentation.
10025         (func_remove_suffix): Escape all dots in the suffix. Update
10026         documentation.
10027         (func_filter_filelist): Update documentation.
10028         Reported by Ralf Wildenhues.
10029
10030 2009-01-17  Bruno Haible  <bruno@clisp.org>
10031
10032         * modules/dprintf-posix-tests: New file.
10033         * tests/test-dprintf-posix.sh: New file.
10034         * tests/test-dprintf-posix.c: New file.
10035
10036         New modules 'dprintf', 'dprintf-posix'.
10037         * lib/stdio.in.h (dprintf): New declaration.
10038         * lib/dprintf.c: New file.
10039         * m4/dprintf.m4: New file.
10040         * m4/dprintf-posix.m4: New file.
10041         * modules/dprintf: New file.
10042         * modules/dprintf-posix: New file.
10043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
10044         HAVE_DPRINTF, REPLACE_DPRINTF.
10045         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
10046         HAVE_DPRINTF, REPLACE_DPRINTF.
10047         * doc/posix-functions/dprintf.texi: Mention the new modules.
10048
10049 2009-01-17  Bruno Haible  <bruno@clisp.org>
10050
10051         * modules/vdprintf-posix-tests: New file.
10052         * tests/test-vdprintf-posix.sh: New file.
10053         * tests/test-vdprintf-posix.c: New file.
10054
10055         New modules 'vdprintf', 'vdprintf-posix'.
10056         * lib/stdio.in.h (vdprintf): New declaration.
10057         * lib/vdprintf.c: New file.
10058         * m4/vdprintf.m4: New file.
10059         * m4/vdprintf-posix.m4: New file.
10060         * modules/vdprintf: New file.
10061         * modules/vdprintf-posix: New file.
10062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
10063         HAVE_VDPRINTF, REPLACE_VDPRINTF.
10064         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
10065         HAVE_VDPRINTF, REPLACE_VDPRINTF.
10066         * doc/posix-functions/vdprintf.texi: Mention the new modules.
10067
10068 2009-01-17  Bruno Haible  <bruno@clisp.org>
10069
10070         Fix replacement of fopen on mingw.
10071         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
10072         mingw.
10073
10074 2009-01-17  Bruno Haible  <bruno@clisp.org>
10075
10076         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
10077         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
10078
10079 2009-01-17  Bruno Haible  <bruno@clisp.org>
10080
10081         Avoid test-fflush2.sh failure on mingw.
10082         * tests/test-fflush2.c: Include binary-io.h.
10083         (main): Put standard input into binary mode.
10084         * modules/fflush-tests (Depends-on): Add binary-io.
10085
10086 2009-01-17  Bruno Haible  <bruno@clisp.org>
10087
10088         * lib/wchar.in.h: In another particular situation, include only the
10089         system's <wchar.h> file.
10090         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
10091         Reported by Albert Chin-A-Young <china@thewrittenword.com>
10092         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
10093
10094 2009-01-17  Bruno Haible  <bruno@clisp.org>
10095
10096         Support for stripping executables in --enable-relocatable.
10097         * build-aux/install-reloc: Expect one more argument, or an environment
10098         variable RELOC_STRIP_PROG. If set, strip the destination program and
10099         its wrapper.
10100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
10101         RELOC_STRIP_PROG.
10102         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
10103         to set RELOCATABLE_STRIP.
10104         * NEWS: Mention the new Makefile requirement.
10105
10106 2009-01-17  Bruno Haible  <bruno@clisp.org>
10107
10108         * build-aux/install-reloc: Remove debugging information left over by
10109         C compiler on MacOS X.
10110
10111 2009-01-17  Bruno Haible  <bruno@clisp.org>
10112
10113         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
10114         * lib/progreloc.c (find_executable): Fix type of pointer passed to
10115         _NSGetExecutablePath.
10116
10117 2009-01-16  Jim Meyering  <meyering@redhat.com>
10118
10119         strerror: avoid warnings about discarding "const"
10120         * lib/strerror.c (rpl_strerror): Instead of returning a const
10121         string from each and every "case", use a variable, and add a single
10122         cast after the switch.
10123
10124 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
10125
10126         * lib/arpa_inet.in.h: Add extern "C" block for C++.
10127
10128 2009-01-16  Bruno Haible  <bruno@clisp.org>
10129
10130         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
10131         array initializer syntax that also works in C++ mode.
10132         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10133
10134 2009-01-16  Jim Meyering  <meyering@redhat.com>
10135
10136         poll: suppress a warning
10137         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
10138         to ignore "...unsigned expression < 0 is always false" warnings.
10139
10140 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
10141
10142         poll: remove declarations of unused variables
10143         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
10144         sockbuf and optlen.
10145
10146 2009-01-15  Bruno Haible  <bruno@clisp.org>
10147
10148         Make fflush-after-ungetc POSIX compliant on BSD systems.
10149         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
10150         (clear_ungetc_buffer): Implement also for other systems.
10151         (rpl_fflush): On glibc systems, invoke
10152         clear_ungetc_buffer_preserving_position. Otherwise, invoke
10153         clear_ungetc_buffer after fetching the stream's position, not before.
10154
10155 2009-01-15  Bruno Haible  <bruno@clisp.org>
10156
10157         Make fflush-after-ungetc POSIX compliant on glibc systems.
10158         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
10159         after ungetc.
10160         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
10161         (rpl_fflush): On glibc systems, simply call the system's fflush
10162         function after clearing the ungetc buffer.
10163         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
10164         Instead, lseek only to the end of file, then use the system's fseeko
10165         for the rest. On glibc systems, reset the EOF indicator bit.
10166
10167 2009-01-15  Jim Meyering  <meyering@redhat.com>
10168
10169         openmp.m4: revert quote-adding change, for portability to older autoconf
10170         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
10171         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
10172         Simon Josefsson noticed the problem when using autoconf-2.61.
10173
10174 2009-01-15  Bruno Haible  <bruno@clisp.org>
10175
10176         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
10177         * tests/test-fflush2.c (ASSERT): Always fail.
10178         (main): Add two tests for fflush() after ungetc(), taking into account
10179         the Austin Group's clarification.
10180         Suggested by Eric Blake.
10181
10182 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
10183
10184         mktime.m4: remove K&R-style function prototypes
10185         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
10186         for the Sun C++ compiler.
10187
10188 2009-01-14  Bruno Haible  <bruno@clisp.org>
10189
10190         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
10191         while including <wchar.h>.
10192         * lib/wchar.in.h: In two particular situations on HP-UX, include only
10193         the system's <wchar.h> file.
10194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10195
10196 2009-01-14  Bruno Haible  <bruno@clisp.org>
10197
10198         * m4/csharp.m4: Don't mention gettext on the serial number line.
10199         * m4/csharpexec.m4: Likewise.
10200         * m4/eaccess.m4: Likewise.
10201         * m4/javaexec.m4: Likewise.
10202         * m4/sig_atomic_t.m4: Likewise.
10203         * m4/tmpdir.m4: Likewise.
10204         * m4/intldir.m4: Bump gettext version.
10205         * m4/lib-ld.m4: Likewise.
10206
10207 2009-01-14  Bruno Haible  <bruno@clisp.org>
10208
10209         * lib/progname.c (set_program_name): Add more comments.
10210         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10211
10212 2009-01-14  Simon Josefsson  <simon@josefsson.org>
10213
10214         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
10215         were sys/stat.h does not define it.
10216
10217 2009-01-14  Jim Meyering  <meyering@redhat.com>
10218
10219         many *.m4 files: improve m4 quoting
10220         99% of this change was performed by running the following commands:
10221         git ls-files | grep '\.m4$' | xargs perl -pi \
10222           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
10223           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
10224           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
10225           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
10226         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
10227         The remainder were to add Copyright dates, increment serial numbers,
10228         undo some changes in comments, exclude m4/intl.m4, and add quotes
10229         around the "1" in ",1" where the unusual spacing prohibited the
10230         above regexps from doing the job.  For more details, see
10231         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
10232         * m4/acl.m4: Modified.
10233         * m4/afs.m4: Likewise.
10234         * m4/alloca.m4: Likewise.
10235         * m4/argp.m4: Likewise.
10236         * m4/argz.m4: Likewise.
10237         * m4/atexit.m4: Likewise.
10238         * m4/bison-i18n.m4: Likewise.
10239         * m4/bison.m4: Likewise.
10240         * m4/byteswap.m4: Likewise.
10241         * m4/c-stack.m4: Likewise.
10242         * m4/c-strtod.m4: Likewise.
10243         * m4/calloc.m4: Likewise.
10244         * m4/canonicalize-lgpl.m4: Likewise.
10245         * m4/chown.m4: Likewise.
10246         * m4/clock_time.m4: Likewise.
10247         * m4/codeset.m4: Likewise.
10248         * m4/copy-file.m4: Likewise.
10249         * m4/csharp.m4: Likewise.
10250         * m4/csharpcomp.m4: Likewise.
10251         * m4/csharpexec.m4: Likewise.
10252         * m4/d-ino.m4: Likewise.
10253         * m4/d-type.m4: Likewise.
10254         * m4/dirfd.m4: Likewise.
10255         * m4/double-slash-root.m4: Likewise.
10256         * m4/eaccess.m4: Likewise.
10257         * m4/eealloc.m4: Likewise.
10258         * m4/environ.m4: Likewise.
10259         * m4/errno_h.m4: Likewise.
10260         * m4/euidaccess.m4: Likewise.
10261         * m4/execute.m4: Likewise.
10262         * m4/fatal-signal.m4: Likewise.
10263         * m4/fchdir.m4: Likewise.
10264         * m4/fcntl_h.m4: Likewise.
10265         * m4/fileblocks.m4: Likewise.
10266         * m4/filenamecat.m4: Likewise.
10267         * m4/findprog.m4: Likewise.
10268         * m4/flexmember.m4: Likewise.
10269         * m4/fnmatch.m4: Likewise.
10270         * m4/fopen.m4: Likewise.
10271         * m4/fpending.m4: Likewise.
10272         * m4/fprintf-posix.m4: Likewise.
10273         * m4/free.m4: Likewise.
10274         * m4/frexp.m4: Likewise.
10275         * m4/frexpl.m4: Likewise.
10276         * m4/fsusage.m4: Likewise.
10277         * m4/ftruncate.m4: Likewise.
10278         * m4/gc-camellia.m4: Likewise.
10279         * m4/gc-random.m4: Likewise.
10280         * m4/gc.m4: Likewise.
10281         * m4/getaddrinfo.m4: Likewise.
10282         * m4/getcwd-abort-bug.m4: Likewise.
10283         * m4/getcwd-path-max.m4: Likewise.
10284         * m4/getdate.m4: Likewise.
10285         * m4/getdomainname.m4: Likewise.
10286         * m4/getgroups.m4: Likewise.
10287         * m4/gethostname.m4: Likewise.
10288         * m4/gethrxtime.m4: Likewise.
10289         * m4/getline.m4: Likewise.
10290         * m4/getloadavg.m4: Likewise.
10291         * m4/getndelim2.m4: Likewise.
10292         * m4/getpass.m4: Likewise.
10293         * m4/gettext.m4: Likewise.
10294         * m4/gettime.m4: Likewise.
10295         * m4/gettimeofday.m4: Likewise.
10296         * m4/gnulib-common.m4: Likewise.
10297         * m4/group-member.m4: Likewise.
10298         * m4/host-os.m4: Likewise.
10299         * m4/iconv.m4: Likewise.
10300         * m4/iconv_open.m4: Likewise.
10301         * m4/inet_ntop.m4: Likewise.
10302         * m4/inet_pton.m4: Likewise.
10303         * m4/inline.m4: Likewise.
10304         * m4/intldir.m4: Likewise.
10305         * m4/intlmacosx.m4: Likewise.
10306         * m4/intmax.m4: Likewise.
10307         * m4/intmax_t.m4: Likewise.
10308         * m4/inttypes.m4: Likewise.
10309         * m4/inttypes_h.m4: Likewise.
10310         * m4/inttypes-pri.m4: Likewise.
10311         * m4/isapipe.m4: Likewise.
10312         * m4/isnand.m4: Likewise.
10313         * m4/isnanf.m4: Likewise.
10314         * m4/isnanl.m4: Likewise.
10315         * m4/javacomp.m4: Likewise.
10316         * m4/javaexec.m4: Likewise.
10317         * m4/jm-winsz1.m4: Likewise.
10318         * m4/jm-winsz2.m4: Likewise.
10319         * m4/lchown.m4: Likewise.
10320         * m4/lcmessage.m4: Likewise.
10321         * m4/ldexpl.m4: Likewise.
10322         * m4/lib-ld.m4: Likewise.
10323         * m4/lib-link.m4: Likewise.
10324         * m4/libsigsegv.m4: Likewise.
10325         * m4/link-follow.m4: Likewise.
10326         * m4/localcharset.m4: Likewise.
10327         * m4/locale-fr.m4: Likewise.
10328         * m4/locale-ja.m4: Likewise.
10329         * m4/locale-tr.m4: Likewise.
10330         * m4/locale-zh.m4: Likewise.
10331         * m4/lock.m4: Likewise.
10332         * m4/longlong.m4: Likewise.
10333         * m4/ls-mntd-fs.m4: Likewise.
10334         * m4/lstat.m4: Likewise.
10335         * m4/malloc.m4: Likewise.
10336         * m4/mathl.m4: Likewise.
10337         * m4/mbrtowc.m4: Likewise.
10338         * m4/mbstate_t.m4: Likewise.
10339         * m4/mbswidth.m4: Likewise.
10340         * m4/memchr.m4: Likewise.
10341         * m4/memcmp.m4: Likewise.
10342         * m4/memcpy.m4: Likewise.
10343         * m4/memmem.m4: Likewise.
10344         * m4/memmove.m4: Likewise.
10345         * m4/mempcpy.m4: Likewise.
10346         * m4/memrchr.m4: Likewise.
10347         * m4/memset.m4: Likewise.
10348         * m4/minmax.m4: Likewise.
10349         * m4/mkdir-slash.m4: Likewise.
10350         * m4/mkdtemp.m4: Likewise.
10351         * m4/mktime.m4: Likewise.
10352         * m4/mmap-anon.m4: Likewise.
10353         * m4/mountlist.m4: Likewise.
10354         * m4/nanosleep.m4: Likewise.
10355         * m4/nls.m4: Likewise.
10356         * m4/nocrash.m4: Likewise.
10357         * m4/open.m4: Likewise.
10358         * m4/openat.m4: Likewise.
10359         * m4/openmp.m4: Likewise.
10360         * m4/pathmax.m4: Likewise.
10361         * m4/perl.m4: Likewise.
10362         * m4/physmem.m4: Likewise.
10363         * m4/pipe.m4: Likewise.
10364         * m4/po.m4: Likewise.
10365         * m4/poll.m4: Likewise.
10366         * m4/posixtm.m4: Likewise.
10367         * m4/posixver.m4: Likewise.
10368         * m4/printf-frexp.m4: Likewise.
10369         * m4/printf-frexpl.m4: Likewise.
10370         * m4/printf-posix.m4: Likewise.
10371         * m4/printf-posix-rpl.m4: Likewise.
10372         * m4/printf.m4: Likewise.
10373         * m4/progtest.m4: Likewise.
10374         * m4/putenv.m4: Likewise.
10375         * m4/readline.m4: Likewise.
10376         * m4/readlink.m4: Likewise.
10377         * m4/readutmp.m4: Likewise.
10378         * m4/realloc.m4: Likewise.
10379         * m4/regex.m4: Likewise.
10380         * m4/relocatable.m4: Likewise.
10381         * m4/relocatable-lib.m4: Likewise.
10382         * m4/rename-dest-slash.m4: Likewise.
10383         * m4/rename.m4: Likewise.
10384         * m4/rmdir-errno.m4: Likewise.
10385         * m4/rmdir.m4: Likewise.
10386         * m4/roundf.m4: Likewise.
10387         * m4/roundl.m4: Likewise.
10388         * m4/rpmatch.m4: Likewise.
10389         * m4/save-cwd.m4: Likewise.
10390         * m4/selinux-selinux-h.m4: Likewise.
10391         * m4/setenv.m4: Likewise.
10392         * m4/settime.m4: Likewise.
10393         * m4/sig2str.m4: Likewise.
10394         * m4/sig_atomic_t.m4: Likewise.
10395         * m4/signalblocking.m4: Likewise.
10396         * m4/signbit.m4: Likewise.
10397         * m4/sigpipe.m4: Likewise.
10398         * m4/sockets.m4: Likewise.
10399         * m4/sockpfaf.m4: Likewise.
10400         * m4/st_dm_mode.m4: Likewise.
10401         * m4/stat-time.m4: Likewise.
10402         * m4/stdbool.m4: Likewise.
10403         * m4/stdint.m4: Likewise.
10404         * m4/stdint_h.m4: Likewise.
10405         * m4/stpcpy.m4: Likewise.
10406         * m4/stpncpy.m4: Likewise.
10407         * m4/strcase.m4: Likewise.
10408         * m4/strchrnul.m4: Likewise.
10409         * m4/strcspn.m4: Likewise.
10410         * m4/strdup.m4: Likewise.
10411         * m4/strftime.m4: Likewise.
10412         * m4/strndup.m4: Likewise.
10413         * m4/strnlen.m4: Likewise.
10414         * m4/strpbrk.m4: Likewise.
10415         * m4/strptime.m4: Likewise.
10416         * m4/strsep.m4: Likewise.
10417         * m4/strtod.m4: Likewise.
10418         * m4/strtoimax.m4: Likewise.
10419         * m4/strtok_r.m4: Likewise.
10420         * m4/strtol.m4: Likewise.
10421         * m4/strtoll.m4: Likewise.
10422         * m4/strtoul.m4: Likewise.
10423         * m4/strtoull.m4: Likewise.
10424         * m4/strtoumax.m4: Likewise.
10425         * m4/strverscmp.m4: Likewise.
10426         * m4/threadlib.m4: Likewise.
10427         * m4/timegm.m4: Likewise.
10428         * m4/tm_gmtoff.m4: Likewise.
10429         * m4/tmpdir.m4: Likewise.
10430         * m4/tmpfile.m4: Likewise.
10431         * m4/tzset.m4: Likewise.
10432         * m4/uintmax_t.m4: Likewise.
10433         * m4/unlinkdir.m4: Likewise.
10434         * m4/unlocked-io.m4: Likewise.
10435         * m4/uptime.m4: Likewise.
10436         * m4/userspec.m4: Likewise.
10437         * m4/utimbuf.m4: Likewise.
10438         * m4/utime.m4: Likewise.
10439         * m4/utimes-null.m4: Likewise.
10440         * m4/utimes.m4: Likewise.
10441         * m4/vararrays.m4: Likewise.
10442         * m4/vasnprintf.m4: Likewise.
10443         * m4/vfprintf-posix.m4: Likewise.
10444         * m4/vprintf-posix.m4: Likewise.
10445         * m4/wait-process.m4: Likewise.
10446         * m4/wchar_t.m4: Likewise.
10447         * m4/wint_t.m4: Likewise.
10448         * m4/write-any-file.m4: Likewise.
10449         * m4/yield.m4: Likewise.
10450
10451 2009-01-13  Bruno Haible  <bruno@clisp.org>
10452
10453         Avoid test-copy-file.sh failures when ACL support insufficient.
10454         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
10455         TESTS_ENVIRONMENT.
10456         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
10457         Reported by Jim Meyering.
10458
10459 2009-01-13  Bruno Haible  <bruno@clisp.org>
10460
10461         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
10462         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
10463         * modules/unistdio/u8-printf-parse (Files): Likewise.
10464         * modules/unistdio/u32-printf-parse (Files): Likewise.
10465         * modules/unistdio/ulc-printf-parse (Files): Likewise.
10466
10467 2009-01-13  Simon Josefsson  <simon@josefsson.org>
10468
10469         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
10470         and m4/inttypes_h.m4 too.
10471
10472 2009-01-12  Eric Blake  <ebb9@byu.net>
10473
10474         tests: IRIX 6.2 cc can't compile -0.0 into .data
10475         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
10476         rather than at compile-time.
10477         * tests/test-floorl.c (minus_zero): Likewise.
10478         * tests/test-frexpl.c (minus_zero): Likewise.
10479         * tests/test-isnan.c (minus_zerol): Likewise.
10480         * tests/test-isnanl.h (minus_zero): Likewise.
10481         * tests/test-ldexpl.c (minus_zero): Likewise.
10482         * tests/test-roundl.c (minus_zero): Likewise.
10483         * tests/test-signbit.c (minus_zerol): Likewise.
10484         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
10485         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
10486         * tests/test-truncl.c (minus_zero): Likewise.
10487         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
10488         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
10489         Reported by Tom G. Christensen and Nelson H. F. Beebe.
10490
10491 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
10492
10493         regex: fix glibc bug 9697
10494         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
10495         handling.
10496
10497 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
10498
10499         regex: fix glibc bug 697
10500         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
10501         being NULL also if there are no backreferences.
10502
10503 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
10504
10505         regex: merge glibc changes
10506         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
10507         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
10508         re_string_skip_chars, re_string_reconstruct): Likewise.
10509         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
10510
10511 2009-01-07  Jim Meyering  <meyering@redhat.com>
10512
10513         poll: filter through cppi
10514         * lib/poll.c: Indent cpp directives to reflect nesting.
10515
10516 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
10517
10518         poll: don't return uninitialized
10519         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
10520
10521 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
10522
10523         avoid compile failure on AIX 6.1
10524         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
10525         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
10526
10527 2009-01-04  Jim Meyering  <meyering@redhat.com>
10528
10529         remove duplicate inclusion of <stdio.h>
10530         * tests/test-fprintf-posix.c: Likewise.
10531         * tests/test-printf-posix.c: Likewise.
10532         * tests/test-snprintf-posix.c: Likewise.
10533         * tests/test-sprintf-posix.c: Likewise.
10534         * tests/test-vasprintf-posix.c: Likewise.
10535         * tests/test-vfprintf-posix.c: Likewise.
10536         * tests/test-vprintf-posix.c: Likewise.
10537         * tests/test-vsnprintf-posix.c: Likewise.
10538         * tests/test-vsprintf-posix.c: Likewise.
10539
10540 2009-01-03  Jim Meyering  <meyering@redhat.com>
10541
10542         gnulib-tool: fix sed-based filtering
10543         * gnulib-tool (func_filter_filelist): Remove extra backslash
10544         in sed_fff_filter definition.
10545
10546 2009-01-02  Jim Meyering  <meyering@redhat.com>
10547
10548         strftime: avoid compilation failure on Solaris 2.6
10549         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
10550         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
10551         Don't #define mbrlen or mbsinit, since now they're guaranteed to
10552         be available.  Reported by Tom G. Christensen.  Details in
10553         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
10554
10555 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10556             Bruno Haible  <bruno@clisp.org>
10557
10558         Speed up gnulib-tool by doing more string processing through shell
10559         built-ins.
10560         * gnulib-tool (fast_func_append): New variable.
10561         (func_remove_prefix, func_remove_suffix): New functions.
10562         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
10563         (func_filter_filelist): New function.
10564         (func_get_dependencies): Use func_remove_suffix instead of sed.
10565         (func_get_automake_snippet): Use func_filter_filelist instead of a
10566         subshell and sed invocation.
10567
10568 2009-01-01  Bruno Haible  <bruno@clisp.org>
10569
10570         Fix a security bug.
10571         * gnulib-tool (func_import, import, update): Don't allow the characters
10572         '"', '$', '`', '\' in macro arguments that become part of commands that
10573         are evaluated.
10574
10575 2009-01-01  Bruno Haible  <bruno@clisp.org>
10576
10577         * gnulib-tool (func_reset_sigpipe): Add more comments.
10578
10579 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10580
10581         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
10582         func_emit_tests_Makefile_am, func_import): Abort loops early if we
10583         already know the answer.
10584
10585 2009-01-01  Jim Meyering  <meyering@redhat.com>
10586
10587         * lib/version-etc.c (version_etc_va): Update copyright year.
10588
10589 2008-12-30  Bruno Haible  <bruno@clisp.org>
10590
10591         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
10592         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
10593         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
10594
10595 2008-12-29  Eric Blake  <ebb9@byu.net>
10596
10597         multiarch: avoid autoconf AC_REQUIRE bug
10598         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
10599         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
10600         2.63 and older.
10601         Reported by Bruno Haible, and analyzed in
10602         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
10603
10604 2008-12-29  Bruno Haible  <bruno@clisp.org>
10605
10606         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
10607         files in subdirectories correctly.
10608         Reported by Ralf Wildenhues.
10609
10610 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10611
10612         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
10613         rather than 'join FILE -', for Solaris join.
10614
10615 2008-12-29  Bruno Haible  <bruno@clisp.org>
10616
10617         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
10618         quoting.
10619         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10620         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10621         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10622         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
10623         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10624         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10625         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10626         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10627         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10628         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10629         * m4/nls.m4 (AM_NLS): Likewise.
10630         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
10631         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10632         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10633         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10634         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10635         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10636         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
10637         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10638         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10639         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10640         * m4/xsize.m4 (gl_XSIZE): Likewise.
10641         Suggested by Jim Meyering.
10642
10643 2008-11-17  Bruce Korb  <bkorb@gnu.org>
10644
10645         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
10646         * lib/parse-duration.c: use a switch instead of cascading if's.
10647
10648 2008-12-29  Eric Blake  <ebb9@byu.net>
10649
10650         wchar.h: supply WEOF on Irix 5.3
10651         * lib/wchar.in.h (wint_t): Also supply WEOF.
10652         * lib/wctype.in.h (wint_t): Likewise.
10653         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
10654         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
10655         Reported by Tom G. Christensen.
10656
10657 2008-12-26  Bruno Haible  <bruno@clisp.org>
10658
10659         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
10660         i486, i586, i686.
10661
10662 2008-12-26  Bruno Haible  <bruno@clisp.org>
10663
10664         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
10665
10666 2008-12-26  Bruno Haible  <bruno@clisp.org>
10667
10668         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
10669         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
10670         not __STDC_CONSTANT_MACROS.
10671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
10672
10673 2008-12-25  Bruno Haible  <bruno@clisp.org>
10674
10675         Add support for universal builds to vasnprintf.
10676         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
10677         universal builds, guess no.
10678         * modules/vasnprintf-posix (Depends-on): Add multiarch.
10679         * modules/vasprintf-posix (Depends-on): Likewise.
10680         * modules/fprintf-posix (Depends-on): Likewise.
10681         * modules/vfprintf-posix (Depends-on): Likewise.
10682         * modules/snprintf-posix (Depends-on): Likewise.
10683         * modules/vsnprintf-posix (Depends-on): Likewise.
10684         * modules/sprintf-posix (Depends-on): Likewise.
10685         * modules/vsprintf-posix (Depends-on): Likewise.
10686         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10687         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10688         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10689         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10690         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10691         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10692         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10693
10694         Add support for universal builds to <inttypes.h>.
10695         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10696         _SCNu64_PREFIX): In Apple
10697         universal builds, define directly, using _LP64.
10698         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
10699         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
10700         * modules/inttypes (Depends-on): Add multiarch.
10701         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
10702
10703         Add support for universal builds to <stdint.h>.
10704         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
10705         universal builds, define directly, using _LP64.
10706         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
10707         Apple universal builds, don't test for the size and suffix of ptrdiff_t
10708         and size_t.
10709         * modules/stdint (Depends-on): Add multiarch.
10710         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
10711
10712         New module 'multiarch'.
10713         * modules/multiarch: New file.
10714         * m4/multiarch.m4: New file.
10715
10716 2008-12-25  Bruno Haible  <bruno@clisp.org>
10717
10718         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
10719
10720 2008-12-25  Bruno Haible  <bruno@clisp.org>
10721
10722         * modules/btowc (License): Relicense under LGPLv2+.
10723         * modules/mbsinit (License): Likewise.
10724         * modules/mbrtowc (License): Likewise.
10725         * modules/wcrtomb (License): Likewise.
10726         * modules/streq (License): Likewise.
10727         Reported by David Lutterkort <lutter@redhat.com>.
10728
10729 2008-12-23  Bruno Haible  <bruno@clisp.org>
10730
10731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
10732
10733 2008-12-23  Bruno Haible  <bruno@clisp.org>
10734
10735         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
10736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
10737         GETADDRINFO_LIB, not in LIBS.
10738         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
10739         * modules/canon-host (Link): Likewise.
10740         * NEWS: Mention the change.
10741         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
10742         GETADDRINFO_LIB.
10743
10744 2008-12-22  Bruno Haible  <bruno@clisp.org>
10745
10746         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
10747         * doc/posix-functions/iswalpha_l.texi: Likewise.
10748         * doc/posix-functions/iswblank_l.texi: Likewise.
10749         * doc/posix-functions/iswcntrl_l.texi: Likewise.
10750         * doc/posix-functions/iswctype_l.texi: Likewise.
10751         * doc/posix-functions/iswdigit_l.texi: Likewise.
10752         * doc/posix-functions/iswgraph_l.texi: Likewise.
10753         * doc/posix-functions/iswlower_l.texi: Likewise.
10754         * doc/posix-functions/iswprint_l.texi: Likewise.
10755         * doc/posix-functions/iswpunct_l.texi: Likewise.
10756         * doc/posix-functions/iswspace_l.texi: Likewise.
10757         * doc/posix-functions/iswupper_l.texi: Likewise.
10758         * doc/posix-functions/iswxdigit_l.texi: Likewise.
10759         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
10760         * doc/posix-functions/open_wmemstream.texi: Likewise.
10761         * doc/posix-functions/swscanf.texi: Likewise.
10762         * doc/posix-functions/towctrans_l.texi: Likewise.
10763         * doc/posix-functions/towlower.texi: Likewise.
10764         * doc/posix-functions/towlower_l.texi: Likewise.
10765         * doc/posix-functions/towupper.texi: Likewise.
10766         * doc/posix-functions/towupper_l.texi: Likewise.
10767         * doc/posix-functions/vfwprintf.texi: Likewise.
10768         * doc/posix-functions/vfwscanf.texi: Likewise.
10769         * doc/posix-functions/vswscanf.texi: Likewise.
10770         * doc/posix-functions/vwprintf.texi: Likewise.
10771         * doc/posix-functions/vwscanf.texi: Likewise.
10772         * doc/posix-functions/wcpcpy.texi: Likewise.
10773         * doc/posix-functions/wcpncpy.texi: Likewise.
10774         * doc/posix-functions/wcscasecmp.texi: Likewise.
10775         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
10776         * doc/posix-functions/wcscoll_l.texi: Likewise.
10777         * doc/posix-functions/wcsdup.texi: Likewise.
10778         * doc/posix-functions/wcsncasecmp.texi: Likewise.
10779         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
10780         * doc/posix-functions/wcsnlen.texi: Likewise.
10781         * doc/posix-functions/wcsnrtombs.texi: Likewise.
10782         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
10783         * doc/posix-functions/wctrans_l.texi: Likewise.
10784         * doc/posix-functions/wctype_l.texi: Likewise.
10785         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
10786         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
10787         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
10788         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
10789         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
10790         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
10791         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
10792         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
10793         * doc/glibc-functions/wcschrnul.texi: Likewise.
10794         * doc/glibc-functions/wcsftime_l.texi: Likewise.
10795         * doc/glibc-functions/wcstod_l.texi: Likewise.
10796         * doc/glibc-functions/wcstof_l.texi: Likewise.
10797         * doc/glibc-functions/wcstol_l.texi: Likewise.
10798         * doc/glibc-functions/wcstold_l.texi: Likewise.
10799         * doc/glibc-functions/wcstoll_l.texi: Likewise.
10800         * doc/glibc-functions/wcstoq.texi: Likewise.
10801         * doc/glibc-functions/wcstoul_l.texi: Likewise.
10802         * doc/glibc-functions/wcstoull_l.texi: Likewise.
10803         * doc/glibc-functions/wcstouq.texi: Likewise.
10804         * doc/glibc-functions/wmempcpy.texi: Likewise.
10805
10806 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
10807             Eric Blake  <ebb9@byu.net>
10808             Paolo Bonzini  <bonzini@gnu.org>
10809             Bruno Haible  <bruno@clisp.org>
10810
10811         Make c-stack work on Haiku.
10812         * lib/c-stack.c (SA_ONSTACK): Define fallback.
10813         (c_stack_action): Use SA_ONSTACK flag.
10814
10815 2008-12-22  Bruno Haible  <bruno@clisp.org>
10816
10817         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
10818
10819 2008-12-22  Bruno Haible  <bruno@clisp.org>
10820
10821         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
10822         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
10823         being overridden.
10824         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
10825         New macros.
10826         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
10827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
10828         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
10829         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
10830
10831 2008-12-22  Bruno Haible  <bruno@clisp.org>
10832
10833         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
10834         from test code.
10835
10836 2008-12-22  Eric Blake  <ebb9@byu.net>
10837
10838         Avoid gcc warnings on cygwin.
10839         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
10840         Avoid unused variable.
10841         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
10842         Likewise.
10843
10844 2008-12-22  Bruno Haible  <bruno@clisp.org>
10845
10846         Remove HAVE_MBRTOWC conditionals.
10847         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
10848         (mbscasecmp): Assume mbrtowc function.
10849         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
10850         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
10851         * lib/mbschr.c: Include mbuiter.h unconditionally.
10852         (mbschr): Assume mbrtowc function.
10853         * lib/mbscspn.c: Include mbuiter.h unconditionally.
10854         (mbscspn): Assume mbrtowc function.
10855         * lib/mbslen.c: Include mbuiter.h unconditionally.
10856         (mbslen): Assume mbrtowc function.
10857         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
10858         (mbsncasecmp): Assume mbrtowc function.
10859         * lib/mbsnlen.c: Include mbiter.h unconditionally.
10860         (mbsnlen): Assume mbrtowc function.
10861         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
10862         (mbspbrk): Assume mbrtowc function.
10863         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
10864         (mbspcasecmp): Assume mbrtowc function.
10865         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
10866         (mbsrchr): Assume mbrtowc function.
10867         * lib/mbssep.c: Include mbuiter.h unconditionally.
10868         (mbssep): Assume mbrtowc function.
10869         * lib/mbsspn.c: Include mbuiter.h unconditionally.
10870         (mbsspn): Assume mbrtowc function.
10871         * lib/mbsstr.c: Include mbuiter.h unconditionally.
10872         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
10873         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
10874         (mbstok_r): Assume mbrtowc function.
10875         * lib/propername.c: Include mbuiter.h unconditionally.
10876         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
10877         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
10878         (trim2): Assume mbrtowc function.
10879         * lib/mbswidth.c (mbsinit): Remove fallback definition.
10880         (mbsnwidth): Assume mbrtowc function.
10881         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
10882         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
10883         fallback definitions.
10884         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
10885
10886 2008-12-22  Bruno Haible  <bruno@clisp.org>
10887
10888         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
10889
10890 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
10891
10892         * modules/regex: Request emulations for the mb*/wc* functions we need.
10893         * m4/regex.m4: Don't look for those functions here.
10894         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
10895
10896 2008-12-22  Bruno Haible  <bruno@clisp.org>
10897
10898         * modules/fnmatch (Depends-on): Remove duplicated dependency.
10899
10900 2008-12-21  Bruno Haible  <bruno@clisp.org>
10901
10902         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
10903         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
10904         (Include): Remove conditionalization.
10905         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
10906         (Include): Remove conditionalization.
10907         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
10908         (Include): Remove conditionalization.
10909         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
10910         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10911         * NEWS: Mention the change.
10912         Reported by Alan Hourihane <alanh@fairlite.co.uk>
10913         via Sergey Poznyakoff <gray@gnu.org.ua>.
10914
10915 2008-12-21  Bruno Haible  <bruno@clisp.org>
10916
10917         * MODULES.html.sh (Extended multibyte and wide character utilities
10918         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
10919         wcrtomb, wcsrtombs.
10920         (Support for systems lacking POSIX:2008): Add accept, bind, close,
10921         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
10922         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
10923         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
10924
10925 2008-12-21  Bruno Haible  <bruno@clisp.org>
10926
10927         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
10928
10929 2008-12-21  Bruno Haible  <bruno@clisp.org>
10930
10931         * modules/wcsnrtombs-tests: New file.
10932         * tests/test-wcsnrtombs1.sh: New file.
10933         * tests/test-wcsnrtombs2.sh: New file.
10934         * tests/test-wcsnrtombs3.sh: New file.
10935         * tests/test-wcsnrtombs4.sh: New file.
10936         * tests/test-wcsnrtombs.c: New file.
10937
10938         New module 'wcsnrtombs'.
10939         * lib/wchar.in.h (wcsnrtombs): New declaration.
10940         * lib/wcsnrtombs.c: New file.
10941         * lib/wcsrtombs-state.c: New file.
10942         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
10943         (internal_state): Remove variable.
10944         * m4/wcsnrtombs.m4: New file.
10945         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
10946         compilation units.
10947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
10948         HAVE_WCSNRTOMBS.
10949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
10950         HAVE_WCSNRTOMBS.
10951         * modules/wcsnrtombs: New file.
10952         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
10953         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
10954
10955 2008-12-21  Bruno Haible  <bruno@clisp.org>
10956
10957         * modules/wcsrtombs-tests: New file.
10958         * tests/test-wcsrtombs1.sh: New file.
10959         * tests/test-wcsrtombs2.sh: New file.
10960         * tests/test-wcsrtombs3.sh: New file.
10961         * tests/test-wcsrtombs4.sh: New file.
10962         * tests/test-wcsrtombs.c: New file.
10963
10964         New module 'wcsrtombs'.
10965         * lib/wchar.in.h (wcsrtombs): New declaration.
10966         * lib/wcsrtombs.c: New file.
10967         * m4/wcsrtombs.m4: New file.
10968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
10969         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
10970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
10971         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
10972         * modules/wcsrtombs: New file.
10973         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
10974         bugs.
10975
10976 2008-12-21  Bruno Haible  <bruno@clisp.org>
10977
10978         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
10979         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
10980         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
10981         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
10982         if not correct.
10983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
10984         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
10985         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
10986         m4/locale-zh.m4, m4/codeset.m4.
10987         * doc/posix-functions/wcrtomb.texi: Document the bug.
10988
10989 2008-12-21  Bruno Haible  <bruno@clisp.org>
10990
10991         Work around a btowc() bug on IRIX 6.5.
10992         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
10993         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
10994         REPLACE_WTOBC if not.
10995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
10996         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
10997         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
10998
10999 2008-12-21  Bruno Haible  <bruno@clisp.org>
11000
11001         * modules/wcrtomb-tests: New file.
11002         * tests/test-wcrtomb.sh: New file.
11003         * tests/test-wcrtomb.c: New file.
11004
11005         New module 'wcrtomb'.
11006         * lib/wchar.in.h (wcrtomb): New declaration.
11007         * lib/wcrtomb.c: New file.
11008         * m4/wcrtomb.m4: New file.
11009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
11010         HAVE_WCRTOMB.
11011         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
11012         HAVE_WCRTOMB.
11013         * modules/wcrtomb: New file.
11014         * doc/posix-functions/wcrtomb.texi: Mention the new module.
11015
11016 2008-12-21  Bruno Haible  <bruno@clisp.org>
11017
11018         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
11019         * modules/mbsrtowcs (Files): Likewise.
11020         * modules/wctob (Files): Likewise.
11021         * modules/c-strcase-tests (Files): Likewise.
11022         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11023         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11024         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11025         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11026         * modules/vasnprintf-posix-tests (Files): Likewise.
11027
11028 2008-12-21  William Pursell  <bill.pursell@gmail.com>
11029
11030         gitlog-to-changelog: pass all command-line arguments to git-log
11031         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
11032         it is sometimes convenient to filter the commits in various ways.
11033         gitlog-to-changelog only allows --since to specify a start date,
11034         but git-log itself supports many other filtering mechanisms.
11035         At the moment, I want to filter by branch name.  Rather than
11036         adding a --branch option to gitlog-to-changelog, it seems more
11037         flexible to simply pass all options directly to git-log and let
11038         git do the work.  Notice that this effectively makes --since a
11039         redundant option for gitlog-to-changelog, but removing it would
11040         require current usage to change since calls would then require
11041         an additional '--'.
11042
11043 2008-12-21  Bruno Haible  <bruno@clisp.org>
11044
11045         * modules/mbsnrtowcs-tests: New file.
11046         * tests/test-mbsnrtowcs1.sh: New file.
11047         * tests/test-mbsnrtowcs2.sh: New file.
11048         * tests/test-mbsnrtowcs3.sh: New file.
11049         * tests/test-mbsnrtowcs4.sh: New file.
11050         * tests/test-mbsnrtowcs.c: New file.
11051
11052         New module 'mbsnrtowcs'.
11053         * lib/wchar.in.h (mbsnrtowcs): New declaration.
11054         * lib/mbsnrtowcs.c: New file.
11055         * lib/mbsrtowcs-state.c: New file.
11056         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
11057         (internal_state): Remove variable.
11058         * m4/mbsnrtowcs.m4: New file.
11059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
11060         compilation units.
11061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
11062         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11063         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
11064         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11065         * modules/mbsnrtowcs: New file.
11066         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
11067         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
11068         portability problem.
11069
11070 2008-12-21  Bruno Haible  <bruno@clisp.org>
11071
11072         Work around mbsrtowcs bug.
11073         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
11074         (gl_FUNC_MBSRTOWCS): Invoke it.
11075         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11076         m4/locale-zh.m4.
11077         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
11078
11079 2008-12-21  Bruno Haible  <bruno@clisp.org>
11080
11081         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
11082
11083 2008-12-21  Bruno Haible  <bruno@clisp.org>
11084
11085         Update doc for AIX.
11086         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
11087         16-bit wchar_t type.
11088         * doc/posix-functions/btowc.texi: Likewise.
11089         * doc/posix-functions/fgetwc.texi: Likewise.
11090         * doc/posix-functions/fgetws.texi: Likewise.
11091         * doc/posix-functions/fputwc.texi: Likewise.
11092         * doc/posix-functions/fputws.texi: Likewise.
11093         * doc/posix-functions/fwide.texi: Likewise.
11094         * doc/posix-functions/fwprintf.texi: Likewise.
11095         * doc/posix-functions/fwscanf.texi: Likewise.
11096         * doc/posix-functions/getwchar.texi: Likewise.
11097         * doc/posix-functions/getwc.texi: Likewise.
11098         * doc/posix-functions/iswalnum.texi: Likewise.
11099         * doc/posix-functions/iswalpha.texi: Likewise.
11100         * doc/posix-functions/iswblank.texi: Likewise.
11101         * doc/posix-functions/iswcntrl.texi: Likewise.
11102         * doc/posix-functions/iswctype.texi: Likewise.
11103         * doc/posix-functions/iswdigit.texi: Likewise.
11104         * doc/posix-functions/iswgraph.texi: Likewise.
11105         * doc/posix-functions/iswlower.texi: Likewise.
11106         * doc/posix-functions/iswprint.texi: Likewise.
11107         * doc/posix-functions/iswpunct.texi: Likewise.
11108         * doc/posix-functions/iswspace.texi: Likewise.
11109         * doc/posix-functions/iswupper.texi: Likewise.
11110         * doc/posix-functions/iswxdigit.texi: Likewise.
11111         * doc/posix-functions/mbrtowc.texi: Likewise.
11112         * doc/posix-functions/mbsrtowcs.texi: Likewise.
11113         * doc/posix-functions/mbstowcs.texi: Likewise.
11114         * doc/posix-functions/mbtowc.texi: Likewise.
11115         * doc/posix-functions/putwchar.texi: Likewise.
11116         * doc/posix-functions/putwc.texi: Likewise.
11117         * doc/posix-functions/swprintf.texi: Likewise.
11118         * doc/posix-functions/tolower.texi: Likewise.
11119         * doc/posix-functions/toupper.texi: Likewise.
11120         * doc/posix-functions/towctrans.texi: Likewise.
11121         * doc/posix-functions/ungetwc.texi: Likewise.
11122         * doc/posix-functions/vswprintf.texi: Likewise.
11123         * doc/posix-functions/wcrtomb.texi: Likewise.
11124         * doc/posix-functions/wcscat.texi: Likewise.
11125         * doc/posix-functions/wcschr.texi: Likewise.
11126         * doc/posix-functions/wcscmp.texi: Likewise.
11127         * doc/posix-functions/wcscoll.texi: Likewise.
11128         * doc/posix-functions/wcscpy.texi: Likewise.
11129         * doc/posix-functions/wcscspn.texi: Likewise.
11130         * doc/posix-functions/wcsftime.texi: Likewise.
11131         * doc/posix-functions/wcslen.texi: Likewise.
11132         * doc/posix-functions/wcsncat.texi: Likewise.
11133         * doc/posix-functions/wcsncmp.texi: Likewise.
11134         * doc/posix-functions/wcsncpy.texi: Likewise.
11135         * doc/posix-functions/wcspbrk.texi: Likewise.
11136         * doc/posix-functions/wcsrchr.texi: Likewise.
11137         * doc/posix-functions/wcsrtombs.texi: Likewise.
11138         * doc/posix-functions/wcsspn.texi: Likewise.
11139         * doc/posix-functions/wcsstr.texi: Likewise.
11140         * doc/posix-functions/wcstod.texi: Likewise.
11141         * doc/posix-functions/wcstof.texi: Likewise.
11142         * doc/posix-functions/wcstoimax.texi: Likewise.
11143         * doc/posix-functions/wcstok.texi: Likewise.
11144         * doc/posix-functions/wcstold.texi: Likewise.
11145         * doc/posix-functions/wcstoll.texi: Likewise.
11146         * doc/posix-functions/wcstol.texi: Likewise.
11147         * doc/posix-functions/wcstombs.texi: Likewise.
11148         * doc/posix-functions/wcstoull.texi: Likewise.
11149         * doc/posix-functions/wcstoul.texi: Likewise.
11150         * doc/posix-functions/wcstoumax.texi: Likewise.
11151         * doc/posix-functions/wcswidth.texi: Likewise.
11152         * doc/posix-functions/wcsxfrm.texi: Likewise.
11153         * doc/posix-functions/wctob.texi: Likewise.
11154         * doc/posix-functions/wctomb.texi: Likewise.
11155         * doc/posix-functions/wctrans.texi: Likewise.
11156         * doc/posix-functions/wctype.texi: Likewise.
11157         * doc/posix-functions/wcwidth.texi: Likewise.
11158         * doc/posix-functions/wmemchr.texi: Likewise.
11159         * doc/posix-functions/wmemcmp.texi: Likewise.
11160         * doc/posix-functions/wmemcpy.texi: Likewise.
11161         * doc/posix-functions/wmemmove.texi: Likewise.
11162         * doc/posix-functions/wmemset.texi: Likewise.
11163         * doc/posix-functions/wprintf.texi: Likewise.
11164         * doc/posix-functions/wscanf.texi: Likewise.
11165
11166 2008-12-21  Bruno Haible  <bruno@clisp.org>
11167
11168         Update doc for HP-UX 11.11.
11169         * doc/posix-functions/btowc.texi: Clarify that the function is missing
11170         in HP-UX version 11.00, not in all versions of HP-UX 11.
11171         * doc/posix-functions/fwide.texi: Likewise.
11172         * doc/posix-functions/fwprintf.texi: Likewise.
11173         * doc/posix-functions/fwscanf.texi: Likewise.
11174         * doc/posix-functions/inet_ntop.texi: Likewise.
11175         * doc/posix-functions/inet_pton.texi: Likewise.
11176         * doc/posix-functions/mbrlen.texi: Likewise.
11177         * doc/posix-functions/mbrtowc.texi: Likewise.
11178         * doc/posix-functions/mbsinit.texi: Likewise.
11179         * doc/posix-functions/mbsrtowcs.texi: Likewise.
11180         * doc/posix-functions/swprintf.texi: Likewise.
11181         * doc/posix-functions/swscanf.texi: Likewise.
11182         * doc/posix-functions/towctrans.texi: Likewise.
11183         * doc/posix-functions/vfwprintf.texi: Likewise.
11184         * doc/posix-functions/vswprintf.texi: Likewise.
11185         * doc/posix-functions/vwprintf.texi: Likewise.
11186         * doc/posix-functions/wcrtomb.texi: Likewise.
11187         * doc/posix-functions/wcsrtombs.texi: Likewise.
11188         * doc/posix-functions/wcsstr.texi: Likewise.
11189         * doc/posix-functions/wctob.texi: Likewise.
11190         * doc/posix-functions/wctrans.texi: Likewise.
11191         * doc/posix-functions/wmemchr.texi: Likewise.
11192         * doc/posix-functions/wmemcmp.texi: Likewise.
11193         * doc/posix-functions/wmemcpy.texi: Likewise.
11194         * doc/posix-functions/wmemmove.texi: Likewise.
11195         * doc/posix-functions/wmemset.texi: Likewise.
11196         * doc/posix-functions/wprintf.texi: Likewise.
11197         * doc/posix-functions/wscanf.texi: Likewise.
11198
11199 2008-12-21  Bruno Haible  <bruno@clisp.org>
11200
11201         Work around a portability problem.
11202         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
11203         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
11204
11205 2008-12-20  Bruno Haible  <bruno@clisp.org>
11206
11207         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
11208         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
11209         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
11210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
11211         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
11212
11213         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
11214         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
11215         set.
11216         (GNULIB_defined_mbstate_t): New macro.
11217         (mbsinit): Redefine if REPLACE_MBSINIT is set.
11218         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
11219         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
11220         reuses the system's mbrtowc function but works around the bugs.
11221         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
11222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
11223         macros.
11224         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
11225         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
11226         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
11227         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
11228         REPLACE_MBSINIT if mbsinit needs to be overridden.
11229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
11230         REPLACE_MBSINIT, REPLACE_MBRTOWC.
11231         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
11232         REPLACE_MBSINIT, REPLACE_MBRTOWC.
11233         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11234         m4/locale-zh.m4.
11235         (Depends): Add mbsinit.
11236         * modules/mbsinit (Depends): Add mbrtowc.
11237         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
11238
11239 2008-12-20  Bruno Haible  <bruno@clisp.org>
11240
11241         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
11242         so that there are no conversion errors on AIX.
11243         * tests/test-mbsrtowcs.c (main): LIkewise.
11244
11245 2008-12-20  Bruno Haible  <bruno@clisp.org>
11246
11247         Work around wctob bug on Solaris <= 9.
11248         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
11249         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
11250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
11251         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
11252         * modules/wctob (Files): Add m4/locale-fr.m4.
11253         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
11254
11255 2008-12-20  Bruno Haible  <bruno@clisp.org>
11256
11257         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
11258         /dev/null.
11259         * tests/test-select-in.sh: Likewise.
11260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11261
11262 2008-12-20  Bruno Haible  <bruno@clisp.org>
11263
11264         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
11265         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
11266         Cygwin 1.5.x.
11267
11268 2008-12-20  Bruno Haible  <bruno@clisp.org>
11269
11270         Ensure mbstate_t is defined on HP-UX 11.11.
11271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
11272         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
11273         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
11274         AC_USE_SYSTEM_EXTENSIONS.
11275         * modules/fnmatch (Depends-on): Add extensions.
11276         * modules/mbrlen (Depends-on): Likewise.
11277         * modules/mbrtowc (Depends-on): Likewise.
11278         * modules/mbsinit (Depends-on): Likewise.
11279         * modules/mbsrtowcs (Depends-on): Likewise.
11280         * modules/mbswidth (Depends-on): Likewise.
11281         * modules/quotearg (Depends-on): Likewise.
11282         * modules/strftime (Depends-on): Likewise.
11283
11284 2008-12-20  Bruno Haible  <bruno@clisp.org>
11285
11286         Ensure wctob is declared on IRIX 6.5.
11287         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
11288         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
11289         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
11290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
11291         of HAVE_WCTOB.
11292         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
11293         HAVE_WCTOB.
11294         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
11295
11296 2008-12-19  Bruno Haible  <bruno@clisp.org>
11297
11298         * modules/mbsrtowcs-tests: New file.
11299         * tests/test-mbsrtowcs1.sh: New file.
11300         * tests/test-mbsrtowcs2.sh: New file.
11301         * tests/test-mbsrtowcs3.sh: New file.
11302         * tests/test-mbsrtowcs4.sh: New file.
11303         * tests/test-mbsrtowcs.c: New file.
11304
11305         New module 'mbsrtowcs'.
11306         * lib/wchar.in.h (mbsrtowcs): New declaration.
11307         * lib/mbsrtowcs.c: New file.
11308         * m4/mbsrtowcs.m4: New file.
11309         * modules/mbsrtowcs: New file.
11310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
11311         HAVE_MBSRTOWCS.
11312         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
11313         HAVE_MBSRTOWCS.
11314         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
11315
11316 2008-12-19  Bruno Haible  <bruno@clisp.org>
11317
11318         New module 'mbrlen'.
11319         * lib/wchar.in.h (mbrlen): New declaration.
11320         * lib/mbrlen.c: New file.
11321         * m4/mbrlen.m4: New file.
11322         * modules/mbrlen: New file.
11323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
11324         HAVE_MBRLEN.
11325         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
11326         HAVE_MBRLEN.
11327         * doc/posix-functions/mbrlen.texi: Document the new module.
11328
11329 2008-12-19  Bruno Haible  <bruno@clisp.org>
11330
11331         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
11332         * modules/mbrtowc (Depends-on): Add verify.
11333         Suggested by Paul Eggert.
11334
11335 2008-12-18  Bruno Haible  <bruno@clisp.org>
11336
11337         * modules/mbsinit-tests: New file.
11338         * tests/test-mbsinit.sh: New file.
11339         * tests/test-mbsinit.c: New file.
11340
11341 2008-12-18  Bruno Haible  <bruno@clisp.org>
11342
11343         * modules/mbrtowc-tests: New file.
11344         * tests/test-mbrtowc1.sh: New file.
11345         * tests/test-mbrtowc2.sh: New file.
11346         * tests/test-mbrtowc3.sh: New file.
11347         * tests/test-mbrtowc4.sh: New file.
11348         * tests/test-mbrtowc.c: New file.
11349
11350         New module 'mbrtowc'.
11351         * lib/wchar.in.h (mbstate_t): Override when the system does not have
11352         mbsinit and mbrtowc.
11353         (mbrtowc): New declaration.
11354         * lib/mbrtowc.c: New file.
11355         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
11356         * modules/mbrtowc: New file.
11357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
11358         HAVE_MBRTOWC.
11359         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
11360         HAVE_MBRTOWC.
11361         * doc/posix-functions/mbrtowc.texi: Document the new module.
11362
11363 2008-12-18  Bruno Haible  <bruno@clisp.org>
11364
11365         New module 'wctob'.
11366         * lib/wchar.in.h (wctob): New declaration.
11367         * lib/wctob.c: New file.
11368         * m4/wctob.m4: New file.
11369         * modules/wctob: New file.
11370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
11371         HAVE_WCTOB.
11372         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
11373         * doc/posix-functions/wctob.texi: Document the new module.
11374
11375 2008-12-18  Bruno Haible  <bruno@clisp.org>
11376
11377         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
11378         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
11379
11380 2008-12-18  Simon Josefsson  <simon@josefsson.org>
11381
11382         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
11383         G. Christensen" <tgc@jupiterrise.com>.
11384
11385         * lib/flock.c: Need to include errno.h.  Reported by "Tom
11386         G. Christensen" <tgc@jupiterrise.com>.
11387
11388         * lib/flock.c: Need to include string.h.  Reported by "Tom
11389         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
11390         <ebb9@byu.net>.
11391
11392 2008-12-18  Bruno Haible  <bruno@clisp.org>
11393
11394         * m4/locale-ja.m4: New file, from GNU gettext.
11395
11396 2008-12-17  Bruno Haible  <bruno@clisp.org>
11397
11398         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
11399         Suggested by Eric Blake.
11400
11401 2008-12-17  Bruno Haible  <bruno@clisp.org>
11402
11403         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
11404
11405 2008-12-17  Bruno Haible  <bruno@clisp.org>
11406
11407         * lib/mbsinit.c: Include verify.h. Verify an assumption.
11408         * modules/mbsinit (Depends-on): Add verify.
11409         Suggested by Paul Eggert.
11410
11411 2008-12-17  Bruno Haible  <bruno@clisp.org>
11412
11413         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
11414         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
11415         gl_FUNC_MBRTOWC.
11416         * m4/mbiter.m4 (gl_MBITER): LIkewise.
11417         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
11418         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
11419         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
11420         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
11421         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
11422         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
11423         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
11424         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
11425         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
11426         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
11427         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
11428         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
11429         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
11430         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
11431         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11432         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
11433         * modules/trim (configure.ac): Likewise.
11434
11435 2008-12-17  Bruno Haible  <bruno@clisp.org>
11436
11437         * modules/btowc-tests: New file.
11438         * tests/test-btowc1.sh: New file.
11439         * tests/test-btowc2.sh: New file.
11440         * tests/test-btowc.c: New file.
11441
11442         New module 'btowc'.
11443         * lib/wchar.in.h (btowc): New declaration.
11444         * lib/btowc.c: New file.
11445         * m4/btowc.m4: New file.
11446         * modules/btowc: New file.
11447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
11448         HAVE_BTOWC.
11449         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
11450         * doc/posix-functions/btowc.texi: Document the new module.
11451
11452 2008-12-17  Bruno Haible  <bruno@clisp.org>
11453
11454         New module 'mbsinit'.
11455         * lib/wchar.in.h (mbsinit): New declaration.
11456         * lib/mbsinit.c: New file.
11457         * m4/mbsinit.m4: New file.
11458         * modules/mbsinit: New file.
11459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
11460         HAVE_MBSINIT.
11461         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
11462         HAVE_MBSINIT.
11463         * doc/posix-functions/mbsinit.texi: Document the new module.
11464
11465 2008-12-16  Bruno Haible  <bruno@clisp.org>
11466
11467         * lib/unistd.in.h: Add comment.
11468         * tests/test-environ.c: Don't include <stdlib.h>.
11469
11470 2008-12-16  Bruno Haible  <bruno@clisp.org>
11471
11472         * lib/parse-duration.h (parse_duration): Document return value
11473         convention.
11474         * lib/parse-duration.c: Include specification header first. Add
11475         comments.
11476         (_): Remove macro.
11477         (parse_year_month_day, parse_hour_minute_second): Move side effects
11478         outside of strchr call.
11479         (parse_non_iso8601): Move side effects outside of isspace call.
11480         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
11481         call.
11482
11483 2008-12-16  Bruno Haible  <bruno@clisp.org>
11484
11485         * tests/test-parse-duration.sh: Produce no output when the test
11486         succeeds.
11487
11488 2008-12-16  Bruno Haible  <bruno@clisp.org>
11489
11490         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
11491         expressions.
11492
11493 2008-12-15  Bruno Haible  <bruno@clisp.org>
11494
11495         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
11496         * doc/glibc-functions/flistxattr.texi: Likewise.
11497         * doc/glibc-functions/fopencookie.texi: Likewise.
11498         * doc/glibc-functions/fremovexattr.texi: Likewise.
11499         * doc/glibc-functions/fsetxattr.texi: Likewise.
11500         * doc/glibc-functions/getxattr.texi: Likewise.
11501         * doc/glibc-functions/lgetxattr.texi: Likewise.
11502         * doc/glibc-functions/listxattr.texi: Likewise.
11503         * doc/glibc-functions/llistxattr.texi: Likewise.
11504         * doc/glibc-functions/lremovexattr.texi: Likewise.
11505         * doc/glibc-functions/lsetxattr.texi: Likewise.
11506         * doc/glibc-functions/removexattr.texi: Likewise.
11507         * doc/glibc-functions/setxattr.texi: Likewise.
11508         * doc/posix-functions/open_memstream.texi: Likewise.
11509
11510 2008-12-15  Eric Blake  <ebb9@byu.net>
11511
11512         Update doc for cygwin 1.7.
11513         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
11514         functions.
11515         * doc/posix-functions/fchmodat.texi: Likewise.
11516         * doc/posix-functions/fchownat.texi: Likewise.
11517         * doc/posix-functions/fdopendir.texi: Likewise.
11518         * doc/posix-functions/fmemopen.texi: Likewise.
11519         * doc/posix-functions/freeaddrinfo.texi: Likewise.
11520         * doc/posix-functions/fstatat.texi: Likewise.
11521         * doc/posix-functions/futimens.texi: Likewise.
11522         * doc/posix-functions/gai_strerror.texi: Likewise.
11523         * doc/posix-functions/getaddrinfo.texi: Likewise.
11524         * doc/posix-functions/getnameinfo.texi: Likewise.
11525         * doc/posix-functions/if_freenameindex.texi: Likewise.
11526         * doc/posix-functions/if_indextoname.texi: Likewise.
11527         * doc/posix-functions/if_nameindex.texi: Likewise.
11528         * doc/posix-functions/if_nametoindex.texi: Likewise.
11529         * doc/posix-functions/insque.texi: Likewise.
11530         * doc/posix-functions/linkat.texi: Likewise.
11531         * doc/posix-functions/llrint.texi: Likewise.
11532         * doc/posix-functions/llrintf.texi: Likewise.
11533         * doc/posix-functions/llrintl.texi: Likewise.
11534         * doc/posix-functions/lockf.texi: Likewise.
11535         * doc/posix-functions/lrintl.texi: Likewise.
11536         * doc/posix-functions/mkdirat.texi: Likewise.
11537         * doc/posix-functions/mkfifoat.texi: Likewise.
11538         * doc/posix-functions/mknodat.texi: Likewise.
11539         * doc/posix-functions/mq_close.texi: Likewise.
11540         * doc/posix-functions/mq_getattr.texi: Likewise.
11541         * doc/posix-functions/mq_notify.texi: Likewise.
11542         * doc/posix-functions/mq_open.texi: Likewise.
11543         * doc/posix-functions/mq_receive.texi: Likewise.
11544         * doc/posix-functions/mq_send.texi: Likewise.
11545         * doc/posix-functions/mq_setattr.texi: Likewise.
11546         * doc/posix-functions/mq_timedreceive.texi: Likewise.
11547         * doc/posix-functions/mq_timedsend.texi: Likewise.
11548         * doc/posix-functions/mq_unlink.texi: Likewise.
11549         * doc/posix-functions/open_memstream.texi: Likewise.
11550         * doc/posix-functions/openat.texi: Likewise.
11551         * doc/posix-functions/posix_fadvise.texi: Likewise.
11552         * doc/posix-functions/posix_fallocate.texi: Likewise.
11553         * doc/posix-functions/posix_madvise.texi: Likewise.
11554         * doc/posix-functions/posix_memalign.texi: Likewise.
11555         * doc/posix-functions/posix_openpt.texi: Likewise.
11556         * doc/posix-functions/readlinkat.texi: Likewise.
11557         * doc/posix-functions/remque.texi: Likewise.
11558         * doc/posix-functions/renameat.texi: Likewise.
11559         * doc/posix-functions/rintl.texi: Likewise.
11560         * doc/posix-functions/sem_unlink.texi: Likewise.
11561         * doc/posix-functions/shm_open.texi: Likewise.
11562         * doc/posix-functions/shm_unlink.texi: Likewise.
11563         * doc/posix-functions/signgam.texi: Likewise.
11564         * doc/posix-functions/sigset.texi: Likewise.
11565         * doc/posix-functions/stpcpy.texi: Likewise.
11566         * doc/posix-functions/stpncpy.texi: Likewise.
11567         * doc/posix-functions/strerror.texi: Likewise.
11568         * doc/posix-functions/strtod.texi: Likewise.
11569         * doc/posix-functions/symlinkat.texi: Likewise.
11570         * doc/posix-functions/unlinkat.texi: Likewise.
11571         * doc/posix-functions/utimensat.texi: Likewise.
11572         * doc/glibc-functions/bindresvport.texi: Likewise.
11573         * doc/glibc-functions/dn_expand.texi: Likewise.
11574         * doc/glibc-functions/exp10.texi: Likewise.
11575         * doc/glibc-functions/exp10f.texi: Likewise.
11576         * doc/glibc-functions/fgetxattr.texi: Likewise.
11577         * doc/glibc-functions/flistxattr.texi: Likewise.
11578         * doc/glibc-functions/fopencookie.texi: Likewise.
11579         * doc/glibc-functions/freeifaddrs.texi: Likewise.
11580         * doc/glibc-functions/fremovexattr.texi: Likewise.
11581         * doc/glibc-functions/fsetxattr.texi: Likewise.
11582         * doc/glibc-functions/getifaddrs.texi: Likewise.
11583         * doc/glibc-functions/getxattr.texi: Likewise.
11584         * doc/glibc-functions/lgetxattr.texi: Likewise.
11585         * doc/glibc-functions/listxattr.texi: Likewise.
11586         * doc/glibc-functions/llistxattr.texi: Likewise.
11587         * doc/glibc-functions/lremovexattr.texi: Likewise.
11588         * doc/glibc-functions/lsetxattr.texi: Likewise.
11589         * doc/glibc-functions/pow10.texi: Likewise.
11590         * doc/glibc-functions/pow10f.texi: Likewise.
11591         * doc/glibc-functions/rcmd_af.texi: Likewise.
11592         * doc/glibc-functions/removexattr.texi: Likewise.
11593         * doc/glibc-functions/res_init.texi: Likewise.
11594         * doc/glibc-functions/res_mkquery.texi: Likewise.
11595         * doc/glibc-functions/res_query.texi: Likewise.
11596         * doc/glibc-functions/res_querydomain.texi: Likewise.
11597         * doc/glibc-functions/res_send.texi: Likewise.
11598         * doc/glibc-functions/rresvport_af.texi: Likewise.
11599         * doc/glibc-functions/setxattr.texi: Likewise.
11600         * doc/glibc-functions/strcasestr.texi: Likewise.
11601
11602 2008-12-15  Bruno Haible  <bruno@clisp.org>
11603
11604         Fix compilation error on OSF/1 4.0.
11605         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
11606         <sys/time.h>, simply delegate to the system header.
11607         Reported by Daniel Richard G. <oss@teragram.com>.
11608
11609 2008-12-15  Bruno Haible  <bruno@clisp.org>
11610
11611         * doc/posix-functions/openat.texi: Mention the 'openat' module.
11612         * doc/posix-functions/fchmodat.texi: Likewise.
11613         * doc/posix-functions/fchownat.texi: Likewise.
11614         * doc/posix-functions/fdopendir.texi: Likewise.
11615         * doc/posix-functions/fstatat.texi: Likewise.
11616         * doc/posix-functions/mkdirat.texi: Likewise.
11617         * doc/posix-functions/unlinkat.texi: Likewise.
11618
11619 2008-12-14  Bruno Haible  <bruno@clisp.org>
11620
11621         Update doc for POSIX:2008.
11622         * doc/posix-functions/faccessat.texi: New file.
11623         * doc/posix-functions/fchmodat.texi: New file.
11624         * doc/posix-functions/fchownat.texi: New file.
11625         * doc/posix-functions/fdopendir.texi: New file.
11626         * doc/posix-functions/fstatat.texi: New file.
11627         * doc/posix-functions/futimens.texi: New file.
11628         * doc/posix-functions/linkat.texi: New file.
11629         * doc/posix-functions/mkdirat.texi: New file.
11630         * doc/posix-functions/mkfifoat.texi: New file.
11631         * doc/posix-functions/mknodat.texi: New file.
11632         * doc/posix-functions/open_wmemstream.texi: New file.
11633         * doc/posix-functions/openat.texi: New file.
11634         * doc/posix-functions/psiginfo.texi: New file.
11635         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
11636         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
11637         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
11638         * doc/posix-functions/readlinkat.texi: New file.
11639         * doc/posix-functions/renameat.texi: New file.
11640         * doc/posix-functions/strerror_l.texi: New file.
11641         * doc/posix-functions/symlinkat.texi: New file.
11642         * doc/posix-functions/unlinkat.texi: New file.
11643         * doc/posix-functions/utimensat.texi: New file.
11644         * doc/gnulib.texi (Function Substitutes): Add these subsections.
11645
11646 2008-12-14  Bruno Haible  <bruno@clisp.org>
11647
11648         Update doc for POSIX:2008.
11649         * doc/posix-functions/alphasort.texi: Renamed from
11650         doc/glibc-functions/alphasort.texi.
11651         * doc/posix-functions/dirfd.texi: Renamed from
11652         doc/glibc-functions/dirfd.texi.
11653         * doc/posix-functions/dprintf.texi: Renamed from
11654         doc/glibc-functions/dprintf.texi.
11655         * doc/posix-functions/duplocale.texi: Renamed from
11656         doc/glibc-functions/duplocale.texi.
11657         * doc/posix-functions/fexecve.texi: Renamed from
11658         doc/glibc-functions/fexecve.texi.
11659         * doc/posix-functions/fmemopen.texi: Renamed from
11660         doc/glibc-functions/fmemopen.texi.
11661         * doc/posix-functions/freelocale.texi: Renamed from
11662         doc/glibc-functions/freelocale.texi.
11663         * doc/posix-functions/getdate_err.texi: Renamed from
11664         doc/glibc-functions/getdate_err.texi.
11665         * doc/posix-functions/isalnum_l.texi: Renamed from
11666         doc/glibc-functions/isalnum_l.texi.
11667         * doc/posix-functions/isalpha_l.texi: Renamed from
11668         doc/glibc-functions/isalpha_l.texi.
11669         * doc/posix-functions/isblank_l.texi: Renamed from
11670         doc/glibc-functions/isblank_l.texi.
11671         * doc/posix-functions/iscntrl_l.texi: Renamed from
11672         doc/glibc-functions/iscntrl_l.texi.
11673         * doc/posix-functions/isdigit_l.texi: Renamed from
11674         doc/glibc-functions/isdigit_l.texi.
11675         * doc/posix-functions/isgraph_l.texi: Renamed from
11676         doc/glibc-functions/isgraph_l.texi.
11677         * doc/posix-functions/islower_l.texi: Renamed from
11678         doc/glibc-functions/islower_l.texi.
11679         * doc/posix-functions/isprint_l.texi: Renamed from
11680         doc/glibc-functions/isprint_l.texi.
11681         * doc/posix-functions/ispunct_l.texi: Renamed from
11682         doc/glibc-functions/ispunct_l.texi.
11683         * doc/posix-functions/isspace_l.texi: Renamed from
11684         doc/glibc-functions/isspace_l.texi.
11685         * doc/posix-functions/isupper_l.texi: Renamed from
11686         doc/glibc-functions/isupper_l.texi.
11687         * doc/posix-functions/iswalnum_l.texi: Renamed from
11688         doc/glibc-functions/iswalnum_l.texi.
11689         * doc/posix-functions/iswalpha_l.texi: Renamed from
11690         doc/glibc-functions/iswalpha_l.texi.
11691         * doc/posix-functions/iswblank_l.texi: Renamed from
11692         doc/glibc-functions/iswblank_l.texi.
11693         * doc/posix-functions/iswcntrl_l.texi: Renamed from
11694         doc/glibc-functions/iswcntrl_l.texi.
11695         * doc/posix-functions/iswctype_l.texi: Renamed from
11696         doc/glibc-functions/iswctype_l.texi.
11697         * doc/posix-functions/iswdigit_l.texi: Renamed from
11698         doc/glibc-functions/iswdigit_l.texi.
11699         * doc/posix-functions/iswgraph_l.texi: Renamed from
11700         doc/glibc-functions/iswgraph_l.texi.
11701         * doc/posix-functions/iswlower_l.texi: Renamed from
11702         doc/glibc-functions/iswlower_l.texi.
11703         * doc/posix-functions/iswprint_l.texi: Renamed from
11704         doc/glibc-functions/iswprint_l.texi.
11705         * doc/posix-functions/iswpunct_l.texi: Renamed from
11706         doc/glibc-functions/iswpunct_l.texi.
11707         * doc/posix-functions/iswspace_l.texi: Renamed from
11708         doc/glibc-functions/iswspace_l.texi.
11709         * doc/posix-functions/iswupper_l.texi: Renamed from
11710         doc/glibc-functions/iswupper_l.texi.
11711         * doc/posix-functions/iswxdigit_l.texi: Renamed from
11712         doc/glibc-functions/iswxdigit_l.texi.
11713         * doc/posix-functions/isxdigit_l.texi: Renamed from
11714         doc/glibc-functions/isxdigit_l.texi.
11715         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
11716         doc/glibc-functions/mbsnrtowcs.texi.
11717         * doc/posix-functions/mkdtemp.texi: Renamed from
11718         doc/glibc-functions/mkdtemp.texi.
11719         * doc/posix-functions/newlocale.texi: Renamed from
11720         doc/glibc-functions/newlocale.texi.
11721         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
11722         doc/glibc-functions/nl_langinfo_l.texi.
11723         * doc/posix-functions/open_memstream.texi: Renamed from
11724         doc/glibc-functions/open_memstream.texi.
11725         * doc/posix-functions/opterr.texi: Renamed from
11726         doc/glibc-functions/opterr.texi.
11727         * doc/posix-functions/optind.texi: Renamed from
11728         doc/glibc-functions/optind.texi.
11729         * doc/posix-functions/optopt.texi: Renamed from
11730         doc/glibc-functions/optopt.texi.
11731         * doc/posix-functions/psignal.texi: Renamed from
11732         doc/glibc-functions/psignal.texi.
11733         * doc/posix-functions/scandir.texi: Renamed from
11734         doc/glibc-functions/scandir.texi.
11735         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
11736         doc/glibc-functions/sched_get_priority_min.texi.
11737         * doc/posix-functions/signgam.texi: Renamed from
11738         doc/glibc-functions/signgam.texi.
11739         * doc/posix-functions/stpcpy.texi: Renamed from
11740         doc/glibc-functions/stpcpy.texi.
11741         * doc/posix-functions/stpncpy.texi: Renamed from
11742         doc/glibc-functions/stpncpy.texi.
11743         * doc/posix-functions/strcasecmp_l.texi: Renamed from
11744         doc/glibc-functions/strcasecmp_l.texi.
11745         * doc/posix-functions/strcoll_l.texi: Renamed from
11746         doc/glibc-functions/strcoll_l.texi.
11747         * doc/posix-functions/strfmon_l.texi: Renamed from
11748         doc/glibc-functions/strfmon_l.texi.
11749         * doc/posix-functions/strftime_l.texi: Renamed from
11750         doc/glibc-functions/strftime_l.texi.
11751         * doc/posix-functions/strncasecmp_l.texi: Renamed from
11752         doc/glibc-functions/strncasecmp_l.texi.
11753         * doc/posix-functions/strndup.texi: Renamed from
11754         doc/glibc-functions/strndup.texi.
11755         * doc/posix-functions/strnlen.texi: Renamed from
11756         doc/glibc-functions/strnlen.texi.
11757         * doc/posix-functions/strsignal.texi: Renamed from
11758         doc/glibc-functions/strsignal.texi.
11759         * doc/posix-functions/strxfrm_l.texi: Renamed from
11760         doc/glibc-functions/strxfrm_l.texi.
11761         * doc/posix-functions/timer_gettime.texi: Renamed from
11762         doc/glibc-functions/timer_gettime.texi.
11763         * doc/posix-functions/tolower_l.texi: Renamed from
11764         doc/glibc-functions/tolower_l.texi.
11765         * doc/posix-functions/toupper_l.texi: Renamed from
11766         doc/glibc-functions/toupper_l.texi.
11767         * doc/posix-functions/towctrans_l.texi: Renamed from
11768         doc/glibc-functions/towctrans_l.texi.
11769         * doc/posix-functions/towlower_l.texi: Renamed from
11770         doc/glibc-functions/towlower_l.texi.
11771         * doc/posix-functions/towupper_l.texi: Renamed from
11772         doc/glibc-functions/towupper_l.texi.
11773         * doc/posix-functions/uselocale.texi: Renamed from
11774         doc/glibc-functions/uselocale.texi.
11775         * doc/posix-functions/vdprintf.texi: Renamed from
11776         doc/glibc-functions/vdprintf.texi.
11777         * doc/posix-functions/wcpcpy.texi:
11778         Renamed from doc/glibc-functions/wcpcpy.texi.
11779         * doc/posix-functions/wcpncpy.texi: Renamed from
11780         doc/glibc-functions/wcpncpy.texi.
11781         * doc/posix-functions/wcscasecmp.texi: Renamed from
11782         doc/glibc-functions/wcscasecmp.texi.
11783         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
11784         doc/glibc-functions/wcscasecmp_l.texi.
11785         * doc/posix-functions/wcscoll_l.texi: Renamed from
11786         doc/glibc-functions/wcscoll_l.texi.
11787         * doc/posix-functions/wcsdup.texi: Renamed from
11788         doc/glibc-functions/wcsdup.texi.
11789         * doc/posix-functions/wcsncasecmp.texi: Renamed from
11790         doc/glibc-functions/wcsncasecmp.texi.
11791         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
11792         doc/glibc-functions/wcsncasecmp_l.texi.
11793         * doc/posix-functions/wcsnlen.texi: Renamed from
11794         doc/glibc-functions/wcsnlen.texi.
11795         * doc/posix-functions/wcsnrtombs.texi: Renamed from
11796         doc/glibc-functions/wcsnrtombs.texi.
11797         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
11798         doc/glibc-functions/wcsxfrm_l.texi.
11799         * doc/posix-functions/wctrans_l.texi: Renamed from
11800         doc/glibc-functions/wctrans_l.texi.
11801         * doc/posix-functions/wctype_l.texi: Renamed from
11802         doc/glibc-functions/wctype_l.texi.
11803         * doc/gnulib.texi (Function Substitutes): Add these subsections.
11804         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
11805         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
11806         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
11807         these subsections.
11808         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
11809         Remove sections.
11810
11811 2008-12-14  Bruno Haible  <bruno@clisp.org>
11812
11813         Update doc for POSIX:2008.
11814         * doc/posix-functions/*.texi: Update URL of POSIX specification.
11815
11816 2008-12-14  Bruno Haible  <bruno@clisp.org>
11817
11818         Update doc for POSIX:2008.
11819         * doc/pastposix-functions/bcmp.texi: Renamed from
11820         doc/posix-functions/bcmp.texi.
11821         * doc/pastposix-functions/bcopy.texi: Renamed from
11822         doc/posix-functions/bcopy.texi.
11823         * doc/pastposix-functions/bsd_signal.texi: Renamed from
11824         doc/posix-functions/bsd_signal.texi.
11825         * doc/pastposix-functions/bzero.texi: Renamed from
11826         doc/posix-functions/bzero.texi.
11827         * doc/pastposix-functions/ecvt.texi: Renamed from
11828         doc/posix-functions/ecvt.texi.
11829         * doc/pastposix-functions/fcvt.texi: Renamed from
11830         doc/posix-functions/fcvt.texi.
11831         * doc/pastposix-functions/ftime.texi: Renamed from
11832         doc/posix-functions/ftime.texi.
11833         * doc/pastposix-functions/gcvt.texi: Renamed from
11834         doc/posix-functions/gcvt.texi.
11835         * doc/pastposix-functions/getcontext.texi: Renamed from
11836         doc/posix-functions/getcontext.texi.
11837         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
11838         doc/posix-functions/gethostbyaddr.texi.
11839         * doc/pastposix-functions/gethostbyname.texi: Renamed from
11840         doc/posix-functions/gethostbyname.texi.
11841         * doc/pastposix-functions/getwd.texi: Renamed from
11842         doc/posix-functions/getwd.texi.
11843         * doc/pastposix-functions/h_errno.texi: Renamed from
11844         doc/posix-functions/h_errno.texi.
11845         * doc/pastposix-functions/index.texi: Renamed from
11846         doc/posix-functions/index.texi.
11847         * doc/pastposix-functions/makecontext.texi: Renamed from
11848         doc/posix-functions/makecontext.texi.
11849         * doc/pastposix-functions/mktemp.texi: Renamed from
11850         doc/posix-functions/mktemp.texi.
11851         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
11852         doc/posix-functions/pthread_attr_getstackaddr.texi.
11853         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
11854         doc/posix-functions/pthread_attr_setstackaddr.texi.
11855         * doc/pastposix-functions/rindex.texi: Renamed from
11856         doc/posix-functions/rindex.texi.
11857         * doc/pastposix-functions/scalb.texi: Renamed from
11858         doc/posix-functions/scalb.texi.
11859         * doc/pastposix-functions/setcontext.texi: Renamed from
11860         doc/posix-functions/setcontext.texi.
11861         * doc/pastposix-functions/swapcontext.texi: Renamed from
11862         doc/posix-functions/swapcontext.texi.
11863         * doc/pastposix-functions/ualarm.texi: Renamed from
11864         doc/posix-functions/ualarm.texi.
11865         * doc/pastposix-functions/usleep.texi: Renamed from
11866         doc/posix-functions/usleep.texi.
11867         * doc/pastposix-functions/vfork.texi: Renamed from
11868         doc/posix-functions/vfork.texi.
11869         * doc/pastposix-functions/wcswcs.texi: Renamed from
11870         doc/posix-functions/wcswcs.texi.
11871         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
11872         (Function Substitutes): Update.
11873
11874 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11875
11876         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
11877         m4/strerror.m4.
11878
11879 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11880             Bruno Haible  <bruno@clisp.org>
11881
11882         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
11883
11884 2008-12-13  Bruno Haible  <bruno@clisp.org>
11885
11886         * modules/strtoull (Depends-on): Remove unistd.
11887
11888 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11889
11890         * modules/strtoull (Depends-on): Add stdlib.
11891
11892 2008-12-11  Simon Josefsson  <simon@josefsson.org>
11893
11894         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
11895
11896 2008-12-10  Jim Meyering  <meyering@redhat.com>
11897
11898         gl_ASSERT: don't say assertions are disabled when they're not
11899         * m4/assert.m4 (gl_ASSERT): Do not make configure report
11900         "checking whether to enable assertions... no", when they are in
11901         fact enabled.  This is solely a bug in the output of configure.
11902         In spite of saying "no", NDEBUG was not defined in that case.
11903         Also, as noted by Eric Blake, leave assertions enabled upon
11904         --enable-assert=INVALID.
11905
11906 2008-12-10  Bruno Haible  <bruno@clisp.org>
11907
11908         Change MODULES.html to refer to POSIX:2008 where possible.
11909         * MODULES.html.sh (POSIX2008_URL): New variable.
11910         (posix_headers): Remove sys/timeb, ucontext.
11911         (posix2001_headers): New variable.
11912         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
11913         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
11914         index, makecontext, mktemp, pthread_attr_getstackaddr,
11915         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
11916         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
11917         (posix2001_functions): New variable.
11918         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
11919         otherwise.
11920
11921 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11922
11923         add missing include to parse-duration.c
11924         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
11925         * modules/parse-duration (Depends-on): Add xalloc.
11926
11927         fix sed script reading maint.mk
11928         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
11929         (syntax-check-rules): Use it.
11930
11931 2008-12-09  Bruno Haible  <bruno@clisp.org>
11932
11933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
11934         MacOS X 10.4/PowerPC.
11935         Reported by Simon Josefsson.
11936
11937 2008-12-08  Jim Meyering  <meyering@redhat.com>
11938
11939         work around mingw's lack of some S_IF definitions
11940         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
11941         Reported by Simon Josefsson.
11942
11943 2008-12-08  Bruno Haible  <bruno@clisp.org>
11944
11945         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
11946         applied to variables. Needed on MacOS X 10.4/PowerPC.
11947         Reported by Simon Josefsson.
11948
11949 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
11950         and Eric Blake  <ebb9@byu.net>
11951
11952         assert: honor --enable-assert
11953         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
11954         order to honor --enable-assert, rather than treating it as a
11955         synonym for --disable-assert.
11956
11957 2008-12-08  Jim Meyering  <meyering@redhat.com>
11958
11959         * lib/posixtm.c: Remove now-useless declaration of mktime.
11960
11961         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
11962
11963 2008-12-07  Bruno Haible  <bruno@clisp.org>
11964
11965         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
11966         test_once): Mark functions as static.
11967         * tests/test-tls.c (test_tls): Likewise.
11968
11969 2008-12-07  Bruno Haible  <bruno@clisp.org>
11970
11971         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
11972         iconv_register_autodetect.
11973
11974 2008-12-07  Jim Meyering  <meyering@redhat.com>
11975
11976         posixtm.c: avoid a warning
11977         * lib/posixtm.c (posixtime): Don't initialize tm0.
11978         It's no longer needed to placate gcc4's -Wuninitialized,
11979         and the attempt to placate would elicit a new warning.
11980
11981         unicodeio.c: mark unused parameters
11982         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
11983         (fallback_failure_callback): Likewise.
11984
11985 2008-12-07  Bruno Haible  <bruno@clisp.org>
11986
11987         * gnulib-tool (func_create_testdir): When building the tests
11988         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
11989         Reported by Simon Josefsson.
11990
11991 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11992
11993         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
11994
11995 2008-12-06  Bruno Haible  <bruno@clisp.org>
11996
11997         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
11998         Suggested by Eric Blake.
11999
12000 2008-12-06  Bruno Haible  <bruno@clisp.org>
12001
12002         Fix a c-stack test failure on MacOS X.
12003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
12004         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
12005         handler for SIGBUS as well.
12006         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
12007         install a signal handler for SIGBUS as well.
12008         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
12009
12010 2008-12-06  Bruno Haible  <bruno@clisp.org>
12011
12012         Advocacy documentation.
12013         * doc/gnulib-intro.texi (Benefits): New section.
12014         * doc/gnulib.texi: Update.
12015
12016 2008-12-06  Bruno Haible  <bruno@clisp.org>
12017
12018         Document the 'manywarnings' module.
12019         * doc/manywarnings.texi: New file.
12020         * doc/gnulib.texi: Include it.
12021
12022 2008-12-05  Eric Blake  <ebb9@byu.net>
12023
12024         tests: silence some gcc warnings
12025         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
12026         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
12027         type mismatches.
12028
12029 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12030             Bruno Haible  <bruno@clisp.org>
12031
12032         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
12033
12034 2008-11-29  Jim Meyering  <meyering@redhat.com>
12035
12036         unicodeio.c: mark unused parameters
12037         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
12038         (fallback_failure_callback): Likewise.
12039
12040         fts: fix a thinko
12041         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
12042         (set_stat_type): Return S_IF*-valued "type" directly.
12043         Prompted by James Youngman's spotting a related bug.
12044         Confirmed by further testing through find.
12045
12046         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
12047         * lib/fts.c (D_TYPE): Define.
12048         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
12049         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
12050         (s_ifmt_shift_bits): New function.
12051         (set_stat_type): New function.
12052         (fts_build): When not calling fts_stat, call set_stat_type
12053         to propagate dirent.d_type info to fts_read caller.
12054         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
12055         fts_statp->st_mode type information may be valid.
12056
12057 2008-11-28  Simon Josefsson  <simon@josefsson.org>
12058
12059         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
12060         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
12061         <sds@gnu.org>.
12062
12063 2008-11-20  Bruno Haible  <bruno@clisp.org>
12064
12065         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
12066         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
12067         INCLUDE_NEXT.
12068         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
12069         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
12070         * modules/math (Makefile.am): Substitute
12071         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
12072         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12073
12074 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
12075             Bruno Haible  <bruno@clisp.org>
12076
12077         * lib/stdint.in.h: Define all type macros so that their expansion is
12078         a single typedef'ed token. Fixes a compilation failure in Boost which
12079         does "using ::int8_t;".
12080
12081 2008-11-18  Simon Josefsson  <simon@josefsson.org>
12082
12083         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
12084         gl_MANYWARN_ALL_GCC.
12085         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
12086         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
12087         * modules/manywarnings: New file.
12088         * MODULES.html.sh: Mention manywarnings module.
12089
12090 2008-11-18  Bruno Haible  <bruno@clisp.org>
12091
12092         * doc/gnulib-tool.texi (Unit tests): New section.
12093
12094 2008-11-18  Simon Josefsson  <simon@josefsson.org>
12095
12096         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
12097         paths like 'lib/po/foo.po'.
12098
12099 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12100
12101         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
12102         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
12103
12104 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12105
12106         * m4/warnings.m4: Use CPPFLAGS to really check whether the
12107         parameter works.
12108
12109 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12110
12111         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
12112
12113 2008-11-17  Bruce Korb  <bkorb@gnu.org>
12114
12115         * modules/parse-duration-tests: New file.
12116         * tests/test-parse-duration.sh: New file.
12117         * tests/test-parse-duration.c: New file.
12118
12119         New module 'parse-duration'.
12120         * lib/parse-duration.h: New file.
12121         * lib/parse-duration.c: New file.
12122         * modules/parse-duration: New file.
12123
12124 2008-11-17  Bruno Haible  <bruno@clisp.org>
12125
12126         * tests/test-select-out.sh: Comment out the first pipe test.
12127         Reported by Simon Josefsson.
12128
12129 2008-11-17  Bruno Haible  <bruno@clisp.org>
12130
12131         * modules/getaddrinfo (Depends-on): Add servent, hostent.
12132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
12133         gl_HOSTENT.
12134
12135 2008-11-17  Bruno Haible  <bruno@clisp.org>
12136
12137         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
12138         -lnetwork and -lnet. Needed for Haiku and BeOS.
12139
12140 2008-11-16  Bruno Haible  <bruno@clisp.org>
12141
12142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
12143
12144 2008-11-16  Bruno Haible  <bruno@clisp.org>
12145
12146         Avoid test failure on Haiku.
12147         * tests/test-fsync.c: Include <errno.h>.
12148         (main): Don't require that fsync (0) fails.
12149
12150 2008-11-15  Bruno Haible  <bruno@clisp.org>
12151
12152         New module 'hostent'.
12153         * modules/hostent: New file.
12154         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
12155
12156 2008-11-15  Bruno Haible  <bruno@clisp.org>
12157
12158         New module 'servent'.
12159         * modules/servent: New file.
12160         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
12161
12162 2008-11-15  Bruno Haible  <bruno@clisp.org>
12163
12164         Avoid generating same test program with two different rules.
12165         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
12166         test-frexp to test-frexp-nolibm.
12167         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
12168         test-frexpl to test-frexpl-nolibm.
12169
12170 2008-11-15  Bruno Haible  <bruno@clisp.org>
12171
12172         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
12173         $(FREXPL_LIBM).
12174
12175 2008-11-15  Bruno Haible  <bruno@clisp.org>
12176
12177         * lib/netdb.in.h: Activate the definitions also when the system's
12178         <netdb.h> has 'struct addrinfo'.
12179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
12180         EAI_OVERFLOW or AI_NUMERICSERV.
12181         * doc/posix-headers/netdb.texi: Document the problem.
12182
12183 2008-11-15  Bruno Haible  <bruno@clisp.org>
12184
12185         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
12186
12187         Make the 'sched' module work on platforms where <sched.h> exists but
12188         is incomplete (such as Haiku).
12189         * lib/sched.in.h; Include the system's <sched.h> if it exists.
12190         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
12191         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
12192         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
12193         HAVE_STRUCT_SCHED_PARAM.
12194         * modules/sched (Depends-on): Add include_next.
12195         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
12196         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
12197         * doc/posix-headers/sched.texi: Document the issue.
12198
12199 2008-11-13  Jim Meyering  <meyering@redhat.com>
12200
12201         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
12202         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
12203         test would fail due to the difference in the Report bugs to ...
12204         line.  The expected address is empty, "<>", while the actual
12205         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
12206
12207 2008-11-12  Bruno Haible  <bruno@clisp.org>
12208
12209         lstat: don't compile lstat.c on systems lacking lstat
12210         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
12211         which don't have lstat; this is handled by lib/sys_stat.in.h already.
12212         Reported by Daniel P. Berrange via Jim Meyering.
12213
12214 2008-11-12  Jim Meyering  <meyering@redhat.com>
12215
12216         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
12217
12218 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12219
12220         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
12221         instead.
12222
12223 2008-11-12  Bruno Haible  <bruno@clisp.org>
12224
12225         * lib/unicodeio.c: Include unistr.h.
12226         (utf8_wctomb): Remove function.
12227         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
12228
12229 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12230
12231         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
12232         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
12233         <bruno@clisp.org>.
12234         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
12235
12236 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12237
12238         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
12239         * doc/gnulib.texi: Add section for warnings.
12240
12241 2008-11-11  Bruno Haible  <bruno@clisp.org>
12242
12243         * lib/sockets.h: Add a comment.
12244
12245 2008-11-11  Karl Berry  <karl@gnu.org>
12246
12247         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
12248
12249 2008-11-11  Eric Blake  <ebb9@byu.net>
12250
12251         fdl.texi: avoid git symlinks
12252         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
12253
12254 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12255
12256         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
12257
12258 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12259
12260         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
12261         (gl_WARN_ADD): Substitute $2 if literal.
12262
12263 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12264
12265         * m4/warning.m4: Remove.
12266
12267 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12268
12269         * m4/warnings.m4: Almost complete rewrite. :-)
12270
12271 2008-11-10  Simon Josefsson  <simon@josefsson.org>
12272
12273         * modules/warnings: New module.
12274         * m4/warnings.m4: New file.
12275         * MODULES.html.sh: Mention warnings module.
12276         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
12277         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12278
12279 2008-11-10  Eric Blake  <ebb9@byu.net>
12280
12281         fdl.texi: make a symlink to the latest version
12282         * doc/standards.texi: Revert today's earlier change.
12283         * doc/fdl-1.2.texi: Rename from old fdl.texi...
12284         * doc/fdl.texi: ...and replace this with a symlink to the newer
12285         fdl-1.3.texi.
12286
12287 2008-11-10  Bruno Haible  <bruno@clisp.org>
12288
12289         * tests/test-select-fd.c (main): Accept the result file name as fourth
12290         argument.
12291         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
12292         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
12293
12294 2008-11-10  Bruno Haible  <bruno@clisp.org>
12295
12296         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
12297         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
12298         as autoconf-substituted macros.
12299         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
12300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
12301         gl_NETDB_H_DEFAULTS. Set these variables.
12302         * modules/netdb (Makefile.am): Substitute these variables.
12303
12304 2008-11-10  Eric Blake  <ebb9@byu.net>
12305
12306         standards.texi: include correct file for FDL 1.3
12307         * doc/standards.texi (GNU Free Documentation License): Change
12308         include file to pull in FDL 1.3, not 1.2.
12309
12310         fdl.texi: revert accidental change to license
12311         * doc/fdl.texi: This is FDL 1.2, not 1.3.
12312
12313 2008-11-10  Bruno Haible  <bruno@clisp.org>
12314
12315         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
12316         cross-compiling guesses also when the native compile gives no result.
12317
12318 2008-11-10  Bruno Haible  <bruno@clisp.org>
12319
12320         * lib/spawni.c (__spawni): Force variable into the stack.
12321
12322 2008-11-10  Bruno Haible  <bruno@clisp.org>
12323
12324         Add support for Haiku.
12325         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
12326         glibc and BeOS, but also on Haiku.
12327         * lib/fpurge.c (fpurge): Likewise.
12328         * lib/freadable.c (freadable): Likewise.
12329         * lib/freadahead.c (freadahead): Likewise.
12330         * lib/freading.c (freading): Likewise.
12331         * lib/freadptr.c (freadptr): Likewise.
12332         * lib/freadseek.c (freadptrinc): Likewise.
12333         * lib/fseeko.c (rpl_fseeko): Likewise.
12334         * lib/fseterr.c (fseterr): Likewise.
12335         * lib/fwritable.c (fwritable): Likewise.
12336         * lib/fwriting.c (fwriting): Likewise.
12337         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
12338
12339 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
12340
12341         * lib/config.charset: Treat Haiku like BeOS.
12342
12343 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
12344
12345         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
12346         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
12347
12348 2008-11-08  Bruno Haible  <bruno@clisp.org>
12349
12350         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
12351         AC_CACHE_CHECK.
12352
12353 2008-11-08  Bruno Haible  <bruno@clisp.org>
12354
12355         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
12356
12357 2008-11-08  Bruno Haible  <bruno@clisp.org>
12358
12359         * tests/test-select-fd.c: New file.
12360         * tests/test-select-in.sh: New file.
12361         * tests/test-select-out.sh: New file.
12362         * tests/test-select-stdin.c: New file.
12363         * modules/select-tests (Files): Add the new files.
12364         (Depends-on): Add gettimeofday.
12365         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
12366         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
12367         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
12368
12369 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
12370             Bruno Haible  <bruno@clisp.org>
12371
12372         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
12373
12374 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
12375
12376         * build-aux/pmccabe2html: Added support for C++ source files.
12377
12378 2008-11-05  Ben Pfaff  <blp@gnu.org>
12379
12380         Fix lib/close.c build on Windows.
12381         * modules/close (Files): Add lib/w32sock.h.
12382
12383 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
12384
12385         Accept Bison's NEWS format.
12386         * build-aux/announce-gen (print_news_deltas): Tweak
12387         $re_prefix.
12388
12389 2008-11-04  Bruno Haible  <bruno@clisp.org>
12390
12391         * modules/random_r (Maintainer): Add glibc.
12392
12393 2008-11-04  Simon Josefsson  <simon@josefsson.org>
12394
12395         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
12396         by karl@freefriends.org (Karl Berry).
12397         * doc/alloca.texi: Likewise.
12398         * doc/c-ctype.texi: Likewise.
12399         * doc/c-strcase.texi: Likewise.
12400         * doc/c-strcaseeq.texi: Likewise.
12401         * doc/c-strcasestr.texi: Likewise.
12402         * doc/c-strstr.texi: Likewise.
12403         * doc/c-strtod.texi: Likewise.
12404         * doc/c-strtold.texi: Likewise.
12405         * doc/ctime.texi: Likewise.
12406         * doc/error.texi: Likewise.
12407         * doc/fdl.texi: Likewise.
12408         * doc/gcd.texi: Likewise.
12409         * doc/getdate.texi: Likewise.
12410         * doc/gnulib-intro.texi: Likewise.
12411         * doc/gnulib-tool.texi: Likewise.
12412         * doc/gnulib.texi: Likewise.
12413         * doc/inet_ntoa.texi: Likewise.
12414         * doc/maintain.texi: Likewise.
12415         * doc/make-stds.texi: Likewise.
12416         * doc/quote.texi: Likewise.
12417         * doc/regexprops-generic.texi: Likewise.
12418         * doc/standards.texi: Likewise.
12419         * doc/verify.texi: Likewise.
12420         * doc/visibility.texi: Likewise.
12421         * doc/gnulib.texi (GNU Free Documentation License): Include
12422         fdl-1.3.texi instead of fdl.texi.
12423
12424 2008-11-04  Simon Josefsson  <simon@josefsson.org>
12425
12426         * doc/fdl-1.3.texi: New file, from
12427         <http://www.gnu.org/licenses/fdl-1.3.texi>.
12428         * modules/fdl-1.3: Add.
12429         * MODULES.html.sh: Add fdl-1.3.
12430
12431 2008-11-03  Bruno Haible  <bruno@clisp.org>
12432
12433         Make determination of absolute name of header file work with AIX xlc.
12434         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
12435         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
12436         preprocessing.
12437         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12438         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
12439
12440 2008-11-03  Simon Josefsson  <simon@josefsson.org>
12441
12442         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
12443         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
12444         <ludo@gnu.org>.
12445
12446 2008-11-02  Bruno Haible  <bruno@clisp.org>
12447
12448         Mark 'strpbrk' obsolete.
12449         * modules/strpbrk (Status, Notice): New sections.
12450         * modules/strtok_r (Depends-on): Add strpbrk.
12451
12452 2008-11-02  Bruno Haible  <bruno@clisp.org>
12453
12454         Mark 'strdup' obsolete.
12455         * modules/strdup (Status, Notice): New sections.
12456         * modules/findprog (Depends-on): Add strdup.
12457         * modules/getaddrinfo (Depends-on): Likewise.
12458         * modules/localename (Depends-on): Likewise.
12459         * modules/relocatable-lib (Depends-on): Likewise.
12460         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
12461         * modules/relocatable-prog (Depends-on): Likewise.
12462         * modules/trim (Depends-on): Likewise.
12463         * modules/unictype/gen-ctype (Depends-on): Likewise.
12464         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
12465
12466 2008-11-02  Bruno Haible  <bruno@clisp.org>
12467
12468         Mark 'strcspn' obsolete.
12469         * modules/strcspn (Status, Notice): New sections.
12470
12471 2008-11-02  Bruno Haible  <bruno@clisp.org>
12472
12473         Mark 'rmdir' obsolete.
12474         * modules/rmdir (Status, Notice): New sections.
12475         * modules/clean-temp (Depends-on): Add rmdir.
12476         * modules/openat (Depends-on): Likewise.
12477
12478 2008-11-02  Bruno Haible  <bruno@clisp.org>
12479
12480         Mark 'raise' obsolete.
12481         * modules/raise (Status, Notice): New sections.
12482         (Include): Specify <signal.h>.
12483         * modules/stdio (Depends-on): Add raise.
12484         * modules/write (Depends-on): Likewise.
12485
12486 2008-11-02  Bruno Haible  <bruno@clisp.org>
12487
12488         Mark 'memset' obsolete.
12489         * modules/memset (Status, Notice): New sections.
12490
12491 2008-11-02  Bruno Haible  <bruno@clisp.org>
12492
12493         Mark 'memmove' obsolete.
12494         * modules/memmove (Status, Notice): New sections.
12495         * modules/argp (Depends-on): Add memmove.
12496         * modules/argz (Depends-on): Likewise.
12497         * modules/canonicalize (Depends-on): Likewise.
12498         * modules/canonicalize-lgpl (Depends-on): Likewise.
12499         * modules/fts (Depends-on): Likewise.
12500         * modules/getcwd (Depends-on): Likewise.
12501         * modules/human (Depends-on): Likewise.
12502         * modules/regex (Depends-on): Likewise.
12503         * modules/striconveh (Depends-on): Likewise.
12504         * modules/trim (Depends-on): Likewise.
12505         * modules/unistr/u8-move (Depends-on): Likewise.
12506         * modules/unistr/u16-move (Depends-on): Likewise.
12507         * modules/unistr/u32-move (Depends-on): Likewise.
12508
12509 2008-11-02  Bruno Haible  <bruno@clisp.org>
12510
12511         Mark 'memcpy' obsolete.
12512         * modules/memcpy (Status, Notice): New sections.
12513
12514 2008-11-02  Bruno Haible  <bruno@clisp.org>
12515
12516         Mark 'memcmp' obsolete.
12517         * modules/memcmp (Status, Notice): New sections.
12518         * modules/argmatch (Depends-on): Add memchr.
12519         * modules/backupfile (Depends-on): Likewise.
12520         * modules/c-strcasestr (Depends-on): Likewise.
12521         * modules/crypto/des (Depends-on): Likewise.
12522         * modules/csharpcomp (Depends-on): Likewise.
12523         * modules/fnmatch (Depends-on): Likewise.
12524         * modules/git-merge-changelog (Depends-on): Likewise.
12525         * modules/isnand (Depends-on): Likewise.
12526         * modules/isnand-nolibm (Depends-on): Likewise.
12527         * modules/isnanf (Depends-on): Likewise.
12528         * modules/isnanf-nolibm (Depends-on): Likewise.
12529         * modules/isnanl (Depends-on): Likewise.
12530         * modules/isnanl-nolibm (Depends-on): Likewise.
12531         * modules/mbchar (Depends-on): Likewise.
12532         * modules/memcoll (Depends-on): Likewise.
12533         * modules/quotearg (Depends-on): Likewise.
12534         * modules/regex (Depends-on): Likewise.
12535         * modules/relocatable-prog (Depends-on): Likewise.
12536         * modules/same (Depends-on): Likewise.
12537         * modules/signbit (Depends-on): Likewise.
12538         * modules/strcasestr-simple (Depends-on): Likewise.
12539         * modules/unictype/gen-ctype (Depends-on): Likewise.
12540         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
12541         * modules/uniname/uniname (Depends-on): Likewise.
12542         * modules/unistr/u8-cmp (Depends-on): Likewise.
12543
12544 2008-11-02  Bruno Haible  <bruno@clisp.org>
12545
12546         Mark 'memchr' obsolete.
12547         * modules/memchr (Status, Notice): New sections.
12548         * modules/argp (Depends-on): Add memchr.
12549         * modules/base64 (Depends-on): Likewise.
12550         * modules/c-strcasestr (Depends-on): Likewise.
12551         * modules/chdir-long (Depends-on): Likewise.
12552         * modules/fnmatch (Depends-on): Likewise.
12553         * modules/getsubopt (Depends-on): Likewise.
12554         * modules/git-merge-changelog (Depends-on): Likewise.
12555         * modules/glob (Depends-on): Likewise.
12556         * modules/strcasestr-simple (Depends-on): Likewise.
12557         * modules/strnlen (Depends-on): Likewise.
12558
12559 2008-11-02  Bruno Haible  <bruno@clisp.org>
12560
12561         Mark 'atexit' obsolete.
12562         * modules/atexit (Status, Notice): New sections.
12563         * modules/chdir-long (Depends-on): Add atexit.
12564         * modules/wait-process (Depends-on): Likewise.
12565
12566 2008-11-02  Bruno Haible  <bruno@clisp.org>
12567
12568         * gnulib-tool: New option --with-obsolete.
12569         (func_usage): Document it.
12570         (func_modules_transitive_closure): Drop obsolete dependencies if
12571         incobsolete is not true.
12572         (func_import): Read and save the incobsolete variable to the cache.
12573
12574 2008-11-02  Bruno Haible  <bruno@clisp.org>
12575
12576         * modules/TEMPLATE-EXTENDED: New field 'Status'.
12577         * gnulib-tool: New option --extract-status.
12578         (func_usage): Document it.
12579         (sed_extract_prog): Recognize it.
12580         (func_get_status): New function.
12581
12582 2008-10-30  Simon Josefsson  <simon@josefsson.org>
12583
12584         * modules/sockets (License): Change from LGPL to LGPLv2+.
12585
12586 2008-10-28  Simon Josefsson  <simon@josefsson.org>
12587
12588         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
12589
12590 2008-10-28  Simon Josefsson  <simon@josefsson.org>
12591
12592         * MODULES.html.sh (Support for systems lacking POSIX:2001):
12593         Mention times and sys_times.
12594         * modules/sys_times, modules/sys_times-tests: New modules.
12595         * modules/times, modules/times-tests: Likewise
12596         * m4/sys_times_h.m4: New file.
12597         * lib/sys_times.in.h: Likewise
12598         * lib/times.c: Likewise.
12599         * tests/test-sys_times.c: Likewise.
12600         * tests/test-times.c: Likewise.
12601         * doc/posix-headers/sys_times.texi: Update.
12602         * doc/posix-functions/times.texi: Update.
12603
12604 2008-10-28  Jim Meyering  <meyering@redhat.com>
12605
12606         * modules/tempname (Depends-on): Add lstat.
12607
12608         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
12609
12610 2008-10-28  Simon Josefsson  <simon@josefsson.org>
12611
12612         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
12613         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
12614         using idiom used elsewhere in gnulib.
12615
12616 2008-10-27  Jim Meyering  <meyering@redhat.com>
12617
12618         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
12619
12620 2008-10-27  Simon Josefsson  <simon@josefsson.org>
12621
12622         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
12623         TESTS_ENVIRONMENT, for shell scripts that needs to call built
12624         programs.
12625         * tests/test-argp-2.sh: Use $EXEEXT when needed.
12626
12627 2008-10-27  Simon Josefsson  <simon@josefsson.org>
12628
12629         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
12630
12631 2008-10-27  Bruno Haible  <bruno@clisp.org>
12632
12633         * tests/test-lstat.c: Include <stdio.h>.
12634
12635 2008-10-27  Simon Josefsson  <simon@josefsson.org>
12636
12637         * modules/lstat-tests: New module.
12638         * tests/test-lstat.c: New file.
12639
12640 2008-10-26  Jim Meyering  <meyering@redhat.com>
12641
12642         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
12643
12644 2008-10-26  Simon Josefsson  <simon@josefsson.org>
12645             Bruno Haible  <bruno@clisp.org>
12646
12647         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
12648         * modules/configmake (Include): Add a note that the include must come
12649         after all system headers.
12650         * lib/javaversion.c: Include configmake.h after all other includes.
12651
12652 2008-10-26  Bruno Haible  <bruno@clisp.org>
12653
12654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
12655         HAVE_STRUCT_RANDOM_DATA to 1.
12656         (gl_STDLIB_H): Simplify.
12657
12658 2008-10-26  Simon Josefsson  <simon@josefsson.org>
12659
12660         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
12661         substitute HAVE_STRUCT_RANDOM_DATA.
12662         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
12663         random_data.
12664         * modules/stdlib (Makefile.am): Substitute
12665         HAVE_STRUCT_RANDOM_DATA.
12666
12667 2008-10-26  Simon Josefsson  <simon@josefsson.org>
12668
12669         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
12670         * doc/gnulib-intro.texi (Copyright): Likewise.
12671
12672 2008-10-26  Simon Josefsson  <simon@josefsson.org>
12673
12674         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
12675         findings.
12676
12677 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
12678             Bruno Haible  <bruno@clisp.org>
12679
12680         * lib/unistd.in.h: Include <winsock2.h>.
12681         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
12682         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
12683         Provide dummy declarations.
12684         (gethostname): Override.
12685         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
12686         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
12687         gl_PREREQ_SYS_H_WINSOCK2.
12688         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
12689         * doc/posix-functions/gethostname.texi: More details.
12690
12691 2008-10-25  Bruno Haible  <bruno@clisp.org>
12692
12693         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
12694         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
12695         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
12696
12697         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
12698         here ...
12699         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
12700         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
12701         gl_UNISTD_H_DEFAULTS.
12702
12703 2008-10-25  Eric Blake  <ebb9@byu.net>
12704
12705         signbit: avoid spurious compiler failure
12706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
12707         declarations inside function.
12708
12709 2008-10-24  Simon Josefsson  <simon@josefsson.org>
12710             Bruno Haible  <bruno@clisp.org>
12711
12712         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
12713         * modules/random_r (Depends-on): Add stdint.
12714
12715 2008-10-24  Bruno Haible  <bruno@clisp.org>
12716
12717         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
12718         Eggert.
12719         * modules/strerror (License): Likewise.
12720
12721 2008-10-24  Jim Meyering  <meyering@redhat.com>
12722
12723         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
12724         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
12725
12726 2008-10-24  Eric Blake  <ebb9@byu.net>
12727
12728         getgroups: fix compilation when getgroups is available
12729         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
12730         but with <config.h> override of getgroups disabled.
12731
12732 2008-10-24  Simon Josefsson  <simon@josefsson.org>
12733
12734         * doc/gnulib.texi (Header files): Add note about C++ problems.
12735         Explained by Bruno Haible <bruno@clisp.org>.
12736
12737 2008-10-23  Bruno Haible  <bruno@clisp.org>
12738
12739         Define a dummy SA_NODEFER macro on Interix.
12740         * lib/signal.in.h (SA_NODEFER): Define fallback.
12741         Reported by Aleksey Cheusov <cheusov@tut.by> via
12742         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
12743
12744 2008-10-23  Bruno Haible  <bruno@clisp.org>
12745
12746         * modules/freadahead (License): Change to LGPLv2+.
12747         Suggested by Simon Josefsson.
12748
12749 2008-10-23  Jim Meyering  <meyering@redhat.com>
12750
12751         random_r: new module
12752         * modules/random_r: New file.
12753         * m4/random_r.m4: New file.
12754         * lib/random_r.c: New file, from glibc.
12755         * modules/random_r-tests: New file.
12756         * tests/test-random_r.c: New file.
12757         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
12758          Declare.
12759         (RAND_MAX): Define.
12760         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
12761         * modules/stdlib: Substitute them, too.
12762         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
12763         * doc/glibc-functions/initstate_r.texi: Mention the new module.
12764         * doc/glibc-functions/random_r.texi: Likewise.
12765         * doc/glibc-functions/setstate_r.texi: Likewise.
12766         * doc/glibc-functions/srandom_r.texi: Likewise.
12767         * config/srclist.txt: Mention it.
12768
12769 2008-10-23  David Lutterkort  <lutter@redhat.com>
12770
12771         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
12772         link requirement
12773
12774 2008-10-23  Jim Meyering  <meyering@redhat.com>
12775
12776         selinux-h: mark parameters of stub functions as intentionally unused
12777         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
12778         * lib/se-context.in.h: Likewise.
12779
12780 2008-10-22  Simon Josefsson  <simon@josefsson.org>
12781
12782         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
12783
12784 2008-10-22  Simon Josefsson  <simon@josefsson.org>
12785
12786         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
12787
12788 2008-10-22  Eric Blake  <ebb9@byu.net>
12789
12790         glthread/thread: avoid compiler warning
12791         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
12792         Add unreachable abort to silence compiler.
12793
12794 2008-10-22  Eric Blake  <ebb9@byu.net>
12795
12796         netdb: also supply struct addrinfo for cygwin 1.5.x
12797         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
12798         older cygwin.
12799         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
12800         cygwin.
12801         * doc/posix-headers/netdb.texi (netdb.h): Document this.
12802
12803 2008-10-22  Bruno Haible  <bruno@clisp.org>
12804
12805         * users.txt: Update entry about pspp.
12806
12807 2008-10-21  Bruno Haible  <bruno@clisp.org>
12808
12809         Simplification.
12810         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
12811         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
12812
12813         Simplification.
12814         * lib/ioctl.c (ioctl): Don't undefine.
12815         * lib/socket.c (socket): Don't undefine.
12816
12817         Remove unused module indicator macros.
12818         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
12819         GNULIB_$1 as a C macro.
12820
12821         * doc/posix-functions/close.texi: Undo last change.
12822         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
12823         Windows platforms.
12824
12825 2008-10-21  Bruno Haible  <bruno@clisp.org>
12826
12827         Add gethostname() declaration to <unistd.h>.
12828         * lib/unistd.in.h (gethostname): New declaration.
12829         * lib/gethostname.c: Include <unistd.h>.
12830         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
12831         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
12832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
12833         and HAVE_GETHOSTNAME.
12834         * modules/gethostname (Depends-on): Add unistd.
12835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12836         (Include): Specify <unistd.h>.
12837         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
12838         HAVE_GETHOSTNAME.
12839         * tests/test-gethostname.c: Include <unistd.h> first.
12840
12841 2008-10-21  Bruno Haible  <bruno@clisp.org>
12842
12843         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
12844         * modules/select-tests (Depends-on): Likewise.
12845         Reported by Simon Josefsson.
12846
12847 2008-10-21  Simon Josefsson  <simon@josefsson.org>
12848
12849         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
12850         * lib/accept.c: New file, based on winsock.c.
12851         * lib/bind.c: New file, based on winsock.c.
12852         * lib/connect.c: New file, based on winsock.c.
12853         * lib/getpeername.c: New file, based on winsock.c.
12854         * lib/getsockname.c: New file, based on winsock.c.
12855         * lib/getsockopt.c: New file, based on winsock.c.
12856         * lib/ioctl.c: New file, based on winsock.c.
12857         * lib/listen.c: New file, based on winsock.c.
12858         * lib/recv.c: New file, based on winsock.c.
12859         * lib/recvfrom.c: New file, based on winsock.c.
12860         * lib/send.c: New file, based on winsock.c.
12861         * lib/sendto.c: New file, based on winsock.c.
12862         * lib/setsockopt.c: New file, based on winsock.c.
12863         * lib/shutdown.c: New file, based on winsock.c.
12864         * lib/socket.c: New file, based on winsock.c.
12865         * lib/w32sock.h: New file, based on winsock.c.
12866         * lib/winsock.c: Remove file.
12867         * modules/accept: Likewise.
12868         * modules/bind: Likewise.
12869         * modules/connect: Likewise.
12870         * modules/getpeername: Likewise.
12871         * modules/getsockname: Likewise.
12872         * modules/getsockopt: Likewise.
12873         * modules/ioctl: Likewise.
12874         * modules/listen: Likewise.
12875         * modules/recv: Likewise.
12876         * modules/recvfrom: Likewise.
12877         * modules/send: Likewise.
12878         * modules/sendto: Likewise.
12879         * modules/setsockopt: Likewise.
12880         * modules/shutdown: Likewise.
12881         * modules/socket: Use socket.c instead of winsock.c.
12882         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
12883         * doc/posix-functions/accept.texi: Doc fix.
12884         * doc/posix-functions/bind.texi: Doc fix.
12885         * doc/posix-functions/close.texi: Doc fix.
12886         * doc/posix-functions/connect.texi: Doc fix.
12887         * doc/posix-functions/getpeername.texi: Doc fix.
12888         * doc/posix-functions/getsockname.texi: Doc fix.
12889         * doc/posix-functions/getsockopt.texi: Doc fix.
12890         * doc/posix-functions/ioctl.texi: Doc fix.
12891         * doc/posix-functions/listen.texi: Doc fix.
12892         * doc/posix-functions/recv.texi: Doc fix.
12893         * doc/posix-functions/recvfrom.texi: Doc fix.
12894         * doc/posix-functions/send.texi: Doc fix.
12895         * doc/posix-functions/sendto.texi: Doc fix.
12896         * doc/posix-functions/setsockopt.texi: Doc fix.
12897         * doc/posix-functions/shutdown.texi: Doc fix.
12898         * doc/posix-functions/socket.texi: Doc fix.
12899
12900 2008-10-20  Bruno Haible  <bruno@clisp.org>
12901
12902         Take into account the role of SIGABRT_COMPAT on Windows 2008.
12903         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
12904         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
12905         as an alias for SIGABRT.
12906         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
12907         (sigaction): Map it to SIGABRT.
12908         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
12909
12910 2008-10-20  Bruno Haible  <bruno@clisp.org>
12911
12912         * lib/fts.c: Don't include lstat.h.
12913         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
12914
12915         Move the lstat() declaration to <sys/stat.h>.
12916         * lib/lstat.h: Remove file.
12917         * lib/sys_stat.in.h: Add special invocation convention.
12918         (lstat): New declaration.
12919         * lib/lstat.c (orig_lstat): New function.
12920         (rpl_lstat): Use orig_lstat instead of lstat.
12921         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
12922         AC_C_INLINE. Set REPLACE_LSTAT.
12923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
12924         and REPLACE_LSTAT.
12925         * modules/lstat (Files): Remove lib/lstat.h.
12926         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
12927         (Include): Specify <sys/stat.h> instead of lstat.h.
12928         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
12929         REPLACE_LSTAT.
12930         * NEWS: Mention the change.
12931
12932 2008-10-20  Bruno Haible  <bruno@clisp.org>
12933
12934         * modules/posix_spawn-tests: New file.
12935         * tests/test-posix_spawn3.c: New file.
12936
12937 2008-10-20  Bruno Haible  <bruno@clisp.org>
12938
12939         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
12940         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
12941         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
12942         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
12943         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
12944
12945 2008-10-20  Bruno Haible  <bruno@clisp.org>
12946
12947         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
12948         of posix_spawn on AIX 5.3.
12949
12950 2008-10-20  Bruno Haible  <bruno@clisp.org>
12951
12952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
12953
12954 2008-10-20  Bruno Haible  <bruno@clisp.org>
12955
12956         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
12957         of AC_LANG_PROGRAM.
12958
12959 2008-10-20  Simon Josefsson  <simon@josefsson.org>
12960
12961         * lib/netdb.in.h: Don't define GNU specific constants until they
12962         are supported or needed.  Reported by Bruno Haible
12963         <bruno@clisp.org>.
12964
12965 2008-10-20  Simon Josefsson  <simon@josefsson.org>
12966
12967         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
12968
12969 2008-10-20  Simon Josefsson  <simon@josefsson.org>
12970
12971         * lib/getaddrinfo.h: Remove file.
12972         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
12973         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
12974         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
12975         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
12976         * modules/netdb: Substitute GNULIB_GETADDRINFO.
12977         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
12978         * tests/test-getaddrinfo.c: Likewise.
12979         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
12980         * NEWS: Mention change.
12981
12982 2008-10-19  Bruno Haible  <bruno@clisp.org>
12983
12984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
12985
12986 2008-10-19  Bruno Haible  <bruno@clisp.org>
12987
12988         * lib/wait-process.c: Include simply <sys/wait.h>.
12989         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
12990         WIFSTOPPED): Remove fallback definitions.
12991         * modules/wait-process (Depends-on): Add sys_wait.
12992
12993         New module 'sys_wait'.
12994         * modules/sys_wait: New file.
12995         * lib/sys_wait.in.h: New file, partially copied from
12996         lib/wait-process.c.
12997         * m4/sys_wait_h.m4: New file.
12998         * doc/posix-headers/sys_wait.texi: Mention the new module.
12999
13000 2008-10-19  Bruno Haible  <bruno@clisp.org>
13001
13002         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
13003
13004 2008-10-19  Bruno Haible  <bruno@clisp.org>
13005
13006         Assume that waitpid() fills an 'int' status, not a 'union wait'.
13007         * lib/wait-process.c (WAIT_T): Remove type.
13008         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
13009         (wait_subprocess): Update.
13010
13011 2008-10-19  Bruno Haible  <bruno@clisp.org>
13012
13013         New module 'atoll'.
13014         * modules/atoll: New file.
13015         * lib/stdlib.in.h (atoll): New declaration.
13016         * lib/atoll.c: New file, from glibc with modifications.
13017         * m4/atoll.m4: New file.
13018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
13019         HAVE_ATOLL.
13020         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
13021         * doc/posix-functions/atoll.texi: Mention the new module.
13022
13023 2008-10-19  Bruno Haible  <bruno@clisp.org>
13024
13025         Add strtoull() declaration to <stdlib.h>.
13026         * lib/stdlib.in.h (strtoull): New declaration.
13027         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13028         Set HAVE_STRTOULL.
13029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
13030         HAVE_STRTOULL.
13031         * modules/strtoull (Depends-on): Add stdlib.
13032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13033         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
13034         HAVE_STRTOULL.
13035
13036 2008-10-19  Bruno Haible  <bruno@clisp.org>
13037
13038         Add strtoll() declaration to <stdlib.h>.
13039         * lib/stdlib.in.h (strtoll): New declaration.
13040         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13041         Set HAVE_STRTOLL.
13042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
13043         HAVE_STRTOLL.
13044         * modules/strtoll (Depends-on): Add stdlib.
13045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13046         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
13047
13048 2008-10-19  Bruno Haible  <bruno@clisp.org>
13049
13050         * modules/bcopy (Depends-on): Add strings.
13051         (Include): Specify <strings.h>.
13052
13053 2008-10-19  Bruno Haible  <bruno@clisp.org>
13054
13055         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
13056
13057 2008-10-19  Bruno Haible  <bruno@clisp.org>
13058
13059         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
13060         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
13061         mingw.
13062
13063 2008-10-19  Bruno Haible  <bruno@clisp.org>
13064
13065         * lib/atanl.c: Don't include isnanl.h.
13066         * lib/cosl.c: Likewise.
13067         * lib/ldexpl.c: Likewise.
13068         * lib/logl.c: Likewise.
13069         * lib/sinl.c: Likewise.
13070         * lib/sqrtl.c: Likewise.
13071         * lib/tanl.c: Likewise.
13072
13073         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
13074         * lib/isnanf.h: Remove file.
13075         * lib/isnand.h: Remove file.
13076         * lib/isnanl.h: Remove file.
13077         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
13078         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
13079         macros.
13080         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
13081         HAVE_ISNANF, don't define it as a C macro.
13082         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
13083         HAVE_ISNAND, don't define it as a C macro.
13084         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
13085         HAVE_ISNANL, don't define it as a C macro.
13086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
13087         HAVE_ISNAN[FDL].
13088         * modules/isnanf (Files): Remove lib/isnanf.h.
13089         (Depends-on): Add math.
13090         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13091         (Include): Specify <math.h> instead of isnanf.h.
13092         * modules/isnand (Files): Remove lib/isnand.h.
13093         (Depends-on): Add math.
13094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13095         (Include): Specify <math.h> instead of isnand.h.
13096         * modules/isnanl (Files): Remove lib/isnanl.h.
13097         (Depends-on): Add math.
13098         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13099         (Include): Specify <math.h> instead of isnanl.h.
13100         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
13101         HAVE_ISNAN[FDL].
13102         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
13103         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
13104         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
13105         * NEWS: Mention the change.
13106
13107 2008-10-18  Bruno Haible  <bruno@clisp.org>
13108
13109         Add getusershell(), setusershell(), endusershell() declarations to
13110         <unistd.h>.
13111         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
13112         declarations.
13113         * lib/getusershell.c: Include unistd.h.
13114         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
13115         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
13116         HAVE_GETUSERSHELL.
13117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
13118         and HAVE_GETUSERSHELL.
13119         * modules/getusershell (Depends-on): Add unistd, extensions.
13120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13121         (Include): Specify <unistd.h>.
13122         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
13123         HAVE_GETUSERSHELL.
13124
13125 2008-10-18  Bruno Haible  <bruno@clisp.org>
13126
13127         Add a getloadavg() declaration to <stdlib.h>.
13128         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
13129         getloadavg declaration.
13130         (getloadavg): New declaration.
13131         * lib/getloadavg.c: Include <stdlib.h> first.
13132         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
13133         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
13134         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
13135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
13136         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
13137         * modules/getloadavg (Depends-on): Add stdlib, extensions.
13138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13139         (Include): Specify <stdlib.h>.
13140         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
13141         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
13142
13143 2008-10-18  Bruno Haible  <bruno@clisp.org>
13144
13145         * lib/dirchownmod.c: Don't include lchmod.h.
13146
13147         Move the lchmod() declaration to <sys/stat.h>.
13148         * lib/lchmod.h: Remove file.
13149         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
13150         (lchmod): New declaration, moved here from lib/lchown.h.
13151         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
13152         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
13153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
13154         and HAVE_LCHMOD.
13155         * modules/lchmod (Files): Remove lib/lchmod.h.
13156         (Depends-on): Add sys_stat, extensions.
13157         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
13158         (Include): Specify <sys/stat.h> instead of lchmod.h.
13159         * modules/sys_stat (Depends-on): Add link-warning.
13160         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
13161         definition of GL_LINK_WARNING.
13162         * NEWS: Mention the change.
13163
13164 2008-10-18  Bruno Haible  <bruno@clisp.org>
13165
13166         * lib/fchdir.c: Don't include dirfd.h.
13167         * lib/fts.c: Likewise.
13168         * lib/getcwd.c: Likewise.
13169         * lib/glob.c: Likewise.
13170
13171         Move the dirfd() declaration to <dirent.h>.
13172         * lib/dirfd.h: Remove file.
13173         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
13174         (dirfd): New declaration.
13175         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
13176         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
13177         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
13178         HAVE_DECL_DIRFD.
13179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
13180         HAVE_DECL_DIRFD.
13181         * modules/dirfd (Files): Remove lib/dirfd.h.
13182         (Depends-on): Add dirent, extensions.
13183         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
13184         (Include): Specify <dirent.h> instead of dirfd.h.
13185         * modules/dirent (Depends-on): Add link-warning.
13186         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
13187         definition of GL_LINK_WARNING.
13188         * NEWS: Mention the change.
13189
13190 2008-10-18  Bruno Haible  <bruno@clisp.org>
13191
13192         Move the euidaccess() declaration to <unistd.h>.
13193         * lib/euidaccess.h: Remove file.
13194         * lib/unistd.in.h (euidaccess): New declaration.
13195         * lib/euidaccess.c: Don't include euidaccess.h.
13196         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
13197         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
13198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
13199         and HAVE_EUIDACCESS.
13200         * modules/euidaccess (Files): Remove lib/euidaccess.h.
13201         (Depends-on): Add unistd.
13202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13203         (Include): Specify <unistd.h> instead of euidaccess.h.
13204         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
13205         HAVE_EUIDACCESS.
13206         * NEWS: Mention the change.
13207
13208 2008-10-18  Bruno Haible  <bruno@clisp.org>
13209
13210         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
13211
13212         Move the getdomainname() declaration to <unistd.h>.
13213         * lib/getdomainname.h: Remove file.
13214         * lib/unistd.in.h (getdomainname): New declaration.
13215         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
13216         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13217         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
13218         HAVE_GETDOMAINNAME.
13219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13220         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
13221         * modules/getdomainname (Files): Remove lib/getdomainname.h.
13222         (Depends-on): Add unistd, extensions.
13223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13224         (Includes): Specify <unistd.h> instead of getdomainname.h.
13225         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
13226         HAVE_GETDOMAINNAME.
13227         * NEWS: Mention the change.
13228
13229 2008-10-18  Bruno Haible  <bruno@clisp.org>
13230
13231         * modules/dirent: New file.
13232         * m4/dirent_h.m4: New file.
13233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
13234         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
13235         * modules/fchdir (Files): Remove lib/dirent.in.h.
13236         (Depends-on): Add dirent.
13237         (Makefile.am): Move rules to modules/dirent.
13238         * doc/posix-headers/dirent.texi: Mention the new module.
13239
13240 2008-10-18  Bruno Haible  <bruno@clisp.org>
13241
13242         Avoid -Wunused-parameter warnings in public gnulib header files.
13243         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
13244         macro.
13245         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
13246
13247 2008-10-18  Bruno Haible  <bruno@clisp.org>
13248
13249         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
13250         * doc/glibc-functions/error.texi: Mention the module 'error'.
13251         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
13252         * doc/glibc-functions/getdomainname.texi: Mention the module
13253         'getdomainname'.
13254         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
13255         * doc/glibc-functions/getpagesize.texi: Mention the module
13256         'getpagesize'.
13257         * doc/glibc-functions/getusershell.texi: Mention the module
13258         'getusershell'.
13259         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
13260         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
13261         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
13262         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
13263         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
13264         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
13265         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
13266         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
13267         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
13268         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
13269         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
13270         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
13271         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
13272         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
13273
13274 2008-10-17  Bruno Haible  <bruno@clisp.org>
13275
13276         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
13277         HP-UX and IRIX, use -0.0L.
13278         * tests/test-ceill.c (minus_zero): Likewise.
13279         * tests/test-floorl.c (minus_zero): Likewise.
13280         * tests/test-frexpl.c (minus_zero): Likewise.
13281         * tests/test-isnan.c (minus_zerol): Likewise.
13282         * tests/test-isnanl.h (minus_zero): Likewise.
13283         * tests/test-ldexpl.c (minus_zero): Likewise.
13284         * tests/test-roundl.c (minus_zero): Likewise.
13285         * tests/test-signbit.c (minus_zerol): Likewise.
13286         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
13287         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
13288         * tests/test-truncl.c (minus_zero): Likewise.
13289         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
13290         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
13291         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
13292         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
13293
13294 2008-10-17  Bruno Haible  <bruno@clisp.org>
13295
13296         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
13297         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
13298         that it gets activated only for gcc >= 3.0.
13299         * lib/dirent.in.h: Likewise.
13300         * lib/errno.in.h: Likewise.
13301         * lib/fcntl.in.h: Likewise.
13302         * lib/float.in.h: Likewise.
13303         * lib/iconv.in.h: Likewise.
13304         * lib/inttypes.in.h: Likewise.
13305         * lib/locale.in.h: Likewise.
13306         * lib/math.in.h: Likewise.
13307         * lib/netdb.in.h: Likewise.
13308         * lib/netinet_in.in.h: Likewise.
13309         * lib/search.in.h: Likewise.
13310         * lib/signal.in.h: Likewise.
13311         * lib/spawn.in.h: Likewise.
13312         * lib/stdarg.in.h: Likewise.
13313         * lib/stdint.in.h: Likewise.
13314         * lib/stdio.in.h: Likewise.
13315         * lib/stdlib.in.h: Likewise.
13316         * lib/string.in.h: Likewise.
13317         * lib/strings.in.h: Likewise.
13318         * lib/sys_file.in.h: Likewise.
13319         * lib/sys_ioctl.in.h: Likewise.
13320         * lib/sys_select.in.h: Likewise.
13321         * lib/sys_socket.in.h: Likewise.
13322         * lib/sys_stat.in.h: Likewise.
13323         * lib/sys_time.in.h: Likewise.
13324         * lib/sysexits.in.h: Likewise.
13325         * lib/time.in.h: Likewise.
13326         * lib/unistd.in.h: Likewise.
13327         * lib/wchar.in.h: Likewise.
13328         * lib/wctype.in.h: Likewise.
13329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13330
13331 2008-10-17  Jim Meyering  <meyering@redhat.com>
13332
13333         ignore-value: don't depend on inline module
13334         * modules/ignore-value (Depends-on): Remove 'inline'.
13335         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
13336         Suggestion from Bruno Haible.
13337
13338 2008-10-17  Bruno Haible  <bruno@clisp.org>
13339
13340         New implementation of condition variables for Win32.
13341         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
13342         (gl_linked_waitqueue_t): New type.
13343         (gl_cond_t): Use it.
13344         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
13345         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13346         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
13347         (glthread_cond_init_func, glthread_cond_wait_func,
13348         glthread_cond_timedwait_func, glthread_cond_signal_func,
13349         glthread_cond_broadcast_func, glthread_cond_destroy_func):
13350         Reimplemented on the basis of gl_linked_waitqueue_t.
13351         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
13352         gl_waitqueue_t.
13353         (gl_rwlock_t): Update.
13354         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
13355
13356 2008-10-17  Simon Josefsson  <simon@josefsson.org>
13357
13358         * modules/recvfrom (Depends-on): Add dependency on getpeername.
13359         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13360
13361 2008-10-17  Jim Meyering  <meyering@redhat.com>
13362
13363         ignore-value: new module
13364         * modules/ignore-value: New file.
13365         * lib/ignore-value.h: New file.
13366         * MODULES.html.sh (Compiler warning management): New section,
13367         just for this module.  More to come.
13368
13369 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         open-safer.c: avoid 'signed and unsigned in conditional...' warning
13372         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
13373         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
13374
13375 2008-10-16  Jim Meyering  <meyering@redhat.com>
13376
13377         openat-die.c: avoid 'no previous prototype' warning
13378         * lib/openat-die.c: Include "openat.h".
13379         Reported by Reuben Thomas <rrt@sc3d.org>.
13380
13381 2008-10-16  Simon Josefsson  <simon@josefsson.org>
13382
13383         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
13384         * lib/netdb.in.h: Fix typo.
13385         Reported by Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/netdb.in.h: Include sys/socket.h for platforms without
13388         netdb.h, to get structures like hostent on MinGW.
13389         * modules/netdb (Depends-on): Add sys_socket.
13390
13391 2008-10-15  Simon Josefsson  <simon@josefsson.org>
13392
13393         * modules/netdb, modules/netdb-tests: New file.
13394         * m4/netdb_h.m4: New file.
13395         * lib/netdb.in.h: Add, currently just an empty file pending
13396         definitions.
13397         * tests/test-netdb.c: New file.
13398         * doc/posix-headers/netdb.texi: Mention that we replace it if
13399         needed.
13400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13401         netdb.
13402
13403 2008-10-15  Simon Josefsson  <simon@josefsson.org>
13404
13405         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
13406         with code.
13407
13408 2008-10-13  Bruno Haible  <bruno@clisp.org>
13409
13410         * lib/glthread/cond.c (glthread_cond_wait_func,
13411         glthread_cond_timedwait_func): Add a comment.
13412
13413 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13414
13415         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
13416         * tests/test-select.c: Likewise,
13417
13418 2008-10-13  Bruno Haible  <bruno@clisp.org>
13419
13420         * lib/glthread/cond.c (glthread_cond_wait_func,
13421         glthread_cond_timedwait_func): Fix variable name.
13422         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13423
13424 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
13425
13426         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
13427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
13428         struct sockaddr.sa_len.
13429         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
13430
13431 2008-10-13  Simon Josefsson  <simon@josefsson.org>
13432
13433         * build-aux/pmccabe2html: Add css and css_url parameters.
13434
13435 2008-10-12  Bruno Haible  <bruno@clisp.org>
13436
13437         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
13438         calling aclx_get.
13439         Reported by Rainer Tammer <tammer@tammer.net>.
13440
13441 2008-10-12  Bruno Haible  <bruno@clisp.org>
13442
13443         Use msvcrt aware primitives for creation/termination of Win32 threads.
13444         * lib/glthread/thread.c: Include <process.h>.
13445         (glthread_create_func): Use _beginthreadex instead of CreateThread.
13446         (wrapper_func): Update signature.
13447         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
13448
13449 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13450             Bruno Haible  <bruno@clisp.org>
13451
13452         Provide a Win32 implementation of the 'cond' module.
13453         * lib/glthread/cond.h [USE_WIN32]: New implementation.
13454         * lib/glthread/cond.c (glthread_cond_init_func,
13455         glthread_cond_wait_func, glthread_cond_timedwait_func,
13456         glthread_cond_signal_func, glthread_cond_broadcast_func,
13457         glthread_cond_destroy_func) [USE_WIN32]: New functions.
13458         * modules/cond (Dependencies): Add gettimeofday.
13459
13460 2008-10-11  Bruno Haible  <bruno@clisp.org>
13461
13462         Make sleep work on older versions of mingw.
13463         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
13464         only whether it exists.
13465         * doc/posix-functions/sleep.texi: Mention the problem with older
13466         versions of mingw.
13467
13468 2008-10-11  Bruno Haible  <bruno@clisp.org>
13469
13470         New module 'shutdown'.
13471         * modules/shutdown: New file.
13472         * lib/sys_socket.in.h (shutdown): New declaration.
13473         * lib/winsock.c (shutdown): New function.
13474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13475         GNULIB_SHUTDOWN.
13476         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
13477         * doc/posix-functions/shutdown.texi: Document the new module.
13478
13479 2008-10-11  Jim Meyering  <meyering@redhat.com>
13480
13481         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
13482
13483 2008-10-11  Bruno Haible  <bruno@clisp.org>
13484
13485         New module 'fclose'.
13486         * modules/fclose: New file.
13487         * lib/stdio.in.h (fclose): New declaration.
13488         * lib/fclose.c: New file.
13489         * m4/fclose.m4: New file.
13490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
13491         REPLACE_FCLOSE.
13492         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
13493         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
13494         REPLACE_FCLOSE.
13495         * modules/close (Depends-on): fclose.
13496         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
13497
13498 2008-10-11  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
13501         set errno and don't call _close.
13502
13503 2008-10-10  Bruno Haible  <bruno@clisp.org>
13504
13505         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
13506         ACL, not afterwards. Fixes test failure on Cygwin.
13507
13508 2008-10-09  Ben Pfaff  <blp@gnu.org>
13509
13510         * build-aux/announce-gen: Fix gnulib version related part of usage
13511         message.  Die with a useful error message if no tarballs are
13512         found.
13513
13514 2008-10-10  Jim Meyering  <meyering@redhat.com>
13515
13516         bootstrap: use git's --depth=N option only if it's supported
13517         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
13518         recognize the --depth option.  Reported by Pádraig Brady.
13519
13520 2008-10-09  Bruno Haible  <bruno@clisp.org>
13521
13522         New module 'ioctl'.
13523         * modules/ioctl: New file.
13524         * lib/sys_socket.in.h (ioctl): Remove declaration.
13525         * lib/winsock.c: Include <sys/ioctl.h>.
13526         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
13527         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
13528         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
13529         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
13530         * doc/posix-functions/ioctl.texi: Mention the new module.
13531
13532 2008-10-09  Bruno Haible  <bruno@clisp.org>
13533
13534         New module 'sys_ioctl'.
13535         * lib/sys_ioctl.in.h: New file.
13536         * m4/sys_ioctl_h.m4: New file.
13537         * modules/sys_ioctl: New file.
13538         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
13539
13540 2008-10-09  Bruno Haible  <bruno@clisp.org>
13541
13542         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
13543         * lib/winsock.c: Include <stdarg.h>.
13544         (rpl_ioctl): Change to second argument 'int' and then varargs.
13545
13546 2008-10-09  Bruno Haible  <bruno@clisp.org>
13547
13548         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
13549         when the sys_socket module is present and the system has <winsock2.h>.
13550
13551 2008-10-09  Bruno Haible  <bruno@clisp.org>
13552
13553         * doc/posix-functions/close.texi: Mention module 'close' instead of
13554         module 'sys_socket'.
13555
13556 2008-10-09  Bruno Haible  <bruno@clisp.org>
13557
13558         * doc/glibc-headers/sys_ioctl.texi: New file.
13559         * doc/gnulib.texi: Include it.
13560
13561 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
13562             Bruno Haible  <bruno@clisp.org>
13563
13564         Combine the two replacements of 'close'.
13565         * lib/sys_socket.in.h (close): Define to a reminder to include
13566         <unistd.h>.
13567         (_gl_close_fd_maybe_socket): New declaration.
13568         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
13569         * lib/winsock.c (close): Remove undefinition.
13570         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
13571         needed for the gnulib module 'close'.
13572         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
13573         define to an error symbol or to a warning, if suitable.
13574         * lib/close.c: Include <sys/socket.h>.
13575         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
13576         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
13577         UNISTD_H_HAVE_WINSOCK2_H.
13578         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
13579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13580         UNISTD_H_HAVE_WINSOCK2_H.
13581         * modules/sys_socket (Files): Add m4/unistd_h.m4.
13582         (configure.ac): Set a module indicator.
13583         (Makefile.am): Substitute GNULIB_CLOSE.
13584         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
13585         * modules/poll-tests (Depends-on): Add close.
13586         * modules/select-tests (Depends-on): Likewise.
13587
13588 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
13589             Bruno Haible  <bruno@clisp.org>
13590
13591         New module 'close'.
13592         * modules/close: New file.
13593         * lib/unistd.in.h (close): Move declaration out of the
13594         FCHDIR_REPLACEMENT scope.
13595         (_gl_unregister_fd): New declaration.
13596         * lib/close.c: New file.
13597         * lib/fchdir.c (rpl_close): Remove function.
13598         * m4/close.m4: New file.
13599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
13600         close.
13601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
13602         REPLACE_CLOSE.
13603         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
13604         REPLACE_CLOSE.
13605         * modules/fchdir (Depends-on): Add close.
13606
13607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
13608             Bruno Haible  <bruno@clisp.org>
13609
13610         * lib/fcntl.in.h (open): Simplify conditionals.
13611         (_gl_register_fd): New declaration.
13612         * lib/fchdir.c (rpl_open): Remove function.
13613         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
13614         also.
13615         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
13616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
13617         open.
13618
13619 2008-10-09  Jim Meyering  <meyering@redhat.com>
13620
13621         GNUmakefile: use the more name-space-friendly "_version"
13622         * top/GNUmakefile (_dummy): Update.
13623         (_version): Rename from "version".
13624
13625 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
13626             Bruno Haible  <bruno@clisp.org>
13627
13628         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
13629         rpl_close.
13630         (_gl_register_fd): New function, extracted from rpl_open.
13631         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
13632         (rpl_open, rpl_opendir): Use _gl_register_fd.
13633
13634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
13635
13636         Fix organization of 'open' replacement.
13637         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
13638         (gl_FUNC_OPEN): Use it.
13639         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
13640
13641 2008-10-08  Bruno Haible  <bruno@clisp.org>
13642
13643         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
13644
13645 2008-10-08  Simon Josefsson  <simon@josefsson.org>
13646
13647         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
13648         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
13649         listen).
13650
13651 2008-10-08  Eric Blake  <ebb9@byu.net>
13652
13653         GNUmakefile: add 'make version' target
13654         * top/GNUmakefile (_curr-ver): Split version update rules...
13655         (version): ...into a target.
13656
13657 2008-10-07  Bruno Haible  <bruno@clisp.org>
13658
13659         Use a more portable replacement expression for -0.0L.
13660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
13661         instead of -0.0L. Fix m4 quotation.
13662
13663         * tests/test-signbit.c: Include <float.h>.
13664         (minus_zero): New variable.
13665         (test_signbitl): Use minus_zero instead of -zero.
13666         * modules/signbit-tests (Depends-on): Add float.
13667
13668         * tests/test-ceill.c: Include <float.h>.
13669         (zero): Remove variable.
13670         (minus_zero): New variable.
13671         (main): Use minus_zero instead of -zero.
13672         * modules/ceill-tests (Depends-on): Add float.
13673
13674         * tests/test-floorl.c: Include <float.h>.
13675         (zero): Remove variable.
13676         (minus_zero): New variable.
13677         (main): Use minus_zero instead of -zero.
13678         * modules/floorl-tests (Depends-on): Add float.
13679
13680         * tests/test-roundl.c: Include <float.h>.
13681         (zero): Remove variable.
13682         (minus_zero): New variable.
13683         (main): Use minus_zero instead of -zero.
13684         * modules/roundl-tests (Depends-on): Add float.
13685
13686         * tests/test-truncl.c: Include <float.h>.
13687         (zero): Remove variable.
13688         (minus_zero): New variable.
13689         (main): Use minus_zero instead of -zero.
13690         * modules/truncl-tests (Depends-on): Add float.
13691
13692         * tests/test-frexpl.c (zero): Remove variable.
13693         (minus_zero): New variable.
13694         (main): Use minus_zero instead of -zero.
13695         * modules/frexpl-tests (Depends-on): Add float.
13696
13697         * tests/test-isnan.c (zerol): Remove variable.
13698         (minus_zerol): New variable.
13699         (test_long_double): Use minus_zerol instead of -zerol.
13700         * modules/isnan-tests (Depends-on): Add float.
13701
13702         * tests/test-isnanl.h (zero): Remove variable.
13703         (minus_zero): New variable.
13704         (main): Use minus_zero instead of -zero.
13705         * modules/isnanl-nolibm-tests (Depends-on): Add float.
13706         * modules/isnanl-tests (Depends-on): Add float.
13707
13708         * tests/test-ldexpl.c (zero): Remove variable.
13709         (minus_zero): New variable.
13710         (main): Use minus_zero instead of -zero.
13711         * modules/ldexpl-tests (Depends-on): Add float.
13712
13713         * tests/test-snprintf-posix.h (zerol): Remove variable.
13714         (minus_zerol): New variable.
13715         (test_function): Use minus_zerol instead of -zerol.
13716         * modules/snprintf-posix-tests (Depends-on): Add float.
13717         * modules/vsnprintf-posix-tests (Depends-on): Add float.
13718
13719         * tests/test-sprintf-posix.h (zerol): Remove variable.
13720         (minus_zerol): New variable.
13721         (test_function): Use minus_zerol instead of -zerol.
13722         * modules/sprintf-posix-tests (Depends-on): Add float.
13723         * modules/vsprintf-posix-tests (Depends-on): Add float.
13724
13725         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
13726         (minus_zerol): New variable.
13727         (test_function): Use minus_zerol instead of -zerol.
13728         * modules/vasnprintf-posix-tests (Depends-on): Add float.
13729
13730         * tests/test-vasprintf-posix.c (zerol): Remove variable.
13731         (minus_zerol): New variable.
13732         (test_function): Use minus_zerol instead of -zerol.
13733         * modules/vasprintf-posix-tests (Depends-on): Add float.
13734
13735 2008-10-07  Simon Josefsson  <simon@josefsson.org>
13736
13737         * MODULES.html.sh (Support for building documentation): Mention
13738         pmccabe2html.  Sort entries.
13739
13740         Add pmccabe2html module, from gnupdf.
13741         * build-aux/pmccabe.css: New file.
13742         * build-aux/pmccabe2html: New file.
13743         * m4/pmccabe2html.m4: New file.
13744         * modules/pmccabe2html: New file.
13745
13746 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
13747
13748         flock: new module
13749         * MODULES.html.sh: Add to list of modules.
13750         * lib/flock.c: flock implementation for Windows and Unix systems
13751         which have fcntl.
13752         * doc/glibc-functions/flock.texi: Update documentation.
13753         * lib/sys_file.in.h: <sys/file.h> header file.
13754         * m4/flock.m4: M4 macros.
13755         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
13756         * modules/flock: flock module.
13757         * modules/flock-tests: flock tests module.
13758         * modules/sys_file: sys/file.h module.
13759         * tests/test-flock.c: test suite for flock.
13760
13761 2008-10-06  Jim Meyering  <meyering@redhat.com>
13762
13763         bootstrap: check for LT_INIT more portably still ;-)
13764         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
13765         Spotted by Bruno Haible.
13766
13767 2008-10-06  Eric Blake  <ebb9@byu.net>
13768
13769         test-signbit: avoid tripping Irix cc bug on -0.0L
13770         * tests/test-signbit.c (minus_zerol): Delete, and replace with
13771         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
13772         entire testsuite consistent and avoids an Irix 6.2 bug.
13773
13774 2008-10-05  Bruno Haible  <bruno@clisp.org>
13775             Jim Meyering  <jim@meyering.net>
13776
13777         Add an option for ignoring EPIPE during close_stdout.
13778         * lib/closeout.h: Include <stdbool.h>.
13779         (close_stdout_set_ignore_EPIPE): New declaration.
13780         * lib/closeout.c: Include <stdbool.h>.
13781         (ignore_EPIPE): New variable.
13782         (close_stdout_set_ignore_EPIPE): New function.
13783         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
13784         * lib/close-stream.c (close_stream): Mention the possible EPIPE
13785         failure.
13786         * modules/closeout (Depends-on): Add stdbool.
13787
13788 2008-10-05  Bruno Haible  <bruno@clisp.org>
13789
13790         * modules/accept: New file.
13791         * modules/bind: New file.
13792         * modules/connect: New file.
13793         * modules/getpeername: New file.
13794         * modules/getsockname: New file.
13795         * modules/getsockopt: New file.
13796         * modules/listen: New file.
13797         * modules/recv: New file.
13798         * modules/recvfrom: New file.
13799         * modules/send: New file.
13800         * modules/sendto: New file.
13801         * modules/setsockopt: New file.
13802         * modules/socket: New file.
13803         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
13804         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13805         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
13806         the particular module is requested. Add a link warning when the
13807         particular module is not requested.
13808         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
13809         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
13810         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
13811         the particular module is requested.
13812         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
13813         gl_SYS_SOCKET_H_DEFAULTS): New macros.
13814         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
13815         * modules/sys_socket (Depends-on): Add link-warning.
13816         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
13817         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
13818         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
13819         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
13820         GL_LINK_WARNING.
13821         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
13822         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
13823         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
13824         * doc/posix-functions/getpeername.texi: Mention the new module
13825         'getpeername'.
13826         * doc/posix-functions/getsockname.texi: Mention the new module
13827         'getsockname'.
13828         * doc/posix-functions/getsockopt.texi: Mention the new module
13829         'getsockopt'.
13830         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
13831         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
13832         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
13833         * doc/posix-functions/send.texi: Mention the new module 'send'.
13834         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
13835         * doc/posix-functions/setsockopt.texi: Mention the new module
13836         'setsockopt'.
13837         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
13838         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
13839         listen, connect, accept.
13840         * modules/select-tests (Depends-on): Likewise.
13841
13842 2008-10-05  Bruno Haible  <bruno@clisp.org>
13843
13844         * lib/winsock.c (strerror): Remove unused #undef.
13845         (rpl_close): Remove unused local variable.
13846
13847         * modules/sys_socket (Depends-on); Add errno.
13848
13849 2008-10-05  Bruno Haible  <bruno@clisp.org>
13850
13851         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
13852         (select): Add a link warning when the 'select' module is not used.
13853         * modules/sys_select (Depends-on): Add link-warning.
13854         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
13855         Suggested by Paolo Bonzini.
13856
13857 2008-10-05  Jim Meyering  <meyering@redhat.com>
13858
13859         bootstrap: check for LT_INIT more portably
13860         * build-aux/bootstrap: Avoid using grep -E, since it's not
13861         portable enough.  Suggestion from Bruno Haible.
13862
13863 2008-10-05  Bruno Haible  <bruno@clisp.org>
13864
13865         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
13866         as being fixed by gnulib.
13867
13868 2008-10-05  Bruno Haible  <bruno@clisp.org>
13869
13870         * modules/select-tests: New file, mostly copied from
13871         modules/sys_select-tests.
13872         * tests/test-select.c: New file, mostly copied from
13873         tests/test-sys_select.c.
13874         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
13875         * modules/sys_select-tests (Depends-on): Remove all dependencies.
13876         (Makefile.am): Remove test_sys_select_LDADD.
13877
13878         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
13879         to an undefined symbol, for an error message.
13880         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
13881         (gl_SYS_SELECT_H_DEFAULTS): New macro.
13882         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
13883         winsock-select.c here.
13884         * modules/sys_select (Files): Remove lib/winsock-select.c.
13885         (Depends-on): Remove alloca.
13886         (Makefile.am): Substitute GNULIB_SELECT.
13887         * modules/select: New file.
13888         * doc/posix-functions/select.texi: Update.
13889
13890 2008-10-05  Bruno Haible  <bruno@clisp.org>
13891
13892         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
13893         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
13894         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
13895         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
13896         getdtablesize.
13897         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13898         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13899
13900 2008-10-05  Bruno Haible  <bruno@clisp.org>
13901
13902         * modules/getdtablesize-tests: New file.
13903         * tests/test-getdtablesize.c: New file.
13904
13905         New module 'getdtablesize'.
13906         * lib/unistd.in.h (getdtablesize): New declaration.
13907         * lib/getdtablesize.c: New file.
13908         * m4/getdtablesize.m4: New file.
13909         * modules/getdtablesize: New file.
13910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13911         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
13912         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
13913         HAVE_GETDTABLESIZE.
13914         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
13915
13916 2008-10-05  Bruno Haible  <bruno@clisp.org>
13917
13918         * modules/sched (Makefile.am): Fix typo.
13919         Reported by Simon Josefsson.
13920
13921 2008-10-05  Jim Meyering  <meyering@redhat.com>
13922
13923         bootstrap: check for LT_INIT, too
13924         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
13925         are deprecated.  Suggestion from Ralf Wildenhues.
13926
13927 2008-10-05  Bruno Haible  <bruno@clisp.org>
13928
13929         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
13930         overriding them by ours.
13931         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
13932
13933 2008-10-05  Jim Meyering  <meyering@redhat.com>
13934
13935         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
13936         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
13937         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
13938
13939 2008-10-04  Bruno Haible  <bruno@clisp.org>
13940
13941         * modules/dup2 (License): Change to LGPLv2+.
13942         * modules/sleep (License): Likewise.
13943         * modules/perror (License): Likewise.
13944         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
13945         Blake.
13946         * modules/signal (License): Likewise.
13947         * modules/sigprocmask (License): Likewise.
13948         * modules/raise (License): Change to LGPLv2+, with approval by Jim
13949         Meyering.
13950
13951 2008-10-04  Bruno Haible  <bruno@clisp.org>
13952
13953         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
13954         Reported by Rainer Tammer <tammer@tammer.net>.
13955
13956 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
13957             Bruno Haible  <bruno@clisp.org>
13958
13959         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
13960         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
13961         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
13962
13963 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
13964
13965         filevercmp: new module
13966         * lib/filevercmp.h: New function filevercmp comparing version strings.
13967         * lib/filevercmp.c: Implementation of filevercmp function.
13968         * modules/filevercmp: Module metadata.
13969         * tests/test-filevercmp.c: Unit test for new module.
13970         * modules/filevercmp-tests: Unit test metadata.
13971         * MODULES.html.sh: Add filevercmp module.
13972
13973 2008-10-03  Bruno Haible  <bruno@clisp.org>
13974
13975         * lib/c-ctype.h: Add comment.
13976         Reported by Jim Meyering.
13977
13978 2008-10-02  Bruno Haible  <bruno@clisp.org>
13979
13980         * modules/posix_spawn-internal (Depends-on): Add 'open'.
13981
13982 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
13983
13984         * build-aux/bootstrap: Allow renaming bootstrap, and change the
13985         name of bootstrap.conf accordingly.
13986
13987 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
13988
13989         * build-aux/bootstrap: Install git-merge-changelog configuration
13990         items into .gitconfig if needed.
13991
13992 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
13993
13994         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
13995         git repository, and initialize/update it accordingly.
13996
13997 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
13998
13999         * modules/fsync-tests: New file.
14000         * tests/test-fsync.c: New file.
14001
14002         New module 'fsync'.
14003         * lib/fsync.c: New file.
14004         * m4/fsync.m4: New file.
14005         * modules/fsync: New file.
14006         * lib/unistd.in.h (fsync): New declaration.
14007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
14008         GNULIB_FSYNC and HAVE_FSYNC.
14009         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
14010         * MODULES.html.sh (posix_functions): Add fsync.
14011         * doc/posix-functions/fsync.texi: Mention the new module.
14012
14013 2008-10-02  Jim Meyering  <meyering@redhat.com>
14014
14015         fts.c: sync with similar code from coreutils' remove.c
14016         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
14017         Guard also with "#if defined __linux__", since for now at least,
14018         this code is Linux-kernel-specific.
14019
14020 2008-10-02  Jim Meyering  <meyering@redhat.com>
14021
14022         fts: bug fixes
14023         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
14024         Include <sys/vfs.h>, not <sys/statfs.h>.
14025
14026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
14027         Include <sys/vfs.h>, not <sys/statfs.h>.
14028
14029 2008-10-01  Bruno Haible  <bruno@clisp.org>
14030
14031         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
14032         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
14033         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
14034         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
14035         * doc/posix-functions/posix_spawnp.texi: Likewise.
14036         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
14037         whether posix_spawn actually works.
14038         * m4/pipe.m4 (gl_PIPE): Likewise.
14039         * modules/execute (Files): Add m4/posix_spawn.m4.
14040         * modules/pipe (Files): Add m4/posix_spawn.m4.
14041         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
14042
14043 2008-10-01  Jim Meyering  <meyering@redhat.com>
14044
14045         remove trailing spaces
14046         * NEWS: Likewise.
14047         * lib/poll.c (poll): Likewise.
14048         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
14049         * lib/winsock.c (rpl_close): Likewise.
14050         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
14051         * modules/yield: Likewise.
14052         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
14053         * tests/test-sys_select.c (connect_to_socket): Likewise.
14054
14055         fts.c: adjust a new interface to be more generally useful
14056         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
14057         (fts_build): Adjust caller.
14058
14059 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14060
14061         * modules/cond-tests: New file.
14062         * tests/test-cond.c: New file.
14063
14064 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14065             Bruno Haible  <bruno@clisp.org>
14066
14067         * modules/cond (Dependencies): Add errno, time.
14068         * lib/glthread/cond.h: Include <time.h>.
14069         (gl_cond_define, gl_cond_define_initialized): Use the same definition
14070         across platforms.
14071
14072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14073             Bruno Haible  <bruno@clisp.org>
14074
14075         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
14076
14077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14078             Bruno Haible  <bruno@clisp.org>
14079
14080         * modules/tls-tests (Depends-on): Add thread, yield.
14081         (configure.ac): Remove all checks.
14082         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
14083         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
14084         gl_thread_self): Remove definitions. Include glthread/thread.h and
14085         glthread/yield.h instead.
14086         (test_tls): Pass an additional NULL argument to gl_thread_join.
14087
14088 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14089             Bruno Haible  <bruno@clisp.org>
14090
14091         * modules/lock-tests (Depends-on): Add thread, yield.
14092         (configure.ac): Remove all checks.
14093         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
14094         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
14095         gl_thread_self): Remove definitions. Include glthread/thread.h and
14096         glthread/yield.h instead.
14097         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
14098         additional NULL argument to gl_thread_join.
14099
14100 2008-09-30  Bruno Haible  <bruno@clisp.org>
14101
14102         Fix the Win32 implementation of the 'thread' module.
14103         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
14104         pointer type.
14105         (gl_thread_self): Invoke gl_thread_self_func.
14106         (gl_thread_self_func): New declaration.
14107         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
14108         (do_init_self_key, init_self_key): New functions.
14109         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
14110         Remove some fields.
14111         (running_threads, running_lock): Remove variables.
14112         (get_current_thread_handle): New function.
14113         (gl_thread_self_func, wrapper_func, glthread_create_func,
14114         glthread_join_func, gl_thread_exit_func): Largely rewritten and
14115         simplified.
14116
14117 2008-09-30  Bruno Haible  <bruno@clisp.org>
14118
14119         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
14120         files.
14121
14122 2008-09-30  Jim Meyering  <meyering@redhat.com>
14123
14124         fts.m4: correct the test for statfs.f_type
14125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
14126         when checking for statfs.f_type.
14127
14128 2008-09-15  Simon Josefsson  <simon@josefsson.org>
14129
14130         tests: avoid some compiler warnings
14131         * tests/test-memchr.c (main): Pass NULL indirectly.
14132         * tests/test-getdate.c (main): Remove unused variable 'ret'.
14133
14134 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
14135
14136         getdate.y: disallow countable dayshifts like "4 yesterday ago"
14137         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
14138         exactly specified dayshifts.
14139         (dayshift): New rule.
14140         (rel): Add dayshift.
14141         (relative_time_table) [tomorrow, yesterday, today, now]:
14142         Use tDAY_SHIFT in place of tDAY_UNIT.
14143         * tests/test-getdate.c: Add tests for now-disallowed countable
14144         dayshifts, e.g., "4 yesterday ago".
14145
14146 2008-09-29  Bruno Haible  <bruno@clisp.org>
14147
14148         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
14149         * tests/test-posix_spawn1.in.sh: Renamed from
14150         tests/test-posix_spawn.in.sh.
14151         * tests/test-posix_spawn2.c: New file.
14152         * tests/test-posix_spawn2.in.sh: New file.
14153         * modules/posix_spawnp-tests (Files): Update.
14154         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
14155
14156 2008-09-29  Bruno Haible  <bruno@clisp.org>
14157
14158         Propagate effects of putenv/setenv/unsetenv to child processes.
14159         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
14160         * lib/pipe.c (create_pipe): Likewise.
14161
14162 2008-09-29  Bruno Haible  <bruno@clisp.org>
14163
14164         Enable use of shell scripts as executables in mingw.
14165         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
14166         run the program as a shell script.
14167         * lib/pipe.c (create_pipe): Likewise.
14168         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
14169         resulting array.
14170
14171 2008-09-29  Eric Blake  <ebb9@byu.net>
14172
14173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
14174
14175 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
14176
14177         * doc/posix-functions/accept.texi: Update mingw problems.
14178         * doc/posix-functions/bind.texi: Update mingw problems.
14179         * doc/posix-functions/close.texi: Update mingw problems.
14180         * doc/posix-functions/connect.texi: Update mingw problems.
14181         * doc/posix-functions/getpeername.texi: Update mingw problems.
14182         * doc/posix-functions/getsockname.texi: Update mingw problems.
14183         * doc/posix-functions/getsockopt.texi: Update mingw problems.
14184         * doc/posix-functions/ioctl.texi: Update mingw problems.
14185         * doc/posix-functions/listen.texi: Update mingw problems.
14186         * doc/posix-functions/recv.texi: Update mingw problems.
14187         * doc/posix-functions/recvfrom.texi: Update mingw problems.
14188         * doc/posix-functions/select.texi: Update mingw problems.
14189         * doc/posix-functions/send.texi: Update mingw problems.
14190         * doc/posix-functions/sendto.texi: Update mingw problems.
14191         * doc/posix-functions/setsockopt.texi: Update mingw problems.
14192         * doc/posix-functions/socket.texi: Update mingw problems.
14193
14194 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
14195             Bruno Haible  <bruno@clisp.org>
14196
14197         * lib/sys_select.in.h: Include sys/time.h.
14198         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
14199         * modules/sys_select: Depend on sys_time.
14200         * tests/test-sys_select.c: Test that sys/select.h defines struct
14201         timeval fully.
14202
14203 2008-09-29  Bruno Haible  <bruno@clisp.org>
14204
14205         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
14206         * lib/sys_select.in.h: Likewise.
14207
14208 2008-09-29  Bruno Haible  <bruno@clisp.org>
14209
14210         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
14211
14212 2008-09-29  Bruno Haible  <bruno@clisp.org>
14213
14214         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
14215         Set LIBSOCKET instead of augmenting LIBS.
14216         * modules/sockets (Link): New section.
14217         * modules/sockets-tests (test_sockets_LDADD): New variable.
14218         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
14219         * modules/poll-tests (test_poll_LDADD): New variable.
14220         * NEWS: Document the change.
14221
14222 2008-09-29  Bruno Haible  <bruno@clisp.org>
14223
14224         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
14225         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
14226         ARPA_INET_H directly.
14227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14228
14229 2008-09-28  Bruno Haible  <bruno@clisp.org>
14230
14231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
14232         from gl_HEADER_SYS_SOCKET.
14233         (gl_HEADER_SYS_SOCKET): Invoke it.
14234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14235
14236 2008-09-28  Bruno Haible  <bruno@clisp.org>
14237
14238         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
14239         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
14240         Needed on OSF/1 4.0.
14241
14242 2008-09-28  Bruno Haible  <bruno@clisp.org>
14243
14244         Override open more carefully.
14245         * lib/open.c (orig_open): New function.
14246         (rpl_open): Use orig_open instead of open.
14247         * lib/fcntl.in.h: Add special invocation convention.
14248         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
14249         (gl_FUNC_OPEN): Invoke it.
14250
14251         Override freopen more carefully.
14252         * lib/freopen.c (orig_freopen): New function.
14253         (rpl_freopen): Use orig_freopen instead of freopen.
14254         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
14255         (gl_FUNC_FREOPEN): Invoke it.
14256
14257         Override fopen more carefully.
14258         * lib/fopen.c (orig_fopen): New function.
14259         (rpl_fopen): Use orig_fopen instead of fopen.
14260         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
14261         (gl_FUNC_FOPEN): Invoke it.
14262         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
14263
14264 2008-09-28  Bruno Haible  <bruno@clisp.org>
14265
14266         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
14267         SIGPIPE.
14268
14269 2008-09-28  Bruno Haible  <bruno@clisp.org>
14270
14271         * tests/test-sigaction.c (handler, main): Disable the check whether
14272         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
14273         glibc systems with LinuxThreads.
14274
14275 2008-09-28  Bruno Haible  <bruno@clisp.org>
14276
14277         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
14278
14279         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
14280         with AIX xlc.
14281         * lib/fcntl.in.h (open): Likewise.
14282         Reported by Rainer Tammer <tammer@tammer.net>.
14283
14284 2008-09-28  Bruno Haible  <bruno@clisp.org>
14285
14286         * modules/posix_spawnp-tests: New file.
14287         * tests/test-posix_spawn.c: New file.
14288         * tests/test-posix_spawn.in.sh: New file.
14289
14290         New module 'posix_spawnp'.
14291         * modules/posix_spawnp: New file.
14292         * lib/spawnp.c: New file, from GNU libc with modifications.
14293         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
14294
14295         New module 'posix_spawn'.
14296         * modules/posix_spawn: New file.
14297         * lib/spawn.c: New file, from GNU libc with modifications.
14298         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14299
14300         New module 'posix_spawnattr_destroy'.
14301         * modules/posix_spawnattr_destroy: New file.
14302         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
14303         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
14304         module.
14305
14306         New module 'posix_spawnattr_setsigmask'.
14307         * modules/posix_spawnattr_setsigmask: New file.
14308         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
14309         modifications.
14310         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
14311         new module.
14312
14313         New module 'posix_spawnattr_getsigmask'.
14314         * modules/posix_spawnattr_getsigmask: New file.
14315         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
14316         modifications.
14317         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
14318         new module.
14319
14320         New module 'posix_spawnattr_setsigdefault'.
14321         * modules/posix_spawnattr_setsigdefault: New file.
14322         * lib/spawnattr_setdefault.c: New file, from GNU libc with
14323         modifications.
14324         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
14325         new module.
14326
14327         New module 'posix_spawnattr_getsigdefault'.
14328         * modules/posix_spawnattr_getsigdefault: New file.
14329         * lib/spawnattr_getdefault.c: New file, from GNU libc with
14330         modifications.
14331         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
14332         new module.
14333
14334         New module 'posix_spawnattr_setschedpolicy'.
14335         * modules/posix_spawnattr_setschedpolicy: New file.
14336         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
14337         modifications.
14338         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
14339         new module.
14340
14341         New module 'posix_spawnattr_getschedpolicy'.
14342         * modules/posix_spawnattr_getschedpolicy: New file.
14343         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
14344         modifications.
14345         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
14346         new module.
14347
14348         New module 'posix_spawnattr_setschedparam'.
14349         * modules/posix_spawnattr_setschedparam: New file.
14350         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
14351         modifications.
14352         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
14353         new module.
14354
14355         New module 'posix_spawnattr_getschedparam'.
14356         * modules/posix_spawnattr_getschedparam: New file.
14357         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
14358         modifications.
14359         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
14360         new module.
14361
14362         New module 'posix_spawnattr_setpgroup'.
14363         * modules/posix_spawnattr_setpgroup: New file.
14364         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
14365         modifications.
14366         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
14367         module.
14368
14369         New module 'posix_spawnattr_getpgroup'.
14370         * modules/posix_spawnattr_getpgroup: New file.
14371         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
14372         modifications.
14373         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
14374         module.
14375
14376         New module 'posix_spawnattr_setflags'.
14377         * modules/posix_spawnattr_setflags: New file.
14378         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
14379         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
14380         module.
14381
14382         New module 'posix_spawnattr_getflags'.
14383         * modules/posix_spawnattr_getflags: New file.
14384         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
14385         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
14386         module.
14387
14388         New module 'posix_spawnattr_init'.
14389         * modules/posix_spawnattr_init: New file.
14390         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
14391         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
14392         module.
14393
14394         New module 'posix_spawn_file_actions_destroy'.
14395         * modules/posix_spawn_file_actions_destroy: New file.
14396         * lib/spawn_faction_destroy.c: New file, from GNU libc with
14397         modifications.
14398         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
14399         the new module.
14400
14401         New module 'posix_spawn_file_actions_addopen'.
14402         * modules/posix_spawn_file_actions_addopen: New file.
14403         * lib/spawn_faction_addopen.c: New file, from GNU libc with
14404         modifications.
14405         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
14406         the new module.
14407
14408         New module 'posix_spawn_file_actions_adddup2'.
14409         * modules/posix_spawn_file_actions_adddup2: New file.
14410         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
14411         modifications.
14412         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
14413         the new module.
14414
14415         New module 'posix_spawn_file_actions_addclose'.
14416         * modules/posix_spawn_file_actions_addclose: New file.
14417         * lib/spawn_faction_addclose.c: New file, from GNU libc with
14418         modifications.
14419         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14420         the new module.
14421
14422         New module 'posix_spawn_file_actions_init'.
14423         * modules/posix_spawn_file_actions_init: New file.
14424         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
14425         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
14426         new module.
14427
14428         New module 'posix_spawn-internal'.
14429         * modules/posix_spawn-internal: New file.
14430         * lib/spawn_int.h: New file, from GNU libc with modifications.
14431         * lib/spawni.c: New file, from GNU libc with modifications.
14432         * m4/posix_spawn.m4: New file.
14433
14434         New module 'spawn'.
14435         * modules/spawn: New file.
14436         * lib/spawn.in.h: New file, from GNU libc with modifications.
14437         * m4/spawn_h.m4: New file.
14438         * doc/posix-headers/spawn.texi: Mention the new module.
14439
14440 2008-09-28  Bruno Haible  <bruno@clisp.org>
14441
14442         * modules/sched-tests: New file.
14443         * tests/test-sched.c: New file.
14444
14445         New module 'sched'.
14446         * modules/sched: New file.
14447         * lib/sched.in.h: New file.
14448         * m4/sched_h.m4: New file.
14449         * doc/posix-headers/sched.texi: Mention the new module.
14450
14451 2008-09-27  Eric Blake  <ebb9@byu.net>
14452
14453         Fix previous patch, and tweak references to $0.
14454         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
14455         (func_version, func_gnulib_dir): Don't call this program
14456         gnulib-tool.
14457         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
14458         with using $0 in function.
14459         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
14460         (func_fatal_error): Reuse the name the user invoked us with.
14461
14462 2008-09-27  Bruno Haible  <bruno@clisp.org>
14463
14464         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
14465         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
14466         (gl_ICONV_H): Not here.
14467         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
14468         instead of assigning ICONV_H directly.
14469
14470         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
14471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
14472         WCHAR_H directly.
14473
14474 2008-09-27  Bruno Haible  <bruno@clisp.org>
14475
14476         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
14477         * modules/arpa_inet (Depends-on): Add link-warning.
14478         (Makefile.am): Insert the definition of GL_LINK-WARNING.
14479         * modules/unistd (Makefile.am): Likewise.
14480
14481 2008-09-26  Bruno Haible  <bruno@clisp.org>
14482
14483         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
14484         variables.
14485         (func_version): Essentially copied from gnulib-tool.
14486         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
14487         func_readlink): Copied from gnulib-tool.
14488
14489 2008-09-26  Bruno Haible  <bruno@clisp.org>
14490
14491         * gnulib-tool (func_version): Change directory to $gnulib_dir before
14492         invoking git-version-gen.
14493
14494 2008-09-26  Bruno Haible  <bruno@clisp.org>
14495
14496         * posix-modules: Update to directory names changed on 2008-01-19.
14497         Remove commas in output before splitting into words. No more need to
14498         avoid 'ftruncate' since 2007-02-19.
14499
14500 2008-09-26  Bruno Haible  <bruno@clisp.org>
14501
14502         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
14503
14504 2008-09-26  Bruno Haible  <bruno@clisp.org>
14505
14506         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
14507         * modules/fwriteerror (Depends-on): Add errno.
14508
14509 2008-09-26  Bruno Haible  <bruno@clisp.org>
14510
14511         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
14512         * tests/test-vc-list-files-cvs.sh: Likewise.
14513
14514 2008-09-26  Bruno Haible  <bruno@clisp.org>
14515
14516         * doc/posix-headers/sys_resource.texi: Reorder items.
14517
14518 2008-09-26  Jim Meyering  <meyering@redhat.com>
14519
14520         fts: tweak inode comparison function
14521         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
14522         inode numbers, as documented.
14523
14524         fts: sort dirent entries on inode number before traversing
14525         This avoids a quadratic, seek-related performance penalty when
14526         operating on a directory containing many entries (measurable at 10k;
14527         3.5 hours at 2 million entries with a cold cache) on certain types
14528         of file systems, including ext3 and ext4, but not tmpfs.
14529         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
14530         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
14531         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
14532         (fs_handles_readdir_ordered_dirents_efficiently): New function.
14533         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
14534         (fts_build): Set the stat.st_ino member from D_INO.
14535         If it is likely to be useful, sort dirent entries on inode number.
14536
14537         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
14538         and the struct statfs.f_type member.
14539         * modules/fts (Depends-on): Add d-ino.
14540
14541 2008-09-26  Bruno Haible  <bruno@clisp.org>
14542
14543         * modules/sigpipe-die (Depends-on): Add sigpipe.
14544
14545         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
14546         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
14547         and GNULIB_STDIO_H_SIGPIPE are set.
14548         * lib/stdio-write.c: New file.
14549         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
14550         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
14551         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
14552         REPLACE_STDIO_WRITE_FUNCS.
14553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
14554         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
14555         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
14556         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
14557         * modules/stdio (Files): Add lib/stdio-write.c.
14558         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
14559         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
14560         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
14561         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
14562         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
14563         REPLACE_FPRINTF_POSIX.
14564         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
14565         REPLACE_PRINTF_POSIX.
14566         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
14567         REPLACE_VFPRINTF_POSIX.
14568         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
14569         REPLACE_VPRINTF_POSIX.
14570         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
14571         SIGPIPE issue.
14572         * doc/posix-functions/fputc.texi: Likewise.
14573         * doc/posix-functions/fputs.texi: Likewise.
14574         * doc/posix-functions/fwrite.texi: Likewise.
14575         * doc/posix-functions/printf.texi: Likewise.
14576         * doc/posix-functions/putc.texi: Likewise.
14577         * doc/posix-functions/putchar.texi: Likewise.
14578         * doc/posix-functions/puts.texi: Likewise.
14579         * doc/posix-functions/vfprintf.texi: Likewise.
14580         * doc/posix-functions/vprintf.texi: Likewise.
14581
14582         * modules/safe-write (Depends-on): Add write.
14583
14584         * modules/sigpipe-tests: New file.
14585         * tests/test-sigpipe.c: New file.
14586         * tests/test-sigpipe.sh: New file.
14587
14588         * modules/write: New file.
14589         * lib/unistd.in.h: Include <sys/types.h>.
14590         (write): New declaration.
14591         * lib/write.c: New file.
14592         * m4/write.m4: New file.
14593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14594         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
14595         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
14596         GNULIB_WRITE, REPLACE_WRITE.
14597         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
14598         and the SIGPIPE issue.
14599
14600         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
14601         (raise): New declaration.
14602         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
14603         (ext_signal): New function.
14604         (rpl_raise): New function.
14605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14606         GNULIB_SIGNAL_H_SIGPIPE.
14607         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
14608         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
14609
14610         * modules/sigpipe: New file.
14611         * m4/sigpipe.m4: New file.
14612
14613 2008-09-25  Derek Price  <derek@ximbiot.com>
14614             Bruno Haible  <bruno@clisp.org>
14615
14616         * gnulib-tool (func_import): Report all license incompatibilities, not
14617         just the first one.
14618
14619 2008-09-25  Bruno Haible  <bruno@clisp.org>
14620
14621         * gnulib-tool (func_import): When computing the edits, consider not
14622         only the Makefile.ams that exist but also those that will be generated.
14623
14624 2008-09-25  Simon Josefsson  <simon@josefsson.org>
14625
14626         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
14627         fixes gnulib-tool --test warning about duplicate dependency.
14628
14629 2008-09-25  Bruno Haible  <bruno@clisp.org>
14630
14631         * gnulib-tool: Don't ask the user to perform edits in the generated
14632         Makefile.ams.
14633         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
14634         apply to the Makefile.am being generated.
14635         (func_emit_tests_Makefile_am): Execute edits that apply to the
14636         Makefile.am being generated.
14637         (func_import): Setup list of Makefile.am edits before emitting the
14638         Makefile.ams, not at the end.
14639         (func_create_testdir): Update.
14640         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14641
14642 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14643
14644         * gnulib-tool (func_import): Store the --tests-base option in the
14645         comment in gnulib-cache.m4.
14646
14647 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
14648
14649         * NEWS: Document increased portability that sys_select now provides.
14650
14651         * lib/sys_select.in.h: Install select wrapper.
14652         * lib/sys_socket.in.h: Use more descriptive name when there is no
14653         select wrapper.
14654         * lib/winsock-select.c: New.
14655         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
14656         Require gl_HEADER_SYS_SOCKET.
14657         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
14658         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
14659         * tests/test-sys_select.c: Add functional tests.
14660
14661 2008-09-24  Eric Blake  <ebb9@byu.net>
14662
14663         open, fopen: close fd leak in last patch
14664         * lib/open.c (rpl_open): Close fd before returning error.
14665         * lib/fopen.c (rpl_fopen): Close fd before returning error.
14666         * doc/posix-functions/open.texi (open): Document that Irix also
14667         has the bug.
14668         * doc/posix-functions/fopen.texi (fopen): Likewise.
14669         Reported by Paolo Bonzini.
14670
14671 2008-09-24  Bruno Haible  <bruno@clisp.org>
14672
14673         Ensure that a filename ending in a slash cannot be used to access a
14674         non-directory.
14675         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
14676         to check whether it's really a directory.
14677         * lib/fopen.c: Include fcntl.h, unistd.h.
14678         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
14679         and fdopen().
14680         * modules/fopen (Depends-on): Add unistd.
14681         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
14682         * tests/test-fopen.c (main): Likewise.
14683         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
14684         * doc/posix-functions/fopen.texi: Likewise.
14685         Reported by Eric Blake.
14686
14687 2008-09-23  Eric Blake  <ebb9@byu.net>
14688
14689         c-stack: avoid compiler optimizations when provoking overflow
14690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
14691         recursion harder to optimize, to ensure a stack overflow occurs.
14692         * tests/test-c-stack.c (recurse): Likewise.
14693         Borrowed from libsigsegv.
14694
14695         c-stack: work around Irix sigaltstack bug
14696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
14697         whether sigaltstack uses wrong end of stack_t (copied in part from
14698         libsigsegv).
14699         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
14700         Irix bug, without requiring an over-allocation.
14701         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
14702         bug.
14703
14704         fopen: document mingw bug on directories
14705         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
14706         not allowing a stream visiting a directory, even though reading
14707         from such a stream is not portable.
14708
14709 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
14710
14711         * lib/poll.c: Rewrite.
14712         * modules/poll: Depend on alloca.
14713
14714 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
14715
14716         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
14717         instead define prototypes for a full set of wrappers.  Ensure
14718         that Cygwin does not use the compatibility code, which is only
14719         for MinGW.
14720         * lib/winsock.c: New.
14721         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
14722         * modules/sys_socket: Add lib/winsock.c.
14723
14724         * modules/poll-tests: Add errno and perror.
14725         * tests/test-poll.c: Use ioctl, not ioctlsocket.
14726
14727 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
14728
14729         * tests/test-poll.c: Downgrade minimum needed Winsock version.
14730
14731 2008-09-23  Bruno Haible  <bruno@clisp.org>
14732
14733         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
14734         * doc/glibc-functions/*: Likewise.
14735
14736 2008-09-23  Simon Josefsson  <simon@josefsson.org>
14737
14738         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
14739         success.
14740
14741 2008-09-22  Eric Blake  <ebb9@byu.net>
14742             Bruno Haible  <bruno@clisp.org>
14743
14744         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
14745         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
14746         supply %A but mishandle pseudo-NaN.
14747         Reported by Simon Josefsson.
14748
14749 2008-09-21  Bruno Haible  <bruno@clisp.org>
14750
14751         * tests/test-lock.c (main): Tweak skip message.
14752         * tests/test-tls.c (main): Likewise.
14753
14754 2008-09-21  Bruno Haible  <bruno@clisp.org>
14755
14756         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
14757         whether 'struct sigaction' has sa_sigaction here...
14758         (gl_PREREQ_SIG_HANDLER_H): ... not here.
14759         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
14760
14761 2008-09-21  Bruno Haible  <bruno@clisp.org>
14762
14763         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
14764         section.
14765         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
14766         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
14767         the new section.
14768         (Support for obsolete systems lacking POSIX:2001): New section.
14769         (String handling <string.h>): Move strdup to the new section.
14770         Suggested by Simon Josefsson and Paolo Bonzini.
14771
14772 2008-09-21  Bruno Haible  <bruno@clisp.org>
14773
14774         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
14775         exponents in %e and %g results on 'long double'. Needed for mingw's
14776         improved *printf functions.
14777         * tests/test-vasprintf-posix.c (test_function): Likewise.
14778         * tests/test-snprintf-posix.h (test_function): Likewise.
14779         * tests/test-sprintf-posix.h (test_function): Likewise.
14780         Reported by Eric Blake.
14781
14782 2008-09-21  Bruno Haible  <bruno@clisp.org>
14783
14784         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
14785         * tests/test-sprintf-posix.h (test_function): Likewise.
14786
14787 2008-09-21  Bruno Haible  <bruno@clisp.org>
14788
14789         * modules/getpass (Depends-on): Add strdup-posix.
14790
14791         New module 'strdup-posix'.
14792         * modules/strdup-posix: New file.
14793         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
14794         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
14795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14796         REPLACE_STRDUP.
14797         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
14798         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
14799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14800         strdup-posix.
14801
14802         * modules/strdup (Depends-on): Remove malloc-posix.
14803
14804 2008-09-20  Bruno Haible  <bruno@clisp.org>
14805
14806         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
14807         Wildenhues.
14808
14809 2008-09-20  Bruno Haible  <bruno@clisp.org>
14810
14811         Ensure that wint_t gets defined on IRIX 5.3.
14812         * lib/wchar.in.h (wint_t): Define if not defined by the system.
14813         * lib/wctype.in.h (wint_t): Likewise.
14814         (__wctype_wint_t): Remove type.
14815         (isw*): Use wint_t instead of __wctype_wint_t.
14816         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
14817         * modules/wchar (Files): Add m4/wint_t.m4.
14818         (Makefile.am): Substitute HAVE_WINT_T.
14819         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
14820         * tests/test-wctype.c: Check that wint_t is defined.
14821         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
14822         * doc/posix-headers/wctype.texi: Likewise.
14823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14824
14825 2008-09-18  Bruno Haible  <bruno@clisp.org>
14826
14827         * gnulib-tool (func_exit): Update comment.
14828
14829 2008-09-18  Simon Josefsson  <simon@josefsson.org>
14830
14831         * modules/getaddrinfo (Depends-on): Remove strdup, this module
14832         assumes strdup exists and does not depend on strdup to return
14833         ENOMEM on out of memory conditions.
14834
14835 2008-09-18  Bruno Haible  <bruno@clisp.org>
14836
14837         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
14838         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
14839         digits for the exponent.
14840
14841 2008-09-18  Jim Meyering  <meyering@redhat.com>
14842             Bruno Haible  <bruno@clisp.org>
14843
14844         * lib/vasnprintf.c (decimal_point_char): Define also if
14845         NEED_PRINTF_INFINITE_LONG_DOUBLE.
14846
14847 2008-09-16  Bruno Haible  <bruno@clisp.org>
14848         and Eric Blake  <ebb9@byu.net>
14849
14850         vasnprintf: support Irix 5.3
14851         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
14852         that mishandle long double infinity.
14853         Reported by Tom G. Christensen.
14854
14855 2008-09-16  Bruno Haible  <bruno@clisp.org>
14856
14857         * doc/glibc-functions/scandir.texi: Mention the function is missing on
14858         Solaris 9.
14859         * doc/glibc-functions/alphasort.texi: Likewise.
14860         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
14861
14862 2008-09-16  Jim Meyering  <meyering@redhat.com>
14863
14864         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
14865         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
14866         a umask modification leak out of a subshell.  Otherwise, the
14867         opensolaris /bin/sh would be accepted and thus cause unwarranted
14868         failures in the coreutils test suite.
14869
14870 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
14871
14872         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
14873         to succeed.
14874
14875 2008-09-16  Jim Meyering  <meyering@redhat.com>
14876
14877         avoid spurious test failure when library is built without ACL support
14878         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
14879         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
14880         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
14881         * tests/test-copy-acl.sh: Likewise.
14882
14883 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14884
14885         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
14886         based on character occurrence counts.
14887
14888 2008-09-15  Eric Blake  <ebb9@byu.net>
14889
14890         tests: avoid some compiler warnings
14891         * tests/test-memchr.c (main): Pass NULL indirectly.
14892         * tests/test-closein.c (main): Avoid unused variable.
14893
14894 2008-09-15  Bruno Haible  <bruno@clisp.org>
14895
14896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
14897         are missing on OpenBSD 4.0 individually.
14898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14899
14900 2008-09-15  Bruno Haible  <bruno@clisp.org>
14901
14902         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
14903         * doc/posix-functions/strerror.texi: Mention also Cygwin.
14904         * doc/posix-functions/perror.texi: Likewise.
14905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
14906         is missing.
14907         Reported by Eric Blake.
14908
14909         * lib/errno.in.h: Use replacement values >= 2000.
14910         Reported by Eric Blake.
14911
14912 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14913
14914         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
14915         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
14916         limit.
14917         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
14918         compareseq was aborted.
14919
14920 2008-09-14  Bruno Haible  <bruno@clisp.org>
14921
14922         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
14923         yvec_edit_count.
14924         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
14925         (fstrcmp_bounded): Simplify result computation accordingly.
14926
14927 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14928
14929         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
14930         (fstrcmp): Define in terms of fstrcmp_bounded.
14931         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
14932         lower_bound argument.
14933         Return quickly if the result is certainly < lower_bound.
14934         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
14935
14936 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14937
14938         * lib/diffseq.h (EARLY_ABORT): New macro.
14939         (compareseq): Change return type to bool. Return true when EARLY_ABORT
14940         evaluates to true.
14941
14942 2008-09-14  Bruno Haible  <bruno@clisp.org>
14943
14944         * modules/perror-tests: New file.
14945         * tests/test-perror.sh: New file.
14946         * tests/test-perror.c: New file.
14947
14948         New module 'perror'.
14949         * lib/stdio.in.h (perror): New declaration.
14950         * lib/perror.c: New file.
14951         * m4/perror.m4: New file.
14952         * modules/perror: New file.
14953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
14954         * doc/posix-functions/perror.texi: Mention the perror module.
14955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
14956         REPLACE_PERROR.
14957         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
14958         REPLACE_PERROR.
14959
14960 2008-09-14  Bruno Haible  <bruno@clisp.org>
14961
14962         * modules/stdio (Makefile.am): Reorder to match the order in
14963         lib/stdio.in.h.
14964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14965
14966 2008-09-13  Bruno Haible  <bruno@clisp.org>
14967
14968         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
14969
14970 2008-09-13  Bruno Haible  <bruno@clisp.org>
14971
14972         Extend strerror to cover the added errno values.
14973         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
14974         (rpl_strerror): Provide error messages for the added errno values and
14975         for the WSA* values.
14976         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
14977         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
14978         strerror.
14979         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
14980         * modules/strerror (Depends-on): Add errno.
14981         * doc/posix-functions/strerror.texi: Document the change.
14982         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
14983         and EOVERFLOW.
14984
14985 2008-09-13  Bruno Haible  <bruno@clisp.org>
14986
14987         * modules/EOVERFLOW: Remove file.
14988         * m4/eoverflow.m4: Remove file.
14989         * modules/EOVERFLOW-tests: Remove file.
14990         * tests/test-EOVERFLOW.c: Remove file.
14991         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
14992         * modules/ftell (Depends-on): Likewise.
14993         * modules/getdelim (Depends-on): Likewise.
14994         * modules/getugroups (Depends-on): Likewise.
14995         * modules/poll (Depends-on): Likewise.
14996         * modules/snprintf (Depends-on): Likewise.
14997         * modules/sprintf-posix (Depends-on): Likewise.
14998         * modules/vasnprintf (Depends-on): Likewise.
14999         * modules/vasprintf (Depends-on): Likewise.
15000         * modules/vfprintf-posix (Depends-on): Likewise.
15001         * modules/vsnprintf (Depends-on): Likewise.
15002         * modules/vsprintf-posix (Depends-on): Likewise.
15003         * modules/xvasprintf (Depends-on): Likewise.
15004         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15005         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
15006         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
15007         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
15008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15009         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
15010         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
15011         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
15012         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15013         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
15014         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
15015         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
15016         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15017         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
15018         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
15019         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
15020         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15021         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
15022         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
15023         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
15024         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15025         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
15026         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
15027         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
15028         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
15029         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15030         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
15031         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
15032         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
15033         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
15034         * MODULES.html.sh: Remove EOVERFLOW.
15035         * NEWS: Mention the change.
15036
15037 2008-09-13  Bruno Haible  <bruno@clisp.org>
15038
15039         * modules/errno-tests: New file.
15040         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
15041
15042         * lib/errno.in.h: New file.
15043         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
15044         * modules/errno: New file.
15045         * doc/posix-headers/errno.texi: Update documentation.
15046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
15047
15048 2008-09-13  Bruno Haible  <bruno@clisp.org>
15049
15050         * tests/test-poll.c: Use #if for native Windows, rather than testing
15051         __MSVCRT__.
15052
15053 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15054             Bruno Haible  <bruno@clisp.org>
15055
15056         * lib/glob.c: Don't include <pwd.h> on native Windows.
15057         (WINDOWS32): New macro.
15058         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
15059
15060 2008-09-13  Bruno Haible  <bruno@clisp.org>
15061
15062         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
15063         (ETIMEDOUT): Remove macro.
15064         (glthread_cond_timedwait_multithreaded): New declaration.
15065         (glthread_cond_timedwait): Use it.
15066         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
15067         (glthread_cond_timedwait_multithreaded): New function.
15068
15069 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15070
15071         * modules/poll-tests: Do not check for io.h.
15072         * tests/test-poll.c: Check for __MSVCRT__ instead.
15073
15074 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15075
15076         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
15077         * modules/poll-tests: Add inet_pton, stdbool, sockets.
15078         * tests/test-poll.c: Use them.  Use _pipe on Windows.
15079
15080 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15081
15082         * modules/poll-tests: New.
15083         * tests/test-poll.c: New.
15084
15085 2008-09-12  Eric Blake  <ebb9@byu.net>
15086
15087         frexp: test for NetBSD failure on -0.0
15088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
15089         not all, bugs from NetBSD 3.0 have been fixed.
15090         * doc/posix-functions/frexp.texi (frexp): Document bug.
15091         Reported by Thomas Klausner.
15092
15093         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
15094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
15095         literal -0.0.
15096         Reported by Jonathan C. Patschke <jp@centtech.com>.
15097
15098 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15099
15100         * lib/glthread/cond.h: Use dummy implementation also if
15101         USE_WIN32_THREADS.
15102
15103 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15104
15105         * modules/fnmatch-posix (License): Change to LGPLv2+.
15106         * modules/fnmatch-gnu (License): Likewise.
15107
15108 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15109
15110         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
15111
15112 2008-09-11  Jim Meyering  <meyering@redhat.com>
15113
15114         * users.txt: Add gtk-vnc.
15115
15116 2008-09-08  Simon Josefsson  <simon@josefsson.org>
15117
15118         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
15119         rotate amounts.
15120
15121         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
15122         required for 16-bit and 8-bit rotates.
15123         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
15124         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
15125         UINT8_MAX instead of hard-coded constants.
15126         Suggested by Paul Eggert.
15127
15128 2008-09-07  Bruno Haible  <bruno@clisp.org>
15129
15130         * tests/test-striconveh.c (main): Check behaviour when converting from
15131         UTF-7.
15132
15133         Make striconveh work better with stateful encodings.
15134         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
15135         that iconv does not increment the inptr when returning -1/EINVAL.
15136
15137 2008-09-07  Bruno Haible  <bruno@clisp.org>
15138
15139         * build-aux/config.rpath: Update according to libtool-2.2.6.
15140         * build-aux/config.libpath: Likewise.
15141
15142 2008-09-06  Bruno Haible  <bruno@clisp.org>
15143
15144         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
15145         * lib/freadptr.c (freadptr): Likewise.
15146         * lib/freadseek.c (freadptrinc): Likewise.
15147         Reported by Simon Josefsson.
15148
15149 2008-09-06  Bruno Haible  <bruno@clisp.org>
15150
15151         * modules/freadptr (License): Change to LGPLv2+.
15152         * modules/freadseek (License): Likewise.
15153         Suggested by Eric Blake.
15154
15155         * modules/memchr2 (License): Change to LGPLv2+.
15156         Approved by Eric Blake.
15157
15158 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15159             Bruno Haible  <bruno@clisp.org>
15160
15161         Make gnulib-tool work with native 'sed' on AIX.
15162         * gnulib-tool (sed_noop): New variable.
15163         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
15164         func_add_or_update, func_create_testdir): Use it to initialize sed
15165         script variables.
15166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15167
15168 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
15169             Bruno Haible  <bruno@clisp.org>
15170
15171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
15172         also works after #include directives.
15173
15174 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
15175
15176         getdate.y: reject an out-of-range timezone value
15177         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
15178         the range [-24...+24].  When specified with only one or two digits,
15179         * tests/test-getdate.c: Tests for the fix.
15180         * doc/getdate.texi: Document this change.
15181
15182 2008-09-03  Bruno Haible  <bruno@clisp.org>
15183
15184         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
15185
15186 2008-09-02  Simon Josefsson  <simon@josefsson.org>
15187
15188         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
15189         <bruce.korb@gmail.com> with ideas from Ben Pfaff
15190         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
15191         Blake <ebb9@byu.net>.
15192
15193         * tests/test-bitrotate.c: Add more test vectors.
15194
15195 2008-09-02  Eric Blake  <ebb9@byu.net>
15196
15197         vasnprintf-posix: handle large precision via %.*d
15198         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
15199         when handling it ourselves.
15200         * tests/test-vasnprintf-posix.c (test_function): Add test.
15201         * tests/test-snprintf-posix.h (test_function): Likewise.
15202         * tests/test-sprintf-posix.h (test_function): Likewise.
15203         * tests/test-vasprintf-posix.c (test_function): Likewise.
15204         Reported by Alain Guibert.
15205
15206 2008-09-01  Eric Blake  <ebb9@byu.net>
15207
15208         c-stack: make configure-time check more robust
15209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
15210         successful sigaction call.
15211         Reported by Tom G. Christensen.
15212
15213 2008-09-01  Bruno Haible  <bruno@clisp.org>
15214
15215         New module 'findprog-lgpl'.
15216         * modules/findprog-lgpl: New file.
15217         * lib/findprog-lgpl.c: New file.
15218         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
15219         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
15220         to decide whether to use strdup or xstrdup, concatenated_filename or
15221         xconcatenated_filename.
15222
15223 2008-09-01  Bruno Haible  <bruno@clisp.org>
15224
15225         Split module 'concat-filename' into 'concat-filename' (LGPL) and
15226         'xconcat-filename' (GPL).
15227         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
15228         (License): Change to LGPLv2+.
15229         * modules/xconcat-filename: New file.
15230         * lib/concat-filename.h (concatenated_filename): Change specification.
15231         (xconcatenated_filename): New declaration.
15232         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
15233         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
15234         memory situations.
15235         * lib/xconcat-filename.c: New file.
15236         * NEWS: Mention the change.
15237         * lib/findprog.c: Include concat-filename.h, not filename.h.
15238         (find_in_path): Use xconcatenated_filename instead of
15239         concatenated_filename.
15240         * lib/javacomp.c: Include concat-filename.h, not filename.h.
15241         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15242         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15243         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15244         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
15245         instead of concatenated_filename.
15246         * lib/javaexec.c: Include concat-filename.h, not filename.h.
15247         (execute_java_class): Use xconcatenated_filename instead of
15248         concatenated_filename.
15249         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
15250         * modules/javacomp (Depends-on): Likewise.
15251         * modules/javaexec (Depends-on): Likewise.
15252
15253 2008-09-01  Bruno Haible  <bruno@clisp.org>
15254
15255         Split module 'filename' into 'filename' and 'concat-filename'.
15256         * modules/filename: Keep only lib/filename.h.
15257         (License): Change to LGPLv2+.
15258         * modules/concat-filename: New file, extracted from modules/filename.
15259         * lib/filename.h (concatenated_filename): Remove declaration.
15260         * lib/concat-filename.h: New file, extracted from lib/filename.h.
15261         * lib/concat-filename.c: Include concat-filename.h.
15262         * NEWS: Mention the change.
15263
15264 2008-09-01  Simon Josefsson  <simon@josefsson.org>
15265
15266         * lib/bitrotate.h (rotl8, rotr8): Add.
15267
15268         * modules/bitrotate (configure.ac): Need
15269         AC_REQUIRE([AC_C_INLINE]).
15270         (Description): Mention stdint.h.  Reported by Bruno Haible
15271         <bruno@clisp.org>.
15272
15273         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
15274         Paolo Bonzini <bonzini@gnu.org>.
15275
15276 2008-08-31  Bruno Haible  <bruno@clisp.org>
15277
15278         Assume Solaris specific bi-arch conventions on Solaris systems.
15279         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
15280         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
15281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
15282         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
15283         like acl_libdirstem.
15284         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
15285         acl_libdirstem.
15286         * NEWS: Mention the change.
15287         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
15288
15289 2008-08-31  Jim Meyering  <meyering@redhat.com>
15290
15291         * lib/strftime.h: Add comments describing the two added arguments.
15292
15293         remove duplicate #include directives
15294         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
15295         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
15296
15297 2008-08-31  Bruno Haible  <bruno@clisp.org>
15298
15299         New module 'sigpipe-die'.
15300         * modules/sigpipe-die: New file.
15301         * lib/sigpipe-die.h: New file.
15302         * lib/sigpipe-die.c: New file.
15303         * MODULES.html.sh (Signal handling): Add sigpipe-die.
15304
15305 2008-08-31  Bruno Haible  <bruno@clisp.org>
15306
15307         Don't override previously installed signal handlers.
15308         * lib/fatal-signal.c (saved_sigactions): New variable.
15309         (uninstall_handlers): Reset the signal to the saved handler, not
15310         to SIG_DFL (except when ignored).
15311         (install_handlers): Save the previous handlers.
15312
15313 2008-08-30  Bruno Haible  <bruno@clisp.org>
15314
15315         * gnulib-tool (func_reset_sigpipe): New function.
15316         (func_get_automake_snippet, func_modules_transitive_closure,
15317         func_import): Invoke it before a join command that reads from stdin,
15318         to avoid "echo: write error: Broken pipe" error messages on stderr.
15319         Reported by Sam Steingold <sds@gnu.org>.
15320
15321 2008-08-30  Bruno Haible  <bruno@clisp.org>
15322
15323         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
15324         Code copied from m4/open.m4.
15325         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
15326         access and the filename ends in a slash. Code copied from lib/open.c.
15327         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
15328         * tests/test-fopen.c (main): Check against bug with trailing slash.
15329
15330 2008-08-29  Bruno Haible  <bruno@clisp.org>
15331
15332         Avoid some "gcc -pedantic" warnings.
15333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
15334         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
15335         * lib/dirent.in.h: Likewise.
15336         * lib/fcntl.in.h: Likewise.
15337         * lib/float.in.h: Likewise.
15338         * lib/iconv.in.h: Likewise.
15339         * lib/inttypes.in.h: Likewise.
15340         * lib/locale.in.h: Likewise.
15341         * lib/math.in.h: Likewise.
15342         * lib/netinet_in.in.h: Likewise.
15343         * lib/search.in.h: Likewise.
15344         * lib/signal.in.h: Likewise.
15345         * lib/stdarg.in.h: Likewise.
15346         * lib/stdint.in.h: Likewise.
15347         * lib/stdio.in.h: Likewise.
15348         * lib/stdlib.in.h: Likewise.
15349         * lib/string.in.h: Likewise.
15350         * lib/strings.in.h: Likewise.
15351         * lib/sys_select.in.h: Likewise.
15352         * lib/sys_socket.in.h: Likewise.
15353         * lib/sys_stat.in.h: Likewise.
15354         * lib/sys_time.in.h: Likewise.
15355         * lib/sysexits.in.h: Likewise.
15356         * lib/time.in.h: Likewise.
15357         * lib/unistd.in.h: Likewise.
15358         * lib/wchar.in.h: Likewise.
15359         * lib/wctype.in.h: Likewise.
15360         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
15361         * modules/fchdir (Makefile.am): Likewise.
15362         * modules/fcntl (Makefile.am): Likewise.
15363         * modules/float (Makefile.am): Likewise.
15364         * modules/iconv_open (Makefile.am): Likewise.
15365         * modules/inttypes (Makefile.am): Likewise.
15366         * modules/locale (Makefile.am): Likewise.
15367         * modules/math (Makefile.am): Likewise.
15368         * modules/netinet_in (Makefile.am): Likewise.
15369         * modules/search (Makefile.am): Likewise.
15370         * modules/signal (Makefile.am): Likewise.
15371         * modules/stdarg (Makefile.am): Likewise.
15372         * modules/stdint (Makefile.am): Likewise.
15373         * modules/stdio (Makefile.am): Likewise.
15374         * modules/stdlib (Makefile.am): Likewise.
15375         * modules/string (Makefile.am): Likewise.
15376         * modules/strings (Makefile.am): Likewise.
15377         * modules/sys_select (Makefile.am): Likewise.
15378         * modules/sys_socket (Makefile.am): Likewise.
15379         * modules/sys_stat (Makefile.am): Likewise.
15380         * modules/sys_time (Makefile.am): Likewise.
15381         * modules/sysexits (Makefile.am): Likewise.
15382         * modules/time (Makefile.am): Likewise.
15383         * modules/unistd (Makefile.am): Likewise.
15384         * modules/wchar (Makefile.am): Likewise.
15385         * modules/wctype (Makefile.am): Likewise.
15386         Reported by Reuben Thomas <rrt@sc3d.org>.
15387
15388 2008-08-29  Bruno Haible  <bruno@clisp.org>
15389
15390         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
15391         any more.
15392
15393 2008-08-29  Simon Josefsson  <simon@josefsson.org>
15394
15395         * MODULES.html.sh (Misc): Add bitrotate.
15396
15397         * modules/bitrotate: New file.
15398
15399         * lib/bitrotate.h: New file.
15400
15401         * modules/bitrotate-tests: New file.
15402
15403         * tests/test-bitrotate.c: New file.
15404
15405         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
15406         on the bitrotate module.
15407
15408         * lib/arctwo.c: Use new bitrotate module.
15409
15410 2008-08-29  Jim Meyering  <meyering@redhat.com>
15411
15412         bootstrap: merge changes from coreutils
15413         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
15414         of copied files.  Remove a kludge, now that this is fixed.
15415         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
15416         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
15417         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
15418
15419 2008-08-29  Bruno Haible  <bruno@clisp.org>
15420
15421         * MODULES.html.sh: Remove --cvs-urls option.
15422
15423 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
15424
15425         maint.mk: adjust to file name change
15426         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
15427
15428 2008-08-28  Jim Meyering  <meyering@redhat.com>
15429
15430         * modules/getndelim2 (License): Relicense to LGPLv2+.
15431         Approved by Richard Stallman for the version of 1995, and by
15432         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
15433
15434 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
15435
15436         * lib/getdelim.c (flockfile, funlockfile): Make all of them
15437         dummy if one is not available.  Do not touch them if
15438         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
15439         (getc_maybe_unlocked): New.
15440         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
15441
15442 2008-08-26  Eric Blake  <ebb9@byu.net>
15443
15444         doc/INSTALL: resync from autoconf
15445         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
15446         (INSTALL_PRELUDE): Delete; this is done more efficiently by
15447         moving...
15448         * install.texi [!autoconf]: ...here.  Resync from autoconf.
15449         * INSTALL: Regenerate.
15450         * INSTALL.ISO: New file.
15451         * INSTALL.UTF-8: Likewise.
15452
15453 2008-08-26  Jim Meyering  <meyering@redhat.com>
15454
15455         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
15456         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
15457         these definitions conditional, so that they may be overridden, too.
15458
15459 2008-08-26  Bruno Haible  <bruno@clisp.org>
15460
15461         Generate INSTALL file variants with prettier quotes.
15462         * doc/Makefile (INSTALL_PRELUDE): New macro.
15463         (INSTALL): Use it.
15464         (INSTALL.ISO, INSTALL.UTF-8): New rules.
15465
15466 2008-08-26  Bruno Haible  <bruno@clisp.org>
15467
15468         Run makeinfo in an English locale.
15469         * doc/Makefile (MAKEINFO): New variable.
15470
15471 2008-08-26  Bruno Haible  <bruno@clisp.org>
15472
15473         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
15474         Suggested by Eric Blake.
15475
15476 2008-08-25  Bruno Haible  <bruno@clisp.org>
15477
15478         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
15479
15480 2008-08-25  Eric Blake  <ebb9@byu.net>
15481
15482         c-stack: test that stack overflow can be caught
15483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
15484         that platform allows handling stack overflow; at least OS/2 EMX
15485         has sigaltstack, but crashes before transferring control to
15486         handler on stack overflow.
15487         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
15488         check for HAVE_STACK_OVERFLOW_HANDLING.
15489         Reported by Elbert Pol.
15490
15491 2008-08-25  Bruno Haible  <bruno@clisp.org>
15492
15493         * doc/posix-functions/strftime.texi: Fix description of strftime
15494         module.
15495
15496 2008-08-24  Bruno Haible  <bruno@clisp.org>
15497
15498         * tests/uniwidth/test-uc_width2.c: New file.
15499         * tests/uniwidth/test-uc_width2.sh: New file.
15500         * modules/uniwidth/width-tests (Files): Add the new files.
15501         (TESTS): Add uniwidth/test-uc_width2.sh.
15502         (TESTS_ENVIRONMENT): New variable.
15503         (check_PROGRAMS): Add test-uc_width2.
15504         (test_uc_width2_SOURCES): New variable.
15505
15506         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
15507         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
15508         not 0x00AB.
15509         Reported by Alexander V. Lukyanov <lav@netis.ru>.
15510
15511 2008-08-22  Eric Blake  <ebb9@byu.net>
15512
15513         test-lock, test-tls: mention why a test is skipped
15514         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
15515         skipped.
15516         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
15517
15518         count-one-bits: relax license
15519         * modules/count-one-bits (License): Relicense to LGPLv2+.
15520         Suggested by Ludovic Courtès, approved by Ben Pfaff.
15521
15522 2008-08-22  Andreas Schwab  <schwab@suse.de>
15523
15524         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15525         Remove spurious space in assignment.
15526
15527 2008-08-21  Simon Josefsson  <simon@josefsson.org>
15528
15529         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
15530         Paul Eggert <eggert@CS.UCLA.EDU>.
15531
15532 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
15533
15534         * modules/gettext: Add m4/threadlib.m4.
15535
15536 2008-08-19  Eric Blake  <ebb9@byu.net>
15537
15538         test-c-stack: fix compilation failure on FreeBSD 5.0
15539         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
15540         headers before <sys/resource.h>.
15541         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
15542         the bug.
15543         Reported by Nelson H. F. Beebe.
15544
15545         strverscmp: migrate from "strverscmp.h" to <string.h>
15546         * modules/string (Makefile.am): Add new hooks.
15547         * modules/strverscmp (Files): Remove strverscmp.h.
15548         (Depends-on): Add string.
15549         (configure.ac): Add indicator.
15550         (Include): Mention new header.
15551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
15552         defaults.
15553         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
15554         results.
15555         * lib/strverscmp.h: Delete.
15556         * lib/string.in.h (strverscmp): Provide declaration, when needed.
15557         * tests/test-strverscmp.c (includes): Adjust client.
15558         * lib/check-version.c (includes): Likewise.
15559         * NEWS: Document the change.
15560
15561         strverscmp: add unit test
15562         * modules/strverscmp-tests: New file.
15563         * tests/test-strverscmp.c: Likewise.
15564
15565 2008-08-19  Simon Josefsson  <simon@josefsson.org>
15566
15567         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
15568         regarding Windows crypto stuff, from Mono.
15569
15570 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
15571
15572         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
15573         if present, for intel RND.  Return error on failures.
15574
15575 2008-08-18  Ben Pfaff  <blp@gnu.org>
15576
15577         gitlog-to-changelog: give better diagnostic for failed pipe-open
15578         * build-aux/gitlog-to-changelog: Improve error message: suggest
15579         that the version of Git may be too old.
15580
15581 2008-08-18  Simon Josefsson  <simon@josefsson.org>
15582
15583         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
15584         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
15585
15586 2008-08-18  Bruno Haible  <bruno@clisp.org>
15587
15588         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
15589         pthread_in_use().
15590
15591 2008-08-18  Bruno Haible  <bruno@clisp.org>
15592
15593         * lib/glthread/threadlib.c: Include <pthread.h>.
15594
15595 2008-08-18  Bruno Haible  <bruno@clisp.org>
15596
15597         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
15598         glthread_recursive_lock_* macros.
15599         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
15600         Fix syntax error.
15601
15602 2008-08-18  Bruno Haible  <bruno@clisp.org>
15603
15604         * lib/glthread/thread.c: Avoid forcing a context switch right after
15605         thread creation.
15606
15607 2008-08-17  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
15610         * lib/glthread/thread.h: Provide Win32 specific implementation.
15611         * modules/thread (Files): Add lib/glthread/thread.c.
15612         (Depends-on): Add lock.
15613         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
15614
15615 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15616
15617         New module 'yield'.
15618         * modules/yield: New file.
15619         * lib/glthread/yield.h: New file.
15620         * m4/yield.m4: New file.
15621         * MODULES.html.sh (Multithreading): Add yield.
15622
15623 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15624
15625         New module 'thread'.
15626         * modules/thread: New file.
15627         * lib/glthread/thread.h: New file.
15628         * m4/thread.m4: New file.
15629         * MODULES.html.sh (Multithreading): Add thread.
15630
15631 2008-08-17  Bruno Haible  <bruno@clisp.org>
15632
15633         * lib/glthread/lock.h: Include <stdlib.h> always.
15634         * lib/glthread/tls.h: Likewise.
15635         * lib/glthread/cond.h: Likewise.
15636
15637 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15638
15639         New module 'cond'.
15640         * modules/cond: New file.
15641         * lib/glthread/cond.h: New file.
15642         * lib/glthread/cond.c: New file.
15643         * m4/cond.m4: New file.
15644         * MODULES.html.sh (Multithreading): Add cond.
15645
15646 2008-08-16  Eric Blake  <ebb9@byu.net>
15647
15648         c-stack: fix regression on Irix 5.3 from 2008-06-21
15649         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
15650         sa_sigaction...
15651         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
15652         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
15653         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
15654         * modules/signal (Makefile.am): Use the value.
15655         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
15656         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
15657         * doc/posix-headers/signal.texi (signal.h): Document this
15658         portability issue.
15659         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
15660         Reported by Tom G. Christensen.
15661
15662 2008-08-17  Bruno Haible  <bruno@clisp.org>
15663
15664         New module 'threadlib'.
15665         * modules/threadlib: New file.
15666         * lib/glthread/threadlib.c: New file, extracted from
15667         lib/glthread/lock.c.
15668         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
15669         functions.
15670         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
15671         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
15672         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
15673         macros.
15674         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
15675         (gl_DISABLE_THREADS): Remove macro.
15676         * modules/lock (Files): Remove build-aux/config.rpath.
15677         (Depends-on): Remove havelib. Add threadlib.
15678         (configure.ac-early): Remove section.
15679         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
15680         * modules/tls (Depends-on): Remove lock. Add threadlib.
15681         (Link): New section, copied from threadlib.
15682         * MODULES.html.sh (Multithreading): Add threadlib.
15683
15684 2008-08-14  Bruno Haible  <bruno@clisp.org>
15685
15686         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
15687         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
15688         glthread_rwlock_unlock, glthread_rwlock_destroy,
15689         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
15690         glthread_recursive_lock_destroy): Define as macros always.
15691         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
15692         glthread_lock_lock.
15693         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
15694         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
15695         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
15696         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
15697         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
15698         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
15699         (glthread_recursive_lock_lock_func): Renamed from
15700         glthread_recursive_lock_lock.
15701         (glthread_recursive_lock_unlock_func): Renamed from
15702         glthread_recursive_lock_unlock.
15703         (glthread_recursive_lock_destroy_func): Renamed from
15704         glthread_recursive_lock_destroy.
15705
15706 2008-08-14  Bruno Haible  <bruno@clisp.org>
15707
15708         * lib/glthread/lock.h: Renamed from lib/lock.h.
15709         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
15710         * lib/glthread/tls.h: Renamed from lib/tls.h.
15711         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
15712         * lib/fstrcmp.c: Update includes.
15713         * lib/strsignal.c: Update includes.
15714         * modules/lock (Files, Makefile.am): Update.
15715         (Include): Change to "glthread/lock.h".
15716         * modules/tls (Files, Makefile.am): Update.
15717         (Include): Change to "glthread/tls.h".
15718         * tests/test-lock.c: Update includes.
15719         * tests/test-tls.c: Update includes.
15720         * NEWS: Mention the renamed header files.
15721
15722 2008-08-11  Jim Meyering  <meyering@redhat.com>
15723
15724         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
15725
15726 2008-08-11  Eric Blake  <ebb9@byu.net>
15727
15728         test-c-stack: avoid C99-ism
15729         * tests/test-c-stack.c (main): Fix whitespace, move declaration
15730         before statement.
15731         Reported by Alain Guibert.
15732
15733 2008-08-10  Jim Meyering  <meyering@redhat.com>
15734
15735         ensure that return value of uinttostr et al are not ignored
15736         * lib/inttostr.h (__GNUC_PREREQ): Define.
15737         (__attribute_warn_unused_result__): Define.
15738         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
15739
15740 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
15741
15742         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
15743         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
15744
15745 2008-08-07  Jim Meyering  <meyering@redhat.com>
15746
15747         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
15748
15749         * modules/mkstemp (License): Relicense under LGPLv2+.
15750         * modules/tempname (License): Likewise.
15751
15752 2008-08-06  Bruno Haible  <bruno@clisp.org>
15753
15754         * lib/poll.c (poll): Further micro-optimization.
15755
15756 2008-08-06  Jim Meyering  <meyering@redhat.com>
15757
15758         inet_pton.c: use locale-independent tolower
15759         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
15760         (inet_pton6): Use c_tolower rather than tolower.
15761         * modules/inet_pton (Depends-on): Add c-ctype.
15762
15763 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
15764
15765         * lib/poll.c (poll): Avoid division when timeout is 0, cache
15766         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
15767
15768 2008-08-06  Jim Meyering  <meyering@redhat.com>
15769
15770         * modules/inet_pton (License): Relicense under LGPLv2+.
15771
15772 2008-08-03  Bruno Haible  <bruno@clisp.org>
15773
15774         Additional non-aborting API for lock and tls.
15775         * lib/lock.h: Include <errno.h>.
15776         (glthread_lock_init): New macro/function.
15777         (gl_lock_init): Define as wrapper around glthread_lock_init.
15778         (glthread_lock_lock): New macro/function.
15779         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
15780         (glthread_lock_unlock): New macro/function.
15781         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
15782         (glthread_lock_destroy): New macro/function.
15783         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
15784         (glthread_rwlock_init): New macro/function.
15785         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
15786         (glthread_rwlock_rdlock): New macro/function.
15787         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
15788         (glthread_rwlock_wrlock): New macro/function.
15789         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
15790         (glthread_rwlock_unlock): New macro/function.
15791         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
15792         (glthread_rwlock_destroy): New macro/function.
15793         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
15794         (glthread_recursive_lock_init): New macro/function.
15795         (gl_recursive_lock_init): Define as wrapper around
15796         glthread_recursive_lock_init.
15797         (glthread_recursive_lock_lock): New macro/function.
15798         (gl_recursive_lock_lock): Define as wrapper around
15799         glthread_recursive_lock_lock.
15800         (glthread_recursive_lock_unlock): New macro/function.
15801         (gl_recursive_lock_unlock): Define as wrapper around
15802         glthread_recursive_lock_unlock.
15803         (glthread_recursive_lock_destroy): New macro/function.
15804         (gl_recursive_lock_destroy): Define as wrapper around
15805         glthread_recursive_lock_destroy.
15806         (glthread_once): New macro/function.
15807         (gl_once): Define as wrapper around glthread_once.
15808         Update function declarations.
15809         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
15810         glthread_rwlock_init. Return error code.
15811         (glthread_rwlock_rdlock_multithreaded): Renamed from
15812         glthread_rwlock_rdlock. Return error code.
15813         (glthread_rwlock_wrlock_multithreaded): Renamed from
15814         glthread_rwlock_wrlock. Return error code.
15815         (glthread_rwlock_unlock_multithreaded): Renamed from
15816         glthread_rwlock_unlock. Return error code.
15817         (glthread_rwlock_destroy_multithreaded): Renamed from
15818         glthread_rwlock_destroy. Return error code.
15819         (glthread_recursive_lock_init_multithreaded): Renamed from
15820         glthread_recursive_lock_init. Return error code.
15821         (glthread_recursive_lock_lock_multithreaded): Renamed from
15822         glthread_recursive_lock_lock. Return error code.
15823         (glthread_recursive_lock_unlock_multithreaded): Renamed from
15824         glthread_recursive_lock_unlock. Return error code.
15825         (glthread_recursive_lock_destroy_multithreaded): Renamed from
15826         glthread_recursive_lock_destroy. Return error code.
15827         (glthread_once_call): Make static.
15828         (glthread_once_multithreaded): Renamed from glthread_once.
15829         * lib/tls.h: Include <errno.h>.
15830         (glthread_tls_key_init): New macro/function.
15831         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
15832         (glthread_tls_set): New macro/function.
15833         (gl_tls_set): Define as wrapper around glthread_tls_set.
15834         (glthread_tls_key_destroy): New macro/function.
15835         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
15836         Update function declarations.
15837         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
15838         glthread_tls_get.
15839         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15840
15841 2008-08-04  Eric Blake  <ebb9@byu.net>
15842
15843         gnumakefile: use space, not TAB, outside of targets
15844         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
15845
15846 2008-08-02  Jim Meyering  <meyering@redhat.com>
15847
15848         getdate.y: avoid locale-dependent date parsing failure
15849         In Turkish locales, getdate would fail to recognize keywords
15850         containing a lowercase "i".  The solution is not to rely on
15851         locale-sensitive case-conversion.
15852         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
15853         (lookup_word): Use c_toupper in place of toupper.
15854         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
15855         Reported by Vefa Bicakci <bicave@superonline.com> in
15856         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
15857         * modules/getdate (Depends-on): Add c-ctype.
15858
15859 2008-08-02  Bruno Haible  <bruno@clisp.org>
15860
15861         * gnulib-tool (func_import): When updating or creating a .gitignore
15862         file, prepend each added line with a slash, and ignore leading slashes
15863         from the existing lines.
15864         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
15865
15866 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15867
15868         Portability fix for GNU make 3.79.1.
15869         * top/GNUmakefile: Avoid 'else COND', which older GNU make
15870         versions do not understand.
15871
15872 2008-08-01  Bruno Haible  <bruno@clisp.org>
15873
15874         Work around bug of HP-UX 10.20 cc with -0.0 literal.
15875         * tests/test-isnanf.h (zero): New variable.
15876         (main): Avoid literal -0.0f.
15877         * tests/test-isnand.h (zero): New variable.
15878         (main): Avoid literal -0.0.
15879         * tests/test-isnanl.h (zero): New variable.
15880         (main): Avoid literal -0.0L.
15881         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
15882         (test_float, test_double, test_long_double): Avoid literals -0.0f,
15883         -0.0, -0.0L.
15884         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
15885         (test_signbitd): Avoid literal -0.0.
15886         (test_signbitl): Avoid literal -0.0L.
15887         * tests/test-ceilf1.c (zero): New variable.
15888         (main): Avoid literal -0.0f.
15889         * tests/test-ceill.c (zero): New variable.
15890         (main): Avoid literal -0.0L.
15891         * tests/test-floorf1.c (zero): New variable.
15892         (main): Avoid literal -0.0f.
15893         * tests/test-floorl.c (zero): New variable.
15894         (main): Avoid literal -0.0L.
15895         * tests/test-roundf1.c (zero): New variable.
15896         (main): Avoid literal -0.0f.
15897         * tests/test-round1.c (zero): New variable.
15898         (main): Avoid literal -0.0.
15899         * tests/test-roundl.c (zero): New variable.
15900         (main): Avoid literal -0.0L.
15901         * tests/test-truncf1.c (zero): New variable.
15902         (main): Avoid literal -0.0f.
15903         * tests/test-trunc1.c (zero): New variable.
15904         (main): Avoid literal -0.0.
15905         * tests/test-truncl.c (zero): New variable.
15906         (main): Avoid literal -0.0L.
15907         * tests/test-frexp.c (zero): New variable.
15908         (main): Avoid literal -0.0.
15909         * tests/test-frexpl.c (zero): New variable.
15910         (main): Avoid literal -0.0L.
15911         * tests/test-ldexpl.c (zero): New variable.
15912         (main): Avoid literal -0.0L.
15913         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
15914         (zerod, zerol): New variables.
15915         (test_function): Avoid literals -0.0, -0.0L.
15916         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
15917         (zerod, zerol): New variables.
15918         (test_function): Avoid literals -0.0, -0.0L.
15919         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
15920         (zerod, zerol): New variables.
15921         (test_function): Avoid literals -0.0, -0.0L.
15922         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
15923         (zerod, zerol): New variables.
15924         (test_function): Avoid literals -0.0, -0.0L.
15925         * tests/test-strtod.c (zero): New variable.
15926         (main): Avoid literal -0.0.
15927         Reported by Jonathan C. Patschke <jp@centtech.com>.
15928
15929 2008-07-31  Jim Meyering  <meyering@redhat.com>
15930
15931         sha256.h: correct definition of SHA224_DIGEST_SIZE
15932         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
15933         Reported by Paulie Pena IV <paulie4@gmail.com>.
15934         Define as 224 / 8, rather than as a literal.
15935         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
15936         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
15937         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
15938
15939 2008-07-31  Bruno Haible  <bruno@clisp.org>
15940
15941         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
15942         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
15943         Reported by Jonathan Patschke <jp@centtech.com>.
15944
15945 2008-07-31  Bruno Haible  <bruno@clisp.org>
15946
15947         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
15948         Reported by Paolo Bonzini <bonzini@gnu.org>.
15949
15950 2008-07-30  Eric Blake  <ebb9@byu.net>
15951
15952         test-strtod: allow compilation without -lm
15953         * tests/test-strtod.c (main): Avoid link dependence on fabs.
15954         Reported by Dennis Clarke <blastwave@gmail.com>.
15955
15956 2008-07-28  Jim Meyering  <meyering@redhat.com>
15957
15958         bootstrap: work also when there are no .po files in po/
15959         * build-aux/bootstrap (update_po_files): Complete the change
15960         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
15961
15962 2008-07-27  Jim Meyering  <meyering@redhat.com>
15963
15964         * users.txt: Add zile.
15965
15966 2008-07-26  Ben Pfaff  <blp@gnu.org>
15967
15968         Add missing dependencies on new m4/exponent[fdl].m4 files.
15969         * modules/isnanf-nolibm: Add m4/exponentf.m4.
15970         * modules/isnand-nolibm: Add m4/exponentd.m4.
15971         * modules/isnanl-nolibm: Add m4/exponentl.m4.
15972         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
15973         m4/isnan[fdl].m4, because the macros actually used moved.
15974         Reported by Jim Meyering.
15975
15976 2008-07-14  Ben Pfaff  <blp@gnu.org>
15977
15978         Add isinf module.
15979         * lib/isinf.c: New file.
15980         * lib/math.in.h: Define isinf macro if we have decided to replace
15981         it.
15982         * m4/isinf.m4: New file.
15983         * m4/math_h.m4: Initialize and substitute variables for isinf
15984         module.
15985         * modules/isinf: New file.
15986         * modules/isinf-tests: New file.
15987         * modules/math: Add substitutions for new module.
15988         * tests/test-isinf.c: New file.
15989         * doc/posix-functions/isinf.texi: Mention new module.
15990         * MODULES.html.sh: Mention new module.
15991
15992 2008-07-14  Ben Pfaff  <blp@gnu.org>
15993
15994         Factor out some macros for use by additional modules.
15995         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
15996         exponentf.m4.
15997         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
15998         exponentd.m4.
15999         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
16000         file exponentl.m4.
16001         * m4/exponentf.m4: New file.
16002         * m4/exponentd.m4: New file.
16003         * m4/exponentl.m4: New file.
16004         * modules/isnanf: Use new file m4/exponentf.m4.
16005         * modules/isnand: Use new file m4/exponentd.m4.
16006         * modules/isnanl: Use new file m4/exponentl.m4.
16007
16008 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
16009
16010         mktime.c: normalize tp->tm_isdst value to -1/0/1.
16011         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
16012         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
16013         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
16014
16015         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
16016         readlink on platforms without PATH_MAX.
16017
16018 2008-07-21  Eric Blake  <ebb9@byu.net>
16019
16020         Warn, not fail, on stale version.
16021         * top/GNUmakefile (_curr-ver): Tone down previous patch.
16022
16023         Don't allow installation with stale devel version number.
16024         * top/GNUmakefile (_is-install-target): New macro.
16025         (_curr-ver): Forbid installation with stale version number.
16026
16027 2008-07-20  Bruno Haible  <bruno@clisp.org>
16028
16029         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
16030         TESTS_ENVIRONMENT.
16031         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
16032
16033 2008-07-20  Bruno Haible  <bruno@clisp.org>
16034
16035         * lib/c-stack.h (c_stack_action): Add documentation.
16036         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
16037
16038 2008-07-20  Bruno Haible  <bruno@clisp.org>
16039
16040         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
16041         * modules/readlink (License): Likewise.
16042
16043 2008-07-17  Eric Blake  <ebb9@byu.net>
16044
16045         * modules/c-stack (Link): Fix typo.
16046
16047         Make c-stack use libsigsegv, when available.
16048         * modules/c-stack (Depends-on): Add libsigsegv.
16049         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
16050         needed.
16051         * lib/c-stack.c (SIGSTKSZ): Define fallback.
16052         (segv_handler, overflow_handler, c_stack_action)
16053         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
16054         implementation when libsigsegv is available, but only when using
16055         the library is necessary.
16056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
16057         comment, explaining why XSI check fails on Linux.
16058         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
16059         * tests/test-c-stack2.sh: Tweak skip message.
16060         * NEWS: Document new link-time requirements.
16061
16062 2008-07-16  Eric Blake  <ebb9@byu.net>
16063
16064         c-stack: Expose false positives when not using libsigsegv.
16065         * modules/c-stack-tests (Files): Expand test.
16066         * tests/test-c-stack.c (main): Add means to conditionally trigger
16067         non-overflow SIGSEGV.
16068         * tests/test-c-stack2.sh: New file.
16069
16070 2008-07-14  Bruno Haible  <bruno@clisp.org>
16071
16072         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
16073         Reported by Eric Blake.
16074
16075 2008-07-14  Sam Steingold  <sds@gnu.org>
16076             Bruno Haible  <bruno@clisp.org>
16077
16078         New module libsigsegv.
16079         * modules/libsigsegv: New file.
16080         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
16081         modifications.
16082         * MODULES.html.sh (Signal handling): New section.
16083
16084 2008-07-14  Bruno Haible  <bruno@clisp.org>
16085
16086         * modules/unictype/ctype-* (Description): Add the word "function".
16087         Improves the resulting doc in MODULES.html.
16088
16089 2008-07-12  Ben Pfaff  <blp@gnu.org>
16090
16091         Add longlong module.
16092         * modules/longlong: New file.
16093
16094 2008-07-12  Bruno Haible  <bruno@clisp.org>
16095
16096         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
16097         to empty.
16098
16099 2008-07-10  Ben Pfaff  <blp@gnu.org>
16100
16101         Add isnan module.
16102         * doc/posix-functions/isnan.texi: Mention new module.
16103         * lib/math.in.h: Define isnan macro if we have decided to replace
16104         it.
16105         * m4/isnan.m4: New file.
16106         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
16107         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
16108         also.
16109         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
16110         redundancy.
16111         * m4/math_h.m4: Initialize and substitute variables for isnan
16112         module.
16113         * modules/isnan: New file.
16114         * modules/isnan-tests: New file.
16115         * modules/math: Add substitutions for new module.
16116         * tests/test-isnan.c: New file.
16117         * MODULES.html.sh: Mention new module.
16118
16119 2008-07-10  Ben Pfaff  <blp@gnu.org>
16120
16121         Add isnanf module.
16122         * lib/isnanf.m4: New file.
16123         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
16124         (gl_HAVE_ISNANF_IN_LIBM): New macro.
16125         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
16126         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
16127         * modules/isnanf: New file.
16128         * modules/isnanf-tests: New file.
16129         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
16130         files.
16131         * tests/test-isnanf-nolibm.c: factored most of its contents into
16132         new file tests/test-isnanf.h.
16133         * tests/test-isnanf.h: New file.
16134         * tests/test-isnanf.c: New file.
16135         * MODULES.html.sh: Mention new module.
16136         * doc/glibc-functions/isnanf.texi: Mention new module.
16137
16138 2008-07-10  Ben Pfaff  <blp@gnu.org>
16139
16140         Add isnand module.
16141         * lib/isnand.h: New file.
16142         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
16143         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
16144         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
16145         functionality also.
16146         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
16147         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
16148         (gl_HAVE_ISNAND_IN_LIBM): New macro.
16149         * modules/isnand: New file.
16150         * modules/isnand-tests: New file.
16151         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
16152         files.
16153         * tests/test-isnand-nolibm.c: factored most of its contents into
16154         new file tests/test-isnand.h.
16155         * tests/test-isnand.h: New file.
16156         * tests/test-isnand.c: New file.
16157         * MODULES.html.sh: Mention new module.
16158
16159 2008-07-10  Ben Pfaff  <blp@gnu.org>
16160
16161         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
16162         * lib/isnand.h: Rename lib/isnand-nolibm.h.
16163         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
16164         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
16165         * modules/isnanf-nolibm: Update references to renamed files.
16166         * modules/isnand-nolibm: Likewise.
16167         * modules/isnanf-nolibm-tests: Likewise.
16168         * modules/isnand-nolibm-tests: Likewise.
16169         * lib/frexp.c: Likewise.
16170         * lib/isfinite.c: Likewise.
16171         * lib/signbitd.c: Likewise.
16172         * lib/signbitf.c: Likewise.
16173         * lib/vasnprintf.c: Likewise.
16174         * tests/test-ceilf1.c: Likewise.
16175         * tests/test-ceilf2.c: Likewise.
16176         * tests/test-floorf1.c: Likewise.
16177         * tests/test-floorf2.c: Likewise.
16178         * tests/test-frexp.c: Likewise.
16179         * tests/test-round1.c: Likewise.
16180         * tests/test-round2.c: Likewise.
16181         * tests/test-roundf1.c: Likewise.
16182         * tests/test-strtod.c: Likewise.
16183         * tests/test-trunc1.c: Likewise.
16184         * tests/test-trunc2.c: Likewise.
16185         * tests/test-truncf1.c: Likewise.
16186         * tests/test-truncf2.c: Likewise.
16187         * NEWS: Mention the renamed header files.
16188
16189 2008-07-11  Jim Meyering  <meyering@redhat.com>
16190
16191         vc-list-files: make the last-resort awk code more portable
16192         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
16193         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
16194         does not support it.
16195
16196 2008-07-10  Eric Blake  <ebb9@byu.net>
16197
16198         Work with tar's bootstrap.
16199         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
16200         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
16201         an m4 comment.
16202
16203 2008-07-09  Jim Meyering  <meyering@redhat.com>
16204
16205         posix-shell.m4: fix typo that made this test malfunction
16206         * m4/posix-shell.m4: Remove capitalization in variable name.
16207
16208 2008-07-08  Bruno Haible  <bruno@clisp.org>
16209
16210         * m4/onceonly.m4: Update comments.
16211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16212
16213 2008-07-04  Jim Meyering  <meyering@redhat.com>
16214
16215         * users.txt: Add vc-dwim.
16216         (bison, coreutils): Use the gitweb URL.
16217
16218 2008-07-03  Jim Meyering  <meyering@redhat.com>
16219
16220         * users.txt: Add libffcall.  From Sam Steingold.
16221
16222 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
16223
16224         getdate.y: do not ignore TZ with relative day, month or year offset
16225         * lib/getdate.y (get_date): Move the tz-handling block to follow the
16226         relative-date-handling, since otherwise, the latter would clobber the
16227         sole output (an updated Start value) of the tz-handling block.
16228         * tests/test-getdate.c: Tests for the fix
16229
16230 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16231
16232         Recognize 'foo_LIBRARIES += libgnu.a'.
16233         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
16234         makefile snippet has already specified an installation location,
16235         also using '+='.
16236
16237 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
16238
16239         getdate.y: factor out common actions
16240         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
16241         Use them in place of open-coded actions.
16242
16243 2008-07-01  Simon Josefsson  <simon@josefsson.org>
16244
16245         Add self-test for getdate module.
16246         * modules/getdate-tests: New file.
16247         * tests/test-getdate.c: New file.
16248
16249 2008-06-29  Bruno Haible  <bruno@clisp.org>
16250
16251         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
16252         .gitignore.
16253         Reported by Sylvain Beucler <beuc@beuc.net>.
16254
16255 2008-06-29  Bruno Haible  <bruno@clisp.org>
16256
16257         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
16258         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
16259
16260 2008-06-29  Bruno Haible  <bruno@clisp.org>
16261
16262         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
16263         EXTRA_DIST.
16264         Reported by Sylvain Beucler <beuc@beuc.net>.
16265
16266 2008-06-26  Jim Meyering  <meyering@redhat.com>
16267
16268         make several modules depend on the "open" module
16269         This provides slightly increased consistency when opening-for-write
16270         the name of a non-directory spelled with a trailing slash.
16271         * modules/chdir-safer: Likewise.
16272         * modules/chown: Likewise.
16273         * modules/clean-temp: Likewise.
16274         * modules/copy-file: Likewise.
16275         * modules/fchdir: Likewise.
16276         * modules/fcntl-safer: Likewise.
16277         * modules/pipe: Likewise.
16278         * modules/utime: Likewise.
16279         Prompted by Eric Blake and Bruno Haible.
16280
16281 2008-06-24  Andreas Schwab  <schwab@suse.de>
16282
16283         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
16284         literals can be used as initializers for global variables.
16285
16286 2008-06-23  Eric Blake  <ebb9@byu.net>
16287
16288         Make gnulib-cache.m4 easier to diff.
16289         * gnulib-tool (func_import): Allow newlines when reading cached
16290         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
16291
16292 2008-06-23  Bruno Haible  <bruno@clisp.org>
16293
16294         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
16295         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
16296         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
16297         m4/signalblocking.m4.
16298         (gl_PREREQ_SIGACTION): Don't invoke it.
16299         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
16300         gl_PREREQ_SIG_HANDLER_H.
16301         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16302         Don't check for sigaction here.
16303
16304 2008-06-23  Bruno Haible  <bruno@clisp.org>
16305
16306         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
16307         (install_handlers): Don't set the SA_RESETHAND flag.
16308
16309 2008-06-23  Bruno Haible  <bruno@clisp.org>
16310
16311         * m4/sigaction.m4: Comment fixes.
16312         * lib/signal.in.h: Likewise.
16313
16314 2008-06-23  Eric Blake  <ebb9@byu.net>
16315
16316         Fix typo.
16317         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
16318
16319         Avoid SA_ namespace.
16320         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
16321         Reported by Ralf Wildenhues.
16322
16323         Avoid test failure due to SA_RESTORER.
16324         * tests/test-sigaction.c (SA_MASK): New macro.
16325         (main): Avoid failing due to extension flags being set.
16326         Reported by Jim Meyering.
16327
16328         Revert use of sig-handler.h in sigprocmask.c.
16329         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
16330         it requires the existence of struct sigaction.
16331         * lib/sigprocmask.c (handler_t): Restore typedef.
16332         (rpl_signal, old_handlers): Use local type.
16333
16334 2008-06-22  Bruno Haible  <bruno@clisp.org>
16335
16336         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
16337         conditionally.
16338         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16339
16340 2008-06-22  Bruno Haible  <bruno@clisp.org>
16341
16342         * doc/posix-functions/siginterrupt.texi: Move note.
16343
16344         * lib/signal.in.h (SA_RESTART): New macro.
16345         * lib/sigaction.c: Update comment.
16346
16347         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
16348
16349         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
16350         (gl_PREREQ_SIGPROCMASK): Invoke it.
16351         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
16352
16353         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
16354
16355         * lib/sigprocmask.c: Update a comment.
16356
16357 2008-06-21  Eric Blake  <ebb9@byu.net>
16358
16359         Use sigaction module rather than signal().
16360         * modules/c-stack (Depends-on): Add sigaction.
16361         * modules/fatal-signal (Depends-on): Likewise.
16362         * modules/nanosleep (Depends-on): Likewise.
16363         * modules/sigprocmask (Files): Add sig-handler.h.
16364         * modules/sigaction (Files): Likewise.
16365         * lib/sig-handler.h (get_handler): New file, suggested by Paul
16366         Eggert.
16367         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
16368         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
16369         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
16370         (init_fatal_signals): Likewise.
16371         * lib/nanosleep.c (rpl_nanosleep): Likewise.
16372         (siginterrupt): Delete fallback.
16373         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
16374         instead.
16375         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
16376         siginterrupt.
16377
16378         New module sigaction, for mingw.
16379         * modules/sigaction: New module...
16380         * modules/sigaction-tests: ...and its test.
16381         * m4/sigaction.m4: New file.
16382         * lib/sigaction.c: Likewise.
16383         * tests/test-sigaction.c: Likewise.
16384         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
16385         * modules/signal (Makefile.am): Likewise.
16386         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
16387         needed.
16388         * doc/posix-headers/signal.texi (signal.h): Mention provided
16389         types.
16390         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
16391         that sigaction is preferable.
16392         * doc/posix-functions/sigaction.texi (sigaction): Mention new
16393         module.
16394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16395         sigaction.
16396
16397         Improve robustness of sigprocmask by overriding signal.
16398         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
16399         is in use.
16400         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
16401         (SIGKILL, SIGSTOP): Provide fallbacks.
16402         (rpl_signal): Implement.
16403         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
16404         signal can be called inside handlers.
16405
16406         Fix nanosleep module on mingw.
16407         * modules/nanosleep (Depends-on): Add sys_select.
16408         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
16409
16410         Fix licensing of sigprocmask.
16411         * modules/raise (License): Relicense as LGPL.
16412
16413 2008-06-21  Bruno Haible  <bruno@clisp.org>
16414
16415         * lib/propername.c (proper_name_utf8): Don't use the transliterated
16416         result if it contains question marks.
16417         Reported by Michael Geng <linux@michaelgeng.de>.
16418
16419 2008-06-19  Bruno Haible  <bruno@clisp.org>
16420
16421         Fix CVS-ism.
16422         * doc/gnulib.texi: Include updated-stamp.texi.
16423         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
16424         (updated-stamp.texi): New rule.
16425         (gnulib.info): Depend on it.
16426         * doc/.gitignore: Add updated-stamp.texi.
16427         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
16428
16429 2008-06-19  Bruno Haible  <bruno@clisp.org>
16430
16431         * doc/Makefile (gnulib.info): Update and simplify dependencies.
16432         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16433
16434 2008-06-19  Eric Blake  <ebb9@byu.net>
16435
16436         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
16437         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
16438         Reported by Stepan Kasal.
16439
16440 2008-06-18  Bruno Haible  <bruno@clisp.org>
16441
16442         * lib/fatal-signal.c (init_fatal_signals): Add comment.
16443         Reported by Eric Blake.
16444
16445 2008-06-18  Eric Blake  <ebb9@byu.net>
16446
16447         Work around cygwin 1.5.25 strsignal bug.
16448         * tests/test-strsignal.c: Allow for const char *.
16449         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
16450
16451 2008-06-18  Simon Josefsson  <simon@josefsson.org>
16452
16453         * users.txt: Update URL to article and add author/date
16454         information.
16455
16456 2008-06-17  Bruno Haible  <bruno@clisp.org>
16457
16458         New macro gl_DISABLE_THREADS.
16459         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
16460         if the user did not pass --enable-threads or --disable-threads option.
16461         (gl_DISABLE_THREADS): New macro.
16462         Reported by Eric Blake <ebb9@byu.net>.
16463
16464 2008-06-17  Bruno Haible  <bruno@clisp.org>
16465
16466         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
16467         when the macro ignores it.
16468         Based on a patch by Eric Blake <ebb9@byu.net>.
16469
16470 2008-06-17  Bruno Haible  <bruno@clisp.org>
16471
16472         * modules/tls (License): Change to LGPLv2+.
16473         Reported by Eric Blake.
16474
16475 2008-06-17  Eric Blake  <ebb9@byu.net>
16476
16477         Simplify c-stack prerequisites.
16478         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
16479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
16480         no longer requires <ucontext.h> to exist.  Optimize setrlimit
16481         check.
16482         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
16483         <sys/resource.h>.
16484
16485         Move c-stack test into testsuite.
16486         * modules/c-stack-tests: New file.
16487         * lib/c-stack.c [DEBUG]: Move test program...
16488         * tests/test-c-stack.c: ...into this new file.  Skip rather than
16489         fail test if sigaltstack is lacking.
16490         * tests/test-c-stack.sh: New driver file.
16491
16492 2008-06-16  Eric Blake  <ebb9@byu.net>
16493
16494         Use raise module consistently.
16495         * modules/fatal-signal (Depends-on): Add raise.
16496         * modules/sigprocmask (Depends-on): Likewise.
16497         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
16498         * lib/sigprocmask.c (sigprocmask): Likewise.
16499         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16500         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
16501
16502         Fix compliance bug in sigpending.
16503         * lib/sigprocmask.c (sigpending): Return pending array via
16504         parameter, not return value.
16505
16506 2008-06-14  Eric Blake  <ebb9@byu.net>
16507
16508         Improve obstack-printf test code.
16509         * tests/test-obstack-printf.c (test_function): Fix comment, and
16510         simplify usage of obstack_* in macros.  Add a test for coverage.
16511         Reported by Bruno Haible.
16512
16513 2008-06-14  Bruno Haible  <bruno@clisp.org>
16514
16515         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
16516         array size as a constant, not as a const variable.
16517         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
16518         AC_USE_SYSTEM_EXTENSIONS.
16519         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16520         Test whether the obstack_printf function actually exists.
16521         * modules/obstack-printf (Depends-on): Add extensions.
16522         (Include): Remove obstack.h.
16523         * modules/obstack-printf-posix (Depends-on): Add extensions.
16524         (Include): Remove obstack.h.
16525
16526 2008-06-13  Eric Blake  <ebb9@byu.net>
16527
16528         Add obstack-printf and obstack-printf-posix modules.
16529         * modules/obstack-printf: New file.
16530         * modules/obstack-printf-posix: Likewise.
16531         * MODULES.html.sh (Misc): Mention them.
16532         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16533         Likewise.
16534         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16535         Likewise.
16536         * modules/stdio (Makefile.am): Accomodate new modules.
16537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16538         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
16539         Declare.
16540         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
16541         functions.
16542         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
16543         (gl_REPLACE_OBSTACK_PRINTF): New macros
16544         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
16545         * tests/test-obstack-printf.c: New file.
16546         * modules/obstack-printf-tests: Likewise.
16547         * modules/obstack-printf-posix-tests: Likewise.
16548
16549 2008-06-11  Bruno Haible  <bruno@clisp.org>
16550
16551         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
16552         * lib/open.c: Include errno.h.
16553         (open): Fail when attempting to write to a file that has a trailing
16554         slash.
16555         * tests/test-open.c (main): Test against trailing slash bug.
16556         * doc/posix-functions/open.texi: Mention the trailing slash bug.
16557
16558 2008-06-10  Bruno Haible  <bruno@clisp.org>
16559
16560         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
16561         for $? to work inside the trap command, with various /bin/sh-s.
16562         * tests/test-vc-list-files-cvs.sh: Likewise.
16563
16564 2008-06-10  Bruno Haible  <bruno@clisp.org>
16565
16566         * lib/acl-internal.h: Don't include gettext.h here.
16567         * lib/set-mode-acl.c: Include gettext.h here.
16568         * lib/copy-acl.c: Likewise.
16569
16570 2008-06-10  Bruno Haible  <bruno@clisp.org>
16571
16572         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
16573         * lib/wait-process.c (wait_subprocess): Likewise.
16574         * lib/execute.h (execute): Add termsigp argument.
16575         * lib/execute.c (execute): Likewise.
16576         * lib/csharpcomp.c (compile_csharp_using_pnet,
16577         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
16578         * lib/csharpexec.c (execute_csharp_using_pnet,
16579         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
16580         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
16581         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
16582         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
16583         is_jikes_present): Update.
16584         * lib/javaexec.c (execute_java_class): Update.
16585         * lib/javaversion.c (execute_and_read_line): Update.
16586         * NEWS: Document the changes.
16587         Reported by Eric Blake.
16588
16589 2008-06-10  Eric Blake  <ebb9@byu.net>
16590
16591         Add missing include.
16592         * tests/test-strstr.c (includes): Add <signal.h>.
16593         * tests/test-strcasestr.c (includes): Likewise.
16594         * tests/test-memmem.c (includes): Likewise.
16595
16596 2008-06-10  Bruno Haible  <bruno@clisp.org>
16597
16598         * lib/wait-process.c (wait_subprocess): Add an assertion.
16599
16600 2008-06-10  Bruno Haible  <bruno@clisp.org>
16601
16602         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
16603
16604 2008-06-10  Bruno Haible  <bruno@clisp.org>
16605
16606         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
16607         using alarm().
16608         * tests/test-strcasestr.c (main): Likewise.
16609         * tests/test-strstr.c (main): Likewise.
16610
16611 2008-06-09  Bruno Haible  <bruno@clisp.org>
16612
16613         Work around the Solaris 10 ACE ACLs ABI change.
16614         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
16615         declare if ACL_NO_TRIVIAL is present.
16616         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
16617         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
16618         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
16619         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
16620         define if ACL_NO_TRIVIAL is present.
16621         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
16622         and use the current ABI.
16623         (file_has_acl): Use same #if condition as elsewhere.
16624         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
16625         in use, and use the current ABI.
16626         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
16627         Reported by Jim Meyering.
16628
16629 2008-06-09  Eric Blake  <ebb9@byu.net>
16630
16631         Work around environments that (stupidly) ignore SIGALRM.
16632         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
16633         before using alarm().
16634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16636         Reported by Ian Beckwith <ianb@erislabs.net>.
16637
16638         Produce autobuild blurb earlier in log.
16639         * modules/autobuild (configure.ac-early): Move AB_INIT here.
16640
16641 2008-06-09  Jim Meyering  <meyering@redhat.com>
16642         and OndÅ™ej Vašík  <ovasik@redhat.com>
16643
16644         utimens.c: correct kernel bug work-around
16645         OndÅ™ej Vašík found that the invalid return value of 280 indicates
16646         failure, not success, and the kernel bug we're trying to work
16647         around affects not just the utimensat call, but also the fallback
16648         futimens call.
16649         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
16650         not success.
16651         [HAVE_FUTIMENS]: Use the same work-around, here.
16652
16653 2008-06-09  Jim Meyering  <meyering@redhat.com>
16654
16655         add more guards around definition of ACE_-related code
16656         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
16657         ALLOW and ACE_OWNER are also defined.
16658
16659 2008-06-08  Bruno Haible  <bruno@clisp.org>
16660
16661         * lib/acl-internal.h: Add me as co-author.
16662         * lib/file-has-acl.c: Likewise.
16663         * lib/set-mode-acl.c: Likewise.
16664         * lib/copy-acl.c: Likewise.
16665
16666 2008-06-08  Bruno Haible  <bruno@clisp.org>
16667
16668         Add support for AIX ACLs.
16669         * lib/acl-internal.h (acl_nontrivial): New declaration.
16670         * lib/file-has-acl.c (acl_nontrivial): New function.
16671         (file_has_acl): Add implementation using AIX 4 ACL API.
16672         * lib/set-mode-acl.c (qset_acl): Likewise.
16673         * lib/copy-acl.c (qcopy_acl): Likewise.
16674
16675 2008-06-08  Bruno Haible  <bruno@clisp.org>
16676
16677         Add support for HP-UX ACLs.
16678         * lib/acl-internal.h (acl_nontrivial): New declaration.
16679         * lib/file-has-acl.c (acl_nontrivial): New function.
16680         (file_has_acl): Add implementation using HP-UX 11 ACL API.
16681         * lib/set-mode-acl.c (qset_acl): Likewise.
16682         * lib/copy-acl.c (qcopy_acl): Likewise.
16683
16684 2008-06-08  Bruno Haible  <bruno@clisp.org>
16685
16686         Add support for Cygwin ACLs.
16687         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
16688         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
16689         the chmod_or_fchmod call.
16690         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
16691
16692 2008-06-08  Bruno Haible  <bruno@clisp.org>
16693
16694         Fix bug with setuid modes in Solaris 10+ code.
16695         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
16696         succeeded, when the mode contains some special bits.
16697
16698 2008-06-08  Bruno Haible  <bruno@clisp.org>
16699
16700         Add support for Solaris 7..10 ACLs.
16701         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
16702         declarations.
16703         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
16704         functions.
16705         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
16706         * lib/set-mode-acl.c (qset_acl): Likewise.
16707         * lib/copy-acl.c (qcopy_acl): Likewise.
16708
16709 2008-06-08  Bruno Haible  <bruno@clisp.org>
16710
16711         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
16712         declaration.
16713         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
16714         (acl_access_nontrivial): Remove MacOS X case.
16715         (file_has_acl): Use acl_extended_nontrivial.
16716         * lib/copy-acl.c (qcopy_acl): Likewise.
16717
16718 2008-06-08  Bruno Haible  <bruno@clisp.org>
16719
16720         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
16721
16722 2008-06-08  Jim Meyering  <meyering@redhat.com>
16723
16724         * modules/acl (Maintainer): Add Bruno Haible.
16725
16726 2008-06-07  Bruno Haible  <bruno@clisp.org>
16727
16728         Improve support for Tru64 ACLs.
16729         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
16730         ACL on OSF/1.
16731
16732 2008-06-07  Bruno Haible  <bruno@clisp.org>
16733
16734         Add support for MacOS X ACLs.
16735         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
16736         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
16737         * lib/set-mode-acl.c (qset_acl): Likewise.
16738         * lib/copy-acl.c (qcopy_acl): Likewise.
16739
16740 2008-06-07  Bruno Haible  <bruno@clisp.org>
16741
16742         Fix memory leak introduced on 2008-05-22.
16743         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
16744         use.
16745
16746 2008-06-07  Bruno Haible  <bruno@clisp.org>
16747
16748         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
16749         to construct an empty ACL.
16750
16751 2008-06-07  Bruno Haible  <bruno@clisp.org>
16752
16753         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
16754         precisely.
16755         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
16756
16757 2008-06-07  Bruno Haible  <bruno@clisp.org>
16758
16759         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
16760         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
16761
16762 2008-06-07  Bruno Haible  <bruno@clisp.org>
16763
16764         * doc/posix-functions/_setjmp.texi: Explain the use of this function
16765         regardless of POSIX.
16766         * doc/posix-functions/_longjmp.texi: Likewise.
16767         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
16768         SystemV platform in this case.
16769
16770 2008-06-06  Eric Blake  <ebb9@byu.net>
16771
16772         Document abort() bugs.
16773         * doc/posix-functions/abort.texi (abort): Mention anomalies.
16774
16775         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
16776         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
16777         sigsetjmp.
16778         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
16779         siglongjmp, but only as a macro.
16780         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
16781         is obsolete.
16782         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
16783
16784         Tweak documentation to cover cygwin argz bugs.
16785         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
16786         argz bug fix; no code change needed since no cygwin releases
16787         occurred between the last fix and the bug being tested.
16788         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
16789         module and recently fixed cygwin bugs.
16790         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
16791         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
16792         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
16793         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
16794         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
16795         Likewise.
16796         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
16797         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
16798         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
16799         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
16800         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
16801         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
16802         Likewise.
16803
16804         Avoid gcc warning on cygwin.
16805         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
16806         !ACL_NO_TRIVIAL]: Avoid unused variable.
16807
16808 2008-06-05  Eric Blake  <ebb9@byu.net>
16809
16810         Be tolerant of UNKNOWN version in gnulib-tool test dir.
16811         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
16812         git-version-gen fails to come up with a version.
16813         Reported by Simon Josefsson.
16814
16815 2008-06-05  Jim Meyering  <meyering@redhat.com>
16816             Paul Eggert  <eggert@cs.ucla.edu>
16817
16818         utimens.c: work around a probable Linux kernel bug
16819         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
16820         appears to be a kernel bug that causes utimensat to return 280
16821         instead of 0, indicating success.
16822
16823 2008-06-04  Bruno Haible  <bruno@clisp.org>
16824
16825         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
16826         2008-06-01 commit.
16827
16828 2008-06-04  Bruno Haible  <bruno@clisp.org>
16829
16830         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
16831         * lib/file-has-acl.c (acl_access_nontrivial): New function.
16832         (file_has_acl): Use it. Save errno afterwards.
16833         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
16834
16835 2008-06-03  Bruno Haible  <bruno@clisp.org>
16836
16837         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
16838         draft code. Simplify #ifs.
16839         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
16840         Put Solaris code after POSIX-draft code. Fix comments regarding
16841         Solaris 10, HP-UX. Mention Cygwin.
16842         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
16843
16844 2008-06-03  Eric Blake  <ebb9@byu.net>
16845
16846         Provide fallback for older kernels.
16847         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
16848         Provide runtime fallback if kernel lacks support.
16849         Reported by Mike Frysinger.
16850
16851 2008-06-02  Bruno Haible  <bruno@clisp.org>
16852
16853         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
16854         it exists.
16855
16856 2008-06-02  Bruno Haible  <bruno@clisp.org>
16857
16858         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
16859         * lib/copy-acl.c (qcopy_acl): Update comment.
16860
16861 2008-06-02  Bruno Haible  <bruno@clisp.org>
16862
16863         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
16864         like ACL APIs.
16865
16866 2008-06-02  Bruno Haible  <bruno@clisp.org>
16867
16868         * tests/test-file-has-acl.sh: Use different code for Cygwin.
16869         * tests/test-set-mode-acl.sh: Likewise.
16870         * tests/test-copy-acl.sh: Likewise.
16871         * tests/test-copy-file.sh: Likewise.
16872
16873 2008-06-02  Bruno Haible  <bruno@clisp.org>
16874
16875         * tests/test-file-has-acl.sh: Remove unused code.
16876
16877 2008-06-01  Bruno Haible  <bruno@clisp.org>
16878
16879         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
16880         (copy_acl): Just a wrapper around qcopy_acl that emits the error
16881         messages.
16882         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
16883
16884 2008-06-01  Bruno Haible  <bruno@clisp.org>
16885
16886         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
16887         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
16888         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
16889         APIs.
16890         * modules/acl-tests (configure.ac): Remove tests now contained in
16891         m4/acl.m4.
16892
16893 2008-06-02  Jim Meyering  <meyering@redhat.com>
16894
16895         announce-gen: use a better key-server host name
16896         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
16897         it may be more consistently reliable.  Suggested by Werner Koch
16898         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
16899
16900 2008-06-01  Bruno Haible  <bruno@clisp.org>
16901
16902         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
16903         Reported by Voroskoi Andras <voroskoi@gmail.com>.
16904
16905 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
16906
16907         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
16908
16909 2008-06-01  Bruno Haible  <bruno@clisp.org>
16910
16911         New ACL tests.
16912         * tests/test-file-has-acl.sh: New file.
16913         * tests/test-file-has-acl.c: New file.
16914         * tests/test-set-mode-acl.sh: New file.
16915         * tests/test-set-mode-acl.c: New file.
16916         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
16917         * tests/test-copy-acl.c: New file.
16918         * modules/acl-tests: New file, based on modules/copy-file-tests.
16919         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
16920         (Depends-on): Add acl-tests.
16921         (configure.ac): Remove checks.
16922         (Makefile.am): Don't create test-sameacls program here any more.
16923
16924 2008-06-01  Bruno Haible  <bruno@clisp.org>
16925
16926         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
16927         * tests/test-sameacls.c: Include progname.h.
16928         (main): Invoke set_program_name. Portability fixes for MacOS X,
16929         Solaris, HP-UX.
16930
16931 2008-06-01  Bruno Haible  <bruno@clisp.org>
16932
16933         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
16934         function.
16935         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
16936
16937 2008-06-01  Bruno Haible  <bruno@clisp.org>
16938
16939         * modules/rpmatch (Depends-on): Add strdup.
16940
16941 2008-06-01  Bruno Haible  <bruno@clisp.org>
16942
16943         * lib/pipe.c: Include unistd-safer.h.
16944         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
16945         * modules/pipe (Depends-on): Add unistd-safer.
16946
16947 2008-05-30  Simon Josefsson  <simon@josefsson.org>
16948
16949         * modules/autobuild (configure.ac): Call AB_INIT.
16950
16951 2008-05-30  Simon Josefsson  <simon@josefsson.org>
16952
16953         * tests/test-getaddrinfo.c: Don't print debug messages by default.
16954         Suggested by Bruno Haible <bruno@clisp.org>.
16955
16956 2008-05-30  Simon Josefsson  <simon@josefsson.org>
16957
16958         * tests/test-base64.c: Cast size_t to unsigned long when invoking
16959         printf.  Use %lu instead of %d.  Reported by Bruno Haible
16960         <bruno@clisp.org>.
16961
16962 2008-05-29  Eric Blake  <ebb9@byu.net>
16963
16964         Prefer new POSIX 200x interfaces over futimesat.
16965         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
16966         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
16967         when available.
16968         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
16969
16970 2008-05-28  Bruno Haible  <bruno@clisp.org>
16971
16972         * modules/stpcpy (License): Change to LGPLv2+.
16973         Requested by David Lutterkort <dlutter@redhat.com>.
16974
16975 2008-05-27  Bruno Haible  <bruno@clisp.org>
16976
16977         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
16978         current mingw.
16979         Reported by Jose E. Marchesi <jemarch@gnu.org>.
16980
16981 2008-05-27  Bruno Haible  <bruno@clisp.org>
16982
16983         * modules/iconv_open (Link): New section, from module 'iconv'.
16984         * modules/striconv (Link): Likewise.
16985         * modules/striconveh (Link): Likewise.
16986         * modules/xstriconv (Link): Likewise.
16987         * modules/unicodeio (Link): Likewise.
16988         * modules/propername (Link): Likewise.
16989         Reported by Jim Meyering.
16990
16991 2008-05-26  Jim Meyering  <meyering@redhat.com>
16992
16993         sha256: do not artificially restrict buffer length to be < 2^32
16994         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
16995         uint32_t to size_t.
16996         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
16997         to match.
16998
16999         avoid unaligned access errors, e.g., on sparc
17000         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
17001         direct access through a possibly-unaligned uint64* pointer.
17002         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
17003         direct access through a possibly-unaligned uint32* pointer.
17004         Prompted by this patch from Tom "spot" Callaway:
17005         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
17006
17007         sha512.c: fix typo in comment
17008         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
17009
17010 2008-05-25  Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/set-mode-acl.c: Renamed from lib/acl.c.
17013         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
17014         (Makefile.am): Update lib_SOURCES.
17015
17016 2008-05-25  Bruno Haible  <bruno@clisp.org>
17017
17018         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
17019
17020 2008-05-25  Jim Meyering  <meyering@redhat.com>
17021
17022         useless-if-before-free: freed expr may have white-space differences
17023         * build-aux/useless-if-before-free: Recognize cases in which the
17024         freed expression differs from the tested one in embedded white
17025         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
17026         $1 was used, so we can't make any regexp shy.  Improved tests now
17027         detect this.
17028
17029         useless-if-before-free: accept white space in the expression.
17030         * build-aux/useless-if-before-free: For now, any white space
17031         in the expression must be identical in the free argument.
17032
17033         useless-if-before-free: efficiency tweak
17034         * build-aux/useless-if-before-free: Make the expression-matching
17035         regexp "shy".
17036         Make the *outer* regexp shy, not the expr-matching one.
17037
17038         update code-in-comment to accept cast of free arg
17039         * build-aux/useless-if-before-free: Update regexp.
17040
17041 2008-05-25  Bruno Haible  <bruno@clisp.org>
17042
17043         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
17044         * modules/copy-file-tests (Files, Makefile.am): Update.
17045         * tests/test-copy-file.c (func_test_copy): Update.
17046
17047 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
17048
17049         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
17050
17051 2008-05-23  Bruno Haible  <bruno@clisp.org>
17052
17053         Improve support for ACLs on OSF/1.
17054         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
17055         Remove fallback for unknown flavors of ACLs.
17056
17057 2008-05-22  Bruno Haible  <bruno@clisp.org>
17058
17059         Add support for ACLs on OSF/1.
17060         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
17061         replacements.
17062         (acl_free_text): New macro fallback.
17063         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
17064         acl_free.
17065         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
17066         acl_free_text function. Require AC_C_INLINE.
17067
17068 2008-05-22  Bruno Haible  <bruno@clisp.org>
17069
17070         Make copy_acl work on MacOS X 10.5.
17071         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
17072         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
17073         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
17074         If MODE_INSIDE_ACL, don't assume that every system has the same text
17075         representation for ACLs as FreeBSD.
17076         * lib/copy-acl.c (copy_acl): Add support for platforms with
17077         !MODE_INSIDE_ACL.
17078         * lib/file-has-acl.c (file_has_acl): Likewise.
17079         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
17080         FreeBSD, MacOS X, or IRIX, respectively.
17081
17082 2008-05-22  Bruno Haible  <bruno@clisp.org>
17083
17084         * lib/acl.h: Don't include <sys/acl.h>.
17085         (GETACLCNT): Move fallback to lib/acl-internal.h.
17086         * lib/acl-internal.h: Include <sys/acl.h> here.
17087         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
17088
17089 2008-05-22  Bruno Haible  <bruno@clisp.org>
17090
17091         Split off copy_acl function to separate file.
17092         * lib/copy-acl.c: New file, extracted from lib/acl.c.
17093         * lib/acl.c (copy_acl): Moved function to separate file.
17094         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
17095         * modules/acl (Files): Add lib/copy-acl.c.
17096         (Makefiles.am): Augment lib_SOURCES.
17097
17098 2008-05-22  Bruno Haible  <bruno@clisp.org>
17099
17100         * modules/copy-file-tests: New file.
17101         * tests/test-copy-file.sh: New file.
17102         * tests/test-copy-file.c: New file.
17103         * tests/test-copy-file-sameacls.c: New file.
17104
17105 2008-05-22  Eric Blake  <ebb9@byu.net>
17106
17107         Avoid gcc warning.
17108         * tests/test-memcmp.c (main): Pass NULL indirectly.
17109
17110 2008-05-21  Bruno Haible  <bruno@clisp.org>
17111
17112         Add reference doc about ACLs.
17113         * doc/acl-resources.txt: New file.
17114         * doc/acl-cygwin.txt: New file.
17115
17116 2008-05-21  Bruno Haible  <bruno@clisp.org>
17117
17118         Avoid one more warning from gcc.
17119         * lib/vasnprintf.c (IF_LINT): Update comments.
17120         (VASNPRINTF): Use it also for the 'prefix' array initializer.
17121
17122 2008-05-21  Jim Meyering  <meyering@redhat.com>
17123
17124         avoid a warning from gcc
17125         * lib/vasnprintf.c (IF_LINT): Define.
17126         (scale10_round_decimal_long_double):
17127         Use it to avoid a "may be used uninitialized" warning.
17128         (scale10_round_decimal_double): Likewise.
17129
17130 2008-05-21  Simon Josefsson  <simon@josefsson.org>
17131
17132         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
17133         declared.
17134
17135 2008-05-20  Bruno Haible  <bruno@clisp.org>
17136
17137         * tests/test-memcmp.c (main): Test also the sign of the result. Test
17138         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
17139
17140 2008-05-20  Simon Josefsson  <simon@josefsson.org>
17141
17142         * modules/memcmp-tests: New file.
17143         * tests/test-memcmp.c: New file.
17144
17145 2008-05-19  Bruno Haible  <bruno@clisp.org>
17146
17147         * modules/propername (Notice, configure.ac): Put quoted "..." into
17148         --keyword option.
17149         * lib/propername.h: Update comments accordingly.
17150         Reported by Eric Blake.
17151
17152 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
17153
17154         * modules/getpass-gnu (Depends-on): Add fseeko.
17155
17156 2008-05-19  Simon Josefsson  <simon@josefsson.org>
17157
17158         * modules/base64-tests: New file.
17159
17160 2008-05-19  Bo Borgerson <gigabo@gmail.com>
17161
17162         * lib/base64.c (base64_decode_ctx): If a decode context structure
17163         was passed in use it to ignore newlines.  If a context structure
17164         was _not_ passed in, continue to treat newlines as garbage (this
17165         is the historical behavior).  Formerly base64_decode.
17166         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
17167         takes a decode context structure.
17168         * lib/base64.h (base64_decode): Macro for four-argument calls.
17169         (base64_decode_alloc): Likewise.
17170         * lib/base64.c (base64_decode_ctx): If a decode context structure
17171         was passed in use it to ignore newlines.  If a context structure
17172         was _not_ passed in, continue to treat newlines as garbage (this
17173         is the historical behavior).  Formerly base64_decode.
17174         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
17175         takes a decode context structure.
17176         * lib/base64.h (base64_decode): Macro for four-argument calls.
17177         (base64_decode_alloc): Likewise.
17178
17179 2008-05-19  Jim Meyering  <meyering@redhat.com>
17180
17181         avoid a warning from gcc
17182         * lib/trim.c (IF_LINT): Define.
17183         (trim2): Use it to avoid a "may be used uninitialized" warning.
17184
17185         Fix doc typo.
17186         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
17187
17188 2008-05-19  Bruno Haible  <bruno@clisp.org>
17189
17190         * doc/glibc-functions/getpass.texi: Document limits of other
17191         implementations.
17192
17193 2008-05-19  Simon Josefsson  <simon@josefsson.org>
17194             Bruno Haible <bruno@clisp.org>
17195
17196         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
17197
17198 2008-05-18  Bruno Haible  <bruno@clisp.org>
17199
17200         * modules/propername: New file, from GNU gettext.
17201         * lib/propername.h: New file, from GNU gettext.
17202         * lib/propername.c: New file, from GNU gettext.
17203         * MODULES.html.sh (Internationalization functions): Add propername.
17204
17205 2008-05-16  Jim Meyering  <meyering@redhat.com>
17206             Bruno Haible  <bruno@clisp.org>
17207
17208         Avoid some warnings from "gcc -Wshadow".
17209         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
17210
17211 2008-05-15  Eric Blake  <ebb9@byu.net>
17212
17213         Extend previous patch to cygwin 1.7.0.
17214         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
17215         fast implementation in cygwin >= 1.7.0.
17216         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17218
17219 2008-05-15  Bruno Haible  <bruno@clisp.org>
17220
17221         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
17222         implementation in glibc >= 2.9.
17223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17225
17226 2008-05-15  Bruno Haible  <bruno@clisp.org>
17227
17228         * MODULES.html.sh (Internationalization functions): Remove linebreak.
17229         (Unicode string functions): Add unilbrk/*.
17230         Reported by Karl Berry.
17231
17232 2008-05-15  Eric Blake  <ebb9@byu.net>
17233
17234         Fix violation of <stdbool.h> replacement in regex.
17235         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
17236         * lib/regexec.c (re_search_internal): Likewise.
17237         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
17238
17239 2008-05-15  Jim Meyering  <meyering@redhat.com>
17240
17241         avoid distracting test output when git or cvs is not found
17242         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
17243         * tests/test-vc-list-files-git.sh: Likewise.
17244
17245 2008-05-15  Eric Blake  <ebb9@byu.net>
17246
17247         Glibc finally accepted the memmem speedup code, bugzilla #5514.
17248         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
17249         glibc version.
17250         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17251         * doc/posix-functions/strstr.texi (strstr): Likewise.
17252         * lib/str-two-way.h (MAX): Sychronize with glibc.
17253
17254 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
17255
17256         * lib/regcomp.c (optimize_utf8): Add a note on why we test
17257         opr.ctx_type.
17258         (calc_first): Initialize constraint field.
17259         (duplicate_node_closure): Use it instead of special casing ANCHORS.
17260         Fix grammar.
17261         (duplicate_node): Merge constraint field for all node types.
17262         (calc_eclosure_iter): Look at constraint field for all node types.
17263         * lib/regex_internal.c (create_cd_newstate): Don't look at
17264         opr.ctx_type.
17265
17266 2008-05-14  Bruno Haible  <bruno@clisp.org>
17267
17268         Help GCC to do better code generation.
17269         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
17270         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17271         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
17272         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
17273         Declare with attribute 'malloc' if supported.
17274
17275 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
17276
17277         use "echo STR|wc -c" rather than unportable "expr length STR"
17278         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
17279         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
17280
17281 2008-05-14  Jim Meyering  <meyering@redhat.com>
17282
17283         use dd ibs=$n count=1 ... rather than less-portable head -c$n
17284         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
17285         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
17286         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
17287         via Collin Lasse.
17288
17289 2008-05-14  Eric Blake  <ebb9@byu.net>
17290
17291         Avoid quadratic growth in gl_LIBSOURCES.
17292         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
17293         Suggested by Bruno Haible.
17294
17295         Test xmemdup0.
17296         * modules/xmemdup0-tests: New file.
17297         * tests/test-xmemdup0.c: Likewise.
17298
17299 2008-05-13  Eric Blake  <ebb9@byu.net>
17300
17301         Split xmemdup0 into its own module.
17302         * modules/xmemdup0: New file.
17303         * lib/xmemdup0.h: Likewise.
17304         * lib/xmemdup0.c: Likewise.
17305         * MODULES.html.sh (Memory management functions): Add xmemdup0.
17306         * lib/xalloc.h (xmemdup0): Remove.
17307         * lib/xmalloc.c (xmemdup0): Likewise.
17308
17309 2008-05-13  Eric Blake  <ebb9@byu.net>
17310             Bruno Haible  <bruno@clisp.org>
17311
17312         Reduce number of forks required during autoconf.
17313         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
17314         and gl_LIBSOURCES_DIR.
17315         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
17316         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
17317         m4_syscmd per file.
17318         <m4_foreach_w>: Move...
17319         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
17320
17321 2008-05-13  Eric Blake  <ebb9@byu.net>
17322
17323         * gnulib-tool: Fix various comment typos.
17324
17325 2008-05-12  Bruno Haible  <bruno@clisp.org>
17326
17327         Tailor the linebreaking algorithm.
17328         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
17329
17330 2008-05-12  Bruno Haible  <bruno@clisp.org>
17331
17332         Update to Unicode 5.0.0.
17333         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
17334         LBP_JV, LBP_JT. Redistribute values.
17335         (unilbrk_table): Change size.
17336         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
17337         Unicode TR#14 rev. 22.
17338         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
17339         LBP_JV, LBP_JT. Redistribute values.
17340         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
17341         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
17342         Update.
17343         * lib/unilbrk/lbrkprop1.h: Regenerated.
17344         * lib/unilbrk/lbrkprop2.h: Regenerated.
17345         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
17346         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
17347         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
17348         Likewise.
17349         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
17350         Likewise.
17351         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
17352         result.
17353         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17354         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17355         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17356         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
17357         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
17358         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
17359
17360 2008-05-11  Bruno Haible  <bruno@clisp.org>
17361
17362         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
17363
17364 2008-05-11  Bruno Haible  <bruno@clisp.org>
17365
17366         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
17367         * modules/unilbrk/gen-lbrk: New file.
17368
17369 2008-05-11  Bruno Haible  <bruno@clisp.org>
17370
17371         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
17372         * m4/sha512.m4 (gl_SHA512): Likewise.
17373
17374 2008-05-11  Jim Meyering  <meyering@redhat.com>
17375
17376         New modules: crypto/sha256, crypto/sha512 (from coreutils)
17377         * modules/crypto/sha256: New file.
17378         * modules/crypto/sha512: Likewise.
17379         * lib/sha256.c: Likewise.
17380         * lib/sha256.h: Likewise.
17381         * lib/sha512.c: Likewise.
17382         * lib/sha512.h: Likewise.
17383         * lib/u64.h: Likewise.
17384         * m4/sha256.m4: Likewise.
17385         * m4/sha512.m4: Likewise.
17386         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
17387
17388 2008-05-10  Bruno Haible  <bruno@clisp.org>
17389
17390         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
17391         (Input/Output <stdio.h>): Add xprintf.
17392         (Signal handling <signal.h>): Add strsignal.
17393         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
17394         (Core language properties): Add func.
17395         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
17396         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
17397         strings.
17398         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
17399         (Input/output): New section.
17400         (File system functions): Add openat-die, stat-macros.
17401         (Networking functions): Add sockets.
17402         (Unicode string functions): Add unictype/*.
17403         (Support for building libraries and executables): Add gperf.
17404         (Support for building documentation): Add agpl-3.0.
17405         (Misc): Add nocrash.
17406
17407 2008-05-10  Bruno Haible  <bruno@clisp.org>
17408
17409         * modules/unictype/gen-ctype: New file.
17410
17411 2008-05-10  Jim Meyering  <meyering@redhat.com>
17412
17413         Make chdir-safer.c more efficient on a system with no symlinks.
17414         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
17415         also if ELOOP is zero.  Suggested by Bruno Haible.
17416
17417         Make chdir-safer.c slightly safer.
17418         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
17419         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
17420
17421         Avoid compile failure on systems without ELOOP (like mingw).
17422         * lib/chdir-safer.c (ELOOP): Define if not already defined.
17423         Reported by Bruno Haible.
17424
17425 2008-05-10  Bruno Haible  <bruno@clisp.org>
17426
17427         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
17428         (is_utf8_encoding): Use a case-insensitive comparison.
17429         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
17430         streq.
17431
17432 2008-05-10  Bruno Haible  <bruno@clisp.org>
17433
17434         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
17435         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
17436         * lib/unilbrk/ulc-common.h (iconv_string_length,
17437         iconv_string_keeping_offsets): Remove declarations.
17438         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
17439         Don't include <iconv.h>, streq.h, xsize.h.
17440         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
17441         conversion.
17442         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
17443         <iconv.h>, streq.h, xsize.h.
17444         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
17445         conversion.
17446         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
17447         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
17448         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
17449         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
17450
17451 2008-05-10  Bruno Haible  <bruno@clisp.org>
17452
17453         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
17454         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
17455
17456         * modules/unilbrk/u32-width-linebreaks-tests: New file.
17457         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
17458
17459         * modules/unilbrk/u16-width-linebreaks-tests: New file.
17460         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
17461
17462         * modules/unilbrk/u8-width-linebreaks-tests: New file.
17463         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
17464
17465         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
17466         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
17467
17468         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
17469         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
17470
17471         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
17472         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
17473
17474         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
17475         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
17476
17477 2008-05-10  Bruno Haible  <bruno@clisp.org>
17478
17479         Split up 'linebreak' module.
17480         * lib/unilbrk.h: New file, based on lib/linebreak.h.
17481         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
17482         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
17483         modifications.
17484         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
17485         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
17486         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
17487         lib/linebreak.c.
17488         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
17489         lib/linebreak.c.
17490         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
17491         lib/linebreak.c.
17492         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
17493         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
17494         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
17495         lib/linebreak.c.
17496         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
17497         lib/linebreak.c.
17498         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
17499         lib/linebreak.c.
17500         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
17501         lib/linebreak.c.
17502         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
17503         lib/linebreak.c.
17504         * modules/unilbrk/base: New file.
17505         * modules/unilbrk/tables: New file.
17506         * modules/unilbrk/u8-possible-linebreaks: New file.
17507         * modules/unilbrk/u16-possible-linebreaks: New file.
17508         * modules/unilbrk/u32-possible-linebreaks: New file.
17509         * modules/unilbrk/ulc-common: New file.
17510         * modules/unilbrk/ulc-possible-linebreaks: New file.
17511         * modules/unilbrk/u8-width-linebreaks: New file.
17512         * modules/unilbrk/u16-width-linebreaks: New file.
17513         * modules/unilbrk/u32-width-linebreaks: New file.
17514         * modules/unilbrk/ulc-width-linebreaks: New file.
17515         * lib/linebreak.h: Remove file.
17516         * lib/linebreak.c: Remove file.
17517         * m4/linebreak.m4: Remove file.
17518         * modules/linebreak: Remove file.
17519         * NEWS: Mention the changes.
17520
17521 2008-05-09  Eric Blake  <ebb9@byu.net>
17522
17523         Add xmemdup0.
17524         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
17525         implementation.
17526         * lib/xmalloc.c (xmemdup0): New C implementation.
17527
17528 2008-05-08  Bruno Haible  <bruno@clisp.org>
17529
17530         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
17531
17532 2008-05-07  Eric Blake  <ebb9@byu.net>
17533
17534         Support cross-compilation of <wctype.h>.
17535         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
17536         AC_CACHE_CHECK.
17537
17538 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
17539
17540         * build-aux/vc-list-files: Add support for bzr.
17541
17542 2008-05-03  Jim Meyering  <meyering@redhat.com>
17543
17544         avoid failed assertion with tight malloc
17545         * tests/test-getndelim2.c: Correct an off-by-one assertion.
17546
17547 2008-05-03  Simon Josefsson  <simon@josefsson.org>
17548
17549         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
17550         are needed from arpa/inet.h.
17551         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
17552         Reported by Bruno Haible.
17553
17554 2008-05-02  Jim Meyering  <meyering@redhat.com>
17555
17556         avoid compilation error on FreeBSD 6
17557         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
17558
17559 2008-05-01  Jim Meyering  <meyering@redhat.com>
17560
17561         useless-if-before-free: correct --help's exit status description
17562         * build-aux/useless-if-before-free (usage): Like grep, exit 0
17563         for one or more matches, etc.  Reported by Bruno Haible.
17564
17565         vc-list-files: make the stand-alone gnulib test work
17566         * modules/vc-list-files-tests (configure.ac):
17567         Define and AC_SUBST abs_aux_dir.
17568         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
17569         $(abs_top_srcdir) to each script and having each of them
17570         duplicate the work of setting PATH, set PATH here, using
17571         the new variable, abs_aux_dir instead.
17572         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
17573         * tests/test-vc-list-files-git.sh: Likewise.
17574         Reported by Bruno Haible.
17575
17576 2008-05-01  Bruno Haible  <bruno@clisp.org>
17577
17578         * lib/getndelim2.c (getndelim2): Fix newsize computation during
17579         reallocation. Rename 'done' to 'found_delimiter'.
17580
17581 2008-05-01  Jim Meyering  <meyering@redhat.com>
17582
17583         vc-list-files: accommodate /bin/sh like the one from Solaris 10
17584         * build-aux/vc-list-files: Use `...`, not $(...).
17585
17586 2008-04-30  Jim Meyering  <meyering@redhat.com>
17587
17588         add tests for vc-list-files
17589         * modules/vc-list-files-tests: New module.
17590         * tests/test-vc-list-files-cvs.sh: New file.
17591         * tests/test-vc-list-files-git.sh: New file.
17592
17593         avoid a warning from gcc
17594         * lib/getndelim2.c (IF_LINT): Define.
17595         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
17596
17597         vc-list-files: work properly with build-aux/cvsu, too
17598         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
17599         to all cvs-based clauses.
17600
17601         vc-list-files: work properly in the CVS+awk case, too
17602         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
17603
17604         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
17605         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
17606         take more than one file argument, so .  Add quotes, just in case $dir
17607         ever contains a shell meta-character.  Prompted by Soren Hansen in
17608         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
17609
17610 2008-04-29  Eric Blake  <ebb9@byu.net>
17611
17612         Optimize getndelim2 to use block operations when possible.
17613         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
17614         freadseek, and memchr2.
17615         * lib/getndelim2.c (getndelim2): Use them for block reads.
17616
17617 2008-04-29  Bruno Haible  <bruno@clisp.org>
17618
17619         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
17620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17621         * modules/inet_ntop (Depends-on): Add extensions.
17622         * modules/inet_pton (Depends-on): Likewise.
17623         Reported by Simon Josefsson.
17624
17625 2008-04-29  Jim Meyering  <meyering@redhat.com>
17626
17627         When the is more than one match in a block, match all of them.
17628         * build-aux/useless-if-before-free: Iterate through each block
17629         until there are no more matches.
17630
17631         Fix broken useless-if-before-free script.
17632         * build-aux/useless-if-before-free: Fix typo: missing "?" after
17633         the expression to match cast of argument to free-like function.
17634
17635 2008-04-29  Eric Blake  <ebb9@byu.net>
17636
17637         Use new header.
17638         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
17639
17640 2008-04-29  Jim Meyering  <meyering@redhat.com>
17641
17642         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
17643         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
17644         by gnulib to exist and to declare e.g., inet_ntop.
17645         Don't include "inet_ntop.h", now removed.
17646
17647         * m4/arpa_inet_h.m4: Remove trailing blanks.
17648
17649 2008-04-29  Eric Blake  <ebb9@byu.net>
17650
17651         Silence valgrind on safe reads beyond potential array bounds.
17652         * lib/rawmemchr.valgrind: New file.
17653         * lib/strchrnul.valgrind: Likewise.
17654         * modules/rawmemchr (Files): Distribute new file.
17655         * modules/strchrnul (Files): Likewise.
17656         Suggested by Bruno Haible.
17657
17658 2008-04-29  Bruno Haible  <bruno@clisp.org>
17659
17660         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
17661         (inet_ntop, inet_pton): Change portability warning's wording.
17662         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
17663         Invoke gl_CHECK_NEXT_HEADERS.
17664         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
17665         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
17666         set ARPA_INET_H.
17667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17668         * modules/arpa_inet (Description): No longer only for systems that
17669         lack it.
17670         (Depends-on): Add include_next.
17671         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
17672         HAVE_ARPA_INET_H.
17673
17674 2008-04-29  Jim Meyering  <meyering@redhat.com>
17675
17676         * modules/mkdir (License): Re-license as LGPLv2+.
17677
17678 2008-04-29  Bruno Haible  <bruno@clisp.org>
17679
17680         * modules/rawmemchr (Maintainer): Set to Eric.
17681         * modules/strchrnul (Maintainer): Likewise.
17682
17683 2008-04-29  Simon Josefsson  <simon@josefsson.org>
17684
17685         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
17686         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
17687
17688         * modules/arpa_inet (arpa/inet.h): Use them.
17689
17690 2008-04-28  Eric Blake  <ebb9@byu.net>
17691
17692         Test getndelim2.
17693         * modules/getndelim2-tests: New file.
17694         * tests/test-getndelim2.c: Likewise.
17695         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
17696         stream.
17697         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
17698
17699         * MODULES.html.sh: Document new module.
17700
17701 2008-04-20  Bruno Haible  <bruno@clisp.org>
17702
17703         * lib/c-stack.c (die): Use raise.
17704         * modules/c-stack (Depends-on): Add raise.
17705
17706 2008-04-28  Bruno Haible  <bruno@clisp.org>
17707
17708         Expect rpmatch to be declared.
17709         * lib/yesno.c (rpmatch): Remove declaration.
17710
17711         Declare rpmatch.
17712         * lib/stdlib.in.h (rpmatch): New declaration.
17713         * lib/rpmatch.c: Include <stdlib.h> first.
17714         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
17715         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
17716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
17717         HAVE_RPMATCH.
17718         * modules/rpmatch (Depends-on): Add stdlib, extensions.
17719         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17720         (Include): Set to <stdlib.h>.
17721         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
17722         HAVE_RPMATCH.
17723         * NEWS: Document the change.
17724
17725 2008-04-28  Bruno Haible  <bruno@clisp.org>
17726
17727         Change rpmatch to use nl_langinfo when appropriate.
17728         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
17729         (N_): New macro.
17730         (localized_pattern): New function/macro.
17731         (try): Remove match, nomatch arguments. Copy the pattern into safe
17732         memory before caching it.
17733         (rpmatch): Use localized_pattern. Add translator comments.
17734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
17735         Suggested by Eric Blake.
17736         * modules/rpmatch (Depends-on): Add stdbool.
17737
17738 2008-04-28  Eric Blake  <ebb9@byu.net>
17739
17740         Add rawmemchr module, matching glibc.
17741         * modules/string (Makefile.am): New indicator.
17742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
17743         * lib/string.in.h (rawmemchr): Declare when appropriate.
17744         * modules/rawmemchr: New file.
17745         * m4/rawmemchr.m4: Likewise.
17746         * lib/rawmemchr.c: Likewise.
17747         * modules/rawmemchr-tests: Likewise.
17748         * tests/test-rawmemchr.c: Likewise.
17749         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
17750         module.
17751         * modules/strchrnul (Depends-on): Add rawmemchr.
17752         * lib/strchrnul.c (strchrnul): Optimize a corner case.
17753
17754         Whitespace cleanup.
17755         * tests/test-strchrnul.c: Reindent.
17756         * lib/strchrnul.c: Likewise.
17757
17758         Optimize and test strchrnul.
17759         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
17760         * modules/strchrnul-tests: New file.
17761         * tests/test-strchrnul.c: Likewise.
17762
17763         Remove intprops dependency.
17764         * modules/memchr (Depends-on): Remove intprops.
17765         * modules/memrchr (Depends-on): Likewise.
17766         * modules/memchr2 (Depends-on): Likewise.
17767         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
17768         * lib/memrchr.c (__memrchr): Likewise.
17769         * lib/memrchr2.c (memchr2): Likewise.
17770         Reported by Simon Josefsson.
17771
17772 2008-04-28  Simon Josefsson  <simon@josefsson.org>
17773
17774         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
17775         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17776
17777 2008-04-28  Simon Josefsson  <simon@josefsson.org>
17778
17779         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
17780
17781         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
17782
17783         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
17784
17785         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
17786         declarations.
17787         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
17788
17789         * m4/inet_pton.m4: Don't check for header files.
17790
17791         * m4/inet_ntop.m4: Don't check for header files.
17792
17793 2008-04-28  Simon Josefsson  <simon@josefsson.org>
17794
17795         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
17796         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
17797         trigger for cygwin).
17798         Reported by Bruno Haible  <bruno@clisp.org>.
17799
17800 2008-04-28  Bruno Haible  <bruno@clisp.org>
17801
17802         * doc/posix-functions/strdup.texi: Mention mingw problem.
17803
17804 2008-04-27  Bruno Haible  <bruno@clisp.org>
17805
17806         * modules/stat-time-tests (Depends-on): Add sleep.
17807         * tests/test-stat-time.c (force_unlink): New function.
17808         (cleanup): Use it.
17809         (test_mtime): Remove the ctime related tests.
17810         (test_ctime): New function, containing the ctime related tests.
17811         (main): Call test_ctime, except on native Windows platforms.
17812
17813 2008-04-27  Bruno Haible  <bruno@clisp.org>
17814
17815         * lib/rpmatch.c (rpmatch): Add some comments.
17816         Reported by James Youngman <jay@gnu.org>.
17817
17818 2008-04-27  Bruno Haible  <bruno@clisp.org>
17819
17820         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
17821         quiet NaNs.
17822
17823 2008-04-27  Bruno Haible  <bruno@clisp.org>
17824
17825         Make test-yesno.sh work on mingw.
17826         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
17827         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
17828         (main): Set stdin to binary mode.
17829         * modules/yesno-tests (Depends-on): Add binary-io.
17830
17831 2008-04-27  Bruno Haible  <bruno@clisp.org>
17832
17833         Fix 'isfinite' on x86, x86_64, ia64 platforms.
17834         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
17835         argument that lie outside the IEEE 854 domain.
17836         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
17837         (gl_ISFINITE): Use it.
17838         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
17839
17840 2008-04-27  Bruno Haible  <bruno@clisp.org>
17841
17842         Allow local renaming in config.h.
17843         * lib/memrchr.c (memrchr): Don't undefine outside libc.
17844
17845 2008-04-27  Bruno Haible  <bruno@clisp.org>
17846
17847         * lib/memchr.c (__memchr): Change type of 'i'.
17848         * lib/memchr2.c (memchr2): Likewise.
17849
17850 2008-04-26  Eric Blake  <ebb9@byu.net>
17851         and Bruno Haible  <bruno@clisp.org>
17852
17853         Optimize and test memrchr.
17854         * modules/memrchr (Depends-on): Add intprops.
17855         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
17856         * modules/memrchr-tests: New file.
17857         * tests/test-memrchr.c: New file.
17858
17859 2008-04-26  Bruno Haible  <bruno@clisp.org>
17860
17861         Add tentative support for DragonFly BSD.
17862         * lib/stdio-impl.h: Add macros for DragonFly BSD.
17863         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
17864         fp.
17865         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
17866         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
17867         * lib/fpurge.c (fpurge): Likewise.
17868         * lib/freadable.c (freaadable): Likewise.
17869         * lib/freadahead.c (freadahead): Likewise.
17870         * lib/freading.c (freading): Likewise.
17871         * lib/freadptr.c (freadptr): Likewise.
17872         * lib/freadseek.c (freadptrinc): Likewise.
17873         * lib/fseeko.c (fseeko): Likewise.
17874         * lib/fseterr.c (fseterr): Likewise.
17875         * lib/fwritable.c (fwritable): Likewise.
17876         * lib/fwriting.c (fwriting): Likewise.
17877
17878 2008-04-26  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/stdio-impl.h: New file.
17881         * lib/fbufmode.c: Include stdio-impl.h.
17882         (fbufmode): Use fp_, remove redundant #defines.
17883         * lib/fflush.c: Include stdio-impl.h.
17884         (clear_ungetc_buffer): Remove redundant #defines.
17885         * lib/fpurge.c: Include stdio-impl.h.
17886         (fpurge): Remove redundant #defines.
17887         * lib/freadable.c: Include stdio-impl.h.
17888         (freadable): Remove redundant #defines.
17889         * lib/freadahead.c: Include stdio-impl.h.
17890         (freadahead): Remove redundant #defines.
17891         * lib/freading.c: Include stdio-impl.h.
17892         (freading): Remove redundant #defines.
17893         * lib/freadptr.c: Include stdio-impl.h.
17894         (freadptr): Remove redundant #defines.
17895         * lib/freadseek.c: Include stdio-impl.h.
17896         (freadptrinc): Remove redundant #defines.
17897         * lib/fseeko.c: Include stdio-impl.h.
17898         (rpl_fseeko): Remove redundant #defines.
17899         * lib/fseterr.c: Include stdio-impl.h.
17900         (fseterr): Remove redundant #defines.
17901         * lib/fwritable.c: Include stdio-impl.h.
17902         (fwritable: Remove redundant #defines.
17903         * lib/fwriting.c: Include stdio-impl.h.
17904         (fwriting): Remove redundant #defines.
17905         * modules/fbufmode (Files): Add lib/stdio-impl.h.
17906         * modules/fflush (Files): Likewise.
17907         * modules/fpurge (Files): Likewise.
17908         * modules/freadable (Files): Likewise.
17909         * modules/freadahead (Files): Likewise.
17910         * modules/freading (Files): Likewise.
17911         * modules/freadptr (Files): Likewise.
17912         * modules/freadseek (Files): Likewise.
17913         * modules/fseeko (Files): Likewise.
17914         * modules/fseterr (Files): Likewise.
17915         * modules/fwritable (Files): Likewise.
17916         * modules/fwriting (Files): Likewise.
17917
17918 2008-04-26  Bruno Haible  <bruno@clisp.org>
17919
17920         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
17921         restore_seek_optimization, update_fpos_cache): New functions, extracted
17922         from rpl_fflush.
17923         (rpl_fflush): Use them.
17924         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
17925         (gl_REPLACE_FFLUSH): Use it.
17926
17927 2008-04-26  Bruno Haible  <bruno@clisp.org>
17928
17929         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
17930         on Solaris.
17931         * tests/test-xstrtoimax.sh: Likewise.
17932         * tests/test-xstrtoumax.sh: Likewise.
17933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17934
17935 2008-04-26  Bruno Haible  <bruno@clisp.org>
17936
17937         * modules/memchr-tests: New file.
17938         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
17939
17940 2008-04-26  Eric Blake  <ebb9@byu.net>
17941             Bruno Haible  <bruno@clisp.org>
17942
17943         * lib/memchr.c: Include intprops.h.
17944         (__memchr): Optimize parallel detection of matching bytes. Rename local
17945         variables. Add explanatory comments.
17946
17947 2008-04-26  Bruno Haible  <bruno@clisp.org>
17948
17949         Fix module 'memchr', broken since 2000-10-28.
17950         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
17951
17952 2008-04-26  Bruno Haible  <bruno@clisp.org>
17953
17954         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
17955         comments.
17956
17957 2008-04-25  Eric Blake  <ebb9@byu.net>
17958
17959         Use native fstatat on cygwin 1.7.0.
17960         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
17961         first.
17962
17963 2008-04-23  Eric Blake  <ebb9@byu.net>
17964
17965         Improve memchr2 performance.
17966         * lib/memchr2.c (memchr2): Further optimize parallel detection of
17967         NUL bytes.
17968         * modules/memchr2 (Depends-on): Use intprops.h.
17969
17970 2008-04-23  Simon Josefsson  <simon@josefsson.org>
17971
17972         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
17973         an inline function instead of a CPP macro.  Patch by Ben Pfaff
17974         <blp@cs.stanford.edu>.
17975
17976 2008-04-23  Simon Josefsson  <simon@josefsson.org>
17977
17978         * lib/arpa_inet.in.h: New file.
17979
17980         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
17981         (Makefile.am): Sed in substitute header file.
17982
17983         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
17984         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
17985
17986         * modules/inet_ntop (configure.ac): Use
17987         gl_ARPA_INET_MODULE_INDICATOR.
17988
17989         * modules/inet_pton (configure.ac): Use
17990         gl_ARPA_INET_MODULE_INDICATOR.
17991
17992 2008-04-22  Jim Meyering  <meyering@redhat.com>
17993
17994         * modules/verify (License): Re-license as LGPLv2+.
17995
17996 2008-04-22  Simon Josefsson  <simon@josefsson.org>
17997
17998         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
17999         parameter to void* as per POSIX standard (MinGW uses char*).
18000
18001 2008-04-21  Bruno Haible  <bruno@clisp.org>
18002
18003         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18004         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18005         Define to replacements if REPLACE_ISWCNTRL is 1.
18006         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
18007         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
18008         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
18009         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
18010         what it fixes.
18011         * doc/posix-functions/iswalpha.texi: Likewise.
18012         * doc/posix-functions/iswblank.texi: Likewise.
18013         * doc/posix-functions/iswcntrl.texi: Likewise.
18014         * doc/posix-functions/iswdigit.texi: Likewise.
18015         * doc/posix-functions/iswgraph.texi: Likewise.
18016         * doc/posix-functions/iswlower.texi: Likewise.
18017         * doc/posix-functions/iswprint.texi: Likewise.
18018         * doc/posix-functions/iswpunct.texi: Likewise.
18019         * doc/posix-functions/iswspace.texi: Likewise.
18020         * doc/posix-functions/iswupper.texi: Likewise.
18021         * doc/posix-functions/iswxdigit.texi: Likewise.
18022         Reported by Alain Guibert.
18023
18024 2008-04-21  Bruno Haible  <bruno@clisp.org>
18025
18026         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
18027         Patch by Alain Guibert.
18028
18029 2008-04-21  Bruno Haible  <bruno@clisp.org>
18030
18031         Fix test failures on mingw.
18032         * tests/test-xstrtol.c (print_no_progname): New function.
18033         (main): Install it in error_print_progname hook.
18034         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
18035         * tests/test-xstrtoimax.sh: Likewise.
18036         * tests/test-xstrtoumax.sh: Likewise.
18037
18038 2008-04-21  Bruno Haible  <bruno@clisp.org>
18039
18040         Fix test failure on mingw.
18041         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
18042
18043 2008-04-21  Bruno Haible  <bruno@clisp.org>
18044
18045         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
18046         Actually assign a value.
18047
18048 2008-04-20  Bruno Haible  <bruno@clisp.org>
18049
18050         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
18051         take 2.
18052         * lib/canonicalize.c (canonicalize_file_name): Elide if the
18053         'canonicalize-lgpl' module is also used.
18054         * lib/canonicalize-lgpl.c: Undo last change.
18055         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
18056
18057 2008-04-20  Bruno Haible  <bruno@clisp.org>
18058
18059         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
18060         config.h. Provide _mkdir based fallback for mingw.
18061         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
18062         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
18063         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
18064         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
18065         rather than defining mkdir in config.h.
18066         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
18067         (gl_SYS_STAT_H_DEFAULTS): New macro.
18068         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
18069         HAVE_IO_H any more.
18070         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
18071         HAVE_DECL_MKDIR and HAVE_IO_H.
18072
18073 2008-04-20  Bruno Haible  <bruno@clisp.org>
18074
18075         * lib/isapipe.c: Port to native Windows platforms.
18076
18077 2008-04-20  Bruno Haible  <bruno@clisp.org>
18078
18079         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
18080
18081 2008-04-21  Eric Blake  <ebb9@byu.net>
18082
18083         Work around preprocessors that don't handle UINTMAX_MAX.
18084         * lib/memchr2.c (memchr2): Avoid embedded #if.
18085         Reported by Alain Guibert, fix suggested by Bruno Haible.
18086
18087 2008-04-21  Simon Josefsson  <simon@josefsson.org>
18088
18089         * doc/posix-functions/strftime.texi (strftime): Explain better
18090         Windows incompatibility.  Suggested by Micah Cowan
18091         <micah@cowan.name>.
18092
18093 2008-04-20  Bruno Haible  <bruno@clisp.org>
18094
18095         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
18096         unistr/u8-mblen.
18097
18098 2008-04-20  Bruno Haible  <bruno@clisp.org>
18099
18100         Fix test failure on platforms with non-GNU iconv.
18101         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
18102         (U_TO_U8): Use it, rather than u16_to_u8.
18103         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
18104         units at the end of the input string.
18105         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
18106
18107 2008-04-20  Bruno Haible  <bruno@clisp.org>
18108
18109         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
18110         when the resulting length is 0.
18111         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
18112
18113 2008-04-20  Bruno Haible  <bruno@clisp.org>
18114
18115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
18116         works.
18117         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
18118
18119 2008-04-20  Bruno Haible  <bruno@clisp.org>
18120
18121         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
18122         * modules/tsearch-tests (configure.ac): Test for initstate function.
18123
18124 2008-04-20  Bruno Haible  <bruno@clisp.org>
18125
18126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
18127         for nlink_t if missing.
18128         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
18129
18130 2008-04-19  Bruno Haible  <bruno@clisp.org>
18131
18132         Work around snprintf bug on Linux libc5.
18133         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
18134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18135         gl_SNPRINTF_SIZE1.
18136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18137         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
18138         that test failed.
18139         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
18140         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
18141         * modules/snprintf (Files): Add m4/printf.m4.
18142         * modules/vsnprintf (Files): Likewise.
18143         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
18144         * doc/posix-functions/vsnprintf.texi: Likewise.
18145
18146 2008-04-19  Bruno Haible  <bruno@clisp.org>
18147
18148         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
18149         from 0.0058 to less than 10^-7.
18150
18151 2008-04-19  Bruno Haible  <bruno@clisp.org>
18152
18153         Fix rounding when a precision is given.
18154         * lib/vasnprintf.c (is_borderline): New function.
18155         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
18156         9...9x.
18157         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
18158         %e, %g.
18159         * tests/test-vasprintf-posix.c (test_function): Likewise.
18160         * tests/test-snprintf-posix.h (test_function): Likewise.
18161         * tests/test-sprintf-posix.h (test_function): Likewise.
18162         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
18163         * tests/test-printf-posix.h (test_function): Likewise.
18164         * tests/test-printf-posix.output: Update.
18165         Reported by John Darrington <john@darrington.wattle.id.au> via
18166         Ben Pfaff <blp@cs.stanford.edu>.
18167
18168 2008-04-18  Simon Josefsson  <simon@josefsson.org>
18169
18170         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
18171         Suggested by Bruno Haible <bruno@clisp.org>.
18172
18173 2008-04-17  Bruno Haible  <bruno@clisp.org>
18174
18175         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
18176         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
18177         implementation.
18178         Patch by Bruce Merry <bmerry@gmail.com>.
18179
18180 2008-04-17  Simon Josefsson  <simon@josefsson.org>
18181
18182         * doc/posix-functions/strftime.texi (strftime): Mention that %e
18183         doesn't work under Windows.
18184
18185 2008-04-16  Bruno Haible  <bruno@clisp.org>
18186
18187         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
18188         New macros.
18189         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
18190         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
18191         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
18192         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
18193         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
18194         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
18195         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
18196         macros.
18197         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
18198         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
18199         Northern Sotho, Uighur.
18200
18201 2008-04-16  Bruno Haible  <bruno@clisp.org>
18202
18203         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
18204         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
18205         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
18206         Reported by Daniel Bergström <daniel@octocode.com>.
18207
18208 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
18209             Bruno Haible  <bruno@clisp.org>
18210
18211         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
18212         function.
18213         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
18214         New functions, mostly extracted from gl_locale_name_default.
18215         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
18216
18217 2008-04-16  Eric Blake  <ebb9@byu.net>
18218
18219         Adjust strtod detection to catch glibc 2.7 bug.
18220         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
18221         Reported by John Gatewood Ham.
18222
18223 2008-04-16  Bruno Haible  <bruno@clisp.org>
18224
18225         Add tentative support for Linux libc5.
18226         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
18227         * lib/fpurge.c (fpurge): Likewise.
18228         * lib/freadable.c (freadable): Likewise.
18229         * lib/freadahead.c (freadahead): Likewise.
18230         * lib/freading.c (freading): Likewise.
18231         * lib/freadptr.c (freadptr): Likewise.
18232         * lib/freadseek.c (freadptrinc): Likewise.
18233         * lib/fseeko.c (rpl_fseeko): Likewise.
18234         * lib/fseterr.c (fseterr): Likewise.
18235         * lib/fwritable.c (fwritable): Likewise.
18236         * lib/fwriting.c (fwriting): Likewise.
18237         Reported by Alain Guibert <alguibert+bts@free.fr>.
18238
18239 2008-04-15  Bruno Haible  <bruno@clisp.org>
18240
18241         * modules/mathl (configure.ac): Define module indicator.
18242
18243 2008-04-15  Bruno Haible  <bruno@clisp.org>
18244
18245         * lib/logl.c (logl): Remove unused variables.
18246
18247 2008-04-15  Bruno Haible  <bruno@clisp.org>
18248
18249         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
18250         fails.
18251
18252 2008-04-15  Bruno Haible  <bruno@clisp.org>
18253
18254         * lib/trim.c (trim2): Fix argument of isspace() macro.
18255
18256 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
18257
18258         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
18259         to 0.
18260         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
18261
18262 2008-04-14  Bruno Haible  <bruno@clisp.org>
18263
18264         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
18265         AC_LANG_PROGRAM argument.
18266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
18267         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
18268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18269         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18270         * m4/math_h.m4 (gl_MATH_H): Likewise.
18271         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18273         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18274         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18275         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18276         * m4/regex.m4 (gl_REGEX): Likewise.
18277         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
18278         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
18279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18280         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
18281         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18282         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18285
18286 2008-04-14  Jim Meyering  <meyering@redhat.com>
18287
18288         test-strtod: fix typos: s/abs/fabs/
18289         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
18290
18291 2008-04-13  Bruno Haible  <bruno@clisp.org>
18292
18293         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
18294         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
18295         module is also used and while not building the reloc-wrapper.
18296
18297 2008-04-13  Bruno Haible  <bruno@clisp.org>
18298
18299         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
18300
18301 2008-04-13  Bruno Haible  <bruno@clisp.org>
18302
18303         Fix AIX compilation failure introduced on 2008-04-02.
18304         * tests/test-frexp.c (exp): Undefine before redefining.
18305         * tests/test-frexpl.c (exp): Likewise.
18306
18307 2008-04-13  Bruno Haible  <bruno@clisp.org>
18308
18309         Work around a HP-UX stdio bug.
18310         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
18311         * tests/test-ftello.c (main): Likewise.
18312         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
18313         * doc/posix-functions/ftello.texi: Likewise.
18314
18315 2008-04-13  Bruno Haible  <bruno@clisp.org>
18316
18317         Make test-signbit pass on HP-UX/hppa.
18318         * tests/test-signbit.c (minus_zerol): New variable.
18319         (test_signbitl): Use it.
18320
18321 2008-04-13  Bruno Haible  <bruno@clisp.org>
18322
18323         Make truncl work on OSF/1 4.0.
18324         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
18325         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
18326         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
18327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
18328         HAVE_DECL_TRUNCL.
18329         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
18330         HAVE_DECL_TRUNCL.
18331         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
18332
18333 2008-04-13  Bruno Haible  <bruno@clisp.org>
18334
18335         * lib/unictype.h: Remove trailing comma from enumeration definitions.
18336
18337 2008-04-13  Bruno Haible  <bruno@clisp.org>
18338
18339         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
18340         expression, so as to avoid HP-UX 11 cc compiler bug.
18341
18342 2008-04-13  Bruno Haible  <bruno@clisp.org>
18343
18344         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
18345
18346 2008-04-13  Bruno Haible  <bruno@clisp.org>
18347
18348         * lib/git-merge-changelog.c: Remove empty declaration outside of
18349         functions.
18350
18351 2008-04-13  Bruno Haible  <bruno@clisp.org>
18352
18353         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
18354
18355 2008-04-13  Bruno Haible  <bruno@clisp.org>
18356
18357         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
18358         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
18359         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
18360         also if it exists but lacks definitions of the SHUT_* macros.
18361         * modules/sys_socket (Description): Update.
18362         Reported by Elbert Pol <e.pol@chello.nl>.
18363
18364 2008-04-13  Bruno Haible  <bruno@clisp.org>
18365
18366         * lib/localcharset.c (OS2): Don't redefine if already defined.
18367         Reported by Elbert Pol <e.pol@chello.nl>.
18368
18369 2008-04-13  Bruno Haible  <bruno@clisp.org>
18370
18371         * lib/binary-io.h [__EMX__]: Include <io.h>.
18372         Reported by Elbert Pol <e.pol@chello.nl>.
18373
18374 2008-04-12  Bruno Haible  <bruno@clisp.org>
18375
18376         * lib/fpucw.h: Enable the definitions also for x86_64.
18377         Needed for NetBSD/x86_64.
18378         Reported by Thomas Klausner <tk@giga.or.at>.
18379
18380 2008-04-12  Bruno Haible  <bruno@clisp.org>
18381
18382         * tests/test-strtod.c: Include isnand.h.
18383         (main): Use isnand instead of isnan.
18384         Reported by Jim Meyering.
18385
18386 2008-04-12  Bruno Haible  <bruno@clisp.org>
18387
18388         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
18389         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18390
18391 2008-04-12  Jim Meyering  <meyering@redhat.com>
18392
18393         * m4/math_h.m4 (gl_MATH_H): Fix typos.
18394
18395 2008-04-12  Bruno Haible  <bruno@clisp.org>
18396
18397         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
18398         Reported by Elbert Pol <e.pol@chello.nl>.
18399
18400 2008-04-12  Eric Blake  <ebb9@byu.net>
18401
18402         Work around Solaris 10 math.h bug.
18403         * m4/math_h.m4 (gl_MATH_H): Check for bug.
18404         (gl_MATH_H_DEFAULTS): Set up default.
18405         * modules/math (Makefile.am): Replace new indicators.
18406         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
18407         * tests/test-math.c (main): Test this.
18408         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
18409         * doc/posix-headers/math.texi (math.h): Mention bug.
18410         Reported by Nelson H. F. Beebe and Jim Meyering.
18411
18412 2008-04-11  Bruno Haible  <bruno@clisp.org>
18413
18414         Adapt to future versions of Apple GCC.
18415         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
18416         Reported by Peter O'Gorman <peter@pogma.com>.
18417
18418 2008-04-11  Bruno Haible  <bruno@clisp.org>
18419
18420         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
18421
18422 2008-04-11  Bruno Haible  <bruno@clisp.org>
18423
18424         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
18425
18426         * modules/getaddrinfo-tests (Makefile.am): Define
18427         test_getaddrinfo_LDADD.
18428
18429 2008-04-11  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
18432         (init): Fix syntax error.
18433         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
18434         is declared.
18435
18436 2008-04-11  Bruno Haible  <bruno@clisp.org>
18437
18438         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
18439         * modules/glob (Depends-on): Add stdbool.
18440
18441 2008-04-11  Bruno Haible  <bruno@clisp.org>
18442
18443         * lib/trim.c: Include <string.h>.
18444
18445 2008-04-11  Eric Blake  <ebb9@byu.net>
18446
18447         Avoid compile failure on OS/2.
18448         * lib/regex_internal.h (internal_function): Disable optimization
18449         on OS/2 (__EMX__), where it caused compiler error.
18450         Reported by Elbert Pol.
18451
18452 2008-04-11  Bruno Haible  <bruno@clisp.org>
18453
18454         Flush the standard error stream before aborting. Needed on mingw.
18455         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
18456         * tests/test-array_list.c (ASSERT): Likewise.
18457         * tests/test-array_oset.c (ASSERT): Likewise.
18458         * tests/test-avltree_list.c (ASSERT): Likewise.
18459         * tests/test-avltree_oset.c (ASSERT): Likewise.
18460         * tests/test-avltreehash_list.c (ASSERT): Likewise.
18461         * tests/test-binary-io.c (ASSERT): Likewise.
18462         * tests/test-byteswap.c (ASSERT): Likewise.
18463         * tests/test-c-ctype.c (ASSERT): Likewise.
18464         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
18465         * tests/test-c-strcasestr.c (ASSERT): Likewise.
18466         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
18467         * tests/test-c-strstr.c (ASSERT): Likewise.
18468         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
18469         * tests/test-canonicalize.c (ASSERT): Likewise.
18470         * tests/test-carray_list.c (ASSERT): Likewise.
18471         * tests/test-ceilf1.c (ASSERT): Likewise.
18472         * tests/test-ceilf2.c (ASSERT): Likewise.
18473         * tests/test-ceill.c (ASSERT): Likewise.
18474         * tests/test-count-one-bits.c (ASSERT): Likewise.
18475         * tests/test-fbufmode.c (ASSERT): Likewise.
18476         * tests/test-fflush2.c (ASSERT): Likewise.
18477         * tests/test-floorf1.c (ASSERT): Likewise.
18478         * tests/test-floorf2.c (ASSERT): Likewise.
18479         * tests/test-floorl.c (ASSERT): Likewise.
18480         * tests/test-fopen.c (ASSERT): Likewise.
18481         * tests/test-fpending.c (ASSERT): Likewise.
18482         * tests/test-fprintf-posix.c (ASSERT): Likewise.
18483         * tests/test-fpurge.c (ASSERT): Likewise.
18484         * tests/test-freadable.c (ASSERT): Likewise.
18485         * tests/test-freadahead.c (ASSERT): Likewise.
18486         * tests/test-freading.c (ASSERT): Likewise.
18487         * tests/test-freadptr.c (ASSERT): Likewise.
18488         * tests/test-freadptr2.c (ASSERT): Likewise.
18489         * tests/test-freadseek.c (ASSERT): Likewise.
18490         * tests/test-freopen.c (ASSERT): Likewise.
18491         * tests/test-frexp.c (ASSERT): Likewise.
18492         * tests/test-frexpl.c (ASSERT): Likewise.
18493         * tests/test-fseek.c (ASSERT): Likewise.
18494         * tests/test-fseeko.c (ASSERT): Likewise.
18495         * tests/test-fstrcmp.c (ASSERT): Likewise.
18496         * tests/test-ftell.c (ASSERT): Likewise.
18497         * tests/test-ftello.c (ASSERT): Likewise.
18498         * tests/test-func.c (ASSERT): Likewise.
18499         * tests/test-fwritable.c (ASSERT): Likewise.
18500         * tests/test-fwriting.c (ASSERT): Likewise.
18501         * tests/test-getdelim.c (ASSERT): Likewise.
18502         * tests/test-getline.c (ASSERT): Likewise.
18503         * tests/test-i-ring.c (ASSERT): Likewise.
18504         * tests/test-iconv-utf.c (ASSERT): Likewise.
18505         * tests/test-iconv.c (ASSERT): Likewise.
18506         * tests/test-isfinite.c (ASSERT): Likewise.
18507         * tests/test-isnand.c (ASSERT): Likewise.
18508         * tests/test-isnanf.c (ASSERT): Likewise.
18509         * tests/test-isnanl.h (ASSERT): Likewise.
18510         * tests/test-ldexpl.c (ASSERT): Likewise.
18511         * tests/test-linked_list.c (ASSERT): Likewise.
18512         * tests/test-linkedhash_list.c (ASSERT): Likewise.
18513         * tests/test-localename.c (ASSERT): Likewise.
18514         * tests/test-lseek.c (ASSERT): Likewise.
18515         * tests/test-mbscasecmp.c (ASSERT): Likewise.
18516         * tests/test-mbscasestr1.c (ASSERT): Likewise.
18517         * tests/test-mbscasestr2.c (ASSERT): Likewise.
18518         * tests/test-mbscasestr3.c (ASSERT): Likewise.
18519         * tests/test-mbscasestr4.c (ASSERT): Likewise.
18520         * tests/test-mbschr.c (ASSERT): Likewise.
18521         * tests/test-mbscspn.c (ASSERT): Likewise.
18522         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
18523         * tests/test-mbspbrk.c (ASSERT): Likewise.
18524         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
18525         * tests/test-mbsrchr.c (ASSERT): Likewise.
18526         * tests/test-mbsspn.c (ASSERT): Likewise.
18527         * tests/test-mbsstr1.c (ASSERT): Likewise.
18528         * tests/test-mbsstr2.c (ASSERT): Likewise.
18529         * tests/test-mbsstr3.c (ASSERT): Likewise.
18530         * tests/test-memchr2.c (ASSERT): Likewise.
18531         * tests/test-memmem.c (ASSERT): Likewise.
18532         * tests/test-open.c (ASSERT): Likewise.
18533         * tests/test-printf-frexp.c (ASSERT): Likewise.
18534         * tests/test-printf-frexpl.c (ASSERT): Likewise.
18535         * tests/test-printf-posix.c (ASSERT): Likewise.
18536         * tests/test-quotearg.c (ASSERT): Likewise.
18537         * tests/test-rbtree_list.c (ASSERT): Likewise.
18538         * tests/test-rbtree_oset.c (ASSERT): Likewise.
18539         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
18540         * tests/test-round1.c (ASSERT): Likewise.
18541         * tests/test-roundf1.c (ASSERT): Likewise.
18542         * tests/test-roundl.c (ASSERT): Likewise.
18543         * tests/test-signbit.c (ASSERT): Likewise.
18544         * tests/test-sleep.c (ASSERT): Likewise.
18545         * tests/test-snprintf-posix.c (ASSERT): Likewise.
18546         * tests/test-snprintf.c (ASSERT): Likewise.
18547         * tests/test-sprintf-posix.c (ASSERT): Likewise.
18548         * tests/test-stat-time.c (ASSERT): Likewise.
18549         * tests/test-strcasestr.c (ASSERT): Likewise.
18550         * tests/test-strerror.c (ASSERT): Likewise.
18551         * tests/test-striconv.c (ASSERT): Likewise.
18552         * tests/test-striconveh.c (ASSERT): Likewise.
18553         * tests/test-striconveha.c (ASSERT): Likewise.
18554         * tests/test-strsignal.c (ASSERT): Likewise.
18555         * tests/test-strstr.c (ASSERT): Likewise.
18556         * tests/test-strtod.c (ASSERT): Likewise.
18557         * tests/test-trunc1.c (ASSERT): Likewise.
18558         * tests/test-trunc2.c (ASSERT): Likewise.
18559         * tests/test-truncf1.c (ASSERT): Likewise.
18560         * tests/test-truncf2.c (ASSERT): Likewise.
18561         * tests/test-truncl.c (ASSERT): Likewise.
18562         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
18563         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
18564         * tests/test-vasnprintf.c (ASSERT): Likewise.
18565         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
18566         * tests/test-vasprintf.c (ASSERT): Likewise.
18567         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
18568         * tests/test-vprintf-posix.c (ASSERT): Likewise.
18569         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
18570         * tests/test-vsnprintf.c (ASSERT): Likewise.
18571         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
18572         * tests/test-wcwidth.c (ASSERT): Likewise.
18573         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
18574         * tests/test-xprintf-posix.c (ASSERT): Likewise.
18575         * tests/test-xvasprintf.c (ASSERT): Likewise.
18576         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
18577         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
18578         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
18579         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
18580         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
18581         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
18582         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
18583         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
18584         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
18585         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
18586         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
18587         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
18588         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
18589         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
18590         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
18591         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
18592         * tests/unictype/test-block_list.c (ASSERT): Likewise.
18593         * tests/unictype/test-block_of.c (ASSERT): Likewise.
18594         * tests/unictype/test-block_test.c (ASSERT): Likewise.
18595         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
18596         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
18597         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
18598         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
18599         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
18600         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
18601         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
18602         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
18603         * tests/unictype/test-combining.c (ASSERT): Likewise.
18604         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
18605         * tests/unictype/test-digit.c (ASSERT): Likewise.
18606         * tests/unictype/test-mirror.c (ASSERT): Likewise.
18607         * tests/unictype/test-numeric.c (ASSERT): Likewise.
18608         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
18609         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
18610         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
18611         * tests/unictype/test-scripts.c (ASSERT): Likewise.
18612         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
18613         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
18614         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
18615         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
18616         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
18617         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
18618         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
18619         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
18620         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
18621         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
18622         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
18623         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
18624         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
18625         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
18626         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
18627         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
18628         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
18629         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
18630         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
18631         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
18632         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
18633         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
18634         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
18635         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
18636         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
18637         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
18638         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
18639         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
18640         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
18641         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
18642         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
18643         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
18644         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
18645         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
18646         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
18647         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
18648         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
18649         Reported by Eric Blake.
18650
18651 2008-04-11  Bruno Haible  <bruno@clisp.org>
18652
18653         * lib/wchar.in.h: Tweak comment.
18654
18655 2008-04-11  Bruno Haible  <bruno@clisp.org>
18656
18657         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
18658         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
18659         gl_COMMON.
18660         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
18661
18662 2008-04-11  Bruno Haible  <bruno@clisp.org>
18663
18664         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
18665
18666 2008-04-11  Simon Josefsson  <simon@josefsson.org>
18667
18668         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
18669         of attempting to use non-existing /dev/*random.  Based on patch
18670         from Adam Strzelecki <ono@java.pl> in
18671         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
18672
18673 2008-04-08  Bruno Haible  <bruno@clisp.org>
18674
18675         Add tentative support for emx+gcc.
18676         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
18677         * lib/fpurge.c (fpurge): Likewise.
18678         * lib/freadable.c (freadable): Likewise.
18679         * lib/freadahead.c (freadahead): Likewise.
18680         * lib/freading.c (freading): Likewise.
18681         * lib/freadptr.c (freadptr): Likewise.
18682         * lib/freadseek.c (freadptrinc): Likewise.
18683         * lib/fseeko.c (rpl_fseeko): Likewise.
18684         * lib/fseterr.c (fseterr): Likewise.
18685         * lib/fwritable.c (fwritable): Likewise.
18686         * lib/fwriting.c (fwriting): Likewise.
18687         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
18688
18689 2008-04-09  Eric Blake  <ebb9@byu.net>
18690
18691         Avoid some autoconf warnings.
18692         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
18693         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
18694         * m4/afs.m4 (gl_AFS): Likewise.
18695         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
18696         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
18697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18698         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
18699         (gl_INTEGER_TYPE_SUFFIX): Likewise.
18700         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
18701         (AC_CHECK_DECLS_ONCE): Likewise.
18702         Rename file...
18703         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
18704         gnulib-tool requires autoconf 2.59 or better.
18705         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
18706
18707 2008-04-08  Eric Blake  <ebb9@byu.net>
18708
18709         Use 'git describe --match' if present (added in git 1.5.5).
18710         * build-aux/git-version-gen: Limit result to tags that match 'v*'
18711         if possible.
18712
18713 2008-04-08  Bruno Haible  <bruno@clisp.org>
18714
18715         Add tentative support for OpenServer.
18716         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
18717         _ptr, _cnt.
18718         * lib/fpurge.c (fpurge): Likewise.
18719         * lib/freadable.c (freadable): Likewise.
18720         * lib/freadahead.c (freadahead): Likewise.
18721         * lib/freading.c (freading): Likewise.
18722         * lib/freadptr.c (freadptr): Likewise.
18723         * lib/freadseek.c (freadptrinc): Likewise.
18724         * lib/fseeko.c (rpl_fseeko): Likewise.
18725         * lib/fseterr.c (fseterr): Likewise.
18726         * lib/fwritable.c (fwritable): Likewise.
18727         * lib/fwriting.c (fwriting): Likewise.
18728         Reported by Roger Cornelius <rac@tenzing.org> and
18729         Brian K. White <brian@aljex.com>.
18730
18731 2008-04-06  Jim Meyering  <meyering@redhat.com>
18732
18733         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
18734
18735 2008-04-06  Bruno Haible  <bruno@clisp.org>
18736
18737         Avoid possible error with non-ASCII bytes in UTF-8 locales.
18738         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
18739         * tests/test-printf-posix.sh: Likewise.
18740         * tests/test-vfprintf-posix.sh: Likewise.
18741         * tests/test-vprintf-posix.sh: Likewise.
18742         * tests/test-xprintf-posix.sh: Likewise.
18743
18744 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18745
18746         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
18747         hide error from 'ls', needed on OS/2.
18748         Report by Elbert Pol <elbert.pol@gmail.com>.
18749
18750 2008-04-04  Eric Blake  <ebb9@byu.net>
18751
18752         Make test-fseeko.c failures meaningful.
18753         * tests/test-fseeko.c: Print line number on failure.
18754         * tests/test-fseek.c: Likewise.
18755         Reported by Nelson H. F. Beebe.
18756
18757         Improve strtod bug detection check.
18758         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
18759         required for Solaris 10.
18760         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
18761
18762 2008-04-04  Bruno Haible  <bruno@clisp.org>
18763
18764         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
18765         by m4/setenv.m4.
18766
18767 2008-04-03  Eric Blake  <ebb9@byu.net>
18768
18769         Ensure sane .version contents.
18770         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
18771         version string.
18772         * build-aux/git-version-gen: Improve documentation.
18773
18774         Make GNU make output nicer.
18775         * top/GNUmakefile [!_have-Makefile]: Add dependency on
18776         MAKECMDGOALS to enforce message for all command line targets.  Set
18777         srcdir for use in maint.mk.
18778
18779         Another maintainer tweak.
18780         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
18781         a target that regenerates version.
18782
18783 2008-04-03  Jim Meyering  <meyering@redhat.com>
18784
18785         vc-list-files: don't cause coreutils "make po-check" failure
18786         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
18787
18788 2008-04-03  Eric Blake  <ebb9@byu.net>
18789
18790         Allow VPATH usage of vc-list-files.
18791         * build-aux/vc-list-files (scriptversion): Add timestamp.
18792         (options): Add --help, --version, -C.
18793         (CVS): Support installed cvsu.
18794
18795 2008-04-02  Bruno Haible  <bruno@clisp.org>
18796
18797         Avoid some "statement with no effect" warnings from gcc.
18798         * tests/test-wctype.c (main): Explicitly ignore unused values.
18799         Reported by Jim Meyering.
18800
18801 2008-04-02  Jim Meyering  <meyering@redhat.com>
18802
18803         Avoid some warnings from "gcc -Wshadow".
18804         * tests/test-frexp.c (exp): Define to a different identifier.
18805         * tests/test-frexpl.c (exp): Likewise.
18806
18807 2008-04-03  Jim Meyering  <meyering@redhat.com>
18808
18809         bootstrap: remove dangling *.[ch] symlinks from lib
18810         * build-aux/bootstrap [dangling symlink removal]: Move find's
18811         -depth option to precede all others, to avoid a warning.
18812         Remove *.[ch] files too, and from "$source_base" (usually lib/).
18813
18814 2008-04-02  Bruno Haible  <bruno@clisp.org>
18815
18816         Avoid some warnings from "gcc -Wshadow".
18817         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
18818         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
18819         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
18820         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
18821         Reported by Jim Meyering.
18822
18823 2008-04-01  Bruno Haible  <bruno@clisp.org>
18824
18825         Fix test to work on IRIX 6.5 with cc.
18826         * tests/test-math.c (numeric_equal): New function.
18827         (main): Use it.
18828
18829 2008-04-01  Bruno Haible  <bruno@clisp.org>
18830
18831         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
18832
18833 2008-04-01  Bruno Haible  <bruno@clisp.org>
18834
18835         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
18836         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
18837         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
18838         (Depends-on): Remove math.
18839
18840         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
18841         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
18842         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
18843         (Depends-on): Remove math.
18844
18845         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
18846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
18847         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
18848         (Depends-on): Remove math.
18849         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
18850         (Depends-on): Remove math.
18851
18852         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
18853         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
18854         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
18855         (Depends-on): Remove math.
18856         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
18857         (Depends-on): Remove math.
18858
18859         * tests/test-round1.c: Include nan.h.
18860         (main): Use NaNd instead of NAN.
18861         * modules/round-tests (Files): Add tests/nan.h.
18862
18863         * tests/test-trunc1.c: Include nan.h.
18864         (main): Use NaNd instead of NAN.
18865         * modules/trunc-tests (Files): Add tests/nan.h.
18866
18867         * tests/test-roundf1.c: Include nan.h.
18868         (main): Use NaNf instead of NAN.
18869         * modules/roundf-tests (Files): Add tests/nan.h.
18870
18871         * tests/test-truncf1.c: Include nan.h.
18872         (main): Use NaNf instead of NAN.
18873         * modules/truncf-tests (Files): Add tests/nan.h.
18874
18875         * tests/test-ceilf1.c: Include nan.h.
18876         (main): Use NaNf instead of NAN.
18877         * modules/ceilf-tests (Files): Add tests/nan.h.
18878
18879         * tests/test-floorf1.c: Include nan.h.
18880         (main): Use NaNf instead of NAN.
18881         * modules/floorf-tests (Files): Add tests/nan.h.
18882
18883         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
18884         (main): Use NaNf instead of NAN.
18885         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
18886
18887         * tests/test-isnand.c: Include nan.h instead of <math.h>.
18888         (main): Use NaNd instead of NAN.
18889         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
18890
18891         * tests/test-frexp.c: Include nan.h.
18892         (main): Use NaNd instead of NAN.
18893         * modules/frexp-tests (Files): Add tests/nan.h.
18894
18895         * lib/isnan.c: Don't include <math.h>.
18896         (FUNC): Don't use NAN macro.
18897         * modules/isnand-nolibm (Depends-on): Remove math.
18898         * modules/isnanf-nolibm (Depends-on): Remove math.
18899         * modules/isnanl (Depends-on): Remove math.
18900         * modules/isnanl-nolibm (Depends-on): Remove math.
18901
18902         * tests/nan.h: New file.
18903
18904 2008-04-01  Eric Blake  <ebb9@byu.net>
18905
18906         Fix typos.
18907         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
18908         values to be the right type.
18909
18910         For now, cater to gnulib strtod inaccuracies.
18911         * tests/test-strtod.c (main): Allow 1-ulp error on expected
18912         fractional results.  While not as nice from a QoI perspective, it
18913         is a quicker patch than correctly implementing decimal to binary
18914         rounding.
18915
18916 2008-03-31  Eric Blake  <ebb9@byu.net>
18917
18918         Guarantee a definition of NAN.
18919         * lib/math.in.h (NAN): Define if missing.
18920         * tests/test-math.c (main): Test it.
18921         * doc/posix-headers/math.texi (math.h): Document this.
18922         * lib/isnan.c (rpl_isnand): Use it.
18923         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
18924         * tests/test-floorf1.c (NaN): Likewise.
18925         * tests/test-frexp.c (NaN): Likewise.
18926         * tests/test-isnand.c (NaN): Likewise.
18927         * tests/test-isnanf.c (NaN): Likewise.
18928         * tests/test-round1.c (NaN): Likewise.
18929         * tests/test-roundf1.c (NaN): Likewise.
18930         * tests/test-snprintf-posix.h (NaN): Likewise.
18931         * tests/test-sprintf-posix.h (NaN): Likewise.
18932         * tests/test-trunc1.c (NaN): Likewise.
18933         * tests/test-truncf1.c (NaN): Likewise.
18934         * tests/test-vasnprintf-posix.c (NaN): Likewise.
18935         * tests/test-vasprintf-posix.c (NaN): Likewise.
18936         * modules/isnand-nolibm (Depends-on): Add math.
18937         * modules/isnanf-nolibm (Depends-on): Likewise.
18938         * modules/isnanl (Depends-on): Likewise.
18939         * modules/isnanl-nolibm (Depends-on): Likewise.
18940         * modules/snprintf-posix-tests (Depends-on): Likewise.
18941         * modules/sprintf-posix-tests (Depends-on): Likewise.
18942         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
18943         * modules/vsprintf-posix-tests (Depends-on): Likewise.
18944         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
18945         * modules/vasprintf-posix-tests (Depends-on): Likewise.
18946
18947 2008-03-31  Bruno Haible  <bruno@clisp.org>
18948
18949         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
18950         * doc/posix-functions/strtod.texi: Likewise.
18951
18952 2008-03-31  Bruno Haible  <bruno@clisp.org>
18953
18954         * tests/test-strtod.c (main): Don't use C99 syntax.
18955
18956 2008-03-31  Bruno Haible  <bruno@clisp.org>
18957
18958         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
18959         Reported by Eric Blake.
18960
18961 2008-03-31  Jim Meyering  <meyering@redhat.com>
18962
18963         Don't compare actual signbit return values.
18964         * tests/test-strtod.c (main): Rather, compare only their
18965         zero/non-zero nature.
18966
18967 2008-03-31  Eric Blake  <ebb9@byu.net>
18968
18969         More strtod documentation.
18970         * doc/posix-functions/strtod.texi (strtod): Interpret more test
18971         failures as distinct bugs.
18972
18973 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
18976         Problem reported by Erik Benada in
18977         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
18978
18979 2008-03-30  Bruno Haible  <bruno@clisp.org>
18980
18981         * tests/test-strtod.c: Add comments about which assertion fails on which
18982         platform.
18983         * doc/posix-functions/strtod.texi: Add info about many more platforms.
18984
18985 2008-03-30  Eric Blake  <ebb9@byu.net>
18986
18987         Test signbit behavior on zeros.
18988         * tests/test-signbit.c (test_signbitf): Add tests for zero.
18989         (test_signbitd, test_signbitl): Likewise.
18990
18991         More strtod touchups.
18992         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
18993         sign of negative underflow, for now.  Use .5, not .1.
18994         * doc/posix-functions/strtod.texi (strtod): Mention these
18995         limitations.
18996         Reported by Jim Meyering.
18997
18998 2008-03-30  Bruno Haible  <bruno@clisp.org>
18999
19000         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
19001         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
19002
19003 2008-03-30  Bruno Haible  <bruno@clisp.org>
19004
19005         Avoid failure when attempting to return empty iconv results on some
19006         platforms.
19007         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
19008         allocation, don't report ENOMEM when the resulting string is empty.
19009
19010 2008-03-30  Bruno Haible  <bruno@clisp.org>
19011
19012         Fix buffer overrun.
19013         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
19014         Don't consider the width for tmp_length. Check count against tmp_length
19015         before doing the padding. Ensure enough allocation during padding.
19016
19017 2008-03-30  Eric Blake  <ebb9@byu.net>
19018
19019         strtod touchups.
19020         * lib/strtod.c (strtod): Avoid compiler warnings.
19021         Reported by Jim Meyering.
19022
19023 2008-03-30  Bruno Haible  <bruno@clisp.org>
19024
19025         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
19026         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
19027         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
19028         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
19029         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
19030         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
19031         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
19032         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
19033
19034         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
19035         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
19036         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
19037         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
19038         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
19039         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
19040         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
19041         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
19042
19043         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
19044         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
19045         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
19046         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
19047         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
19048         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
19049         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
19050         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
19051
19052         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
19053         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
19054
19055         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
19056         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
19057
19058         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
19059         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
19060
19061         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
19062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
19063         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
19064
19065         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
19066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
19067         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
19068
19069         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
19070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
19071         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
19072
19073         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
19074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
19075         * modules/vasprintf (Depends-on): Add EOVERFLOW.
19076
19077         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
19078         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
19079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
19080         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
19081         (Depends-on): Add EOVERFLOW.
19082         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
19083         (Depends-on): Add EOVERFLOW.
19084         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
19085         (Depends-on): Add EOVERFLOW.
19086         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
19087         (Depends-on): Add EOVERFLOW.
19088         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
19089         (Depends-on): Add EOVERFLOW.
19090         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
19091         (Depends-on): Add EOVERFLOW.
19092         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
19093         (Depends-on): Add EOVERFLOW.
19094         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
19095         (Depends-on): Add EOVERFLOW.
19096
19097         * lib/sprintf.c (EOVERFLOW): Remove fallback.
19098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
19099         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
19100
19101         * lib/snprintf.c (EOVERFLOW): Remove fallback.
19102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
19103         * modules/snprintf (Depends-on): Add EOVERFLOW.
19104
19105         * lib/poll.c (EOVERFLOW): Remove fallback.
19106         * modules/poll (Depends-on): Add EOVERFLOW.
19107
19108         * lib/getugroups.c (EOVERFLOW): Remove fallback.
19109         * modules/getugroups (Depends-on): Add EOVERFLOW.
19110
19111         * lib/getdelim.c (EOVERFLOW): Remove fallback.
19112         * modules/getdelim (Depends-on): Add EOVERFLOW.
19113
19114         * lib/ftell.c (EOVERFLOW): Remove fallback.
19115         * modules/ftell (Depends-on): Add EOVERFLOW.
19116
19117         * lib/fprintf.c (EOVERFLOW): Remove fallback.
19118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
19119         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
19120
19121         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
19122
19123         * modules/EOVERFLOW-tests: New file.
19124         * tests/test-EOVERFLOW.c: New file.
19125
19126         * modules/EOVERFLOW: New file.
19127         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
19128
19129 2008-03-30  Bruno Haible  <bruno@clisp.org>
19130
19131         Fix bug introduced on 2007-06-10.
19132         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
19133         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
19134
19135 2008-03-30  Bruno Haible  <bruno@clisp.org>
19136
19137         Improve freadseek's efficiency after ungetc.
19138         * lib/freadseek.c: Include freadahead.h.
19139         (freadptrinc): New function, extracted from freadseek.
19140         (freadseek): Use it in a loop. Use freadahead to determine the number
19141         of loop iterations.
19142         * modules/freadseek (Depends-on): Add freadahead.
19143         (configure.ac): Require AC_C_INLINE.
19144
19145 2008-03-30  Bruno Haible  <bruno@clisp.org>
19146
19147         * lib/freadseek.c (freadseek): Don't ignore the return value of
19148         freadptr.
19149
19150 2008-03-29  Eric Blake  <ebb9@byu.net>
19151
19152         Add hex float support.
19153         * modules/strtod (Depends-on): Add c-ctype.
19154         (Link): Mention POW_LIB.
19155         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
19156         whitespace between 'e' and exponent.
19157         * tests/test-strtod.c (main): Enable hex float tests.
19158         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
19159         now provides.
19160
19161         Document various strtod bugs, with some fixes.
19162         * doc/posix-functions/strtod.texi (strtod): Document bugs with
19163         "-0x", "inf", "nan", and hex constants.
19164         * doc/posix-functions/atof.texi (atof): Likewise.
19165         * modules/stdlib (Makefile.am): Support strtod.
19166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19167         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
19168         detect additional strtod bugs.
19169         * lib/stdlib.in.h (rpl_strtod): Add declarations.
19170         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
19171         bool where appropriate.  Parse 'inf' and 'nan'.
19172         * tests/test-strtod.c: New file.
19173         * modules/strtod (Depends-on): Add stdbool, stdlib.
19174         (configure.ac): Turn on module indicator.
19175         * modules/strtod-tests: New module.
19176
19177 2008-03-29  Eric Blake  <ebb9@byu.net>
19178
19179         Fix ftell on mingw.
19180         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
19181         * modules/ftell-tests (Depends-on): Add binary-io.
19182         * modules/ftello-tests (Depends-on): Likewise.
19183         * tests/test-ftell.c (main): Enhance test to cover behavior after
19184         ungetc.  Enforce binary mode.
19185         * tests/test-ftello.c (main): Likewise.
19186
19187         Pass test-freadseek on cygwin.
19188         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
19189         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
19190         ungetc buffer.
19191
19192         * tests/test-fflush2.c (main): Fix typo.
19193
19194 2008-03-29  Bruno Haible  <bruno@clisp.org>
19195
19196         * tests/test-fflush2.c (main): Temporarily disable the contents of
19197         this test.
19198         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
19199         Reported by Eric Blake.
19200
19201 2008-03-28  Simon Josefsson  <simon@josefsson.org>
19202
19203         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
19204         (GC_SHA224_DIGEST_SIZE): Add.
19205
19206         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
19207         (gc_hash_digest_length): Likewise.
19208         (gc_hash_buffer): Likewise.
19209
19210 2008-03-25  Bruno Haible  <bruno@clisp.org>
19211
19212         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
19213         detail which gettext release to use.
19214         Reported by Simon Josefsson.
19215
19216 2008-03-26  Jim Meyering  <meyering@redhat.com>
19217
19218         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
19219         * modules/gnumakefile (clean-GNUmakefile): Also, use
19220         test ... && ... || : syntax rather than if-then ... fi.
19221
19222         gnumakefile: Don't double-quote-expand $(VPATH) value.
19223         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
19224
19225 2008-03-24  Eric Blake  <ebb9@byu.net>
19226
19227         Alter GNUmakefile to install into top directory.
19228         * modules/maintainer-makefile: Split, and add dependency...
19229         * modules/gnumakefile: to this new module.
19230         * build-aux/GNUmakefile: Move...
19231         * top/GNUmakefile: ...here.
19232         * build-aux/maint.mk: Move...
19233         * top/maint.mk: ...here.
19234         * MODULES.html.sh (Support for maintaining...): Document new
19235         module.
19236
19237 2008-03-23  Bruno Haible  <bruno@clisp.org>
19238
19239         * gnulib-tool: New options --vc-files, --no-vc-files.
19240         (func_usage): Document them.
19241         (vc_files): New variable.
19242         (func_import): Consider vc_files.
19243         (func_create_testdir): Set vc_files to empty.
19244         Suggested by Jim Meyering and Karl Berry.
19245
19246 2008-03-23  Bruno Haible  <bruno@clisp.org>
19247
19248         Fix regex compilation error on HP-UX 11.
19249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
19250         * modules/regex (Files): Add m4/mbstate_t.m4.
19251         Reported by Ton Voon <ton.voon@altinity.com>.
19252
19253 2008-03-23  Bruno Haible  <bruno@clisp.org>
19254
19255         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
19256
19257 2008-03-23  Eric Blake  <ebb9@byu.net>
19258             Bruno Haible  <bruno@clisp.org>
19259
19260         Install files from top/ in the destination directory.
19261         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19262         augmentation also for the files from top/.
19263         (func_import, func_create_testdir): Rewrite file names:
19264         top/filename -> filename.
19265
19266 2008-03-23  Bruno Haible  <bruno@clisp.org>
19267
19268         Tweak "gnulib --version" output.
19269         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
19270
19271 2008-03-23  Bruno Haible  <bruno@clisp.org>
19272
19273         Tweak "gnulib --version" output.
19274         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
19275         rather than contents of ChangeLog, when possible.
19276
19277 2008-03-21  Eric Blake  <ebb9@byu.net>
19278
19279         More --version tweaks.
19280         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
19281         date of last ChangeLog entry.
19282
19283 2008-03-21  Jim Meyering  <meyering@redhat.com>
19284
19285         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
19286
19287 2008-03-20  Eric Blake  <ebb9@byu.net>
19288
19289         VPATH fix.
19290         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
19291
19292 2008-03-20  Simon Josefsson  <simon@josefsson.org>
19293
19294         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
19295         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
19296
19297 2008-03-20  Eric Blake  <ebb9@byu.net>
19298
19299         Sync GNUmakefile with coreutils.
19300         * build-aux/GNUmakefile (have-Makefile): Rename...
19301         (_have-Makefile): ...to this, for namespace consideration.
19302         (GNUmakefile.cfg): Include, if present.
19303         (_autoreconf): Define a default.
19304         (_is-dist-target): New rule for rebuilds to pick up intra-release
19305         version.
19306         (maint-cfg.mk): Rename...
19307         (cfg.mk): ...to this.
19308
19309 2008-03-18  Jim Meyering  <meyering@redhat.com>
19310
19311         New script and module: mktempd
19312         * MODULES.html.sh (maint+release support): Add mktempd.
19313         * build-aux/mktempd: New file.
19314         * modules/mktempd: New file.
19315
19316 2008-03-15  Jim Meyering  <meyering@redhat.com>
19317
19318         Undo last change.
19319         * lib/sha1.c, lib/md5.c: 63 != ~63.
19320         Reported by Andreas Schwab.
19321
19322         sha1.c, md5.c: Hoist a redundant expression.
19323         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
19324         "ctx->buflen" only once, before calling *_process_block.
19325         * lib/md5.c (md5_process_bytes): Likewise.
19326
19327 2008-03-14  Eric Blake  <ebb9@byu.net>
19328
19329         Bump copyright year in files generated by gnulib-tool.
19330         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
19331         gnulib-tool, rather than hard-coding it.
19332
19333         Fix 'gnulib-tool --version' output to work with git.
19334         * gnulib-tool (func_gnulib_dir): New function, extracted from...
19335         (startup): ...here.
19336         (func_version): Use it to invoke git-version-gen, rather than
19337         relying on CVS keyword expansion.  Modernize wording.
19338         (cvsdatestamp, last_checkin_date, version): Kill unused
19339         variables.
19340
19341 2008-03-12  Jim Meyering  <meyering@redhat.com>
19342
19343         Recognize optional cast of the argument to free.
19344         * build-aux/useless-if-before-free: Update regexps.
19345
19346         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
19347
19348 2008-03-11  Bruno Haible  <bruno@clisp.org>
19349
19350         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
19351         by a single package.
19352         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
19353         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
19354         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
19355         Reported by Sam Steingold <sds@gnu.org>.
19356
19357 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19358
19359         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
19360         repositories.
19361
19362 2008-03-11  Bruno Haible  <bruno@clisp.org>
19363
19364         Avoid conflicts between local macro definitions.
19365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19366         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
19367
19368 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
19369             Bruno Haible  <bruno@clisp.org>
19370
19371         Make va_copy work with some version of xlc on AIX 5.1.
19372         * lib/stdarg.in.h: New file.
19373         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
19374         On AIX, use a <stdarg.h> file substitute.
19375         * modules/stdarg (Files): Add lib/stdarg.in.h.
19376         (Depends-on): Add include_next.
19377         (Makefile.am): Build a stdarg.h substitute if requested.
19378         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
19379
19380 2008-03-10  Bruno Haible  <bruno@clisp.org>
19381
19382         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
19383         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19384         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
19385
19386 2008-03-10  Bruno Haible  <bruno@clisp.org>
19387
19388         * modules/stdlib (Depends-on): Add include_next, remove
19389         absolute-header.
19390
19391 2008-03-09  Bruno Haible  <bruno@clisp.org>
19392
19393         * lib/freadahead.h (freadahead): Document more precisely.
19394         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
19395         the sum of both buffer sizes.
19396         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
19397         * NEWS: Document the change.
19398
19399 2008-03-09  Bruno Haible  <bruno@clisp.org>
19400
19401         Extend freadptr to return also the buffer size.
19402         * lib/freadptr.h (freadptr): Add sizep argument.
19403         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
19404         (freadptr): Add sizep argument. Determine buffer size like freadahead
19405         does.
19406         * tests/test-freadptr.c: Don't include freadahead.h.
19407         (main): Adapt for new calling convention of freadptr.
19408         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
19409         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
19410         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
19411         tests/test-freadptr2.sh.
19412         (Depends): Remove freadahead.
19413         (TESTS): Add test-freadptr2.sh.
19414         (check_PROGRAMS): Add test-freadptr2.
19415
19416 2008-03-09  Bruno Haible  <bruno@clisp.org>
19417
19418         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
19419         Report and solution by Simon Josefsson.
19420
19421 2008-03-06  Bruno Haible  <bruno@clisp.org>
19422
19423         Make fflush after ungetc work on BSD platforms.
19424         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
19425         * tests/test-fflush2.c: New file.
19426         * tests/test-fflush2.sh: New file.
19427         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
19428         tests/test-fflush2.c.
19429         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
19430         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
19431
19432 2008-03-06  Eric Blake  <ebb9@byu.net>
19433
19434         Likewise for ftello.
19435         * modules/ftello (Dependencies): Add extensions.
19436         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
19437
19438 2008-03-06  Bruno Haible  <bruno@clisp.org>
19439
19440         * modules/fseeko (Dependencies): Add extensions.
19441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
19442         Needed on glibc systems.
19443
19444 2008-03-06  Bruno Haible  <bruno@clisp.org>
19445
19446         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
19447         email address.
19448         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19449
19450 2008-03-06  Bruno Haible  <bruno@clisp.org>
19451
19452         * users.txt: Add libgnupdf.
19453
19454 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19455
19456         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
19457         (Header File Substitutes, Function Substitutes,
19458         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
19459         (Build robot for gnulib): Fix typo.
19460
19461 2008-03-06  Bruno Haible  <bruno@clisp.org>
19462
19463         * doc/gnulib-tool.texi (VCS Issues): Small updates.
19464         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19465
19466 2008-03-06  Bruno Haible  <bruno@clisp.org>
19467
19468         * doc/func.texi: New file, extracted from doc/gnulib.texi.
19469         * doc/gnulib.texi: Include it.
19470
19471 2008-03-06  Simon Josefsson  <simon@josefsson.org>
19472
19473         * modules/func (License): Change license to unlimited; there was
19474         no LGPL parts in the module anyway.
19475
19476 2008-03-06  Simon Josefsson  <simon@josefsson.org>
19477
19478         * modules/__func__: Renamed to modules/func.
19479         * modules/__func__-tests: Renamed to modules/func-tests.
19480         * tests/test-__func__.c: Renamed to tests/test-func.c.
19481         * m4/__func__.m4: Renamed to m4/func.m4.
19482         * doc/gnulib.texi (__func__): Section renamed to func.
19483         Suggested by Eric Blake <ebb9@byu.net>.
19484
19485 2008-03-06  Simon Josefsson  <simon@josefsson.org>
19486
19487         * doc/gnulib.texi (__func__): Use C99 terminology when talking
19488         about __func__.  Make example self-contained.  Suggested by Eric
19489         Blake <ebb9@byu.net>.
19490
19491         * tests/test-__func__.c (main): Avoid extraneous () around __func.
19492         Suggested by Eric Blake <ebb9@byu.net>.
19493
19494 2008-03-06  Simon Josefsson  <simon@josefsson.org>
19495
19496         * modules/__func__: New file.
19497         * modules/__func__-tests: New file.
19498         * tests/test-__func__.c: New file.
19499         * m4/__func__.m4: New file.
19500         * doc/gnulib.texi (__func__): Document __func__ module.
19501
19502 2008-03-05  Simon Josefsson  <simon@josefsson.org>
19503
19504         * modules/byteswap (License): Re-license as LGPLv2+.
19505
19506 2008-03-05  Simon Josefsson  <simon@josefsson.org>
19507
19508         * doc/Makefile: Add pdf target.
19509
19510 2008-03-05  Simon Josefsson  <simon@josefsson.org>
19511
19512         * modules/inline (License): Use 'unlimited', since there are only
19513         *.m4 files in this module.
19514
19515 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
19516             Bruno Haible  <bruno@clisp.org>
19517
19518         Add support for HP C 7.1 on OpenVMS 8.3.
19519         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
19520
19521 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
19522
19523         Update VMS specifics.
19524         * lib/getopt.c [VMS]: Remove include of unixlib.h.
19525
19526 2008-03-02  Jim Meyering  <meyering@redhat.com>
19527
19528         Remove the last dependency on the "free" module.
19529         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
19530         Reported by Bob Proulx.
19531
19532         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
19533
19534         Remove useless "if" tests before free.  Deprecate "free" module.
19535         * doc/posix-functions/free.texi: Mention that this
19536         module is no longer useful.
19537         * modules/free (Notice): Say this module is obsolete.
19538         * modules/readutmp (Depends-on): Remove free.
19539         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
19540         * lib/putenv.c (putenv): Likewise.
19541         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
19542         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
19543         * tests/test-c-strcasestr.c (main): Likewise.
19544         * tests/test-c-strstr.c (main): Likewise.
19545         * tests/test-mbscasestr1.c (main): Likewise.
19546         * tests/test-mbscasestr2.c (main): Likewise.
19547         * tests/test-mbsstr1.c (main): Likewise.
19548         * tests/test-mbsstr2.c (main): Likewise.
19549         * tests/test-memmem.c (main): Likewise.
19550         * tests/test-strcasestr.c (main): Likewise.
19551         * tests/test-striconv.c (main): Likewise.
19552         * tests/test-striconveh.c (main): Likewise.
19553         * tests/test-striconveha.c (main): Likewise.
19554         * tests/test-strstr.c (main): Likewise.
19555
19556         * build-aux/git-version-gen: Adjust a comment and the Usage string.
19557
19558         bootstrap: sync from coreutils again
19559         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
19560
19561 2008-03-01  Jim Meyering  <meyering@redhat.com>
19562
19563         bootstrap: sync from coreutils
19564         * build-aux/bootstrap (update_po_files): Copy a .po file into place
19565         also when the target doesn't exist.
19566
19567 2008-03-01  Eric Blake  <ebb9@byu.net>
19568
19569         Fix bugs in last patch.
19570         * lib/memchr2.c (memchr2): Fix typo.
19571         * tests/test-memchr2.c: Test previous bug, and don't use GNU
19572         extension.
19573         Reported by Bruce Korb.
19574
19575         New module 'memchr2'.
19576         * modules/memchr2: New file.
19577         * modules/memchr2-tests: Likewise.
19578         * lib/memchr2.h: Likewise.
19579         * lib/memchr2.c: Likewise, based on memchr.c.
19580         * tests/test-memchr2.c: New test.
19581         * MODULES.html.sh (String handling): Add memchr2.
19582
19583 2008-02-29  Bruno Haible  <bruno@clisp.org>
19584
19585         * modules/freadseek-tests: New file.
19586         * tests/test-freadseek.sh: New file.
19587         * tests/test-freadseek.c: New file.
19588
19589         New module 'freadseek'.
19590         * modules/freadseek: New file.
19591         * lib/freadseek.h: New file.
19592         * lib/freadseek.c: New file.
19593         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
19594
19595 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
19596
19597         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
19598         wydawca.
19599
19600         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
19601         program_invocation_name and program_invocation_short_name are
19602         present.
19603
19604 2008-02-28  Bruno Haible  <bruno@clisp.org>
19605
19606         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
19607         * tests/test-freadptr.sh: Also test non-seekable stdin.
19608
19609 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
19610
19611         * build-aux/bootstrap (source_base, m4_base)
19612         (doc_base, tests_base): New variables.
19613         (gnulib_tool_options): Do not hardcode base directories, use
19614         the above variables instead.
19615
19616 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
19617
19618         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
19619
19620 2008-02-28  Bruno Haible  <bruno@clisp.org>
19621
19622         * modules/freadptr-tests: New file.
19623         * tests/test-freadptr.sh: New file.
19624         * tests/test-freadptr.c: New file.
19625
19626         New module 'freadptr'.
19627         * modules/freadptr: New file.
19628         * lib/freadptr.h: New file.
19629         * lib/freadptr.c: New file.
19630         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
19631
19632 2008-02-26  Karl Berry  <karl@freefriends.org>
19633
19634         Sync from Libtool:
19635         * libltdl/argz.c (argz_add, argz_count): New functions.
19636         * libltdl/argz.in.h: Declare them.
19637         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
19638
19639 2008-02-22  Bruno Haible  <bruno@clisp.org>
19640
19641         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
19642         is a pointer type.  Needed for HP-UX 10.
19643         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
19644         * doc/posix-functions/gmtime_r.texi: Likewise.
19645         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
19646
19647 2008-02-24  Bruno Haible  <bruno@clisp.org>
19648
19649         * modules/environ-tests: New file.
19650         * tests/test-environ.c: New file.
19651
19652         New module 'environ'.
19653         * modules/environ: New file.
19654         * lib/unistd.in.h (environ): New declaration.
19655         * m4/environ.m4: New file.
19656         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
19657         after use.
19658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
19659         HAVE_DECL_ENVIRON.
19660         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
19661         HAVE_DECL_ENVIRON.
19662         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
19663         wrong claim that 'environ' is missing on some systems.
19664         * modules/execute (Depends-on): Add environ.
19665         * lib/execute.c (environ): Remove fallback declaration.
19666         * modules/pipe (Depends-on): Add environ.
19667         * lib/pipe.c (environ): Remove fallback declaration.
19668         * modules/setenv (Depends-on): Add environ.
19669         * lib/setenv.c (environ): Remove fallback declaration.
19670         * modules/unsetenv (Depends-on): Add environ.
19671         * lib/unsetenv.c (environ): Remove fallback declaration.
19672         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
19673         m4/environ.m4.
19674         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
19675         (gl_PREREQ_UNSETENV): Likewise.
19676
19677 2008-02-24  Bruno Haible  <bruno@clisp.org>
19678
19679         * doc/posix-functions/environ.texi: Document the MacOS X problem.
19680
19681 2008-02-20  Bob Proulx  <bob@proulx.com>
19682
19683         Enable use of older two part flavor 'git describe'.
19684         * build-aux/git-version-gen: If using the older two part flavor of
19685         git version then recreate the third part now present in the
19686         newer three part flavor of git describe.
19687
19688 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
19689
19690         * lib/fts.c (fts_build): Typo correction to comment.
19691
19692 2008-02-17  Bruno Haible  <bruno@clisp.org>
19693
19694         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
19695         generating no-op conflicts.
19696
19697 2008-02-17  Bruno Haible  <bruno@clisp.org>
19698
19699         Speed up by 10%.
19700         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
19701         result_entries, rather than an index-based loop.
19702
19703 2008-02-17  Bruno Haible  <bruno@clisp.org>
19704
19705         Speed up by 25%.
19706         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
19707         'hashcode_cached'.
19708         (entry_create): New function.
19709         (entry_hashcode): Use the cached hashcode if possible.
19710         (read_changelog_file, try_split_merged_entry): Use entry_create.
19711
19712 2008-02-17  Bruno Haible  <bruno@clisp.org>
19713
19714         Speed up from O(n^2) to O(n) for long ChangeLog files.
19715         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
19716         (read_changelog_file): Change implementation of entries_reversed list
19717         to rbtreehash.
19718         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
19719
19720 2008-02-17  Bruno Haible  <bruno@clisp.org>
19721
19722         New option --split-merged-entry.
19723         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
19724         (find_paragraph_end, try_split_merged_entry): New functions.
19725         (long_options): Add option --split-merged-entry.
19726         (usage): Document option --split-merged-entry.
19727         (main): Implement option --split-merged-entry.
19728         Reported by Eric Blake.
19729
19730 2008-02-17  Bruno Haible  <bruno@clisp.org>
19731
19732         * lib/git-merge-changelog.c: Include c-strstr.h.
19733         (main): Support the "git pull --rebase" situation.
19734         * modules/git-merge-changelog (Depends-on): Add c-strstr.
19735         Reported by Eric Blake.
19736
19737 2008-02-16  Eric Blake  <ebb9@byu.net>
19738
19739         Avoid doubling \ in common case of "c-maybe" quoting style.
19740         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
19741         eliding outer quotes.
19742         * lib/quotearg.h: Document this.
19743         * tests/test-quotearg.c (result_strings, inputs, results_g)
19744         (flag_results, locale_results): Test it by adding a new string to
19745         each test group.
19746         (compare_strings): Test new string.
19747
19748 2008-02-13  Eric Blake  <ebb9@byu.net>
19749
19750         Avoid trigraph quoting in default output.
19751         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
19752         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
19753         unless explicitly requested.
19754         * tests/test-quotearg.c (flag_results, main): Add additional tests.
19755
19756 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
19757
19758         Don't rely on signed integer overflowing to negative value.
19759         * lib/getugroups.c (getugroups): Include <limits.h>.
19760         Instead, compare against INT_MAX, and increment only if the test passes.
19761
19762 2008-02-13  Jim Meyering  <meyering@redhat.com>
19763         and Eric Blake  <ebb9@byu.net>
19764
19765         Avoid shadowing warning and compile errors on Linux.
19766         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
19767         forwarding macros on Linux.
19768         (dcgettext): Define a stub, for Linux.
19769         (results_g, main): Avoid warnings.
19770
19771 2008-02-12  Eric Blake  <ebb9@byu.net>
19772
19773         Silence warning in last patch.
19774         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
19775
19776         Quotearg part 4: add tests, fix c-maybe colon quoting.
19777         * lib/quotearg.h: Improve documentation.
19778         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
19779         escapes when adding outer quotes.  When quoting trigraphs, use
19780         valid C notation.  When quoting NUL, omit extra characters if next
19781         character is not digit.  Alter prototype.
19782         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
19783         callers.
19784         * modules/quotearg-tests: New module.
19785         * tests/test-quotearg.c: New test.
19786
19787 2008-02-07  Eric Blake  <ebb9@byu.net>
19788
19789         Quotearg part 3: add flag to control outer quote elision.
19790         * lib/quotearg.h (c_maybe_quoting_style): New style.
19791         (enum quoting_flags): Better documentation of flags.
19792         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
19793         c-maybe style.
19794         (quotearg_buffer_restyled): Handle new flag to elide outer
19795         quotes.
19796
19797         Quotearg part 2: add flag that can control NUL elision.
19798         * lib/quotearg.h (set_quoting_flags): New prototype.
19799         * lib/quotearg.c (struct quoting_options): Add flag field.
19800         (set_quoting_flags): New function.
19801         (quotearg_buffer_restyled): Add flags parameter.
19802         (quotearg_alloc_mem): Set the flag if length cannot be returned.
19803         (quotearg_n_options): Set the flag, since length cannot be
19804         returned.
19805         (quoting_options_from_style): Default flags correctly.
19806
19807         Quotearg part 1: more wrappers, restore quotearg_char state.
19808         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
19809         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
19810         (quotearg_colon_mem): New wrappers.
19811         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
19812         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
19813         functions.
19814         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
19815         (quotearg_colon_mem): New functions.
19816
19817 2008-02-11  Bruno Haible  <bruno@clisp.org>
19818
19819         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
19820         library in the current directory: it does not work with parallel make.
19821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19822
19823 2008-02-11  Bruno Haible  <bruno@clisp.org>
19824
19825         * .gitattributes: New file.
19826
19827 2008-02-11  Jim Meyering  <meyering@redhat.com>
19828
19829         useless-if-before-free: Fix reversed exit values.
19830         * build-aux/useless-if-before-free: Use correct values
19831         for EXIT_MATCH and EXIT_NO_MATCH.
19832
19833         * build-aux/useless-if-before-free: Close stdout carefully.
19834
19835 2008-02-10  Bruno Haible  <bruno@clisp.org>
19836
19837         New module 'git-merge-changelog'.
19838         * modules/git-merge-changelog: New file.
19839         * lib/git-merge-changelog.c: New file.
19840
19841 2008-02-10  Jim Meyering  <meyering@redhat.com>
19842
19843         useless-if-before-free: New option: --list (-l).
19844
19845         useless-if-before-free: Don't exit immediately upon open failure.
19846         * build-aux/useless-if-before-free: Exit 2 for errors.
19847         Upon failure to open a file, don't exit immediately.
19848         Rather, just warn and continue with any remaining files.
19849
19850 2008-02-10  Bruno Haible  <bruno@clisp.org>
19851
19852         New abstract list operation 'node_set_value'.
19853         * lib/gl_list.h (gl_list_node_set_value): New function.
19854         (struct gl_list_implementation): New field node_set_value.
19855         * lib/gl_list.c (gl_list_node_set_value): New function.
19856         * lib/gl_array_list.c (gl_array_node_set_value): New function.
19857         (gl_array_list_implementation): Update.
19858         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
19859         (gl_carray_list_implementation): Update.
19860         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
19861         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
19862         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
19863         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
19864         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
19865         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
19866         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
19867         Update.
19868         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
19869         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
19870         (gl_sublist_list_implementation): Update.
19871
19872 2008-02-10  Bruno Haible  <bruno@clisp.org>
19873
19874         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
19875         Needed when ELEMENT is #defined to 'some_type *'.
19876
19877 2008-02-10  Jim Meyering  <meyering@redhat.com>
19878
19879         New script and module: useless-if-before-free
19880         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
19881         * build-aux/useless-if-before-free: New file.
19882         * modules/useless-if-before-free: New file.
19883
19884         * build-aux/gitlog-to-changelog: Use committer date, not author date.
19885
19886         xstrtol_error: Fix typo.
19887         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
19888         s/exit_failure/exit_status/.
19889
19890 2008-02-09  Jim Meyering  <meyering@redhat.com>
19891
19892         New script and module: gitlog-to-changelog
19893         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
19894         * modules/gitlog-to-changelog: New file.
19895         * build-aux/gitlog-to-changelog: New file.
19896
19897 2008-02-08  Jim Meyering  <meyering@redhat.com>
19898
19899         Avoid two "parameter unused" warnings.
19900         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19901         Mark "st" as used.
19902
19903         Use "git COMMAND", not "git-COMMAND".
19904         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
19905         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
19906         * build-aux/git-version-gen: Use "git status", not "git-status".
19907
19908 2008-02-07  Bruno Haible  <bruno@clisp.org>
19909
19910         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
19911         Avoids a crash on Windows Vista.
19912         Reported by Adam Strzelecki <ono@java.pl> via
19913         Simon Josefsson <simon@josefsson.org>.
19914
19915 2008-02-06  Bruno Haible  <bruno@clisp.org>
19916
19917         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
19918         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
19919         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
19920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
19921         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19923         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
19924         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
19925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19932         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
19933         left-adjust flag.
19934         * tests/test-snprintf-posix.h (test_function): Likewise.
19935         * tests/test-sprintf-posix.h (test_function): Likewise.
19936         * tests/test-vasprintf-posix.c (test_function): Likewise.
19937         * doc/posix-functions/fprintf.texi: Update.
19938         * doc/posix-functions/printf.texi: Update.
19939         * doc/posix-functions/snprintf.texi: Update.
19940         * doc/posix-functions/sprintf.texi: Update.
19941         * doc/posix-functions/vfprintf.texi: Update.
19942         * doc/posix-functions/vprintf.texi: Update.
19943         * doc/posix-functions/vsnprintf.texi: Update.
19944         * doc/posix-functions/vsprintf.texi: Update.
19945         Reported by Peter Fales <psfales@alcatel-lucent.com>.
19946
19947 2008-02-06  Bruno Haible  <bruno@clisp.org>
19948
19949         Fix bug introduced on 2008-01-26.
19950         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
19951
19952 2008-02-06  Bruno Haible  <bruno@clisp.org>
19953
19954         Fix bug introduced on 2007-06-10.
19955         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
19956         !NEED_PRINTF_FLAG_ZERO.
19957
19958 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
19959
19960         getloadavg: use libperfstat on AIX5
19961         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
19962
19963 2008-02-03  Bruno Haible  <bruno@clisp.org>
19964
19965         * lib/diffseq.h: Add comments about required #includes.
19966         Reported by Michael Biggs <gnulib@doubleplum.net>.
19967
19968 2008-02-01  Bruno Haible  <bruno@clisp.org>
19969
19970         * users.txt: Add gnuit.
19971
19972 2008-01-31  Bruno Haible  <bruno@clisp.org>
19973
19974         * lib/md4.c (set_uint32): Mark as inline.
19975         * lib/md5.c (set_uint32): Likewise.
19976         * lib/sha1.c (set_uint32): Likewise.
19977         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
19978         * m4/md5.m4 (gl_MD5): Likewise.
19979         * m4/sha1.m4 (gl_SHA1): Likewise.
19980
19981 2008-01-31  Jim Meyering  <meyering@redhat.com>
19982
19983         Use "sizeof VAR", rather than a literal "4".
19984         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
19985         * lib/md4.c (md4_read_ctx): Likewise.
19986         * lib/sha1.c (sha1_read_ctx): Likewise.
19987
19988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
19989
19990         * tests/test-sha1.c: New file, based on test-md5.c.
19991
19992         * modules/crypto/sha1-tests: New file.
19993
19994 2008-01-31  Simon Josefsson  <simon@josefsson.org>
19995
19996         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
19997
19998 2008-01-31  Jim Meyering  <meyering@redhat.com>
19999
20000         Prefer "sizeof v" over the equivalent "4".
20001         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
20002         * lib/md5.c (set_uint32): Likewise.
20003         * lib/sha1.c (set_uint32): Likewise.
20004
20005 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20006
20007         * lib/sha1.c (set_uint32): Mark function as static.
20008
20009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20010
20011         md2: clarify comments to say that alignment is not required.
20012         * lib/md2.h: Remove warning about alignment in comment.
20013         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
20014         never been required.
20015
20016 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20017
20018         md4: adapt alignment constraint fix from sha1.
20019         * lib/md4.c (set_uint32): New function, from sha1.c
20020         (md4_read_ctx): Use it.
20021         (md4_finish_ctx): Doc fix.
20022         * lib/md4.h: Doc fix.
20023
20024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20025
20026         md5: adapt alignment constraint fix from sha1.
20027         * lib/md5.c (set_uint32): New function, from sha1.c
20028         (md5_read_ctx): Use it.
20029         (md5_finish_ctx): Doc fix.
20030         * lib/md5.h: Doc fix.
20031
20032 2008-01-30  Peter Palfrader  <weasel@debian.org>
20033
20034         sha1: remove the result buffer alignment constraint
20035         * lib/sha1.c (set_uint32): New function.
20036         (sha1_read_ctx): Rewrite to remove the result buffer alignment
20037         constraint.
20038         (sha1_finish_ctx): Remove comment warning about alignment constraint.
20039         * lib/sha1.h: Likewise.
20040
20041 2008-01-30  Andreas Schwab  <schwab@suse.de>
20042             Bruno Haible  <bruno@clisp.org>
20043
20044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
20045         correct definition of LDBL_MIN_EXP.
20046
20047 2008-01-30  Karl Berry  <karl@gnu.org>
20048
20049         * config/srclist-update: try to preserve x bit on updates.
20050         * config/srclistvars.sh: update for karl.
20051
20052 2008-01-29  Jim Meyering  <meyering@redhat.com>
20053
20054         vasnprintf.c: Avoid warning about unused label
20055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
20056         "overflow" label definition and associated code with the
20057         same cpp condition that guards the sole use of that label.
20058
20059 2008-01-26  Bruno Haible  <bruno@clisp.org>
20060
20061         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
20062         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
20063         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
20064         * lib/isnanl-nolibm.h (isnanl): Likewise.
20065         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20066
20067 2008-01-26  Bruno Haible  <bruno@clisp.org>
20068
20069         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
20070         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
20071
20072 2008-01-26  Bruno Haible  <bruno@clisp.org>
20073
20074         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
20075         GCC >= 4.0 built-in.
20076         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
20077
20078 2008-01-26  Bruno Haible  <bruno@clisp.org>
20079
20080         Rename isnan, applicable to 'double' only, to isnand.
20081         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
20082         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
20083         (configure.ac): Update.
20084         (Include): Replace "isnan.h" with "isnand.h".
20085         * m4/isnand.m4: Renamed from m4/isnan.m4.
20086         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
20087         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
20088         instead of isnan.c.
20089         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
20090         instead of HAVE_ISNAN_IN_LIBC.
20091         (isnand): Renamed from isnan.
20092         * lib/isnand.c: New file.
20093         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
20094         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
20095         (Makefile.am): Update.
20096         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
20097         Include isnand.h instead of isnan.h.
20098         (main): Test isnand instead of isnan.
20099         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
20100         isnan-nolibm.
20101         * modules/frexp (Depends-on): Likewise.
20102         * modules/frexp-tests (Depends-on): Likewise.
20103         * modules/frexp-nolibm (Depends-on): Likewise.
20104         * modules/frexp-nolibm-tests (Depends-on): Likewise.
20105         * modules/isfinite (Depends-on): Likewise.
20106         * modules/round-tests (Depends-on): Likewise.
20107         * modules/signbit (Depends-on): Likewise.
20108         * modules/signbit-tests (Depends-on): Likewise.
20109         * modules/snprintf-posix (Depends-on): Likewise.
20110         * modules/sprintf-posix (Depends-on): Likewise.
20111         * modules/trunc-tests (Depends-on): Likewise.
20112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20119         * modules/vasnprintf-posix (Depends-on): Likewise.
20120         * modules/vasprintf-posix (Depends-on): Likewise.
20121         * modules/vfprintf-posix (Depends-on): Likewise.
20122         * modules/vsnprintf-posix (Depends-on): Likewise.
20123         * modules/vsprintf-posix (Depends-on): Likewise.
20124         * lib/frexp.c: Include isnand.h instead of isnan.h.
20125         (ISNAN): Set to isnand instead of isnan.
20126         * lib/isfinite.c: Include isnand.h instead of isnan.h.
20127         (gl_isfinited): Use isnand instead of isnan.
20128         * lib/signbitd.c: Include isnand.h instead of isnan.h.
20129         (gl_signbitd): Use isnand instead of isnan.
20130         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
20131         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
20132         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
20133         (main): Use isnand instead of isnan.
20134         * tests/test-round1.c: Include isnand.h.
20135         (main): Use isnand instead of isnan.
20136         * tests/test-round2.c: Include isnand.h instead of isnan.h.
20137         (ISNAN): Set to isnand instead of isnan.
20138         * tests/test-trunc1.c: Include isnand.h.
20139         (main): Use isnand instead of isnan.
20140         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
20141         (equal): Use isnand instead of isnan.
20142         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
20143         isnand-nolibm.
20144         * NEWS: Mention the change.
20145
20146 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20147             Bruno Haible  <bruno@clisp.org>
20148
20149         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
20150         the GCC builtins for signbits are present and set
20151         REPLACE_SIGNBIT_USING_GCC if so.
20152         * lib/math.in.h (signbit): Define using GCC builtins if
20153         REPLACE_SIGNBIT_USING_GCC is set.
20154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
20155         REPLACE_SIGNBIT_USING_GCC.
20156         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
20157
20158 2008-01-25  Jim Meyering  <meyering@redhat.com>
20159
20160         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
20161         * lib/poll.c: Include <config.h>, not "config.h".
20162         * tests/test-getaddrinfo.c: Likewise.
20163
20164 2008-01-25  Simon Josefsson  <simon@josefsson.org>
20165
20166         * modules/sockets-tests: New file.
20167
20168 2008-01-24  Simon Josefsson  <simon@josefsson.org>
20169
20170         * modules/sockets: New module, can be used to call WSA_Startup and
20171         WSA_Cleanup when needed.
20172
20173         * lib/sockets.h, lib/sockets.c: New files.
20174
20175         * m4/sockets.m4: New file.
20176
20177         * tests/test-sockets.c: New file.
20178
20179 2008-01-19  Bruno Haible  <bruno@clisp.org>
20180
20181         * doc/posix-headers: Renamed from doc/headers.
20182         * doc/posix-functions: Renamed from doc/functions.
20183         * doc/gnulib.texi: Update.
20184
20185 2008-01-19  Bruno Haible  <bruno@clisp.org>
20186
20187         * doc/glibc-functions/strcasestr.texi: Include contents of
20188         doc/functions/strcasestr.texi, fixing the list of platforms.
20189         * doc/functions/strcasestr.texi: Remove file.
20190
20191 2008-01-19  Bruno Haible  <bruno@clisp.org>
20192
20193         * doc/glibc-functions/memmem.texi: Include contents of
20194         doc/functions/memmem.texi.
20195         * doc/functions/memmem.texi: Remove file.
20196
20197 2008-01-18  Bruno Haible  <bruno@clisp.org>
20198
20199         * doc/glibc-functions/*.texi: New files.
20200         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
20201         to use the new files.
20202
20203 2008-01-17  Bruno Haible  <bruno@clisp.org>
20204
20205         * tests/test-gethostname.c (main): Fix printf statement.
20206
20207 2008-01-17  Simon Josefsson  <simon@josefsson.org>
20208
20209         * modules/gethostname-tests: New file.
20210
20211         * tests/test-gethostname.c: New file.
20212
20213 2008-01-17  Simon Josefsson  <simon@josefsson.org>
20214
20215         * lib/gethostname.c: Include string.h unconditionally, strncpy is
20216         used by the UNAME case.  Reported by Bruno Haible
20217         <bruno@clisp.org>.
20218
20219 2008-01-17  Eric Blake  <ebb9@byu.net>
20220
20221         Convert c-strcasestr to be more efficient.
20222         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
20223         (Depends-on): Add c-strcase, remove malloca, strnlen.
20224         * tests/test-c-strcasestr.c (main): Enhance test.
20225         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
20226
20227 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20228
20229         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
20230         Use it in creating po/Makevars.
20231
20232 2008-01-15  Simon Josefsson  <simon@josefsson.org>
20233
20234         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
20235         Applications that requires it should initialize libgcrypt
20236         manually.
20237
20238 2008-01-16  Simon Josefsson  <simon@josefsson.org>
20239
20240         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
20241
20242 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         Fix problem with getdate on mingw32 reported by Simon Josefsson
20245         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
20246         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
20247         tzname", when deciding whether to declare tzname.
20248         * lib/strftime.c (tzname): Likewise.
20249
20250 2008-01-15  Bruno Haible  <bruno@clisp.org>
20251
20252         Work around a MacOS X 10.5 bug in frexpl().
20253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
20254         * doc/functions/frexpl.texi: Document the bug.
20255         Reported by Elias Pipping <pipping@gentoo.org>.
20256
20257 2008-01-14  Eric Blake  <ebb9@byu.net>
20258
20259         Touch up previous patch.
20260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
20261         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
20262
20263         Convert strcasestr module to use Two-Way algorithm.
20264         * modules/strcasestr-simple: New module, based on the old
20265         strcasestr, but with Two-Way rather than KMP.
20266         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
20267         * lib/string.in.h (rpl_strcasestr): Declare.
20268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
20269         performance.
20270         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
20271         * modules/string (Makefile.am): Support strcasestr.
20272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20273         * modules/strcasestr-tests (Depends-on): Check for alarm.
20274         * tests/test-strcasestr.c: Augment test.
20275         * lib/str-two-way.h: Clean up stray macro.
20276         * NEWS: Document new module.
20277         * MODULES.html.sh (string handling): Likewise.
20278         * doc/functions/strcasestr.texi: New file.
20279         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
20280         here, since it is not a POSIX function.
20281
20282 2008-01-14  Colin Watson  <cjwatson@debian.org>
20283             Bruno Haible  <bruno@clisp.org>
20284
20285         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
20286         works fine; if not, set REPLACE_STRSIGNAL.
20287         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
20288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20289         REPLACE_STRSIGNAL.
20290         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
20291         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
20292         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
20293
20294 2008-01-14  Bruno Haible  <bruno@clisp.org>
20295
20296         * modules/strsignal (Include): Change to <string.h>.
20297
20298 2008-01-14  Colin Watson  <cjwatson@debian.org>
20299
20300         * modules/argp (Notice): Add a notice recommending to change
20301         XGETTEXT_OPTIONS.
20302         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
20303
20304 2008-01-13  Colin Watson  <cjwatson@debian.org>
20305
20306         * modules/strsignal-tests: New file.
20307         * tests/test-strsignal.c: New file.
20308
20309         * lib/strsignal.c: New file, from glibc with modifications.
20310         * lib/siglist.h: New file, from glibc with modifications.
20311         * lib/string.in.h (strsignal): New declaration.
20312         * m4/strsignal.m4: New file.
20313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20314         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
20315         * modules/strsignal: New file.
20316         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
20317         HAVE_DECL_STRSIGNAL.
20318
20319 2008-01-13  Bruno Haible  <bruno@clisp.org>
20320
20321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
20322         locale encoding is not ASCII. Needed for OpenBSD 4.0.
20323         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20324         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20325
20326 2008-01-13  Bruno Haible  <bruno@clisp.org>
20327
20328         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
20329         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
20330         * lib/argp.h (__attribute__): Likewise.
20331         * lib/c-stack.c (__attribute__): Likewise.
20332         * lib/error.h (__attribute__): Likewise.
20333         * lib/fts.c (__attribute__): Likewise.
20334         * lib/openat.h (__attribute__): Likewise.
20335         * lib/stdio.in.h (__attribute__): Likewise.
20336         * lib/string.in.h (__attribute__): Likewise.
20337         * lib/utimens.c (__attribute__): Likewise.
20338         * lib/vasnprintf.h (__attribute__): Likewise.
20339         * lib/xalloc.h (__attribute__): Likewise.
20340         * lib/xprintf.h (__attribute__): Likewise.
20341         * lib/xstrtol.h (__attribute__): Likewise.
20342         * lib/xvasprintf.h (__attribute__): Likewise.
20343
20344 2008-01-12  Bruno Haible  <bruno@clisp.org>
20345
20346         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
20347         * doc/glibc-headers/a.out.texi: New file.
20348         * doc/glibc-headers/aliases.texi: New file.
20349         * doc/glibc-headers/alloca.texi: New file.
20350         * doc/glibc-headers/ar.texi: New file.
20351         * doc/glibc-headers/argp.texi: New file.
20352         * doc/glibc-headers/argz.texi: New file.
20353         * doc/glibc-headers/byteswap.texi: New file.
20354         * doc/glibc-headers/crypt.texi: New file.
20355         * doc/glibc-headers/endian.texi: New file.
20356         * doc/glibc-headers/envz.texi: New file.
20357         * doc/glibc-headers/err.texi: New file.
20358         * doc/glibc-headers/error.texi: New file.
20359         * doc/glibc-headers/execinfo.texi: New file.
20360         * doc/glibc-headers/fpu_control.texi: New file.
20361         * doc/glibc-headers/fstab.texi: New file.
20362         * doc/glibc-headers/fts.texi: New file.
20363         * doc/glibc-headers/getopt.texi: New file.
20364         * doc/glibc-headers/ieee754.texi: New file.
20365         * doc/glibc-headers/ifaddrs.texi: New file.
20366         * doc/glibc-headers/libintl.texi: New file.
20367         * doc/glibc-headers/mcheck.texi: New file.
20368         * doc/glibc-headers/mntent.texi: New file.
20369         * doc/glibc-headers/obstack.texi: New file.
20370         * doc/glibc-headers/paths.texi: New file.
20371         * doc/glibc-headers/printf.texi: New file.
20372         * doc/glibc-headers/pty.texi: New file.
20373         * doc/glibc-headers/resolv.texi: New file.
20374         * doc/glibc-headers/shadow.texi: New file.
20375         * doc/glibc-headers/sysexits.texi: New file.
20376         * doc/glibc-headers/ttyent.texi: New file.
20377
20378 2008-01-12  Jim Meyering  <meyering@redhat.com>
20379
20380         announce-gen: emit Gnulib's git-based version string.
20381         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
20382         New option --gnulib-version=V, where V is expected to be
20383         the output of running git describe in the gnulib directory.
20384         (get_tool_versions): Request feedback on xdelta.  I suspect it's
20385         not useful, and plan to stop publishing an xdelta file with each
20386         coreutils release.
20387
20388         * build-aux/announce-gen: Also check for lzma-compressed files.
20389
20390 2008-01-11  Bruno Haible  <bruno@clisp.org>
20391
20392         * tests/test-memmem.c (main): Increase maximum allowed time.
20393         * tests/test-strstr.c (main): Likewise.
20394
20395 2008-01-11  Bruno Haible  <bruno@clisp.org>
20396
20397         * doc/functions/memmem.texi: Add more precisions about platforms.
20398         * doc/functions/strstr.texi: Likewise.
20399
20400 2008-01-10  Eric Blake  <ebb9@byu.net>
20401
20402         * m4/strstr.m4: Delete cruft from copy-n-paste.
20403         Reported by Bruno Haible.
20404
20405 2008-01-10  Bruno Haible  <bruno@clisp.org>
20406
20407         Make c-strstr rely on strstr.
20408         * lib/c-strstr.c: Don't include str-kmp.h.
20409         (c_strstr): Define in terms of strstr.
20410         * modules/c-strstr (Files): Remove lib/str-kmp.h.
20411         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
20412
20413 2008-01-10  Bruno Haible  <bruno@clisp.org>
20414
20415         * doc/gnulib.texi (String Functions in C Locale): New section.
20416         * doc/c-ctype.texi: New file.
20417         * doc/c-strcase.texi: New file.
20418         * doc/c-strcaseeq.texi: New file.
20419         * doc/c-strcasestr.texi: New file.
20420         * doc/c-strstr.texi: New file.
20421         * doc/c-strtod.texi: New file.
20422         * doc/c-strtold.texi: New file.
20423
20424 2008-01-10  Eric Blake  <ebb9@byu.net>
20425
20426         * lib/relocatable.h: Fix a comment.
20427
20428 2008-01-10  Eric Blake  <ebb9@byu.net>
20429
20430         Share two-way algorithm.
20431         * lib/str-two-way.h: New file, merged from...
20432         * lib/memmem.c: ...here...
20433         * lib/strstr.c: ...and here.
20434         * modules/memmem (Files): Use it.
20435         * modules/strstr (Files): Likewise.
20436
20437         Avoid quadratic strstr implementations.
20438         * lib/strstr.c: New file.
20439         * m4/strstr.m4: Likewise.
20440         * modules/strstr: Likewise.
20441         * modules/strstr-tests: Likewise.
20442         * tests/test-strstr.c: Likewise.
20443         * lib/string.in.h (rpl_strstr): Declare.
20444         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
20445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
20446         * modules/string (Makefile.am): Likewise.
20447         * MODULES.html.sh (string handling): Mention new module.
20448         * doc/functions/strstr.texi (strstr): Document the bug.
20449
20450 2008-01-10  Bruno Haible  <bruno@clisp.org>
20451
20452         * lib/relocatable.h (relocate): State whether result is freshly
20453         allocated or not.
20454         * lib/relocatable.c (relocate): Return a freshly allocated string
20455         instead of a pointer to a privately held string.
20456         Reported by Sylvain Beucler <beuc@gnu.org>.
20457
20458 2008-01-10  Colin Watson  <cjwatson@debian.org>
20459
20460         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
20461         s/S_ISNLK/S_ISLNK/.
20462
20463 2008-01-09  Bruno Haible  <bruno@clisp.org>
20464
20465         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
20466         and other files.
20467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
20468         if it's only a guess.
20469         * modules/memmem: Simplify by depending on memmem-simple.
20470
20471 2008-01-09  Bruno Haible  <bruno@clisp.org>
20472
20473         Work around OpenBSD 4.0 tdelete() bug.
20474         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
20475         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
20476         macros and don't redefine the enum values.
20477         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
20478         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
20479         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
20480
20481 2008-01-09  Bruno Haible  <bruno@clisp.org>
20482
20483         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
20484         (main): Don't perform the tests if setlocale did not install a UTF-8
20485         locale. Needed on OpenBSD 4.0.
20486         * modules/wcwidth-tests (Depends-on): Add localcharset.
20487
20488 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20489
20490         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
20491         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
20492         * NEWS: announce this.
20493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
20494
20495 2008-01-09  Simon Josefsson  <simon@josefsson.org>
20496         and Eric Blake  <ebb9@byu.net>
20497
20498         Add memmem-simple module.
20499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
20500         (gl_FUNC_MEMMEM): Separate performance from presence checks.
20501         * modules/memmem-simple: New file.
20502         * modules/memmem (Description): Tweak.
20503         * MODULES.html.sh (string handling): Mention new module.
20504         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
20505         addressed by memmem-simple.
20506         * NEWS: Document the difference.
20507
20508 2008-01-09  Eric Blake  <ebb9@byu.net>
20509
20510         Give gcc some memmem optimization hints.
20511         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
20512         (strcasestr): Declare as pure.
20513         * modules/memmem (Maintainer): Claim my implementation.
20514
20515 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20516
20517         Support AIX 6.1 and higher.
20518         * build-aux/config.libpath: Likewise.
20519         * build-aux/config.rpath: Likewise.
20520
20521 2008-01-08  Jim Meyering  <meyering@redhat.com>
20522             Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
20525         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
20526         Reported by Peter Fales in
20527         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
20528
20529 2008-01-08  Bruno Haible  <bruno@clisp.org>
20530
20531         * modules/unictype/category-of (Depends-on): Add
20532         unictype/category-none.
20533         * modules/unictype/category-and-tests (Depends-on): Add
20534         unictype/category-{L,N,Lu,Nd}.
20535         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
20536         * modules/unictype/category-or-tests (Depends-on): Add
20537         unictype/category-{L,N}.
20538         * modules/unictype/category-name-tests (Depends-on): Add
20539         unictype/category-{Z,Nl}.
20540         Reported by Simon Josefsson.
20541
20542 2008-01-08  Bruno Haible  <bruno@clisp.org>
20543
20544         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
20545         convention better.
20546         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
20547         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
20548         Reported by Peter Miller <millerp@canb.auug.org.au>.
20549
20550 2008-01-08  Eric Blake  <ebb9@byu.net>
20551
20552         Rewrite memmem to guarantee linear complexity without malloc.
20553         * lib/memmem.c (memmem): Use Two-Way rather than
20554         Knuth-Morris-Pratt, to allow O(1) space usage.
20555         (critical_factorization, two_way_short_needle)
20556         (two_way_long_needle): New functions.
20557         (knuth_morris_pratt): Delete.
20558         * modules/memmem (Depends-on): No longer need malloca or stdbool.
20559         Add stdint.
20560         * tests/test-memmem.c (main): Add tests for periodic needle and
20561         sublinear performance.
20562         * doc/functions/memmem.texi (memmem): Document other deficiencies
20563         in cygwin and older glibc.
20564
20565 2008-01-08  Bruno Haible  <bruno@clisp.org>
20566
20567         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
20568         augmentation.
20569
20570 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
20571
20572         Add a configure time option: --disable-acl.
20573         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
20574         AC_ARG_ENABLE(acl).
20575
20576 2008-01-06  Simon Josefsson  <simon@josefsson.org>
20577
20578         * tests/test-localename.c: Don't include obsolete "setenv.h".
20579
20580         * modules/localename-tests (Depends-on): Need unsetenv.
20581
20582 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20583
20584         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
20585
20586 2008-01-06  Colin Watson  <cjwatson@debian.org>
20587
20588         * users.txt: Add man-db.
20589
20590 2008-01-07  Bruno Haible  <bruno@clisp.org>
20591
20592         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
20593         previous section name.
20594
20595 2008-01-07  Bruno Haible  <bruno@clisp.org>
20596
20597         * lib/progname.c (set_program_name): Don't strip off a leading
20598         "lt-" prefix outside a .libs directory.
20599         Suggested by Paul Eggert.
20600
20601 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
20602             Bruno Haible  <bruno@clisp.org>
20603
20604         Improve memory cleanup in 'relocatable' module.
20605         * lib/relocatable.h (compute_curr_prefix): Change return type to
20606         'char *'.
20607         * lib/relocatable.c (compute_curr_prefix): Change return type to
20608         'char *'. Free curr_installdir after use.
20609         (relocate): Free curr_prefix_better after use.
20610         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
20611
20612 2008-01-01  Bruno Haible  <bruno@clisp.org>
20613
20614         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
20615         failure on older glibc systems.
20616         Reported by Peter Fales <psfales@alcatel-lucent.com>.
20617
20618 2008-01-05  Eric Blake  <ebb9@byu.net>
20619
20620         Avoid quadratic system memmem.
20621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
20622         Reported by Ralf Wildenhues.
20623
20624         Fix memmem test for mingw.
20625         * modules/memmem-tests (configure.ac): Check for alarm.
20626         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
20627         it.
20628         * doc/functions/memmem.texi: New file.
20629         * doc/gnulib.texi (Function Substitutes): Add memmem.
20630         Reported by Bruno Haible.
20631
20632 2008-01-04  Bruno Haible  <bruno@clisp.org>
20633
20634         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
20635         Require gl_HEADER_STRINGS_H_DEFAULTS, not
20636         gl_HEADER_STRING_H_DEFAULTS.
20637
20638 2008-01-04  Eric Blake  <ebb9@byu.net>
20639
20640         Shorten duration of memmem test.
20641         * tests/test-memmem.c (main): Use alarm to declare failure if test
20642         is taking too long.
20643         Reported by Ralf Wildenhues.
20644
20645 2007-12-21  Simon Josefsson  <simon@josefsson.org>
20646
20647         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
20648         string, needed by strerror.
20649
20650 2008-01-03  Colin Watson  <cjwatson@debian.org>
20651             Bruno Haible  <bruno@clisp.org>
20652
20653         * doc/gnulib-tool.texi (Localization): New section.
20654
20655 2008-01-02  Bruno Haible  <bruno@clisp.org>
20656
20657         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
20658         variables to 'unsigned char *' type.
20659         Reported by Paul Eggert.
20660
20661 2008-01-02  Jim Meyering  <jim@meyering.net>
20662
20663         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
20664
20665 2007-12-31  Jim Meyering  <jim@meyering.net>
20666
20667         Avoid use of private FTS type name.
20668         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
20669
20670 2007-12-30  Karl Berry  <karl@gnu.org>
20671
20672         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
20673         work around defect in Texinfo and/or the standalone Info browser.
20674
20675 2007-12-30  Bruno Haible  <bruno@clisp.org>
20676
20677         Unify 5 copies of the KMP code.
20678         * lib/str-kmp.h: New file.
20679         * lib/c-strcasestr.c: Include str-kmp.h.
20680         (knuth_morris_pratt): Remove function.
20681         (c_strcasestr): Update.
20682         * lib/c-strstr.c: Include str-kmp.h.
20683         (knuth_morris_pratt): Remove function.
20684         (c_strcasestr): Update.
20685         * lib/mbscasestr.c: Include str-kmp.h.
20686         (knuth_morris_pratt_unibyte): Remove function.
20687         * lib/mbsstr.c: Include str-kmp.h.
20688         (knuth_morris_pratt_unibyte): Remove function.
20689         * lib/strcasestr.c: Include str-kmp.h.
20690         (knuth_morris_pratt): Remove function.
20691         (strcasestr): Update.
20692         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
20693         * modules/c-strstr (Files): Likewise.
20694         * modules/mbscasestr (Files): Likewise.
20695         * modules/mbsstr (Files): Likewise.
20696         * modules/strcasestr (Files): Likewise.
20697         Suggested by Paul Eggert.
20698
20699 2007-12-30  Bruno Haible  <bruno@clisp.org>
20700
20701         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
20702         defined.
20703
20704 2007-12-30  Bruno Haible  <bruno@clisp.org>
20705
20706         * lib/xmalloca.h: Include xalloc.h.
20707         (xnmalloca): New macro.
20708
20709 2007-12-30  Bruno Haible  <bruno@clisp.org>
20710
20711         * lib/malloca.h (nmalloca): New macro.
20712         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
20713         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
20714         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
20715         knuth_morris_pratt_multibyte): Likewise.
20716         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
20717         knuth_morris_pratt_multibyte): Likewise.
20718         * lib/memmem.c (knuth_morris_pratt): Likewise.
20719         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
20720
20721 2007-12-25  Bruno Haible  <bruno@clisp.org>
20722
20723         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
20724         * lib/glob.c: Don't include openat.h.
20725         (link_exists2_p): Add back the code that deals with the
20726         !GLOB_ALTDIRFUNC case.
20727         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
20728         let it do the filename concatenation.
20729         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
20730         * modules/glob (Depends-on): Remove openat.
20731
20732 2007-12-31  Bruno Haible  <bruno@clisp.org>
20733
20734         * modules/dirfd (License): Change to LGPLv2+.
20735         Approved by Jim Meyering.
20736
20737 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20738
20739         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
20740         when multiplying M by sizeof (size_t).
20741
20742 2007-12-10  Martin Lambers  <marlam@marlam.de>
20743
20744         Override getpagesize on mingw.
20745         * lib/getpagesize.c: New file.
20746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
20747         * modules/getpagesize (Files): Add lib/getpagesize.c.
20748         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
20749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20750         REPLACE_GETPAGESIZE.
20751         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
20752
20753 2007-12-25  Bruno Haible  <bruno@clisp.org>
20754
20755         * modules/localcharset (Notice): New field.
20756         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
20757         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20758
20759 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20760             Bruno Haible  <bruno@clisp.org>
20761
20762         Avoid using the syntax symbol() in formatted documentation.
20763         * MODULES.html.sh (func_module): When replacing symbol() with a
20764         hyperlink, remove the parentheses. Show an error if some remain.
20765         Recognize and render the '...' syntax.
20766         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
20767         Rework. Add paragraph about GCC's inlining.
20768         * doc/alloca.texi: Likewise.
20769         * doc/error.texi: Remove parentheses from symbol reference.
20770         * doc/gnulib-intro.texi: Likewise.
20771         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
20772         * modules/fnmatch (Description): Reword to say "the ... function".
20773         * modules/full-read (Description): Likewise.
20774         * modules/full-write (Description): Likewise.
20775         * modules/safe-read (Description): Likewise.
20776         * modules/safe-write (Description): Likewise.
20777         * modules/strchrnul (Description): Likewise.
20778         * modules/trim (Description): Likewise.
20779         * modules/error (Description): Remove parentheses from symbol
20780         references.
20781         * modules/verror (Description): Likewise.
20782         Reported by Karl Berry.
20783
20784 2007-12-25  Bruno Haible  <bruno@clisp.org>
20785
20786         Fixup after 2007-10-16 commit.
20787         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
20788
20789 2007-12-24  Bruno Haible  <bruno@clisp.org>
20790
20791         Make --enable-relocatable work with DESTDIR.
20792         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
20793         to compute installdir from destprog.
20794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
20795         also set the RELOC_DESTDIR variable.
20796         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
20797
20798 2007-12-24  Bruno Haible  <bruno@clisp.org>
20799
20800         Fix link error due to xalloc_die().
20801         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
20802         of xreadlink.
20803         * lib/relocwrapper.c: Update comments.
20804         * build-aux/install-reloc: Remove xreadlink.c from file list.
20805         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
20806         xreadlink.c.
20807         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
20808
20809 2007-12-24  Bruno Haible  <bruno@clisp.org>
20810
20811         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
20812         * lib/setenv.h: Remove file.
20813         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
20814         lib/setenv.h.
20815         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
20816         (Depends-on): Add stdlib.
20817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
20818         gl_FUNC_UNSETENV.
20819         (Include): Replace setenv.h with <stdlib.h>.
20820         * modules/unsetenv: New file.
20821         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
20822         * lib/unsetenv.c: Include <stdlib.h> first.
20823         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
20824         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
20825         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
20826         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
20827         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
20828         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
20829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
20830         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
20831         * doc/functions/unsetenv.texi: Update.
20832         * modules/xsetenv (Depends-on): Add unsetenv.
20833         * modules/getdate (Depends-on): Likewise.
20834         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
20835         * lib/xsetenv.c: Don't include setenv.h.
20836         * lib/getdate.y: Likewise.
20837         * lib/relocwrapper.c: Likewise.
20838         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
20839         (Depends-on): Add stdlib.
20840         * NEWS: Mention the changes.
20841         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
20842
20843 2007-12-23  Bruno Haible  <bruno@clisp.org>
20844
20845         * lib/memmem.c (memmem): Use lowercase variable names. Tab
20846         indentation.
20847
20848 2007-12-23  Bruno Haible  <bruno@clisp.org>
20849
20850         * lib/c-strcasestr.c: Add more comments.
20851         * lib/c-strstr.c: Likewise.
20852         * lib/mbscasestr.c: Likewise.
20853         * lib/mbsstr.c: Likewise.
20854         * lib/strcasestr.c: Likewise.
20855         * lib/memmem.c: Likewise.
20856
20857 2007-12-23  Bruno Haible  <bruno@clisp.org>
20858
20859         * tests/test-memmem.c: Include <string.h> first.
20860
20861 2007-12-22  Bruno Haible  <bruno@clisp.org>
20862
20863         * gnulib-tool (func_create_testdir): Change $auxdir while generating
20864         the contents of $testsbase.
20865         Reported by Ralf Wildenhues.
20866
20867 2007-12-22  Bruno Haible  <bruno@clisp.org>
20868
20869         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
20870         two variables local_ldadd_before, local_ldadd_last.
20871
20872 2007-12-20  Eric Blake  <ebb9@byu.net>
20873
20874         Work around circular library issue when cross-compiling.
20875         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
20876         that progname.o does not need to pull in rpl_memcmp.
20877
20878 2007-12-19  Eric Blake  <ebb9@byu.net>
20879
20880         Fix memmem to avoid O(n^2) worst-case complexity.
20881         * lib/memmem.c (knuth_morris_pratt): New function.
20882         (memmem): Use it if first few naive iterations fail.
20883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
20884         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
20885         * modules/memchr (License): Likewise.
20886         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
20887         malloca.
20888         * tests/test-memmem.c: Rewrite, borrowing ideas from
20889         test-mbsstr1.c; the old version wouldn't even compile!
20890         * modules/memmem-tests: New file.
20891         * lib/string.in.h (rpl_memmem): Add declaration.
20892         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
20893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
20894         REPLACE_MEMMEM.
20895
20896 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
20899         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
20900         before any system include files, and undef after them all.  This
20901         should fix a problem on VMS reported by John E. Malmberg in
20902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
20903
20904 2007-12-17  Eric Blake  <ebb9@byu.net>
20905
20906         Revert addition of verify, for BSD/OS.
20907         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
20908         can't handle large files, for the sake of obsolete platforms.
20909         * modules/fseeko (Depends-on): Remove verify.
20910         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
20911         * doc/functions/ftello.texi (ftello): Likewise.
20912         * doc/functions/fgetpos.texi (fgetpos): Likewise.
20913         Reported by Larry Jones.
20914
20915 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
20916
20917         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
20918         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
20919
20920 2007-12-17  Jim Meyering  <meyering@redhat.com>
20921
20922         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
20923         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
20924         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
20925         * modules/getcwd (Depends-on): Add openat.
20926         Reported by Petr Salinger.
20927
20928 2007-12-17  Bruno Haible  <bruno@clisp.org>
20929
20930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
20931         avoid a segmentation fault of the configure test on x86_64 systems.
20932
20933 2007-12-15  Jim Meyering  <meyering@redhat.com>
20934
20935         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
20936
20937 2007-12-13  Eric Blake  <ebb9@byu.net>
20938
20939         Another fseek test.
20940         * tests/test-fseek.c (main): Also test ungetc handling.
20941         * tests/test-fseeko.c (main): Likewise.
20942         * modules/fseeko (Depends-on): Add verify.
20943         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
20944         large.
20945         Reported by Larry Jones.
20946
20947         Fix fseeko on mingw.
20948         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
20949         seek.
20950
20951         Beef up fseek tests.
20952         * tests/test-fseek.c (main): Also test eof handling.
20953         * tests/test-fseeko.c (main): Likewise.
20954         Reported by Larry Jones.
20955
20956 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
20957
20958         Fix fseeko on BSD-based platforms.
20959         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
20960         successful seek.
20961
20962 2007-12-12  Eric Blake  <ebb9@byu.net>
20963
20964         Allow circular dependency of separate libtests.a
20965         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
20966         when use_libtests.
20967
20968 2007-12-11  Eric Blake  <ebb9@byu.net>
20969
20970         Fix bug with -0.0L in previous patch.
20971         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
20972         * tests/test-isnan.c (main): Also test on zeroes.
20973         * tests/test-isnanf.c (main): Likewise.
20974         * tests/test-isnanl.h (main): Likewise.
20975
20976         Detect pseudo-denormals on x86 even when cross-compiling.
20977         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
20978         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
20979         invalid bit patterns that happen to satisfy ==.
20980
20981         Avoid link failures with separate libtests.a.
20982         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
20983         last, to satisfy circular dependencies.
20984
20985 2007-12-11  Eric Blake  <ebb9@byu.net>
20986         and Bruno Haible  <bruno@clisp.org>
20987
20988         Fix OpenBSD 4.0 <float.h> handling of long double.
20989         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
20990         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
20991         * doc/headers/float.texi (float.h): Document OpenBSD bug.
20992
20993 2007-12-11  Jim Meyering  <meyering@redhat.com>
20994
20995         * users.txt: Add libvirt.
20996
20997         Support versions of autoconf prior to 2.59c.
20998         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
20999         if it is not already defined.
21000
21001 2007-12-09  Bruno Haible  <bruno@clisp.org>
21002
21003         Let 'gnulib-tool --import' collect sources needed for the tests in
21004         tests/ rather than in lib/.
21005         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
21006         argument. If true, add rules to generate libtests.a, and put libtests.a
21007         into $(LDADD). Consider source files in subdirectories and set
21008         uses_subdirs.
21009         (func_emit_initmacro_start, func_emit_initmacro_end,
21010         func_emit_initmacro_done): Pass all arguments explicitly.
21011         (func_import): Determine two module lists main_modules,
21012         testsrelated_modules. Determine use_libtests. Determine two variables
21013         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
21014         instead of just sed_transform_lib_file. Determine two variables
21015         main_files and testsrelated_files. Compute 'files' as the union of
21016         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
21017         func_add_or_update. In the generated gnulib-comp.m4, collect the
21018         object files for tests/ in different variables than those for lib/.
21019         Substitute LIBTESTS_LIBDEPS.
21020         (func_create_testdir): Combine the uses_subdirs results from
21021         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
21022
21023 2007-12-09  Bruno Haible  <bruno@clisp.org>
21024
21025         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
21026         the build-aux directory.
21027
21028 2007-12-09  Bruno Haible  <bruno@clisp.org>
21029
21030         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
21031         introduced on 2006-09-09.
21032
21033 2007-12-07  Jim Meyering  <meyering@redhat.com>
21034
21035         Let these macros work also with autoconf-2.59.
21036         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
21037         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
21038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21039
21040 2007-12-06  Jim Meyering  <meyering@redhat.com>
21041
21042         Avoid a configure-time syntax error in gl_FUNC_ACL.
21043         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
21044         function in each branch, before testing the cache variable.
21045
21046 2007-12-04  Eric Blake  <ebb9@byu.net>
21047
21048         Make scripts executable.
21049         * build-aux/config.guess: Add execute permissions.
21050         * build-aux/config.sub: Likewise.
21051         * build-aux/gendocs.sh: Likewise.
21052
21053         Fix frexp on mingw.
21054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
21055         cross-compiling.
21056         * doc/functions/frexp.texi (frexp): Document the bug.
21057
21058         Make cygwin fseeko check more reliable.
21059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
21060         version numbers, rather than unrelated feature check.
21061         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
21062         * doc/functions/ftello.texi (ftello): Likewise.
21063         Reported by Bruno Haible.
21064
21065         * m4/strerror.m4: Bump version number.
21066
21067 2007-12-03  Bruno Haible  <bruno@clisp.org>
21068
21069         * doc/functions/mprotect.texi: Mention the mingw problem.
21070
21071 2007-12-03  Eric Blake  <ebb9@byu.net>
21072
21073         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
21074         REPLACE_STRERROR is initialized before this macro.
21075
21076 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
21079         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
21080         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
21081         put -lsec in even for programs other than 'ls'.  This fixes a problem
21082         for gettext reported by Bruno Haible in
21083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
21084         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
21085         Add support for Solaris 10.  This isn't efficient, but should get the
21086         job done for now.
21087
21088 2007-12-03  James Youngman  <jay@gnu.org>
21089
21090         * doc/regexprops-generic.texi: change "an close-group" to "a
21091         close-group" and "illegal" to "not allowed".
21092
21093 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21094
21095         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
21096         pr_byname.h. Needed for the rare case when the maintainer has done
21097         "make maintainer-clean" in the source directory and then attempts a
21098         build outside the source directory.
21099         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
21100         scripts_byname.h.
21101
21102 2007-12-02  Martin Lambers <marlam@marlam.de>
21103             Bruno Haible  <bruno@clisp.org>
21104
21105         * lib/getpagesize.h: Remove file.
21106         * lib/unistd.in.h: Include declaration of getpagesize here.
21107         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
21108         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
21109         HAVE_SYS_PARAM_H.
21110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
21111         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
21112         * modules/getpagesize (Files): Remove lib/getpagesize.h.
21113         (Depends-on): Add unistd.
21114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21115         (Include): Use <unistd.h> instead of getpagesize.h.
21116         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
21117         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
21118         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
21119         gl_GETPAGESIZE invocation, already handled by module dependency.
21120         * lib/pagealign_alloc.c: Don't include getpagesize.h.
21121
21122 2007-12-02  Bruno Haible  <bruno@clisp.org>
21123
21124         * modules/strings-tests: New file.
21125         * tests/test-strings.c: New file.
21126
21127         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
21128         * lib/strings.in.h: New file.
21129         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
21130         * m4/strings_h.m4: New file.
21131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
21132         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
21133         * modules/strings: New file.
21134         * modules/string (Makefile.am): Update.
21135         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
21136         Reported by Karl Berry.
21137
21138 2007-12-01  Eric Blake  <ebb9@byu.net>
21139
21140         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
21141         accomodate fix in cygwin 1.5.25.
21142
21143 2007-12-01  Jim Meyering  <meyering@redhat.com>
21144
21145         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
21146         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
21147         that would inhibit utf8-optimization of a regexp containing line-
21148         or buffer-anchors, e.g., `^', `$'.
21149
21150 2007-11-30  Bruno Haible  <bruno@clisp.org>
21151
21152         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
21153         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
21154         glthread_recursive_lock_init.
21155         * lib/lock.c (glthread_recursive_lock_init)
21156         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
21157         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21158
21159 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21160
21161         New function qset_acl, like set_acl but with syscall semantics.
21162         * lib/acl.h (qset_acl): New decl.
21163         * lib/acl.c (qset_acl): New function.
21164         (set_acl): Use new function.  Use more-consistent diagnostics.
21165
21166 2007-11-28  Jim Meyering  <meyering@redhat.com>
21167
21168         * modules/physmem (License): Change from GPL to LGPLv2+.
21169
21170 2007-11-26  Bruno Haible  <bruno@clisp.org>
21171
21172         * lib/vasnprintf.c (decode_long_double): Don't abort if the
21173         'long double' type has excess precision.
21174         Reported by Jim Meyering in
21175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
21176
21177 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21178
21179         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
21180         Sync from <http://gnu.org/licenses>.
21181         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
21182         with license text from same location.
21183         * doc/maintain.texi, doc/standards.texi:  Sync from
21184         <http://savannah.gnu.org/projects/gnustandards>.
21185
21186 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
21187         and Jim Meyering  <meyering@redhat.com>
21188
21189         Adjust getdate' grammar to accept a slightly more regular language.
21190         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
21191         Before, the former was rejected.
21192         * lib/getdate.y (digits_to_date_time): New function, factored
21193         out of ...
21194         (number): ...here.  Just call digits_to_date_time.
21195         (hybrid): New non-terminal to handle an <unsigned number,
21196         signed relative offset> sequence consistently.
21197
21198 2007-11-18  Jim Meyering  <meyering@redhat.com>
21199
21200         Pull my changes from coreutils:
21201         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
21202         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
21203         use of $gnulib_tool_option_extras, so that it's separated from the
21204         preceding argument.
21205
21206         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
21207         * build-aux/bootstrap (cp_mark_as_generated): Create any required
21208         parent destination directories before copying a file into place.
21209
21210 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21211
21212         bootstrap: work also with 4-argument variant of AC_INIT
21213         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
21214
21215 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21216
21217         Port test-getaddrinfo to Solaris.
21218         Problem reported by Bruno Haible in
21219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
21220         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
21221         explanation of setting 'hints'.
21222         Don't reject an implementation merely because it returns EAI_SERVICE.
21223         (EAI_SERVICE): Define to 0 if not defined.
21224
21225 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         The license of gnu-make and posix-shell is now "GPLed build tool".
21228         * modules/gnu-make (License): Likewise.
21229         * modules/posix-shell (License): Likewise.
21230
21231         New module posix-shell, for determining a POSIX shell
21232         or perhaps something that is close enough to a POSIX shell.
21233         * m4/posix-shell.m4: New file.
21234         * modules/posix-shell: New file.
21235
21236         * MODULES.html.sh: Mention new module.
21237
21238         New module gnu-make, for determining whether we're using GNU Make.
21239         * m4/gnu-make.m4: New file.
21240         * modules/gnu-make: New file.
21241         * MODULES.html.sh: Mention new module.
21242
21243 2007-11-14  Jim Meyering  <meyering@redhat.com>
21244
21245         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
21246         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
21247         use this macro to create a function _definition_.
21248         Remove useless "#undef ARGMATCH_DIE".
21249
21250 2007-11-14  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/config.charset: Update for OpenBSD 4.1.
21253         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
21254
21255 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
21256
21257         Document 64-bit #if problems in stdint.texi.
21258         * doc/headers/stdint.texi (stdint.h): Mention problems with
21259         64-bit-#if, and how to work around them.
21260
21261         Don't insist on 'long long int' support in the preprocessor.  It
21262         breaks too many things.  For example, PRIdMAX still uses a 'long
21263         long int' format with the latest Sun compiler, even though
21264         HAVE_LONG_LONG_INT isn't defined due to that compiler's
21265         preprocessor problem.  This causes the latest coreutils to dump
21266         core on Solaris 10 sparc with the Sun C compiler.
21267         Instead, fix the 2007-10-16 problem in a different way, by evaluating
21268         the troublesome expressions at configure-time, not at #if-time.
21269         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
21270         preprocessor.
21271         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
21272         compile-time C checks, done at 'configure'-time.
21273         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
21274         * modules/inttypes (Makefile): Substitute the new symbols that
21275         gl_INTTYPES_H now generates.
21276         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
21277
21278 2007-11-12  Bruno Haible  <bruno@clisp.org>
21279
21280         Tests for Unicode character classification functions.
21281
21282         * modules/unictype/bidicategory-byname-tests: New file.
21283         * modules/unictype/bidicategory-name-tests: New file.
21284         * modules/unictype/bidicategory-of-tests: New file.
21285         * modules/unictype/bidicategory-test-tests: New file.
21286         * modules/unictype/block-list-tests: New file.
21287         * modules/unictype/block-of-tests: New file.
21288         * modules/unictype/block-test-tests: New file.
21289         * modules/unictype/category-C-tests: New file.
21290         * modules/unictype/category-Cc-tests: New file.
21291         * modules/unictype/category-Cf-tests: New file.
21292         * modules/unictype/category-Cn-tests: New file.
21293         * modules/unictype/category-Co-tests: New file.
21294         * modules/unictype/category-Cs-tests: New file.
21295         * modules/unictype/category-L-tests: New file.
21296         * modules/unictype/category-Ll-tests: New file.
21297         * modules/unictype/category-Lm-tests: New file.
21298         * modules/unictype/category-Lo-tests: New file.
21299         * modules/unictype/category-Lt-tests: New file.
21300         * modules/unictype/category-Lu-tests: New file.
21301         * modules/unictype/category-M-tests: New file.
21302         * modules/unictype/category-Mc-tests: New file.
21303         * modules/unictype/category-Me-tests: New file.
21304         * modules/unictype/category-Mn-tests: New file.
21305         * modules/unictype/category-N-tests: New file.
21306         * modules/unictype/category-Nd-tests: New file.
21307         * modules/unictype/category-Nl-tests: New file.
21308         * modules/unictype/category-No-tests: New file.
21309         * modules/unictype/category-P-tests: New file.
21310         * modules/unictype/category-Pc-tests: New file.
21311         * modules/unictype/category-Pd-tests: New file.
21312         * modules/unictype/category-Pe-tests: New file.
21313         * modules/unictype/category-Pf-tests: New file.
21314         * modules/unictype/category-Pi-tests: New file.
21315         * modules/unictype/category-Po-tests: New file.
21316         * modules/unictype/category-Ps-tests: New file.
21317         * modules/unictype/category-S-tests: New file.
21318         * modules/unictype/category-Sc-tests: New file.
21319         * modules/unictype/category-Sk-tests: New file.
21320         * modules/unictype/category-Sm-tests: New file.
21321         * modules/unictype/category-So-tests: New file.
21322         * modules/unictype/category-Z-tests: New file.
21323         * modules/unictype/category-Zl-tests: New file.
21324         * modules/unictype/category-Zp-tests: New file.
21325         * modules/unictype/category-Zs-tests: New file.
21326         * modules/unictype/category-and-not-tests: New file.
21327         * modules/unictype/category-and-tests: New file.
21328         * modules/unictype/category-byname-tests: New file.
21329         * modules/unictype/category-name-tests: New file.
21330         * modules/unictype/category-none-tests: New file.
21331         * modules/unictype/category-of-tests: New file.
21332         * modules/unictype/category-or-tests: New file.
21333         * modules/unictype/category-test-withtable-tests: New file.
21334         * modules/unictype/combining-class-tests: New file.
21335         * modules/unictype/ctype-alnum-tests: New file.
21336         * modules/unictype/ctype-alpha-tests: New file.
21337         * modules/unictype/ctype-blank-tests: New file.
21338         * modules/unictype/ctype-cntrl-tests: New file.
21339         * modules/unictype/ctype-digit-tests: New file.
21340         * modules/unictype/ctype-graph-tests: New file.
21341         * modules/unictype/ctype-lower-tests: New file.
21342         * modules/unictype/ctype-print-tests: New file.
21343         * modules/unictype/ctype-punct-tests: New file.
21344         * modules/unictype/ctype-space-tests: New file.
21345         * modules/unictype/ctype-upper-tests: New file.
21346         * modules/unictype/ctype-xdigit-tests: New file.
21347         * modules/unictype/decimal-digit-tests: New file.
21348         * modules/unictype/digit-tests: New file.
21349         * modules/unictype/mirror-tests: New file.
21350         * modules/unictype/numeric-tests: New file.
21351         * modules/unictype/property-alphabetic-tests: New file.
21352         * modules/unictype/property-ascii-hex-digit-tests: New file.
21353         * modules/unictype/property-bidi-arabic-digit-tests: New file.
21354         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
21355         * modules/unictype/property-bidi-block-separator-tests: New file.
21356         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
21357         * modules/unictype/property-bidi-common-separator-tests: New file.
21358         * modules/unictype/property-bidi-control-tests: New file.
21359         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
21360         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
21361         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
21362         * modules/unictype/property-bidi-european-digit-tests: New file.
21363         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
21364         * modules/unictype/property-bidi-left-to-right-tests: New file.
21365         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
21366         * modules/unictype/property-bidi-other-neutral-tests: New file.
21367         * modules/unictype/property-bidi-pdf-tests: New file.
21368         * modules/unictype/property-bidi-segment-separator-tests: New file.
21369         * modules/unictype/property-bidi-whitespace-tests: New file.
21370         * modules/unictype/property-byname-tests: New file.
21371         * modules/unictype/property-combining-tests: New file.
21372         * modules/unictype/property-composite-tests: New file.
21373         * modules/unictype/property-currency-symbol-tests: New file.
21374         * modules/unictype/property-dash-tests: New file.
21375         * modules/unictype/property-decimal-digit-tests: New file.
21376         * modules/unictype/property-default-ignorable-code-point-tests: New file.
21377         * modules/unictype/property-deprecated-tests: New file.
21378         * modules/unictype/property-diacritic-tests: New file.
21379         * modules/unictype/property-extender-tests: New file.
21380         * modules/unictype/property-format-control-tests: New file.
21381         * modules/unictype/property-grapheme-base-tests: New file.
21382         * modules/unictype/property-grapheme-extend-tests: New file.
21383         * modules/unictype/property-grapheme-link-tests: New file.
21384         * modules/unictype/property-hex-digit-tests: New file.
21385         * modules/unictype/property-hyphen-tests: New file.
21386         * modules/unictype/property-id-continue-tests: New file.
21387         * modules/unictype/property-id-start-tests: New file.
21388         * modules/unictype/property-ideographic-tests: New file.
21389         * modules/unictype/property-ids-binary-operator-tests: New file.
21390         * modules/unictype/property-ids-trinary-operator-tests: New file.
21391         * modules/unictype/property-ignorable-control-tests: New file.
21392         * modules/unictype/property-iso-control-tests: New file.
21393         * modules/unictype/property-join-control-tests: New file.
21394         * modules/unictype/property-left-of-pair-tests: New file.
21395         * modules/unictype/property-line-separator-tests: New file.
21396         * modules/unictype/property-logical-order-exception-tests: New file.
21397         * modules/unictype/property-lowercase-tests: New file.
21398         * modules/unictype/property-math-tests: New file.
21399         * modules/unictype/property-non-break-tests: New file.
21400         * modules/unictype/property-not-a-character-tests: New file.
21401         * modules/unictype/property-numeric-tests: New file.
21402         * modules/unictype/property-other-alphabetic-tests: New file.
21403         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
21404         * modules/unictype/property-other-grapheme-extend-tests: New file.
21405         * modules/unictype/property-other-id-continue-tests: New file.
21406         * modules/unictype/property-other-id-start-tests: New file.
21407         * modules/unictype/property-other-lowercase-tests: New file.
21408         * modules/unictype/property-other-math-tests: New file.
21409         * modules/unictype/property-other-uppercase-tests: New file.
21410         * modules/unictype/property-paired-punctuation-tests: New file.
21411         * modules/unictype/property-paragraph-separator-tests: New file.
21412         * modules/unictype/property-pattern-syntax-tests: New file.
21413         * modules/unictype/property-pattern-white-space-tests: New file.
21414         * modules/unictype/property-private-use-tests: New file.
21415         * modules/unictype/property-punctuation-tests: New file.
21416         * modules/unictype/property-quotation-mark-tests: New file.
21417         * modules/unictype/property-radical-tests: New file.
21418         * modules/unictype/property-sentence-terminal-tests: New file.
21419         * modules/unictype/property-soft-dotted-tests: New file.
21420         * modules/unictype/property-space-tests: New file.
21421         * modules/unictype/property-terminal-punctuation-tests: New file.
21422         * modules/unictype/property-test-tests: New file.
21423         * modules/unictype/property-titlecase-tests: New file.
21424         * modules/unictype/property-unassigned-code-value-tests: New file.
21425         * modules/unictype/property-unified-ideograph-tests: New file.
21426         * modules/unictype/property-uppercase-tests: New file.
21427         * modules/unictype/property-variation-selector-tests: New file.
21428         * modules/unictype/property-white-space-tests: New file.
21429         * modules/unictype/property-xid-continue-tests: New file.
21430         * modules/unictype/property-xid-start-tests: New file.
21431         * modules/unictype/property-zero-width-tests: New file.
21432         * modules/unictype/scripts-tests: New file.
21433         * modules/unictype/syntax-c-ident-tests: New file.
21434         * modules/unictype/syntax-c-whitespace-tests: New file.
21435         * modules/unictype/syntax-java-ident-tests: New file.
21436         * modules/unictype/syntax-java-whitespace-tests: New file.
21437         * tests/unictype/test-bidi_byname.c: New file.
21438         * tests/unictype/test-bidi_name.c: New file.
21439         * tests/unictype/test-bidi_of.c: New file.
21440         * tests/unictype/test-bidi_test.c: New file.
21441         * tests/unictype/test-block_list.c: New file.
21442         * tests/unictype/test-block_of.c: New file.
21443         * tests/unictype/test-block_test.c: New file.
21444         * tests/unictype/test-categ_and.c: New file.
21445         * tests/unictype/test-categ_and_not.c: New file.
21446         * tests/unictype/test-categ_byname.c: New file.
21447         * tests/unictype/test-categ_name.c: New file.
21448         * tests/unictype/test-categ_none.c: New file.
21449         * tests/unictype/test-categ_of.c: New file.
21450         * tests/unictype/test-categ_or.c: New file.
21451         * tests/unictype/test-categ_test_withtable.c: New file.
21452         * tests/unictype/test-combining.c: New file.
21453         * tests/unictype/test-decdigit.c: New file.
21454         * tests/unictype/test-digit.c: New file.
21455         * tests/unictype/test-mirror.c: New file.
21456         * tests/unictype/test-numeric.c: New file.
21457         * tests/unictype/test-pr_byname.c: New file.
21458         * tests/unictype/test-pr_test.c: New file.
21459         * tests/unictype/test-predicate-part1.h: New file.
21460         * tests/unictype/test-predicate-part2.h: New file.
21461         * tests/unictype/test-scripts.c: New file.
21462         * tests/unictype/test-sy_c_ident.c: New file.
21463         * tests/unictype/test-sy_java_ident.c: New file.
21464
21465         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
21466         for Unicode 5.0.0.
21467         * tests/unictype/test-categ_Cc.c: Likewise.
21468         * tests/unictype/test-categ_Cf.c: Likewise.
21469         * tests/unictype/test-categ_Cn.c: Likewise.
21470         * tests/unictype/test-categ_Co.c: Likewise.
21471         * tests/unictype/test-categ_Cs.c: Likewise.
21472         * tests/unictype/test-categ_L.c: Likewise.
21473         * tests/unictype/test-categ_Ll.c: Likewise.
21474         * tests/unictype/test-categ_Lm.c: Likewise.
21475         * tests/unictype/test-categ_Lo.c: Likewise.
21476         * tests/unictype/test-categ_Lt.c: Likewise.
21477         * tests/unictype/test-categ_Lu.c: Likewise.
21478         * tests/unictype/test-categ_M.c: Likewise.
21479         * tests/unictype/test-categ_Mc.c: Likewise.
21480         * tests/unictype/test-categ_Me.c: Likewise.
21481         * tests/unictype/test-categ_Mn.c: Likewise.
21482         * tests/unictype/test-categ_N.c: Likewise.
21483         * tests/unictype/test-categ_Nd.c: Likewise.
21484         * tests/unictype/test-categ_Nl.c: Likewise.
21485         * tests/unictype/test-categ_No.c: Likewise.
21486         * tests/unictype/test-categ_P.c: Likewise.
21487         * tests/unictype/test-categ_Pc.c: Likewise.
21488         * tests/unictype/test-categ_Pd.c: Likewise.
21489         * tests/unictype/test-categ_Pe.c: Likewise.
21490         * tests/unictype/test-categ_Pf.c: Likewise.
21491         * tests/unictype/test-categ_Pi.c: Likewise.
21492         * tests/unictype/test-categ_Po.c: Likewise.
21493         * tests/unictype/test-categ_Ps.c: Likewise.
21494         * tests/unictype/test-categ_S.c: Likewise.
21495         * tests/unictype/test-categ_Sc.c: Likewise.
21496         * tests/unictype/test-categ_Sk.c: Likewise.
21497         * tests/unictype/test-categ_Sm.c: Likewise.
21498         * tests/unictype/test-categ_So.c: Likewise.
21499         * tests/unictype/test-categ_Z.c: Likewise.
21500         * tests/unictype/test-categ_Zl.c: Likewise.
21501         * tests/unictype/test-categ_Zp.c: Likewise.
21502         * tests/unictype/test-categ_Zs.c: Likewise.
21503         * tests/unictype/test-ctype_alnum.c: Likewise.
21504         * tests/unictype/test-ctype_alpha.c: Likewise.
21505         * tests/unictype/test-ctype_blank.c: Likewise.
21506         * tests/unictype/test-ctype_cntrl.c: Likewise.
21507         * tests/unictype/test-ctype_digit.c: Likewise.
21508         * tests/unictype/test-ctype_graph.c: Likewise.
21509         * tests/unictype/test-ctype_lower.c: Likewise.
21510         * tests/unictype/test-ctype_print.c: Likewise.
21511         * tests/unictype/test-ctype_punct.c: Likewise.
21512         * tests/unictype/test-ctype_space.c: Likewise.
21513         * tests/unictype/test-ctype_upper.c: Likewise.
21514         * tests/unictype/test-ctype_xdigit.c: Likewise.
21515         * tests/unictype/test-decdigit.h: Likewise.
21516         * tests/unictype/test-digit.h: Likewise.
21517         * tests/unictype/test-numeric.h: Likewise.
21518         * tests/unictype/test-pr_alphabetic.c: Likewise.
21519         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
21520         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21521         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21522         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
21523         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21524         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
21525         * tests/unictype/test-pr_bidi_control.c: Likewise.
21526         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
21527         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
21528         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21529         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21530         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21531         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21532         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21533         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21534         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
21535         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
21536         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
21537         * tests/unictype/test-pr_combining.c: Likewise.
21538         * tests/unictype/test-pr_composite.c: Likewise.
21539         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21540         * tests/unictype/test-pr_dash.c: Likewise.
21541         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21542         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
21543         * tests/unictype/test-pr_deprecated.c: Likewise.
21544         * tests/unictype/test-pr_diacritic.c: Likewise.
21545         * tests/unictype/test-pr_extender.c: Likewise.
21546         * tests/unictype/test-pr_format_control.c: Likewise.
21547         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21548         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21549         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21550         * tests/unictype/test-pr_hex_digit.c: Likewise.
21551         * tests/unictype/test-pr_hyphen.c: Likewise.
21552         * tests/unictype/test-pr_id_continue.c: Likewise.
21553         * tests/unictype/test-pr_id_start.c: Likewise.
21554         * tests/unictype/test-pr_ideographic.c: Likewise.
21555         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
21556         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
21557         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21558         * tests/unictype/test-pr_iso_control.c: Likewise.
21559         * tests/unictype/test-pr_join_control.c: Likewise.
21560         * tests/unictype/test-pr_left_of_pair.c: Likewise.
21561         * tests/unictype/test-pr_line_separator.c: Likewise.
21562         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21563         * tests/unictype/test-pr_lowercase.c: Likewise.
21564         * tests/unictype/test-pr_math.c: Likewise.
21565         * tests/unictype/test-pr_non_break.c: Likewise.
21566         * tests/unictype/test-pr_not_a_character.c: Likewise.
21567         * tests/unictype/test-pr_numeric.c: Likewise.
21568         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21569         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
21570         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
21571         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21572         * tests/unictype/test-pr_other_id_start.c: Likewise.
21573         * tests/unictype/test-pr_other_lowercase.c: Likewise.
21574         * tests/unictype/test-pr_other_math.c: Likewise.
21575         * tests/unictype/test-pr_other_uppercase.c: Likewise.
21576         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
21577         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
21578         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
21579         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
21580         * tests/unictype/test-pr_private_use.c: Likewise.
21581         * tests/unictype/test-pr_punctuation.c: Likewise.
21582         * tests/unictype/test-pr_quotation_mark.c: Likewise.
21583         * tests/unictype/test-pr_radical.c: Likewise.
21584         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21585         * tests/unictype/test-pr_soft_dotted.c: Likewise.
21586         * tests/unictype/test-pr_space.c: Likewise.
21587         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21588         * tests/unictype/test-pr_titlecase.c: Likewise.
21589         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21590         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21591         * tests/unictype/test-pr_uppercase.c: Likewise.
21592         * tests/unictype/test-pr_variation_selector.c: Likewise.
21593         * tests/unictype/test-pr_white_space.c: Likewise.
21594         * tests/unictype/test-pr_xid_continue.c: Likewise.
21595         * tests/unictype/test-pr_xid_start.c: Likewise.
21596         * tests/unictype/test-pr_zero_width.c: Likewise.
21597         * tests/unictype/test-sy_c_whitespace.c: Likewise.
21598         * tests/unictype/test-sy_java_whitespace.c: Likewise.
21599
21600 2007-11-12  Bruno Haible  <bruno@clisp.org>
21601
21602         Unicode character classification functions.
21603         * lib/unictype.h: New file.
21604         * modules/unictype/base: New file.
21605         * modules/unictype/category-L: New file.
21606         * modules/unictype/category-Lu: New file.
21607         * modules/unictype/category-Ll: New file.
21608         * modules/unictype/category-Lt: New file.
21609         * modules/unictype/category-Lm: New file.
21610         * modules/unictype/category-Lo: New file.
21611         * modules/unictype/category-M: New file.
21612         * modules/unictype/category-Mn: New file.
21613         * modules/unictype/category-Mc: New file.
21614         * modules/unictype/category-Me: New file.
21615         * modules/unictype/category-N: New file.
21616         * modules/unictype/category-Nd: New file.
21617         * modules/unictype/category-Nl: New file.
21618         * modules/unictype/category-No: New file.
21619         * modules/unictype/category-P: New file.
21620         * modules/unictype/category-Pc: New file.
21621         * modules/unictype/category-Pd: New file.
21622         * modules/unictype/category-Ps: New file.
21623         * modules/unictype/category-Pe: New file.
21624         * modules/unictype/category-Pi: New file.
21625         * modules/unictype/category-Pf: New file.
21626         * modules/unictype/category-Po: New file.
21627         * modules/unictype/category-S: New file.
21628         * modules/unictype/category-Sm: New file.
21629         * modules/unictype/category-Sc: New file.
21630         * modules/unictype/category-Sk: New file.
21631         * modules/unictype/category-So: New file.
21632         * modules/unictype/category-Z: New file.
21633         * modules/unictype/category-Zs: New file.
21634         * modules/unictype/category-Zl: New file.
21635         * modules/unictype/category-Zp: New file.
21636         * modules/unictype/category-C: New file.
21637         * modules/unictype/category-Cc: New file.
21638         * modules/unictype/category-Cf: New file.
21639         * modules/unictype/category-Cs: New file.
21640         * modules/unictype/category-Co: New file.
21641         * modules/unictype/category-Cn: New file.
21642         * modules/unictype/category-or: New file.
21643         * modules/unictype/category-of: New file.
21644         * modules/unictype/category-test: New file.
21645         * modules/unictype/category-test-withtable: New file.
21646         * modules/unictype/category-byname: New file.
21647         * modules/unictype/category-none: New file.
21648         * modules/unictype/category-and: New file.
21649         * modules/unictype/category-and-not: New file.
21650         * modules/unictype/category-name: New file.
21651         * modules/unictype/combining-class: New file.
21652         * modules/unictype/category-all: New file.
21653         * modules/unictype/bidicategory-all: New file.
21654         * modules/unictype/bidicategory-byname: New file.
21655         * modules/unictype/bidicategory-name: New file.
21656         * modules/unictype/bidicategory-of: New file.
21657         * modules/unictype/bidicategory-test: New file.
21658         * modules/unictype/decimal-digit: New file.
21659         * modules/unictype/digit: New file.
21660         * modules/unictype/numeric: New file.
21661         * modules/unictype/mirror: New file.
21662         * modules/unictype/property-white-space: New file.
21663         * modules/unictype/property-alphabetic: New file.
21664         * modules/unictype/property-other-alphabetic: New file.
21665         * modules/unictype/property-not-a-character: New file.
21666         * modules/unictype/property-default-ignorable-code-point: New file.
21667         * modules/unictype/property-other-default-ignorable-code-point: New
21668         file.
21669         * modules/unictype/property-deprecated: New file.
21670         * modules/unictype/property-logical-order-exception: New file.
21671         * modules/unictype/property-variation-selector: New file.
21672         * modules/unictype/property-private-use: New file.
21673         * modules/unictype/property-unassigned-code-value: New file.
21674         * modules/unictype/property-uppercase: New file.
21675         * modules/unictype/property-other-uppercase: New file.
21676         * modules/unictype/property-lowercase: New file.
21677         * modules/unictype/property-other-lowercase: New file.
21678         * modules/unictype/property-titlecase: New file.
21679         * modules/unictype/property-soft-dotted: New file.
21680         * modules/unictype/property-id-start: New file.
21681         * modules/unictype/property-other-id-start: New file.
21682         * modules/unictype/property-id-continue: New file.
21683         * modules/unictype/property-other-id-continue: New file.
21684         * modules/unictype/property-xid-start: New file.
21685         * modules/unictype/property-xid-continue: New file.
21686         * modules/unictype/property-pattern-white-space: New file.
21687         * modules/unictype/property-pattern-syntax: New file.
21688         * modules/unictype/property-join-control: New file.
21689         * modules/unictype/property-grapheme-base: New file.
21690         * modules/unictype/property-grapheme-extend: New file.
21691         * modules/unictype/property-other-grapheme-extend: New file.
21692         * modules/unictype/property-grapheme-link: New file.
21693         * modules/unictype/property-bidi-control: New file.
21694         * modules/unictype/property-bidi-left-to-right: New file.
21695         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
21696         * modules/unictype/property-bidi-arabic-right-to-left: New file.
21697         * modules/unictype/property-bidi-european-digit: New file.
21698         * modules/unictype/property-bidi-eur-num-separator: New file.
21699         * modules/unictype/property-bidi-eur-num-terminator: New file.
21700         * modules/unictype/property-bidi-arabic-digit: New file.
21701         * modules/unictype/property-bidi-common-separator: New file.
21702         * modules/unictype/property-bidi-block-separator: New file.
21703         * modules/unictype/property-bidi-segment-separator: New file.
21704         * modules/unictype/property-bidi-whitespace: New file.
21705         * modules/unictype/property-bidi-non-spacing-mark: New file.
21706         * modules/unictype/property-bidi-boundary-neutral: New file.
21707         * modules/unictype/property-bidi-pdf: New file.
21708         * modules/unictype/property-bidi-embedding-or-override: New file.
21709         * modules/unictype/property-bidi-other-neutral: New file.
21710         * modules/unictype/property-hex-digit: New file.
21711         * modules/unictype/property-ascii-hex-digit: New file.
21712         * modules/unictype/property-ideographic: New file.
21713         * modules/unictype/property-unified-ideograph: New file.
21714         * modules/unictype/property-radical: New file.
21715         * modules/unictype/property-ids-binary-operator: New file.
21716         * modules/unictype/property-ids-trinary-operator: New file.
21717         * modules/unictype/property-zero-width: New file.
21718         * modules/unictype/property-space: New file.
21719         * modules/unictype/property-non-break: New file.
21720         * modules/unictype/property-iso-control: New file.
21721         * modules/unictype/property-format-control: New file.
21722         * modules/unictype/property-dash: New file.
21723         * modules/unictype/property-hyphen: New file.
21724         * modules/unictype/property-punctuation: New file.
21725         * modules/unictype/property-line-separator: New file.
21726         * modules/unictype/property-paragraph-separator: New file.
21727         * modules/unictype/property-quotation-mark: New file.
21728         * modules/unictype/property-sentence-terminal: New file.
21729         * modules/unictype/property-terminal-punctuation: New file.
21730         * modules/unictype/property-currency-symbol: New file.
21731         * modules/unictype/property-math: New file.
21732         * modules/unictype/property-other-math: New file.
21733         * modules/unictype/property-paired-punctuation: New file.
21734         * modules/unictype/property-left-of-pair: New file.
21735         * modules/unictype/property-combining: New file.
21736         * modules/unictype/property-composite: New file.
21737         * modules/unictype/property-decimal-digit: New file.
21738         * modules/unictype/property-numeric: New file.
21739         * modules/unictype/property-diacritic: New file.
21740         * modules/unictype/property-extender: New file.
21741         * modules/unictype/property-ignorable-control: New file.
21742         * modules/unictype/property-test: New file.
21743         * modules/unictype/property-byname: New file.
21744         * modules/unictype/property-all: New file.
21745         * modules/unictype/scripts: New file.
21746         * modules/unictype/scripts-all: New file.
21747         * modules/unictype/block-of: New file.
21748         * modules/unictype/block-test: New file.
21749         * modules/unictype/block-list: New file.
21750         * modules/unictype/block-all: New file.
21751         * modules/unictype/syntax-c-whitespace: New file.
21752         * modules/unictype/syntax-java-whitespace: New file.
21753         * modules/unictype/syntax-c-ident: New file.
21754         * modules/unictype/syntax-java-ident: New file.
21755         * modules/unictype/ctype-alnum: New file.
21756         * modules/unictype/ctype-alpha: New file.
21757         * modules/unictype/ctype-cntrl: New file.
21758         * modules/unictype/ctype-digit: New file.
21759         * modules/unictype/ctype-graph: New file.
21760         * modules/unictype/ctype-lower: New file.
21761         * modules/unictype/ctype-print: New file.
21762         * modules/unictype/ctype-punct: New file.
21763         * modules/unictype/ctype-space: New file.
21764         * modules/unictype/ctype-upper: New file.
21765         * modules/unictype/ctype-xdigit: New file.
21766         * modules/unictype/ctype-blank: New file.
21767         * lib/unictype/bidi_byname.c: New file.
21768         * lib/unictype/bidi_name.c: New file.
21769         * lib/unictype/bidi_of.c: New file.
21770         * lib/unictype/bidi_test.c: New file.
21771         * lib/unictype/bitmap.h: New file.
21772         * lib/unictype/block_test.c: New file.
21773         * lib/unictype/blocks.c: New file.
21774         * lib/unictype/categ_C.c: New file.
21775         * lib/unictype/categ_Cc.c: New file.
21776         * lib/unictype/categ_Cf.c: New file.
21777         * lib/unictype/categ_Cn.c: New file.
21778         * lib/unictype/categ_Co.c: New file.
21779         * lib/unictype/categ_Cs.c: New file.
21780         * lib/unictype/categ_L.c: New file.
21781         * lib/unictype/categ_Ll.c: New file.
21782         * lib/unictype/categ_Lm.c: New file.
21783         * lib/unictype/categ_Lo.c: New file.
21784         * lib/unictype/categ_Lt.c: New file.
21785         * lib/unictype/categ_Lu.c: New file.
21786         * lib/unictype/categ_M.c: New file.
21787         * lib/unictype/categ_Mc.c: New file.
21788         * lib/unictype/categ_Me.c: New file.
21789         * lib/unictype/categ_Mn.c: New file.
21790         * lib/unictype/categ_N.c: New file.
21791         * lib/unictype/categ_Nd.c: New file.
21792         * lib/unictype/categ_Nl.c: New file.
21793         * lib/unictype/categ_No.c: New file.
21794         * lib/unictype/categ_P.c: New file.
21795         * lib/unictype/categ_Pc.c: New file.
21796         * lib/unictype/categ_Pd.c: New file.
21797         * lib/unictype/categ_Pe.c: New file.
21798         * lib/unictype/categ_Pf.c: New file.
21799         * lib/unictype/categ_Pi.c: New file.
21800         * lib/unictype/categ_Po.c: New file.
21801         * lib/unictype/categ_Ps.c: New file.
21802         * lib/unictype/categ_S.c: New file.
21803         * lib/unictype/categ_Sc.c: New file.
21804         * lib/unictype/categ_Sk.c: New file.
21805         * lib/unictype/categ_Sm.c: New file.
21806         * lib/unictype/categ_So.c: New file.
21807         * lib/unictype/categ_Z.c: New file.
21808         * lib/unictype/categ_Zl.c: New file.
21809         * lib/unictype/categ_Zp.c: New file.
21810         * lib/unictype/categ_Zs.c: New file.
21811         * lib/unictype/categ_and.c: New file.
21812         * lib/unictype/categ_and_not.c: New file.
21813         * lib/unictype/categ_byname.c: New file.
21814         * lib/unictype/categ_name.c: New file.
21815         * lib/unictype/categ_none.c: New file.
21816         * lib/unictype/categ_of.c: New file.
21817         * lib/unictype/categ_or.c: New file.
21818         * lib/unictype/categ_test.c: New file.
21819         * lib/unictype/combining.c: New file.
21820         * lib/unictype/ctype_alnum.c: New file.
21821         * lib/unictype/ctype_alpha.c: New file.
21822         * lib/unictype/ctype_blank.c: New file.
21823         * lib/unictype/ctype_cntrl.c: New file.
21824         * lib/unictype/ctype_digit.c: New file.
21825         * lib/unictype/ctype_graph.c: New file.
21826         * lib/unictype/ctype_lower.c: New file.
21827         * lib/unictype/ctype_print.c: New file.
21828         * lib/unictype/ctype_punct.c: New file.
21829         * lib/unictype/ctype_space.c: New file.
21830         * lib/unictype/ctype_upper.c: New file.
21831         * lib/unictype/ctype_xdigit.c: New file.
21832         * lib/unictype/decdigit.c: New file.
21833         * lib/unictype/digit.c: New file.
21834         * lib/unictype/identsyntaxmap.h: New file.
21835         * lib/unictype/mirror.c: New file.
21836         * lib/unictype/numeric.c: New file.
21837         * lib/unictype/pr_alphabetic.c: New file.
21838         * lib/unictype/pr_ascii_hex_digit.c: New file.
21839         * lib/unictype/pr_bidi_arabic_digit.c: New file.
21840         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
21841         * lib/unictype/pr_bidi_block_separator.c: New file.
21842         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
21843         * lib/unictype/pr_bidi_common_separator.c: New file.
21844         * lib/unictype/pr_bidi_control.c: New file.
21845         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
21846         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
21847         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
21848         * lib/unictype/pr_bidi_european_digit.c: New file.
21849         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
21850         * lib/unictype/pr_bidi_left_to_right.c: New file.
21851         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
21852         * lib/unictype/pr_bidi_other_neutral.c: New file.
21853         * lib/unictype/pr_bidi_pdf.c: New file.
21854         * lib/unictype/pr_bidi_segment_separator.c: New file.
21855         * lib/unictype/pr_bidi_whitespace.c: New file.
21856         * lib/unictype/pr_byname.c: New file.
21857         * lib/unictype/pr_byname.gperf: New file.
21858         * lib/unictype/pr_combining.c: New file.
21859         * lib/unictype/pr_composite.c: New file.
21860         * lib/unictype/pr_currency_symbol.c: New file.
21861         * lib/unictype/pr_dash.c: New file.
21862         * lib/unictype/pr_decimal_digit.c: New file.
21863         * lib/unictype/pr_default_ignorable_code_point.c: New file.
21864         * lib/unictype/pr_deprecated.c: New file.
21865         * lib/unictype/pr_diacritic.c: New file.
21866         * lib/unictype/pr_extender.c: New file.
21867         * lib/unictype/pr_format_control.c: New file.
21868         * lib/unictype/pr_grapheme_base.c: New file.
21869         * lib/unictype/pr_grapheme_extend.c: New file.
21870         * lib/unictype/pr_grapheme_link.c: New file.
21871         * lib/unictype/pr_hex_digit.c: New file.
21872         * lib/unictype/pr_hyphen.c: New file.
21873         * lib/unictype/pr_id_continue.c: New file.
21874         * lib/unictype/pr_id_start.c: New file.
21875         * lib/unictype/pr_ideographic.c: New file.
21876         * lib/unictype/pr_ids_binary_operator.c: New file.
21877         * lib/unictype/pr_ids_trinary_operator.c: New file.
21878         * lib/unictype/pr_ignorable_control.c: New file.
21879         * lib/unictype/pr_iso_control.c: New file.
21880         * lib/unictype/pr_join_control.c: New file.
21881         * lib/unictype/pr_left_of_pair.c: New file.
21882         * lib/unictype/pr_line_separator.c: New file.
21883         * lib/unictype/pr_logical_order_exception.c: New file.
21884         * lib/unictype/pr_lowercase.c: New file.
21885         * lib/unictype/pr_math.c: New file.
21886         * lib/unictype/pr_non_break.c: New file.
21887         * lib/unictype/pr_not_a_character.c: New file.
21888         * lib/unictype/pr_numeric.c: New file.
21889         * lib/unictype/pr_other_alphabetic.c: New file.
21890         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
21891         * lib/unictype/pr_other_grapheme_extend.c: New file.
21892         * lib/unictype/pr_other_id_continue.c: New file.
21893         * lib/unictype/pr_other_id_start.c: New file.
21894         * lib/unictype/pr_other_lowercase.c: New file.
21895         * lib/unictype/pr_other_math.c: New file.
21896         * lib/unictype/pr_other_uppercase.c: New file.
21897         * lib/unictype/pr_paired_punctuation.c: New file.
21898         * lib/unictype/pr_paragraph_separator.c: New file.
21899         * lib/unictype/pr_pattern_syntax.c: New file.
21900         * lib/unictype/pr_pattern_white_space.c: New file.
21901         * lib/unictype/pr_private_use.c: New file.
21902         * lib/unictype/pr_punctuation.c: New file.
21903         * lib/unictype/pr_quotation_mark.c: New file.
21904         * lib/unictype/pr_radical.c: New file.
21905         * lib/unictype/pr_sentence_terminal.c: New file.
21906         * lib/unictype/pr_soft_dotted.c: New file.
21907         * lib/unictype/pr_space.c: New file.
21908         * lib/unictype/pr_terminal_punctuation.c: New file.
21909         * lib/unictype/pr_test.c: New file.
21910         * lib/unictype/pr_titlecase.c: New file.
21911         * lib/unictype/pr_unassigned_code_value.c: New file.
21912         * lib/unictype/pr_unified_ideograph.c: New file.
21913         * lib/unictype/pr_uppercase.c: New file.
21914         * lib/unictype/pr_variation_selector.c: New file.
21915         * lib/unictype/pr_white_space.c: New file.
21916         * lib/unictype/pr_xid_continue.c: New file.
21917         * lib/unictype/pr_xid_start.c: New file.
21918         * lib/unictype/pr_zero_width.c: New file.
21919         * lib/unictype/scripts.c: New file.
21920         * lib/unictype/sy_c_ident.c: New file.
21921         * lib/unictype/sy_c_whitespace.c: New file.
21922         * lib/unictype/sy_java_ident.c: New file.
21923         * lib/unictype/sy_java_whitespace.c: New file.
21924
21925         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
21926         Unicode 5.0.0.
21927         * lib/unictype/blocks.h: Likewise.
21928         * lib/unictype/categ_C.h: Likewise.
21929         * lib/unictype/categ_Cc.h: Likewise.
21930         * lib/unictype/categ_Cf.h: Likewise.
21931         * lib/unictype/categ_Cn.h: Likewise.
21932         * lib/unictype/categ_Co.h: Likewise.
21933         * lib/unictype/categ_Cs.h: Likewise.
21934         * lib/unictype/categ_L.h: Likewise.
21935         * lib/unictype/categ_Ll.h: Likewise.
21936         * lib/unictype/categ_Lm.h: Likewise.
21937         * lib/unictype/categ_Lo.h: Likewise.
21938         * lib/unictype/categ_Lt.h: Likewise.
21939         * lib/unictype/categ_Lu.h: Likewise.
21940         * lib/unictype/categ_M.h: Likewise.
21941         * lib/unictype/categ_Mc.h: Likewise.
21942         * lib/unictype/categ_Me.h: Likewise.
21943         * lib/unictype/categ_Mn.h: Likewise.
21944         * lib/unictype/categ_N.h: Likewise.
21945         * lib/unictype/categ_Nd.h: Likewise.
21946         * lib/unictype/categ_Nl.h: Likewise.
21947         * lib/unictype/categ_No.h: Likewise.
21948         * lib/unictype/categ_P.h: Likewise.
21949         * lib/unictype/categ_Pc.h: Likewise.
21950         * lib/unictype/categ_Pd.h: Likewise.
21951         * lib/unictype/categ_Pe.h: Likewise.
21952         * lib/unictype/categ_Pf.h: Likewise.
21953         * lib/unictype/categ_Pi.h: Likewise.
21954         * lib/unictype/categ_Po.h: Likewise.
21955         * lib/unictype/categ_Ps.h: Likewise.
21956         * lib/unictype/categ_S.h: Likewise.
21957         * lib/unictype/categ_Sc.h: Likewise.
21958         * lib/unictype/categ_Sk.h: Likewise.
21959         * lib/unictype/categ_Sm.h: Likewise.
21960         * lib/unictype/categ_So.h: Likewise.
21961         * lib/unictype/categ_Z.h: Likewise.
21962         * lib/unictype/categ_Zl.h: Likewise.
21963         * lib/unictype/categ_Zp.h: Likewise.
21964         * lib/unictype/categ_Zs.h: Likewise.
21965         * lib/unictype/categ_of.h: Likewise.
21966         * lib/unictype/combining.h: Likewise.
21967         * lib/unictype/ctype_alnum.h: Likewise.
21968         * lib/unictype/ctype_alpha.h: Likewise.
21969         * lib/unictype/ctype_blank.h: Likewise.
21970         * lib/unictype/ctype_cntrl.h: Likewise.
21971         * lib/unictype/ctype_digit.h: Likewise.
21972         * lib/unictype/ctype_graph.h: Likewise.
21973         * lib/unictype/ctype_lower.h: Likewise.
21974         * lib/unictype/ctype_print.h: Likewise.
21975         * lib/unictype/ctype_punct.h: Likewise.
21976         * lib/unictype/ctype_space.h: Likewise.
21977         * lib/unictype/ctype_upper.h: Likewise.
21978         * lib/unictype/ctype_xdigit.h: Likewise.
21979         * lib/unictype/decdigit.h: Likewise.
21980         * lib/unictype/digit.h: Likewise.
21981         * lib/unictype/mirror.h: Likewise.
21982         * lib/unictype/numeric.h: Likewise.
21983         * lib/unictype/pr_alphabetic.h: Likewise.
21984         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21985         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21986         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21987         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21988         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21989         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21990         * lib/unictype/pr_bidi_control.h: Likewise.
21991         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21992         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21993         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21994         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21995         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21996         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21997         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21998         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21999         * lib/unictype/pr_bidi_pdf.h: Likewise.
22000         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22001         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22002         * lib/unictype/pr_combining.h: Likewise.
22003         * lib/unictype/pr_composite.h: Likewise.
22004         * lib/unictype/pr_currency_symbol.h: Likewise.
22005         * lib/unictype/pr_dash.h: Likewise.
22006         * lib/unictype/pr_decimal_digit.h: Likewise.
22007         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22008         * lib/unictype/pr_deprecated.h: Likewise.
22009         * lib/unictype/pr_diacritic.h: Likewise.
22010         * lib/unictype/pr_extender.h: Likewise.
22011         * lib/unictype/pr_format_control.h: Likewise.
22012         * lib/unictype/pr_grapheme_base.h: Likewise.
22013         * lib/unictype/pr_grapheme_extend.h: Likewise.
22014         * lib/unictype/pr_grapheme_link.h: Likewise.
22015         * lib/unictype/pr_hex_digit.h: Likewise.
22016         * lib/unictype/pr_hyphen.h: Likewise.
22017         * lib/unictype/pr_id_continue.h: Likewise.
22018         * lib/unictype/pr_id_start.h: Likewise.
22019         * lib/unictype/pr_ideographic.h: Likewise.
22020         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22021         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22022         * lib/unictype/pr_ignorable_control.h: Likewise.
22023         * lib/unictype/pr_iso_control.h: Likewise.
22024         * lib/unictype/pr_join_control.h: Likewise.
22025         * lib/unictype/pr_left_of_pair.h: Likewise.
22026         * lib/unictype/pr_line_separator.h: Likewise.
22027         * lib/unictype/pr_logical_order_exception.h: Likewise.
22028         * lib/unictype/pr_lowercase.h: Likewise.
22029         * lib/unictype/pr_math.h: Likewise.
22030         * lib/unictype/pr_non_break.h: Likewise.
22031         * lib/unictype/pr_not_a_character.h: Likewise.
22032         * lib/unictype/pr_numeric.h: Likewise.
22033         * lib/unictype/pr_other_alphabetic.h: Likewise.
22034         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22035         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22036         * lib/unictype/pr_other_id_continue.h: Likewise.
22037         * lib/unictype/pr_other_id_start.h: Likewise.
22038         * lib/unictype/pr_other_lowercase.h: Likewise.
22039         * lib/unictype/pr_other_math.h: Likewise.
22040         * lib/unictype/pr_other_uppercase.h: Likewise.
22041         * lib/unictype/pr_paired_punctuation.h: Likewise.
22042         * lib/unictype/pr_paragraph_separator.h: Likewise.
22043         * lib/unictype/pr_pattern_syntax.h: Likewise.
22044         * lib/unictype/pr_pattern_white_space.h: Likewise.
22045         * lib/unictype/pr_private_use.h: Likewise.
22046         * lib/unictype/pr_punctuation.h: Likewise.
22047         * lib/unictype/pr_quotation_mark.h: Likewise.
22048         * lib/unictype/pr_radical.h: Likewise.
22049         * lib/unictype/pr_sentence_terminal.h: Likewise.
22050         * lib/unictype/pr_soft_dotted.h: Likewise.
22051         * lib/unictype/pr_space.h: Likewise.
22052         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22053         * lib/unictype/pr_titlecase.h: Likewise.
22054         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22055         * lib/unictype/pr_unified_ideograph.h: Likewise.
22056         * lib/unictype/pr_uppercase.h: Likewise.
22057         * lib/unictype/pr_variation_selector.h: Likewise.
22058         * lib/unictype/pr_white_space.h: Likewise.
22059         * lib/unictype/pr_xid_continue.h: Likewise.
22060         * lib/unictype/pr_xid_start.h: Likewise.
22061         * lib/unictype/pr_zero_width.h: Likewise.
22062         * lib/unictype/scripts.h: Likewise.
22063         * lib/unictype/scripts_byname.gperf: Likewise.
22064         * lib/unictype/sy_c_ident.h: Likewise.
22065         * lib/unictype/sy_c_whitespace.h: Likewise.
22066         * lib/unictype/sy_java_ident.h: Likewise.
22067         * lib/unictype/sy_java_whitespace.h: Likewise.
22068
22069         * lib/unictype/Makefile: New file.
22070         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
22071         glibc.
22072         * lib/unictype/3level.h: New file, copied from glibc.
22073         * lib/unictype/3levelbit.h: New file.
22074
22075 2007-11-11  Bruno Haible  <bruno@clisp.org>
22076
22077         * modules/gperf: New file.
22078         * modules/iconv_open (Depends-on): Add it.
22079         (Makefile.am): Remove the GPERF definition.
22080
22081 2007-11-11  Bruno Haible  <bruno@clisp.org>
22082
22083         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
22084         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
22085
22086 2007-11-11  Bruno Haible  <bruno@clisp.org>
22087
22088         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
22089         (usage): Remove function.
22090
22091 2007-11-11  Bruno Haible  <bruno@clisp.org>
22092
22093         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
22094         gl_FUNC_CEILF_LIBS.
22095         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
22096         gl_FUNC_CEIL_LIBS.
22097         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
22098         gl_FUNC_CEILL_LIBS.
22099         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
22100         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
22101         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
22102
22103 2007-11-11  Bruno Haible  <bruno@clisp.org>
22104
22105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
22106         roundf were declared but do not exist on functions.
22107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
22108         roundl were declared but do not exist on functions.
22109         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
22110         HAVE_FLOORL_AND_CEILL, respectively.
22111         Needed for Sun C on Solaris 10.
22112
22113 2007-11-11  Bruno Haible  <bruno@clisp.org>
22114
22115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
22116         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
22117         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
22118         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
22119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
22120         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
22121         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
22122         HAVE_DECL_ROUNDF.
22123         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
22124         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
22125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
22126         of HAVE_DECL_ROUND*.
22127         * modules/math (Makefile.am): Update.
22128
22129 2007-11-10  Bruno Haible  <bruno@clisp.org>
22130
22131         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
22132         ptrdiff_t as m4/intl.m4.
22133
22134 2007-11-10  Jim Meyering  <meyering@redhat.com>
22135
22136         Avoid link failure for the argmatch test.
22137         * tests/test-argmatch.c (usage): Define function to avoid a link
22138         failure: argmatch_die requires a usage function.
22139
22140 2007-11-09  Bruno Haible  <bruno@clisp.org>
22141
22142         * doc/functions/snprintf.texi: Mention BeOS deficiency.
22143         * doc/functions/vsnprintf.texi: Likewise.
22144         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
22145         with a size argument < 2.
22146
22147 2007-11-09  Bruno Haible  <bruno@clisp.org>
22148
22149         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
22150         buffer. Fixes an inefficiency introduced on 2007-11-03.
22151
22152 2007-11-09  Bruno Haible  <bruno@clisp.org>
22153
22154         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
22155         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
22156
22157 2007-11-08  Jim Meyering  <meyering@redhat.com>
22158
22159         Change cache variable name prefix "jm_" to "gl_" everywhere.
22160         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
22161         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
22162         * m4/uptime.m4: s/gl_/jm_/
22163
22164 2007-11-07  Bruno Haible  <bruno@clisp.org>
22165
22166         Update to GNU gettext 0.17.
22167         * m4/intl.m4: Update to GNU gettext 0.17.
22168         * m4/po.m4: Likewise.
22169         * modules/gettext (Files): Remove m4/ulonglong.m4.
22170         (configure.ac): Require gettext infrastructure from version 0.17.
22171
22172 2007-11-06  Bruno Haible  <bruno@clisp.org>
22173
22174         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
22175         symbolic values are not defined in a public header.
22176         * lib/freadable.c (freadable) [QNX]: Likewise.
22177         * lib/freadahead.c (freadahead) [QNX]: Likewise.
22178         * lib/freading.c (freading) [QNX]: Likewise.
22179         * lib/fseterr.c (fseterr) [QNX]: Likewise.
22180         * lib/fwritable.c (fwritable) [QNX]: Likewise.
22181         * lib/fwriting.c (fwriting) [QNX]: Likewise.
22182         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
22183         Reported by Alain Magloire.
22184
22185         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
22186
22187 2007-11-05  Bruno Haible  <bruno@clisp.org>
22188
22189         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
22190         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
22191         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
22192         Reported by Eric Blake.
22193
22194 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22195             Bruno Haible  <bruno@clisp.org>
22196
22197         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
22198         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
22199         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
22200         (malloc): Undefine also before including <stdlib.h>.
22201         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
22202         Needed on OSF/1 4.0.
22203
22204 2007-11-05  Jim Meyering  <meyering@redhat.com>
22205
22206         git-version-gen: sync from coreutils.
22207         * build-aux/git-version-gen: Add comments.
22208         Change the first '-' to '.' in the snapshot version string,
22209         e.g., 6.9-377-08144 -> 6.9.377-08144
22210         Remove first parameter.
22211         Don't declare a version "-dirty" merely because a time
22212         stamp has changed.
22213
22214 2007-11-04  Bruno Haible  <bruno@clisp.org>
22215
22216         * lib/lock.h: Protect all macro definitions containing an 'if'
22217         statement through a "do { ... } while (0)".
22218         * lib/tls.h: Likewise.
22219
22220 2007-11-04  Bruno Haible  <bruno@clisp.org>
22221
22222         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
22223
22224 2007-11-04  Bruno Haible  <bruno@clisp.org>
22225
22226         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
22227         * modules/fprintf-posix (Depends-on): Add nocrash.
22228         * modules/snprintf-posix (Depends-on): Likewise.
22229         * modules/sprintf-posix (Depends-on): Likewise.
22230         * modules/vasnprintf-posix (Depends-on): Likewise.
22231         * modules/vasprintf-posix (Depends-on): Likewise.
22232         * modules/vfprintf-posix (Depends-on): Likewise.
22233         * modules/vsnprintf-posix (Depends-on): Likewise.
22234         * modules/vsprintf-posix (Depends-on): Likewise.
22235         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22242
22243 2007-11-04  Bruno Haible  <bruno@clisp.org>
22244
22245         * modules/nocrash: New file.
22246         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
22247         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
22248
22249 2007-11-04  Bruno Haible  <bruno@clisp.org>
22250
22251         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
22252         precision handling.
22253         * tests/test-vasprintf-posix.c (test_function): Likewise.
22254         * tests/test-snprintf-posix.h (test_function): Likewise.
22255         * tests/test-sprintf-posix.h (test_function): Likewise.
22256
22257         Fix *printf behaviour for large precisions on mingw and BeOS.
22258         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
22259         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
22260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
22261         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22263         gl_PRINTF_PRECISION and test its result. Invoke
22264         gl_PREREQ_VASNPRINTF_PRECISION.
22265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22269         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22272         * doc/functions/fprintf.texi: Update.
22273         * doc/functions/printf.texi: Update.
22274         * doc/functions/snprintf.texi: Update.
22275         * doc/functions/sprintf.texi: Update.
22276         * doc/functions/vfprintf.texi: Update.
22277         * doc/functions/vprintf.texi: Update.
22278         * doc/functions/vsnprintf.texi: Update.
22279         * doc/functions/vsprintf.texi: Update.
22280
22281 2007-11-04  Bruno Haible  <bruno@clisp.org>
22282
22283         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
22284
22285 2007-11-04  Bruno Haible  <bruno@clisp.org>
22286
22287         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
22288         Reported by Sylvain Beucler <beuc@gnu.org>.
22289
22290 2007-11-03  Bruno Haible  <bruno@clisp.org>
22291
22292         * tests/test-fprintf-posix2.sh: New file.
22293         * tests/test-fprintf-posix2.c: New file.
22294         * modules/fprintf-posix-tests (Files): Add them.
22295         (TESTS): Add test-fprintf-posix2.sh.
22296         (configure.ac): Check for getrlimit and setrlimit.
22297         (check_PROGRAMS): Add test-fprintf-posix2.
22298
22299         * tests/test-printf-posix2.sh: New file.
22300         * tests/test-printf-posix2.c: New file.
22301         * modules/printf-posix-tests (Files): Add them.
22302         (TESTS): Add test-printf-posix2.sh.
22303         (configure.ac): Check for getrlimit and setrlimit.
22304         (check_PROGRAMS): Add test-printf-posix2.
22305
22306         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
22307         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
22308         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
22309         (decode_double): New function, copied from decode_long_double.
22310         (scale10_round_decimal_decoded): New function, extracted from
22311         scale10_round_decimal_long_double.
22312         (scale10_round_decimal_long_double): Use it.
22313         (scale10_round_decimal_double): New function.
22314         (floorlog10): New function.
22315         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
22316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
22317         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22319         gl_PRINTF_ENOMEM and test its result. Invoke
22320         gl_PREREQ_VASNPRINTF_ENOMEM.
22321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22328         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
22329         * modules/snprintf-posix (Depends-on): Likewise.
22330         * modules/sprintf-posix (Depends-on): Likewise.
22331         * modules/vasnprintf-posix (Depends-on): Likewise.
22332         * modules/vasprintf-posix (Depends-on): Likewise.
22333         * modules/vfprintf-posix (Depends-on): Likewise.
22334         * modules/vsnprintf-posix (Depends-on): Likewise.
22335         * modules/vsprintf-posix (Depends-on): Likewise.
22336         * doc/functions/fprintf.texi: Update.
22337         * doc/functions/printf.texi: Update.
22338         * doc/functions/snprintf.texi: Update.
22339         * doc/functions/sprintf.texi: Update.
22340         * doc/functions/vfprintf.texi: Update.
22341         * doc/functions/vprintf.texi: Update.
22342         * doc/functions/vsnprintf.texi: Update.
22343         * doc/functions/vsprintf.texi: Update.
22344
22345 2007-11-03  Bruno Haible  <bruno@clisp.org>
22346
22347         * modules/frexp-nolibm-tests: New file.
22348
22349         * modules/frexp-nolibm: New file.
22350         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
22351
22352 2007-11-03  Bruno Haible  <bruno@clisp.org>
22353
22354         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
22355         value is C99 compliant.
22356         Needed for OSF/1 5.1.
22357
22358 2007-11-03  Bruno Haible  <bruno@clisp.org>
22359
22360         Fix out-of-memory handling of vasnprintf.
22361         * lib/printf-parse.c: Include <errno.h>.
22362         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
22363         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
22364         is already set.
22365
22366 2007-11-02  Eric Blake  <ebb9@byu.net>
22367
22368         Fix tests on cygwin.
22369         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
22370
22371 2007-11-01  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
22374         warning.
22375         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
22376         needed for POSIX compatibility.
22377
22378 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
22381         for compatibility with GNU.
22382
22383 2007-11-01  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
22386         (putenv): Renamed from rpl_putenv. Change argument type from
22387         'const char *' to 'char *'.
22388         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
22389         of defining putenv in config.h, just set REPLACE_PUTENV.
22390         * modules/putenv (Depends-on): Add stdlib.
22391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22392         (Include): Use <stdlib.h>.
22393         * lib/stdlib.in.h (putenv): New declaration.
22394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
22395         REPLACE_PUTENV.
22396         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
22397         REPLACE_PUTENV.
22398         Needed for MacOS X 10.5.0.
22399         Reported by Peter O'Gorman <peter@pogma.com>.
22400
22401 2007-11-01  Jim Meyering  <meyering@redhat.com>
22402
22403         Treat an empty date string exactly like "0".
22404         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
22405         if the remaining date string (to be parsed) is empty, use "0".
22406         Reported by Mischa Molhoek and discussed in this thread:
22407         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
22408
22409 2007-10-31  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
22412         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
22413         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
22414         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
22415         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
22416         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
22417
22418 2007-10-31  Bruno Haible  <bruno@clisp.org>
22419
22420         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
22421         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
22422         (AC_TYPE_LONG_LONG_INT): Use it.
22423         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
22424         it as well.
22425         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
22426         to m4/longlong.m4.
22427         * modules/stdint (Files): Remove m4/ulonglong.m4.
22428         * modules/strtoull (Files): Use m4/longlong.m4 instead of
22429         m4/ulonglong.m4.
22430         * modules/strtoumax (Files): Likewise.
22431
22432 2007-10-30  Bruno Haible  <bruno@clisp.org>
22433
22434         * modules/xvasprintf-posix: New file.
22435         Suggested by Eric Blake.
22436
22437 2007-10-30  Bruno Haible  <bruno@clisp.org>
22438
22439         * modules/xprintf-posix-tests: New file.
22440         * tests/test-xprintf-posix.sh: New file.
22441         * tests/test-xprintf-posix.c: New file.
22442         * tests/test-xfprintf-posix.c: New file.
22443
22444         * modules/xprintf-posix: New file.
22445
22446 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22447
22448         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
22449         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
22450         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
22451
22452 2007-10-29  Bruno Haible  <bruno@clisp.org>
22453
22454         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
22455         contain the special marker '_cv_'.
22456         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22457         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22458         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22460         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22461         Reported by Ralf Wildenhues.
22462
22463 2007-10-29  Bruno Haible  <bruno@clisp.org>
22464
22465         * gnulib-tool (func_import): When --lgpl is not specified, set
22466         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
22467         GPLv3.
22468         Reported by Simon Josefsson.
22469
22470 2007-10-28  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
22473         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
22474         HAVE_DECL_ISFINITE.
22475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
22476         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
22477         HAVE_DECL_ISFINITE.
22478
22479 2007-10-28  Bruno Haible  <bruno@clisp.org>
22480
22481         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
22482         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
22483
22484 2007-10-28  Bruno Haible  <bruno@clisp.org>
22485
22486         Fix link errors with Sun C 5.0 on Solaris 10.
22487         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
22488         function is declared but not present in the compiler's libm.
22489         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22490         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22491         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
22492         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
22493         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
22494         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
22495         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
22496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
22497         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
22498         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
22499         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
22500         HAVE_DECL_FLOORL.
22501
22502 2007-10-28  Bruno Haible  <bruno@clisp.org>
22503
22504         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
22505         gl_FUNC_FLOORL. Cache the result.
22506         (gl_FUNC_FLOORL): Use it.
22507         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
22508         gl_FUNC_CEILL. Cache the result.
22509         (gl_FUNC_CEILL): Use it.
22510
22511         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
22512         gl_FUNC_FLOOR. Cache the result.
22513         (gl_FUNC_FLOOR): Use it.
22514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
22515         gl_FUNC_CEIL. Cache the result.
22516         (gl_FUNC_CEIL): Use it.
22517
22518         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
22519         gl_FUNC_FLOORF. Cache the result.
22520         (gl_FUNC_FLOORF): Use it.
22521         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
22522         gl_FUNC_CEILF. Cache the result.
22523         (gl_FUNC_CEILF): Use it.
22524
22525 2007-10-28  Bruno Haible  <bruno@clisp.org>
22526
22527         * gnulib-tool: Allow specifying the LGPL version number through
22528         --lgpl=2 or --lgpl=3.
22529         (func_usage): Document --lgpl with argument.
22530         Handle --lgpl=... arguments.
22531         (func_import): Recognize also gl_LGPL calls with an argument. When
22532         --lgpl=2 is used and the module's license is just LGPL, report an
22533         error. Set sed_transform_lib_file according to the lgpl variable. In
22534         the generated files, use --lgpl or gl_LGPL invocations with argument,
22535         if necessary.
22536         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
22537         an LGPv2+ license.
22538         * doc/gnulib-tool.texi (Modified imports): Update explanation of
22539         gl_LGPL macro.
22540
22541 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22542             Bruno Haible  <bruno@clisp.org>
22543
22544         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
22545         (u16_uctomb_aux): Likewise.
22546         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
22547         !HAVE_INLINE.
22548         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
22549
22550 2007-10-28  Bruno Haible  <bruno@clisp.org>
22551
22552         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
22553         Invoke AM_GETTEXT_OPTION if it exists.
22554         * modules/vasprintf: Likewise.
22555         * modules/verror: Likewise.
22556         * modules/xprintf: Likewise.
22557         * modules/xvasprintf: Likewise.
22558
22559 2007-10-27  Ben Pfaff  <blp@gnu.org>
22560
22561         * lib/math.in.h: Define isfinite macro and prototypes for
22562         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
22563         implementations.
22564         * m4/math_h.m4: New substitutions for isfinite module.
22565         * lib/isfinite.c: New file.
22566         * m4/isfinite.m4: New file.
22567         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
22568         * modules/isfinite: New file.
22569         * modules/isfinite-tests: New file.
22570         * tests/tests-isfinite.c: New file.
22571         * doc/functions/isfinite.texi: Mention isfinite module.
22572         * MODULES.html.sh: Mention new module.
22573
22574 2007-10-27  Ben Pfaff  <blp@gnu.org>
22575
22576         Ralf Wildenhues reported that Tru64 4.0D declares the round
22577         functions but does not have definitions.
22578         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
22579         cannot be found in any library, set the output variable to
22580         "missing" instead of "".
22581         * m4/round.m4: Also use our substitute if we cannot find round in
22582         any library, even if it is declared.
22583         * m4/roundf.m4: Likewise for roundf.
22584         * m4/roundl.m4: Likewise for roundl.
22585         * lib/math.in.h: Undefine roundf, round, roundl before defining
22586         their replacements, to allow for hypothetical systems where these
22587         may be defined as macros but not available in libraries.
22588
22589 2007-10-27  Bruno Haible  <bruno@clisp.org>
22590
22591         * doc/gnulib.texi: Invoke @firstparagraphindent.
22592         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
22593         changes in gnulib.
22594         (Source changes): New section.
22595
22596 2007-10-26  Bruno Haible  <bruno@clisp.org>
22597
22598         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
22599         borrowed from autoconf.
22600
22601 2007-10-26  Bruno Haible  <bruno@clisp.org>
22602
22603         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
22604         strerror returned the empty string. Needed on HP-UX 11.00.
22605
22606 2007-10-24  Micah Cowan  <micah@cowan.name>
22607
22608         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
22609         * build-aux/bootstrap: Remove support for now-unnecessary option,
22610         --cvs-user, and envvars CVS_USER, CVS_RSH.
22611
22612 2007-10-24  Jim Meyering  <meyering@redhat.com>
22613
22614         Avoid diagnostics from sha1sum when there is no cached checksum.
22615         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
22616         if the po.s1 file hasn't been created yet.
22617
22618         * build-aux/bootstrap: Sync from coreutils:
22619         2007-10-24  Jim Meyering  <meyering@redhat.com>
22620         Get gnulib from the git repository, not from an obsolete cvs one.
22621         * build-aux/bootstrap: Suggestion from Micah Cowan.
22622         2007-10-04  Jim Meyering  <jim@meyering.net>
22623         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
22624         (update_po_files): Work also when there are no .po files in po/.
22625
22626 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22627
22628         * README: Append ".git" to git and cg examples.
22629         Problem reported by Benoit Sigoure.
22630
22631 2007-10-23  Micah Cowan  <micah@cowan.name>
22632
22633         * users.txt: Add wget.
22634
22635 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22636
22637         Fix linking of some unistdio tests on FreeBSD.
22638         * modules/unistdio/u16-vsnprintf-tests
22639         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
22640         * modules/unistdio/u16-vsprintf-tests
22641         (test_u16_vsnprintf1_LDADD): Likewise.
22642         * modules/unistdio/u32-vsnprintf-tests
22643         (test_u32_vsnprintf1_LDADD): Likewise.
22644         * modules/unistdio/u32-vsprintf-tests
22645         (test_u32_vsprintf1_LDADD): Likewise.
22646         * modules/unistdio/u8-vsnprintf-tests
22647         (test_u8_vsnprintf1_LDADD): Likewise.
22648         * modules/unistdio/u8-vsprintf-tests
22649         (test_u8_vsprintf1_LDADD): Likewise.
22650         * modules/unistdio/ulc-vsnprintf-tests
22651         (test_ulc_vsnprintf1_LDADD): Likewise.
22652         * modules/unistdio/ulc-vsprintf-tests
22653         (test_ulc_vsprintf1_LDADD): Likewise.
22654
22655         Fix linking of some uniconv tests on FreeBSD.
22656         * modules/uniconv/u16-conv-from-enc-tests
22657         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
22658         * modules/uniconv/u16-conv-to-enc-tests
22659         (test_u16_conv_to_enc_LDADD): Likewise.
22660         * modules/uniconv/u16-strconv-from-enc-tests
22661         (test_u16_strconv_from_enc_LDADD): Likewise.
22662         * modules/uniconv/u16-strconv-to-enc-tests
22663         (test_u16_strconv_to_enc_LDADD): Likewise.
22664         * modules/uniconv/u32-conv-from-enc-tests
22665         (test_u32_conv_from_enc_LDADD): Likewise.
22666         * modules/uniconv/u32-conv-to-enc-tests
22667         (test_u32_conv_to_enc_LDADD): Likewise.
22668         * modules/uniconv/u32-strconv-from-enc-tests
22669         (test_u32_strconv_from_enc_LDADD): Likewise.
22670         * modules/uniconv/u32-strconv-to-enc-tests
22671         (test_u32_strconv_to_enc_LDADD): Likewise.
22672         * modules/uniconv/u8-conv-from-enc-tests
22673         (test_u8_conv_from_enc_LDADD): Likewise.
22674         * modules/uniconv/u8-conv-to-enc-tests
22675         (test_u8_conv_to_enc_LDADD): Likewise.
22676         * modules/uniconv/u8-strconv-from-enc-tests
22677         (test_u8_strconv_from_enc_LDADD): Likewise.
22678         * modules/uniconv/u8-strconv-to-enc-tests
22679         (test_u8_strconv_to_enc_LDADD): Likewise.
22680
22681 2007-10-22  Bruno Haible  <bruno@clisp.org>
22682
22683         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
22684         size.
22685
22686 2007-10-22  Eric Blake  <ebb9@byu.net>
22687
22688         Tweak x*printf documentation.
22689         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
22690         variable name and comments.
22691         Suggested by Bruno Haible.
22692
22693 2007-10-22  Bruno Haible  <bruno@clisp.org>
22694
22695         * lib/acl.c (copy_acl): Fix file name in comment.
22696
22697 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22698
22699         Fix Tru64 problem with stdbool.h.
22700         * lib/stdbool.in.h (false, true):
22701         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
22702         Don't declare as an enum in this situation; it runs afoul of Tru64.
22703         Problem reported by Steven M. Schweda in
22704         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
22705
22706 2007-10-22  Eric Blake  <ebb9@byu.net>
22707
22708         Also wrap vf?printf.
22709         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
22710         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
22711         (xvprintf, xvfprintf): New functions.
22712
22713 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22714
22715         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
22716         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
22717
22718         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
22719         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
22720
22721 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
22722
22723         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
22724         by Bruno Haible.
22725
22726 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22727
22728         * lib/getloadavg.c
22729         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
22730         Undef `sys' after including sys/table.h, for Tru64 4.0D.
22731
22732         * tests/test-i-ring.c: Work for C89.
22733
22734 2007-10-22  Bruno Haible  <bruno@clisp.org>
22735
22736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
22737         -1u, in preprocessor expression, so that we don't test for the bug
22738         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
22739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
22740
22741 2007-10-22  Eric Blake  <ebb9@byu.net>
22742
22743         * tests/test-yesno.sh: Silence stderr during test.
22744
22745 2007-10-22  Simon Josefsson  <simon@josefsson.org>
22746
22747         * modules/crypto/gc-camellia: New file.
22748
22749         * m4/gc-camellia.m4: New file.
22750
22751         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
22752
22753         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
22754
22755 2007-10-22  Simon Josefsson  <simon@josefsson.org>
22756
22757         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
22758         --help to stdout.  Reported by sms@antinode.org (Steven
22759         M. Schweda).
22760
22761 2007-10-22  Simon Josefsson  <simon@josefsson.org>
22762
22763         * users.txt: Fix link to libksba.
22764
22765 2007-10-21  Ben Pfaff  <blp@gnu.org>
22766
22767         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
22768         round.c roundf implementation that depends on floorf and ceilf to
22769         be tested unconditionally.
22770
22771 2007-10-21  Ben Pfaff  <blp@gnu.org>
22772
22773         * m4/check-libm-func.m4: Removed.
22774         * m4/check-math-lib.m4: New file.
22775         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
22776         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
22777         definition and lack of AC_LIBOBJ([roundf]).
22778         * m4/roundl.m4: Ditto, and similarly for roundl.
22779         * modules/round: Reference new m4 file.
22780         * modules/roundf: Ditto.
22781         * modules/roundl: Ditto.
22782         * tests/test-round2.c (main): Use ROUND instead of round.
22783         Bug report from Bruno Haible.
22784
22785 2007-10-21  Bruno Haible  <bruno@clisp.org>
22786
22787         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
22788         context.
22789
22790 2007-10-21  Bruno Haible  <bruno@clisp.org>
22791
22792         * tests/test-wcwidth.c (main): Allow negative result for some control
22793         characters.
22794
22795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
22796         Needed on OSF/1 5.1.
22797
22798 2007-10-21  Bruno Haible  <bruno@clisp.org>
22799
22800         * tests/test-floorf1.c: Include isnanf.h.
22801         (main): Use isnanf() instead of isnan().
22802         * tests/test-ceilf1.c: Include isnanf.h.
22803         (main): Use isnanf() instead of isnan().
22804         * tests/test-truncf1.c: Include isnanf.h.
22805         (main): Use isnanf() instead of isnan().
22806         * tests/test-roundf1.c: Include isnanf.h.
22807         (main): Use isnanf() instead of isnan().
22808
22809 2007-10-21  Eric Blake  <ebb9@byu.net>
22810
22811         * users.txt: Update URL for m4.
22812
22813 2007-10-21  Bruno Haible  <bruno@clisp.org>
22814
22815         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
22816
22817 2007-10-21  Bruno Haible  <bruno@clisp.org>
22818
22819         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
22820         Git's management files if the CVS files are not present.
22821
22822 2007-10-20  Bruno Haible  <bruno@clisp.org>
22823
22824         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
22825         gcc-3.4.x.
22826
22827 2007-10-20  Ben Pfaff  <blp@gnu.org>
22828
22829         * lib/math.in.h: Declare round, roundf, roundl if we are providing
22830         implementations.
22831         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
22832         * lib/round.c: New file.
22833         * lib/roundf.c: New file.
22834         * lib/roundl.c: New file.
22835         * m4/round.m4: New file.
22836         * m4/roundf.m4: New file.
22837         * m4/roundl.m4: New file.
22838         * m4/check-libm-func-m4: New file.
22839         * modules/math: Replace round, roundf, roundl related @VARS@ in
22840         math.in.h.
22841         * modules/round: New file.
22842         * modules/round-tests: New file.
22843         * modules/roundf: New file.
22844         * modules/roundf-tests: New file.
22845         * modules/roundl: New file.
22846         * modules/roundl-tests: New file.
22847         * tests/test-round1.c: New file.
22848         * tests/test-round2.c: New file.
22849         * tests/test-roundf1.c: New file.
22850         * tests/test-roundf2.c: New file.
22851         * tests/test-roundl.c: New file.
22852         * doc/functions/round.texi: Mention round module.
22853         * doc/functions/roundf.texi: Mention roundf module.
22854         * doc/functions/roundl.texi: Mention roundl module.
22855         * MODULES.html.sh: Mention new modules.
22856         Thanks to Bruno Haible for suggestions.
22857
22858 2007-10-20  Jim Meyering  <meyering@redhat.com>
22859
22860         * lib/xprintf.c: Include <config.h> unconditionally.
22861
22862         Change xprintf's license to GPL.
22863         * modules/xprintf (License): s/LGPL/GPL/, since this module
22864         depends on modules (exit and exitfail) which are GPL.
22865         Suggestion from Bruno Haible.
22866
22867         xprintf fixes.
22868         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
22869         Use a clearer diagnostic.
22870         Patch from Bruno Haible.
22871
22872 2007-10-20  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
22875         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
22876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22877
22878 2007-10-20  Bruno Haible  <bruno@clisp.org>
22879
22880         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
22881         precision in the comparison result > x - 1 or similar.
22882         * tests/test-ceilf2.c (correct_result_p): Likewise.
22883         * tests/test-truncf2.c (correct_result_p): Likewise.
22884         * tests/test-trunc2.c (correct_result_p): Likewise.
22885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22886
22887 2007-10-20  Bruno Haible  <bruno@clisp.org>
22888
22889         * modules/ceil: New file.
22890         * m4/ceil.m4: New file.
22891         * doc/functions/ceil.texi: Mention the 'ceil' module.
22892
22893 2007-10-20  Bruno Haible  <bruno@clisp.org>
22894
22895         * modules/floor: New file.
22896         * m4/floor.m4: New file.
22897         * doc/functions/floor.texi: Mention the 'floor' module.
22898
22899 2007-10-20  Bruno Haible  <bruno@clisp.org>
22900
22901         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
22902         of %a.
22903         * modules/floorf-tests (Depends-on): Likewise.
22904         * modules/truncf-tests (Depends-on): Likewise.
22905         * modules/trunc-tests (Depends-on): Likewise.
22906         Reported by Ben Pfaff.
22907
22908 2007-10-19  Jim Meyering  <meyering@redhat.com>
22909
22910         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
22911         Don't bother testing specific errno values.  Just test ferror.
22912
22913         New module: xprintf
22914         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
22915
22916 2007-10-19  Bruno Haible  <bruno@clisp.org>
22917
22918         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
22919         syntax.
22920         * modules/javaexec (Makefile.am): Likewise.
22921         * modules/relocatable-prog (Makefile.am): Likewise.
22922         Suggested by Jim Meyering.
22923
22924 2007-10-18  Bruno Haible  <bruno@clisp.org>
22925
22926         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
22927         Reported by Jim Meyering.
22928
22929 2007-10-18  Eric Blake  <ebb9@byu.net>
22930
22931         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
22932
22933 2007-10-18  Bruno Haible  <bruno@clisp.org>
22934
22935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
22936         the format string into writable memory. Needed in Fortify conditions.
22937
22938 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
22939             Bruno Haible  <bruno@clisp.org>
22940
22941         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
22942         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
22943         * modules/trim (Depends-on): Add mbchar.
22944         (configure.ac): Add gl_FUNC_MBRTOWC.
22945         (Makefile.am): Augment lib_SOURCES.
22946
22947 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22948
22949         Modify glob.c to use fstatat and dirfd, to simplify it.
22950         Suggested by Eric Blake.
22951         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
22952         Don't include <stdbool.h>; not used.
22953         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
22954         (link_exists_p): Simplify implementation, since we can now assume
22955         dirfd and fstatat.
22956         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
22957
22958 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22959
22960         * gnulib-tool (func_get_dependencies): Fix sed script to
22961         match only tests.
22962
22963 2007-10-17  Bruno Haible  <bruno@clisp.org>
22964
22965         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
22966         allow locale names without encoding suffix.
22967         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22969
22970 2007-10-16  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
22973         * lib/getgroups.c (getgroups): Likewise.
22974         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
22975
22976 2007-10-16  Bruno Haible  <bruno@clisp.org>
22977
22978         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
22979         * modules/malloc-posix (License): Likewise.
22980         * modules/realloc-posix (License): Likewise.
22981         * modules/calloc-posix (License): Likewise.
22982         * modules/intprops (License): Change from GPL to LGPL, with
22983         Paul Eggert's approval.
22984
22985 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22986
22987         Merge glibc changes into lib/glob.c.
22988
22989         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
22990         2007-10-15 04:59:03 UTC.  Here are the changes:
22991
22992         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
22993
22994         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
22995
22996         * lib/glob.c: Add some branch prediction throughout.
22997
22998         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
22999
23000         [BZ #5103]
23001         * lib/glob.c (glob): Recognize patterns starting \/.
23002
23003         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
23004
23005         [BZ #3996]
23006         * lib/glob.c (attribute_hidden): Define if not defined.
23007         (glob): Unescape dirname, filename or username when needed and not
23008         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
23009         is NULL.  Handle unescaped [ in pattern without closing ].
23010         Don't pass GLOB_CHECK down to recursive glob for directories.
23011         (__glob_pattern_type): New function.
23012         (__glob_pattern_p): Implement using __glob_pattern_type.
23013         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
23014         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
23015         Remove unreachable code.
23016
23017         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
23018
23019         * lib/glob.c (glob_in_dir): Add some comments and asserts to
23020         explain why there are no leaks.
23021
23022         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
23023
23024         [BZ #3253]
23025         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
23026         time, rather allocate increasingly bigger arrays of pointers, if
23027         possible with alloca, if too large with malloc.
23028
23029 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
23032         Problem reported by H.Merijn Brand in
23033         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
23034         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
23035         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23036
23037 2007-10-15  Bruno Haible  <bruno@clisp.org>
23038
23039         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
23040         with explicit rpl_ prefix.
23041         * lib/fopen.c (fopen): Likewise.
23042         * lib/freopen.c (freopen): Likewise.
23043         * lib/iconv.c (iconv): Likewise.
23044         * lib/iconv_close.c (iconv_close): Likewise.
23045
23046 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23047
23048         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
23049
23050 2007-10-15  Bruno Haible  <bruno@clisp.org>
23051
23052         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
23053         <stddef.h> instead of <stdlib.h> since we only need NULL.
23054         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23055
23056 2007-10-15  Bruno Haible  <bruno@clisp.org>
23057
23058         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
23059         Replace paragraph talking about LIBOBJS.
23060         Reported by Colin Watson <cjwatson@debian.org>.
23061
23062 2007-10-15  Bruno Haible  <bruno@clisp.org>
23063
23064         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
23065         <stdlib.h> before using NULL.
23066
23067 2007-10-15  Simon Josefsson  <simon@josefsson.org>
23068
23069         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
23070         Reported by Albert Chin <china@thewrittenword.com>.
23071
23072 2007-10-14  Bruno Haible  <bruno@clisp.org>
23073
23074         * modules/iconv_open-utf-tests: New file.
23075         * tests/test-iconv-utf.c: New file.
23076
23077         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
23078         * modules/iconv_open-utf: New file.
23079         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
23080         (iconv, iconv_close): New declarations.
23081         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
23082         be defined.
23083         (iconv_open): Add special handling of conversion between UTF-8 and
23084         UTF-{16,32}{BE,LE}.
23085         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
23086         * lib/iconv_close.c: New file.
23087         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
23088         gl_FUNC_ICONV_OPEN.
23089         (gl_FUNC_ICONV_OPEN): Use it.
23090         (gl_FUNC_ICONV_OPEN_UTF): New macro.
23091         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
23092         and REPLACE_ICONV_UTF.
23093         * modules/iconv_open (Depends-on): Add c-strcase.
23094         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
23095         ICONV_CONST.
23096         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
23097
23098 2007-10-13  Albert Chin  <china@thewrittenword.com>
23099             Bruno Haible  <bruno@clisp.org>
23100
23101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
23102         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
23103
23104 2007-10-13  Bruno Haible  <bruno@clisp.org>
23105
23106         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
23107         defined, use the ISO C99 inline semantics.
23108         * lib/argp.h (ARGP_EI): Likewise.
23109
23110 2007-10-13  Bruno Haible  <bruno@clisp.org>
23111
23112         Handle 'inline' change in gcc 4.3.0.
23113         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
23114         argp_fmtstream_write, argp_fmtstream_set_lmargin,
23115         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
23116         argp_fmtstream_point): Disable 'extern' declaration if the function
23117         definition is going to be provided inline.
23118         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
23119         semantics, not the ISO C99 inline semantics.
23120         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
23121         'extern' declaration if the function definition is going to be provided
23122         inline.
23123         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
23124         the GNU C inline semantics, not the ISO C99 inline semantics. With
23125         GCC 4.2, avoid a warning.
23126
23127 2007-10-13  Bruno Haible  <bruno@clisp.org>
23128
23129         * lib/freading.h (freading): Enable the use of __freading for
23130         glibc >= 2.7.
23131         * lib/freading.c (freading): Likewise.
23132
23133 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23134
23135         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
23136         "warning: C99 inline functions are not supported; using GNU89".
23137
23138 2007-10-12  Bruno Haible  <bruno@clisp.org>
23139
23140         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
23141         of 2.
23142         * tests/test-ceilf2.c: New file.
23143         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
23144
23145         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
23146         * modules/ceilf-tests: Update.
23147
23148 2007-10-12  Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
23151         of 2.
23152         * tests/test-floorf2.c: New file.
23153         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
23154
23155         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
23156         * modules/floorf-tests: Update.
23157
23158 2007-10-12  Bruno Haible  <bruno@clisp.org>
23159
23160         * tests/test-trunc2.c: New file.
23161         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
23162
23163         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
23164         * modules/trunc-tests: Update.
23165
23166 2007-10-12  Bruno Haible  <bruno@clisp.org>
23167
23168         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
23169         of 2.
23170         * tests/test-truncf2.c: New file.
23171         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
23172
23173         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
23174         * modules/truncf-tests: Update.
23175
23176 2007-10-11  Eric Blake  <ebb9@byu.net>
23177
23178         Don't claim strerror is broken on Interix.
23179         * doc/functions/strerror.texi (strerror): Known broken systems are
23180         now Solaris 8, and not Interix.
23181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
23182         Interix on cross-compile.
23183         Reported by Martin Koeppe in
23184         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
23185
23186 2007-10-11  Bruno Haible  <bruno@clisp.org>
23187
23188         * modules/i-ring-tests: New file.
23189         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
23190         instead of assert.
23191
23192 2007-10-11  Bruno Haible  <bruno@clisp.org>
23193
23194         * modules/filenamecat-tests: New file.
23195         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
23196         * lib/filenamecat.c: Remove test code.
23197
23198 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23199
23200         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
23201
23202         * lib/strerror.c: Include <string.h> always, to test interface,
23203         and to remove the need for the dummy.
23204         Include intprops.h to compute width instead of doing it ourselves
23205         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
23206         (strerror): Define it to return NULL if there's no system strerror.
23207         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
23208         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
23209         ancient pre-strerror Unix systems well any more.  Saying "unknown
23210         system error" is enough.
23211         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
23212         simpler strerror.c implementation.
23213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
23214         Simplify the tests to reflect the simpler strerror implementation.
23215         * modules/strerror (Depends-on): Add intprops.
23216
23217 2007-10-09  Eric Blake  <ebb9@byu.net>
23218
23219         Silence test-fpending.
23220         * modules/fpending-tests (Files): Add wrapper script.
23221         * tests/test-fpending.sh: New file.
23222
23223 2007-10-09  Bruno Haible  <bruno@clisp.org>
23224
23225         * MODULES.html.sh (func_module): Don't create a hyperlink for
23226         function names like 'printf_frexp'.
23227         (Misc): Add crc, memxor.
23228         (Characteristics of floating types): New section.
23229         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
23230         isnanf-nolibm, signbit, trunc, truncf, truncl.
23231         (Enhancements for ISO C 99 functions): New subsection Input/output.
23232         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
23233         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
23234         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
23235         (Compatibility checks for POSIX:2001 functions): Add clock-time.
23236         (Enhancements for POSIX:2001 functions): Add chdir-long.
23237         (File system functions): Add areadlink, chdir-safer, read-file.
23238         Remove cycle-check.
23239         (File system as inode set): New section.
23240         (Date and time): Add gethrxtime.
23241         (Multithreading): Add openmp.
23242         (Internationalization functions): Add localename.
23243         (Unicode string functions): Add unistr/u*-mbsnlen.
23244         (Support for maintaining and releasing projects): Add git-version-gen.
23245         (Lone files): Remove directories.
23246
23247 2007-10-08  Ben Pfaff  <blp@gnu.org>
23248
23249         * lib/xmalloca.h: Fix typo in comment.
23250
23251 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23252
23253         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
23254         when avoiding problems with integer overflow.  Use a portable test
23255         instead.
23256
23257 2007-10-08  Simon Josefsson  <simon@josefsson.org>
23258
23259         * modules/dummy (License): Change to LGPLv2+.
23260         * modules/float (License): Likewise
23261         * modules/realloc (License): Likewise
23262         * modules/stdlib (License): Likewise
23263
23264 2007-10-07  Bruno Haible  <bruno@clisp.org>
23265
23266         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
23267         * floor.c (TWO_MANT_DIG): Likewise.
23268         * ceil.c (TWO_MANT_DIG): Likewise.
23269         Reported by Ben Pfaff.
23270
23271 2007-10-07  Bruno Haible  <bruno@clisp.org>
23272
23273         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
23274         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
23275         * lib/frexp.c (FUNC): Likewise.
23276         * lib/printf-frexp.h (printf_frexp): Likewise.
23277         * lib/printf-frexpl.h (printf_frexpl): Likewise.
23278         * lib/printf-frexp.c (FUNC): Likewise.
23279         Suggested by Jim Meyering.
23280
23281 2007-10-07  Jim Meyering  <meyering@redhat.com>
23282
23283         Make xnanosleep's integer overflow test more robust.
23284         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
23285         so that gcc-4.3.0 doesn't optimize away this test for overflow.
23286
23287 2007-10-07  Bruno Haible  <bruno@clisp.org>
23288
23289         * NEWS: Mention the license change.
23290
23291         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
23292         abbreviations in the modules files.
23293
23294         Change copyright notice from GPLv2+ to GPLv3+.
23295         * README: Change copyright notice.
23296         * MODULES.html.sh: Likewise.
23297         * build-aux/bootstrap.conf: Likewise.
23298         * build-aux/config.libpath: Likewise.
23299         * build-aux/csharpcomp.sh.in: Likewise.
23300         * build-aux/csharpexec.sh.in: Likewise.
23301         * build-aux/install-reloc: Likewise.
23302         * build-aux/javacomp.sh.in: Likewise.
23303         * build-aux/javaexec.sh.in: Likewise.
23304         * build-aux/ldd.sh.in: Likewise.
23305         * build-aux/reloc-ldflags: Likewise.
23306         * build-aux/relocatable.sh.in: Likewise.
23307         * build-aux/x-to-1.in: Likewise.
23308         * check-module: Likewise.
23309         * config/srclistvars.sh: Likewise.
23310         * gnulib-tool: Likewise.
23311         * lib/acl-internal.h: Likewise.
23312         * lib/acl.c: Likewise.
23313         * lib/acl.h: Likewise.
23314         * lib/acl_entries.c: Likewise.
23315         * lib/areadlink-with-size.c: Likewise.
23316         * lib/areadlink.c: Likewise.
23317         * lib/areadlink.h: Likewise.
23318         * lib/argmatch.c: Likewise.
23319         * lib/argmatch.h: Likewise.
23320         * lib/argp-ba.c: Likewise.
23321         * lib/argp-eexst.c: Likewise.
23322         * lib/argp-fmtstream.c: Likewise.
23323         * lib/argp-fmtstream.h: Likewise.
23324         * lib/argp-fs-xinl.c: Likewise.
23325         * lib/argp-help.c: Likewise.
23326         * lib/argp-namefrob.h: Likewise.
23327         * lib/argp-parse.c: Likewise.
23328         * lib/argp-pin.c: Likewise.
23329         * lib/argp-pv.c: Likewise.
23330         * lib/argp-pvh.c: Likewise.
23331         * lib/argp-xinl.c: Likewise.
23332         * lib/argp.h: Likewise.
23333         * lib/at-func.c: Likewise.
23334         * lib/atanl.c: Likewise.
23335         * lib/backupfile.c: Likewise.
23336         * lib/backupfile.h: Likewise.
23337         * lib/basename.c: Likewise.
23338         * lib/binary-io.h: Likewise.
23339         * lib/byteswap.in.h: Likewise.
23340         * lib/c-stack.c: Likewise.
23341         * lib/c-stack.h: Likewise.
23342         * lib/c-strcasestr.c: Likewise.
23343         * lib/c-strcasestr.h: Likewise.
23344         * lib/c-strstr.c: Likewise.
23345         * lib/c-strstr.h: Likewise.
23346         * lib/c-strtod.c: Likewise.
23347         * lib/calloc.c: Likewise.
23348         * lib/canon-host.c: Likewise.
23349         * lib/canon-host.h: Likewise.
23350         * lib/canonicalize-lgpl.c: Likewise.
23351         * lib/canonicalize.c: Likewise.
23352         * lib/canonicalize.h: Likewise.
23353         * lib/ceil.c: Likewise.
23354         * lib/ceilf.c: Likewise.
23355         * lib/ceill.c: Likewise.
23356         * lib/chdir-long.c: Likewise.
23357         * lib/chdir-long.h: Likewise.
23358         * lib/chdir-safer.c: Likewise.
23359         * lib/chdir-safer.h: Likewise.
23360         * lib/chown.c: Likewise.
23361         * lib/classpath.c: Likewise.
23362         * lib/classpath.h: Likewise.
23363         * lib/clean-temp.c: Likewise.
23364         * lib/clean-temp.h: Likewise.
23365         * lib/cloexec.c: Likewise.
23366         * lib/close-stream.c: Likewise.
23367         * lib/closein.c: Likewise.
23368         * lib/closein.h: Likewise.
23369         * lib/closeout.c: Likewise.
23370         * lib/closeout.h: Likewise.
23371         * lib/concat-filename.c: Likewise.
23372         * lib/copy-file.c: Likewise.
23373         * lib/copy-file.h: Likewise.
23374         * lib/count-one-bits.h: Likewise.
23375         * lib/crc.c: Likewise.
23376         * lib/crc.h: Likewise.
23377         * lib/creat-safer.c: Likewise.
23378         * lib/csharpcomp.c: Likewise.
23379         * lib/csharpcomp.h: Likewise.
23380         * lib/csharpexec.c: Likewise.
23381         * lib/csharpexec.h: Likewise.
23382         * lib/cycle-check.c: Likewise.
23383         * lib/cycle-check.h: Likewise.
23384         * lib/diacrit.c: Likewise.
23385         * lib/diacrit.h: Likewise.
23386         * lib/diffseq.h: Likewise.
23387         * lib/dirchownmod.c: Likewise.
23388         * lib/dirent.in.h: Likewise.
23389         * lib/dirfd.c: Likewise.
23390         * lib/dirfd.h: Likewise.
23391         * lib/dirname.c: Likewise.
23392         * lib/dirname.h: Likewise.
23393         * lib/dummy.c: Likewise.
23394         * lib/dup-safer.c: Likewise.
23395         * lib/dup2.c: Likewise.
23396         * lib/eealloc.h: Likewise.
23397         * lib/error.c: Likewise.
23398         * lib/error.h: Likewise.
23399         * lib/euidaccess.c: Likewise.
23400         * lib/exclude.c: Likewise.
23401         * lib/exclude.h: Likewise.
23402         * lib/execute.c: Likewise.
23403         * lib/execute.h: Likewise.
23404         * lib/exitfail.c: Likewise.
23405         * lib/exitfail.h: Likewise.
23406         * lib/expl.c: Likewise.
23407         * lib/fatal-signal.c: Likewise.
23408         * lib/fatal-signal.h: Likewise.
23409         * lib/fbufmode.c: Likewise.
23410         * lib/fbufmode.h: Likewise.
23411         * lib/fchdir.c: Likewise.
23412         * lib/fchmodat.c: Likewise.
23413         * lib/fchownat.c: Likewise.
23414         * lib/fcntl--.h: Likewise.
23415         * lib/fcntl-safer.h: Likewise.
23416         * lib/fcntl.in.h: Likewise.
23417         * lib/fd-safer.c: Likewise.
23418         * lib/fflush.c: Likewise.
23419         * lib/file-has-acl.c: Likewise.
23420         * lib/file-set.c: Likewise.
23421         * lib/file-type.c: Likewise.
23422         * lib/file-type.h: Likewise.
23423         * lib/fileblocks.c: Likewise.
23424         * lib/filemode.c: Likewise.
23425         * lib/filemode.h: Likewise.
23426         * lib/filename.h: Likewise.
23427         * lib/filenamecat.c: Likewise.
23428         * lib/filenamecat.h: Likewise.
23429         * lib/findprog.c: Likewise.
23430         * lib/findprog.h: Likewise.
23431         * lib/float.in.h: Likewise.
23432         * lib/floor.c: Likewise.
23433         * lib/floorf.c: Likewise.
23434         * lib/floorl.c: Likewise.
23435         * lib/fopen-safer.c: Likewise.
23436         * lib/fopen.c: Likewise.
23437         * lib/fpending.c: Likewise.
23438         * lib/fpending.h: Likewise.
23439         * lib/fprintf.c: Likewise.
23440         * lib/fprintftime.h: Likewise.
23441         * lib/fpucw.h: Likewise.
23442         * lib/fpurge.c: Likewise.
23443         * lib/fpurge.h: Likewise.
23444         * lib/freadable.c: Likewise.
23445         * lib/freadable.h: Likewise.
23446         * lib/freadahead.c: Likewise.
23447         * lib/freadahead.h: Likewise.
23448         * lib/freading.c: Likewise.
23449         * lib/freading.h: Likewise.
23450         * lib/free.c: Likewise.
23451         * lib/freopen.c: Likewise.
23452         * lib/frexp.c: Likewise.
23453         * lib/frexpl.c: Likewise.
23454         * lib/fseek.c: Likewise.
23455         * lib/fseterr.c: Likewise.
23456         * lib/fseterr.h: Likewise.
23457         * lib/fstatat.c: Likewise.
23458         * lib/fstrcmp.c: Likewise.
23459         * lib/fstrcmp.h: Likewise.
23460         * lib/fsusage.c: Likewise.
23461         * lib/fsusage.h: Likewise.
23462         * lib/ftell.c: Likewise.
23463         * lib/ftello.c: Likewise.
23464         * lib/fts-cycle.c: Likewise.
23465         * lib/fts.c: Likewise.
23466         * lib/fts_.h: Likewise.
23467         * lib/full-read.c: Likewise.
23468         * lib/full-read.h: Likewise.
23469         * lib/full-write.c: Likewise.
23470         * lib/full-write.h: Likewise.
23471         * lib/fwritable.c: Likewise.
23472         * lib/fwritable.h: Likewise.
23473         * lib/fwriteerror.c: Likewise.
23474         * lib/fwriteerror.h: Likewise.
23475         * lib/fwriting.c: Likewise.
23476         * lib/fwriting.h: Likewise.
23477         * lib/gcd.c: Likewise.
23478         * lib/gcd.h: Likewise.
23479         * lib/getcwd.c: Likewise.
23480         * lib/getdate.h: Likewise.
23481         * lib/getdate.y: Likewise.
23482         * lib/getdomainname.c: Likewise.
23483         * lib/getdomainname.h: Likewise.
23484         * lib/getgroups.c: Likewise.
23485         * lib/gethostname.c: Likewise.
23486         * lib/gethrxtime.c: Likewise.
23487         * lib/gethrxtime.h: Likewise.
23488         * lib/getloadavg.c: Likewise.
23489         * lib/getndelim2.c: Likewise.
23490         * lib/getndelim2.h: Likewise.
23491         * lib/getnline.c: Likewise.
23492         * lib/getnline.h: Likewise.
23493         * lib/getopt.c: Likewise.
23494         * lib/getopt.in.h: Likewise.
23495         * lib/getopt1.c: Likewise.
23496         * lib/getopt_int.h: Likewise.
23497         * lib/getpagesize.h: Likewise.
23498         * lib/getsubopt.c: Likewise.
23499         * lib/gettime.c: Likewise.
23500         * lib/getugroups.c: Likewise.
23501         * lib/getugroups.h: Likewise.
23502         * lib/getusershell.c: Likewise.
23503         * lib/gl_anyavltree_list1.h: Likewise.
23504         * lib/gl_anyavltree_list2.h: Likewise.
23505         * lib/gl_anyhash_list1.h: Likewise.
23506         * lib/gl_anyhash_list2.h: Likewise.
23507         * lib/gl_anylinked_list1.h: Likewise.
23508         * lib/gl_anylinked_list2.h: Likewise.
23509         * lib/gl_anyrbtree_list1.h: Likewise.
23510         * lib/gl_anyrbtree_list2.h: Likewise.
23511         * lib/gl_anytree_list1.h: Likewise.
23512         * lib/gl_anytree_list2.h: Likewise.
23513         * lib/gl_anytree_oset.h: Likewise.
23514         * lib/gl_anytreehash_list1.h: Likewise.
23515         * lib/gl_anytreehash_list2.h: Likewise.
23516         * lib/gl_array_list.c: Likewise.
23517         * lib/gl_array_list.h: Likewise.
23518         * lib/gl_array_oset.c: Likewise.
23519         * lib/gl_array_oset.h: Likewise.
23520         * lib/gl_avltree_list.c: Likewise.
23521         * lib/gl_avltree_list.h: Likewise.
23522         * lib/gl_avltree_oset.c: Likewise.
23523         * lib/gl_avltree_oset.h: Likewise.
23524         * lib/gl_avltreehash_list.c: Likewise.
23525         * lib/gl_avltreehash_list.h: Likewise.
23526         * lib/gl_carray_list.c: Likewise.
23527         * lib/gl_carray_list.h: Likewise.
23528         * lib/gl_linked_list.c: Likewise.
23529         * lib/gl_linked_list.h: Likewise.
23530         * lib/gl_linkedhash_list.c: Likewise.
23531         * lib/gl_linkedhash_list.h: Likewise.
23532         * lib/gl_list.c: Likewise.
23533         * lib/gl_list.h: Likewise.
23534         * lib/gl_oset.c: Likewise.
23535         * lib/gl_oset.h: Likewise.
23536         * lib/gl_rbtree_list.c: Likewise.
23537         * lib/gl_rbtree_list.h: Likewise.
23538         * lib/gl_rbtree_oset.c: Likewise.
23539         * lib/gl_rbtree_oset.h: Likewise.
23540         * lib/gl_rbtreehash_list.c: Likewise.
23541         * lib/gl_rbtreehash_list.h: Likewise.
23542         * lib/gl_sublist.c: Likewise.
23543         * lib/gl_sublist.h: Likewise.
23544         * lib/group-member.c: Likewise.
23545         * lib/group-member.h: Likewise.
23546         * lib/hard-locale.c: Likewise.
23547         * lib/hard-locale.h: Likewise.
23548         * lib/hash-pjw.c: Likewise.
23549         * lib/hash-pjw.h: Likewise.
23550         * lib/hash-triple.c: Likewise.
23551         * lib/hash.c: Likewise.
23552         * lib/hash.h: Likewise.
23553         * lib/human.c: Likewise.
23554         * lib/human.h: Likewise.
23555         * lib/i-ring.c: Likewise.
23556         * lib/i-ring.h: Likewise.
23557         * lib/idcache.c: Likewise.
23558         * lib/imaxabs.c: Likewise.
23559         * lib/imaxdiv.c: Likewise.
23560         * lib/inet_pton.c: Likewise.
23561         * lib/inet_pton.h: Likewise.
23562         * lib/intprops.h: Likewise.
23563         * lib/inttostr.c: Likewise.
23564         * lib/inttostr.h: Likewise.
23565         * lib/inttypes.in.h: Likewise.
23566         * lib/isapipe.c: Likewise.
23567         * lib/isdir.c: Likewise.
23568         * lib/isnan.c: Likewise.
23569         * lib/isnan.h: Likewise.
23570         * lib/isnanf.c: Likewise.
23571         * lib/isnanf.h: Likewise.
23572         * lib/isnanl-nolibm.h: Likewise.
23573         * lib/isnanl.c: Likewise.
23574         * lib/isnanl.h: Likewise.
23575         * lib/javacomp.c: Likewise.
23576         * lib/javacomp.h: Likewise.
23577         * lib/javaexec.c: Likewise.
23578         * lib/javaexec.h: Likewise.
23579         * lib/javaversion.c: Likewise.
23580         * lib/javaversion.h: Likewise.
23581         * lib/javaversion.java: Likewise.
23582         * lib/lbrkprop.h: Likewise.
23583         * lib/lchmod.h: Likewise.
23584         * lib/lchown.c: Likewise.
23585         * lib/ldexpl.c: Likewise.
23586         * lib/linebreak.c: Likewise.
23587         * lib/linebreak.h: Likewise.
23588         * lib/linebuffer.c: Likewise.
23589         * lib/linebuffer.h: Likewise.
23590         * lib/locale.in.h: Likewise.
23591         * lib/logl.c: Likewise.
23592         * lib/long-options.c: Likewise.
23593         * lib/long-options.h: Likewise.
23594         * lib/lstat.c: Likewise.
23595         * lib/lstat.h: Likewise.
23596         * lib/math.in.h: Likewise.
23597         * lib/mbchar.c: Likewise.
23598         * lib/mbchar.h: Likewise.
23599         * lib/mbfile.h: Likewise.
23600         * lib/mbiter.h: Likewise.
23601         * lib/mbscasecmp.c: Likewise.
23602         * lib/mbscasestr.c: Likewise.
23603         * lib/mbschr.c: Likewise.
23604         * lib/mbscspn.c: Likewise.
23605         * lib/mbslen.c: Likewise.
23606         * lib/mbsncasecmp.c: Likewise.
23607         * lib/mbsnlen.c: Likewise.
23608         * lib/mbspbrk.c: Likewise.
23609         * lib/mbspcasecmp.c: Likewise.
23610         * lib/mbsrchr.c: Likewise.
23611         * lib/mbssep.c: Likewise.
23612         * lib/mbsspn.c: Likewise.
23613         * lib/mbsstr.c: Likewise.
23614         * lib/mbstok_r.c: Likewise.
23615         * lib/mbswidth.c: Likewise.
23616         * lib/mbswidth.h: Likewise.
23617         * lib/mbuiter.h: Likewise.
23618         * lib/memcasecmp.c: Likewise.
23619         * lib/memcasecmp.h: Likewise.
23620         * lib/memchr.c: Likewise.
23621         * lib/memcmp.c: Likewise.
23622         * lib/memcoll.c: Likewise.
23623         * lib/memcoll.h: Likewise.
23624         * lib/memcpy.c: Likewise.
23625         * lib/memrchr.c: Likewise.
23626         * lib/mkancesdirs.c: Likewise.
23627         * lib/mkdir-p.c: Likewise.
23628         * lib/mkdir-p.h: Likewise.
23629         * lib/mkdir.c: Likewise.
23630         * lib/mkdirat.c: Likewise.
23631         * lib/mkdtemp.c: Likewise.
23632         * lib/mkstemp-safer.c: Likewise.
23633         * lib/mkstemp.c: Likewise.
23634         * lib/modechange.c: Likewise.
23635         * lib/modechange.h: Likewise.
23636         * lib/mountlist.c: Likewise.
23637         * lib/mountlist.h: Likewise.
23638         * lib/mpsort.c: Likewise.
23639         * lib/nanosleep.c: Likewise.
23640         * lib/obstack.c: Likewise.
23641         * lib/obstack.h: Likewise.
23642         * lib/open-safer.c: Likewise.
23643         * lib/open.c: Likewise.
23644         * lib/openat-die.c: Likewise.
23645         * lib/openat-priv.h: Likewise.
23646         * lib/openat-proc.c: Likewise.
23647         * lib/openat.c: Likewise.
23648         * lib/openat.h: Likewise.
23649         * lib/pagealign_alloc.c: Likewise.
23650         * lib/pagealign_alloc.h: Likewise.
23651         * lib/physmem.c: Likewise.
23652         * lib/physmem.h: Likewise.
23653         * lib/pipe-safer.c: Likewise.
23654         * lib/pipe.c: Likewise.
23655         * lib/pipe.h: Likewise.
23656         * lib/posixtm.c: Likewise.
23657         * lib/posixtm.h: Likewise.
23658         * lib/posixver.c: Likewise.
23659         * lib/printf-frexp.c: Likewise.
23660         * lib/printf-frexp.h: Likewise.
23661         * lib/printf-frexpl.c: Likewise.
23662         * lib/printf-frexpl.h: Likewise.
23663         * lib/printf.c: Likewise.
23664         * lib/progname.c: Likewise.
23665         * lib/progname.h: Likewise.
23666         * lib/progreloc.c: Likewise.
23667         * lib/putenv.c: Likewise.
23668         * lib/quote.c: Likewise.
23669         * lib/quote.h: Likewise.
23670         * lib/quotearg.c: Likewise.
23671         * lib/quotearg.h: Likewise.
23672         * lib/raise.c: Likewise.
23673         * lib/readline.c: Likewise.
23674         * lib/readline.h: Likewise.
23675         * lib/readlink.c: Likewise.
23676         * lib/readtokens.c: Likewise.
23677         * lib/readtokens.h: Likewise.
23678         * lib/readtokens0.c: Likewise.
23679         * lib/readtokens0.h: Likewise.
23680         * lib/readutmp.c: Likewise.
23681         * lib/readutmp.h: Likewise.
23682         * lib/realloc.c: Likewise.
23683         * lib/relocwrapper.c: Likewise.
23684         * lib/rename-dest-slash.c: Likewise.
23685         * lib/rename.c: Likewise.
23686         * lib/rmdir.c: Likewise.
23687         * lib/rpmatch.c: Likewise.
23688         * lib/safe-read.c: Likewise.
23689         * lib/safe-read.h: Likewise.
23690         * lib/safe-write.c: Likewise.
23691         * lib/safe-write.h: Likewise.
23692         * lib/same-inode.h: Likewise.
23693         * lib/same.c: Likewise.
23694         * lib/same.h: Likewise.
23695         * lib/save-cwd.c: Likewise.
23696         * lib/save-cwd.h: Likewise.
23697         * lib/savedir.c: Likewise.
23698         * lib/savedir.h: Likewise.
23699         * lib/savewd.c: Likewise.
23700         * lib/savewd.h: Likewise.
23701         * lib/search.in.h: Likewise.
23702         * lib/setenv.c: Likewise.
23703         * lib/setenv.h: Likewise.
23704         * lib/settime.c: Likewise.
23705         * lib/sh-quote.c: Likewise.
23706         * lib/sh-quote.h: Likewise.
23707         * lib/sig2str.c: Likewise.
23708         * lib/sig2str.h: Likewise.
23709         * lib/signal.in.h: Likewise.
23710         * lib/signbitd.c: Likewise.
23711         * lib/signbitf.c: Likewise.
23712         * lib/signbitl.c: Likewise.
23713         * lib/sigprocmask.c: Likewise.
23714         * lib/sincosl.c: Likewise.
23715         * lib/sleep.c: Likewise.
23716         * lib/sprintf.c: Likewise.
23717         * lib/sqrtl.c: Likewise.
23718         * lib/stat-time.h: Likewise.
23719         * lib/stdio--.h: Likewise.
23720         * lib/stdio-safer.h: Likewise.
23721         * lib/stdlib--.h: Likewise.
23722         * lib/stdlib-safer.h: Likewise.
23723         * lib/stdlib.in.h: Likewise.
23724         * lib/stpcpy.c: Likewise.
23725         * lib/stpncpy.c: Likewise.
23726         * lib/strchrnul.c: Likewise.
23727         * lib/strcspn.c: Likewise.
23728         * lib/strerror.c: Likewise.
23729         * lib/strftime.c: Likewise.
23730         * lib/strftime.h: Likewise.
23731         * lib/striconveh.c: Likewise.
23732         * lib/striconveh.h: Likewise.
23733         * lib/striconveha.c: Likewise.
23734         * lib/striconveha.h: Likewise.
23735         * lib/stripslash.c: Likewise.
23736         * lib/strnlen1.c: Likewise.
23737         * lib/strnlen1.h: Likewise.
23738         * lib/strtod.c: Likewise.
23739         * lib/strtoimax.c: Likewise.
23740         * lib/strtok_r.c: Likewise.
23741         * lib/strtol.c: Likewise.
23742         * lib/strtoll.c: Likewise.
23743         * lib/strtoul.c: Likewise.
23744         * lib/strtoull.c: Likewise.
23745         * lib/sysexits.in.h: Likewise.
23746         * lib/tempname.c: Likewise.
23747         * lib/tempname.h: Likewise.
23748         * lib/timespec.h: Likewise.
23749         * lib/tls.c: Likewise.
23750         * lib/tls.h: Likewise.
23751         * lib/tmpdir.c: Likewise.
23752         * lib/tmpdir.h: Likewise.
23753         * lib/tmpfile-safer.c: Likewise.
23754         * lib/tmpfile.c: Likewise.
23755         * lib/trigl.c: Likewise.
23756         * lib/trigl.h: Likewise.
23757         * lib/trim.c: Likewise.
23758         * lib/trim.h: Likewise.
23759         * lib/trunc.c: Likewise.
23760         * lib/truncf.c: Likewise.
23761         * lib/truncl.c: Likewise.
23762         * lib/tsearch.c: Likewise.
23763         * lib/unicodeio.c: Likewise.
23764         * lib/unicodeio.h: Likewise.
23765         * lib/unistd--.h: Likewise.
23766         * lib/unistd-safer.h: Likewise.
23767         * lib/unistdio/ulc-fprintf.c: Likewise.
23768         * lib/unistdio/ulc-vfprintf.c: Likewise.
23769         * lib/unlinkdir.c: Likewise.
23770         * lib/unlinkdir.h: Likewise.
23771         * lib/unlocked-io.h: Likewise.
23772         * lib/unsetenv.c: Likewise.
23773         * lib/userspec.c: Likewise.
23774         * lib/utime.c: Likewise.
23775         * lib/utimecmp.c: Likewise.
23776         * lib/utimecmp.h: Likewise.
23777         * lib/utimens.c: Likewise.
23778         * lib/verify.h: Likewise.
23779         * lib/verror.c: Likewise.
23780         * lib/verror.h: Likewise.
23781         * lib/version-etc-fsf.c: Likewise.
23782         * lib/version-etc.c: Likewise.
23783         * lib/version-etc.h: Likewise.
23784         * lib/vfprintf.c: Likewise.
23785         * lib/vprintf.c: Likewise.
23786         * lib/vsprintf.c: Likewise.
23787         * lib/w32spawn.h: Likewise.
23788         * lib/wait-process.c: Likewise.
23789         * lib/wait-process.h: Likewise.
23790         * lib/wcwidth.c: Likewise.
23791         * lib/write-any-file.c: Likewise.
23792         * lib/xalloc-die.c: Likewise.
23793         * lib/xalloc.h: Likewise.
23794         * lib/xasprintf.c: Likewise.
23795         * lib/xgetcwd.c: Likewise.
23796         * lib/xgetcwd.h: Likewise.
23797         * lib/xgetdomainname.c: Likewise.
23798         * lib/xgetdomainname.h: Likewise.
23799         * lib/xgethostname.c: Likewise.
23800         * lib/xmalloc.c: Likewise.
23801         * lib/xmalloca.c: Likewise.
23802         * lib/xmalloca.h: Likewise.
23803         * lib/xmemcoll.c: Likewise.
23804         * lib/xnanosleep.c: Likewise.
23805         * lib/xreadlink.c: Likewise.
23806         * lib/xreadlink.h: Likewise.
23807         * lib/xsetenv.c: Likewise.
23808         * lib/xsetenv.h: Likewise.
23809         * lib/xstriconv.c: Likewise.
23810         * lib/xstriconv.h: Likewise.
23811         * lib/xstrndup.c: Likewise.
23812         * lib/xstrndup.h: Likewise.
23813         * lib/xstrtod.c: Likewise.
23814         * lib/xstrtod.h: Likewise.
23815         * lib/xstrtol-error.c: Likewise.
23816         * lib/xstrtol.c: Likewise.
23817         * lib/xstrtol.h: Likewise.
23818         * lib/xtime.h: Likewise.
23819         * lib/xvasprintf.c: Likewise.
23820         * lib/xvasprintf.h: Likewise.
23821         * lib/yesno.c: Likewise.
23822         * lib/yesno.h: Likewise.
23823         * posix-modules: Likewise.
23824         * tests/test-alloca-opt.c: Likewise.
23825         * tests/test-arcfour.c: Likewise.
23826         * tests/test-arctwo.c: Likewise.
23827         * tests/test-argmatch.c: Likewise.
23828         * tests/test-argp-2.sh: Likewise.
23829         * tests/test-argp.c: Likewise.
23830         * tests/test-arpa_inet.c: Likewise.
23831         * tests/test-array_list.c: Likewise.
23832         * tests/test-array_oset.c: Likewise.
23833         * tests/test-atexit.c: Likewise.
23834         * tests/test-avltree_list.c: Likewise.
23835         * tests/test-avltree_oset.c: Likewise.
23836         * tests/test-avltreehash_list.c: Likewise.
23837         * tests/test-base64.c: Likewise.
23838         * tests/test-binary-io.c: Likewise.
23839         * tests/test-byteswap.c: Likewise.
23840         * tests/test-c-ctype.c: Likewise.
23841         * tests/test-c-strcasecmp.c: Likewise.
23842         * tests/test-c-strcasestr.c: Likewise.
23843         * tests/test-c-strncasecmp.c: Likewise.
23844         * tests/test-c-strstr.c: Likewise.
23845         * tests/test-canonicalize-lgpl.c: Likewise.
23846         * tests/test-canonicalize.c: Likewise.
23847         * tests/test-carray_list.c: Likewise.
23848         * tests/test-ceilf.c: Likewise.
23849         * tests/test-ceill.c: Likewise.
23850         * tests/test-count-one-bits.c: Likewise.
23851         * tests/test-crc.c: Likewise.
23852         * tests/test-dirname.c: Likewise.
23853         * tests/test-fbufmode.c: Likewise.
23854         * tests/test-fcntl.c: Likewise.
23855         * tests/test-fflush.c: Likewise.
23856         * tests/test-floorf.c: Likewise.
23857         * tests/test-floorl.c: Likewise.
23858         * tests/test-fopen.c: Likewise.
23859         * tests/test-fprintf-posix.c: Likewise.
23860         * tests/test-fprintf-posix.h: Likewise.
23861         * tests/test-fpurge.c: Likewise.
23862         * tests/test-freadable.c: Likewise.
23863         * tests/test-freadahead.c: Likewise.
23864         * tests/test-freading.c: Likewise.
23865         * tests/test-freopen.c: Likewise.
23866         * tests/test-frexp.c: Likewise.
23867         * tests/test-frexpl.c: Likewise.
23868         * tests/test-fseek.c: Likewise.
23869         * tests/test-fseeko.c: Likewise.
23870         * tests/test-fseterr.c: Likewise.
23871         * tests/test-fstrcmp.c: Likewise.
23872         * tests/test-ftell.c: Likewise.
23873         * tests/test-ftello.c: Likewise.
23874         * tests/test-fwritable.c: Likewise.
23875         * tests/test-fwriting.c: Likewise.
23876         * tests/test-getaddrinfo.c: Likewise.
23877         * tests/test-getpass.c: Likewise.
23878         * tests/test-gettimeofday.c: Likewise.
23879         * tests/test-hmac-md5.c: Likewise.
23880         * tests/test-hmac-sha1.c: Likewise.
23881         * tests/test-iconv.c: Likewise.
23882         * tests/test-iconvme.c: Likewise.
23883         * tests/test-inttypes.c: Likewise.
23884         * tests/test-isnan.c: Likewise.
23885         * tests/test-isnanf.c: Likewise.
23886         * tests/test-isnanl-nolibm.c: Likewise.
23887         * tests/test-isnanl.c: Likewise.
23888         * tests/test-isnanl.h: Likewise.
23889         * tests/test-ldexpl.c: Likewise.
23890         * tests/test-linked_list.c: Likewise.
23891         * tests/test-linkedhash_list.c: Likewise.
23892         * tests/test-locale.c: Likewise.
23893         * tests/test-localename.c: Likewise.
23894         * tests/test-lock.c: Likewise.
23895         * tests/test-lseek.c: Likewise.
23896         * tests/test-malloca.c: Likewise.
23897         * tests/test-math.c: Likewise.
23898         * tests/test-mbscasecmp.c: Likewise.
23899         * tests/test-mbscasestr1.c: Likewise.
23900         * tests/test-mbscasestr2.c: Likewise.
23901         * tests/test-mbscasestr3.c: Likewise.
23902         * tests/test-mbscasestr4.c: Likewise.
23903         * tests/test-mbschr.c: Likewise.
23904         * tests/test-mbscspn.c: Likewise.
23905         * tests/test-mbsncasecmp.c: Likewise.
23906         * tests/test-mbspbrk.c: Likewise.
23907         * tests/test-mbspcasecmp.c: Likewise.
23908         * tests/test-mbsrchr.c: Likewise.
23909         * tests/test-mbsspn.c: Likewise.
23910         * tests/test-mbsstr1.c: Likewise.
23911         * tests/test-mbsstr2.c: Likewise.
23912         * tests/test-mbsstr3.c: Likewise.
23913         * tests/test-md5.c: Likewise.
23914         * tests/test-memmem.c: Likewise.
23915         * tests/test-netinet_in.c: Likewise.
23916         * tests/test-open.c: Likewise.
23917         * tests/test-printf-frexp.c: Likewise.
23918         * tests/test-printf-frexpl.c: Likewise.
23919         * tests/test-printf-posix.c: Likewise.
23920         * tests/test-printf-posix.h: Likewise.
23921         * tests/test-rbtree_list.c: Likewise.
23922         * tests/test-rbtree_oset.c: Likewise.
23923         * tests/test-rbtreehash_list.c: Likewise.
23924         * tests/test-read-file.c: Likewise.
23925         * tests/test-rijndael.c: Likewise.
23926         * tests/test-search.c: Likewise.
23927         * tests/test-signbit.c: Likewise.
23928         * tests/test-sleep.c: Likewise.
23929         * tests/test-snprintf-posix.c: Likewise.
23930         * tests/test-snprintf-posix.h: Likewise.
23931         * tests/test-snprintf.c: Likewise.
23932         * tests/test-sprintf-posix.c: Likewise.
23933         * tests/test-sprintf-posix.h: Likewise.
23934         * tests/test-stat-time.c: Likewise.
23935         * tests/test-stdbool.c: Likewise.
23936         * tests/test-stdint.c: Likewise.
23937         * tests/test-stdio.c: Likewise.
23938         * tests/test-stdlib.c: Likewise.
23939         * tests/test-stpncpy.c: Likewise.
23940         * tests/test-strcasestr.c: Likewise.
23941         * tests/test-striconv.c: Likewise.
23942         * tests/test-striconveh.c: Likewise.
23943         * tests/test-striconveha.c: Likewise.
23944         * tests/test-string.c: Likewise.
23945         * tests/test-sys_select.c: Likewise.
23946         * tests/test-sys_socket.c: Likewise.
23947         * tests/test-sys_stat.c: Likewise.
23948         * tests/test-sys_time.c: Likewise.
23949         * tests/test-sysexits.c: Likewise.
23950         * tests/test-time.c: Likewise.
23951         * tests/test-tls.c: Likewise.
23952         * tests/test-trunc.c: Likewise.
23953         * tests/test-truncf.c: Likewise.
23954         * tests/test-truncl.c: Likewise.
23955         * tests/test-unistd.c: Likewise.
23956         * tests/test-vasnprintf-posix.c: Likewise.
23957         * tests/test-vasnprintf-posix2.c: Likewise.
23958         * tests/test-vasnprintf.c: Likewise.
23959         * tests/test-vasprintf-posix.c: Likewise.
23960         * tests/test-vasprintf.c: Likewise.
23961         * tests/test-verify.c: Likewise.
23962         * tests/test-vfprintf-posix.c: Likewise.
23963         * tests/test-vprintf-posix.c: Likewise.
23964         * tests/test-vsnprintf-posix.c: Likewise.
23965         * tests/test-vsnprintf.c: Likewise.
23966         * tests/test-vsprintf-posix.c: Likewise.
23967         * tests/test-wchar.c: Likewise.
23968         * tests/test-wctype.c: Likewise.
23969         * tests/test-wcwidth.c: Likewise.
23970         * tests/test-xstrtol.c: Likewise.
23971         * tests/test-xvasprintf.c: Likewise.
23972         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23973         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23974         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23975         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23976         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23977         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23978         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23979         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23980         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23981         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23982         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23983         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23984         * tests/uniname/test-uninames.c: Likewise.
23985         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23986         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
23987         * tests/unistdio/test-u16-printf1.h: Likewise.
23988         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23989         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23990         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23991         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23992         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23993         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23994         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23995         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
23996         * tests/unistdio/test-u32-printf1.h: Likewise.
23997         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23998         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23999         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24000         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24001         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24002         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24003         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24004         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
24005         * tests/unistdio/test-u8-printf1.h: Likewise.
24006         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24007         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24008         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24009         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24010         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24011         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24012         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24013         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
24014         * tests/unistdio/test-ulc-printf1.h: Likewise.
24015         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24016         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24017         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24018         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24019         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24020         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24021         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24022         * tests/uniwidth/test-u16-width.c: Likewise.
24023         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24024         * tests/uniwidth/test-u32-width.c: Likewise.
24025         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24026         * tests/uniwidth/test-u8-width.c: Likewise.
24027         * tests/uniwidth/test-uc_width.c: Likewise.
24028         * config/srclist-update: Likewise.
24029         (fixlicense): Update to GPLv3+.
24030
24031         Change copyright notice from LGPLv2.1+ to LGPLv3+.
24032         * tests/test-tsearch.c: Change copyright notice.
24033
24034         Change copyright notice from LGPLv2.0+ to LGPLv3+.
24035         * lib/c-strcaseeq.h: Change copyright notice.
24036         * lib/streq.h: Likewise.
24037         * lib/uniconv.h: Likewise.
24038         * lib/uniconv/u-conv-from-enc.h: Likewise.
24039         * lib/uniconv/u-conv-to-enc.h: Likewise.
24040         * lib/uniconv/u-strconv-from-enc.h: Likewise.
24041         * lib/uniconv/u-strconv-to-enc.h: Likewise.
24042         * lib/uniconv/u16-conv-from-enc.c: Likewise.
24043         * lib/uniconv/u16-conv-to-enc.c: Likewise.
24044         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
24045         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
24046         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
24047         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
24048         * lib/uniconv/u32-conv-from-enc.c: Likewise.
24049         * lib/uniconv/u32-conv-to-enc.c: Likewise.
24050         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
24051         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
24052         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
24053         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
24054         * lib/uniconv/u8-conv-from-enc.c: Likewise.
24055         * lib/uniconv/u8-conv-to-enc.c: Likewise.
24056         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
24057         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
24058         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
24059         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
24060         * lib/uniname.h: Likewise.
24061         * lib/uniname/uniname.c: Likewise.
24062         * lib/unistdio.h: Likewise.
24063         * lib/unistdio/u-asnprintf.h: Likewise.
24064         * lib/unistdio/u-asprintf.h: Likewise.
24065         * lib/unistdio/u-printf-args.c: Likewise.
24066         * lib/unistdio/u-printf-args.h: Likewise.
24067         * lib/unistdio/u-printf-parse.h: Likewise.
24068         * lib/unistdio/u-snprintf.h: Likewise.
24069         * lib/unistdio/u-sprintf.h: Likewise.
24070         * lib/unistdio/u-vasprintf.h: Likewise.
24071         * lib/unistdio/u-vsnprintf.h: Likewise.
24072         * lib/unistdio/u-vsprintf.h: Likewise.
24073         * lib/unistdio/u16-asnprintf.c: Likewise.
24074         * lib/unistdio/u16-asprintf.c: Likewise.
24075         * lib/unistdio/u16-printf-parse.c: Likewise.
24076         * lib/unistdio/u16-snprintf.c: Likewise.
24077         * lib/unistdio/u16-sprintf.c: Likewise.
24078         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
24079         * lib/unistdio/u16-u16-asprintf.c: Likewise.
24080         * lib/unistdio/u16-u16-snprintf.c: Likewise.
24081         * lib/unistdio/u16-u16-sprintf.c: Likewise.
24082         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
24083         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
24084         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
24085         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
24086         * lib/unistdio/u16-vasnprintf.c: Likewise.
24087         * lib/unistdio/u16-vasprintf.c: Likewise.
24088         * lib/unistdio/u16-vsnprintf.c: Likewise.
24089         * lib/unistdio/u16-vsprintf.c: Likewise.
24090         * lib/unistdio/u32-asnprintf.c: Likewise.
24091         * lib/unistdio/u32-asprintf.c: Likewise.
24092         * lib/unistdio/u32-printf-parse.c: Likewise.
24093         * lib/unistdio/u32-snprintf.c: Likewise.
24094         * lib/unistdio/u32-sprintf.c: Likewise.
24095         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
24096         * lib/unistdio/u32-u32-asprintf.c: Likewise.
24097         * lib/unistdio/u32-u32-snprintf.c: Likewise.
24098         * lib/unistdio/u32-u32-sprintf.c: Likewise.
24099         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
24100         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
24101         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
24102         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
24103         * lib/unistdio/u32-vasnprintf.c: Likewise.
24104         * lib/unistdio/u32-vasprintf.c: Likewise.
24105         * lib/unistdio/u32-vsnprintf.c: Likewise.
24106         * lib/unistdio/u32-vsprintf.c: Likewise.
24107         * lib/unistdio/u8-asnprintf.c: Likewise.
24108         * lib/unistdio/u8-asprintf.c: Likewise.
24109         * lib/unistdio/u8-printf-parse.c: Likewise.
24110         * lib/unistdio/u8-snprintf.c: Likewise.
24111         * lib/unistdio/u8-sprintf.c: Likewise.
24112         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
24113         * lib/unistdio/u8-u8-asprintf.c: Likewise.
24114         * lib/unistdio/u8-u8-snprintf.c: Likewise.
24115         * lib/unistdio/u8-u8-sprintf.c: Likewise.
24116         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
24117         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
24118         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
24119         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
24120         * lib/unistdio/u8-vasnprintf.c: Likewise.
24121         * lib/unistdio/u8-vasprintf.c: Likewise.
24122         * lib/unistdio/u8-vsnprintf.c: Likewise.
24123         * lib/unistdio/u8-vsprintf.c: Likewise.
24124         * lib/unistdio/ulc-asnprintf.c: Likewise.
24125         * lib/unistdio/ulc-asprintf.c: Likewise.
24126         * lib/unistdio/ulc-printf-parse.c: Likewise.
24127         * lib/unistdio/ulc-snprintf.c: Likewise.
24128         * lib/unistdio/ulc-sprintf.c: Likewise.
24129         * lib/unistdio/ulc-vasnprintf.c: Likewise.
24130         * lib/unistdio/ulc-vasprintf.c: Likewise.
24131         * lib/unistdio/ulc-vsnprintf.c: Likewise.
24132         * lib/unistdio/ulc-vsprintf.c: Likewise.
24133         * lib/unistr.h: Likewise.
24134         * lib/unistr/u-cpy-alloc.h: Likewise.
24135         * lib/unistr/u-cpy.h: Likewise.
24136         * lib/unistr/u-endswith.h: Likewise.
24137         * lib/unistr/u-move.h: Likewise.
24138         * lib/unistr/u-set.h: Likewise.
24139         * lib/unistr/u-startswith.h: Likewise.
24140         * lib/unistr/u-stpcpy.h: Likewise.
24141         * lib/unistr/u-stpncpy.h: Likewise.
24142         * lib/unistr/u-strcat.h: Likewise.
24143         * lib/unistr/u-strcpy.h: Likewise.
24144         * lib/unistr/u-strcspn.h: Likewise.
24145         * lib/unistr/u-strdup.h: Likewise.
24146         * lib/unistr/u-strlen.h: Likewise.
24147         * lib/unistr/u-strncat.h: Likewise.
24148         * lib/unistr/u-strncpy.h: Likewise.
24149         * lib/unistr/u-strnlen.h: Likewise.
24150         * lib/unistr/u-strpbrk.h: Likewise.
24151         * lib/unistr/u-strspn.h: Likewise.
24152         * lib/unistr/u-strstr.h: Likewise.
24153         * lib/unistr/u-strtok.h: Likewise.
24154         * lib/unistr/u16-check.c: Likewise.
24155         * lib/unistr/u16-chr.c: Likewise.
24156         * lib/unistr/u16-cmp.c: Likewise.
24157         * lib/unistr/u16-cpy-alloc.c: Likewise.
24158         * lib/unistr/u16-cpy.c: Likewise.
24159         * lib/unistr/u16-endswith.c: Likewise.
24160         * lib/unistr/u16-mblen.c: Likewise.
24161         * lib/unistr/u16-mbsnlen.c: Likewise.
24162         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24163         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24164         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24165         * lib/unistr/u16-mbtouc.c: Likewise.
24166         * lib/unistr/u16-mbtoucr.c: Likewise.
24167         * lib/unistr/u16-move.c: Likewise.
24168         * lib/unistr/u16-next.c: Likewise.
24169         * lib/unistr/u16-prev.c: Likewise.
24170         * lib/unistr/u16-set.c: Likewise.
24171         * lib/unistr/u16-startswith.c: Likewise.
24172         * lib/unistr/u16-stpcpy.c: Likewise.
24173         * lib/unistr/u16-stpncpy.c: Likewise.
24174         * lib/unistr/u16-strcat.c: Likewise.
24175         * lib/unistr/u16-strchr.c: Likewise.
24176         * lib/unistr/u16-strcmp.c: Likewise.
24177         * lib/unistr/u16-strcpy.c: Likewise.
24178         * lib/unistr/u16-strcspn.c: Likewise.
24179         * lib/unistr/u16-strdup.c: Likewise.
24180         * lib/unistr/u16-strlen.c: Likewise.
24181         * lib/unistr/u16-strmblen.c: Likewise.
24182         * lib/unistr/u16-strmbtouc.c: Likewise.
24183         * lib/unistr/u16-strncat.c: Likewise.
24184         * lib/unistr/u16-strncmp.c: Likewise.
24185         * lib/unistr/u16-strncpy.c: Likewise.
24186         * lib/unistr/u16-strnlen.c: Likewise.
24187         * lib/unistr/u16-strpbrk.c: Likewise.
24188         * lib/unistr/u16-strrchr.c: Likewise.
24189         * lib/unistr/u16-strspn.c: Likewise.
24190         * lib/unistr/u16-strstr.c: Likewise.
24191         * lib/unistr/u16-strtok.c: Likewise.
24192         * lib/unistr/u16-to-u32.c: Likewise.
24193         * lib/unistr/u16-to-u8.c: Likewise.
24194         * lib/unistr/u16-uctomb-aux.c: Likewise.
24195         * lib/unistr/u16-uctomb.c: Likewise.
24196         * lib/unistr/u32-check.c: Likewise.
24197         * lib/unistr/u32-chr.c: Likewise.
24198         * lib/unistr/u32-cmp.c: Likewise.
24199         * lib/unistr/u32-cpy-alloc.c: Likewise.
24200         * lib/unistr/u32-cpy.c: Likewise.
24201         * lib/unistr/u32-endswith.c: Likewise.
24202         * lib/unistr/u32-mblen.c: Likewise.
24203         * lib/unistr/u32-mbsnlen.c: Likewise.
24204         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24205         * lib/unistr/u32-mbtouc.c: Likewise.
24206         * lib/unistr/u32-mbtoucr.c: Likewise.
24207         * lib/unistr/u32-move.c: Likewise.
24208         * lib/unistr/u32-next.c: Likewise.
24209         * lib/unistr/u32-prev.c: Likewise.
24210         * lib/unistr/u32-set.c: Likewise.
24211         * lib/unistr/u32-startswith.c: Likewise.
24212         * lib/unistr/u32-stpcpy.c: Likewise.
24213         * lib/unistr/u32-stpncpy.c: Likewise.
24214         * lib/unistr/u32-strcat.c: Likewise.
24215         * lib/unistr/u32-strchr.c: Likewise.
24216         * lib/unistr/u32-strcmp.c: Likewise.
24217         * lib/unistr/u32-strcpy.c: Likewise.
24218         * lib/unistr/u32-strcspn.c: Likewise.
24219         * lib/unistr/u32-strdup.c: Likewise.
24220         * lib/unistr/u32-strlen.c: Likewise.
24221         * lib/unistr/u32-strmblen.c: Likewise.
24222         * lib/unistr/u32-strmbtouc.c: Likewise.
24223         * lib/unistr/u32-strncat.c: Likewise.
24224         * lib/unistr/u32-strncmp.c: Likewise.
24225         * lib/unistr/u32-strncpy.c: Likewise.
24226         * lib/unistr/u32-strnlen.c: Likewise.
24227         * lib/unistr/u32-strpbrk.c: Likewise.
24228         * lib/unistr/u32-strrchr.c: Likewise.
24229         * lib/unistr/u32-strspn.c: Likewise.
24230         * lib/unistr/u32-strstr.c: Likewise.
24231         * lib/unistr/u32-strtok.c: Likewise.
24232         * lib/unistr/u32-to-u16.c: Likewise.
24233         * lib/unistr/u32-to-u8.c: Likewise.
24234         * lib/unistr/u32-uctomb.c: Likewise.
24235         * lib/unistr/u8-check.c: Likewise.
24236         * lib/unistr/u8-chr.c: Likewise.
24237         * lib/unistr/u8-cmp.c: Likewise.
24238         * lib/unistr/u8-cpy-alloc.c: Likewise.
24239         * lib/unistr/u8-cpy.c: Likewise.
24240         * lib/unistr/u8-endswith.c: Likewise.
24241         * lib/unistr/u8-mblen.c: Likewise.
24242         * lib/unistr/u8-mbsnlen.c: Likewise.
24243         * lib/unistr/u8-mbtouc-aux.c: Likewise.
24244         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24245         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24246         * lib/unistr/u8-mbtouc.c: Likewise.
24247         * lib/unistr/u8-mbtoucr.c: Likewise.
24248         * lib/unistr/u8-move.c: Likewise.
24249         * lib/unistr/u8-next.c: Likewise.
24250         * lib/unistr/u8-prev.c: Likewise.
24251         * lib/unistr/u8-set.c: Likewise.
24252         * lib/unistr/u8-startswith.c: Likewise.
24253         * lib/unistr/u8-stpcpy.c: Likewise.
24254         * lib/unistr/u8-stpncpy.c: Likewise.
24255         * lib/unistr/u8-strcat.c: Likewise.
24256         * lib/unistr/u8-strchr.c: Likewise.
24257         * lib/unistr/u8-strcmp.c: Likewise.
24258         * lib/unistr/u8-strcpy.c: Likewise.
24259         * lib/unistr/u8-strcspn.c: Likewise.
24260         * lib/unistr/u8-strdup.c: Likewise.
24261         * lib/unistr/u8-strlen.c: Likewise.
24262         * lib/unistr/u8-strmblen.c: Likewise.
24263         * lib/unistr/u8-strmbtouc.c: Likewise.
24264         * lib/unistr/u8-strncat.c: Likewise.
24265         * lib/unistr/u8-strncmp.c: Likewise.
24266         * lib/unistr/u8-strncpy.c: Likewise.
24267         * lib/unistr/u8-strnlen.c: Likewise.
24268         * lib/unistr/u8-strpbrk.c: Likewise.
24269         * lib/unistr/u8-strrchr.c: Likewise.
24270         * lib/unistr/u8-strspn.c: Likewise.
24271         * lib/unistr/u8-strstr.c: Likewise.
24272         * lib/unistr/u8-strtok.c: Likewise.
24273         * lib/unistr/u8-to-u16.c: Likewise.
24274         * lib/unistr/u8-to-u32.c: Likewise.
24275         * lib/unistr/u8-uctomb-aux.c: Likewise.
24276         * lib/unistr/u8-uctomb.c: Likewise.
24277         * lib/unitypes.h: Likewise.
24278         * lib/uniwidth.h: Likewise.
24279         * lib/uniwidth/cjk.h: Likewise.
24280         * lib/uniwidth/u16-strwidth.c: Likewise.
24281         * lib/uniwidth/u16-width.c: Likewise.
24282         * lib/uniwidth/u32-strwidth.c: Likewise.
24283         * lib/uniwidth/u32-width.c: Likewise.
24284         * lib/uniwidth/u8-strwidth.c: Likewise.
24285         * lib/uniwidth/u8-width.c: Likewise.
24286         * lib/uniwidth/width.c: Likewise.
24287
24288 2007-10-07  Bruno Haible  <bruno@clisp.org>
24289
24290         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
24291         The file is still under LGPL (see modules/inttypes).
24292
24293 2007-10-06  Bruno Haible  <bruno@clisp.org>
24294
24295         * modules/trunc (Dependencies): Add 'extensions'.
24296         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
24297         Reported by Ben Pfaff <blp@gnu.org>.
24298
24299 2007-10-06  Bruno Haible  <bruno@clisp.org>
24300
24301         * modules/freopen-tests: New file.
24302         * tests/test-freopen.c: New file.
24303
24304         * modules/fopen-tests: New file.
24305         * tests/test-fopen.c: New file.
24306
24307         * modules/fopen: New file.
24308         * lib/fopen.c: New file.
24309         * m4/fopen.m4: New file.
24310         * modules/freopen: New file.
24311         * lib/freopen.c: New file.
24312         * m4/freopen.m4: New file.
24313         * lib/stdio.in.h (fopen, freopen): New declarations.
24314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
24315         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
24316         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
24317         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
24318         * doc/functions/fopen.texi: Mention the 'fopen' module.
24319         * doc/functions/freopen.texi: Mention the 'freopen' module.
24320
24321 2007-10-06  Bruno Haible  <bruno@clisp.org>
24322
24323         * modules/open-tests: New file.
24324         * tests/test-open.c: New file.
24325
24326         * modules/open: New file.
24327         * lib/open.c: New file.
24328         * m4/open.m4: New file.
24329         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
24330         lib/open.c does.
24331         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
24332         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
24333         macros.
24334         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
24335         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
24336         REPLACE_OPEN.
24337         * doc/functions/open.texi: Mention the 'open' module.
24338
24339 2007-10-04  Bruno Haible  <bruno@clisp.org>
24340
24341         * modules/ceill-tests: New file.
24342         * tests/test-ceill.c: New file.
24343
24344         * modules/ceill: New file.
24345         * lib/ceill.c: Replace entire file.
24346         * m4/ceill.m4: New file.
24347         * lib/math.in.h (ceill): Replace declaration.
24348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
24349         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
24350         * doc/functions/ceill.texi: Mention the 'ceill' module.
24351         * modules/mathl (Files): Remove lib/ceill.c.
24352         (Depends-on): Add ceill.
24353
24354 2007-10-04  Bruno Haible  <bruno@clisp.org>
24355
24356         * modules/ceilf-tests: New file.
24357         * tests/test-ceilf.c: New file.
24358
24359         * modules/ceilf: New file.
24360         * lib/ceil.c: New file.
24361         * lib/ceilf.c: New file.
24362         * m4/ceilf.m4: New file.
24363         * lib/math.in.h (ceilf): New declaration.
24364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
24365         HAVE_DECL_CEILF.
24366         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
24367         HAVE_DECL_CEILF.
24368         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
24369
24370 2007-10-04  Bruno Haible  <bruno@clisp.org>
24371
24372         * modules/floorl-tests: New file.
24373         * tests/test-floorl.c: New file.
24374
24375         * modules/floorl: New file.
24376         * lib/floorl.c: Replace entire file.
24377         * m4/floorl.m4: New file.
24378         * lib/math.in.h (floorl): Replace declaration.
24379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
24380         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
24381         * doc/functions/floorl.texi: Mention the 'floorl' module.
24382         * modules/mathl (Files): Remove lib/floorl.c.
24383         (Depends-on): Add floorl.
24384
24385 2007-10-04  Bruno Haible  <bruno@clisp.org>
24386
24387         * modules/floorf-tests: New file.
24388         * tests/test-floorf.c: New file.
24389
24390         * modules/floorf: New file.
24391         * lib/floor.c: New file.
24392         * lib/floorf.c: New file.
24393         * m4/floorf.m4: New file.
24394         * lib/math.in.h (floorf): New declaration.
24395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
24396         HAVE_DECL_FLOORF.
24397         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
24398         HAVE_DECL_FLOORF.
24399         * doc/functions/floorf.texi: Mention the 'floorf' module.
24400
24401 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
24402             Bruno Haible  <bruno@clisp.org>
24403
24404         Advertise for the Git server instead of the CVS server.
24405         * doc/gnulib-intro.texi (Steady Development): Mention the Git
24406         repository instead of the CVS one.
24407         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
24408         about all VCS systems generically.
24409         * doc/gnulib.texi (Introduction): Capitalize `Git'.
24410
24411 2007-10-04  Bruno Haible  <bruno@clisp.org>
24412
24413         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
24414         means.
24415         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
24416
24417 2007-10-04  Bruno Haible  <bruno@clisp.org>
24418
24419         * modules/truncl-tests: New file.
24420         * tests/test-truncl.c: New file.
24421
24422         * modules/truncl: New file.
24423         * lib/truncl.c: New file.
24424         * m4/truncl.m4: New file.
24425         * lib/math.in.h (truncl): New declaration.
24426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
24427         HAVE_DECL_TRUNCL.
24428         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
24429         HAVE_DECL_TRUNCL.
24430         * doc/functions/truncl.texi: Mention the 'truncl' module.
24431
24432 2007-10-04  Bruno Haible  <bruno@clisp.org>
24433
24434         * modules/truncf-tests: New file.
24435         * tests/test-truncf.c: New file.
24436
24437         * modules/truncf: New file.
24438         * lib/trunc.c: Make paramerizable through USE_* macros.
24439         * lib/truncf.c: New file.
24440         * m4/truncf.m4: New file.
24441         * lib/math.in.h (truncf): New declaration.
24442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
24443         HAVE_DECL_TRUNCF.
24444         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
24445         HAVE_DECL_TRUNCF.
24446         * doc/functions/truncf.texi: Mention the 'truncf' module.
24447
24448 2007-10-03  Bruno Haible  <bruno@clisp.org>
24449
24450         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24451         augmentation also for tests modules.
24452         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
24453         * modules/atexit-tests (Makefile.am): Likewise.
24454         * modules/binary-io-tests (Makefile.am): Likewise.
24455         * modules/c-strcase-tests (Makefile.am): Likewise.
24456         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
24457         * modules/canonicalize-tests (Makefile.am): Likewise.
24458         * modules/closein-tests (Makefile.am): Likewise.
24459         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24460         * modules/freadahead-tests (Makefile.am): Likewise.
24461         * modules/fseek-tests (Makefile.am): Likewise.
24462         * modules/fseeko-tests (Makefile.am): Likewise.
24463         * modules/ftell-tests (Makefile.am): Likewise.
24464         * modules/ftello-tests (Makefile.am): Likewise.
24465         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
24466         * modules/isnanl-tests (Makefile.am): Likewise.
24467         * modules/lseek-tests (Makefile.am): Likewise.
24468         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24469         * modules/mbscasestr-tests (Makefile.am): Likewise.
24470         * modules/mbschr-tests (Makefile.am): Likewise.
24471         * modules/mbscspn-tests (Makefile.am): Likewise.
24472         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24473         * modules/mbspbrk-tests (Makefile.am): Likewise.
24474         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24475         * modules/mbsrchr-tests (Makefile.am): Likewise.
24476         * modules/mbsspn-tests (Makefile.am): Likewise.
24477         * modules/mbsstr-tests (Makefile.am): Likewise.
24478         * modules/printf-posix-tests (Makefile.am): Likewise.
24479         * modules/snprintf-posix-tests (Makefile.am): Likewise.
24480         * modules/sprintf-posix-tests (Makefile.am): Likewise.
24481         * modules/tsearch-tests (Makefile.am): Likewise.
24482         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24483         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24484         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24485         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24486         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24487         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24488         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24489         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24490         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
24491         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
24492         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24493         * modules/xstrtol-tests (Makefile.am): Likewise.
24494         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24495         * modules/yesno-tests (Makefile.am): Likewise.
24496
24497 2007-10-03  Bruno Haible  <bruno@clisp.org>
24498
24499         * modules/trunc-tests: New file.
24500         * tests/test-trunc.c: New file.
24501
24502         * modules/trunc: New file.
24503         * lib/trunc.c: New file.
24504         * m4/trunc.m4: New file.
24505         * lib/math.in.h (trunc): New declaration.
24506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
24507         HAVE_DECL_TRUNC.
24508         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
24509         HAVE_DECL_TRUNC.
24510         * doc/functions/trunc.texi: Mention the 'trunc' module.
24511
24512 2007-10-03  Bruno Haible  <bruno@clisp.org>
24513
24514         * tests/test-fpending.c: New file, mostly copied
24515         from coreutils/lib/t-fpending.c.
24516         * modules/fpending-tests: New file.
24517
24518 2007-10-03  Bruno Haible  <bruno@clisp.org>
24519
24520         Port the stdio extensions to QNX (untested).
24521         * lib/fseterr.c (fseterr): Add support for QNX.
24522         * lib/fbufmode.c (fbufmode): Likewise.
24523         * lib/freadable.c (freadable): Likewise.
24524         * lib/fwritable.c (fwritable): Likewise.
24525         * lib/freading.c (freading): Likewise.
24526         * lib/fwriting.c (fwriting): Likewise.
24527         * lib/freadahead.c (freadahed): Likewise.
24528         * lib/fpurge.c (fpurge): Likewise.
24529         * lib/fseeko.c (rpl_fseeko): Likewise.
24530
24531 2007-10-03  Bruno Haible  <bruno@clisp.org>
24532             Jim Meyering  <jim@meyering.net>
24533             Eric Blake  <ebb9@byu.net>
24534
24535         * doc/relocatable.texi: Use @command instead of @program.
24536
24537 2007-10-02  Jim Meyering  <jim@meyering.net>
24538
24539         Perform one more "_.h" -> ".in.h" substitution.
24540         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
24541         instead of unistd_.h here, too.
24542
24543 2007-10-01  Bruno Haible  <bruno@clisp.org>
24544
24545         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
24546         Needed for the alloca-opt module.
24547
24548 2007-09-30  Bruno Haible  <bruno@clisp.org>
24549
24550         * lib/alloca.in.h: Renamed from lib/alloca_.h.
24551         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
24552         alloca_.h.
24553         * lib/argz.in.h: Renamed from lib/argz_.h.
24554         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
24555         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
24556         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
24557         byteswap_.h.
24558         * lib/dirent.in.h: Renamed from lib/dirent_.h.
24559         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
24560         dirent_.h.
24561         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
24562         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
24563         fcntl_.h.
24564         * lib/float.in.h: Renamed from lib/float_.h.
24565         * modules/float (Files, Makefile.am): Use float.in.h instead of
24566         float_.h.
24567         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
24568         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
24569         fnmatch_.h.
24570         * lib/getopt.in.h: Renamed from lib/getopt_.h.
24571         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
24572         getopt_.h.
24573         * lib/glob.in.h: Renamed from lib/glob_.h.
24574         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
24575         * lib/iconv.in.h: Renamed from lib/iconv_.h.
24576         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
24577         iconv_.h.
24578         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
24579         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
24580         inttypes_.h.
24581         * lib/locale.in.h: Renamed from lib/locale_.h.
24582         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
24583         locale_.h.
24584         * lib/math.in.h: Renamed from lib/math_.h.
24585         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
24586         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
24587         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
24588         of netinet_in_.h. Add dependency.
24589         * lib/poll.in.h: Renamed from lib/poll_.h.
24590         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
24591         * lib/search.in.h: Renamed from lib/search_.h.
24592         * modules/search (Files, Makefile.am): Use search.in.h instead of
24593         search_.h.
24594         * lib/signal.in.h: Renamed from lib/signal_.h.
24595         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
24596         _signal.h.
24597         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
24598         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
24599         stdbool_.h.
24600         * lib/stdint.in.h: Renamed from lib/stdint_.h.
24601         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
24602         stdint_.h.
24603         * lib/stdio.in.h: Renamed from lib/stdio_.h.
24604         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
24605         stdio_.h.
24606         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
24607         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
24608         stdlib_.h.
24609         * lib/string.in.h: Renamed from lib/string_.h.
24610         * modules/string (Files, Makefile.am): Use string.in.h instead of
24611         string_.h.
24612         * doc/gnulib-tool.texi (Initial import): Update.
24613         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
24614         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
24615         of sys_select_.h. Add dependency.
24616         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
24617         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
24618         of sys_socket_.h.
24619         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
24620         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
24621         sys_stat_.h.
24622         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
24623         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
24624         sys_time_.h.
24625         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
24626         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
24627         sysexits_.h.
24628         * lib/time.in.h: Renamed from lib/time_.h.
24629         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
24630         * lib/unistd.in.h: Renamed from lib/unistd_.h.
24631         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
24632         unistd_.h.
24633         * lib/wchar.in.h: Renamed from lib/wchar_.h.
24634         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
24635         wchar_.h.
24636         * lib/wctype.in.h: Renamed from lib/wctype_.h.
24637         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
24638         wctype_.h.
24639         * build-aux/bootstrap (slurp): Update.
24640         * lib/.cppi-disable: Update.
24641
24642 2007-09-30  Bruno Haible  <bruno@clisp.org>
24643
24644         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
24645         Needed on BeOS.
24646
24647 2007-09-30  Bruno Haible  <bruno@clisp.org>
24648
24649         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
24650
24651 2007-09-29  Bruno Haible  <bruno@clisp.org>
24652
24653         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
24654
24655 2007-09-29  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
24658         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
24659         * build-aux/install-reloc: Compile also areadlink.c.
24660         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
24661
24662 2007-09-29  Bruno Haible  <bruno@clisp.org>
24663
24664         * gnulib-tool (func_emit_initmacro_done): Indentation.
24665
24666 2007-09-29  Bruno Haible  <bruno@clisp.org>
24667
24668         * README: Add CVS checkout update instructions.
24669         Info from Bob Proulx <bob@proulx.com>.
24670
24671 2007-09-28  Eric Blake  <ebb9@byu.net>
24672
24673         Provide move-if-change.
24674         * build-aux/move-if-change: New file, based on best practice
24675         rather than any canonical upstream location.
24676
24677 2007-09-28  Jim Meyering  <jim@meyering.net>
24678
24679         Fix canonicalize loop-detection corner case.
24680         Do not attempt to stat the symlink values stored via seen_triple.
24681         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
24682         on linux-2.6.18, (but not 2.6.22).
24683         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
24684         triple_compare.  The former compares dev,ino,filename, while the latter
24685         would actually stat dirname(filename) when dev and ino were equal.
24686         * lib/hash-triple.c: Install <string.h>.
24687         (STREQ): Define.
24688         (triple_compare_ino_str): New function.
24689         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
24690
24691 2007-09-28  Eric Blake  <ebb9@byu.net>
24692
24693         Enforce that AC_REPLACE_FUNCS files exist.
24694         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
24695         override check for typos.
24696
24697         Fix test-closein on Solaris 10.
24698         * tests/test-closein.c (main): Don't assume stdin can be inherited
24699         closed on all systems.
24700         * tests/test-closein.sh: Likewise.
24701         Reported by Piotr Tarnowski.
24702
24703 2007-09-28  Jim Meyering  <jim@meyering.net>
24704
24705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
24706
24707 2007-09-27  Jim Meyering  <jim@meyering.net>
24708
24709         canonicalize: Avoid a false-positive cycle failure.
24710         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
24711         Sort.  Remove cycle-check.
24712         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
24713         not cycle-check.h.
24714         (seen_triple): New function.
24715         (canonicalize_filename_mode): Use it instead of cycle-check.
24716         * tests/test-canonicalize.c: Add a test for this bug.
24717         * tests/test-canonicalize.sh: Set up and run the test.
24718
24719         New module, file-set, from coreutils.
24720         * modules/file-set: Define it.
24721         * lib/file-set.c, lib/file-set.h: Implement.
24722
24723         New module, hash-triple, from coreutils.
24724         * modules/hash-triple: Define it.
24725         * lib/hash-triple.c, lib/hash-triple.h: Implement.
24726
24727 2007-09-25  Eric Blake  <ebb9@byu.net>
24728
24729         Fix strerror on Interix.
24730         * lib/string_.h (strerror): Declare replacement.
24731         * doc/functions/strerror.texi (strerror): Document the Interix
24732         shortcoming.
24733         * modules/string (Makefile.am): Support new hooks.
24734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
24735         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
24736         gl_FUNC_STRERROR_SEPARATE.
24737         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
24738         * lib/strerror.c (rpl_strerror): Provide replacement.
24739         * modules/strerror (Depends-on): Add string.
24740         (configure.ac): Detect use of module.
24741         * tests/test-strerror.c: New file.
24742         * modules/strerror-tests: New test module.
24743         * modules/argp (Depends-on): Add strerror.
24744         * modules/error (Depends-on): Likewise.
24745         Reported by Martin Koeppe.
24746
24747 2007-09-24  Bruno Haible  <bruno@clisp.org>
24748
24749         * README: Update git instructions.
24750
24751 2007-09-24  Eric Blake  <ebb9@byu.net>
24752
24753         Revert fpending breakage from 2007-09-08.
24754         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
24755         __fpending.c.
24756
24757 2007-09-24  Jim Meyering  <jim@meyering.net>
24758
24759         filenamecat.c: Add a test.
24760         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
24761         showing how the function works when DIR is the empty string.
24762
24763 2007-09-21  Simon Josefsson  <simon@josefsson.org>
24764
24765         * tests/test-canonicalize.sh: Turn on executable bit.
24766
24767 2007-09-19  Eric Blake  <ebb9@byu.net>
24768
24769         * README: Update CVS instructions.
24770
24771 2007-09-18  Bruno Haible  <bruno@clisp.org>
24772
24773         * modules/areadlink: New file.
24774         * lib/areadlink.h (areadlink): New declaration.
24775         * lib/areadlink.c: New file, based on lib/xreadlink.c.
24776
24777 2007-09-17  Jim Meyering  <jim@meyering.net>
24778
24779         * lib/savewd.c (ESTALE) [!defined]: Define.
24780         Reported to be required on Interix by Martin Koeppe.
24781
24782 2007-09-17  Bruno Haible  <bruno@clisp.org>
24783
24784         * gnulib-tool (func_version): Use $version.
24785
24786 2007-09-16  Bruno Haible  <bruno@clisp.org>
24787
24788         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
24789         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
24790         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
24791         Reported by Greg Schafer <gschafer@zip.com.au>.
24792
24793 2007-09-15  Bruno Haible  <bruno@clisp.org>
24794
24795         * gnulib-tool (sed): Try a little harder to make bash understand the
24796         alias.
24797         Reported by Bruce Korb <bruce.korb@gmail.com>.
24798
24799 2007-09-13  Eric Blake  <ebb9@byu.net>
24800
24801         * ChangeLog: Remove conflict markers.
24802
24803 2007-09-13  Simon Josefsson  <simon@josefsson.org>
24804
24805         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
24806         Reported by Bruno Haible <bruno@clisp.org>.
24807
24808 2007-09-12  Bruno Haible  <bruno@clisp.org>
24809
24810         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
24811         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
24812         is not defined.
24813
24814 2007-09-12  Eric Blake  <ebb9@byu.net>
24815
24816         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
24817         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
24818         Autoconf definition.
24819         * modules/euidaccess (Depends-on): Add extensions, for
24820         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
24821         * modules/fnmatch (Depends-on): Likewise.
24822         * modules/getaddrinfo (Depends-on): Likewise.
24823         * modules/getdelim (Depends-on): Likewise.
24824         * modules/getline (Depends-on): Likewise.
24825         * modules/getsubopt (Depends-on): Likewise.
24826         * modules/gettext (Depends-on): Likewise.
24827         * modules/group-member (Depends-on): Likewise.
24828         * modules/mbchar (Depends-on): Likewise.
24829         * modules/memmem (Depends-on): Likewise.
24830         * modules/mempcpy (Depends-on): Likewise.
24831         * modules/memrchr (Depends-on): Likewise.
24832         * modules/pagealign_alloc (Depends-on): Likewise.
24833         * modules/readutmp (Depends-on): Likewise.
24834         * modules/stpcpy (Depends-on): Likewise.
24835         * modules/stpncpy (Depends-on): Likewise.
24836         * modules/strchrnul (Depends-on): Likewise.
24837         * modules/strndup (Depends-on): Likewise.
24838         * modules/strsep (Depends-on): Likewise.
24839         * modules/strverscmp (Depends-on): Likewise.
24840         * modules/vasprintf (Depends-on): Likewise.
24841         * modules/wcwidth (Depends-on): Likewise.
24842         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
24843         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
24844         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
24845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
24846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24848         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
24849         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24850         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
24851         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24855         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24856         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
24857         * m4/readutmp.m4 (gl_READUTMP): Likewise.
24858         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24859         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24861         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24862         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24863         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24864         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24865         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
24866         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
24867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24868         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
24869         so that lock.m4 can be used in gettext without extensions module.
24870
24871 2007-09-11  Bruno Haible  <bruno@clisp.org>
24872
24873         * m4/isc-posix.m4: Remove file.
24874         Suggested by Eric Blake.
24875
24876 2007-09-11  Eric Blake  <ebb9@byu.net>
24877
24878         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
24879
24880 2007-09-10  Bruno Haible  <bruno@clisp.org>
24881
24882         * posix-modules: Fix typo in error message.
24883         Reported by Matt <mkraai@beckman.com>.
24884
24885 2007-09-09  Bruno Haible  <bruno@clisp.org>
24886
24887         * doc/functions/getdelim.texi: Update list of platforms lacking the
24888         function.
24889         * doc/functions/getline.texi: Likewise.
24890
24891 2007-09-09  Jim Meyering  <jim@meyering.net>
24892
24893         * lib/hash.c (hash_initialize): Detect calloc failure.
24894         Reported by Bruno Haible.
24895
24896 2007-09-09  Bruno Haible  <bruno@clisp.org>
24897
24898         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
24899         malloc or realloc fails.
24900
24901 2007-09-09  Bruno Haible  <bruno@clisp.org>
24902
24903         * modules/getcwd (Depends-on): Add malloc-posix.
24904         * modules/glob (Depends-on): Likewise.
24905         * modules/putenv (Depends-on): Likewise.
24906         * modules/strdup (Depends-on): Likewise.
24907         * modules/getdelim (Depends-on): Add realloc-posix.
24908         * modules/read-file (Depends-on): Likewise.
24909
24910 2007-09-09  Bruno Haible  <bruno@clisp.org>
24911
24912         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
24913         (gl_FUNC_MALLOC_POSIX): Require it.
24914         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
24915         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
24916         * modules/realloc (Files): Add m4/malloc.m4.
24917         * modules/calloc (Files): Likewise.
24918
24919 2007-09-09  Bruno Haible  <bruno@clisp.org>
24920
24921         * modules/malloc-posix: New file.
24922         * modules/malloc (Depends-on): Add malloc-posix.
24923         * lib/malloc.c: Include errno.h.
24924         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
24925         and a POSIX-compatible malloc into a single function. Set ENOMEM
24926         when returning NULL.
24927         * m4/malloc.m4: New file.
24928         * doc/functions/malloc.texi: Mention the malloc-posix module.
24929         * lib/stdlib_.h (malloc): New declaration.
24930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24931         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
24932         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
24933         and HAVE_MALLOC_POSIX.
24934
24935 2007-09-09  Bruno Haible  <bruno@clisp.org>
24936
24937         * modules/realloc-posix: New file.
24938         * modules/realloc (Depends-on): Add realloc-posix.
24939         * lib/realloc.c: Include errno.h.
24940         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
24941         and a POSIX-compatible realloc into a single function. Set ENOMEM
24942         when returning NULL.
24943         * m4/realloc.m4: New file.
24944         * doc/functions/realloc.texi: Mention the realloc-posix module.
24945         * lib/stdlib_.h (realloc): New declaration.
24946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24947         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
24948         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
24949         and HAVE_REALLOC_POSIX.
24950
24951 2007-09-09  Bruno Haible  <bruno@clisp.org>
24952
24953         * modules/calloc-posix: New file.
24954         * modules/calloc (Depends-on): Add calloc-posix.
24955         * lib/calloc.c: Include errno.h.
24956         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
24957         and a POSIX-compatible calloc into a single function. Set ENOMEM
24958         when returning NULL.
24959         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
24960         * doc/functions/calloc.texi: Mention the calloc-posix module.
24961         * lib/stdlib_.h (calloc): New declaration.
24962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24963         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
24964         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
24965         and HAVE_CALLOC_POSIX.
24966
24967 2007-09-09  Bruno Haible  <bruno@clisp.org>
24968
24969         Allow for modules to show an arbitrary notice.
24970         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
24971         * gnulib-tool: New option --extract-notice.
24972         (func_usage): Document it.
24973         (sed_extract_prog): Update.
24974         (func_get_notice): New function.
24975         (func_modules_notice): New function.
24976         (func_import, func_create_testdir): Invoke it.
24977         Suggested by Jim Meyering.
24978
24979 2007-09-09  Bruno Haible  <bruno@clisp.org>
24980
24981         * gnulib-tool: New options --verbose, --quiet.
24982         (func_usage): Document them.
24983         (verbose): New variable.
24984         (func_execute_command): New function.
24985         (func_import): Don't show the module list and the file list if
24986         $verbose < 0.
24987         (func_create_testdir): Likewise. Use func_execute_command.
24988         (func_create_megatestdir): Use func_execute_command.
24989
24990 2007-09-08  Bruno Haible  <bruno@clisp.org>
24991
24992         * gnulib-tool (func_import): Prefer rsync over wget when available,
24993         for fetching the PO files.
24994
24995 2007-09-08  Bruno Haible  <bruno@clisp.org>
24996
24997         * posix-modules: New file. Portions copied from gnulib-tool.
24998         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
24999
25000 2007-09-08  Jim Meyering  <jim@meyering.net>
25001
25002         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
25003         * lib/fpending.h: Rename from __fpending.h.
25004         * lib/fpending.c: Rename from __fpending.c.
25005         Include "fpending.h", not "__fpending.h".
25006         * lib/__fpending.h, lib/__fpending.c: Remove files.
25007         * modules/fpending (Files): Reflect new file names.
25008         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
25009
25010 2007-09-08  Bruno Haible  <bruno@clisp.org>
25011
25012         * m4/inttypes-h.m4: Remove stub file.
25013
25014 2007-09-07  Simon Josefsson  <simon@josefsson.org>
25015
25016         * doc/headers/stdint.texi: Discuss #include_next issue.
25017
25018 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25019
25020         * build-aux/bootstrap: Remove obsolete comment about wget --help.
25021
25022 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25023
25024         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
25025         in variable name.
25026
25027 2007-09-03  Jim Meyering  <jim@meyering.net>
25028
25029         New module: git-version-gen.
25030         * modules/git-version-gen: New file.
25031
25032         Import changes from coreutils for bootstrap script.
25033
25034         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
25035
25036         bootstrap: uses rsync to download the .po files
25037         * build-aux/bootstrap (po_download_command_format): New global.
25038         (download_po_files): Use rsync.
25039         (update_po_files): Don't remove .po files after download,
25040         so future rsync runs can take advantage of the copies.
25041
25042         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
25043
25044         Solve the unnecessary-.po-file-regeneration problem once and for all.
25045         * build-aux/bootstrap (download_po_files): New function, renamed from
25046         get_translations.  Now, downloads, but doesn't update LINGUAS.
25047         (update_po_files): New function.
25048
25049         bootstrap: Ignore more.
25050         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
25051         uniwidth to e.g., lib/.gitignore.
25052         (slurp): Handle the sys_stat_.h -> sys mapping, too.
25053
25054         * build-aux/bootstrap: New setting: vc_ignore.
25055         (insert_sorted_if_absent): Create $file if absent.
25056         Adapt to new, possibly empty, list: $vc_ignore.
25057
25058         bootstrap: generate more ignorable names
25059         * build-aux/bootstrap (slurp): When generating ignorable names,
25060         also map .sin to .sed, .gperf to .c, and .y to .c.
25061
25062 2007-09-03  Jim Meyering  <jim@meyering.net>
25063
25064         * build-aux/git-version-gen: New file, from coreutils.  For details, see
25065         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
25066
25067 2007-09-02  Bruno Haible  <bruno@clisp.org>
25068
25069         Fix mis-recognition of 'mcs' on QNX 6.
25070         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
25071         output contains the string "Mono".
25072         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
25073         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
25074
25075 2007-09-01  Bruno Haible  <bruno@clisp.org>
25076
25077         Fix collision between uniwidth/* and linebreak modules.
25078         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
25079         u32_width): Remove declarations.
25080         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
25081         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
25082         streq3, streq2, streq1, streq0): Remove functions.
25083         (STREQ): Remove macro.
25084         (is_cjk_encoding): Remove function.
25085         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
25086         (uc_width, u8_width, u16_width, u32_width): Remove functions.
25087         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
25088         * NEWS: Document the change.
25089
25090 2007-09-01  Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/streq.h: Add double-inclusion guard.
25093
25094 2007-09-01  Karl Berry  <karl@gnu.org>
25095
25096         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
25097
25098 2007-08-28  Jim Meyering  <jim@meyering.net>
25099
25100         Rename mreadlink_with_size to areadlink_with_size.
25101         * NEWS: Document the change.
25102         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
25103         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
25104         * lib/mreadlink.h: Rename this to...
25105         * lib/areadlink.h: ...this.
25106         * modules/mreadlink-with-size: Rename this to...
25107         * modules/areadlink-with-size: ...this.
25108         * lib/canonicalize.c: Reflect the renaming.
25109         * modules/canonicalize: Likewise.
25110
25111 2007-08-26  Bruno Haible  <bruno@clisp.org>
25112
25113         * gnulib-tool (func_import): When deciding which files to remove,
25114         consider also dangling symbolic links.
25115         Reported by Eric Blake.
25116
25117 2007-08-26  Bruno Haible  <bruno@clisp.org>
25118
25119         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
25120
25121 2007-08-23  Simon Josefsson  <simon@josefsson.org>
25122
25123         * lib/readline.c: Don't include getline.h, the prototype is now
25124         found in stdio.h.
25125
25126 2007-08-23  Jim Meyering  <jim@meyering.net>
25127
25128         Getdelim touchup.
25129         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
25130         around the funlockfile call, since funlockfile never sets errno.
25131         Don't set errno upon failed realloc.
25132
25133 2007-08-22  Eric Blake  <ebb9@byu.net>
25134
25135         Getline touchups.
25136         * lib/getdelim.c (getdelim): Revert regression that required *n to
25137         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
25138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
25139         getdelim, rather than whether implementation is missing.
25140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
25141         * lib/stdio_.h (getline): Also declare if replacement is
25142         required.
25143         * doc/functions/getdelim.texi: New file.
25144         * doc/functions/getline.texi: Likewise.
25145         * doc/gnulib.texi (Function Substitutes): Add new files.
25146         Reported by Bruno Haible.
25147
25148 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
25149
25150         * users.txt: Add Guile.
25151
25152 2007-08-22  Eric Blake  <ebb9@byu.net>
25153
25154         * tests/test-getdelim.c (main): Use remove, not unlink.
25155         * tests/test-getline.c (main): Likewise.
25156
25157         Move getline and getdelim into stdio.h, per POSIX 200x.
25158         * modules/getline (Files): Remove getline.h.
25159         (Depends-on): Add stdio.
25160         (configure.ac): Add module indicator.
25161         * modules/getdelim (Files): Remove getdelim.h.
25162         (Depends-on): Add stdio.
25163         (configure.ac): Add module indicator.
25164         * modules/stdio (Makefile.am): Work with new indicators.
25165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
25167         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25168         * lib/getdelim.h: Delete.
25169         * lib/getline.h: Delete.
25170         * lib/stdio_.h (getdelim, getline): Declare.
25171         * modules/getdelim-tests: New module.
25172         * modules/getline-tests: Likewise.
25173         * tests/test-getdelim.c: New file.
25174         * tests/test-getline.c: Likewise.
25175         * NEWS: Document the change.
25176         * lib/getline.c: Update choice of header.
25177         * lib/csharpcomp.c: Likewise.
25178         * lib/getpass.c: Likewise.
25179         * lib/javacomp.c: Likewise.
25180         * lib/javaversion.c: Likewise.
25181         * lib/yesno.c: Likewise.
25182         * lib/getdelim.c: Likewise.
25183         (getdelim): Set errno on failure, and avoid memory leak.
25184
25185 2007-08-19  Bruno Haible  <bruno@clisp.org>
25186
25187         * modules/closein (Depends-on): Add freadahead.
25188         * lib/closein.c: Include freadahead.h.
25189         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
25190         is zero.
25191
25192 2007-08-19  Bruno Haible  <bruno@clisp.org>
25193
25194         * modules/freadahead-tests: New file.
25195         * tests/test-freadahead.sh: New file.
25196         * tests/test-freadahead.c: New file.
25197
25198         * modules/freadahead: New file.
25199         * lib/freadahead.h: New file.
25200         * lib/freadahead.c: New file.
25201         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
25202         fbufmode, fpurge, freadable, fwritable.
25203
25204 2007-08-19  Eric Blake  <ebb9@byu.net>
25205
25206         Test yesno in combination with closein.
25207         * lib/yesno.c (yesno): Document use of stdin.
25208         * modules/yesno-tests (Files): New module.
25209         * tests/test-yesno.c (main): New file.
25210         * tests/test-yesno.sh: Likewise.
25211
25212 2007-08-19  Bruno Haible  <bruno@clisp.org>
25213
25214         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
25215         * lib/fseeko.c (rpl_fseeko): Likewise.
25216         * lib/fseterr.c (fseterr): Likewise.
25217
25218 2007-08-19  Bruno Haible  <bruno@clisp.org>
25219
25220         * tests/test-lseek.c (main): Disable a test for BeOS.
25221         * doc/functions/lseek.texi: Document the BeOS bug.
25222
25223 2007-08-19  Bruno Haible  <bruno@clisp.org>
25224             Eric Blake  <ebb9@byu.net>
25225
25226         * lib/lseek.c: Include <sys/stat.h>.
25227         (rpl_lseek): Add workaround code also for Unix platforms.
25228         Needed for BeOS.
25229         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
25230         * doc/functions/lseek.texi: Document BeOS definiency.
25231
25232 2007-08-18  Bruno Haible  <bruno@clisp.org>
25233
25234         * modules/fstrcmp-tests: New file.
25235         * tests/test-fstrcmp.c: New file.
25236
25237 2007-08-18  Bruno Haible  <bruno@clisp.org>
25238
25239         * modules/fstrcmp: New file, from GNU gettext with modifications.
25240         * lib/fstrcmp.h: New file, from GNU gettext.
25241         * lib/fstrcmp.c: New file, from GNU gettext.
25242         * MODULES.html.sh (String handling): Add fstrcmp.
25243
25244 2007-08-18  Bruno Haible  <bruno@clisp.org>
25245
25246         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
25247         'bool'.
25248         (diag, compareseq): Remove const from the ctxt argument.
25249         (USE_HEURISTIC): Undefine at the end.
25250
25251 2007-08-18  Jim Meyering  <jim@meyering.net>
25252
25253         New file: lib/idcache.h
25254         * NEWS: Mention the addition.
25255         * modules/idcache (Files): Add lib/idcache.h
25256         * lib/idcache.c: Include "idcache.h".
25257         Don't include <sys/types.h>.
25258         Add a FIXME comment.
25259         Move file-scoped "static" declarations to the top.
25260         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
25261
25262 2007-08-17  Bruno Haible  <bruno@clisp.org>
25263         and Paul Eggert  <eggert@cs.ucla.edu>
25264
25265         * MODULES.html.sh: Add diffseq.
25266         * modules/diffseq: New file.
25267         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
25268         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
25269
25270 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25271
25272         Import changes from coreutils for bootstrap script.
25273
25274         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
25275
25276         * build-aux/bootstrap (slurp): Work even in environments where
25277         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
25278         current code does not slurp files whose names start with ".", and
25279         this looks like it might be a troublesome area.
25280
25281         2007-07-11  Jim Meyering  <jim@meyering.net>
25282
25283         If there's a GPL vN copyright comment, require that N == 3.
25284
25285         2007-07-08  Jim Meyering  <jim@meyering.net>
25286
25287         Run the coreutils-specific code only if tests/Makefile.am.in exists.
25288         * build-aux/bootstrap (mam_template): Move definition out of loop.
25289
25290         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
25291
25292         * build-aux/bootstrap (symlink_to_dir): Rename function from
25293         symlink_to_gnulib.  Add a directory parameter.  Update all
25294         callers.
25295         (cp_mark_as_generated): Also check for -- and link to -- files in
25296         gl/.
25297
25298         2007-07-08  Jim Meyering  <jim@meyering.net>
25299
25300         Adapt to deeper hierarchy in gnulib.
25301         * build-aux/bootstrap (symlink_to_dir): If the destination
25302         directory doesn't exist, create it. This is required at least for
25303         "lib/uniwidth/cjk.h".
25304
25305         2007-05-15  Jim Meyering  <jim@meyering.net>
25306
25307         * build-aux/bootstrap: Now that generated Makefile.am files
25308         are no longer under version control, they must be created at
25309         bootstrap time.
25310
25311 2007-08-14  Ben Pfaff  <blp@gnu.org>
25312
25313         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
25314
25315 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
25318         given the changes below.
25319         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
25320         even on hosts that have padding bits beyond the supported 64.
25321
25322 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25323
25324         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
25325         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
25326         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
25327         depends on it.
25328         (xstrtol_error): Remove.
25329         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
25330         but with a different signature.
25331         (ATTRIBUTE_NORETURN, __attribute__): New macros.
25332         * lib/xstrtol-error.c: Include exitfail.h.
25333         (xstrtol_fatal): New function, with a different signature from the
25334         old xstrtol_error, so that the caller need not worry about passing
25335         in an exit status, or about storage management of the option argument.
25336         (xstrtol_error): Now a static function.  Redo signature to
25337         implement xstrtol_fatal.  Output the correct number of hyphens in
25338         front of the option so that the caller need not worry about
25339         storage management.
25340         (N_): New macro.
25341         (_): Remove; not used now.
25342         * modules/xstrtol: Depend on getopt.
25343         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
25344         of old STRTOL_FATAL_ERROR macro.
25345         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
25346         of test program.
25347         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
25348         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
25349
25350 2007-08-08  Eric Blake  <ebb9@byu.net>
25351
25352         * lib/xstrtol-error.c: Add missing include.
25353
25354         Move xstrtol messages into gnulib domain, when --pobase is used.
25355         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
25356         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
25357         * modules/xstrtol (Files): Distribute new file.
25358         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
25359         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
25360         * tests/test-xstrtol.c: ...into new file.
25361         * tests/test-xstrtoul.c: Also test xstrtoul.
25362         * tests/test-xstrtoimax.c: Also test xstrtoimax.
25363         * tests/test-xstrtoumax.c: Also test xstrtoumax.
25364         * tests/test-xstrtol.sh: Drive the tests.
25365         * tests/test-xstrtoimax.sh: Likewise.
25366         * tests/test-xstrtoumax.sh: Likewise.
25367         * modules/xstrtol-tests: New module.
25368         * modules/xstrtoimax-tests: Likewise.
25369         * modules/xstrtoumax-tests: Likewise.
25370
25371 2007-08-08  Jim Meyering  <jim@meyering.net>
25372
25373         New function: mfile_name_concat.
25374         * lib/filenamecat.c (mfile_name_concat): New function, just like
25375         file_name_concat, but return NULL upon failure rather than exiting
25376         with a diagnostic.
25377         * lib/filenamecat.h: Declare it.
25378
25379 2007-08-07  Bruno Haible  <bruno@clisp.org>
25380
25381         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
25382         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
25383         warning from gcc.
25384         Reported by Eric Blake.
25385
25386 2007-08-07  Simon Josefsson  <simon@josefsson.org>
25387
25388         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
25389         * modules/crypto/arcfour (License): Likewise.
25390         * modules/crypto/des-tests (License): Likewise.
25391         * modules/crypto/gc-arctwo-tests (License): Likewise.
25392         * modules/crypto/gc-des-tests (License): Likewise.
25393         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
25394         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
25395         * modules/crypto/gc-md2-tests (License): Likewise.
25396         * modules/crypto/gc-md4-tests (License): Likewise.
25397         * modules/crypto/gc-md5-tests (License): Likewise.
25398         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
25399         * modules/crypto/gc-rijndael-tests (License): Likewise.
25400         * modules/crypto/gc-sha1-tests (License): Likewise.
25401         * modules/crypto/gc-tests (License): Likewise.
25402         * modules/crypto/hmac-md5 (License): Likewise.
25403         * modules/crypto/hmac-sha1 (License): Likewise.
25404         * modules/crypto/md2-tests (License): Likewise.
25405         * modules/crypto/md4-tests (License): Likewise.
25406         * modules/crypto/md5 (License): Likewise.
25407         * modules/crypto/rijndael (License): Likewise.
25408         * modules/crypto/sha1 (License): Likewise.
25409         * modules/memxor (License): Likewise.
25410
25411 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
25412         and Bruno Haible  <bruno@clisp.org>
25413
25414         * NEWS: Describe interface changes to human, xstrtol.
25415         * lib/human.h: Include <xstrtol.h>.
25416         (human_options): Return enum strtol_error, not int.  Remove
25417         bool arg; take int * instead.
25418         * lib/human.c: Don't include "gettext.h".
25419         (_): Remove; no longer used.
25420         Don't include <xstrtol.h>, since human.h does it.
25421         (human_options): Adjust to abovementioned interface changes.
25422         Do not report error to stderr; that's now the caller's
25423         responsibility.
25424         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
25425         interface change.
25426         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
25427         Str, Argument_type_string.  All uses changed.  Put " argument"
25428         in diagnostics to make them clearer.  Change wording of suffix
25429         message for clarity.
25430         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
25431         Argument_type_string.
25432         (STRTOL_FATAL_WARN): Remove; no longer used.
25433         * modules/human (Depends-on): Remove gettext-h.
25434
25435 2007-08-06  Simon Josefsson  <simon@josefsson.org>
25436
25437         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
25438
25439 2007-07-31  Bruno Haible  <bruno@clisp.org>
25440
25441         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
25442         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
25443         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
25444
25445 2007-07-31  Bruno Haible  <bruno@clisp.org>
25446
25447         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
25448         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
25449
25450 2007-07-30  Bruno Haible  <bruno@clisp.org>
25451
25452         * modules/base64 (License): Use the synonymous term "LGPLv2+".
25453         * modules/c-ctype (License): Likewise.
25454         * modules/c-strcase (License): Likewise.
25455         * modules/check-version (License): Likewise.
25456         * modules/iconv (License): Likewise.
25457         * modules/iconv_open (License): Likewise.
25458         * modules/read-file (License): Likewise.
25459         * modules/striconv (License): Likewise.
25460         * modules/strverscmp (License): Likewise.
25461         * modules/vasprintf (License): Likewise.
25462         * modules/crypto/des (License): Likewise.
25463         * modules/crypto/gc (License): Likewise.
25464         * modules/crypto/gc-arcfour (License): Likewise.
25465         * modules/crypto/gc-arctwo (License): Likewise.
25466         * modules/crypto/gc-des (License): Likewise.
25467         * modules/crypto/gc-hmac-md5 (License): Likewise.
25468         * modules/crypto/gc-hmac-sha1 (License): Likewise.
25469         * modules/crypto/gc-md2 (License): Likewise.
25470         * modules/crypto/gc-md4 (License): Likewise.
25471         * modules/crypto/gc-md5 (License): Likewise.
25472         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
25473         * modules/crypto/gc-random (License): Likewise.
25474         * modules/crypto/gc-rijndael (License): Likewise.
25475         * modules/crypto/gc-sha1 (License): Likewise.
25476         * modules/crypto/md2 (License): Likewise.
25477         * modules/crypto/md4 (License): Likewise.
25478
25479 2007-07-30  Jim Meyering  <jim@meyering.net>
25480
25481         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
25482         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
25483         it has valid stat data.  This bug would cause du not to count the
25484         sizes of inaccessible directories.
25485         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
25486         in <http://bugzilla.redhat.com/250077>.
25487
25488 2007-07-25  Peter O'Gorman  <peter@pogma.com>
25489             Bruno Haible  <bruno@clisp.org>
25490
25491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
25492         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
25493         #include_next, gives a diagnostic about it, but reports no error in
25494         the exit code.
25495         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25496
25497 2007-07-24  Ben Pfaff  <blp@gnu.org>
25498
25499         Improve name: "count-one-bits" is better than "popcount".
25500         * MODULES.html.sh: Update name.
25501         * lib/popcount.h: Renamed lib/count-one-bits.h.
25502         (popcount): Renamed count_one_bits.
25503         (popcountl): Renamed count_one_bits_l.
25504         (popcountll): Renamed count_one_bits_ll.
25505         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
25506         * modules/popcount: Renamed module/count-one-bits.
25507         * modules/popcount-tests: Renamed module/count-one-bits-tests.
25508         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
25509
25510 2007-07-23  Ben Pfaff  <blp@gnu.org>
25511
25512         * lib/popcount.h (popcount32): Reduce size of constants, to allow
25513         better code generation, and add U to large constants to avoid
25514         warnings, in non-GCC case.
25515         Suggested by Bruno Haible.
25516
25517 2007-07-23  Ben Pfaff  <blp@gnu.org>
25518
25519         * lib/popcount.h: Use verify_true instead of if...abort.
25520         * modules/popcount: Depend on verify module.
25521         Suggested by Jim Meyering.
25522
25523 2007-07-23  Bruno Haible  <bruno@clisp.org>
25524
25525         * gnulib-tool (func_import): Create a .cvsignore file also when the
25526         directory is not yet in CVS but the toplevel directory is. When
25527         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
25528         Reported by Karl Berry.
25529
25530 2007-07-22  Ben Pfaff  <blp@gnu.org>
25531
25532         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
25533         case.
25534         Suggested by Eric Blake.
25535
25536 2007-07-22  Ben Pfaff  <blp@gnu.org>
25537
25538         New module: popcount.
25539         * MODULES.html.sh: Add popcount.
25540         * modules/popcount: New file.
25541         * modules/popcount-tests: New file.
25542         * tests/test-popcount.c: New file.
25543         * lib/popcount.h: New file.
25544         * m4/popcount.m4: New file.
25545
25546 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
25547
25548         * build-aux/announce-gen: Update to GPLv3.
25549
25550         * build-aux/config.guess: Update from config.
25551
25552 2007-07-21  Bruno Haible  <bruno@clisp.org>
25553
25554         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
25555         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
25556
25557 2007-07-20  Jim Meyering  <jim@meyering.net>
25558
25559         * check-module: Diagnose a self-dependency.
25560
25561 2007-07-19  Bruno Haible  <bruno@clisp.org>
25562
25563         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
25564         empty.
25565         Reported by Eric Blake.
25566
25567 2007-07-18  Bruno Haible  <bruno@clisp.org>
25568
25569         * gnulib-tool: New options --po-base, --po-domain.
25570         (func_usage): Document them.
25571         (pobase, po_domain): New variables.
25572         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
25573         DEFAULT_TEXT_DOMAIN.
25574         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
25575         (func_import): Consider pobase and po_domain. Create a po/ directory.
25576         (func_create_testdir): Set pobase and po_domain to empty.
25577         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
25578         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
25579
25580 2007-07-18  Bruno Haible  <bruno@clisp.org>
25581
25582         * gnulib-tool (func_get_automake_snippet): Synthesize also an
25583         EXTRA_DIST augmentation for files in build-aux/.
25584
25585 2007-07-16  Bruno Haible  <bruno@clisp.org>
25586
25587         * modules/lseek (License): Use the synonymous term "LGPLv2+".
25588         * modules/getdelim (License): Likewise.
25589
25590 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25591
25592         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
25593         * modules/d-type (License): Likewise.
25594         * modules/extensions (License): Likewise.
25595         * modules/fnmatch (License): Likewise.
25596         * modules/fseeko (License): Likewise.
25597         * modules/getaddrinfo (License): Likewise.
25598         * modules/getline (License): Likewise.
25599         * modules/getlogin_r (License): Likewise.
25600         * modules/getpass (License): Likewise.
25601         * modules/gettimeofday (License): Likewise.
25602         * modules/glob (License): Likewise.
25603         * modules/inet_ntop (License): Likewise.
25604         * modules/malloc (License): Likewise.
25605         * modules/malloca (License): Likewise.
25606         * modules/memmem (License): Likewise.
25607         * modules/mempcpy (License): Likewise.
25608         * modules/memset (License): Likewise.
25609         * modules/minmax (License): Likewise.
25610         * modules/mktime (License): Likewise.
25611         * modules/netinet_in (License): Likewise.
25612         * modules/pathmax (License): Likewise.
25613         * modules/poll (License): Likewise.
25614         * modules/regex (License): Likewise.
25615         * modules/snprintf (License): Likewise.
25616         * modules/stdbool (License): Likewise.
25617         * modules/stdint (License): Likewise.
25618         * modules/stdio (License): Likewise.
25619         * modules/strcase (License): Likewise.
25620         * modules/strcasestr (License): Likewise.
25621         * modules/strdup (License): Likewise.
25622         * modules/string (License): Likewise.
25623         * modules/strndup (License): Likewise.
25624         * modules/strnlen (License): Likewise.
25625         * modules/strpbrk (License): Likewise.
25626         * modules/strptime (License): Likewise.
25627         * modules/strsep (License): Likewise.
25628         * modules/sys_select (License): Likewise.
25629         * modules/sys_socket (License): Likewise.
25630         * modules/sys_stat (License): Likewise.
25631         * modules/sys_time (License): Likewise.
25632         * modules/time (License): Likewise.
25633         * modules/time_r (License): Likewise.
25634         * modules/timegm (License): Likewise.
25635         * modules/unistd (License): Likewise.
25636         * modules/vsnprintf (License): Likewise.
25637         * modules/wctype (License): Likewise.
25638
25639 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25640
25641         * modules/argz (License): LGPLv2+.
25642
25643 2007-07-15  Karl Berry  <karl@gnu.org>
25644
25645         * doc/gnulib.texi: revise node structure per new fdl.texi.
25646
25647 2007-07-14  Bruno Haible  <bruno@clisp.org>
25648
25649         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
25650         the output file.
25651         * lib/uniname/uninames.h: Regenerated.
25652
25653 2007-07-14  Karl Berry  <karl@gnu.org>
25654
25655         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
25656         omitting sectioning and index commands.
25657
25658 2007-07-13  Bruno Haible  <bruno@clisp.org>
25659
25660         New gnulib-tool option --more-symlinks.
25661         * gnulib-tool (func_usage): Document --more-symlinks.
25662         (do_copyrights): New variable.
25663         Recognize option --more-symlinks.
25664         (func_import): Don't add a copyright notice transform to
25665         sed_transform_lib_file if do_copyrights is empty.
25666
25667 2007-07-13  Bruno Haible  <bruno@clisp.org>
25668
25669         * lib/vasnprintf.c (decimal_point_char): Define also if
25670         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
25671         && !NEED_PRINTF_DIRECTIVE_A.
25672         Reported by Clemens Koller <clemens.koller@anagramm.de> via
25673         Gary V. Vaughan <gary@gnu.org>.
25674
25675 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
25676
25677         * lib/inttypes_.h: Undo previous change, since it was fixed
25678         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
25679
25680 2007-07-13  Bruno Haible  <bruno@clisp.org>
25681
25682         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
25683         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
25684
25685 2007-07-13  Jim Meyering  <jim@meyering.net>
25686
25687         df: Don't fail for Tru64's "file-on-file mount".
25688         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
25689         so we fall through and use statfs instead.  Details here:
25690         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
25691         Reported by Albert Chin.
25692
25693 2007-07-13  Bruno Haible  <bruno@clisp.org>
25694
25695         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
25696         * modules/configmake (License): Likewise.
25697         * modules/gettext (License): Likewise.
25698         * modules/gettext-h (License): Likewise.
25699         * modules/include_next (License): Likewise.
25700         * modules/link-warning (License): Likewise.
25701         * modules/localcharset (License): Likewise.
25702         * modules/localename (License): Likewise.
25703         * modules/lock (License): Likewise.
25704         * modules/relocatable-lib-lgpl (License): Likewise.
25705         * modules/size_max (License): Likewise.
25706         * modules/vasnprintf (License): Likewise.
25707         * modules/wchar (License): Likewise.
25708         * modules/xsize (License): Likewise.
25709
25710 2007-07-13  Bruno Haible  <bruno@clisp.org>
25711
25712         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
25713         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
25714
25715 2007-07-12  Bruno Haible  <bruno@clisp.org>
25716
25717         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
25718         in the modules files.
25719
25720 2007-07-11  Karl Berry  <karl@gnu.org>
25721
25722         * MODULES.html.sh (func_module): use
25723          sed -e '\|^'"${includefile}"'$|d'
25724          instead of /.../d, to avoid errors on $includefile's containing /.
25725
25726 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
25727
25728         * gnulib-tool (func_import): Avoid duplication of --avoid
25729         statements
25730         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
25731         names to `_' in variable names.
25732
25733 2007-07-10  Eric Blake  <ebb9@byu.net>
25734
25735         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
25736         * NEWS: Document this change.
25737
25738 2007-07-08  Bruno Haible  <bruno@clisp.org>
25739
25740         Update to Unicode 5.0.
25741         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
25742         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
25743         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
25744         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
25745         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
25746         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
25747         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
25748         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
25749         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
25750         U+10A3F, U+1D242..U+1D244.
25751         (nonspacing_table_ind): Update.
25752         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
25753         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
25754
25755 2007-07-08  Bruno Haible  <bruno@clisp.org>
25756
25757         Update to Unicode 5.0.
25758         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
25759         code transform. Extend the name index field of unicode_name_to_code and
25760         unicode_code_to_name from 16 to 24 bits.
25761         * lib/uniname/uniname.c (unicode_character_name,
25762         unicode_name_character): Add the range 0x12xxx to the code transform.
25763         * lib/uniname/uninames.h: Regenerated.
25764         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
25765
25766 2007-07-07  Bruno Haible  <bruno@clisp.org>
25767
25768         * modules/wcwidth-tests: New file.
25769         * tests/test-wcwidth.c: New file.
25770
25771         Work around MacOS X wcwidth() bug.
25772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
25773         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
25774         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
25775         original wcwidth in non-UTF-8 locales.
25776         * modules/wcwidth (Depends-on): Add localcharset, streq,
25777         uniwidth/width.
25778         * doc/functions/wcwidth.texi: Update.
25779
25780 2007-07-07  Bruno Haible  <bruno@clisp.org>
25781
25782         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
25783         (wcwidth): New declaration.
25784         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
25785         macros.
25786         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
25787         here. Prepare for creating <wchar.h> unconditionally.
25788         * modules/wchar (Depends-on): Add link-warning.
25789         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
25790         REPLACE_WCWIDTH, and GL_LINK_WARNING.
25791         * lib/wcwidth.h: Remove file.
25792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
25793         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
25794         * modules/wcwidth (Files): Remove lib/wcwidth.h.
25795         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
25796         (Include): Replace wcwidth.h with <wchar.h>.
25797         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
25798         * lib/mbchar.h: Don't include wcwidth.h.
25799         * lib/mbswidth.c: Likewise.
25800         * NEWS: Mention the change.
25801
25802 2007-07-07  Bruno Haible  <bruno@clisp.org>
25803
25804         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
25805         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
25806         definition with an external declaration.
25807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
25808         defined as a function. Remove AC_C_INLINE requirement.
25809         * modules/wcwidth (Files): Add lib/wcwidth.c.
25810         (Makefile.am): Remove redundant statement.
25811
25812 2007-07-07  Bruno Haible  <bruno@clisp.org>
25813
25814         * MODULES.html.sh (Unicode string functions): Add the new modules.
25815
25816         * tests/uniwidth/test-u32-strwidth.c: New file.
25817         * modules/uniwidth/u32-strwidth-tests: New file.
25818
25819         * lib/uniwidth/u32-strwidth.c: New file.
25820         * modules/uniwidth/u32-strwidth: New file.
25821
25822         * tests/uniwidth/test-u16-strwidth.c: New file.
25823         * modules/uniwidth/u16-strwidth-tests: New file.
25824
25825         * lib/uniwidth/u16-strwidth.c: New file.
25826         * modules/uniwidth/u16-strwidth: New file.
25827
25828         * tests/uniwidth/test-u8-strwidth.c: New file.
25829         * modules/uniwidth/u8-strwidth-tests: New file.
25830
25831         * lib/uniwidth/u8-strwidth.c: New file.
25832         * modules/uniwidth/u8-strwidth: New file.
25833
25834         * tests/uniwidth/test-u32-width.c: New file.
25835         * modules/uniwidth/u32-width-tests: New file.
25836
25837         * lib/uniwidth/u32-width.c: New file.
25838         * modules/uniwidth/u32-width: New file.
25839
25840         * tests/uniwidth/test-u16-width.c: New file.
25841         * modules/uniwidth/u16-width-tests: New file.
25842
25843         * lib/uniwidth/u16-width.c: New file.
25844         * modules/uniwidth/u16-width: New file.
25845
25846         * tests/uniwidth/test-u8-width.c: New file.
25847         * modules/uniwidth/u8-width-tests: New file.
25848
25849         * lib/uniwidth/u8-width.c: New file.
25850         * modules/uniwidth/u8-width: New file.
25851
25852         * tests/uniwidth/test-uc_width.c: New file.
25853         * modules/uniwidth/width-tests: New file.
25854
25855         * lib/uniwidth/width.c: New file, from GNU libiconv.
25856         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
25857         * modules/uniwidth/width: New file.
25858
25859         * lib/uniwidth.h: New file, from GNU libiconv.
25860         * modules/uniwidth/base: New file.
25861
25862 2007-07-07  Bruno Haible  <bruno@clisp.org>
25863
25864         * lib/uniname.h: New file, from GNU gettext.
25865         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
25866         * lib/uniname/uninames.h: New file, from GNU gettext.
25867         * lib/uniname/uniname.c: New file, from GNU gettext.
25868         * tests/uniname/test-uninames.sh: New file.
25869         * tests/uniname/test-uninames.c: New file, from GNU gettext.
25870         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
25871         * modules/uniname/base: New file.
25872         * modules/uniname/uniname: New file.
25873         * modules/uniname/uniname-tests: New file.
25874         * MODULES.html.sh (Unicode string functions): Add the new modules.
25875
25876 2007-07-06  Bruno Haible  <bruno@clisp.org>
25877
25878         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
25879
25880 2007-07-06  Bruno Haible  <bruno@clisp.org>
25881
25882         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
25883         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
25884         includes <cygwin/sys_time.h> which includes <sys/select.h> which
25885         include <sys/time.h>.
25886         Reported by Eric Blake.
25887
25888 2007-07-06  Eric Blake  <ebb9@byu.net>
25889
25890         Fix testing canonicalize on cygwin.
25891         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
25892         Revert patch from 2007-06-19.
25893         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
25894         canonicalize module is also in use.
25895         * tests/test-canonicalize.c: New file.
25896         * tests/test-canonicalize.sh: Likewise.
25897         * modules/canonicalize-tests: Likewise.
25898
25899 2007-07-06  Jim Meyering  <jim@meyering.net>
25900
25901         * lib/getugroups.c (getugroups): Detect getgrent failure.
25902         Adjust comment to reflect reality: this function may return -1.
25903
25904 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25905
25906         * build-aux/bootstrap (TP_URL,get_translations): Update to use
25907         the new TP address.
25908         (usage): Fix typo
25909         (gnulib_mk): New variable.
25910
25911 2007-07-05  Jim Meyering  <jim@meyering.net>
25912
25913         Don't let endgrent clobber errno, no matter how improbable.
25914         * lib/getugroups.c (getugroups): Save and restore errno around
25915         endgrent call.
25916
25917         Close the group DB even when failing with 2^31 or more members.
25918         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
25919
25920 2007-07-04  Jim Meyering  <jim@meyering.net>
25921
25922         * lib/getugroups.h: New file.
25923         * lib/getugroups.c: Include "getugroups.h".
25924         Remove uses of "register" keyword.
25925         Move local variable, "cp", down into scope where used.
25926         Give "username" parameter the "const" attribute.
25927         * modules/getugroups (Files): Add lib/getugroups.h
25928
25929 2007-07-04  Karl Berry  <karl@gnu.org>
25930
25931         * MODULES.html.sh (func_all_modules): Complete rename of
25932         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
25933
25934 2007-07-02  Bruno Haible  <bruno@clisp.org>
25935
25936         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
25937         mode, when inttypes.h comes from gnulib.
25938         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
25939
25940 2007-07-02  Simon Josefsson  <simon@josefsson.org>
25941
25942         * NEWS: Mention lgpl module name change.
25943
25944         * modules/lgpl-2.1: Renamed from lgpl.
25945
25946         * NEWS: Mention gpl module name change.
25947
25948         * modules/gpl-3.0: New file, based on gpl-2.0.
25949
25950         * modules/gpl-2.0: Renamed from gpl.
25951
25952         * modules/gpl: Fix filename, doc/gpl.texi is now found at
25953         doc/gpl-2.0.texi.
25954
25955 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
25956
25957         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
25958         #define __STDC_LIMIT_MACROS temporarily while including
25959         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
25960         Problem reported by Joel E. Denny in
25961         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
25962
25963 2007-07-01  Bruno Haible  <bruno@clisp.org>
25964
25965         * lib/unistdio.h: New file.
25966         * lib/unistdio/u-asnprintf.h: New file.
25967         * lib/unistdio/u-asprintf.h: New file.
25968         * lib/unistdio/u-printf-args.c: New file.
25969         * lib/unistdio/u-printf-args.h: New file.
25970         * lib/unistdio/u-printf-parse.h: New file.
25971         * lib/unistdio/u-snprintf.h: New file.
25972         * lib/unistdio/u-sprintf.h: New file.
25973         * lib/unistdio/u-vasprintf.h: New file.
25974         * lib/unistdio/u-vsnprintf.h: New file.
25975         * lib/unistdio/u-vsprintf.h: New file.
25976         * lib/unistdio/ulc-asnprintf.c: New file.
25977         * lib/unistdio/ulc-asprintf.c: New file.
25978         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
25979         * lib/unistdio/ulc-printf-parse.c: New file.
25980         * lib/unistdio/ulc-snprintf.c: New file.
25981         * lib/unistdio/ulc-sprintf.c: New file.
25982         * lib/unistdio/ulc-vasnprintf.c: New file.
25983         * lib/unistdio/ulc-vasprintf.c: New file.
25984         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
25985         * lib/unistdio/ulc-vsnprintf.c: New file.
25986         * lib/unistdio/ulc-vsprintf.c: New file.
25987         * lib/unistdio/u8-asnprintf.c: New file.
25988         * lib/unistdio/u8-asprintf.c: New file.
25989         * lib/unistdio/u8-printf-parse.c: New file.
25990         * lib/unistdio/u8-snprintf.c: New file.
25991         * lib/unistdio/u8-sprintf.c: New file.
25992         * lib/unistdio/u8-vasnprintf.c: New file.
25993         * lib/unistdio/u8-vasprintf.c: New file.
25994         * lib/unistdio/u8-vsnprintf.c: New file.
25995         * lib/unistdio/u8-vsprintf.c: New file.
25996         * lib/unistdio/u8-u8-asnprintf.c: New file.
25997         * lib/unistdio/u8-u8-asprintf.c: New file.
25998         * lib/unistdio/u8-u8-snprintf.c: New file.
25999         * lib/unistdio/u8-u8-sprintf.c: New file.
26000         * lib/unistdio/u8-u8-vasnprintf.c: New file.
26001         * lib/unistdio/u8-u8-vasprintf.c: New file.
26002         * lib/unistdio/u8-u8-vsnprintf.c: New file.
26003         * lib/unistdio/u8-u8-vsprintf.c: New file.
26004         * lib/unistdio/u16-asnprintf.c: New file.
26005         * lib/unistdio/u16-asprintf.c: New file.
26006         * lib/unistdio/u16-printf-parse.c: New file.
26007         * lib/unistdio/u16-snprintf.c: New file.
26008         * lib/unistdio/u16-sprintf.c: New file.
26009         * lib/unistdio/u16-vasnprintf.c: New file.
26010         * lib/unistdio/u16-vasprintf.c: New file.
26011         * lib/unistdio/u16-vsnprintf.c: New file.
26012         * lib/unistdio/u16-vsprintf.c: New file.
26013         * lib/unistdio/u16-u16-asnprintf.c: New file.
26014         * lib/unistdio/u16-u16-asprintf.c: New file.
26015         * lib/unistdio/u16-u16-snprintf.c: New file.
26016         * lib/unistdio/u16-u16-sprintf.c: New file.
26017         * lib/unistdio/u16-u16-vasnprintf.c: New file.
26018         * lib/unistdio/u16-u16-vasprintf.c: New file.
26019         * lib/unistdio/u16-u16-vsnprintf.c: New file.
26020         * lib/unistdio/u16-u16-vsprintf.c: New file.
26021         * lib/unistdio/u32-asnprintf.c: New file.
26022         * lib/unistdio/u32-asprintf.c: New file.
26023         * lib/unistdio/u32-printf-parse.c: New file.
26024         * lib/unistdio/u32-snprintf.c: New file.
26025         * lib/unistdio/u32-sprintf.c: New file.
26026         * lib/unistdio/u32-vasnprintf.c: New file.
26027         * lib/unistdio/u32-vasprintf.c: New file.
26028         * lib/unistdio/u32-vsnprintf.c: New file.
26029         * lib/unistdio/u32-vsprintf.c: New file.
26030         * lib/unistdio/u32-u32-asnprintf.c: New file.
26031         * lib/unistdio/u32-u32-asprintf.c: New file.
26032         * lib/unistdio/u32-u32-snprintf.c: New file.
26033         * lib/unistdio/u32-u32-sprintf.c: New file.
26034         * lib/unistdio/u32-u32-vasnprintf.c: New file.
26035         * lib/unistdio/u32-u32-vasprintf.c: New file.
26036         * lib/unistdio/u32-u32-vsnprintf.c: New file.
26037         * lib/unistdio/u32-u32-vsprintf.c: New file.
26038         * tests/unistdio/test-ulc-asnprintf1.c: New file.
26039         * tests/unistdio/test-ulc-asnprintf1.h: New file.
26040         * tests/unistdio/test-ulc-printf1.h: New file.
26041         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
26042         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
26043         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
26044         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
26045         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
26046         * tests/unistdio/test-ulc-vasprintf1.c: New file.
26047         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
26048         * tests/unistdio/test-ulc-vsprintf1.c: New file.
26049         * tests/unistdio/test-u8-asnprintf1.c: New file.
26050         * tests/unistdio/test-u8-asnprintf1.h: New file.
26051         * tests/unistdio/test-u8-printf1.h: New file.
26052         * tests/unistdio/test-u8-vasnprintf1.c: New file.
26053         * tests/unistdio/test-u8-vasnprintf2.c: New file.
26054         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
26055         * tests/unistdio/test-u8-vasnprintf3.c: New file.
26056         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
26057         * tests/unistdio/test-u8-vasprintf1.c: New file.
26058         * tests/unistdio/test-u8-vsnprintf1.c: New file.
26059         * tests/unistdio/test-u8-vsprintf1.c: New file.
26060         * tests/unistdio/test-u16-asnprintf1.c: New file.
26061         * tests/unistdio/test-u16-asnprintf1.h: New file.
26062         * tests/unistdio/test-u16-printf1.h: New file.
26063         * tests/unistdio/test-u16-vasnprintf1.c: New file.
26064         * tests/unistdio/test-u16-vasnprintf2.c: New file.
26065         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
26066         * tests/unistdio/test-u16-vasnprintf3.c: New file.
26067         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
26068         * tests/unistdio/test-u16-vasprintf1.c: New file.
26069         * tests/unistdio/test-u16-vsnprintf1.c: New file.
26070         * tests/unistdio/test-u16-vsprintf1.c: New file.
26071         * tests/unistdio/test-u32-asnprintf1.c: New file.
26072         * tests/unistdio/test-u32-asnprintf1.h: New file.
26073         * tests/unistdio/test-u32-printf1.h: New file.
26074         * tests/unistdio/test-u32-vasnprintf1.c: New file.
26075         * tests/unistdio/test-u32-vasnprintf2.c: New file.
26076         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
26077         * tests/unistdio/test-u32-vasnprintf3.c: New file.
26078         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
26079         * tests/unistdio/test-u32-vasprintf1.c: New file.
26080         * tests/unistdio/test-u32-vsnprintf1.c: New file.
26081         * tests/unistdio/test-u32-vsprintf1.c: New file.
26082         * modules/unistdio/base: New file.
26083         * modules/unistdio/u-printf-args: New file.
26084         * modules/unistdio/ulc-asnprintf: New file.
26085         * modules/unistdio/ulc-asprintf: New file.
26086         * modules/unistdio/ulc-fprintf: New file.
26087         * modules/unistdio/ulc-printf-parse: New file.
26088         * modules/unistdio/ulc-snprintf: New file.
26089         * modules/unistdio/ulc-sprintf: New file.
26090         * modules/unistdio/ulc-vasnprintf: New file.
26091         * modules/unistdio/ulc-vasprintf: New file.
26092         * modules/unistdio/ulc-vfprintf: New file.
26093         * modules/unistdio/ulc-vsnprintf: New file.
26094         * modules/unistdio/ulc-vsprintf: New file.
26095         * modules/unistdio/u8-asnprintf: New file.
26096         * modules/unistdio/u8-asprintf: New file.
26097         * modules/unistdio/u8-printf-parse: New file.
26098         * modules/unistdio/u8-snprintf: New file.
26099         * modules/unistdio/u8-sprintf: New file.
26100         * modules/unistdio/u8-vasnprintf: New file.
26101         * modules/unistdio/u8-vasprintf: New file.
26102         * modules/unistdio/u8-vsnprintf: New file.
26103         * modules/unistdio/u8-vsprintf: New file.
26104         * modules/unistdio/u8-u8-asnprintf: New file.
26105         * modules/unistdio/u8-u8-asprintf: New file.
26106         * modules/unistdio/u8-u8-snprintf: New file.
26107         * modules/unistdio/u8-u8-sprintf: New file.
26108         * modules/unistdio/u8-u8-vasnprintf: New file.
26109         * modules/unistdio/u8-u8-vasprintf: New file.
26110         * modules/unistdio/u8-u8-vsnprintf: New file.
26111         * modules/unistdio/u8-u8-vsprintf: New file.
26112         * modules/unistdio/u16-asnprintf: New file.
26113         * modules/unistdio/u16-asprintf: New file.
26114         * modules/unistdio/u16-printf-parse: New file.
26115         * modules/unistdio/u16-snprintf: New file.
26116         * modules/unistdio/u16-sprintf: New file.
26117         * modules/unistdio/u16-vasnprintf: New file.
26118         * modules/unistdio/u16-vasprintf: New file.
26119         * modules/unistdio/u16-vsnprintf: New file.
26120         * modules/unistdio/u16-vsprintf: New file.
26121         * modules/unistdio/u16-u16-asnprintf: New file.
26122         * modules/unistdio/u16-u16-asprintf: New file.
26123         * modules/unistdio/u16-u16-snprintf: New file.
26124         * modules/unistdio/u16-u16-sprintf: New file.
26125         * modules/unistdio/u16-u16-vasnprintf: New file.
26126         * modules/unistdio/u16-u16-vasprintf: New file.
26127         * modules/unistdio/u16-u16-vsnprintf: New file.
26128         * modules/unistdio/u16-u16-vsprintf: New file.
26129         * modules/unistdio/u32-asnprintf: New file.
26130         * modules/unistdio/u32-asprintf: New file.
26131         * modules/unistdio/u32-printf-parse: New file.
26132         * modules/unistdio/u32-snprintf: New file.
26133         * modules/unistdio/u32-sprintf: New file.
26134         * modules/unistdio/u32-vasnprintf: New file.
26135         * modules/unistdio/u32-vasprintf: New file.
26136         * modules/unistdio/u32-vsnprintf: New file.
26137         * modules/unistdio/u32-vsprintf: New file.
26138         * modules/unistdio/u32-u32-asnprintf: New file.
26139         * modules/unistdio/u32-u32-asprintf: New file.
26140         * modules/unistdio/u32-u32-snprintf: New file.
26141         * modules/unistdio/u32-u32-sprintf: New file.
26142         * modules/unistdio/u32-u32-vasnprintf: New file.
26143         * modules/unistdio/u32-u32-vasprintf: New file.
26144         * modules/unistdio/u32-u32-vsnprintf: New file.
26145         * modules/unistdio/u32-u32-vsprintf: New file.
26146         * modules/unistdio/ulc-asnprintf-tests: New file.
26147         * modules/unistdio/ulc-vasnprintf-tests: New file.
26148         * modules/unistdio/ulc-vasprintf-tests: New file.
26149         * modules/unistdio/ulc-vsnprintf-tests: New file.
26150         * modules/unistdio/ulc-vsprintf-tests: New file.
26151         * modules/unistdio/u8-asnprintf-tests: New file.
26152         * modules/unistdio/u8-vasnprintf-tests: New file.
26153         * modules/unistdio/u8-vasprintf-tests: New file.
26154         * modules/unistdio/u8-vsnprintf-tests: New file.
26155         * modules/unistdio/u8-vsprintf-tests: New file.
26156         * modules/unistdio/u16-asnprintf-tests: New file.
26157         * modules/unistdio/u16-vasnprintf-tests: New file.
26158         * modules/unistdio/u16-vasprintf-tests: New file.
26159         * modules/unistdio/u16-vsnprintf-tests: New file.
26160         * modules/unistdio/u16-vsprintf-tests: New file.
26161         * modules/unistdio/u32-asnprintf-tests: New file.
26162         * modules/unistdio/u32-vasnprintf-tests: New file.
26163         * modules/unistdio/u32-vasprintf-tests: New file.
26164         * modules/unistdio/u32-vsnprintf-tests: New file.
26165         * modules/unistdio/u32-vsprintf-tests: New file.
26166         * MODULES.html.sh (Unicode string functions): Add the new modules.
26167
26168 2007-07-01  Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/sprintf.c (sprintf): Limit the available length estimation,
26171         to avoid address wraparound.
26172         * lib/vsprintf.c (vsprintf): Likewise.
26173         * modules/sprintf-posix (Dependencies): Add stdint.
26174         * modules/vsprintf-posix (Dependencies): Likewise.
26175
26176 2007-07-01  Bruno Haible  <bruno@clisp.org>
26177
26178         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
26179         Windows PATH as well. Conservative double-quoting. Comments.
26180
26181 2007-07-01  Bruno Haible  <bruno@clisp.org>
26182             Eric Blake  <ebb9@byu.net>
26183             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26184
26185         * gnulib-tool (self_abspathname): Fix algorithm to cope with
26186         empty components in $PATH, denoting '.'.
26187
26188 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26189
26190         * gnulib-tool: Fix indentation.
26191         (func_create_megatestdir): Likewise.
26192         Report by Bruno Haible.
26193
26194 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26195
26196         Sync from Automake.
26197         * build-aux/gnupload: Fix shell portability issues with for loops.
26198         Report by Karl Berry.
26199
26200 2007-06-29  Simon Josefsson  <simon@josefsson.org>
26201
26202         * build-aux/maint.mk (POURL): Use translationproject.org.
26203
26204 2007-06-27  Simon Josefsson  <simon@josefsson.org>
26205             Bruno Haible  <bruno@clisp.org>
26206
26207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
26208         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
26209         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
26210         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
26211         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
26212
26213 2007-06-27  Bruno Haible  <bruno@clisp.org>
26214
26215         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
26216         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
26217
26218 2007-06-26  Karl Berry  <karl@gnu.org>
26219
26220         * MODULES.html.sh: remove xreadlink-with-size.
26221
26222 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26223
26224         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
26225         method that I hope also handles the double-include problem noted
26226         by Bruno Haible in
26227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
26228
26229 2007-06-23  Bruno Haible  <bruno@clisp.org>
26230
26231         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26232         Don't let the 'mostlyclean' target fail if the last subdirectory could
26233         not be removed.
26234         Reported by Karl Berry.
26235
26236 2007-06-23  Bruno Haible  <bruno@clisp.org>
26237
26238         * gnulib-tool (echo): Add a speedier workaround for ksh.
26239         * tests/test-echo.sh: Likewise.
26240
26241 2007-06-23  Bruno Haible  <bruno@clisp.org>
26242
26243         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
26244         * tests/test-echo.sh: Likewise.
26245
26246 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26247
26248         * gnulib-tool (IFS): Initialize early, so we don't set it to
26249         empty later.
26250         (self_abspathname): Rewrite algorithm to set it, reindent.
26251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
26252         (func_create_megatestdir): Merge some sed scripts.
26253
26254 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26255
26256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
26257         exposed by Sun Studio 11 cc on Solaris 8.
26258
26259 2007-06-22  Bruno Haible  <bruno@clisp.org>
26260
26261         * gnulib-tool (echo): Ensure the echo primitive does not interpret
26262         backslashes.
26263         * tests/test-echo.sh: New file.
26264
26265 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26266
26267         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
26268         simplify `sed_replace_build_aux' scripts, they are portable but
26269         echoing them with `echo' is not.
26270         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
26271
26272 2007-06-21  Karl Berry  <karl@gnu.org>
26273
26274         * config/srclist.txt: guess we can't handle the licenses via
26275         srclist at the moment.
26276
26277 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26278
26279         * MODULES.html.sh: Add include_next.
26280         * modules/include_next: New file.
26281
26282 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
26285         INCLUDE_NEXT.
26286         (gl_CHECK_NEXT_HEADERS): New macro.
26287         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
26288         the obsolescent gl_ABSOLUTE_HEADER.
26289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
26290         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
26291         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26292         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26293         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26294         * m4/math_h.m4 (gl_MATH_H): Likewise.
26295         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26296         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26297         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26298         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26299         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26300         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26301         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26306         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26307         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
26308         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26309         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26310         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26311         * m4/inttypes.m4 (gl_INTTYPES_H): Define
26312         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
26313         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
26314         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
26315         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
26316         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
26317         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
26318         * lib/float_.h: Likewise.
26319         * lib/inttypes_.h: Likewise.
26320         * lib/math_.h: Likewise.
26321         * lib/search_.h: Likewise.
26322         * lib/signal_.h: Likewise.
26323         * lib/stdint_.h: Likewise.
26324         * lib/stdio_.h: Likewise.
26325         * lib/stdlib_.h: Likewise.
26326         * lib/string_.h: Likewise.
26327         * lib/sys_stat_.h: Likewise.
26328         * lib/sys_time_.h: Likewise.
26329         * lib/time_.h: Likewise.
26330         * lib/unistd_.h: Likewise.
26331         * lib/wchar_.h: Likewise.
26332         * lib/wctype_.h: Likewise.
26333         * lib/dirent_.h: Likewise.
26334         * lib/iconv_.h: Likewise.
26335         * lib/locale_.h: Likewise.
26336         * lib/netinet_in_.h: Likewise.
26337         * lib/sys_select_.h: Likewise.
26338         * lib/sys_socket_.h: Likewise.
26339         * lib/sysexits_.h: Likewise.
26340         * modules/fcntl (Depends-on): Depend on include_next, not
26341         absolute_header.
26342         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
26343         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
26344         * modules/fchdir: Likewise.
26345         * modules/float: Likewise.
26346         * modules/iconv_open: Likewise.
26347         * modules/inttypes: Likewise.
26348         * modules/locale: Likewise.
26349         * modules/math: Likewise.
26350         * modules/netinet_in: Likewise.
26351         * modules/search: Likewise.
26352         * modules/signal: Likewise.
26353         * modules/stdint: Likewise.
26354         * modules/stdio: Likewise.
26355         * modules/stdlib: Likewise.
26356         * modules/string: Likewise.
26357         * modules/sys_select: Likewise.
26358         * modules/sys_socket: Likewise.
26359         * modules/sys_stat: Likewise.
26360         * modules/sys_time: Likewise.
26361         * modules/sysexits: Likewise.
26362         * modules/time: Likewise.
26363         * modules/unistd: Likewise.
26364         * modules/wchar: Likewise.
26365         * modules/wctype: Likewise.
26366         * modules/sys_stat: Change maintainer to "all".
26367         * modules/unistd: Likewise.
26368
26369 2007-06-20  Karl Berry  <karl@gnu.org>
26370
26371         * config/srclist.txt: track www changes in license files.
26372
26373 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
26374
26375         * build-aux/bootstrap: Remove stray dot.
26376         Make sure build_aux settings are honored when linking
26377         gnulib_extra_files.
26378
26379 2007-06-19  Eric Blake  <ebb9@byu.net>
26380
26381         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
26382         Allow compilation on cygwin.
26383
26384 2007-06-19  Jim Meyering  <jim@meyering.net>
26385
26386         xreadlink-with-size: Remove module.  No longer used.
26387         Ex-callers now use xreadlink or mreadlink-with-size.
26388         * modules/xreadlink-with-size: Remove module.
26389         * lib/xreadlink-with-size.c: Remove file.
26390         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
26391         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
26392         just before the function definition *is* accurate.
26393
26394         Eliminate one way canonicalize_filename_mode could exit.
26395         * lib/canonicalize.c (canonicalize_filename_mode):
26396         Use mreadlink_with_size, not xreadlink_with_size.
26397
26398 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
26399
26400         Detect porting problems to FreeBSD/arm, which has time_t wider than
26401         long int.  Original problem reported for GNU diff by Xin Li in
26402         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
26403         * modules/getdate (Depends-on): Add intprops, verify.
26404         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
26405         is an integer type no wider than long int.
26406
26407 2007-06-18  Jim Meyering  <jim@meyering.net>
26408
26409         New module: mreadlink-with-size.
26410         * MODULES.html.sh: Add mreadlink-with-size.
26411         * modules/mreadlink-with-size: New module
26412         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
26413         not xreadlink-with-size.
26414         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
26415
26416 2007-06-16  Bruno Haible  <bruno@clisp.org>
26417
26418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
26419         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
26420         Reported by Gary V. Vaughan <gary@gnu.org>.
26421
26422 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
26423
26424         Revamp lchown so that it lives in unistd.h where it belongs.
26425         * lib/lchown.h: Remove.
26426         * lib/dirchownmod.c: Don't include lib/lchown.h.
26427         * lib/fchownat.c: Likewise.
26428         * lib/openat.c: Likewise.
26429         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
26430         does not follow symlinks.
26431         (EOPNOTSUPP): Define if not defined.
26432         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
26433         is defined to 0.
26434         (lchown): New decl.
26435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
26436         Do not check for lchown decl.
26437         Set REPLACE_LCHOWN.
26438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
26439         REPLACE_LCHOWN.
26440         * modules/chown: Make it clear it follows symlinks.
26441         * modules/lchown: Make it clear it doesn't follow symlinks.
26442         (Files): Remove lib/lchown.h
26443         (Depends-on): Add unistd.
26444         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
26445         (Include): Include <unistd.h>, not "lchown.h".
26446         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
26447         REPLACE_LCHOWN.
26448
26449 2007-06-15  Jim Meyering  <jim@meyering.net>
26450
26451         Change license (GPL to LGPL) of fsusage and dependents.
26452         * modules/fsusage (License): Change to LGPL.
26453         * modules/full-read (License): Likewise.
26454         * modules/full-write (License): Likewise.
26455         * modules/safe-read (License): Likewise.
26456         * modules/safe-write (License): Likewise.
26457
26458 2007-06-14  Ben Pfaff  <blp@gnu.org>
26459
26460         Missing part of allocsa -> malloca transition.
26461         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
26462         gl_MALLOCA.
26463
26464 2007-06-12  Bruno Haible  <bruno@clisp.org>
26465
26466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
26467         to ia64, x86_64, i386.
26468         Reported by Eric Blake.
26469
26470 2007-06-12  Bruno Haible  <bruno@clisp.org>
26471
26472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
26473         cross-compiling to x86_64.
26474
26475 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
26476
26477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
26478         glitch reported by Ralf Wildenhues in
26479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
26480
26481         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
26482         Vin Shelton.
26483
26484 2007-06-11  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
26487         replacement string.
26488         Reported by Eric Blake.
26489
26490 2007-06-10  Bruno Haible  <bruno@clisp.org>
26491
26492         Prepare vasnprintf code for use with Unicode strings.
26493         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
26494         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
26495         TYPE_U32_STRING.
26496         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
26497         a_u32_string variants.
26498         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
26499         * lib/printf-args.c: Don't include config.h and the specification
26500         header if PRINTF_FETCHARGS is already defined.
26501         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
26502         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
26503         TYPE_U16_STRING, TYPE_U32_STRING.
26504         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
26505         u16_directive, u16_directives, u32_directive, u32_directives): New
26506         types.
26507         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
26508         New declarations.
26509         * lib/printf-parse.c: Don't include config.h and the specification
26510         header if PRINTF_PARSE is already defined. Eliminate the set of
26511         parameters for WIDE_CHAR_VERSION; the user of this file must provide
26512         them now. Include c-ctype.h.
26513         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
26514         directive and CHAR_T_ONLY_ASCII.
26515         * lib/vasnprintf.c: Don't include config.h and the specification header
26516         if VASNPRINTF is already defined.
26517         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
26518         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
26519         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
26520         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
26521         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
26522         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
26523         code accordingly.
26524         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
26525         pad_ourselves also in this case, with the 'c' and 's' directives, and
26526         with a different notion of "width".
26527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
26528
26529 2007-06-10  Bruno Haible  <bruno@clisp.org>
26530
26531         * modules/unistr/u32-mbsnlen: New file.
26532         * lib/unistr/u32-mbsnlen.c: New file.
26533
26534         * modules/unistr/u16-mbsnlen: New file.
26535         * lib/unistr/u16-mbsnlen.c: New file.
26536
26537         * modules/unistr/u8-mbsnlen: New file.
26538         * lib/unistr/u8-mbsnlen.c: New file.
26539
26540         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
26541         declarations.
26542
26543 2007-06-10  Bruno Haible  <bruno@clisp.org>
26544
26545         * lib/string_.h (mbsnlen): New declaration.
26546         * lib/mbsnlen.c: New file.
26547         * m4/mbsnlen.m4: New file.
26548         * modules/mbsnlen: New file.
26549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
26550         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
26551         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
26552
26553 2007-06-10  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
26556
26557 2007-06-10  Bruno Haible  <bruno@clisp.org>
26558
26559         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
26560         * lib/mbuiter.h: Likewise.
26561
26562 2007-06-10  Bruno Haible  <bruno@clisp.org>
26563
26564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
26565         declaration.
26566
26567 2007-06-10  Karl Berry  <karl@gnu.org>
26568
26569         * config/srclist.txt: remove gettext entries, Bruno prefers
26570         to update individually.
26571
26572 2007-06-10  Bruno Haible  <bruno@clisp.org>
26573
26574         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
26575         'maxlen'. Ensure only length + width bytes are allocated, not
26576         length + 1 + width.
26577
26578 2007-06-09  Bruno Haible  <bruno@clisp.org>
26579
26580         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
26581         (CHAR_T): Remove macro.
26582         (VASNPRINTF): Update.
26583
26584 2007-06-09  Bruno Haible  <bruno@clisp.org>
26585
26586         * MODULES.html.sh (Unicode string functions): Add the new modules.
26587
26588         * modules/uniconv/u32-conv-to-enc: New file.
26589         * lib/uniconv/u32-conv-to-enc.c: New file.
26590         * modules/uniconv/u32-conv-to-enc-tests: New file.
26591         * tests/uniconv/test-u32-conv-to-enc.c: New file.
26592
26593         * modules/uniconv/u16-conv-to-enc: New file.
26594         * lib/uniconv/u16-conv-to-enc.c: New file.
26595         * lib/uniconv/u-conv-to-enc.h: New file.
26596         * modules/uniconv/u16-conv-to-enc-tests: New file.
26597         * tests/uniconv/test-u16-conv-to-enc.c: New file.
26598
26599         * modules/uniconv/u8-conv-to-enc: New file.
26600         * lib/uniconv/u8-conv-to-enc.c: New file.
26601         * modules/uniconv/u8-conv-to-enc-tests: New file.
26602         * tests/uniconv/test-u8-conv-to-enc.c: New file.
26603
26604         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
26605         u32_conv_to_encoding): New declarations.
26606
26607 2007-06-09  Bruno Haible  <bruno@clisp.org>
26608
26609         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
26610
26611 2007-06-09  Bruno Haible  <bruno@clisp.org>
26612
26613         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
26614         * modules/malloca: Renamed from modules/allocsa, updated.
26615         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
26616         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
26617         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
26618         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
26619         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
26620         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
26621         * modules/xmalloca: Renamed from modules/xallocsa, updated.
26622         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
26623         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
26624         * modules/c-strcasestr (Depends-on): Update.
26625         * lib/c-strcasestr.c: Update.
26626         * modules/c-strstr (Depends-on): Update.
26627         * lib/c-strstr.c: Update.
26628         * modules/canonicalize-lgpl (Depends-on): Update.
26629         * lib/canonicalize-lgpl.c: Update.
26630         * modules/clean-temp (Depends-on): Update.
26631         * lib/clean-temp.c: Update.
26632         * modules/csharpcomp (Depends-on): Update.
26633         * lib/csharpcomp.c: Update.
26634         * modules/csharpexec (Depends-on): Update.
26635         * lib/csharpexec.c: Update.
26636         * modules/javacomp (Depends-on): Update.
26637         * lib/javacomp.c: Update.
26638         * modules/javaexec (Depends-on): Update.
26639         * lib/javaexec.c: Update.
26640         * modules/mbscasestr (Depends-on): Update.
26641         * lib/mbscasestr.c: Update.
26642         * modules/mbsstr (Depends-on): Update.
26643         * lib/mbsstr.c: Update.
26644         * modules/setenv (Depends-on): Update.
26645         * lib/setenv.c: Update.
26646         * modules/strcasestr (Depends-on): Update.
26647         * lib/strcasestr.c: Update.
26648         * modules/striconveha (Depends-on): Update.
26649         * lib/striconveha.c: Update.
26650         * modules/relocatable-prog-wrapper (Files): Update.
26651         * lib/relocwrapper.c: Update.
26652         * build-aux/install-reloc: Update.
26653         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
26654
26655 2007-06-08  Bruno Haible  <bruno@clisp.org>
26656
26657         Port to uClibc.
26658         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
26659         * lib/fpurge.c (fpurge): Likewise.
26660         * lib/freading.c (freading): Likewise.
26661         * lib/fseeko.c (rpl_fseeko): Likewise.
26662         * lib/fseterr.c (fseterr): Likewise.
26663         * lib/fwriting.c (fwriting): Likewise.
26664         * tests/test-fflush.c (main): Avoid a failure on uClibc.
26665
26666 2007-06-08  Bruno Haible  <bruno@clisp.org>
26667
26668         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
26669         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
26670         * modules/gettext (Files): Add m4/intlmacosx.m4.
26671
26672 2007-06-07  Bruno Haible  <bruno@clisp.org>
26673
26674         * modules/localename-tests: New file.
26675         * tests/test-localename.c: New file.
26676
26677         New module 'localename'.
26678         * lib/localename.h: New file.
26679         * lib/localename.c: New file, from GNU gettext.
26680         * m4/localename.m4: New file.
26681         * modules/localename: New file.
26682
26683 2007-06-07  Bruno Haible  <bruno@clisp.org>
26684
26685         Work around the lack of <wchar.h> on some builds of uClibc.
26686         * doc/headers/wchar.texi: Update.
26687         * lib/wchar_.h: Include <wchar.h> only if it exists.
26688         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
26689         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
26690         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
26691         doesn't exist.
26692         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
26693         * modules/mbfile (Depends-on): Add wchar.
26694         * modules/mbiter (Depends-on): Likewise.
26695         * modules/mbuiter (Depends-on): Likewise.
26696         Reported by Simon Josefsson.
26697
26698 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26699
26700         Work around problem reported by Steven M. Schweda in
26701         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
26702         Tru64 5.1B with the Compaq compiler environment installed declares
26703         an 'isblank' function but does not define it in the C library.
26704         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
26705         * lib/regex_internal.h (isblank): Likewise.
26706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
26707         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26708
26709 2007-06-05  Bruno Haible  <bruno@clisp.org>
26710
26711         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
26712         ia64.
26713         * modules/printf-safe: New file.
26714         * modules/fprintf-posix (Depends-on): Add printf-safe.
26715         * modules/printf-posix (Depends-on): Likewise.
26716         * modules/snprintf-posix (Depends-on): Likewise.
26717         * modules/sprintf-posix (Depends-on): Likewise.
26718         * modules/vasnprintf-posix (Depends-on): Likewise.
26719         * modules/vasprintf-posix (Depends-on): Likewise.
26720         * modules/vfprintf-posix (Depends-on): Likewise.
26721         * modules/vprintf-posix (Depends-on): Likewise.
26722         * modules/vsnprintf-posix (Depends-on): Likewise.
26723         * modules/vsprintf-posix (Depends-on): Likewise.
26724         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
26725         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
26726         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
26727         "no" on i386, x86_64, ia64.
26728         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
26729         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
26730         on i386, x86_64, ia64.
26731         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
26732         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
26733         on i386, x86_64, ia64.
26734         * tests/test-vasnprintf-posix.c: Include float.h.
26735         (LDBL80_WORDS): New macro.
26736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
26737         on i386, x86_64, ia64.
26738         * tests/test-vasprintf-posix.c: Include float.h.
26739         (LDBL80_WORDS): New macro.
26740         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
26741         on i386, x86_64, ia64.
26742         * tests/test-snprintf-posix.c: Include float.h.
26743         * tests/test-sprintf-posix.c: Likewise.
26744         * tests/test-vsnprintf-posix.c: Likewise.
26745         * tests/test-vsprintf-posix.c: Likewise.
26746
26747 2007-06-05  Bruno Haible  <bruno@clisp.org>
26748
26749         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
26750         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
26751         non-IEEE numbers on i386, x86_64, ia64.
26752         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
26753         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
26754         * tests/test-isnanl.h: Include float.h.
26755         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
26756
26757 2007-06-05  Bruno Haible  <bruno@clisp.org>
26758
26759         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
26760         also the %a / %A. Handle the %a / %A code before this extra handling.
26761
26762 2007-06-05  Bruno Haible  <bruno@clisp.org>
26763
26764         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
26765         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
26766
26767 2007-06-05  Bruno Haible  <bruno@clisp.org>
26768
26769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
26770         typo in variable name.
26771
26772 2007-06-05  Eric Blake  <ebb9@byu.net>
26773
26774         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
26775         Reported by Simon Josefsson.
26776
26777 2007-06-04  Bruno Haible  <bruno@clisp.org>
26778
26779         Avoid test failures on some PowerPC platforms.
26780         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
26781         Define differently for PowerPC.
26782         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
26783         Reported by Gary V. Vaughan <gary@gnu.org>.
26784
26785 2007-06-02  Bruno Haible  <bruno@clisp.org>
26786
26787         Fix test-stdint failure on FreeBSD/ia64.
26788         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
26789         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
26790         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
26791         * doc/headers/stdint.texi: Update.
26792
26793 2007-06-01  Bruno Haible  <bruno@clisp.org>
26794
26795         * tests/test-binary-io.c (main): Pass a third argument to open().
26796         Reported by Gary V. Vaughan <gary@gnu.org>.
26797
26798 2007-06-01  Bruno Haible  <bruno@clisp.org>
26799
26800         * doc/functions/frexpl.texi: Update for mingw.
26801
26802 2007-06-01  Bruno Haible  <bruno@clisp.org>
26803
26804         * tests/test-lseek.c (main): Disable test of errno for invalid third
26805         argument.
26806         * doc/functions/lseek.texi: Update.
26807         Reported by Gary V. Vaughan <gary@gnu.org>.
26808
26809 2007-05-28  Bruno Haible  <bruno@clisp.org>
26810
26811         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
26812
26813 2007-05-31  Eric Blake  <ebb9@byu.net>
26814
26815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
26816         cross compiling.
26817
26818 2007-05-30  Eric Blake  <ebb9@byu.net>
26819         and Bruno Haible  <bruno@clisp.org>
26820
26821         Work around mingw test failures exposed by m4-1.4.9b.
26822         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
26823         * tests/test-unistd.c: Disable uid_t and git_t tests for the
26824         moment.
26825
26826 2007-05-30  Bruno Haible  <bruno@clisp.org>
26827
26828         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
26829         assuming that they are closed. Needed on HP-UX 11.
26830
26831 2007-05-29  Bruno Haible  <bruno@clisp.org>
26832
26833         Fix a problem with #include_next.
26834         * lib/dirent_.h: Split the double-inclusion guard.
26835         * lib/fcntl_.h: Likewise.
26836         * lib/float_.h: Likewise.
26837         * lib/iconv_.h: Likewise.
26838         * lib/inttypes_.h: Likewise.
26839         * lib/locale_.h: Likewise.
26840         * lib/math_.h: Likewise.
26841         * lib/netinet_in_.h: Likewise.
26842         * lib/search_.h: Likewise.
26843         * lib/signal_.h: Likewise.
26844         * lib/stdint_.h: Likewise.
26845         * lib/stdio_.h: Likewise.
26846         * lib/stdlib_.h: Likewise.
26847         * lib/string_.h: Likewise.
26848         * lib/sys_select_.h: Likewise.
26849         * lib/sys_socket_.h: Likewise.
26850         * lib/sys_stat_.h: Likewise.
26851         * lib/sys_time_.h: Likewise.
26852         * lib/sysexits_.h: Likewise.
26853         * lib/time_.h: Likewise.
26854         * lib/unistd_.h: Likewise.
26855         * lib/wchar_.h: Likewise.
26856         * lib/wctype_.h: Likewise.
26857
26858 2007-05-29  Bruno Haible  <bruno@clisp.org>
26859
26860         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
26861         for the moment.
26862
26863 2007-05-29  Bruno Haible  <bruno@clisp.org>
26864
26865         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
26866         invocation.
26867         Reported by Eric Blake.
26868
26869 2007-05-29  Bruno Haible  <bruno@clisp.org>
26870
26871         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
26872         compiling case.
26873
26874 2007-05-29  Eric Blake  <ebb9@byu.net>
26875             Bruno Haible  <bruno@clisp.org>
26876
26877         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
26878         cross compiles.
26879
26880 2007-05-28  Eric Blake  <ebb9@byu.net>
26881
26882         * modules/closein-tests (test_closein_LDADD): Support test on
26883         cygwin with libtool.
26884
26885 2007-05-28  Bruno Haible  <bruno@clisp.org>
26886
26887         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
26888         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26889         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26890         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26891         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26892         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26893         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26894         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26895         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26896
26897 2007-05-28  Eric Blake  <ebb9@byu.net>
26898
26899         Unconditionally include <config.h> in unit tests.
26900         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
26901         * tests/test-allocsa.c, tests/test-arcfour.c,
26902         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
26903         tests/test-array_list.c, tests/test-array_oset.c,
26904         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
26905         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
26906         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
26907         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
26908         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
26909         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
26910         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
26911         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
26912         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
26913         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
26914         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
26915         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
26916         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
26917         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
26918         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
26919         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
26920         test-md5.c, test-memmem.c, test-printf-posix.c,
26921         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
26922         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
26923         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
26924         test-strcasestr.c, test-striconv.c, test-striconveh.c,
26925         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
26926         test-vasnprintf-posix2.c, test-vasnprintf.c,
26927         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
26928         test-vfprintf-posix.c, test-vprintf-posix.c,
26929         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
26930         test-xvasprintf.c: Likewise.
26931
26932 2007-05-28  Bruno Haible  <bruno@clisp.org>
26933
26934         * gnulib-tool (func_import): Remember the --with-tests command-line
26935         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
26936         Reported by Eric Blake.
26937
26938 2007-05-28  Bruno Haible  <bruno@clisp.org>
26939
26940         * modules/ftell-tests: New file.
26941         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
26942         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
26943
26944         * lib/ftell.c: New file.
26945         * modules/ftell: New file.
26946         * m4/ftell.m4: New file.
26947         * doc/functions/ftell.texi: Update.
26948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
26949         REPLACE_FTELL.
26950         * lib/stdio_.h (rpl_ftell): New declaration.
26951         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
26952         REPLACE_FTELL.
26953
26954 2007-05-28  Eric Blake  <ebb9@byu.net>
26955
26956         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
26957
26958 2007-05-28  Bruno Haible  <bruno@clisp.org>
26959
26960         * modules/fseek-tests: New file.
26961         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
26962         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
26963
26964         * lib/fseek.c: New file.
26965         * modules/fseek: New file.
26966         * m4/fseek.m4: New file.
26967         * doc/functions/fseek.texi: Update.
26968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
26969         REPLACE_FSEEK.
26970         * lib/stdio_.h (rpl_fseek): New declaration.
26971         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
26972         REPLACE_FSEEK.
26973
26974 2007-05-28  Bruno Haible  <bruno@clisp.org>
26975
26976         * lib/stdio_.h (fflush): More comments.
26977
26978 2007-05-28  Bruno Haible  <bruno@clisp.org>
26979
26980         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
26981         runtime test.
26982
26983 2007-05-28  Eric Blake  <ebb9@byu.net>
26984
26985         Improve lseek module.
26986         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
26987         * lib/unistd_.h (lseek): Scale back link warning message.
26988         * tests/test-lseek.c: Beef up test.
26989         * tests/test-lseek.sh: Exercise more facets of lseek.
26990         Reported by Bruno Haible.
26991
26992 2007-05-28  Bruno Haible  <bruno@clisp.org>
26993
26994         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
26995         to define.
26996
26997 2007-05-27  Bruno Haible  <bruno@clisp.org>
26998
26999         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
27000
27001 2007-05-27  Bruno Haible  <bruno@clisp.org>
27002
27003         * modules/openmp: New file.
27004         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
27005         Noah Misch.
27006
27007 2007-05-26  Bruno Haible  <bruno@clisp.org>
27008
27009         * modules/chdir-long (Depends-on): Add fchdir.
27010         * modules/chdir-safer (Depends-on): Likewise.
27011         * modules/fts (Depends-on): Likewise.
27012         * modules/fts-lgpl (Depends-on): Likewise.
27013         * modules/openat (Depends-on): Likewise.
27014         * modules/savewd (Depends-on): Likewise.
27015
27016 2007-05-24  Eric Blake  <ebb9@byu.net>
27017
27018         Fix lseek on mingw.
27019         * modules/lseek: New module.
27020         * m4/lseek.m4: New file.
27021         * lib/lseek.c: New file.
27022         * modules/lseek-tests: New file.
27023         * tests/test-lseek.c: New file.
27024         * tests/test-lseek.sh: New file.
27025         * MODULES.html.sh: Document lseek module.
27026         * modules/fflush (Depends-on): Add lseek, fseeko.
27027         * modules/fseeko (Depends-on): Likewise.
27028         * modules/ftello (Depends-on): Likewise.
27029         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
27030         broken.
27031         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
27032         broken.
27033         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
27034         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
27035         * lib/ftello.c (rpl_ftello): Likewise.
27036         * tests/test-fseeko.c (main): Test this.
27037         * tests/test-fseeko.sh: Likewise.
27038         * tests/test-ftello.c (main): Likewise.
27039         * tests/test-ftello.sh: Likewise.
27040         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
27041         implies replacing fseek.
27042         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
27043         HAVE_FTELLO.
27044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
27045         * modules/unistd (Makefile.am): Likewise.
27046         * lib/unistd_.h (lseek): Declare a replacement.
27047         * doc/functions/lseek.texi (lseek): Document this fix.
27048         * doc/functions/fseek.texi (fseek): Likewise.
27049         * doc/functions/ftell.texi (ftell): Likewise.
27050
27051 2007-05-24  Bruno Haible  <bruno@clisp.org>
27052
27053         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
27054         in the printed representation of a NaN.
27055         * tests/test-vasprintf-posix.c (test_function): Likewise.
27056         * tests/test-snprintf-posix.h (test_function): Likewise.
27057         * tests/test-sprintf-posix.h (test_function): Likewise.
27058         Reported by Eric Blake.
27059
27060 2007-05-23  Eric Blake  <ebb9@byu.net>
27061
27062         Fix fseeko/ftello on cygwin 1.5.24.
27063         * doc/functions/fseeko.texi (fseeko): Document the fix.
27064         * doc/functions/ftello.texi (ftello): Document the fix.
27065         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
27066         * doc/functions/stdout.text (stdout): New file.
27067         * doc/functions/stderr.text (stderr): New file.
27068         * doc/gnulib.texi (Function Substitutes): Use new files.
27069         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
27070         prior to 1.7.0.
27071         * tests/test-ftello.c (main): Likewise for ftello.
27072         * tests/test-fseeko.sh: New file.
27073         * tests/test-ftello.sh: New file.
27074         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
27075         with seekable stdin.
27076         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
27077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
27078         (gl_REPLACE_FSEEKO): New macro.
27079         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
27080         * modules/fseeko (Files): Distribute fseeko.c.
27081         * modules/ftello (Files): Distribute ftello.c.
27082         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
27083         mode.
27084         * lib/ftello.c (rpl_ftello): New file.
27085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
27086         fseeko, ftello.
27087         (gl_STDIN_LARGE_OFFSET): New macro.
27088         * modules/stdio (Makefile.am): Perform the replacement.
27089         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
27090
27091 2007-05-23  Bruno Haible  <bruno@clisp.org>
27092
27093         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
27094         GNULIB_POSIXCHECK is defined.
27095
27096 2007-05-21  Bruno Haible  <bruno@clisp.org>
27097
27098         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
27099         Check also the output for NaN arguments. When cross-compiling, guess
27100         no on IRIX.
27101         * lib/vasnprintf.c: Update comments.
27102         * tests/test-vasnprintf-posix.c (strisnan): New function.
27103         (test_function): Use it.
27104         * tests/test-vasprintf-posix.c (strisnan): New function.
27105         (test_function): Use it.
27106         * tests/test-snprintf-posix.h (strisnan): New function.
27107         (test_function): Use it.
27108         * tests/test-sprintf-posix.h (strisnan): New function.
27109         (test_function): Use it.
27110         Reported by Eric Blake.
27111
27112 2007-05-20  Bruno Haible  <bruno@clisp.org>
27113
27114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
27115         numbers that fails on BeOS.
27116         * doc/functions/frexpl.texi: Update.
27117
27118 2007-05-20  Jim Meyering  <jim@meyering.net>
27119
27120         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
27121         forced upon us by glibc-2.6.
27122
27123 2007-05-20  Bruno Haible  <bruno@clisp.org>
27124
27125         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
27126         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
27127         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
27128         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
27129         NEED_PRINTF_INFINITE.
27130         (is_infinitel): New function.
27131         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
27132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
27133         gl_PREREQ_VASNPRINTF_INFINITE.
27134         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
27135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27136         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
27137         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
27138         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
27139         gl_PREREQ_VASNPRINTF_INFINITE.
27140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27147         * doc/functions/fprintf.texi: Update.
27148         * doc/functions/printf.texi: Update.
27149         * doc/functions/snprintf.texi: Update.
27150         * doc/functions/sprintf.texi: Update.
27151         * doc/functions/vfprintf.texi: Update.
27152         * doc/functions/vprintf.texi: Update.
27153         * doc/functions/vsnprintf.texi: Update.
27154         * doc/functions/vsprintf.texi: Update.
27155
27156 2007-05-20  Bruno Haible  <bruno@clisp.org>
27157
27158         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
27159         was not found in libc.
27160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27161
27162 2007-05-20  Bruno Haible  <bruno@clisp.org>
27163
27164         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
27165         printed as "-nan" instead of "nan".
27166         * tests/test-vasprintf-posix.c (test_function): Likewise.
27167         * tests/test-snprintf-posix.h (test_function): Likewise.
27168         * tests/test-sprintf-posix.h (test_function): Likewise.
27169         Needed for HP-UX 11.
27170
27171 2007-05-20  Jim Meyering  <jim@meyering.net>
27172
27173         Fix buggy test for the fchownat-deref bug.
27174         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
27175         symlink required for the run-test.  Without it, this test would
27176         always declare that fchownat doesn't work, and client code would
27177         unnecessarily use the replacement function with fixed libc.
27178         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
27179         Reported by Greg Schafer.
27180
27181 2007-05-19  Bruno Haible  <bruno@clisp.org>
27182
27183         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
27184         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
27185         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
27186         Needed for IRIX 6.5 and Solaris 2.5.1.
27187
27188 2007-05-19  Bruno Haible  <bruno@clisp.org>
27189
27190         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
27191         (test_function): Skip tests involving -0.0 on platforms where
27192         -0.0 = 0.0.
27193         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
27194         (test_function): Skip tests involving -0.0 on platforms where
27195         -0.0 = 0.0.
27196         * tests/test-snprintf-posix.h (have_minus_zero): New function.
27197         (test_function): Skip tests involving -0.0 on platforms where
27198         -0.0 = 0.0.
27199         * tests/test-sprintf-posix.h (have_minus_zero): New function.
27200         (test_function): Skip tests involving -0.0 on platforms where
27201         -0.0 = 0.0.
27202         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
27203         tests.
27204         * tests/test-printf-posix.h (test_function): Likewise.
27205         * tests/test-printf-posix.output: Remove all -0.0 related results.
27206         Needed for IRIX 6.5.
27207
27208 2007-05-19  Bruno Haible  <bruno@clisp.org>
27209
27210         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
27211         printed as "nan0x7fffffff" instead of "nan".
27212         * tests/test-vasprintf-posix.c (test_function): Likewise.
27213         * tests/test-snprintf-posix.h (test_function): Likewise.
27214         * tests/test-sprintf-posix.h (test_function): Likewise.
27215         * tests/test-fprintf-posix.h (NaN): Remove macro.
27216         (test_function): Remove all NaN related tests.
27217         * tests/test-printf-posix.h (NaN): Remove macro.
27218         (test_function): Remove all NaN related tests.
27219         * tests/test-printf-posix.output: Remove all NaN related results.
27220         Needed for IRIX 6.5.
27221
27222 2007-05-19  Bruno Haible  <bruno@clisp.org>
27223
27224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
27225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27226
27227 2007-05-19  Bruno Haible  <bruno@clisp.org>
27228
27229         * lib/float_.h: New file.
27230         * m4/float_h.m4: New file.
27231         * modules/float: New file.
27232         * modules/isnanl (Dependencies): Add float.
27233         * modules/isnanl-nolibm (Dependencies): Likewise.
27234         * modules/mathl (Dependencies): Likewise.
27235         * modules/printf-frexpl (Dependencies): Likewise.
27236         * modules/signbit (Dependencies): Likewise.
27237         * modules/vasnprintf (Dependencies): Likewise.
27238         * doc/headers/float.texi: Update.
27239
27240 2007-05-19  Jim Meyering  <jim@meyering.net>
27241
27242         * lib/utimens.c (gl_futimens): Rename from futimens,
27243         now that glibc-2.6 declares futimens.
27244         * lib/utimens.h: Likewise.
27245
27246 2007-05-19  Bruno Haible  <bruno@clisp.org>
27247
27248         Avoid test failures on mingw.
27249         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
27250         * tests/test-printf-posix.sh: Likewise.
27251         * tests/test-vfprintf-posix.sh: Likewise.
27252         * tests/test-vprintf-posix.sh: Likewise.
27253
27254 2007-05-19  Bruno Haible  <bruno@clisp.org>
27255
27256         Fix *printf result for NaN, Inf, -0.0 on mingw.
27257         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
27258         * lib/vasnprintf.c: Include math.h and isnan.h.
27259         (is_infinite_or_zero): New function.
27260         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
27261         values in the %f, %F, %e, %E, %g, %G directives.
27262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
27263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27264         gl_PRINTF_INFINITE and test its result. Invoke
27265         gl_PREREQ_VASNPRINTF_INFINITE.
27266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27273         * doc/functions/fprintf.texi: Update.
27274         * doc/functions/printf.texi: Update.
27275         * doc/functions/snprintf.texi: Update.
27276         * doc/functions/sprintf.texi: Update.
27277         * doc/functions/vfprintf.texi: Update.
27278         * doc/functions/vprintf.texi: Update.
27279         * doc/functions/vsnprintf.texi: Update.
27280         * doc/functions/vsprintf.texi: Update.
27281
27282 2007-05-19  Bruno Haible  <bruno@clisp.org>
27283
27284         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
27285         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
27286         Instead of multiplying with 10^k, set extra_zeroes to k.
27287         (scale10_round_long_double): Remove function.
27288
27289 2007-05-18  Bruno Haible  <bruno@clisp.org>
27290
27291         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
27292         introduced on 2007-05-06.
27293
27294 2007-05-18  Bruno Haible  <bruno@clisp.org>
27295
27296         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
27297         %g directives.
27298         * tests/test-vasprintf-posix.c (test_function): Likewise.
27299         * tests/test-snprintf-posix.h (test_function): Likewise.
27300         * tests/test-sprintf-posix.h (test_function): Likewise.
27301
27302 2007-05-18  Bruno Haible  <bruno@clisp.org>
27303
27304         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
27305         (strmatch): New function.
27306         (test_function): Test the %f directive on numbers of various exponents.
27307         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
27308         (strmatch): New function.
27309         (test_function): Test the %f directive on numbers of various exponents.
27310         * tests/test-snprintf-posix.h (strmatch): New function.
27311         (test_function): Test the %f directive on numbers of various exponents.
27312         * tests/test-sprintf-posix.h (strmatch): New function.
27313         (test_function): Test the %f directive on numbers of various exponents.
27314         * tests/test-snprintf-posix.c (SIZEOF): New macro.
27315         * tests/test-sprintf-posix.c (SIZEOF): New macro.
27316         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
27317         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
27318
27319 2007-05-18  Bruno Haible  <bruno@clisp.org>
27320
27321         Add support for 'long double' number output.
27322         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
27323         * lib/vasnprintf.c: Include math.h and float+.h.
27324         (mp_limb_t): New type.
27325         (GMP_LIMB_BITS): New macro.
27326         (mp_twolimb_t): New type.
27327         (GMP_TWOLIMB_BITS): New macro.
27328         (mpn_t): New type.
27329         (multiply, divide, convert_to_decimal, decode_long_double,
27330         scale10_round_long_double, scale10_round_decimal_long_double,
27331         floorlog10l): New functions.
27332         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
27333         for the %f, %F, %e, %E, %g, %G directives.
27334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
27335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27336         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
27337         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
27338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27341         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27342         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27345         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
27346         * modules/snprintf-posix (Depends-on): Likewise.
27347         * modules/sprintf-posix (Depends-on): Likewise.
27348         * modules/vasnprintf-posix (Depends-on): Likewise.
27349         * modules/vasprintf-posix (Depends-on): Likewise.
27350         * modules/vfprintf-posix (Depends-on): Likewise.
27351         * modules/vsnprintf-posix (Depends-on): Likewise.
27352         * modules/vsprintf-posix (Depends-on): Likewise.
27353         * modules/vasnprintf (Files): Add lib/float+.h.
27354         * doc/functions/fprintf.texi: Update.
27355         * doc/functions/printf.texi: Update.
27356         * doc/functions/snprintf.texi: Update.
27357         * doc/functions/sprintf.texi: Update.
27358         * doc/functions/vfprintf.texi: Update.
27359         * doc/functions/vprintf.texi: Update.
27360         * doc/functions/vsnprintf.texi: Update.
27361         * doc/functions/vsprintf.texi: Update.
27362
27363 2007-05-18  Bruno Haible  <bruno@clisp.org>
27364
27365         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
27366
27367 2007-05-18  Bruno Haible  <bruno@clisp.org>
27368
27369         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
27370         for printing 64-bit integers. Needed for mingw.
27371
27372 2007-05-18  Bruno Haible  <bruno@clisp.org>
27373
27374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
27375         gl_FUNC_FREXPL_WORKS.
27376         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
27377
27378 2007-05-18  Bruno Haible  <bruno@clisp.org>
27379
27380         * modules/frexpl-nolibm-tests: New file.
27381
27382         * modules/frexpl-nolibm: New file.
27383         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
27384
27385 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27386
27387         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
27388         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
27389         GCC 4.2, which otherwise issues a lot of warnings.
27390         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
27391         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
27392         Likewise.
27393         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
27394         * modules/iconv_open (iconv.h): Likewise.
27395         * modules/locale (locale.h): Likewise.
27396         * modules/netinet_in (netinet/in.h): Likewise.
27397         * modules/sys_select (sys_select.h): Likewise.
27398         * modules/sys_socket (sys/socket.h): Likewise.
27399         * modules/sys_stat (sys/stat.h): Likewise.
27400         * modules/sysexits (sysexits.h): Likewise.
27401         * modules/unistd (unistd.h): Likewise.
27402
27403 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27404
27405         * modules/closein-tests (Makefile.am): Distribute
27406         `test-closein.sh'.
27407
27408 2007-05-17  Bruno Haible  <bruno@clisp.org>
27409
27410         * tests/test-printf-posix.output: Renamed from
27411         tests/test-fprintf-posix.out.
27412         * modules/fprintf-posix-tests: Update.
27413         * modules/printf-posix-tests: Update.
27414         * modules/vfprintf-posix-tests: Update.
27415         * modules/vprintf-posix-tests: Update.
27416         * tests/test-fprintf-posix.sh: Update.
27417         * tests/test-printf-posix.sh: Update.
27418         * tests/test-vfprintf-posix.sh: Update.
27419         * tests/test-vprintf-posix.sh: Update.
27420         Reported by Ralf Wildenhues.
27421
27422 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27423
27424         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
27425         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
27426         GCC 4.2, which otherwise issues a lot of warnings.
27427         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
27428         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
27429         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
27430         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
27431         it should no longer be needed.
27432         * lib/string_.h: Likewise.
27433         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
27434         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
27435         * modules/inttypes (inttypes.h): Likewise.
27436         * modules/math (math.h): Likewise.
27437         * modules/search (search.h): Likewise.
27438         * modules/signal (signal.h): Likewise.
27439         * modules/stdint (stdint.h): Likewise.
27440         * modules/stdio (stdio.h): Likewise.
27441         * modules/stdlib (stdlib.h): Likewise.
27442         * modules/string (string.h): Likewise.
27443         * modules/sys_time (sys/time.h): Likewise.
27444         * modules/time (time.h): Likewise.
27445         * modules/wchar (wchar.h): Likewise.
27446         * modules/wctype (wtype.h): Likewise.
27447
27448 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27449
27450         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
27451
27452 2007-05-13  Bruno Haible  <bruno@clisp.org>
27453
27454         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
27455         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27456         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
27457         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
27458         (gl_PREREQ_STRTOK_R): Don't require it here.
27459
27460 2007-05-13  Bruno Haible  <bruno@clisp.org>
27461
27462         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
27463         when used in C++ mode.
27464
27465 2007-05-12  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/linebuffer.h: Tweak doc.
27468         * lib/linebuffer.c: Likewise.
27469
27470 2007-05-12  James Youngman  <jay@gnu.org>
27471
27472         * lib/linebuffer.c (readlinebuffer_delim): New function,
27473         like readlinebuffer, but use a caller-specified delimiter.
27474         (readlinebuffer): Just call readlinebuffer_delim with '\n'
27475         as the delimiter.
27476         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
27477
27478 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27479
27480         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
27481         * modules/openat (Files): Remove openat-die.c.
27482         (Depends-on): Add openat-die.
27483         * modules/openat-die: New module.
27484
27485 2007-05-06  Bruno Haible  <bruno@clisp.org>
27486
27487         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
27488         Update with info about Cygwin.
27489         * doc/functions/fprintf.texi: Update.
27490         * doc/functions/printf.texi: Update.
27491         * doc/functions/snprintf.texi: Update.
27492         * doc/functions/sprintf.texi: Update.
27493         * doc/functions/vfprintf.texi: Update.
27494         * doc/functions/vprintf.texi: Update.
27495         * doc/functions/vsnprintf.texi: Update.
27496         * doc/functions/vsprintf.texi: Update.
27497         Reported by Eric Blake.
27498
27499 2007-05-06  Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
27502         padding ourselves for the floating-point directives.
27503         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
27504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
27505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
27506         gl_PRINTF_FLAG_ZERO and test its result. Invoke
27507         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
27508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
27510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27515         * tests/test-snprintf-posix.h (test_function): Also check the width
27516         and some flags in the %f directive.
27517         * tests/test-sprintf-posix.h (test_function): Likewise.
27518         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27519         * tests/test-vasprintf-posix.c (test_function): Likewise.
27520         * doc/functions/fprintf.texi: Update.
27521         * doc/functions/printf.texi: Update.
27522         * doc/functions/snprintf.texi: Update.
27523         * doc/functions/sprintf.texi: Update.
27524         * doc/functions/vfprintf.texi: Update.
27525         * doc/functions/vprintf.texi: Update.
27526         * doc/functions/vsnprintf.texi: Update.
27527         * doc/functions/vsprintf.texi: Update.
27528
27529 2007-05-06  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
27532         pass the ' flag character to sprintf or snprintf.
27533         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
27534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
27535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
27536         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
27537         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
27538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
27540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27545         * tests/test-snprintf-posix.h (test_function): Also check the grouping
27546         flag.
27547         * tests/test-sprintf-posix.h (test_function): Likewise.
27548         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27549         * tests/test-vasprintf-posix.c (test_function): Likewise.
27550         * doc/functions/fprintf.texi: Update.
27551         * doc/functions/printf.texi: Update.
27552         * doc/functions/snprintf.texi: Update.
27553         * doc/functions/sprintf.texi: Update.
27554         * doc/functions/vfprintf.texi: Update.
27555         * doc/functions/vprintf.texi: Update.
27556         * doc/functions/vsnprintf.texi: Update.
27557         * doc/functions/vsprintf.texi: Update.
27558
27559 2007-05-01  Bruno Haible  <bruno@clisp.org>
27560
27561         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
27562
27563 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
27564
27565         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
27566         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
27567
27568 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27569
27570         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
27571         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
27572         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
27573
27574 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
27575
27576         * lib/argp-help.c (struct hol_entry): New member `ord'.
27577         (HOL_ENTRY_PTRCMP): Use ord for comparison
27578         (hol_sort): Initialize ord.
27579
27580 2007-05-01  Bruno Haible  <bruno@clisp.org>
27581
27582         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
27583         Reported by Eric Blake.
27584         * doc/gnulib.texi (Function Substitutes): Update.
27585
27586 2007-05-01  Bruno Haible  <bruno@clisp.org>
27587
27588         * doc/functions.texi: Remove file, now redundant through
27589         doc/functions/*.texi.
27590
27591 2007-05-01  Bruno Haible  <bruno@clisp.org>
27592
27593         * modules/argp (Depends-on): Add sleep.
27594
27595 2007-05-01  Bruno Haible  <bruno@clisp.org>
27596
27597         * modules/sleep-tests: New file.
27598         * tests/test-sleep.c: New file.
27599
27600         * modules/sleep: New file.
27601         * lib/sleep.c: New file.
27602         * m4/sleep.m4: New file.
27603         * lib/unistd_.h (sleep): New declaration.
27604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
27605         HAVE_SLEEP.
27606         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
27607         * doc/functions/sleep.texi: Document the sleep module.
27608
27609 2007-05-01  Bruno Haible  <bruno@clisp.org>
27610
27611         * lib/sigprocmask.h: Remove file.
27612         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
27613         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
27614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
27615         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
27616         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
27617         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
27618         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
27619         HAVE_SIGSET_T as a shell variable.
27620         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
27621         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
27622         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
27623         (Depends-on): Add signal. Remove verify.
27624         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
27625         (Include): Mention <signal.h> instead of sigprocmask.h.
27626         * NEWS: Mention the change.
27627         * lib/fatal-signal.c: Don't include sigprocmask.h.
27628
27629 2007-05-01  Bruno Haible  <bruno@clisp.org>
27630
27631         * modules/signal: New file.
27632         * lib/signal_.h: New file.
27633         * m4/signal_h.m4: New file.
27634
27635 2007-05-01  Bruno Haible  <bruno@clisp.org>
27636
27637         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
27638         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
27639         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
27640         HAVE_WCTYPE_CTMP_BUG into wctype.h.
27641
27642 2007-05-01  Bruno Haible  <bruno@clisp.org>
27643
27644         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
27645         configure time.
27646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
27647         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
27648         * modules/sys_stat (Makefile.am): Substitute their values into
27649         sys/stat.h.
27650
27651 2007-05-01  Bruno Haible  <bruno@clisp.org>
27652
27653         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
27654         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
27655         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
27656
27657 2007-05-01  Bruno Haible  <bruno@clisp.org>
27658
27659         * doc/header/assert.texi: Undo last change: don't mention the gnulib
27660         'assert' module here.
27661
27662 2007-05-01  Bruno Haible  <bruno@clisp.org>
27663
27664         * doc/functions/*.texi: New files.
27665         * doc/functions/google-ranking.txt: New file.
27666         * doc/gnulib.texi (Function Substitutes): New chapter.
27667         (ctime, inet_ntoa): Remove sections.
27668         * doc/ctime.texi: Remove file.
27669         * doc/inet_ntoa.texi: Remove file.
27670         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
27671         dependencies.
27672         (%.info): New rule, specifying a --reference-limit.
27673
27674 2007-05-01  Bruno Haible  <bruno@clisp.org>
27675
27676         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
27677
27678 2007-05-01  Bruno Haible  <bruno@clisp.org>
27679
27680         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
27681         the portability of 'mkdir' to mingw systems.
27682
27683 2007-05-01  Bruno Haible  <bruno@clisp.org>
27684
27685         * doc/headers/google-ranking.txt: New file.
27686
27687 2007-04-30  Eric Blake  <ebb9@byu.net>
27688
27689         Prefer fseeko to fseek.
27690         * modules/getpass (Depends-on): Add fseeko.
27691         * lib/getpass.c (getpass): Use fseeko, not fseek.
27692
27693 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
27694
27695         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
27696         assumes the sorting is stable, while most qsort implementations
27697         are not.  Use argument addresses to ensure they never compare as
27698         equal.
27699
27700         * tests/test-argp-2.sh (usage-indent test): Fix output
27701         (func_compare): Restore diff options
27702         * tests/test-argp.c: Restore #include "progname.h"
27703
27704 2007-04-29  Bruno Haible  <bruno@clisp.org>
27705
27706         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
27707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
27708         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
27709         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27710         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
27711         (configure.ac): Define CHECK_SNPRINTF_POSIX.
27712         (TESTS, check_PROGRAMS): Add test-snprintf.
27713         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
27714         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
27715         (TESTS, check_PROGRAMS): Add test-vsnprintf.
27716         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
27717         assertions that fail on HP-UX, OSF/1, or IRIX.
27718         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
27719
27720 2007-04-29  Bruno Haible  <bruno@clisp.org>
27721
27722         * MODULES.html.sh (posix_functions): Remove 'contents'.
27723
27724 2007-04-29  Karl Berry  <karl@gnu.org>
27725
27726         * config/srclist.txt (gendocs_template_min): new entry.
27727
27728 2007-04-29  Bruno Haible  <bruno@clisp.org>
27729
27730         Work around fpurge bug on BSD systems.
27731         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
27732         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
27733         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
27734         fpurge to rpl_fpurge if the system already has this function.
27735         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
27736         the case where the system already has this function. Correct invariants
27737         on BSD systems.
27738         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
27739         BSD systems.
27740
27741 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27742
27743         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
27744         proposed by Sven Verdoolaege.
27745
27746         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
27747         options.
27748         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
27749         (usage and help tests): Update
27750
27751 2007-04-29  Bruno Haible  <bruno@clisp.org>
27752
27753         * tests/test-fflush.c (main): Use a file of size 17, not 10.
27754         Print more information in case of failure. Disable a test on BeOS.
27755
27756 2007-04-29  Bruno Haible  <bruno@clisp.org>
27757
27758         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
27759         This helps debugging on systems on which no gdb is available.
27760
27761 2007-04-29  Bruno Haible  <bruno@clisp.org>
27762
27763         * lib/freading.h: Improve comments.
27764         * lib/fwriting.h: Likewise.
27765         * tests/test-freading.c (main): Don't check freading immediately after
27766         repositioning. Needed for glibc.
27767
27768 2007-04-29  Bruno Haible  <bruno@clisp.org>
27769
27770         * lib/freading.c (freading): Trivial simplification.
27771
27772 2007-04-28  Bruno Haible  <bruno@clisp.org>
27773
27774         * tests/test-fwriting.c (main): Also test the interaction between
27775         fflush and fwriting.
27776         * modules/fwriting-tests (Depends-on): Add fflush.
27777
27778         * tests/test-freading.c (main): Also test the interaction between
27779         fflush and freading.
27780         * modules/freading-tests (Depends-on): Add fflush.
27781
27782 2007-04-28  Bruno Haible  <bruno@clisp.org>
27783
27784         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
27785         fseeko and ftello.
27786         Suggested by Eric Blake.
27787
27788 2007-04-28  Jim Meyering  <jim@meyering.net>
27789
27790         Avoid false-negative in gl_STDINT_H's C99 conformance test.
27791         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
27792         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
27793
27794 2007-04-27  Eric Blake  <ebb9@byu.net>
27795
27796         * doc/headers/assert.texi (assert.h): Document assert module use.
27797
27798 2007-04-27  Bruno Haible  <bruno@clisp.org>
27799
27800         * doc/headers/*.texi: New files.
27801         * doc/gnulib.texi (Header File Substitutes): New chapter.
27802         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
27803         dependencies.
27804         (standards.info ,standards.html, standards.dvi): Update dependencies.
27805         (mostlyclean, clean): New targets.
27806
27807 2007-04-27  Bruno Haible  <bruno@clisp.org>
27808
27809         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
27810         * modules/sysexits (Files, Makefile.am): Update.
27811
27812         * lib/sys_socket_.h: Renamed from lib/socket_.h.
27813         * modules/sys_socket (Files, Makefile.am): Update.
27814
27815         * lib/sys_stat_.h: Renamed from lib/stat_.h.
27816         * modules/sys_stat (Files, Makefile.am): Update.
27817
27818 2007-04-27  Eric Blake  <ebb9@byu.net>
27819
27820         * lib/freading.h: Improve comments.
27821         * lib/fwriting.h: Likewise.
27822         * lib/fflush.c: Likewise.
27823
27824         Fix closein for mingw.
27825         * modules/closein-tests: Add tests for closein.
27826         * tests/test-closein.c: New file.
27827         * tests/test-closein.sh: Likewise.
27828         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
27829         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
27830
27831 2007-04-27  Bruno Haible  <bruno@clisp.org>
27832
27833         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
27834         version is < 6.
27835         * lib/math_.h [__DECC]: Likewise.
27836         * lib/stdio_.h [__DECC]: Likewise.
27837         * lib/stdlib_.h [__DECC]: Likewise.
27838         * lib/string_.h [__DECC]: Likewise.
27839         * lib/time_.h [__DECC]: Likewise.
27840         * lib/wchar_.h [__DECC]: Likewise.
27841         * lib/wctype_.h [__DECC]: Likewise.
27842
27843 2007-04-27  Bruno Haible  <bruno@clisp.org>
27844
27845         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
27846
27847 2007-04-27  Bruno Haible  <bruno@clisp.org>
27848
27849         * lib/fflush.c: Add comments.
27850         * modules/fpurge-tests (Depends-on): Add fflush.
27851         * modules/freadable-tests (Depends-on): Likewise.
27852         * modules/fwritable-tests (Depends-on): Likewise.
27853
27854 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
27855
27856         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
27857         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
27858         Report by Bruno Haible <bruno@clisp.org>.
27859
27860 2007-04-26  Eric Blake  <ebb9@byu.net>
27861
27862         Fix fflush on mingw.
27863         * modules/fflush (Depends-on): Add freading.
27864         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
27865         but unread data.
27866
27867 2007-04-26  Eric Blake  <ebb9@byu.net>
27868         and Bruno Haible  <bruno@clisp.org>
27869
27870         Implement freading and fwriting.
27871         * lib/freading.c: New file.
27872         * lib/freading.h: Likewise.
27873         * m4/freading.m4: Likewise.
27874         * modules/freading: Likewise.
27875         * modules/freading-tests: Likewise.
27876         * tests/test-freading.c: Likewise.
27877         * lib/fwriting.c: New file.
27878         * lib/fwriting.h: Likewise.
27879         * m4/fwriting.m4: Likewise.
27880         * modules/fwriting: Likewise.
27881         * modules/fwriting-tests: Likewise.
27882         * tests/test-fwriting.c: Likewise.
27883         * MODULES.html.sh (File stream based Input/Output): Mention them.
27884
27885 2007-04-26  Bruno Haible  <bruno@clisp.org>
27886
27887         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
27888         'long' when we assume it.
27889         Suggested by Eric Blake.
27890
27891 2007-04-26  Bruno Haible  <bruno@clisp.org>
27892
27893         Ensure fseeko, ftello are declared on glibc systems.
27894         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
27895         * modules/fseeko (configure.ac-early): Likewise.
27896         * modules/ftello (configure.ac-early): Likewise.
27897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
27898         AC_FUNC_FSEEKO for this.
27899         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
27900         (gl_CHECK_FSEEKO): Remove macro.
27901
27902 2007-04-26  Bruno Haible  <bruno@clisp.org>
27903
27904         * tests/test-fflush.c (main): Also check the ftell result after
27905         fflush and fseek/fseeko.
27906         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
27907         file descriptor position cache in the stream.
27908         * lib/fseeko.c (rpl_fseeko): Likewise.
27909
27910 2007-04-26  Bruno Haible  <bruno@clisp.org>
27911
27912         * modules/fflush-tests (Depends-on): Add fseeko.
27913
27914 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
27915             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27916
27917         * lib/argz_.h: ensure error_t definition is obtained in same
27918         mechanism system argz.h would have.
27919         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
27920         argz facilities are known bad.  Err on the side of caution if
27921         cross-compiling.
27922
27923 2007-04-25  Eric Blake  <ebb9@byu.net>
27924
27925         * lib/fpurge.c (includes): Use stdlib.h for free.
27926         * tests/test-fflush.c (main): Also test fflush-fseeko.
27927
27928 2007-04-25  Bruno Haible  <bruno@clisp.org>
27929
27930         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
27931         * lib/fseeko.c: New file.
27932         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
27933         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
27934         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
27935         gl_FUNC_FSEEKO.
27936         (gl_FUNC_FSEEKO): Invoke it.
27937         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
27938         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
27939         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
27940
27941 2007-04-25  Bruno Haible  <bruno@clisp.org>
27942
27943         * modules/fflush (Depends-on): Add ftello.
27944
27945 2007-04-25  Bruno Haible  <bruno@clisp.org>
27946
27947         * modules/ftello-tests: New file.
27948         * tests/test-ftello.c: New file.
27949
27950         * modules/ftello: New file.
27951         * m4/ftello.m4: New file.
27952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
27953         HAVE_FTELLO.
27954         * lib/stdio_.h (ftello): New declaration.
27955         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
27956         HAVE_FTELLO.
27957
27958 2007-04-25  Bruno Haible  <bruno@clisp.org>
27959
27960         * modules/fseeko-tests: New file.
27961         * tests/test-fseeko.c: New file.
27962
27963         * modules/fseeko: New file.
27964         * m4/fseeko.m4: New file.
27965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
27966         HAVE_FSEEKO.
27967         * lib/stdio_.h (fseeko): New declaration.
27968         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
27969         HAVE_FSEEKO.
27970
27971 2007-04-25  Bruno Haible  <bruno@clisp.org>
27972
27973         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
27974
27975 2007-04-25  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
27978         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
27979         * tests/test-unistd.c: Likewise.
27980         * tests/test-fcntl.c: Likewise.
27981
27982 2007-04-23  Eric Blake  <ebb9@byu.net>
27983
27984         * lib/fflush.c: Fix missing include.
27985         Reported by Bruno Haible.
27986
27987 2007-04-23  Bruno Haible  <bruno@clisp.org>
27988
27989         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
27990         Reported by Eric Blake.
27991
27992 2007-04-23  Bruno Haible  <bruno@clisp.org>
27993
27994         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
27995
27996 2007-04-23  Bruno Haible  <bruno@clisp.org>
27997
27998         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
27999
28000 2007-04-23  Bruno Haible  <bruno@clisp.org>
28001
28002         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
28003         Needed on HP-UX 11.
28004
28005 2007-04-16  Eric Blake  <ebb9@byu.net>
28006
28007         Make fflush rely on fpurge.
28008         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
28009         open coding all variants.
28010         * modules/fflush (Depends-on): Add fpurge and unistd.
28011         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
28012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
28013
28014         Fix --with-tests compilation on cygwin.
28015         * modules/argmatch-tests (Makefile.am): List gnulib library first
28016         in LDADD.
28017         * modules/argp-tests (Makefile.am): Likewise.
28018         * modules/array-list-tests (Makefile.am): Likewise.
28019         * modules/array-oset-tests (Makefile.am): Likewise.
28020         * modules/avltree-list-tests (Makefile.am): Likewise.
28021         * modules/avltree-oset-tests (Makefile.am): Likewise.
28022         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28023         * modules/carray-list-tests (Makefile.am): Likewise.
28024         * modules/dirname-tests (Makefile.am): Likewise.
28025         * modules/frexp-tests (Makefile.am): Likewise.
28026         * modules/isnanl-tests (Makefile.am): Likewise.
28027         * modules/linked-list-tests (Makefile.am): Likewise.
28028         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28029         * modules/lock-tests (Makefile.am): Likewise.
28030         * modules/rbtree-list-tests (Makefile.am): Likewise.
28031         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28032         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28033         * modules/tls-tests (Makefile.am): Likewise.
28034         * modules/tsearch-tests (Makefile.am): Likewise.
28035         * modules/xvasprintf-tests (Makefile.am): Likewise.
28036
28037         Fix fpurge for cygwin.
28038         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
28039         value.
28040         * modules/fpurge-tests (Depends-on): Clean up trash.
28041
28042 2007-04-16  Simon Josefsson  <simon@josefsson.org>
28043
28044         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
28045
28046         * m4/autobuild.m4: Re-indent.
28047
28048 2007-04-13  Bruno Haible  <bruno@clisp.org>
28049
28050         * modules/fpurge-tests: New file.
28051         * tests/test-fpurge.c: New file.
28052
28053         * modules/fpurge: New file.
28054         * lib/fpurge.h: New file.
28055         * lib/fpurge.c: New file.
28056         * m4/fpurge.m4: New file.
28057
28058 2007-04-13  Bruno Haible  <bruno@clisp.org>
28059
28060         * modules/fbufmode-tests: New file.
28061         * tests/test-fbufmode.c: New file.
28062
28063         * modules/fbufmode: New file.
28064         * lib/fbufmode.h: New file.
28065         * lib/fbufmode.c: New file.
28066         * m4/fbufmode.m4: New file.
28067
28068 2007-04-13  Bruno Haible  <bruno@clisp.org>
28069
28070         * modules/fwritable-tests: New file.
28071         * tests/test-fwritable.c: New file.
28072
28073         * modules/fwritable: New file.
28074         * lib/fwritable.h: New file.
28075         * lib/fwritable.c: New file.
28076         * m4/fwritable.m4: New file.
28077
28078 2007-04-13  Bruno Haible  <bruno@clisp.org>
28079
28080         * modules/freadable-tests: New file.
28081         * tests/test-freadable.c: New file.
28082
28083         * modules/freadable: New file.
28084         * lib/freadable.h: New file.
28085         * lib/freadable.c: New file.
28086         * m4/freadable.m4: New file.
28087
28088 2007-04-13  Bruno Haible  <bruno@clisp.org>
28089
28090         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
28091         MOSTLYCLEANFILES.
28092
28093 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
28096         gzip bootstrap.conf to avoid dragging in i18n machinery.
28097         (gnulib_tool_option): Use it.
28098
28099 2007-04-13  Bruno Haible  <bruno@clisp.org>
28100
28101         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
28102         %F directives.
28103         * tests/test-vasprintf-posix.c (test_function): Likewise.
28104         * tests/test-snprintf-posix.h (test_function): Likewise.
28105         * tests/test-sprintf-posix.h (test_function): Likewise.
28106         * tests/test-fprintf-posix.h (test_function): Likewise.
28107         * tests/test-printf-posix.h (test_function): Likewise.
28108         * tests/test-fprintf-posix.out: Likewise.
28109
28110 2007-04-13  Bruno Haible  <bruno@clisp.org>
28111
28112         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
28113         * modules/tls-tests (configure.ac): Likewise.
28114         Reported by Arto C. Nirkko <anirkko@insel.ch>.
28115
28116 2007-04-13  Bruno Haible  <bruno@clisp.org>
28117
28118         * lib/tls.c (glthread_tls_get): Fix return type.
28119         Patch by Arto C. Nirkko <anirkko@insel.ch>.
28120
28121 2007-04-12  Eric Blake  <ebb9@byu.net>
28122
28123         * modules/gettime (Depends-on): Remove gettime.
28124         Reported by Dmitry V. Levin.
28125
28126 2007-04-12  Bruno Haible  <bruno@clisp.org>
28127
28128         * modules/fflush (Include): Mention <stdio.h>.
28129         * modules/strtoimax (Include): Mention <inttypes.h>.
28130         * modules/strtoumax (Include): Likewise.
28131
28132 2007-04-12  Eric Blake  <ebb9@byu.net>
28133
28134         * .cvsignore: New file.
28135         * .gitignore: Likewise.
28136
28137 2007-04-12  Bruno Haible  <bruno@clisp.org>
28138
28139         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
28140         not before, since $(LDADD) often contains libgnu.a.
28141         * modules/striconv-tests (test_striconv_LDADD): Likewise.
28142         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
28143         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
28144         Needed on Cygwin.
28145
28146 2007-04-12  Eric Blake  <ebb9@byu.net>
28147
28148         Work around glibc's failure to flush stdin on fclose.
28149         * lib/closein.c (close_stdin): Flush stdin before closing.
28150
28151         Work around glibc's failure to reset seekable stdin on exit.
28152         * modules/closein: New module.
28153         * lib/closein.c: New file.
28154         * lib/closein.h: Likewise.
28155         * m4/closein.m4: Likewise.
28156         * MODULES.html.sh (File stream based Input/Output): Document it.
28157
28158 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28159
28160         * gnulib-tool: Rename generated 'autobuild' script to
28161         'do-autobuild' in --create-megatestdir output.
28162
28163         * doc/gnulib.texi (Build robot for gnulib): Fix.
28164
28165 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28166
28167         * modules/sysexits (Depends-on): Add absolute-header.
28168
28169 2007-04-12  Eric Blake  <ebb9@byu.net>
28170
28171         No need to preserve errno on success.
28172         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
28173         Reported by Bruno Haible.
28174
28175 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28176
28177         * MODULES.html.sh (Support for maintaining and releasing
28178         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
28179
28180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28181
28182         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
28183
28184 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28185
28186         * modules/autobuild: New module.
28187
28188         * m4/autobuild.m4: New file.
28189
28190 2007-04-11  Bruno Haible  <bruno@clisp.org>
28191
28192         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
28193         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
28194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
28195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
28196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28197         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28198         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28200         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28201         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
28203         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28204         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
28206         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28207         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
28209         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28210         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
28212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
28215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
28218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28220         Reported by Eric Blake.
28221
28222 2007-04-11  Bruno Haible  <bruno@clisp.org>
28223
28224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
28225
28226 2007-04-10  Bruno Haible  <bruno@clisp.org>
28227
28228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
28229         for NaN and Infinity. Needed on FreeBSD 6.1.
28230         * tests/test-vasnprintf-posix.c (test_function): Undo last change
28231         regarding results for "%010a" of Infinity and NaN.
28232         * tests/test-vasprintf-posix.c (test_function): Likewise.
28233         * tests/test-snprintf-posix.h (test_function): Likewise.
28234         * tests/test-sprintf-posix.h (test_function): Likewise.
28235         * tests/test-fprintf-posix.h (test_function): Likewise.
28236         * tests/test-printf-posix.h (test_function): Likewise.
28237         * tests/test-fprintf-posix.out: Likewise.
28238
28239 2007-04-10  Bruno Haible  <bruno@clisp.org>
28240
28241         * modules/locale-tests: New file.
28242         * tests/test-locale.c: New file.
28243
28244         * modules/locale: New file.
28245         * lib/locale_.h: New file.
28246         * m4/locale_h.m4: New file.
28247
28248 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
28249             Bruno Haible  <bruno@clisp.org>
28250
28251         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
28252         be determined, test for availability of the copysignf, copysign,
28253         copysignl functions.
28254         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
28255         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
28256         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
28257
28258 2007-04-09  Eric Blake  <ebb9@byu.net>
28259
28260         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
28261         * modules/stdio (Makefile.am): Support fflush.
28262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28263         * modules/fflush: New file.
28264         * lib/fflush.c: Likewise.
28265         * m4/fflush.m4: Likewise.
28266         * modules/fflush-tests: New test.
28267         * tests/test-fflush.c: Likewise.
28268         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
28269
28270 2007-04-06  Bruno Haible  <bruno@clisp.org>
28271
28272         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
28273         (VASNPRINTF): Use signbit for faster determination whether to print a
28274         minus sign.
28275         * modules/vasnprintf (Files): Remove lib/float+.h.
28276         * modules/fprintf-posix (Depends-on): Add signbit.
28277         * modules/snprintf-posix (Depends-on): Likewise.
28278         * modules/sprintf-posix (Depends-on): Likewise.
28279         * modules/vasnprintf-posix (Depends-on): Likewise.
28280         * modules/vasprintf-posix (Depends-on): Likewise.
28281         * modules/vfprintf-posix (Depends-on): Likewise.
28282         * modules/vsnprintf-posix (Depends-on): Likewise.
28283         * modules/vsprintf-posix (Depends-on): Likewise.
28284
28285 2007-04-06  Bruno Haible  <bruno@clisp.org>
28286
28287         * tests/test-frexp.c (main): Test also the sign bit of zero results.
28288         * tests/test-frexpl.c (main): Likewise.
28289         * tests/test-ldexpl.c (main): Likewise.
28290         * modules/frexp-tests (Depends-on): Add signbit.
28291         * modules/frexpl-tests (Depdends-on): Likewise.
28292         * modules/ldexpl-tests (Depdends-on): Likewise.
28293
28294 2007-04-06  Bruno Haible  <bruno@clisp.org>
28295
28296         * modules/signbit-tests: New file.
28297         * tests/test-signbit.c: New file.
28298
28299         * modules/signbit: New file.
28300         * lib/signbitf.c: New file.
28301         * lib/signbitd.c: New file.
28302         * lib/signbitl.c: New file.
28303         * m4/signbit.m4: New file.
28304         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
28305         (signbit): New macro.
28306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
28307         REPLACE_SIGNBIT.
28308         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
28309         REPLACE_FREXPL into math.h.
28310
28311 2007-04-06  Bruno Haible  <bruno@clisp.org>
28312
28313         * modules/isnanf-nolibm-tests: New file.
28314         * tests/test-isnanf.c: New file.
28315
28316         * modules/isnanf-nolibm: New file.
28317         * lib/isnanf.h: New file.
28318         * lib/isnanf.c: New file.
28319         * lib/isnan.c: Consider the USE_FLOAT macro.
28320         * m4/isnanf.m4: New file.
28321
28322 2007-04-06  Bruno Haible  <bruno@clisp.org>
28323
28324         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
28325         (Link): New section.
28326
28327         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
28328
28329 2007-04-06  Bruno Haible  <bruno@clisp.org>
28330
28331         Assume the 'long double' type.
28332         * m4/longdouble.m4: Remove file.
28333         * config/srclist.txt: Don't mention longdouble.m4.
28334         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
28335         * lib/float+.h: Likewise.
28336         * lib/frexp.c: Likewise.
28337         * lib/printf-args.h: Likewise.
28338         * lib/printf-args.c: Likewise.
28339         * lib/printf-frexp.c: Likewise.
28340         * lib/printf-parse.c: Likewise.
28341         * lib/vasnprintf.c: Likewise.
28342         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
28343         * m4/intl.m4: Likewise.
28344         * m4/isnanl.m4: Likewise.
28345         * m4/printf.m4: Likewise.
28346         * m4/printf-frexpl.m4: Likewise.
28347         * m4/vasnprintf.m4: Likewise.
28348         * modules/allocsa (Files): Remove m4/longdouble.m4.
28349         * modules/gettext (Files): Likewise.
28350         * modules/relocatable-prog-wrapper (Files): Likewise.
28351         * modules/vasnprintf (Files): Likewise.
28352         * modules/isnanl (Files): Likewise.
28353         (Include): Simplify.
28354         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
28355         (Include): Simplify.
28356         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
28357         (Include): Simplify.
28358         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
28359         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28360         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
28361         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28362         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
28363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28364         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
28365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28366         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
28367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28368         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
28369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
28370         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
28371         * tests/test-isnanl.c: Likewise.
28372         * tests/test-snprintf-posix.h: Likewise.
28373         * tests/test-sprintf-posix.h: Likewise.
28374         * tests/test-vasnprintf-posix.c: Likewise.
28375         * tests/test-vasnprintf-posix2.c: Likewise.
28376         * tests/test-vasprintf-posix.c: Likewise.
28377
28378 2007-04-06  Bruno Haible  <bruno@clisp.org>
28379
28380         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
28381         * lib/math_.h [__DECC]: Include the overridden include file through
28382         #include_next, outside the double-inclusion guard.
28383         * lib/stdio_.h [__DECC]: Likewise.
28384         * lib/stdlib_.h [__DECC]: Likewise.
28385         * lib/string_.h [__DECC]: Likewise.
28386         * lib/time_.h [__DECC]: Likewise.
28387         * lib/wchar_.h [__DECC]: Likewise.
28388         * lib/wctype_.h [__DECC]: Likewise.
28389         * lib/inttypes_.h [__DECC]: Likewise.
28390         Reported by Albert Chin <china@thewrittenword.com> in
28391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
28392
28393 2007-04-04  Eric Blake  <ebb9@byu.net>
28394
28395         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
28396         1.5.x.
28397
28398 2007-04-04  Bruno Haible  <bruno@clisp.org>
28399
28400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
28401         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
28402
28403 2007-04-04  Bruno Haible  <bruno@clisp.org>
28404
28405         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
28406         results for "%010a" of Infinity and NaN.
28407         * tests/test-vasprintf-posix.c (test_function): Likewise.
28408         * tests/test-snprintf-posix.h (test_function): Likewise.
28409         * tests/test-sprintf-posix.h (test_function): Likewise.
28410         * tests/test-fprintf-posix.h (test_function): Remove these tests.
28411         * tests/test-printf-posix.h (test_function): Likewise.
28412         * tests/test-fprintf-posix.out: Update.
28413         Needed for FreeBSD 6.1.
28414
28415 2007-04-04  Bruno Haible  <bruno@clisp.org>
28416
28417         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
28418         directly used by the gnulib modules nor by gnulib-tool.
28419
28420 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28421
28422         * DEPENDENCIES: Give overall description of version dependency
28423         desirability.  Use more-typical names for apps.
28424         Add shell, coreutils, diffutils, grep, tar, gzip.
28425
28426 2007-04-04  Simon Josefsson  <simon@josefsson.org>
28427
28428         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
28429
28430 2007-04-04  Karl Berry  <karl@gnu.org>
28431
28432         * MODULES.html.sh (func_module): missing '.
28433
28434 2007-04-03  Bruno Haible  <bruno@clisp.org>
28435
28436         * modules/argmatch-tests (Makefile.am): New variable
28437         test_argmatch_LDADD.
28438         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
28439         * modules/array-list-tests (Makefile.am): New variable
28440         test_array_list_LDADD.
28441         * modules/array-oset-tests (Makefile.am): New variable
28442         test_array_oset_LDADD.
28443         * modules/avltree-list-tests (Makefile.am): New variable
28444         test_avltree_list_LDADD.
28445         * modules/avltree-oset-tests (Makefile.am): New variable
28446         test_avltree_oset_LDADD.
28447         * modules/avltreehash-list-tests (Makefile.am): New variable
28448         test_avltreehash_list_LDADD.
28449         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
28450         test_canonicalize_lgpl_LDADD.
28451         * modules/carray-list-tests (Makefile.am): New variable
28452         test_carray_list_LDADD.
28453         * modules/dirname-tests (Makefile.am): New variable
28454         test_dirname_LDADD.
28455         * modules/linked-list-tests (Makefile.am): New variable
28456         test_linked_list_LDADD.
28457         * modules/linkedhash-list-tests (Makefile.am): New variable
28458         test_linkedhash_list_LDADD.
28459         * modules/rbtree-list-tests (Makefile.am): New variable
28460         test_rbtree_list_LDADD.
28461         * modules/rbtree-oset-tests (Makefile.am): New variable
28462         test_rbtree_oset_LDADD.
28463         * modules/rbtreehash-list-tests (Makefile.am): New variable
28464         test_rbtreehash_list_LDADD.
28465         * modules/xvasprintf-tests (Makefile.am): New variable
28466         test_xvasprintf_LDADD.
28467         Reported by Eric Blake.
28468
28469 2007-04-03  Eric Blake  <ebb9@byu.net>
28470
28471         * DEPENDENCIES: Weaken m4 requirements.
28472
28473 2007-04-03  Bruno Haible  <bruno@clisp.org>
28474
28475         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
28476         * modules/isnanl-tests (configure.ac): Likewise.
28477
28478 2007-04-03  Ben Pfaff  <blp@gnu.org>
28479
28480         * modules/iconv_open: Add $(srcdir)/ to source directory
28481         references in Makefile fragments that call gperf, to fix VPATH
28482         builds.
28483
28484 2007-04-03  Bruno Haible  <bruno@clisp.org>
28485
28486         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
28487         * lib/ldexpl.c: Undo last change.
28488
28489 2007-04-03  Bruno Haible  <bruno@clisp.org>
28490
28491         * modules/printf-frexpl (Depends-on): Undo last change.
28492         (Files): Add m4/ldexpl.m4.
28493
28494 2007-04-03  Bruno Haible  <bruno@clisp.org>
28495
28496         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
28497         * modules/isnanl (Link): New section.
28498
28499         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
28500         * modules/frexp (Link): New section.
28501
28502         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
28503         * modules/frexpl (Link): New section.
28504
28505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
28506         * modules/ldexpl (Link): New section.
28507
28508 2007-04-03  Bruno Haible  <bruno@clisp.org>
28509
28510         * modules/TEMPLATE-EXTENDED: New file.
28511         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
28512
28513 2007-04-03  Bruno Haible  <bruno@clisp.org>
28514
28515         * DEPENDENCIES: New file.
28516         Suggested by Simon Josefsson.
28517
28518 2007-04-03  Bruno Haible  <bruno@clisp.org>
28519
28520         * doc/gnulib.texi: Escape @.
28521
28522 2007-04-03  James Youngman  <jay@gnu.org>
28523         and Paul Eggert  <eggert@cs.ucla.edu>
28524
28525         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
28526         birthtime on all systems that have birthtime, not just those which
28527         use st_birthtimensec rather than st_birthtim.  Putting zero in
28528         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
28529         that the birth time is not available for files on an NFS mount.
28530
28531 2007-04-03  Simon Josefsson  <simon@josefsson.org>
28532
28533         * modules/memxor: Move back from crypto/, suggested by Bruno.
28534         * modules/crypto/hmac-sha1: Fix memxor dependency.
28535
28536         * modules/crypto/gc: Moved from ../.
28537
28538 2007-04-02  Eric Blake  <ebb9@byu.net>
28539
28540         * lib/ldexpl.c (includes): Avoid libm.
28541
28542         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
28543
28544 2007-04-02  Bruno Haible  <bruno@clisp.org>
28545
28546         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
28547         on IRIX.
28548
28549 2007-04-02  Bruno Haible  <bruno@clisp.org>
28550
28551         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
28552         x86 or x86_64 platforms running MacOS X.
28553         Reported by Ryan Schmidt <@ryandesign.com>.
28554
28555 2007-04-02  Bruno Haible  <bruno@clisp.org>
28556
28557         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
28558         i386.
28559
28560 2007-04-01  Simon Josefsson  <simon@josefsson.org>
28561
28562         * modules/crypto/arcfour: Moved from ../.
28563         * modules/crypto/arcfour-tests: Moved from ../.
28564         * modules/crypto/arctwo: Moved from ../.
28565         * modules/crypto/arctwo-tests: Moved from ../.
28566         * modules/crypto/des: Moved from ../.
28567         * modules/crypto/des-tests: Moved from ../.
28568         * modules/crypto/gc-arcfour: Moved from ../.
28569         * modules/crypto/gc-arcfour-tests: Moved from ../.
28570         * modules/crypto/gc-arctwo: Moved from ../.
28571         * modules/crypto/gc-arctwo-tests: Moved from ../.
28572         * modules/crypto/gc-des: Moved from ../.
28573         * modules/crypto/gc-des-tests: Moved from ../.
28574         * modules/crypto/gc-hmac-md5: Moved from ../.
28575         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
28576         * modules/crypto/gc-hmac-sha1: Moved from ../.
28577         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
28578         * modules/crypto/gc-md2: Moved from ../.
28579         * modules/crypto/gc-md2-tests: Moved from ../.
28580         * modules/crypto/gc-md4: Moved from ../.
28581         * modules/crypto/gc-md4-tests: Moved from ../.
28582         * modules/crypto/gc-md5: Moved from ../.
28583         * modules/crypto/gc-md5-tests: Moved from ../.
28584         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
28585         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
28586         * modules/crypto/gc-random: Moved from ../.
28587         * modules/crypto/gc-rijndael: Moved from ../.
28588         * modules/crypto/gc-rijndael-tests: Moved from ../.
28589         * modules/crypto/gc-sha1: Moved from ../.
28590         * modules/crypto/gc-sha1-tests: Moved from ../.
28591         * modules/crypto/gc-tests: Moved from ../.
28592         * modules/crypto/hmac-md5: Moved from ../.
28593         * modules/crypto/hmac-md5-tests: Moved from ../.
28594         * modules/crypto/hmac-sha1: Moved from ../.
28595         * modules/crypto/hmac-sha1-tests: Moved from ../.
28596         * modules/crypto/md2: Moved from ../.
28597         * modules/crypto/md2-tests: Moved from ../.
28598         * modules/crypto/md4: Moved from ../.
28599         * modules/crypto/md4-tests: Moved from ../.
28600         * modules/crypto/md5: Moved from ../.
28601         * modules/crypto/md5-tests: Moved from ../.
28602         * modules/crypto/memxor: Moved from ../.
28603         * modules/crypto/rijndael: Moved from ../.
28604         * modules/crypto/rijndael-tests: Moved from ../.
28605         * modules/crypto/sha1: Moved from ../.
28606
28607 2007-03-30  James Youngman  <jay@gnu.org>
28608
28609         * tests/test-stat-time.c (prepare_test): use chmod() rather than
28610         rename() to change the ctime of a file (because ctime is unaffected
28611         by rename on jfs2 on AIX 5.1).
28612         (main): Start by doing cleanup, in case a previous run failed leaving
28613         test files behind.
28614
28615 2007-03-31  Bruno Haible  <bruno@clisp.org>
28616
28617         Support old proprietary implementations of iconv.
28618         * modules/iconv_open: New file.
28619         * lib/iconv_.h: New file.
28620         * m4/iconv_h.m4: New file.
28621         * lib/iconv_open.c: New file.
28622         * lib/iconv_open-aix.gperf: New file.
28623         * lib/iconv_open-hpux.gperf: New file.
28624         * lib/iconv_open-irix.gperf: New file.
28625         * lib/iconv_open-osf.gperf: New file.
28626         * m4/iconv_open.m4: New file.
28627         * modules/linebreak (Depends-on): Add iconv_open.
28628         * modules/striconv (Depends-on): Likewise.
28629         * modules/striconveh (Depends-on): Likewise.
28630         * modules/unicodeio (Depends-on): Likewise.
28631         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
28632         (iconv_t)(-1).
28633         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
28634         conversion if cd is (iconv_t)(-1).
28635         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
28636         is not possible.
28637
28638 2007-03-31  Bruno Haible  <bruno@clisp.org>
28639
28640         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
28641         work on Solaris either. Protect also second use of "autodetect_jp".
28642
28643 2007-03-31  Bruno Haible  <bruno@clisp.org>
28644
28645         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
28646         the function is not present.
28647
28648 2007-03-31  Bruno Haible  <bruno@clisp.org>
28649
28650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
28651         the function is not present.
28652
28653 2007-03-31  Bruno Haible  <bruno@clisp.org>
28654
28655         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
28656         a bug in HP-UX iconv_open().
28657
28658 2007-03-31  Bruno Haible  <bruno@clisp.org>
28659
28660         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
28661         (Mathematics <math.h>): New section, add fpieee.
28662         (Input/output <stdio.h>): Add fseterr.
28663         (Mathematics <math.h>): New section, add printf-frexp.
28664         (Container data structures): Add sublist.
28665         (Core language properties): Add fpucw, inline.
28666         (Functions for greatest-width integer types <inttypes.h>): Add
28667         imaxabs, imaxdiv, inttypes.
28668         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
28669         isnanl-nolibm, ldexp.
28670         (Mathematics <math.h>): New section, add printf-frexpl.
28671         (Support for systems lacking POSIX:2001): Add fprintf-posix,
28672         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
28673         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
28674         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
28675         (Unicode string functions): Add unistr/u*-mbtoucr.
28676         (Java): Add javacomp-script, javaexec-script.
28677         (C#): Add csharpcomp-script, csharpexec-script.
28678         (Support for building libraries and executables): Add havelib,
28679         relocatable-*.
28680         (Support for maintaining and releasing projects): Renamed from
28681         'Support for maintaining and release projects'. Add announce-gen.
28682
28683 2007-03-31  Bruno Haible  <bruno@clisp.org>
28684
28685         * README: Talk primarily about git.
28686         (git and CVS): Renamed from CVS.
28687         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
28688         gnulib is available through git.
28689         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
28690
28691 2007-03-30  Bruno Haible  <bruno@clisp.org>
28692
28693         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
28694         * lib/poll_.h: Likewise.
28695         * lib/stat_.h: Likewise.
28696         * lib/sys_time_.h: Likewise.
28697         * lib/sysexit_.h: Likewise.
28698         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
28699         * lib/stdbool_.h: Likewise.
28700         * lib/byteswap_.h: Add double-inclusion guard.
28701
28702 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
28703
28704         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
28705
28706 2007-03-30  Karl Berry  <karl@gnu.org>
28707
28708         * config/srclist-update: double space after USA in the license
28709         substitution, since that's how it's usually (?) written.
28710
28711 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
28714         reported by Bruno Haible.
28715
28716 2007-03-29  Bruno Haible  <bruno@clisp.org>
28717
28718         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
28719         a bug in AIX iconv().
28720
28721 2007-03-29  Bruno Haible  <bruno@clisp.org>
28722
28723         * modules/ldexpl-tests: New file.
28724         * tests/test-ldexpl.c: New file.
28725
28726 2007-03-29  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/ldexpl.c: Include fpucw.h.
28729         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
28730         multiplication.
28731         * modules/ldexpl (Depends-on): Add fpucw.
28732
28733 2007-03-29  Bruno Haible  <bruno@clisp.org>
28734
28735         * modules/ldexpl: New file.
28736         * m4/ldexpl.m4: New file.
28737         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
28738         set.
28739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
28740         REPLACE_LDEXPL.
28741         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
28742         REPLACE_LDEXPL.
28743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28744         gl_FUNC_LDEXPL_WORKS.
28745         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
28746         * modules/mathl (Files): Remove lib/ldexpl.c.
28747         (Depends-on): Add ldexpl.
28748
28749 2007-03-29  Bruno Haible  <bruno@clisp.org>
28750
28751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
28752
28753 2007-03-29  Bruno Haible  <bruno@clisp.org>
28754
28755         * tests/test-striconveh.c (main): Don't assume that a direct conversion
28756         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
28757         and possibly also HP-UX.
28758         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
28759         work on AIX, IRIX, HP-UX, OSF/1.
28760         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28761         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28762         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28763         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28764         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
28765         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28766
28767 2007-03-29  Bruno Haible  <bruno@clisp.org>
28768
28769         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
28770
28771 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
28772
28773         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
28774         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
28775
28776 2007-03-29  Eric Blake  <ebb9@byu.net>
28777
28778         * lib/acl-internal.h: Remove redundant include.
28779         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
28780         Cygwin when a file is locked.
28781
28782 2007-03-29  Bruno Haible  <bruno@clisp.org>
28783
28784         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
28785         file.
28786         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
28787
28788 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
28789
28790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
28791         try to remove a parent directory if the child couldn't be removed
28792         (except for the first rmdir, which could fail because the child
28793         doesn't exist).  Problem reported by Jeff Blaine in
28794         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
28795
28796 2007-03-28  Bruno Haible  <bruno@clisp.org>
28797
28798         * lib/striconveh.c (utf8conv_carefully): New function.
28799         (mem_cd_iconveh_internal): Invoke it.
28800
28801 2007-03-28  Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
28804         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
28805         input.
28806         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
28807         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
28808         unistr/u8-uctomb.
28809
28810 2007-03-28  Bruno Haible  <bruno@clisp.org>
28811
28812         * modules/unistr/u8-mbtoucr: New file.
28813         * lib/unistr/u8-mbtoucr.c: New file.
28814         * modules/unistr/u16-mbtoucr: New file.
28815         * lib/unistr/u16-mbtoucr.c: New file.
28816         * modules/unistr/u16-mbtoucr: New file.
28817         * lib/unistr/u16-mbtoucr.c: New file.
28818         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
28819
28820 2007-03-27  Simon Josefsson  <simon@josefsson.org>
28821             Bruno Haible  <bruno@clisp.org>
28822
28823         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
28824         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
28825         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
28826
28827         * m4/stdio_h.m4: Add stubs for vasprintf too.
28828
28829         * modules/stdio: Support vasprintf in sed command.
28830
28831         * modules/vasprintf: Depend on stdio for prototypes.  Remove
28832         vasprintf.h.  Add stdio module indicator.
28833
28834         * lib/stdio_.h: Declare asprintf and vasprintf, based on
28835         vasprintf.h.
28836
28837         * lib/vasprintf.h: File removed.
28838
28839         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
28840         * lib/vasprintf.c: Ditto.
28841         * lib/xvasprintf.c: Ditto.
28842         * tests/test-vasprintf-posix.c: Ditto.
28843         * tests/test-vasprintf.c: Ditto.
28844
28845 2007-03-27  Bruno Haible  <bruno@clisp.org>
28846
28847         Make vasnprintf multithread-safe.
28848         * lib/vasnprintf.c (decimal_point_char): New function.
28849         (VASNPRINTF): Use it.
28850         Suggested by Simon Josefsson.
28851
28852 2007-03-27  Eric Blake  <ebb9@byu.net>
28853
28854         Support sub-second birthtime on cygwin.
28855         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
28856         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
28857         (get_stat_birthtime): Also work with st_birthtim.
28858
28859 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
28860
28861         * lib/stat-time.h (USE_BIRTHTIME): Remove.
28862         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
28863         (get_stat_birthtime_ns): Do not try to use "spare" fields.
28864         (get_stat_birthtime_ns): Simplify compile-time tests.
28865         (get_stat_birthtime): Change the API to look like
28866         get_stat_mtime etc., except return a negative tv_nsec on error.
28867         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
28868         Don't check for "spare" fields.
28869         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
28870         or for struct stat.st_birthtime, as these tests aren't used.
28871         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
28872
28873 2007-03-27  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/stat-time.h: Include <sys/stat.h>.
28876
28877 2007-03-27  James Youngman  <jay@gnu.org>
28878
28879         * lib/stat-time.h (get_stat_birthtime): New function for
28880           retrieving st_birthtime as provided by UFS2 (hence *BSD).
28881         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
28882           and its variants.
28883         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
28884         * modules/stat-time-test: New file.
28885         * tests/test-stat-time.c: New test, devised by Bruno Haible.
28886
28887 2007-03-26  Bruno Haible  <bruno@clisp.org>
28888
28889         Better support of signalling NaNs.
28890         * lib/atanl.c: Include isnanl.h.
28891         (atanl): Perform test for NaN at the beginning of the function and
28892         through a call to isnanl.
28893         * lib/cosl.c: Include isnanl.h.
28894         (cosl): Perform test for NaN at the beginning of the function and
28895         through a call to isnanl.
28896         * lib/ldexpl.c: Include isnanl.h.
28897         (ldexpl): Perform test for NaN through a call to isnanl.
28898         * lib/logl.c: Include isnanl.h.
28899         (logl): Perform test for NaN at the beginning of the function and
28900         through a call to isnanl.
28901         * lib/sinl.c: Include isnanl.h.
28902         (sinl): Perform test for NaN at the beginning of the function and
28903         through a call to isnanl.
28904         * lib/sqrtl.c: Include isnanl.h.
28905         (sqrtl): Perform test for NaN at the beginning of the function and
28906         through a call to isnanl.
28907         * lib/tanl.c: Include isnanl.h.
28908         (tanl): Perform test for NaN at the beginning of the function and
28909         through a call to isnanl.
28910         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
28911         * modules/mathl (Depends-on): Add isnanl.
28912
28913 2007-03-26  Eric Blake  <ebb9@byu.net>
28914
28915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
28916         regression in logic sense of previous patch.
28917
28918 2007-03-26  Bruno Haible  <bruno@clisp.org>
28919
28920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
28921         unportable shell command "if ! ...".
28922         Reported by Ralf Wildenhues.
28923
28924 2007-03-25  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
28927         <sysexits.h> file, and only add EX_CONFIG.
28928         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
28929         absolute file name and whether it is sufficient. Substitute also
28930         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
28931         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
28932         ABSOLUTE_SYSEXITS_H into sysexits.h.
28933
28934 2007-03-25  Bruno Haible  <bruno@clisp.org>
28935
28936         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
28937         hints is NULL.
28938
28939 2007-03-25  Bruno Haible  <bruno@clisp.org>
28940
28941         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
28942         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
28943
28944 2007-03-25  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/vasnprintf.c: Include langinfo.h.
28947         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
28948         multithread-safe.
28949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
28950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
28951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
28957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28958         Reported by Simon Josefsson.
28959
28960 2007-03-25  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
28963         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
28964         * modules/vasnprintf (Depends-on): Add stdint.
28965
28966 2007-03-25  Bruno Haible  <bruno@clisp.org>
28967
28968         * modules/fpieee: New file.
28969         * m4/fpieee.m4: New file.
28970         * modules/isnan-nolibm (Depends-on): Add fpieee.
28971         * modules/isnanl-nolibm (Depends-on): Add fpieee.
28972         * modules/isnanl (Depends-on): Add fpieee.
28973
28974 2007-03-25  Bruno Haible  <bruno@clisp.org>
28975
28976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
28977
28978 2007-03-25  Bruno Haible  <bruno@clisp.org>
28979
28980         Avoid test failures on IRIX 6.5.
28981         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
28982         (main): Use it.
28983         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
28984         macros.
28985         (main): Use them.
28986
28987 2007-03-25  Bruno Haible  <bruno@clisp.org>
28988
28989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
28990         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
28991         exists but doesn't work.
28992         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
28993         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
28994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
28995         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
28996
28997 2007-03-25  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
29000         returns inf. Needed on IRIX 6.5.
29001
29002 2007-03-25  Bruno Haible  <bruno@clisp.org>
29003
29004         * tests/test-frexpl.c: Include isnanl-nolibm.h.
29005         (main): Use isnanl instead of x != x idiom.
29006         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
29007
29008         * tests/test-frexp.c: Include isnan.h.
29009         (main): Use isnan instead of x != x idiom.
29010         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
29011
29012 2007-03-25  Bruno Haible  <bruno@clisp.org>
29013
29014         * tests/test-frexp.c (NaN): New function/macro.
29015         (main): Use it instead of 0.0 / 0.0.
29016         * tests/test-isnan.c (NaN): New function/macro.
29017         (main): Use it instead of 0.0 / 0.0.
29018         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
29019         (test_function): Use it instead of 0.0 / 0.0.
29020         * tests/test-vasprintf-posix.c (NaN): New function/macro.
29021         (test_function): Use it instead of 0.0 / 0.0.
29022         * tests/test-snprintf-posix.h (NaN): New function/macro.
29023         (test_function): Use it instead of 0.0 / 0.0.
29024         * tests/test-sprintf-posix.h (NaN): New function/macro.
29025         (test_function): Use it instead of 0.0 / 0.0.
29026         * tests/test-fprintf-posix.h (NaN): New function/macro.
29027         (test_function): Use it instead of 0.0 / 0.0.
29028         * tests/test-printf-posix.h (NaN): New function/macro.
29029         (test_function): Use it instead of 0.0 / 0.0.
29030
29031         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
29032
29033 2007-03-25  Bruno Haible  <bruno@clisp.org>
29034
29035         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
29036
29037 2007-03-25  Bruno Haible  <bruno@clisp.org>
29038
29039         * lib/regexec.c (merge_state_with_log): Make static.
29040
29041 2007-03-25  Bruno Haible  <bruno@clisp.org>
29042
29043         * lib/trigl.c (kernel_rem_pio2): Make static.
29044
29045 2007-03-25  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/sincosl.c (sincosl_table): Make static.
29048
29049 2007-03-25  Bruno Haible  <bruno@clisp.org>
29050
29051         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
29052         if the compiler does not support C99.
29053
29054 2007-03-25  Bruno Haible  <bruno@clisp.org>
29055
29056         * modules/time (Makefile.am): Ensure all rule action lines start with a
29057         tab.
29058
29059 2007-03-24  Bruno Haible  <bruno@clisp.org>
29060
29061         * modules/tsearch-tests: New file.
29062         * tests/test-tsearch.sh: New file.
29063         * tests/test-tsearch.c: New file, mostly copied from glibc.
29064
29065         * modules/search-tests: New file.
29066         * tests/test-search.c: New file.
29067
29068         * modules/search: New file.
29069         * lib/search_.h: New file, incorporating lib/tsearch.h.
29070         * m4/search_h.m4: New file.
29071         * lib/tsearch.h: Remove file.
29072         * lib/tsearch.c: Include search.h instead of tsearch.h.
29073         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
29074         HAVE_TSEARCH.
29075         * modules/tsearch (Files): Remove lib/tsearch.h.
29076         (Depends-on): Add search.
29077         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
29078         (Include): Change tsearch.h into search.h.
29079
29080 2007-03-24  Bruno Haible  <bruno@clisp.org>
29081
29082         * modules/fpucw: New file.
29083         * lib/fpucw.h: New file.
29084         * lib/frexp.c: Include fpucw.h.
29085         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
29086         (FUNC): Use them.
29087         * lib/printf-frexp.c: Include fpucw.h.
29088         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
29089         (FUNC): Use them.
29090         * lib/vasnprintf.c: Include fpucw.h.
29091         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
29092         'long double' calculations.
29093         * tests/test-frexpl.c: Include fpucw.h.
29094         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
29095         * tests/test-printf-frexpl.c: Include fpucw.h.
29096         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
29097         * modules/frexpl (Depends-on): Add fpucw.
29098         * modules/printf-frexpl (Depends-on): Likewise.
29099         * modules/fprintf-posix (Depends-on): Likewise.
29100         * modules/snprintf-posix (Depends-on): Likewise.
29101         * modules/sprintf-posix (Depends-on): Likewise.
29102         * modules/vasnprintf-posix (Depends-on): Likewise.
29103         * modules/vasprintf-posix (Depends-on): Likewise.
29104         * modules/vfprintf-posix (Depends-on): Likewise.
29105         * modules/vsnprintf-posix (Depends-on): Likewise.
29106         * modules/vsprintf-posix (Depends-on): Likewise.
29107         * modules/frexpl-tests (Depends-on): Likewise.
29108         * modules/printf-frexpl-tests (Depends-on): Likewise.
29109
29110 2007-03-24  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/float+.h: New file.
29113         * lib/isnan.c: Include float+.h.
29114         (SIZE): New macro.
29115         (FUNC): Compare only SIZE bytes of the value.
29116         * lib/vasnprintf.c: Include float+.h.
29117         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
29118         SIZEOF_LDBL or SIZEOF_DBL bytes.
29119         * modules/isnan-nolibm (Files): Add lib/float+.h.
29120         * modules/isnanl-nolibm (Files): Add lib/float+.h.
29121         * modules/isnanl (Files): Add lib/float+.h.
29122         * modules/vasnprintf (Files): Add lib/float+.h.
29123
29124 2007-03-24  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
29127         include isnanl-nolibm.h.
29128
29129 2007-03-24  Bruno Haible  <bruno@clisp.org>
29130
29131         * tests/test-read-file.c (main): Don't produce spurious output for
29132         expected situations. Make the test fail if it encountered unexpected
29133         results.
29134
29135 2007-03-24  Bruno Haible  <bruno@clisp.org>
29136
29137         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
29138         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
29139
29140 2007-03-24  Bruno Haible  <bruno@clisp.org>
29141
29142         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
29143
29144 2007-03-24  Bruno Haible  <bruno@clisp.org>
29145
29146         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
29147         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
29148
29149         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
29150         * modules/utf8-ucs4: Turn into a symbolic link to module
29151         unistr/u8-mbtouc.
29152
29153         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
29154         utf8-ucs4-unsafe.
29155         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
29156         unistr/u8-mbtouc-unsafe.
29157
29158         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
29159         * modules/utf16-ucs4: Turn into a symbolic link to module
29160         unistr/u16-mbtouc.
29161
29162         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
29163         utf16-ucs4-unsafe.
29164         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
29165         unistr/u16-mbtouc-unsafe.
29166
29167         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
29168         * modules/ucs4-utf8: Turn into a symbolic link to module
29169         unistr/u8-ubtomb.
29170
29171         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
29172         * modules/ucs4-utf16: Turn into a symbolic link to module
29173         unistr/u16-ubtomb.
29174
29175 2007-03-24  Bruno Haible  <bruno@clisp.org>
29176
29177         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
29178         Enable the function only if HAVE_INLINE.
29179         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
29180         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
29181         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
29182         Enable the function only if HAVE_INLINE.
29183         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
29184         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
29185         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
29186         Enable the function only if HAVE_INLINE.
29187         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
29188         Enable the function only if HAVE_INLINE.
29189         * modules/utf8-ucs4: Update.
29190         * modules/utf8-ucs4-unsafe: Update.
29191         * modules/utf16-ucs4: Update.
29192         * modules/utf16-ucs4-unsafe: Update.
29193         * modules/ucs4-utf8: Update.
29194         * modules/ucs4-utf16: Update.
29195
29196 2007-03-24  Bruno Haible  <bruno@clisp.org>
29197
29198         * lib/utf8-ucs4.h: Remove file.
29199         * lib/utf8-ucs4-unsafe.h: Remove file.
29200         * lib/utf16-ucs4.h: Remove file.
29201         * lib/utf16-ucs4-unsafe.h: Remove file.
29202         * lib/ucs4-utf8.h: Remove file.
29203         * lib/ucs4-utf16.h: Remove file.
29204         * lib/unistr.h: Include their previous contents.
29205         * m4/utf-ucs4.m4: Remove file.
29206         * m4/ucs4-utf.m4: Remove file.
29207         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
29208         (Depends-on): Add unistr/base.
29209         (configure.ac): Remove gl_UTF_UCS4.
29210         (Makefile.am): Update.
29211         (Include): Change to unistr.h.
29212         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
29213         (Depends-on): Add unistr/base.
29214         (configure.ac): Remove gl_UTF_UCS4.
29215         (Makefile.am): Update.
29216         (Include): Change to unistr.h.
29217         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
29218         (Depends-on): Add unistr/base.
29219         (configure.ac): Remove gl_UTF_UCS4.
29220         (Makefile.am): Update.
29221         (Include): Change to unistr.h.
29222         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
29223         (Depends-on): Add unistr/base.
29224         (configure.ac): Remove gl_UTF_UCS4.
29225         (Makefile.am): Update.
29226         (Include): Change to unistr.h.
29227         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
29228         (Depends-on): Add unistr/base.
29229         (configure.ac): Remove gl_UCS4_UTF.
29230         (Makefile.am): Update.
29231         (Include): Change to unistr.h.
29232         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
29233         (Depends-on): Add unistr/base.
29234         (configure.ac): Remove gl_UCS4_UTF.
29235         (Makefile.am): Update.
29236         (Include): Change to unistr.h.
29237         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
29238         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
29239         utf8-ucs4-unsafe.h.
29240         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
29241         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
29242         utf16-ucs4-unsafe.h.
29243         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
29244         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
29245         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
29246         * lib/unistr/u8-strchr.c: Likewise.
29247         * lib/unistr/u8-strrchr.c: Likewise.
29248         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
29249         * lib/unistr/u16-strchr.c: Likewise.
29250         * lib/unistr/u16-strrchr.c: Likewise.
29251         * lib/striconveh.c: Update.
29252         * lib/linebreak.c: Update.
29253
29254 2007-03-24  Bruno Haible  <bruno@clisp.org>
29255
29256         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
29257         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
29258
29259 2007-03-22  Bruno Haible  <bruno@clisp.org>
29260
29261         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
29262
29263 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         * MODULES.html.sh (File system functions): New module write-any-file.
29266         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
29267         * m4/write-any-file.m4: New files.
29268
29269 2007-03-23  Eric Blake  <ebb9@byu.net>
29270
29271         * gnulib-tool: Rearrange space-tab sequences, since some editors
29272         like to eat them.
29273
29274 2007-03-23  Eric Blake  <ebb9@byu.net>
29275
29276         * lib/version-etc.c (version_etc_va): Update license wording to
29277         be more concise.  Recommended by Richard Stallman.
29278
29279 2007-03-22  Bruno Haible  <bruno@clisp.org>
29280
29281         * lib/poll.c (MSG_PEEK): New fallback definition.
29282
29283 2007-03-22  Bruno Haible  <bruno@clisp.org>
29284
29285         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
29286         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
29287         (main): Update.
29288         Fixes a compilation error on BeOS.
29289
29290 2007-03-22  Bruno Haible  <bruno@clisp.org>
29291
29292         * modules/frexpl-tests: New file.
29293         * tests/test-frexpl.c: New file.
29294
29295         * modules/frexpl: New file.
29296         * m4/frexpl.m4: New file.
29297         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
29298         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
29299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
29300         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
29301         (Depends-on): Add frexpl. Remove isnanl-nolibm.
29302         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
29303
29304 2007-03-22  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/frexpl.c: Share code with lib/frexp.c.
29307         * modules/mathl (Files): Add lib/frexp.c.
29308         (Depends-on): Add isnanl-nolibm.
29309
29310 2007-03-22  Bruno Haible  <bruno@clisp.org>
29311
29312         * modules/printf-frexp (Files): Add m4/frexp.m4.
29313         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
29314         only if the found frexp function actually works.
29315
29316 2007-03-22  Bruno Haible  <bruno@clisp.org>
29317
29318         * lib/frexp.c: Remove older implementation that uses divisions.
29319
29320 2007-03-21  Bruno Haible  <bruno@clisp.org>
29321
29322         * modules/frexp-tests: New file.
29323         * tests/test-frexp.c: New file.
29324
29325         * modules/frexp: New file.
29326         * lib/frexp.c: New file.
29327         * m4/frexp.m4: New file.
29328         * lib/math_.h (frexp): New declaration.
29329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
29330         REPLACE_FREXP.
29331         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
29332
29333 2007-03-21  Bruno Haible  <bruno@clisp.org>
29334
29335         * modules/isnanl-tests: New file.
29336         * tests/test-isnanl.c: New file.
29337
29338         * modules/isnanl: New file.
29339         * lib/isnanl.h: New file.
29340         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
29341         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
29342         gl_FUNC_ISNANL_WORKS.
29343         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
29344         New macros.
29345
29346 2007-03-21  Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
29349         lib/isnanl.h.
29350         (Include): Update.
29351         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
29352         * lib/vasnprintf.c: Update.
29353         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
29354         tests/test-isnanl.h, remove tests/test-isnanl.c.
29355         (Makefile.am): Update.
29356         * tests/test-isnanl-nolibm.c: New file.
29357         * tests/test-isnanl.h: New file.
29358         * tests/test-isnanl.c: Remove file.
29359
29360 2007-03-21  Jim Meyering  <jim@meyering.net>
29361
29362         When trying to open ".", treat ESTALE like EACCES.
29363         * lib/savewd.c (savewd_save): Resort to forking not just upon
29364         failure with EACCES, but also when errno is ESTALE.
29365
29366 2007-03-20  Bruno Haible  <bruno@clisp.org>
29367
29368         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
29369         Needed on AIX 5.1. Reported by Matthew Woehlke.
29370
29371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29372
29373         Suggestions by Bruno Haible:
29374         * lib/acl-internal.h: Include "gettext.h" rather than rolling
29375         our own.
29376         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
29377         * modules/acl (Depends-on): Add gettext.
29378
29379 2007-03-19  Bruno Haible  <bruno@clisp.org>
29380
29381         * modules/iconvme: Remove file.
29382         * lib/iconvme.h: Remove file.
29383         * lib/iconvme.c: Remove file.
29384         * m4/iconvme.m4: Remove file.
29385
29386 2007-03-19  Bruno Haible  <bruno@clisp.org>
29387
29388         * doc/relocatable-maint.texi: Break long shell script line.
29389         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
29390
29391 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29392
29393         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
29394         handle file_has_acl.
29395         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
29396         * lib/acl.c: Move header inclusions and related macro defns into
29397         lib/acl-internal.h.
29398         (S_ISLNK): Remove defn, since that's now done for us.
29399         (file_has_acl): Move to lib/file-has-acl.c.
29400         Call acl_trivial if available.  This is the crucial part of the fix.
29401         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
29402         shared within the library.  Rewrite a bit, partly to make it compatible
29403         with the GNU coding style.
29404         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
29405         Remove unnecessary double-quotes.
29406         Don't test for acl_to_text; the build will catch that.
29407         Replace acl_entries if it doesn't exist and it is needed.
29408         Check for -lsec and acl_trivial (as used on Solaris 10).
29409         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
29410         lib/file-has-acl.c.
29411         (Depends-on): Add sys_stat, for S_ISLNK.
29412
29413 2007-03-19  Ben Pfaff  <blp@gnu.org>
29414
29415         * doc/gnulib.texi: Fix typos.
29416         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
29417
29418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29419
29420         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
29421         If size is zero here, buf must be zero.
29422
29423 2007-03-19  Simon Josefsson  <simon@josefsson.org>
29424
29425         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
29426         <bruno@clisp.org>.
29427
29428 2007-03-18  Bruno Haible  <bruno@clisp.org>
29429
29430         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
29431         Suggested by Eric Blake.
29432
29433 2007-03-18  Ben Pfaff  <blp@gnu.org>
29434
29435         * doc/relocatable.texi: Recommend using as prefix a directory
29436         that does not exist and will never be created.  Based on
29437         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
29438         and others.
29439
29440 2007-03-17  Bruno Haible  <bruno@clisp.org>
29441
29442         * lib/fchownat.c: Include lchown.h.
29443
29444 2007-03-17  Bruno Haible  <bruno@clisp.org>
29445
29446         Fix endless loop when the given allocated size was > INT_MAX.
29447         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
29448         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
29449         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
29450         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
29451         * lib/sprintf.c (sprintf): Likewise.
29452
29453 2007-03-17  Bruno Haible  <bruno@clisp.org>
29454
29455         * tests/test-argp-2.sh (func_compare): Output a context diff.
29456
29457 2007-03-17  Bruno Haible  <bruno@clisp.org>
29458
29459         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
29460         locale's decimal-point character.
29461
29462 2007-03-17  Bruno Haible  <bruno@clisp.org>
29463
29464         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
29465         before comparing it. Needed because on some platforms (e.g. x86) a
29466         'long double' occupies less bytes than sizeof (long double).
29467
29468 2007-03-17  Bruno Haible  <bruno@clisp.org>
29469
29470         * tests/test-crc.c (main): Make printf statements 64-bit clean.
29471         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
29472         * tests/test-getaddrinfo.c (simple): Likewise.
29473         * tests/test-read-file.c (main): Likewise.
29474
29475 2007-03-17  Bruno Haible  <bruno@clisp.org>
29476
29477         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
29478
29479 2007-03-17  Bruno Haible  <bruno@clisp.org>
29480
29481         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
29482         unused variable.
29483
29484 2007-03-17  Bruno Haible  <bruno@clisp.org>
29485
29486         * tests/test-c-strcasecmp.c: Include c-strcase.h.
29487         * tests/test-c-strncasecmp.c: Likewise.
29488
29489 2007-03-17  Bruno Haible  <bruno@clisp.org>
29490
29491         * modules/stdlib (Depends-on): Add unistd.
29492         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
29493         Needed for MacOS X 10.3.
29494
29495 2007-03-17  Bruno Haible  <bruno@clisp.org>
29496
29497         * lib/unistr/u-strdup.h: Include <stdlib.h>.
29498
29499 2007-03-17  Bruno Haible  <bruno@clisp.org>
29500
29501         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
29502
29503 2007-03-17  Bruno Haible  <bruno@clisp.org>
29504
29505         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
29506         to reflect files copied from gnulib (with or without modifications).
29507         Suggested by Jim Meyering.
29508
29509 2007-03-17  Eric Blake  <ebb9@byu.net>
29510
29511         * NEWS: Document stdlib change from 2007-02-18.
29512
29513 2007-03-17  Jim Meyering  <jim@meyering.net>
29514
29515         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
29516         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
29517         someone uses a name containing shell meta-characters.
29518         Reported by Alfred M. Szmidt.
29519
29520         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
29521
29522 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
29523
29524         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
29525         and copy gettext configuration files only if configure.ac contains
29526         a use of AM_GNU_GETTEXT_VERSION.
29527
29528 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
29529
29530         * build-aux/bootstrap (gnulib_name): New variable.
29531         (gnulib_tool_options): Use it.
29532
29533 2007-03-13  Simon Josefsson  <simon@josefsson.org>
29534
29535         * tests/test-des.c: Use new namespace.
29536
29537 2007-03-15  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
29540         Reported by James Youngman <jay@gnu.org>.
29541
29542 2007-03-15  Bruno Haible  <bruno@clisp.org>
29543
29544         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
29545         declared prototype. Needed with cc on OSF/1 5.1.
29546
29547 2007-03-15  Bruno Haible  <bruno@clisp.org>
29548
29549         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
29550         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
29551         (struct gl_list_implementation): Add dispose_fn argument to the
29552         'create_empty', 'create' methods.
29553         (struct gl_list_impl_base): Add field 'dispose_fn'.
29554         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
29555         argument.
29556         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
29557         dispose_fn argument.
29558         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
29559         dispose_fn on the dropped values.
29560         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
29561         dispose_fn argument.
29562         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
29563         dropped values.
29564         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
29565         (gl_tree_remove_node): Call dispose_fn on the dropped value.
29566         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
29567         (gl_tree_remove_node): Call dispose_fn on the dropped value.
29568         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
29569         argument.
29570         (gl_tree_list_free): Call dispose_fn on the dropped values.
29571         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
29572         the dropped values.
29573         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
29574         Add dispose_fn argument.
29575         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
29576         Call dispose_fn on the dropped values.
29577         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
29578         Add dispose_fn argument.
29579         (gl_sublist_create): Initialize the 'dispose_fn' field.
29580         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
29581         * tests/test-array_list.c (main): Update.
29582         * tests/test-carray_list.c (main): Update.
29583         * tests/test-avltree_list.c (main): Update.
29584         * tests/test-rbtree_list.c (main): Update.
29585         * tests/test-avltreehash_list.c (main): Update.
29586         * tests/test-rbtreehash_list.c (main): Update.
29587         * tests/test-linked_list.c (main): Update.
29588         * tests/test-linkedhash_list.c (main): Update.
29589         * tests/test-array_oset.c (main): Update.
29590
29591 2007-03-15  Bruno Haible  <bruno@clisp.org>
29592
29593         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
29594         (gl_oset_create_empty): Add dispose_fn argument.
29595         (struct gl_oset_implementation): Add dispose_fn argument to
29596         'create_empty' method.
29597         (struct gl_oset_impl_base): Add dispose_fn field.
29598         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
29599         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
29600         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
29601         values.
29602         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
29603         (gl_tree_oset_free): Call dispose_fn on the dropped values.
29604         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
29605         dropped value.
29606         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
29607         dropped value.
29608         * tests/test-array_oset.c (main): Update.
29609         * tests/test-avltree_oset.c (main): Update.
29610         * tests/test-rbtree_oset.c (main): Update.
29611         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
29612
29613 2007-03-13  Bruno Haible  <bruno@clisp.org>
29614
29615         * tests/test-stdbool.c (i): Update after last patch.
29616
29617 2007-03-12  Bruno Haible  <bruno@clisp.org>
29618
29619         * lib/quotearg.c: Include <wctype.h> early, before the definition of
29620         the iswprint macro. Needed on Solaris 2.5.1.
29621
29622 2007-03-12  Bruno Haible  <bruno@clisp.org>
29623
29624         * tests/test-printf-frexp.c (main): Declare x as volatile.
29625
29626 2007-03-12  Simon Josefsson  <simon@josefsson.org>
29627
29628         * doc/gnulib.texi (Build robot for gnulib): New section.
29629
29630 2007-03-12  Jim Meyering  <jim@meyering.net>
29631
29632         * build-aux/bootstrap: New file.
29633         * build-aux/bootstrap.conf: New file, from coreutils.
29634
29635 2007-03-11  Bruno Haible  <bruno@clisp.org>
29636
29637         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
29638
29639 2007-03-12  Simon Josefsson  <simon@josefsson.org>
29640
29641         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
29642         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
29643         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
29644
29645 2007-03-11  Bruno Haible  <bruno@clisp.org>
29646
29647         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
29648         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
29649
29650 2007-03-11  Bruno Haible  <bruno@clisp.org>
29651
29652         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
29653         formula. Needed for SunPRO C 5.0.
29654
29655 2007-03-11  Bruno Haible  <bruno@clisp.org>
29656
29657         * modules/long-options (Depends-on): Add getopt.
29658
29659 2007-03-11  Bruno Haible  <bruno@clisp.org>
29660
29661         * modules/modechange (Depends-on): Add stdbool.
29662
29663 2007-03-11  Bruno Haible  <bruno@clisp.org>
29664
29665         * modules/i-ring (Depends-on): Add stdbool.
29666
29667 2007-03-11  Bruno Haible  <bruno@clisp.org>
29668
29669         * modules/gc-des (Depends-on): Add stdbool.
29670
29671 2007-03-11  Bruno Haible  <bruno@clisp.org>
29672
29673         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
29674
29675 2007-03-11  Bruno Haible  <bruno@clisp.org>
29676
29677         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
29678
29679 2007-03-11  Bruno Haible  <bruno@clisp.org>
29680
29681         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
29682
29683 2007-03-11  Bruno Haible  <bruno@clisp.org>
29684
29685         * lib/vasnprintf.c (sprintf): Undefine.
29686
29687 2007-03-11  Bruno Haible  <bruno@clisp.org>
29688
29689         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
29690         initializers in SunPRO C and Compaq C compilers.
29691
29692 2007-03-11  Bruno Haible  <bruno@clisp.org>
29693
29694         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
29695         decrementing code ANSI C compliant.
29696
29697 2007-03-11  Bruno Haible  <bruno@clisp.org>
29698
29699         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
29700         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
29701
29702 2007-03-11  Bruno Haible  <bruno@clisp.org>
29703
29704         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
29705         <stdbool.h> substitute doesn't pass.
29706
29707 2007-03-11  Bruno Haible  <bruno@clisp.org>
29708
29709         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
29710
29711 2007-03-11  Bruno Haible  <bruno@clisp.org>
29712
29713         * gnulib-tool (func_create_megatestdir): Create also an autobuild
29714         script, for submission to autobuild.josefsson.org.
29715
29716 2007-03-10  Bruno Haible  <bruno@clisp.org>
29717
29718         * modules/canonicalize-lgpl-tests: New file.
29719         * tests/test-canonicalize-lgpl.sh: New file.
29720         * tests/test-canonicalize-lgpl.c: New file.
29721
29722         * modules/c-strcase-tests: New file.
29723         * tests/test-c-strcase.sh: New file.
29724         * tests/test-c-strcasecmp.c: New file.
29725         * tests/test-c-strncasecmp.c: New file.
29726
29727         * modules/atexit-tests: New file.
29728         * tests/test-atexit.sh: New file.
29729         * tests/test-atexit.c: New file.
29730
29731 2007-03-10  Bruno Haible  <bruno@clisp.org>
29732
29733         * tests/test-binary-io.sh: Use temporary filenames that are not so
29734         likely to clash with those of other tests (in a parallel make).
29735         * tests/test-binary-io.c: Likewise.
29736
29737 2007-03-10  Bruno Haible  <bruno@clisp.org>
29738
29739         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
29740         fallback; use #error instead.
29741         Suggested by Simon Josefsson.
29742
29743 2007-03-10  Bruno Haible  <bruno@clisp.org>
29744
29745         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
29746         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
29747         first and the last.
29748
29749 2007-03-10  Bruno Haible  <bruno@clisp.org>
29750
29751         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
29752
29753 2007-03-10  Bruno Haible  <bruno@clisp.org>
29754
29755         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
29756         "make distcheck".
29757         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
29758         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
29759         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
29760
29761 2007-03-10  Bruno Haible  <bruno@clisp.org>
29762
29763         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
29764         variable.
29765         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
29766         variable.
29767
29768 2007-03-09  Eric Blake  <ebb9@byu.net>
29769         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
29770
29771         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
29772         types are not being provided by gnulib.
29773         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
29774         types are supported.
29775
29776 2007-03-10  Bruno Haible  <bruno@clisp.org>
29777
29778         * lib/stdio_.h (__attribute__): New macro.
29779         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
29780         vsprintf): Specify __attribute__ __format__ for GCC.
29781         Suggested by Eric Blake.
29782
29783 2007-03-09  Bruno Haible  <bruno@clisp.org>
29784
29785         * modules/printf-posix-tests: New file.
29786         * tests/test-printf-posix.sh: New file.
29787         * tests/test-printf-posix.c: New file.
29788
29789         * modules/printf-posix: New file.
29790         * lib/printf.c: New file.
29791         * m4/printf-posix-rpl.m4: New file.
29792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
29793         REPLACE_PRINTF.
29794         * lib/stdio_.h (printf): New declaration.
29795         (format, __format__, ____printf____, ____scanf____, ____strftime____,
29796         ____strfmon____): New macros.
29797         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
29798         REPLACE_PRINTF.
29799
29800 2007-03-09  Bruno Haible  <bruno@clisp.org>
29801
29802         * tests/test-vasnprintf-posix2.sh: New file.
29803         * tests/test-vasnprintf-posix2.c: New file.
29804         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
29805         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
29806         (Makefile.am): Activate test-vasnprintf-posix2.sh.
29807
29808         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
29809         a locale dependent decimal point, rather than always '.'.
29810
29811 2007-03-09  Eric Blake  <ebb9@byu.net>
29812
29813         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
29814         spite of platforms like Tandem/NSK that define it to -1.
29815
29816 2007-03-08  Bruno Haible  <bruno@clisp.org>
29817
29818         * modules/vprintf-posix-tests: New file.
29819         * tests/test-vprintf-posix.sh: New file.
29820         * tests/test-vprintf-posix.c: New file.
29821         * tests/test-printf-posix.h: New file.
29822
29823         * modules/vprintf-posix: New file.
29824         * lib/vprintf.c: New file.
29825         * m4/vprintf-posix.m4: New file.
29826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
29827         REPLACE_VPRINTF.
29828         * lib/stdio_.h (vprintf): New declaration.
29829         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
29830         REPLACE_VPRINTF.
29831
29832 2007-03-08  Bruno Haible  <bruno@clisp.org>
29833
29834         * modules/fprintf-posix-tests: New file.
29835         * tests/test-fprintf-posix.sh: New file.
29836         * tests/test-fprintf-posix.c: New file.
29837
29838         * modules/fprintf-posix: New file.
29839         * lib/fprintf.c: New file.
29840         * m4/fprintf-posix.m4: New file.
29841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
29842         REPLACE_FPRINTF.
29843         * lib/stdio_.h (fprintf): New declaration.
29844         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
29845         REPLACE_FPRINTF.
29846
29847 2007-03-08  Bruno Haible  <bruno@clisp.org>
29848
29849         * modules/vfprintf-posix-tests: New file.
29850         * tests/test-vfprintf-posix.sh: New file.
29851         * tests/test-vfprintf-posix.c: New file.
29852         * tests/test-fprintf-posix.h: New file.
29853         * tests/test-fprintf-posix.out: New file.
29854
29855         * modules/vfprintf-posix: New file.
29856         * lib/vfprintf.c: New file.
29857         * m4/vfprintf-posix.m4: New file.
29858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
29859         REPLACE_VFPRINTF.
29860         * lib/stdio_.h (vfprintf): New declaration.
29861         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
29862         REPLACE_VFPRINTF.
29863
29864 2007-03-08  Bruno Haible  <bruno@clisp.org>
29865
29866         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
29867
29868 2007-03-08  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
29871         instead of 'expr' invocations.
29872         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29873         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29874         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29877         Suggested by Paul Eggert.
29878
29879 2007-03-08  Bruno Haible  <bruno@clisp.org>
29880
29881         * modules/fseterr-tests: New file.
29882         * tests/test-fseterr.c: New file.
29883
29884         * modules/fseterr: New file.
29885         * lib/fseterr.h: New file.
29886         * lib/fseterr.c: New file.
29887
29888 2007-03-08  Bruno Haible  <bruno@clisp.org>
29889
29890         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
29891         * lib/getopt_.h: Likewise.
29892         * lib/mbswidth.h: Likewise.
29893         * lib/setenv.h: Likewise.
29894         * lib/vasnprintf.h: Likewise.
29895         * lib/vasprintf.h: Likewise.
29896         * lib/verror.h: Likewise.
29897         * lib/xsetenv.h: Likewise.
29898         * lib/xvasprintf.h: Likewise.
29899
29900 2007-03-08  Jim Meyering  <jim@meyering.net>
29901
29902         * users.txt: Add parted.
29903
29904         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
29905
29906 2007-03-07  Bruno Haible  <bruno@clisp.org>
29907
29908         * m4/printf.m4: Make the shell script snippets copy&pastable.
29909
29910 2007-03-02  Bruno Haible  <bruno@clisp.org>
29911
29912         * lib/netinet_in_.h: New file.
29913         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
29914         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
29915         * modules/netinet_in (Files): Add lib/netinet_in_.h.
29916         (Depends-on): Add absolute-header.
29917         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
29918         into netinet/in.h.
29919
29920 2007-03-03  Bruno Haible  <bruno@clisp.org>
29921
29922         * lib/sys_select_.h: New file.
29923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
29924         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
29925         * modules/sys_select (Files): Add lib/sys_select_.h.
29926         (Depends-on): Add absolute-header.
29927         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
29928         into sys/select.h.
29929
29930 2007-03-02  Bruno Haible  <bruno@clisp.org>
29931
29932         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
29933         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
29934         values.
29935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
29936         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
29937         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
29938         * modules/sys_socket (Depends-on): Add absolute-header.
29939         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
29940         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
29941         (Include): Remove requirement of inclusion of <sys/types.h>.
29942
29943 2007-03-02  Bruno Haible  <bruno@clisp.org>
29944
29945         * lib/byteswap_.h (bswap_32): Fix formula.
29946
29947 2007-03-06  Bruno Haible  <bruno@clisp.org>
29948
29949         * modules/sprintf-posix-tests: New file.
29950         * tests/test-sprintf-posix.c: New file.
29951
29952         * modules/sprintf-posix: New file.
29953         * lib/sprintf.c: New file.
29954         * m4/sprintf-posix.m4: New file.
29955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
29956         REPLACE_SPRINTF.
29957         * lib/stdio_.h (sprintf): New declaration.
29958         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
29959         REPLACE_SPRINTF.
29960
29961 2007-03-06  Bruno Haible  <bruno@clisp.org>
29962
29963         * modules/vsprintf-posix-tests: New file.
29964         * tests/test-vsprintf-posix.c: New file.
29965         * tests/test-sprintf-posix.h: New file.
29966
29967         * modules/vsprintf-posix: New file.
29968         * lib/vsprintf.c: New file.
29969         * m4/vsprintf-posix.m4: New file.
29970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
29971         REPLACE_VSPRINTF.
29972         * lib/stdio_.h (vsprintf): New declaration.
29973         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
29974         REPLACE_VSPRINTF.
29975
29976 2007-03-06  Bruno Haible  <bruno@clisp.org>
29977
29978         * modules/vsnprintf (Depend-on): Remove minmax.
29979
29980 2007-03-06  Bruno Haible  <bruno@clisp.org>
29981
29982         * modules/snprintf-posix-tests: New file.
29983         * tests/test-snprintf-posix.c: New file.
29984
29985         * modules/snprintf-posix: New file.
29986         * m4/snprintf-posix.m4: New file.
29987         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
29988         gl_FUNC_SNPRINTF.
29989         (gl_FUNC_SNPRINTF): Invoke it.
29990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
29991         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
29992         is set.
29993         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
29994
29995 2007-03-06  Bruno Haible  <bruno@clisp.org>
29996
29997         * modules/vsnprintf-posix-tests: New file.
29998         * tests/test-vsnprintf-posix.c: New file.
29999         * tests/test-snprintf-posix.h: New file.
30000
30001         * modules/vsnprintf-posix: New file.
30002         * m4/vsnprintf-posix.m4: New file.
30003         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
30004         gl_FUNC_VSNPRINTF.
30005         (gl_FUNC_VSNPRINTF): Invoke it.
30006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
30007         * lib/stdio_.h (vsnprintf): Define as a replacement if
30008         REPLACE_VSNPRINTF is set.
30009         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
30010
30011 2007-03-06  Bruno Haible  <bruno@clisp.org>
30012
30013         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
30014         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
30015
30016 2007-03-06  Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
30019         (asinl): Declare also if HAVE_DECL_ASINL is set.
30020         (atanl): Declare also if HAVE_DECL_ATANL is set.
30021         (ceill): Declare also if HAVE_DECL_CEILL is set.
30022         (cosl): Declare also if HAVE_DECL_COSL is set.
30023         (expl): Declare also if HAVE_DECL_EXPL is set.
30024         (floorl): Declare also if HAVE_DECL_FLOORL is set.
30025         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
30026         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
30027         (logl): Declare also if HAVE_DECL_LOGL is set.
30028         (sinl): Declare also if HAVE_DECL_SINL is set.
30029         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
30030         (tanl): Declare also if HAVE_DECL_TANL is set.
30031         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
30032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
30033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
30034         declaration of frexpl, ldexpl.
30035         * modules/printf-frexpl (Depends-on): Add math.
30036         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
30037
30038 2007-03-05  Bruno Haible  <bruno@clisp.org>
30039
30040         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
30041         frexpl and ldexpl are declared.
30042         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
30043
30044 2007-03-05  Bruno Haible  <bruno@clisp.org>
30045
30046         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
30047         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
30048
30049 2007-03-05  Bruno Haible  <bruno@clisp.org>
30050
30051         * lib/stdio_.h: Include <stddef.h>.
30052
30053 2007-03-05  Bruno Haible  <bruno@clisp.org>
30054
30055         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
30056
30057 2007-03-05  Bruno Haible  <bruno@clisp.org>
30058
30059         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
30060         NetBSD 4, from Ralf Wildenhues.
30061
30062 2007-03-04  Bruno Haible  <bruno@clisp.org>
30063
30064         * lib/vasprintf.h: Update #if logic for the case when the functions
30065         exist but are overridden.
30066
30067 2007-03-04  Bruno Haible  <bruno@clisp.org>
30068
30069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
30070         implementations: glibc-2.4 and MacOS X 10.3.
30071         * tests/test-vasnprintf-posix.c (test_function): Test also the case
30072         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
30073         * tests/test-vasprintf-posix.c (test_function): Likewise.
30074
30075 2007-03-04  Bruno Haible  <bruno@clisp.org>
30076
30077         * modules/vasprintf-posix-tests: New file.
30078         * tests/test-vasprintf-posix.c: New file.
30079
30080         * modules/vasprintf-posix: New file.
30081         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
30082         defined.
30083         * m4/vasprintf-posix.m4: New file.
30084         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
30085         gl_FUNC_VASPRINTF.
30086         (gl_FUNC_VASPRINTF): Invoke it.
30087         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
30088         here.
30089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
30090
30091 2007-03-04  Bruno Haible  <bruno@clisp.org>
30092
30093         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
30094         REPLACE_GETTIMEOFDAY.
30095         * modules/sys_time (Makefile.am): Likewise.
30096         * m4/sys_time_h.m4: Likewise.
30097         * m4/gettimeofday.m4: Likewise.
30098
30099 2007-03-04  Bruno Haible  <bruno@clisp.org>
30100
30101         * modules/vasnprintf-posix-tests: New file.
30102         * tests/test-vasnprintf-posix.c: New file.
30103
30104         * modules/vasnprintf-posix: New file.
30105         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
30106         printf-frexpl.h.
30107         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
30108         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
30109         REPLACE_VASNPRINTF is defined.
30110         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
30111         gl_FUNC_VASNPRINTF.
30112         (gl_FUNC_VASNPRINTF): Invoke it.
30113         * m4/vasnprintf-posix.m4: New file.
30114         * m4/printf.m4: New file.
30115
30116 2007-03-04  Bruno Haible  <bruno@clisp.org>
30117
30118         Compile progreloc.c only if --enable-relocatable is specified.
30119         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
30120         if --enable-relocatable was specified.
30121         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
30122         lib_SOURCES.
30123
30124 2007-03-04  Jim Meyering  <jim@meyering.net>
30125
30126         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
30127         Use it consistently, rather than enumerating errno constants.
30128
30129 2007-03-04  Bruno Haible  <bruno@clisp.org>
30130
30131         * modules/xvasprintf-tests: New file.
30132         * tests/test-xvasprintf.c: New file.
30133
30134         * modules/vasprintf-tests: New file.
30135         * tests/test-vasprintf.c: New file.
30136
30137         * modules/vasnprintf-tests: New file.
30138         * tests/test-vasnprintf.c: New file.
30139
30140         * modules/vsnprintf-tests: New file.
30141         * tests/test-vsnprintf.c: New file.
30142
30143         * modules/snprintf-tests: New file.
30144         * tests/test-snprintf.c: New file.
30145
30146 2007-03-04  Bruno Haible  <bruno@clisp.org>
30147
30148         Compile relocatable.c only if --enable-relocatable is specified.
30149         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
30150         gl_RELOCATABLE_LIBRARY.
30151         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
30152         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
30153         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
30154         gl_RELOCATABLE_LIBRARY.
30155         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
30156         (Makefile.am): Remove lib_SOURCES.
30157         * modules/relocatable-lib-lgpl (configure.ac): Invoke
30158         gl_RELOCATABLE_LIBRARY.
30159         (Makefile.am): Remove lib_SOURCES.
30160         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
30161         always.
30162         * modules/relocatable-prog-wrapper (configure.ac): Invoke
30163         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
30164
30165 2007-03-04  Bruno Haible  <bruno@clisp.org>
30166
30167         * modules/argmatch-tests: New file.
30168         * tests/test-argmatch.c: New file.
30169
30170         * tests/test-allocsa.c (main): Halve the number of loop runs.
30171
30172         * modules/alloca-opt-tests: New file.
30173         * tests/test-alloca-opt.c: New file.
30174
30175 2007-03-04  Jim Meyering  <jim@meyering.net>
30176
30177         Work around difference between Linux ACLs and Solaris 10 ZFS.
30178         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
30179         for EINVAL.
30180
30181 2007-03-03  Bruno Haible  <bruno@clisp.org>
30182
30183         * modules/relocatable-prog (Depends-on): Add back progreloc's
30184         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
30185
30186 2007-03-03  Bruno Haible  <bruno@clisp.org>
30187
30188         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
30189         * modules/relocatable-lib: New file.
30190
30191 2007-03-03  Bruno Haible  <bruno@clisp.org>
30192
30193         * modules/relocatable-prog: Renamed from modules/relocatable.
30194         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
30195
30196 2007-03-03  Bruno Haible  <bruno@clisp.org>
30197
30198         * modules/relocatable-script (Files): Add doc/relocatable.texi,
30199         m4/relocatable-lib.m4.
30200         (Depends-on): Remove 'relocatable'.
30201         (configure.ac): Add gl_RELOCATABLE_NOP.
30202
30203 2007-03-03  Bruno Haible  <bruno@clisp.org>
30204
30205         * modules/relocatable-prog-wrapper: New file.
30206         * modules/relocatable (Depends-on): Add it. Remove all other
30207         dependencies except progname.
30208         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
30209
30210         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
30211         (gl_FUNC_STRERROR): Nop.
30212         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
30213
30214         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
30215         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
30216
30217         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
30218         (gl_FUNC_READLINK): Update.
30219
30220         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
30221
30222 2007-03-03  Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/xreadlink.c: Include <unistd.h> unconditionally.
30225         * modules/xreadlink (Depends-on): Add unistd.
30226         * modules/xreadlink-with-size (Depends-on): Likewise.
30227
30228 2007-03-03  Bruno Haible  <bruno@clisp.org>
30229
30230         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
30231         extracted from gt_FUNC_SETENV.
30232         (gt_FUNC_SETENV): Remove macro.
30233         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
30234         remove gt_FUNC_SETENV.
30235
30236 2007-03-03  Bruno Haible  <bruno@clisp.org>
30237
30238         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
30239         ENABLE_RELOCATABLE here.
30240         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
30241
30242 2007-03-03  Bruno Haible  <bruno@clisp.org>
30243
30244         * modules/rbtreehash-list-tests (Depends-on): Add progname.
30245         * tests/test-rbtreehash_list.c: Include progname.h.
30246         (main): Call set_program_name.
30247
30248         * modules/rbtree-oset-tests (Depends-on): Add progname.
30249         * tests/test-rbtree_oset.c: Include progname.h.
30250         (main): Call set_program_name.
30251
30252         * modules/rbtree-list-tests (Depends-on): Add progname.
30253         * tests/test-rbtree_list.c: Include progname.h.
30254         (main): Call set_program_name.
30255
30256         * modules/linked-list-tests (Depends-on): Add progname.
30257         * tests/test-linked_list.c: Include progname.h.
30258         (main): Call set_program_name.
30259
30260 2007-03-03  Bruno Haible  <bruno@clisp.org>
30261
30262         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
30263         All uses of __restrict changed to _Restrict_.
30264         * lib/glob_.h (__restrict): Remove macro.
30265
30266 2007-03-02  Bruno Haible  <bruno@clisp.org>
30267
30268         * modules/gettext (configure.ac): Require gettext infrastructure
30269         from version 0.16.1.
30270
30271 2007-03-02  Bruno Haible  <bruno@clisp.org>
30272
30273         * modules/linkedhash-list-tests (Depends-on): Add progname.
30274         * tests/test-linkedhash_list.c: Include progname.h.
30275         (main): Call set_program_name.
30276
30277         * modules/carray-list-tests (Depends-on): Add progname.
30278         * tests/test-carray_list.c: Include progname.h.
30279         (main): Call set_program_name.
30280
30281         * modules/avltreehash-list-tests (Depends-on): Add progname.
30282         * tests/test-avltreehash_list.c: Include progname.h.
30283         (main): Call set_program_name.
30284
30285         * modules/avltree-oset-tests (Depends-on): Add progname.
30286         * tests/test-avltree_oset.c: Include progname.h.
30287         (main): Call set_program_name.
30288
30289         * modules/avltree-list-tests (Depends-on): Add progname.
30290         * tests/test-avltree_list.c: Include progname.h.
30291         (main): Call set_program_name.
30292
30293         * modules/array-oset-tests (Depends-on): Add progname.
30294         * tests/test-array_oset.c: Include progname.h.
30295         (main): Call set_program_name.
30296
30297         * modules/array-list-tests (Depends-on): Add progname.
30298         * tests/test-array_list.c: Include progname.h.
30299         (main): Call set_program_name.
30300
30301         * modules/argp-tests (Depends-on): Add progname.
30302         * tests/test-argp.c: Include argp.h first. Include progname.h.
30303         (main): Call set_program_name.
30304
30305 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
30306
30307         * doc/gnulib-tool.texi (Initial import): Reword description of
30308         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
30309         limited effect even if defined after the first system include.
30310
30311 2007-03-01  Bruno Haible  <bruno@clisp.org>
30312
30313         * build-aux/config.libpath: Update to libtool-1.5.22.
30314         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30315
30316 2007-03-01  Bruno Haible  <bruno@clisp.org>
30317
30318         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
30319         foo_CFLAGS.
30320         Reported by Ralf Wildenhues.
30321
30322 2007-03-01  Bruno Haible  <bruno@clisp.org>
30323
30324         * build-aux/install-reloc: Remove object files left over by some
30325         compilers.
30326         Reported by Ralf Wildenhues.
30327
30328 2007-03-01  Bruno Haible  <bruno@clisp.org>
30329
30330         * build-aux/install-reloc: Break long lines.
30331
30332 2007-03-01  Bruno Haible  <bruno@clisp.org>
30333
30334         * doc/relocatable.texi: Document that it may not work on OpenBSD.
30335         Reported by Ralf Wildenhues.
30336
30337 2007-03-01  Bruno Haible  <bruno@clisp.org>
30338
30339         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
30340         include ordering constraints.
30341
30342 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30343
30344         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
30345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
30346         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
30347         as another example.
30348         * lib/time_.h: Fix misspelling.
30349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30350         Require gl_HEADER_TIME_H_DEFAULTS.
30351         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
30352         * m4/time_r.m4 (gl_TIME_R): Likewise.
30353         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
30354
30355 2007-03-01  Bruno Haible  <bruno@clisp.org>
30356
30357         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
30358         * m4/utimens.m4 (gl_UTIMENS): Likewise.
30359
30360 2007-03-01  Jim Meyering  <jim@meyering.net>
30361
30362         * modules/xreadlink (Maintainer): Add my name.
30363         * modules/xreadlink-with-size (Depends-on): Alphabetize.
30364
30365 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
30366             Bruno Haible  <bruno@clisp.org>
30367
30368         * build-aux/install-reloc: Compile also c-ctype.c.
30369         * build-aux/relocatable.sh.in: New file.
30370         * doc/relocatable.texi: New file.
30371         * doc/relocatable-maint.texi: New file.
30372         * doc/gnulib.texi: Include relocatable-maint.texi.
30373         * lib/progreloc.c: Include unistd.h unconditionally.
30374         * lib/relocwrapper.c: Include unistd.h unconditionally.
30375         Include c-ctype.h.
30376         (add_dotbin): Use c_tolower.
30377         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
30378         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
30379         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
30380         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
30381         to m4/relocatable-lib.m4.
30382         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
30383         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
30384         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
30385         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
30386         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
30387         * modules/relocatable: New file.
30388         * modules/relocatable-lib: New file.
30389         * modules/relocatable-script: New file.
30390
30391 2007-02-28  Bruno Haible  <bruno@clisp.org>
30392
30393         Import --enable-relocatable infrastructure.
30394         * build-aux/config.libpath: New file, from GNU gettext.
30395         * build-aux/install-reloc: New file, from GNU gettext.
30396         * build-aux/reloc-ldflags: New file, from GNU gettext.
30397         * lib/relocatable.h: New file, from GNU gettext.
30398         * lib/relocatable.c: New file, from GNU gettext.
30399         * lib/relocwrapper.c: New file, from GNU gettext.
30400         * m4/relocatable.m4: New file, from GNU gettext.
30401
30402 2007-02-28  Bruno Haible  <bruno@clisp.org>
30403
30404         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
30405
30406         * modules/xreadlink: New file, from GNU gettext with modifications.
30407         * lib/xreadlink.c: New file, from GNU gettext.
30408         * lib/xreadlink.h: Add comments.
30409         (xreadlink): New declaration.
30410
30411         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
30412         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
30413         lib/xreadlink-with-size.c.
30414         (configure.ac): Remove gl_XREADLINK invocation.
30415         (Makefile.am): Augment lib_SOURCES.
30416         * m4/xreadlink.m4: Remove file.
30417         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
30418         (xreadlink_with_size): Renamed from xreadink.
30419         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
30420         * modules/canonicalize (Depends-on): Replace xreadlink with
30421         xreadlink-with-size.
30422         * lib/canonicalize.c (canonicalize_filename_mode): Update.
30423
30424 2007-02-25  Jim Meyering  <jim@meyering.net>
30425
30426         * build-aux/announce-gen: When complaining about excess arguments,
30427         list them.
30428
30429 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30430
30431         * README: Document signed integer overflow situation more
30432         accurately.
30433
30434 2007-02-25  Bruno Haible  <bruno@clisp.org>
30435
30436         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
30437         'a' or 'A' conversion.
30438
30439 2007-02-25  Bruno Haible  <bruno@clisp.org>
30440
30441         * modules/filename: Renamed from modules/pathname.
30442         (Files): Replace lib/pathname.h with lib/filename.h. Replace
30443         lib/concatpath.c with lib/concat-filename.c.
30444         (Makefile.am): Update.
30445         (Include): Replace pathname.h with filename.h.
30446         * lib/filename.h: Renamed from lib/pathname.h.
30447         (concatenated_filename): Renamed from concatenated_pathname.
30448         * lib/concat-filename.c: Renamed from lib/concatpath.c.
30449         (concatenated_filename): Renamed from concatenated_pathname.
30450         * lib/findprog.c: Include filename.h instead of pathname.h.
30451         (find_in_path): Update.
30452         * lib/javacomp.c: Include filename.h instead of pathname.h.
30453         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30454         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30455         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30456         is_oldgcj_14_13_usable, is_javac_usable): Update.
30457         * lib/javaexec.c: Include filename.h instead of pathname.h.
30458         (execute_java_class): Update.
30459         * modules/findprog: Update.
30460         * modules/javacomp: Update.
30461         * modules/javaexec: Update.
30462         * MODULES.html.sh (File system functions): Add 'filename', remove
30463         'pathname'.
30464
30465 2007-02-25  Bruno Haible  <bruno@clisp.org>
30466
30467         * modules/printf-frexpl-tests: New file.
30468         * tests/test-printf-frexpl.c: New file.
30469
30470         * modules/printf-frexpl: New file.
30471         * lib/printf-frexpl.h: New file.
30472         * lib/printf-frexpl.c: New file.
30473         * m4/printf-frexpl.m4: New file.
30474
30475 2007-02-25  Bruno Haible  <bruno@clisp.org>
30476
30477         * modules/printf-frexp-tests: New file.
30478         * tests/test-printf-frexp.c: New file.
30479
30480         * modules/printf-frexp: New file.
30481         * lib/printf-frexp.h: New file.
30482         * lib/printf-frexp.c: New file.
30483         * m4/printf-frexp.m4: New file.
30484
30485 2007-02-25  Bruno Haible  <bruno@clisp.org>
30486
30487         Assume automake >= 1.10 for the tests.
30488         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
30489         * modules/arctwo-tests: Likewise.
30490         * modules/argp-tests: Likewise.
30491         * modules/avltree-list-tests: Likewise.
30492         * modules/avltree-oset-tests: Likewise.
30493         * modules/avltreehash-list-tests: Likewise.
30494         * modules/carray-list-tests: Likewise.
30495         * modules/crc-tests: Likewise.
30496         * modules/des-tests: Likewise.
30497         * modules/gc-arcfour-tests: Likewise.
30498         * modules/gc-arctwo-tests: Likewise.
30499         * modules/gc-des-tests: Likewise.
30500         * modules/gc-hmac-md5-tests: Likewise.
30501         * modules/gc-hmac-sha1-tests: Likewise.
30502         * modules/gc-md2-tests: Likewise.
30503         * modules/gc-md4-tests: Likewise.
30504         * modules/gc-md5-tests: Likewise.
30505         * modules/gc-pbkdf2-sha1-tests: Likewise.
30506         * modules/gc-rijndael-tests: Likewise.
30507         * modules/gc-sha1-tests: Likewise.
30508         * modules/gc-tests: Likewise.
30509         * modules/getaddrinfo-tests: Likewise.
30510         * modules/hmac-md5-tests: Likewise.
30511         * modules/hmac-sha1-tests: Likewise.
30512         * modules/linked-list-tests: Likewise.
30513         * modules/linkedhash-list-tests: Likewise.
30514         * modules/lock-tests: Likewise.
30515         * modules/md2-tests: Likewise.
30516         * modules/md4-tests: Likewise.
30517         * modules/md5-tests: Likewise.
30518         * modules/rbtree-list-tests: Likewise.
30519         * modules/rbtree-oset-tests: Likewise.
30520         * modules/rbtreehash-list-tests: Likewise.
30521         * modules/read-file-tests: Likewise.
30522         * modules/rijndael-tests: Likewise.
30523         * modules/stdint-tests: Likewise.
30524         * modules/tls-tests: Likewise.
30525
30526 2007-02-24  Bruno Haible  <bruno@clisp.org>
30527
30528         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
30529         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
30530         function; instead check whether isnan with a double argument links.
30531         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
30532         function; instead check whether isnan with a 'long double' argument
30533         links.
30534         Reported by Eric Blake <ebb9@byu.net>.
30535
30536 2007-02-24  Bruno Haible  <bruno@clisp.org>
30537
30538         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
30539         defined.
30540         * lib/isnanl.c: Remove all code. Just include isnan.c.
30541         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
30542
30543 2007-02-25  Jim Meyering  <jim@meyering.net>
30544
30545         Avoid conflicting types for 'unsetenv' on FreeBSD.
30546         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
30547         conflicting with FreeBSD's (5.0 and 6.1) function declaration
30548         in stdlib.h.
30549
30550 2007-02-24  Bruno Haible  <bruno@clisp.org>
30551
30552         * modules/isnanl-nolibm-tests: New file.
30553         * tests/test-isnanl.c: New file.
30554
30555         * modules/isnanl-nolibm: New file.
30556         * lib/isnanl.h: New file.
30557         * lib/isnanl.c: New file.
30558         * m4/isnanl.m4: New file.
30559
30560 2007-02-24  Bruno Haible  <bruno@clisp.org>
30561
30562         * modules/isnan-nolibm-tests: New file.
30563         * tests/test-isnan.c: New file.
30564
30565         * modules/isnan-nolibm: New file.
30566         * lib/isnan.h: New file.
30567         * lib/isnan.c: New file.
30568         * m4/isnan.m4: New file.
30569
30570 2007-02-24  Bruno Haible  <bruno@clisp.org>
30571
30572         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
30573         assume that an exponent fits in 20 bits.
30574
30575 2007-02-24  Jim Meyering  <jim@meyering.net>
30576
30577         * m4/regex.m4: Update the description of the configure-time option,
30578         --without-included-regex, to state accurately what the defaults are,
30579         and perhaps to give people an idea why using this option is risky.
30580
30581 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30582
30583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
30584         loops on small arguments.  This attempts to avoid the problem
30585         Bruno Haible reported for AIX 4.3.2 in
30586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
30587
30588 2007-02-23  Bruno Haible  <bruno@clisp.org>
30589
30590         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
30591         Needed for help2man.
30592
30593 2007-02-23  Karl Berry  <karl@gnu.org>
30594
30595         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
30596         exists, foo.h should be cvs-ignored, not committed.
30597
30598 2007-02-23  Eric Blake  <ebb9@byu.net>
30599
30600         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
30601         * lib/stat-time.h (includes): Likewise.
30602         * lib/utimecmp.c (includes): Likewise.
30603         * lib/utimens.h (includes): Likewise.
30604         * lib/getdate.y (includes): Also include "timespec.h" for use
30605         internal to the module.
30606         * modules/utimens (Depends-on): Revert yesterday's patch.
30607         * modules/nanosleep (Depends-on): Add missing dependency.
30608
30609 2007-02-22  Bruno Haible  <bruno@clisp.org>
30610
30611         * lib/glob.c: Don't include getlogin_r.h.
30612
30613 2007-02-22  Jim Meyering  <jim@meyering.net>
30614
30615         * modules/utimens (Depends-on): Add timespec, required for
30616         utimens.h's inclusion of timespec.h.
30617
30618 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30619
30620         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
30621         long unreadable paths in GNU/Linux.  Problem reported by Andreas
30622         Schwab in
30623         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
30624         I'll try to think of a better way to fix the Solaris problem.
30625
30626         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
30627         like glibc; on Solaris 10, it fails with errno == EINVAL.
30628         POSIX says the behavior is unspecified if the first argument is NULL,
30629         so play it safe and never pass NULL to the system getcwd.
30630
30631 2007-02-21  Jim Meyering  <jim@meyering.net>
30632
30633         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
30634         of gettimeofday.  It would conflict with the one now always
30635         provided via sys_time_.h.  Reported by Matthew Woehlke, as
30636         an IRIX 6.5 build failure.
30637
30638 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30639
30640         Minor fixups to port to Solaris 10 with Sun C 5.8.
30641         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
30642         * modules/getcwd (Depends-on): Add dirfd.
30643         * lib/putenv.c (putenv): #undef it.
30644         (rpl_putenv): New decl.
30645         (malloc, free): Include <stdlib.h> rather than prototyping separately.
30646
30647 2007-02-20  Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/stdio-tests: New file.
30650         * tests/test-stdio.c: New file.
30651
30652         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
30653         (Depends-on): Add stdio.
30654         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30655         (Include): Use <stdio.h> instead of vsnprintf.h.
30656         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
30657         HAVE_DECL_VSNPRINTF.
30658         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
30659
30660         * modules/snprintf (Files): Remove lib/snprintf.h.
30661         (Depends-on): Add stdio.
30662         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30663         (Include): Use <stdio.h> instead of snprintf.h.
30664         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
30665         HAVE_DECL_SNPRINTF.
30666         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
30667         * lib/getaddrinfo.c: Likewise.
30668
30669         * modules/stdio: New file.
30670         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
30671         * lib/snprintf.h: Remove file.
30672         * lib/vsnprintf.h: Remove file.
30673         * lib/.cppi-disable: Remove snprintf.h.
30674         * m4/stdio_h.m4: New file.
30675         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
30676
30677 2007-02-20  Jim Meyering  <jim@meyering.net>
30678
30679         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
30680         used by e.g., mingw.  From Bruno Haible.
30681
30682 2007-02-19  Bruno Haible  <bruno@clisp.org>
30683
30684         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
30685         warnings.
30686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30687
30688 2007-02-19  Bruno Haible  <bruno@clisp.org>
30689
30690         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
30691         from mingw users.
30692
30693 2007-02-19  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
30696         warnings.
30697         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
30698
30699 2007-02-19  Jim Meyering  <jim@meyering.net>
30700
30701         Don't use FD after a successful "fdopendir (fd)".
30702         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
30703         Reset it by calling dirfd on the just-obtained DIR*.
30704
30705         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
30706         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
30707
30708 2007-02-18  Bruno Haible  <bruno@clisp.org>
30709
30710         * lib/readlink.c: Include <unistd.h>.
30711         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
30712         HAVE_READLINK.
30713         * modules/readlink (Depends-on): Add unistd.
30714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30715         (Include): Add <unistd.h>.
30716
30717         * lib/getlogin_r.h: Remove file.
30718         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
30719         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
30720         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
30721         HAVE_DECL_GETLOGIN_R.
30722         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
30723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30724         (Include): Use <unistd.h> instead of getlogin_r.h.
30725
30726         * lib/getcwd.h: Remove file.
30727         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
30728         * lib/xgetcwd.c: Likewise.
30729         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
30730         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
30731         * modules/getcwd (Files): Remove lib/getcwd.h.
30732         (Depends-on): Add unistd.
30733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30734         (Include): Use <unistd.h> instad of getcwd.h.
30735
30736         * lib/ftruncate.c: Include <unistd.h> first.
30737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
30738         Set HAVE_FTRUNCATE.
30739         * modules/ftruncate (Depends-on): Add unistd.
30740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30741
30742         * lib/fchdir.c: Include <unistd.h> first.
30743         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
30744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
30745         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
30746         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30747         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
30748
30749         * lib/dup2.c: Include <unistd.h> first.
30750         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
30751         HAVE_DUP2.
30752         * modules/dup2 (Depends-on): Add unistd.
30753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30754
30755         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
30756         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
30757         REPLACE_CHOWN. Don't define chown as a macro here.
30758         * modules/chown (Depends-on): Add unistd.
30759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30760
30761         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
30762         Add definition for GL_LINK_WARNING.
30763         (chown, dup2): New declarations.
30764         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
30765         link warning.
30766         (ftruncate): New declaration.
30767         (getcwd): New declaration, taken from old getcwd.h.
30768         (getlogin_r): New declaration, taken from old getlogin_r.h.
30769         (readlink): New declaration.
30770         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
30771         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
30772         (gl_PREREQ_UNISTD): Remove macro.
30773         (gl_UNISTD_MODULE_INDICATOR): New macro.
30774         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
30775         many new variables. Don't set UNISTD_H.
30776         * modules/unistd (Description): Change.
30777         (Depends-on): Add link-warning.
30778         (configure.ac): Update.
30779         (Makefile.am): Create unistd.h always. Substitute many new variables
30780         into it.
30781
30782 2007-02-18  Bruno Haible  <bruno@clisp.org>
30783
30784         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
30785         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
30786         HAVE_GETSUBOPT.
30787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
30788         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
30789         * lib/getsubopt.h: Remove file.
30790         * modules/getsubopt (Files): Remove lib/getsubopt.h.
30791         (Depends-on): Add stdlib.
30792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30793         (Includes): Use <stdlib.h> instead of getsubopt.h.
30794         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
30795         Set HAVE_GETSUBOPT.
30796         * lib/getsubopt.c: Don't include getsubopt.h.
30797
30798 2007-02-18  Bruno Haible  <bruno@clisp.org>
30799
30800         * modules/fchdir (Depends-on): Add dup2.
30801
30802 2007-02-18  Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/stdlib_.h: Handle glibc's special invocation convention
30805         specially.
30806
30807 2007-02-18  Bruno Haible  <bruno@clisp.org>
30808
30809         * modules/stdlib-tests: New file.
30810         * tests/test-stdlib.c: New file.
30811
30812         * modules/mkstemp (Files): Remove lib/mkstemp.h.
30813         (Depends-on): Add stdlib.
30814         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30815         (Includes): Use <stdlib.h> instead of mkstemp.h.
30816         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
30817         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
30818         * lib/mkstemp.c: Don't include mkstemp.h.
30819         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
30820         * lib/stdlib--.h: Don't include mkstemp.h.
30821
30822         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
30823         (Depends-on): Add stdlib.
30824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30825         (Includes): Use <stdlib.h> instead of mkdtemp.h.
30826         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
30827         HAVE_MKDTEMP.
30828         * lib/mkdtemp.c: Don't include mkdtemp.h.
30829         * lib/clean-temp.c: Don't include mkdtemp.h.
30830
30831         * modules/exit (Files): Remove lib/exit.h.
30832         (Depends-on): Add stdlib.
30833         (Makefile.am): Remove lib_SOURCES.
30834         (Include): Use <stdlib.h> instead of exit.h.
30835         * lib/argmatch.c: Don't include exit.h.
30836         * lib/execute.c: Likewise.
30837         * lib/pagealign_alloc.c: Likewise.
30838         * lib/pipe.c: Likewise.
30839         * lib/wait-process.c: Likewise.
30840         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
30841         * lib/exitfail.c: Likewise.
30842         * lib/savewd.c: Likewise.
30843         * lib/xsetenv.c: Likewise.
30844
30845         * modules/stdlib: New file.
30846         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
30847         and extra comments about mkstemp().
30848         * lib/exit.h: Remove file.
30849         * lib/mkdtemp.h: Remove file.
30850         * lib/mkstemp.h: Remove file.
30851         * m4/stdlib_h.m4: New file.
30852         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
30853
30854 2007-02-18  Bruno Haible  <bruno@clisp.org>
30855
30856         * modules/math-tests: New file.
30857         * tests/test-math.c: New file.
30858
30859         * modules/math: New file.
30860         * modules/mathl (Files): Remove lib/mathl.h.
30861         (Depends-on): Add math.
30862         (Makefile.am): Don't mention mathl.h.
30863         (Include): Use <math.h> instead of mathl.h.
30864         * lib/math_.h: New file.
30865         * lib/mathl.h: Remove file.
30866         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
30867         mathl.h.
30868         * lib/asinl.c: Likewise.
30869         * lib/atanl.c: Likewise.
30870         * lib/ceill.c: Likewise.
30871         * lib/cosl.c: Likewise.
30872         * lib/expl.c: Likewise.
30873         * lib/floorl.c: Likewise.
30874         * lib/frexpl.c: Likewise.
30875         * lib/ldexpl.c: Likewise.
30876         * lib/logl.c: Likewise.
30877         * lib/sincosl.c: Likewise.
30878         * lib/sinl.c: Likewise.
30879         * lib/sqrtl.c: Likewise.
30880         * lib/tanl.c: Likewise.
30881         * lib/trigl.c: Likewise.
30882         * m4/math_h.m4: New file.
30883         * MODULES.html.sh (Mathematics): Add math.
30884
30885 2007-02-17  Bruno Haible  <bruno@clisp.org>
30886
30887         * modules/wctype-tests: New file.
30888         * tests/test-wctype.c: New file.
30889
30890         * modules/wchar-tests: New file.
30891         * tests/test-wchar.c: New file.
30892
30893         * modules/unistd-tests: New file.
30894         * tests/test-unistd.c: New file.
30895
30896         * modules/time-tests: New file.
30897         * tests/test-time.c: New file.
30898
30899         * modules/sysexits-tests: New file.
30900         * tests/test-sysexits.c: New file.
30901
30902         * modules/sys_time-tests: New file.
30903         * tests/test-sys_time.c: New file.
30904
30905         * modules/sys_stat-tests: New file.
30906         * tests/test-sys_stat.c: New file.
30907
30908         * modules/sys_socket-tests: New file.
30909         * tests/test-sys_socket.c: New file.
30910
30911         * modules/sys_select-tests: New file.
30912         * tests/test-sys_select.c: New file.
30913
30914         * modules/string-tests: New file.
30915         * tests/test-string.c: New file.
30916
30917         * modules/stdbool-tests: New file.
30918         * tests/test-stdbool.c: New file.
30919
30920         * modules/netinet_in-tests: New file.
30921         * tests/test-netinet_in.c: New file.
30922
30923         * modules/inttypes-tests: New file.
30924         * tests/test-inttypes.c: New file.
30925
30926         * modules/fcntl-tests: New file.
30927         * tests/test-fcntl.c: New file.
30928
30929         * modules/byteswap-tests: New file.
30930         * tests/test-byteswap.c: New file.
30931
30932         * modules/arpa_inet-tests: New file.
30933         * tests/test-arpa_inet.c: New file.
30934
30935 2007-02-17  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
30938         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
30939         if the corresponding module is not enabled. Emit link warnings if
30940         the function is used nevertheless.
30941         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
30942         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
30943         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
30944         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
30945         * modules/inttypes (Depends-on): Add link-warning.
30946         (Makefile.am): Copy the contents of build-aux/link-warning.h into
30947         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
30948         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
30949         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
30950         * modules/imaxdiv (configure.ac): Likewise.
30951         * modules/strtoimax (configure.ac): Likewise.
30952         * modules/strtoumax (configure.ac): Likewise.
30953
30954 2007-02-17  Bruno Haible  <bruno@clisp.org>
30955
30956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
30957         gl_STRING_MODULE_INDICATOR_DEFAULTS.
30958         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
30959         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
30960
30961 2007-02-17  Bruno Haible  <bruno@clisp.org>
30962
30963         * modules/link-warning: New file.
30964         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
30965         * lib/string_.h (GL_LINK_WARNING): Remove definition.
30966         * modules/string (Depends-on): Add link-warning.
30967         (Makefile.am): Copy the contents of build-aux/link-warning.h into
30968         string.h.
30969         * MODULES.html.sh (Support for building libraries and executables): Add
30970         link-warning.
30971
30972 2007-02-17  Bruno Haible  <bruno@clisp.org>
30973
30974         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
30975         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
30976         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
30977         long lines.
30978
30979 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
30980             Bruno Haible  <bruno@clisp.org>
30981
30982         * modules/tmpfile: New file.
30983         * lib/tmpfile.c: New file.
30984         * m4/tmpfile.m4: New file.
30985         * MODULES.html.sh (func_all_modules): New section "Input/output".
30986
30987 2007-02-15  Bruno Haible  <bruno@clisp.org>
30988
30989         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
30990         (supports_delete_on_close): New function.
30991         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
30992
30993 2007-02-14  Bruno Haible  <bruno@clisp.org>
30994
30995         * modules/mbspcasecmp-tests: New file.
30996         * tests/test-mbspcasecmp.sh: New file.
30997         * tests/test-mbspcasecmp.c: New file.
30998
30999         New module mbspcasecmp.
31000         * modules/mbspcasecmp: New file.
31001         * lib/mbspcasecmp.c: New file.
31002         * lib/string_.h (strncasecmp): Change warning message.
31003         (mbspcasecmp): New declaration.
31004         * m4/mbspcasecmp.m4: New file.
31005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31006         GNULIB_MBSPCASECMP.
31007         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
31008         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
31009
31010 2007-02-14  Bruno Haible  <bruno@clisp.org>
31011
31012         * modules/mbsncasecmp-tests: New file.
31013         * tests/test-mbsncasecmp.sh: New file.
31014         * tests/test-mbsncasecmp.c: New file.
31015
31016         New module mbsncasecmp.
31017         * modules/mbsncasecmp: New file.
31018         * lib/mbsncasecmp.c: New file.
31019         * lib/string_.h (mbsncasecmp): New declaration.
31020         * m4/mbsncasecmp.m4: New file.
31021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31022         GNULIB_MBSNCASECMP.
31023         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
31024         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
31025
31026 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31027
31028         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
31029         Verify that it doesn't overlap with our flags.
31030         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
31031         do not have the desired effect in multibyte locales; instead, use
31032         mbscasecmp.
31033         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
31034         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
31035         we don't require GNU fnmatch ourselves (if our users require it, they
31036         should do so explicitly).
31037
31038         Fix regex code so it doesn't rely on strcasecmp.
31039         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
31040         Otherwise, include gnulib's langinfo.h.
31041         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
31042         undesirable behavior in non-C locales.  Instead, rely on localecharset.
31043         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
31044         * modules/regex (FILES): Remove m4/codeset.m4.
31045         (Depends-on): Add localcharset.  Remove strcase.
31046
31047 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31048
31049         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
31050         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
31051
31052 2007-02-13  Bruno Haible  <bruno@clisp.org>
31053
31054         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
31055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31056
31057 2007-02-12  Bruno Haible  <bruno@clisp.org>
31058
31059         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
31060         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
31061         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
31062         time warning rather than a link error.
31063
31064 2007-02-12  Bruno Haible  <bruno@clisp.org>
31065
31066         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
31067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31069
31070 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
31071
31072         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
31073         args, not 2.
31074
31075 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
31076
31077         New module 'time', so that apps can include <time.h> as per
31078         POSIX and GNU instead of separate include files like time_r.h
31079         and timegm.h.  This implementation tries out a simpler approach
31080         for replacing decls in standard include files (as compared to
31081         the string module), somewhat as an experiment.
31082
31083         * config/srclist.txt: Comment out mktime.c for now.
31084         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
31085         since it doesn't apply any more.  Use generic wording instead.
31086         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
31087         'time'.
31088         * lib/time_.h, m4/time_h.m4, modules/time: New files.
31089         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
31090         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
31091         Don't include <sys/types.h>; no longer needed since we assume C89.
31092         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
31093         * lib/strftime.c: Likewise.
31094         * lib/time_r.c: Likewise.
31095         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
31096         * lib/nanosleep.c: Include <time.h> first, to check interface.
31097         * lib/strptime.c: Likewise.
31098         * lib/time_r.c: Likewise.
31099         * lib/timegm.c: Likewise.
31100         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
31101         needed.
31102         * lib/timegm.c: Don't include timegm.h; no longer needed.
31103         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
31104         time.h now handles any problems in that area.
31105         (struct timespec, nanosleep): Remove; time.h now arranges for these.
31106         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
31107         that time.h defines struct timespec.
31108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
31109         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
31110         handles that.
31111         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
31112         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
31113         needed.  Set REPLACE_LOCALTIME.
31114         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
31115         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
31116         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
31117         nanosleep; time_h.m4 now does that.  Don't require
31118         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
31119         module handles this now.
31120         * modules/getdate (Depends-on): Remove timespec.  Add time.
31121         * modules/nanosleep (Depends-on): Likewise.
31122         * modules/stat-time (Depends-on): Likewise.
31123         * modules/nanosleep (Include): Include time.h, not timespec.h.
31124         * modules/strptime (Files): Remove lib/strptime.h.
31125         (Depends-on): Add extensions, time.
31126         (Include): Include time.h, not strptime.h.
31127         * modules/time_r (Files): Remove lib/time_r.h.
31128         (Depends-on): Add time.
31129         (Include): Include time.h, not time_r.h.
31130         * modules/timegm: Likewise.
31131         * modules/timespec (Description): Now does timespec-related decls
31132         of our own, instead of struct timespec itself.
31133         (Depends-on): Add time; remove extensions.
31134         (Maintainer): Add self.
31135         * modules/utimecmp (Depends-on): Add time; remove timespec.
31136         * modules/utimens (Depends-on): Likewise.
31137         * modules/xnanosleep (Depends-on): Likewise.
31138
31139 2007-02-11  Bruno Haible  <bruno@clisp.org>
31140
31141         * lib/c-strstr.c: Include allocsa.h.
31142         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31143         * lib/c-strcasestr.c: Include allocsa.h.
31144         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31145         * lib/strcasestr.c: Include allocsa.h.
31146         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31147         * lib/mbsstr.c: Include allocsa.h.
31148         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
31149         allocsa/freesa instead of malloc/free.
31150         * lib/mbscasestr.c: Include allocsa.h.
31151         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
31152         allocsa/freesa instead of malloc/free.
31153         * modules/c-strstr (Depends-on): Add allocsa.
31154         * modules/c-strcasestr (Depends-on): Likewise.
31155         * modules/strcasestr (Depends-on): Likewise.
31156         * modules/mbsstr (Depends-on): Likewise.
31157         * modules/mbscasestr (Depends-on): Likewise.
31158
31159 2007-02-11  Bruno Haible  <bruno@clisp.org>
31160
31161         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
31162
31163         * modules/mbsspn-tests: New file.
31164         * tests/test-mbsspn.sh: New file.
31165         * tests/test-mbsspn.c: New file.
31166
31167 2007-02-11  Bruno Haible  <bruno@clisp.org>
31168
31169         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
31170
31171         * modules/mbspbrk-tests: New file.
31172         * tests/test-mbspbrk.sh: New file.
31173         * tests/test-mbspbrk.c: New file.
31174
31175 2007-02-11  Bruno Haible  <bruno@clisp.org>
31176
31177         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
31178         unneeded cast.
31179
31180         * modules/mbscspn-tests: New file.
31181         * tests/test-mbscspn.sh: New file.
31182         * tests/test-mbscspn.c: New file.
31183
31184 2007-02-11  Bruno Haible  <bruno@clisp.org>
31185
31186         * modules/mbscasecmp-tests: New file.
31187         * tests/test-mbscasecmp.sh: New file.
31188         * tests/test-mbscasecmp.c: New file.
31189
31190 2007-02-11  Bruno Haible  <bruno@clisp.org>
31191
31192         Ensure O(n) worst-case complexity of mbscasestr.
31193         * lib/mbscasestr.c: Include stdbool.h.
31194         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
31195         functions.
31196         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
31197         the bookkeeping indicates that it's worth it.
31198         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
31199
31200         * modules/mbscasestr-tests: New file.
31201         * tests/test-mbscasestr1.c: New file.
31202         * tests/test-mbscasestr2.sh: New file.
31203         * tests/test-mbscasestr2.c: New file.
31204         * tests/test-mbscasestr3.sh: New file.
31205         * tests/test-mbscasestr3.c: New file.
31206         * tests/test-mbscasestr4.sh: New file.
31207         * tests/test-mbscasestr4.c: New file.
31208         * m4/locale-tr.m4: New file.
31209
31210 2007-02-11  Bruno Haible  <bruno@clisp.org>
31211
31212         Ensure O(n) worst-case complexity of mbsstr.
31213         * lib/mbsstr.c: Include stdbool.h.
31214         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
31215         functions.
31216         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
31217         bookkeeping indicates that it's worth it.
31218         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
31219
31220         * modules/mbsstr-tests: New file.
31221         * tests/test-mbsstr1.c: New file.
31222         * tests/test-mbsstr2.sh: New file.
31223         * tests/test-mbsstr2.c: New file.
31224         * tests/test-mbsstr3.sh: New file.
31225         * tests/test-mbsstr3.c: New file.
31226         * m4/locale-fr.m4: New file.
31227
31228 2007-02-11  Bruno Haible  <bruno@clisp.org>
31229
31230         * lib/mbsrchr.c (mbsrchr): Fix bug.
31231
31232         * modules/mbsrchr-tests: New file.
31233         * tests/test-mbsrchr.sh: New file.
31234         * tests/test-mbsrchr.c: New file.
31235
31236 2007-02-11  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/mbschr.c (mbschr): Fix bug.
31239
31240         * modules/mbschr-tests: New file.
31241         * tests/test-mbschr.sh: New file.
31242         * tests/test-mbschr.c: New file.
31243         * m4/locale-zh.m4: New file.
31244
31245 2007-02-11  Bruno Haible  <bruno@clisp.org>
31246
31247         Support for copying multibyte string iterators.
31248         * lib/mbiter.h: Include <string.h>.
31249         (mbiter_multi_copy): New function.
31250         (mbi_copy): New macro.
31251         * lib/mbuiter.h: Include <string.h>.
31252         (mbuiter_multi_copy): New function.
31253         (mbui_copy): New macro.
31254
31255 2007-02-11  Bruno Haible  <bruno@clisp.org>
31256
31257         New module mbslen.
31258         * modules/mbslen: New file.
31259         * lib/mbslen.c: New file.
31260         * lib/string_.h (mbslen): New declaration.
31261         * m4/mbslen.m4: New file.
31262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31263         GNULIB_MBSLEN.
31264         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
31265         * MODULES.html.sh (Internationalization functions): Add mbslen.
31266
31267 2007-02-11  Bruno Haible  <bruno@clisp.org>
31268
31269         Ensure O(n) worst-case complexity of strcasestr substitute.
31270         * lib/strcasestr.c: Include stdbool.h.
31271         (knuth_morris_pratt): New function.
31272         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
31273         bookkeeping indicates that it's worth it.
31274         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
31275
31276         * modules/strcasestr-tests: New file.
31277         * tests/test-strcasestr.c: New file.
31278
31279 2007-02-11  Bruno Haible  <bruno@clisp.org>
31280
31281         Ensure O(n) worst-case complexity of c_strcasestr.
31282         * lib/c-strcasestr.c: Include stdbool.h, string.h.
31283         (knuth_morris_pratt): New function.
31284         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
31285         the bookkeeping indicates that it's worth it.
31286         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
31287
31288         * modules/c-strcasestr-tests: New file.
31289         * tests/test-c-strcasestr.c: New file.
31290
31291 2007-02-11  Bruno Haible  <bruno@clisp.org>
31292
31293         Ensure O(n) worst-case complexity of c_strstr.
31294         * lib/c-strstr.c: Include stdbool.h, string.h.
31295         (knuth_morris_pratt): New function.
31296         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
31297         bookkeeping indicates that it's worth it.
31298         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
31299
31300         * lib/c-strstr.c: Complete rewrite for maintainability.
31301
31302         * modules/c-strstr-tests: New file.
31303         * tests/test-c-strstr.c: New file.
31304
31305 2007-02-11  Bruno Haible  <bruno@clisp.org>
31306
31307         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
31308         5.2.1 and earlier, whereby \055 was treated just like the range
31309         delimiter '-'.
31310         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31311
31312 2007-02-08  Bruno Haible  <bruno@clisp.org>
31313
31314         * modules/regex (Depends-on): Add stdbool.
31315         Reported by Dalibor Topic <robilad@kaffe.org>.
31316
31317 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
31318
31319         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
31320         Prefer returning from main to exiting from it.
31321         Remove unnecessary parens after sizeof.
31322
31323 2007-02-05  Bruno Haible  <bruno@clisp.org>
31324
31325         New module mbssep.
31326         * modules/mbssep: New file.
31327         * lib/mbssep.c: New file.
31328         * lib/string_.h (strsep): Add a conditional link warning.
31329         (mbssep): New declaration.
31330         * m4/mbssep.m4: New file.
31331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31332         GNULIB_MBSSEP.
31333         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
31334         * MODULES.html.sh (Internationalization functions): Add mbssep.
31335
31336 2007-02-05  Bruno Haible  <bruno@clisp.org>
31337
31338         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
31339         Optimize search in case of 1 delimiter.
31340
31341 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
31342
31343         * lib/acl.h: Include sys/types.h before sys/acl.h.
31344
31345 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
31346
31347         Merge upstream fix for glibc bugzilla #3957:
31348
31349         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
31350
31351         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
31352         bit for RE_HAT_LISTS_NOT_NEWLINE.
31353         (build_charclass_op): Remove bogus comment.
31354
31355 2007-02-05  Simon Josefsson  <simon@josefsson.org>
31356
31357         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
31358
31359 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31360
31361         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
31362         * lib/memmem.c [!defined _LIBC]: Include config.h.
31363
31364 2007-02-04  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
31367         warning message.
31368
31369 2007-02-04  Bruno Haible  <bruno@clisp.org>
31370
31371         New module mbstok_r.
31372         * modules/mbstok_r: New file.
31373         * lib/mbstok_r.c: New file.
31374         * lib/string_.h (strtok_r): Change argument names to match the
31375         comments. Add a conditional link warning.
31376         (mbstok_r): New declaration.
31377         * m4/mbstok_r.m4: New file.
31378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31379         GNULIB_MBSTOK_R.
31380         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
31381         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
31382
31383 2007-02-04  Bruno Haible  <bruno@clisp.org>
31384
31385         New module mbsspn.
31386         * modules/mbsspn: New file.
31387         * lib/mbsspn.c: New file.
31388         * lib/string_.h (strspn): Add a conditional link warning.
31389         (mbsspn): New declaration.
31390         * m4/mbsspn.m4: New file.
31391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31392         GNULIB_MBSSPN.
31393         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
31394         * MODULES.html.sh (Internationalization functions): Add mbsspn.
31395
31396 2007-02-04  Bruno Haible  <bruno@clisp.org>
31397
31398         New module mbspbrk.
31399         * modules/mbspbrk: New file.
31400         * lib/mbspbrk.c: New file.
31401         * lib/string_.h (strpbrk): Add a conditional link warning.
31402         (mbspbrk): New declaration.
31403         * m4/mbspbrk.m4: New file.
31404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31405         GNULIB_MBSPBRK.
31406         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
31407         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
31408
31409 2007-02-04  Bruno Haible  <bruno@clisp.org>
31410
31411         New module mbscspn.
31412         * modules/mbscspn: New file.
31413         * lib/mbscspn.c: New file.
31414         * lib/string_.h (strcspn): Add a conditional link warning.
31415         (mbscspn): New declaration.
31416         * m4/mbscspn.m4: New file.
31417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31418         GNULIB_MBSCSPN.
31419         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
31420         * MODULES.html.sh (Internationalization functions): Add mbscspn.
31421
31422 2007-02-04  Bruno Haible  <bruno@clisp.org>
31423
31424         New module mbscasestr, reduced goal of strcasestr.
31425         * modules/mbscasestr: New file.
31426         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
31427         (mbscasestr): Renamed from strcasestr.
31428         * lib/strcasestr.c: Don't include mbuiter.h.
31429         (strcasestr): Remove support for multibyte locales.
31430         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
31431         Change the conditional link warning.
31432         (mbscasestr): New declaration.
31433         * m4/mbscasestr.m4: New file.
31434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
31435         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
31436         REPLACE_STRCASESTR.
31437         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
31438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31439         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
31440         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
31441         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
31442         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
31443         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
31444         (Depends-on): Remove mbuiter.
31445         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
31446
31447 2007-02-04  Bruno Haible  <bruno@clisp.org>
31448
31449         Simplify handling of strncasecmp.
31450         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
31451         the conditional link warning.
31452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31453         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
31454         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
31455         * modules/strcase (configure.ac): Don't invoke
31456         gl_STRING_MODULE_INDICATOR.
31457         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
31458
31459 2007-02-04  Bruno Haible  <bruno@clisp.org>
31460
31461         New module mbscasecmp, reduced goal of strcasecmp.
31462         * modules/mbscasecmp: New file.
31463         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
31464         (mbscasecmp): Renamed from strcasecmp.
31465         * lib/strcasecmp.c: Don't include mbuiter.h.
31466         (strcasecmp): Remove support for multibyte locales.
31467         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
31468         Change the conditional link warning.
31469         (mbscasecmp): New declaration.
31470         * m4/mbscasecmp.m4: New file.
31471         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
31472         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
31473         REPLACE_STRCASECMP.
31474         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
31475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31476         GNULIB_MBSCASECMP.
31477         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
31478         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
31479         * modules/strcase (Files): Remove m4/mbrtowc.m4.
31480         (Depends-on): Remove mbuiter.
31481         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
31482
31483 2007-02-04  Bruno Haible  <bruno@clisp.org>
31484
31485         New module mbsstr. Remove module strstr.
31486         * modules/mbsstr: New file.
31487         * modules/strstr: Remove file.
31488         * lib/mbsstr.c: Renamed from lib/strstr.c.
31489         (mbsstr): Renamed from strstr.
31490         * lib/string_.h (strstr): Remove declaration. Change the conditional
31491         link warning.
31492         (mbsstr): New declaration.
31493         * m4/mbsstr.m4: New file.
31494         * m4/strstr.m4: Remove file.
31495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31496         REPLACE_STRSTR.
31497         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
31498         Don't initialize GNULIB_STRSTR.
31499         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
31500         substitute GNULIB_STRSTR and REPLACE_STRSTR.
31501         * MODULES.html.sh (Internationalization functions): Add mbsstr.
31502         (Support for systems lacking ANSI C 89): Remove strstr.
31503
31504 2007-02-04  Bruno Haible  <bruno@clisp.org>
31505
31506         New module mbsrchr.
31507         * modules/mbsrchr: New file.
31508         * lib/mbsrchr.c: New file.
31509         * lib/string_.h (strrchr): Add a conditional link warning.
31510         (mbsrchr): New declaration.
31511         * m4/mbsrchr.m4: New file.
31512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31513         GNULIB_MBSRCHR.
31514         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
31515         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
31516
31517 2007-02-04  Bruno Haible  <bruno@clisp.org>
31518
31519         New module mbschr.
31520         * modules/mbschr: New file.
31521         * lib/mbschr.c: New file.
31522         * lib/string_.h (strchr): Add a conditional link warning.
31523         (mbschr): New declaration.
31524         * m4/mbschr.m4: New file.
31525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31526         GNULIB_MBSCHR.
31527         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
31528         * MODULES.html.sh (Internationalization functions): Add mbschr.
31529
31530 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31531
31532         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
31533
31534         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
31535
31536 2007-02-04  Bruno Haible  <bruno@clisp.org>
31537
31538         New module description section 'configure.ac-early'.
31539         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
31540         (func_get_autoconf_early_snippet): New function.
31541         (func_import, func_create_testdir): Use it. Remove special cases for
31542         modules 'extensions' and 'lock'.
31543         * modules/extensions (configure.ac-early): Require
31544         gl_USE_SYSTEM_EXTENSIONS.
31545         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
31546
31547 2007-02-04  Bruno Haible  <bruno@clisp.org>
31548
31549         Make use of gcj-4.3's -fsource and -ftarget option.
31550         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
31551         and if so try the options -fsource and -ftarget.
31552         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
31553         source_version, ftarget_option, target_version arguments.
31554         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
31555         (is_envjavac_oldgcj_14_14_usable): Renamed from
31556         is_envjavac_gcj_14_14_usable.
31557         (is_envjavac_oldgcj_14_13_usable): Renamed from
31558         is_envjavac_gcj_14_13_usable.
31559         (is_gcj_present): Update.
31560         (is_gcj_43, is_gcj43_usable): New functions.
31561         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
31562         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
31563         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
31564         try the options -fsource and -ftarget.
31565
31566 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31567
31568         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
31569         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
31570         larger value.
31571
31572 2007-02-03  Jim Meyering  <jim@meyering.net>
31573
31574         Give tools a better chance to allocate space for very large buffers.
31575         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
31576
31577         Make pwd and readlink work also when run with an unreadable parent dir
31578         on systems with openat support.
31579         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
31580         provided getcwd function, even when we have openat support.
31581         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
31582
31583 2007-02-02  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
31586         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
31587         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
31588         portability problems if one of these functions is only used on specific
31589         platforms.
31590         Reported by Paul Eggert.
31591
31592 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
31593
31594         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
31595         is causing more trouble than it's curing.
31596         * lib/regex_internal.h (__mempcpy): Remove.
31597         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
31598         (and make the code a tad smaller to boot).
31599         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
31600
31601 2007-02-02  Jim Meyering  <jim@meyering.net>
31602
31603         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
31604         section, not in the Makefile.am: one.
31605
31606 2007-02-02  Eric Blake  <ebb9@byu.net>
31607
31608         * lib/strchrnul.c: Always include config.h first.
31609
31610         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
31611         gnulib strstr is not necessary here.
31612
31613 2007-02-02  Simon Josefsson  <simon@josefsson.org>
31614
31615         * m4/socklen.m4: Fix typo.
31616
31617 2007-02-02  Eric Blake  <ebb9@byu.net>
31618
31619         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
31620         * modules/netinet_in (Makefile.am): Likewise.
31621
31622 2007-02-01  Bruno Haible  <bruno@clisp.org>
31623
31624         * lib/string_.h (GL_LINK_WARNING): New macro.
31625         (strcasecmp, strstr, strcasestr): If provided by the system,
31626         conditionally define as a macro that leads to a warning instead of to
31627         an error.
31628         (strncasecmp): Conditionally define as a macro that leads to a warning.
31629
31630 2007-02-01  Karl Berry  <karl@gnu.org>
31631
31632         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
31633
31634 2007-02-01  Bruno Haible  <bruno@clisp.org>
31635
31636         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
31637         renamings.
31638
31639 2007-02-01  Eric Blake  <ebb9@byu.net>
31640
31641         * modules/regex (Depends-on): Revert dependence on mempcpy.
31642         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
31643         module's definition of mempcpy.
31644         Reported by Paul Eggert.
31645
31646 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31647
31648         * lib/string_.h: If the gnulib module XYZ is not present, undefine
31649         the symbol XYZ before redefining it.  This fixes a problem with
31650         programs that don't use XYZ, when compiled on systems that define
31651         XYZ to something else.
31652
31653 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31654
31655         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
31656         occurs when "mkdir -m foo" creates a setgid directory that is (1)
31657         writeable to group or other and (2) is intended to have a special
31658         mode bit that is set or cleared.  In such a case, the directory
31659         should be neither group- nor other-writeable until the special
31660         mode bits are right.
31661
31662 2007-01-31  Eric Blake  <ebb9@byu.net>
31663
31664         * modules/mountlist (Depends-on): Add strstr.
31665
31666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
31667         bug.
31668         * modules/string (Makefile.am): Remove redundant replacement.
31669         * modules/regex (Depends-on): Add mempcpy.
31670
31671 2007-01-31  Bruno Haible  <bruno@clisp.org>
31672
31673         New module description field 'Link'.
31674         * gnulib-tool (func_usage): Document --extract-link-directive.
31675         (sed_extract_prog): Recognize 'Link' directive.
31676         (func_get_link_directive): New function.
31677         (func_import): Show summary of link directives.
31678         Handle --extract-link-directive option.
31679         * modules/acl (Link): New section.
31680         * modules/clock-time (Link): New section.
31681         * modules/euidaccess (Link): New section.
31682         * modules/gettext (Link): New section.
31683         * modules/iconv (Link): New section.
31684         * modules/lock (Link): New section.
31685         * modules/nanosleep (Link): New section.
31686         * modules/readline (Link): New section.
31687
31688 2007-01-27  Bruno Haible  <bruno@clisp.org>
31689
31690         Enforce the use of gnulib modules for unportable <string.h> functions.
31691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
31692         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
31693         (gl_HEADER_STRING_H_BODY): Require it.
31694         * lib/string_.h: If the gnulib module XYZ is not present, redefine
31695         the symbol XYZ to one that gives a link error.
31696         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
31697         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
31698         * modules/mempcpy (configure.ac): Likewise.
31699         * modules/memrchr (configure.ac): Likewise.
31700         * modules/stpcpy (configure.ac): Likewise.
31701         * modules/stpncpy (configure.ac): Likewise.
31702         * modules/strcase (configure.ac): Likewise.
31703         * modules/strcasestr (configure.ac): Likewise.
31704         * modules/strchrnul (configure.ac): Likewise.
31705         * modules/strdup (configure.ac): Likewise.
31706         * modules/strndup (configure.ac): Likewise.
31707         * modules/strnlen (configure.ac): Likewise.
31708         * modules/strpbrk (configure.ac): Likewise.
31709         * modules/strsep (configure.ac): Likewise.
31710         * modules/strstr (configure.ac): Likewise.
31711         * modules/strtok_r (configure.ac): Likewise.
31712
31713 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
31714
31715         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
31716
31717 2007-01-30  Jim Meyering  <jim@meyering.net>
31718
31719         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
31720
31721 2007-01-29  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
31724         * lib/execute.c: Likewise.
31725         * lib/pipe.c: Likewise.
31726         * lib/printf-args.h: Likewise.
31727         * lib/printf-args.c: Likewise.
31728         * lib/printf-parse.c: Likewise.
31729         * lib/vasnprintf.c: Likewise.
31730
31731 2007-01-29  Eric Blake  <ebb9@byu.net>
31732
31733         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
31734         declaration.
31735
31736 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31737
31738         * lib/strptime.h (strptime): Use 'restrict' for args where
31739         POSIX requires this.
31740         * lib/strptime.c (strptime): Likewise.
31741         Change license notice from LGPL to GPL, since gnulib-tool will
31742         change this as needed.
31743         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
31744         defined.
31745         Include "strptime.h" first, to check interface.
31746         Do not #undef _LIBC and _NL_CURRENT.
31747         Do not include <stdlib.h>; no longer needed.
31748         Include "time_r.h" and declare ptime_locale_status
31749         only if _LIBC is not defined.
31750         (__P): Remove unused macro.
31751         (match_string): Bring back glibc version, but use it only if _LIBC
31752         is defined.
31753         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
31754         Remove unnecessary assertion and abort() call.
31755         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
31756         * m4/strptime.m4: Fix serial number comment.
31757         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
31758         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
31759         (Depends-on): Add time_r.
31760
31761 2007-01-29  Bruno Haible  <bruno@clisp.org>
31762
31763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31764         strptime.
31765         * modules/strptime (Depends-on): Add stdbool.
31766         * lib/strptime.h: Include <time.h> always. Add comments.
31767
31768 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31769
31770         * modules/strptime: New file.
31771         * lib/strptime.h: New file.
31772         * lib/strptime.c: New file.
31773         * m4/strptime.m4: New file.
31774
31775 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31776
31777         * MODULES.html.sh: New module mpsort.
31778         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
31779
31780         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
31781         a circularity problem with HP-UX ia64 reported by Bob Proulx in
31782         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
31783         All uses changed.
31784         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
31785         All uses changed.
31786         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
31787         to _Restrict_.
31788         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
31789         the parameter matches the prototype.
31790
31791 2007-01-28  Jim Meyering  <jim@meyering.net>
31792
31793         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
31794         sys/time.h here, reverting that part of the previous patch:
31795         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
31796
31797 2007-01-28  Bruno Haible  <bruno@clisp.org>
31798
31799         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
31800         value of $(SYS_TIME_H).
31801         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
31802         remove it conditionally, too. [added by Jim Meyering]
31803         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
31804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
31805         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
31806         GETTIMEOFDAY_REPLACEMENT to 1.
31807
31808 2007-01-28  Bruno Haible  <bruno@clisp.org>
31809
31810         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
31811         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
31812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
31813         Set UNISTD_H instead of UNISTD_H2.
31814         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
31815
31816 2007-01-28  Bruno Haible  <bruno@clisp.org>
31817
31818         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
31819         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
31820
31821 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31822
31823         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
31824         (func_create_testdir): Ensure C locale for `grep' and `tr'
31825         character ranges.
31826         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
31827         ACLOCAL_AMFLAGS parsing state machine.
31828
31829 2007-01-27  Bruno Haible  <bruno@clisp.org>
31830
31831         * modules/unistr/base: Update.
31832
31833 2007-01-27  Bruno Haible  <bruno@clisp.org>
31834
31835         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
31836         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
31837         * modules/unistr/u32-mbtouc-unsafe: Renamed from
31838         modules/unistr/u32-mbtouc.
31839         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
31840         * lib/unistr.h: Update.
31841         * lib/linebreak.c: Update.
31842         * modules/unistr/u32-mbtouc: Renamed from
31843         modules/unistr/u32-mbtouc-safe.
31844         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
31845         * lib/unistr.h: Update.
31846         * lib/unistr/u32-to-u8.c: Update.
31847         * lib/unistr/u32-to-u16.c: Update.
31848
31849 2007-01-27  Bruno Haible  <bruno@clisp.org>
31850
31851         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
31852         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
31853         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
31854         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
31855         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
31856         * modules/unistr/u16-mbtouc-unsafe: Renamed from
31857         modules/unistr/u16-mbtouc.
31858         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
31859         * lib/unistr.h: Update.
31860         * lib/linebreak.c: Update.
31861         * modules/linebreak: Update.
31862         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
31863         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
31864         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
31865         * modules/unistr/u16-mbtouc: Renamed from
31866         modules/unistr/u16-mbtouc-safe.
31867         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
31868         * lib/unistr.h: Update.
31869         * lib/unistr/u16-to-u8.c: Update.
31870         * modules/unistr/u16-to-u8: Update.
31871         * lib/unistr/u16-to-u32.c: Update.
31872         * modules/unistr/u16-to-u32: Update.
31873
31874 2007-01-27  Bruno Haible  <bruno@clisp.org>
31875
31876         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
31877         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
31878         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
31879         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
31880         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
31881         * modules/unistr/u8-mbtouc-unsafe: Renamed from
31882         modules/unistr/u8-mbtouc.
31883         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
31884         * lib/unistr.h: Update.
31885         * lib/striconveh.c: Update.
31886         * modules/striconveh: Update.
31887         * lib/linebreak.c: Update.
31888         * modules/linebreak: Update.
31889         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
31890         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
31891         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
31892         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
31893         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
31894         * lib/unistr.h: Update.
31895         * lib/striconveh.c: Update.
31896         * modules/striconveh: Update.
31897         * lib/unistr/u8-to-u16.c: Update.
31898         * modules/unistr/u8-to-u16: Update.
31899         * lib/unistr/u8-to-u32.c: Update.
31900         * modules/unistr/u8-to-u32: Update.
31901
31902 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31903
31904         Sync from Libtool.
31905         * lib/argz.c: Do not include strings.h nor memory.h, include
31906         string.h unconditionally.  Patch by Simon Josefsson.
31907
31908 2007-01-27  Bruno Haible  <bruno@clisp.org>
31909
31910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
31911         from gl_HEADER_STRING_H_BODY.
31912         (gl_HEADER_STRING_H_BODY): Require it.
31913         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
31914         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31915         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31916         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31918         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
31919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31920         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31921         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
31922         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31923         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31924         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
31925         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31926         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31927         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31928
31929 2007-01-27  Bruno Haible  <bruno@clisp.org>
31930
31931         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
31932         check_PROGRAMS into noinst_PROGRAMS.
31933         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
31934         check_PROGRAMS in this case.
31935         (func_import): Set for_test to false.
31936         (func_create_testdir): Set for_test to true.
31937
31938 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31939             Bruno Haible  <bruno@clisp.org>
31940
31941         * modules/strcasestr (Files): Remove lib/strcasestr.h.
31942         (Depends-on): Add string.
31943         (Includes): Use <string.h> instead of strcasestr.h.
31944         * modules/string (Makefile.am): Also substitute the value of
31945         REPLACE_STRCASESTR.
31946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
31947         assume strcasestr is declared in <string.h> not <strings.h>. Also
31948         set REPLACE_STRCASESTR.
31949         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
31950         REPLACE_STRCASESTR.
31951         * lib/strcasestr.h: Remove file.
31952         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
31953         * lib/string_.h (strcasestr): New declaration.
31954
31955 2007-01-27  Bruno Haible  <bruno@clisp.org>
31956
31957         * lib/string_.h: Use 'extern'.
31958
31959 2007-01-27  Jim Meyering  <jim@meyering.net>
31960
31961         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
31962         of set-but-not-used local, "q".
31963
31964         * lib/mempcpy.c: Include <config.h> before <string.h>.
31965         This fixes a compilation error on HP-UX, due to the system's
31966         "restrict"-using mempcpy prototype.
31967
31968 2007-01-26  Bruno Haible  <bruno@clisp.org>
31969
31970         Small optimization.
31971         * lib/javacomp.c: Include c-strstr.h.
31972          (is_envjavac_gcj): Use c_strstr instead of strstr.
31973         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
31974
31975 2007-01-26  Bruno Haible  <bruno@clisp.org>
31976
31977         * MODULES.html.sh (Unicode string functions): Add the new modules.
31978
31979         * modules/uniconv/u32-strconv-to-locale: New file.
31980         * lib/uniconv/u32-strconv-to-locale.c: New file.
31981
31982         * modules/uniconv/u16-strconv-to-locale: New file.
31983         * lib/uniconv/u16-strconv-to-locale.c: New file.
31984
31985         * modules/uniconv/u8-strconv-to-locale: New file.
31986         * lib/uniconv/u8-strconv-to-locale.c: New file.
31987
31988         * modules/uniconv/u32-strconv-from-locale: New file.
31989         * lib/uniconv/u32-strconv-from-locale.c: New file.
31990
31991         * modules/uniconv/u16-strconv-from-locale: New file.
31992         * lib/uniconv/u16-strconv-from-locale.c: New file.
31993
31994         * modules/uniconv/u8-strconv-from-locale: New file.
31995         * lib/uniconv/u8-strconv-from-locale.c: New file.
31996
31997         * modules/uniconv/u32-strconv-to-enc: New file.
31998         * lib/uniconv/u32-strconv-to-enc.c: New file.
31999         * modules/uniconv/u32-strconv-to-enc-tests: New file.
32000         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
32001
32002         * modules/uniconv/u16-strconv-to-enc: New file.
32003         * lib/uniconv/u16-strconv-to-enc.c: New file.
32004         * lib/uniconv/u-strconv-to-enc.h: New file.
32005         * modules/uniconv/u16-strconv-to-enc-tests: New file.
32006         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
32007
32008         * modules/uniconv/u8-strconv-to-enc: New file.
32009         * lib/uniconv/u8-strconv-to-enc.c: New file.
32010         * modules/uniconv/u8-strconv-to-enc-tests: New file.
32011         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
32012
32013         * modules/uniconv/u32-strconv-from-enc: New file.
32014         * lib/uniconv/u32-strconv-from-enc.c: New file.
32015         * modules/uniconv/u32-strconv-from-enc-tests: New file.
32016         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
32017
32018         * modules/uniconv/u16-strconv-from-enc: New file.
32019         * lib/uniconv/u16-strconv-from-enc.c: New file.
32020         * modules/uniconv/u16-strconv-from-enc-tests: New file.
32021         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
32022
32023         * modules/uniconv/u8-strconv-from-enc: New file.
32024         * lib/uniconv/u8-strconv-from-enc.c: New file.
32025         * lib/uniconv/u-strconv-from-enc.h: New file.
32026         * modules/uniconv/u8-strconv-from-enc-tests: New file.
32027         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
32028
32029         * modules/uniconv/u32-conv-from-enc: New file.
32030         * lib/uniconv/u32-conv-from-enc.c: New file.
32031         * modules/uniconv/u32-conv-from-enc-tests: New file.
32032         * tests/uniconv/test-u32-conv-from-enc.c: New file.
32033
32034         * modules/uniconv/u16-conv-from-enc: New file.
32035         * lib/uniconv/u16-conv-from-enc.c: New file.
32036         * lib/uniconv/u-conv-from-enc.h: New file.
32037         * modules/uniconv/u16-conv-from-enc-tests: New file.
32038         * tests/uniconv/test-u16-conv-from-enc.c: New file.
32039
32040         * modules/uniconv/u8-conv-from-enc: New file.
32041         * lib/uniconv/u8-conv-from-enc.c: New file.
32042         * modules/uniconv/u8-conv-from-enc-tests: New file.
32043         * tests/uniconv/test-u8-conv-from-enc.c: New file.
32044
32045         * modules/uniconv/base: New file.
32046         * lib/uniconv.h: New file.
32047
32048 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         * doc/gnulib-tool.texi (Initial import): Update to match current
32051         behavior with strdup module.
32052         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
32053         * lib/memmem.h: Remove; all uses removed.  This is now done
32054         by <string.h>.
32055         * lib/mempcpy.h: Likewise.
32056         * lib/memrchr.h: Likewise.
32057         * lib/stpcpy.h: Likewise.
32058         * lib/stpncpy.h: Likewise.
32059         * lib/strcase.h: Likewise.
32060         * lib/strchrnul.h: Likewise.
32061         * lib/strdup.h: Likewise.
32062         * lib/strndup.h: Likewise.
32063         * lib/strnlen.h: Likewise.
32064         * lib/strpbrk.h: Likewise.
32065         * lib/strsep.h: Likewise.
32066         * lib/strstr.h: Likewise.
32067         * lib/strtok_r.h: Likewise.
32068         * lib/string_.h: New file.
32069         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
32070         Rely on <string.h> instead.
32071         * lib/canon-host.c: Likewise.
32072         * lib/chdir-long.c: Likewise.
32073         * lib/concatpath.c: Likewise.
32074         * lib/exclude.c: Likewise.
32075         * lib/fchdir.c: Likewise.
32076         * lib/getaddrinfo.c: Likewise.
32077         * lib/getcwd.c: Likewise.
32078         * lib/getsubopt.c: Likewise.
32079         * lib/glob.c: Likewise.
32080         * lib/hard-locale.c: Likewise.
32081         * lib/iconvme.c: Likewise.
32082         * lib/javacomp.c: Likewise.
32083         * lib/mempcpy.c: Likewise.
32084         * lib/memrchr.c: Likewise.
32085         * lib/regex_internal.h: Likewise.
32086         * lib/stpncpy.c: Likewise.
32087         * lib/strcasecmp.c: Likewise.
32088         * lib/strchrnul.c: Likewise.
32089         * lib/strdup.c: Likewise.
32090         * lib/striconv.c: Likewise.
32091         * lib/striconveh.c: Likewise.
32092         * lib/striconveha.c: Likewise.
32093         * lib/strncasecmp.c: Likewise.
32094         * lib/strndup.c: Likewise.
32095         * lib/strnlen.c: Likewise.
32096         * lib/strsep.c: Likewise.
32097         * lib/strstr.c: Likewise.
32098         * lib/strtok_r.c: Likewise.
32099         * lib/userspec.c: Likewise.
32100         * lib/w32spawn.h: Likewise.
32101         * lib/xstrndup.c: Likewise.
32102         * lib/mountlist.c (strstr): Remove decl.
32103         * m4/string_h.m4: New file.
32104         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
32105         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
32106         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
32107         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
32108         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
32109         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
32110         Set REPLACE_STRCASECMP if necessary.
32111         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
32112         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
32113         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
32114         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
32115         HAVE_DECL_STRDUP if necessary.
32116         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
32117         since gl_FUNC_STRNDUP does that now.
32118         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
32119         Check for decl here...
32120         (gl_PREREQ_STRNLEN): ... not here.
32121         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
32122         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
32123         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
32124         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
32125         necessary.
32126         * modules/string: New file.
32127         * modules/memmem (Files): Remove special-purpose include file.
32128         (Depends-on): Add string.
32129         (Include): Include <string.h>, not the removed file.
32130         * modules/mempcpy: Likewise.
32131         * modules/memrchr: Likewise.
32132         * modules/stpcpy: Likewise.
32133         * modules/stpncpy: Likewise.
32134         * modules/strcase: Likewise.
32135         * modules/strchrnul: Likewise.
32136         * modules/strdup: Likewise.
32137         * modules/strndup: Likewise.
32138         * modules/strnlen: Likewise.
32139         * modules/strpbrk: Likewise.
32140         * modules/strsep: Likewise.
32141         * modules/strstr: Likewise.
32142         * modules/strtok_r: Likewise.
32143         * tests/test-dirname.c: Don't include "strdup.h", since
32144         <string.h> now suffices.
32145         * tests/test-memmem.c: Don't include "memmem.h", since
32146         <string.h> now suffices.
32147
32148 2007-01-25  Bruno Haible  <bruno@clisp.org>
32149
32150         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
32151         *resultp is 0.
32152
32153         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
32154         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
32155         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
32156         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
32157
32158         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
32159         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
32160         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
32161         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
32162         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
32163         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
32164
32165 2007-01-24  Bruno Haible  <bruno@clisp.org>
32166
32167         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
32168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
32169         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
32170         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
32171         gl_FUNC_FTS_CORE.
32172         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
32173         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
32174         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32175         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
32176         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
32177         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
32178         gl_FUNC_FCHOWNAT.
32179         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
32180         gl_FUNC_STRFTIME.
32181         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
32182         Reported by Ralf Wildenhues.
32183
32184 2007-01-24  Bruno Haible  <bruno@clisp.org>
32185
32186         Drop AC_REQUIRE calls that are redundant with the module dependencies.
32187         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
32188         gl_GETADDRINFO.
32189         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
32190         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
32191         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
32192
32193 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
32194
32195         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
32196         Don't use 'exit'; just return from 'main'.
32197         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
32198
32199         * lib/fnmatch_.h: Readjust white space and comments to match
32200         glibc, to avoid spurious diffs.
32201
32202 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32203
32204         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
32205         2004-12-01 change by Jakub Jelinek, since this code won't compile
32206         if !LIBC.  Problem reported by Bob Proulx.
32207
32208 2007-01-23  Bruno Haible  <bruno@clisp.org>
32209
32210         * lib/striconveh.c: Include c-strcaseeq.h.
32211         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
32212         * modules/striconveh (Depends-on): Add c-strcaseeq.
32213
32214 2007-01-23  Bruno Haible  <bruno@clisp.org>
32215
32216         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
32217
32218         * modules/c-strcaseeq: New file.
32219         * lib/c-strcaseeq.h: New file.
32220
32221         * modules/streq: New file.
32222         * lib/streq.h: New file.
32223
32224 2007-01-23  Bruno Haible  <bruno@clisp.org>
32225
32226         * modules/striconveha-tests: New file.
32227         * tests/test-striconveha.c: New file.
32228
32229         * lib/striconveha.h: Include <stdbool.h>.
32230         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
32231         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
32232         (mem_iconveha_notranslit): Renamed from mem_iconveha.
32233         (mem_iconveha): New function.
32234         (str_iconveha_notranslit): Renamed from str_iconveha.
32235         (str_iconveha): New function.
32236         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
32237         c-strcase.
32238
32239 2007-01-23  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
32242         encodings without forgiving before trying any encoding with handler.
32243         (str_iconveha): Try all encodings without forgiving before trying any
32244         encoding with handler.
32245
32246 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32247
32248         Import the following changes from libc.
32249
32250         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32251
32252         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
32253
32254         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32255
32256         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
32257         normal_bracket label.
32258
32259         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
32260
32261         [BZ #361]
32262         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
32263         to normal_bracket after fetching the next character.
32264
32265 2007-01-22  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
32268         argument.
32269         * lib/striconveh.c (iconv_carefully_1): New function.
32270         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
32271         argument.
32272         (str_cd_iconveh): Update.
32273         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
32274         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
32275         * tests/test-striconveh.c (MAGIC): New macro.
32276         (new_offsets): New function.
32277         (main): Test call with and without offsets.
32278
32279 2007-01-22  Bruno Haible  <bruno@clisp.org>
32280
32281         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
32282         * modules/sys_select (Makefile.am): Likewise.
32283         * modules/sys_socket (Makefile.am): Likewise.
32284         * modules/sys_time (Makefile.am): Likewise.
32285
32286 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32287
32288         * modules/gettimeofday (License): Change from GPL to LGPL, since
32289         gettimeofday is a library function.
32290
32291 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32292
32293         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
32294
32295 2007-01-21  Bruno Haible  <bruno@clisp.org>
32296
32297         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
32298
32299 2007-01-21  Bruno Haible  <bruno@clisp.org>
32300
32301         * modules/striconveha: New file.
32302         * lib/striconveha.h: New file.
32303         * lib/striconveha.c: New file.
32304         * MODULES.html.sh (Internationalization functions): Add striconveha.
32305         * lib/striconv.c (str_iconv): Optimize the case of an empty input
32306         string.
32307         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
32308
32309 2007-01-21  Bruno Haible  <bruno@clisp.org>
32310
32311         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
32312         * lib/striconveh.c (str_iconveh): Likewise.
32313
32314 2007-01-21  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/striconveh.h (mem_iconveh): New declaration.
32317         * lib/striconveh.c (mem_iconveh): New function.
32318         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
32319
32320 2007-01-21  Bruno Haible  <bruno@clisp.org>
32321
32322         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
32323
32324         * lib/striconveh.h (mem_cd_iconveh): Change specification.
32325         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
32326         original result buffer.
32327         (str_cd_iconveh): Update.
32328         * tests/test-striconveh.c (main): Update.
32329
32330         * lib/striconv.h (mem_cd_iconv): Change specification.
32331         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
32332         result buffer.
32333         (str_cd_iconv): Update.
32334         * tests/test-striconv.c (main): Update.
32335
32336 2007-01-21  Bruno Haible  <bruno@clisp.org>
32337
32338         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
32339
32340 2007-01-20  Jim Meyering  <jim@meyering.net>
32341
32342         * lib/userspec.c (parse_with_separator): If a user or group string
32343         starts with "+", skip the corresponding name-to-ID look-up, since
32344         such a look-up must fail: user and group names may not include "+".
32345
32346 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
32347
32348         * lib/poll.c: Include sys/time.h and time.h unconditionally,
32349         since we now assume the sys_time module.
32350         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
32351         check for sys/time.h; no longer needed.
32352         * modules/poll (Depends-on): Depend on sys_time.
32353
32354 2007-01-18  Bruno Haible  <bruno@clisp.org>
32355
32356         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
32357         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
32358
32359         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
32360         gettimeofday.
32361
32362         * tests/test-gettimeofday.c: Include <time.h>.
32363         (dummy): Remove variable.
32364
32365         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
32366         gl_HEADER_SYS_TIME_H.
32367         (gl_HEADER_SYS_TIME_H): New macro.
32368
32369         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
32370         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
32372         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
32373         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
32375         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
32376         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32377         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
32378         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
32379         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32380
32381         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
32382         last change; it caused a compilation error when cross-compiling to
32383         Cygwin.
32384
32385 2007-01-18  Jim Meyering  <jim@meyering.net>
32386
32387         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
32388         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
32389         than the race-prone "test -d sys || mkdir sys".
32390         (configure.ac): Use AC_PROG_MKDIR_P.
32391         * modules/sys_select: Likewise.
32392         * modules/sys_socket: Likewise.
32393         * modules/sys_time: Likewise.
32394
32395 2007-01-18  Eric Blake  <ebb9@byu.net>
32396
32397         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
32398         replace gettimeofday.
32399         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
32400         name, to avoid infinite recursion.
32401
32402 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
32403
32404         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
32405         module sys_time.
32406         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
32407         assume timespec.h defines struct timeval.
32408         * lib/settime.c: Likewise.
32409         * lib/utimens.c: Likewise.
32410         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
32411         since we now assume the gettimeofday module.
32412         * lib/tempname.c (__gen_tempname): Likewise.
32413         * lib/gettimeofday.h: Remove.
32414         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
32415         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
32416         Include <time.h>, for 'time()'.
32417         (localtime_buffer_addr): Also use this workaround if
32418         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
32419         to simplify the uses.  All uses changed.
32420         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
32421         that #undef is inside {}, and 'const' follows type name consistently.
32422         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
32423         (gettimeofday): Do not use the maximum possible value for
32424         tv->tv_usec, since that might break usages other than ls.c.
32425         Instead, we'll leave ls.c alone.  This undoes today's patch
32426         by Bruno.  Add a compile-time warning for 1s-clock resolution;
32427         we've never observed the problem but might as well keep the
32428         canary.
32429         * lib/nanosleep.c: Include timespec.h first, for interface check.
32430         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
32431         now assume the sys_time module.
32432         * lib/tempname.c: Likewise.
32433         * lib/timespec.h: Likewise.
32434         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
32435         needed.
32436         * lib/strftime.c: Likewise.
32437         * lib/timespec.h: Likewise.
32438         * lib/posixtm.c: Include posixtm.h first, for interface check.
32439         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
32440         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
32441         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
32442         * lib/sys_time_.h: New file.
32443         * lib/timespec.h (struct timespec): Use long int, not long.
32444         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
32445         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
32446         Remove obsolescent call to AC_HEADER_TIME.
32447         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
32448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
32450         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
32451         Likewise.
32452         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
32453         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
32454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
32455         into the sys_time module.  Check for gettimeofday just once.
32456         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
32457         for gettimeofday signature to just check the signature.  Merely
32458         compile it, since linking doesn't test signature.  Improve test for
32459         whether gettimeofday.o is actually needed.
32460         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
32461         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
32462         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
32463         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32464         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
32465         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
32466         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
32467         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
32468         than worrying about sys/time.h.
32469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32470         Don't bother worrying about TIME_WITH_SYS_TIME.
32471         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32472         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
32473         * m4/sys_time_h.m4: New file.
32474         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
32475         Don't include sys/time.h.  Return from main rather than exiting.
32476         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
32477         all uses changed.
32478         * modules/gethrxtime (Depends-on): Add sys_time.
32479         * modules/gettime (Depends-on): Likewise.
32480         * modules/gettimeofday (Depends-on): Likewise.
32481         * modules/nanosleep (Depends-on): Likewise.
32482         * modules/settime (Depends-on): Likewise.
32483         * modules/tempname (Depends-on): Likewise.
32484         * modules/utimens (Depends-on): Likewise.
32485         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
32486         (Include:) Change back to <sys/time.h>.
32487         (Maintainer:) Add self.
32488         * modules/sys_time: New file.
32489         * modules/tempname (Depends-on): Add gettimeofday.
32490         * tests/test-gettimeofday.c: Include <sys/time.h>
32491         rather than gettimeofday.h.
32492
32493 2007-01-17  Bruno Haible  <bruno@clisp.org>
32494
32495         * gnulib-tool (func_get_license): Revert last patch. Instead, let
32496         the license default to GPL.
32497         (func_create_testdir): Don't complain if a module is LGPL and its
32498         tests module depends on GPLed modules.
32499
32500 2007-01-17  Bruno Haible  <bruno@clisp.org>
32501
32502         * lib/gettimeofday.c (gettimeofday): Add code for the case
32503         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
32504         maximum possible value for tv->tv_usec, rather than the minimum one.
32505
32506 2005-10-08  Martin Lambers  <marlam@marlam.de>
32507 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
32508 2007-01-16  Bruno Haible  <bruno@clisp.org>
32509
32510         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
32511         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
32512         gl_FUNC_GETTIMEOFDAY.
32513         (Include): Add gettimeofday.h.
32514         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
32515         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
32516         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
32517         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
32518         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
32519         * lib/gettimeofday.h: New file.
32520         * lib/gettimeofday.c: Include <sys/timeb.h>.
32521         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
32522         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
32523         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
32524         fall back on time().
32525
32526         * tests/test-gettimeofday.c: New file.
32527         * modules/gettimeofday-tests: New file.
32528
32529 2007-01-16  Eric Blake  <ebb9@byu.net>
32530
32531         * modules/fnmatch (Depends-on): Depend on wchar.
32532         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
32533         * m4/fnmatch.m4: Likewise.
32534         * modules/mbchar (Makefile.am): Assume <wchar.h>.
32535         * m4/mbchar.m4: Likewise.
32536         * modules/mbswidth (Depends-on): Depend on wchar.
32537         * lib/mbswidth.c: Assume <wchar.h>.
32538         * m4/mbswidth.m4: Likewise.
32539         * modules/quotearg (Depends-on): Depend on wchar.
32540         * lib/quotearg.c: Assume <wchar.h>.
32541         * m4/quotearg.m4: Likewise.
32542         * modules/regex (Depends-on): Depend on wchar.
32543         * lib/regex_internal.h: Assume <wchar.h>.
32544         * m4/regex.m4: Likewise.
32545         * modules/stdint (Depends-on): Depend on wchar.
32546         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
32547         * m4/stdint.m4: Likewise.
32548         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
32549         * modules/strftime (Depends-on): Depend on wchar.
32550         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
32551         * modules/strtol (Depends-on): Depend on wchar.
32552         * lib/strtol.c: Assume <wchar.h>.
32553         * modules/wcwidth (Depends-on): Depend on wchar.
32554         * lib/wcwidth.h: Assume <wchar.h>.
32555         * m4/wcwidth.m4: Likewise.
32556
32557 2007-01-16  Bruno Haible  <bruno@clisp.org>
32558
32559         * modules/csharpexec-script: New, created from...
32560         * modules/csharpexec: ... this.
32561
32562 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32563
32564         * modules/javaexec-script: New, created from...
32565         * modules/javaexec: ... this.
32566
32567 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32568
32569         * modules/poll (Dependencies): Add sys_select.
32570
32571 2007-01-15  Jim Meyering  <jim@meyering.net>
32572
32573         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
32574         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
32575         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
32576         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
32577
32578 2007-01-15  Bruno Haible  <bruno@clisp.org>
32579
32580         * modules/striconveh: New file.
32581         * lib/striconveh.h: New file.
32582         * lib/striconveh.c: New file.
32583         * MODULES.html.sh (Internationalization functions): Add striconveh.
32584
32585         * modules/striconveh-tests: New file.
32586         * tests/test-striconveh.c: New file.
32587
32588 2007-01-15  Bruno Haible  <bruno@clisp.org>
32589
32590         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
32591         not from GNU libiconv or GNU libc.
32592
32593 2007-01-15  Bruno Haible  <bruno@clisp.org>
32594
32595         * doc/gnulib-intro.texi (Copyright): Explain the different license
32596         terms for module descriptions, autoconf macros, tests, documentation.
32597
32598 2007-01-14  Bruno Haible  <bruno@clisp.org>
32599
32600         * modules/striconv-tests: New file.
32601         * tests/test-striconv.c: New file.
32602
32603 2007-01-14  Bruno Haible  <bruno@clisp.org>
32604
32605         * modules/iconv-tests: New file.
32606         * tests/test-iconv.c: New file.
32607
32608 2007-01-14  Bruno Haible  <bruno@clisp.org>
32609
32610         * gnulib-tool (func_get_license): For test modules, use the license of
32611         the main module.
32612
32613 2007-01-14  Bruno Haible  <bruno@clisp.org>
32614
32615         * modules/iconv (Include): Clarify that <iconv.h> can only be included
32616         if iconv is found to exist.
32617
32618 2007-01-14  Bruno Haible  <bruno@clisp.org>
32619
32620         * modules/c-ctype-tests: New file.
32621         * tests/test-c-ctype.c: New file.
32622
32623 2007-01-14  Bruno Haible  <bruno@clisp.org>
32624
32625         * modules/binary-io-tests: New file.
32626         * tests/test-binary-io.sh: New file.
32627         * tests/test-binary-io.c: New file.
32628
32629 2007-01-14  Bruno Haible  <bruno@clisp.org>
32630
32631         * modules/array-oset-tests: New file.
32632         * tests/test-array_oset.c: New file.
32633
32634 2007-01-14  Bruno Haible  <bruno@clisp.org>
32635
32636         * modules/array-list-tests: New file.
32637         * tests/test-array_list.c: New file.
32638
32639 2007-01-14  Bruno Haible  <bruno@clisp.org>
32640
32641         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
32642         and make.
32643         Reported by Simon Josefsson in
32644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
32645
32646 2007-01-14  Bruno Haible  <bruno@clisp.org>
32647
32648         * modules/allocsa-tests: New file.
32649         * tests/test-allocsa.c: New file.
32650
32651 2007-01-14  Bruno Haible  <bruno@clisp.org>
32652
32653         * modules/fchdir (Depends-on): Add absolute-header.
32654         * modules/unistd (Depends-on): Likewise.
32655
32656 2006-12-30  Bruno Haible  <bruno@clisp.org>
32657
32658         * modules/fchdir: New file.
32659         * modules/unistd (Files): Add lib/unistd_.h.
32660         (Makefile.am): Generate unistd.h from unistd_.h.
32661         * lib/fchdir.c: New file.
32662         * lib/dirent_.h: New file.
32663         * lib/unistd_.h: New file.
32664         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
32665         * m4/fchdir.m4: New file.
32666         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
32667         (gl_HEADER_UNISTD): Invoke it.
32668         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
32669         function.
32670         * lib/backupfile.c (opendir, closedir): Undefine.
32671         * lib/chown.c (open, close): Undefine.
32672         * lib/clean-temp.c (open, close): Undefine.
32673         * lib/copy-file.c (open, close): Undefine.
32674         * lib/execute.c (open, close): Undefine.
32675         * lib/fsusage.c (open, close): Undefine.
32676         * lib/gc-gnulib.c (open, close): Undefine.
32677         * lib/getcwd.c (opendir, closedir): Undefine.
32678         * lib/glob.c (opendir, closedir): Undefine.
32679         * lib/javacomp.c (open, close): Undefine.
32680         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
32681         * lib/openat-proc.c (open, close): Undefine.
32682         * lib/pagealign_alloc.c (open, close): Undefine.
32683         * lib/pipe.c (open, close): Undefine.
32684         * lib/progreloc.c (open, close): Undefine.
32685         * lib/savedir.c (opendir, closedir): Undefine.
32686         * lib/utime.c (open, close): Undefine.
32687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
32688
32689 2007-01-10  Bruno Haible  <bruno@clisp.org>
32690
32691         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
32692
32693 2007-01-12  Eric Blake  <ebb9@byu.net>
32694
32695         Provide a robust <wchar.h>.  Further simplifications are now
32696         possible in other modules, but not included here.
32697         * modules/wchar: New module.
32698         * m4/wchar.m4: New file.
32699         * lib/wchar_.h: Likewise.
32700         * modules/mbchar (Depends-on): Depend on wchar, as the first use
32701         of the new module.
32702         * MODULES.html.sh (Extended multibyte and wide character utilities):
32703         New section.
32704
32705 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
32708         to a reasonable default for memory allocation.
32709         (xreadlink): Don't allocate a huge buffer, to work around a buggy
32710         file system that reports garbage st_size values for symlinks.
32711         Problem reported by Liyang Hu.
32712
32713 2007-01-11  Simon Josefsson  <simon@josefsson.org>
32714
32715         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
32716         Emacs .#* auto-save files).
32717
32718 2007-01-11  Bruno Haible  <bruno@clisp.org>
32719
32720         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
32721         directory.
32722
32723 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32724
32725         Use @...@ consistently in lib/wctype_.h.
32726         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
32727         on it being set to 1 or 0.
32728         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
32729         go back to AC_SUBSTing it.
32730         * modules/wctype (Makefile.am): Undo previous change.
32731
32732 2007-01-10  Eric Blake  <ebb9@byu.net>
32733
32734         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
32735         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
32736         * modules/wctype (Makefile.am): Likewise.
32737         Reported by Chris McGuire.
32738
32739 2007-01-10  Jim Meyering  <jim@meyering.net>
32740
32741         fts.c: a small readability/maintainability improvement
32742         * lib/fts.c (fts_read): Make this code slightly more readable and
32743         maintainable by hoisting the "sp->fts_cur = p" assignments to
32744         immediately follow the statements that set P.  Derived from
32745         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
32746
32747 2007-01-10  Eric Blake  <ebb9@byu.net>
32748
32749         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
32750         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
32751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32752         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32753         Reported by Chris McGuire.
32754
32755 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32756
32757         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
32758         in sed script.
32759
32760 2007-01-09  Bruno Haible  <bruno@clisp.org>
32761
32762         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
32763         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
32764         variables.
32765         (func_module): Use them.
32766
32767 2007-01-09  Bruno Haible  <bruno@clisp.org>
32768
32769         * modules/unistr/base: New file.
32770         * lib/unistr.h: New file.
32771
32772         * modules/unistr/u8-to-u16: New file.
32773         * lib/unistr/u8-to-u16.c: New file.
32774
32775         * modules/unistr/u8-to-u32: New file.
32776         * lib/unistr/u8-to-u32.c: New file.
32777
32778         * modules/unistr/u16-to-u8: New file.
32779         * lib/unistr/u16-to-u8.c: New file.
32780
32781         * modules/unistr/u16-to-u32: New file.
32782         * lib/unistr/u16-to-u32.c: New file.
32783
32784         * modules/unistr/u32-to-u8: New file.
32785         * lib/unistr/u32-to-u8.c: New file.
32786
32787         * modules/unistr/u32-to-u16: New file.
32788         * lib/unistr/u32-to-u16.c: New file.
32789
32790         * modules/unistr/u8-check: New file.
32791         * modules/unistr/u16-check: New file.
32792         * modules/unistr/u32-check: New file.
32793         * lib/unistr/u8-check.c: New file.
32794         * lib/unistr/u16-check.c: New file.
32795         * lib/unistr/u32-check.c: New file.
32796
32797         * modules/unistr/u8-chr: New file.
32798         * modules/unistr/u16-chr: New file.
32799         * modules/unistr/u32-chr: New file.
32800         * lib/unistr/u8-chr.c: New file.
32801         * lib/unistr/u16-chr.c: New file.
32802         * lib/unistr/u32-chr.c: New file.
32803
32804         * modules/unistr/u8-cmp: New file.
32805         * modules/unistr/u16-cmp: New file.
32806         * modules/unistr/u32-cmp: New file.
32807         * lib/unistr/u8-cmp.c: New file.
32808         * lib/unistr/u16-cmp.c: New file.
32809         * lib/unistr/u32-cmp.c: New file.
32810
32811         * modules/unistr/u8-cpy: New file.
32812         * modules/unistr/u16-cpy: New file.
32813         * modules/unistr/u32-cpy: New file.
32814         * lib/unistr/u8-cpy.c: New file.
32815         * lib/unistr/u16-cpy.c: New file.
32816         * lib/unistr/u32-cpy.c: New file.
32817         * lib/unistr/u-cpy.h: New file.
32818
32819         * modules/unistr/u8-cpy-alloc: New file.
32820         * modules/unistr/u16-cpy-alloc: New file.
32821         * modules/unistr/u32-cpy-alloc: New file.
32822         * lib/unistr/u8-cpy-alloc.c: New file.
32823         * lib/unistr/u16-cpy-alloc.c: New file.
32824         * lib/unistr/u32-cpy-alloc.c: New file.
32825         * lib/unistr/u-cpy-alloc.h: New file.
32826
32827         * modules/unistr/u8-endswith: New file.
32828         * modules/unistr/u16-endswith: New file.
32829         * modules/unistr/u32-endswith: New file.
32830         * lib/unistr/u8-endswith.c: New file.
32831         * lib/unistr/u16-endswith.c: New file.
32832         * lib/unistr/u32-endswith.c: New file.
32833         * lib/unistr/u-endswith.h: New file.
32834
32835         * modules/unistr/u8-mblen: New file.
32836         * modules/unistr/u16-mblen: New file.
32837         * modules/unistr/u32-mblen: New file.
32838         * lib/unistr/u8-mblen.c: New file.
32839         * lib/unistr/u16-mblen.c: New file.
32840         * lib/unistr/u32-mblen.c: New file.
32841
32842         * modules/unistr/u8-mbtouc: New file.
32843         * modules/unistr/u16-mbtouc: New file.
32844         * modules/unistr/u32-mbtouc: New file.
32845         * lib/unistr/u8-mbtouc.c: New file.
32846         * lib/unistr/u16-mbtouc.c: New file.
32847         * lib/unistr/u32-mbtouc.c: New file.
32848
32849         * modules/unistr/u8-mbtouc-safe: New file.
32850         * modules/unistr/u16-mbtouc-safe: New file.
32851         * modules/unistr/u32-mbtouc-safe: New file.
32852         * lib/unistr/u8-mbtouc-safe.c: New file.
32853         * lib/unistr/u16-mbtouc-safe.c: New file.
32854         * lib/unistr/u32-mbtouc-safe.c: New file.
32855
32856         * modules/unistr/u8-move: New file.
32857         * modules/unistr/u16-move: New file.
32858         * modules/unistr/u32-move: New file.
32859         * lib/unistr/u8-move.c: New file.
32860         * lib/unistr/u16-move.c: New file.
32861         * lib/unistr/u32-move.c: New file.
32862         * lib/unistr/u-move.h: New file.
32863
32864         * modules/unistr/u8-next: New file.
32865         * modules/unistr/u16-next: New file.
32866         * modules/unistr/u32-next: New file.
32867         * lib/unistr/u8-next.c: New file.
32868         * lib/unistr/u16-next.c: New file.
32869         * lib/unistr/u32-next.c: New file.
32870
32871         * modules/unistr/u8-prev: New file.
32872         * modules/unistr/u16-prev: New file.
32873         * modules/unistr/u32-prev: New file.
32874         * lib/unistr/u8-prev.c: New file.
32875         * lib/unistr/u16-prev.c: New file.
32876         * lib/unistr/u32-prev.c: New file.
32877
32878         * modules/unistr/u8-set: New file.
32879         * modules/unistr/u16-set: New file.
32880         * modules/unistr/u32-set: New file.
32881         * lib/unistr/u8-set.c: New file.
32882         * lib/unistr/u16-set.c: New file.
32883         * lib/unistr/u32-set.c: New file.
32884         * lib/unistr/u-set.h: New file.
32885
32886         * modules/unistr/u8-startswith: New file.
32887         * modules/unistr/u16-startswith: New file.
32888         * modules/unistr/u32-startswith: New file.
32889         * lib/unistr/u8-startswith.c: New file.
32890         * lib/unistr/u16-startswith.c: New file.
32891         * lib/unistr/u32-startswith.c: New file.
32892         * lib/unistr/u-startswith.h: New file.
32893
32894         * modules/unistr/u8-stpcpy: New file.
32895         * modules/unistr/u16-stpcpy: New file.
32896         * modules/unistr/u32-stpcpy: New file.
32897         * lib/unistr/u8-stpcpy.c: New file.
32898         * lib/unistr/u16-stpcpy.c: New file.
32899         * lib/unistr/u32-stpcpy.c: New file.
32900         * lib/unistr/u-stpcpy.h: New file.
32901
32902         * modules/unistr/u8-stpncpy: New file.
32903         * modules/unistr/u16-stpncpy: New file.
32904         * modules/unistr/u32-stpncpy: New file.
32905         * lib/unistr/u8-stpncpy.c: New file.
32906         * lib/unistr/u16-stpncpy.c: New file.
32907         * lib/unistr/u32-stpncpy.c: New file.
32908         * lib/unistr/u-stpncpy.h: New file.
32909
32910         * modules/unistr/u8-strcat: New file.
32911         * modules/unistr/u16-strcat: New file.
32912         * modules/unistr/u32-strcat: New file.
32913         * lib/unistr/u8-strcat.c: New file.
32914         * lib/unistr/u16-strcat.c: New file.
32915         * lib/unistr/u32-strcat.c: New file.
32916         * lib/unistr/u-strcat.h: New file.
32917
32918         * modules/unistr/u8-strchr: New file.
32919         * modules/unistr/u16-strchr: New file.
32920         * modules/unistr/u32-strchr: New file.
32921         * lib/unistr/u8-strchr.c: New file.
32922         * lib/unistr/u16-strchr.c: New file.
32923         * lib/unistr/u32-strchr.c: New file.
32924
32925         * modules/unistr/u8-strcmp: New file.
32926         * modules/unistr/u16-strcmp: New file.
32927         * modules/unistr/u32-strcmp: New file.
32928         * lib/unistr/u8-strcmp.c: New file.
32929         * lib/unistr/u16-strcmp.c: New file.
32930         * lib/unistr/u32-strcmp.c: New file.
32931
32932         * modules/unistr/u8-strcpy: New file.
32933         * modules/unistr/u16-strcpy: New file.
32934         * modules/unistr/u32-strcpy: New file.
32935         * lib/unistr/u8-strcpy.c: New file.
32936         * lib/unistr/u16-strcpy.c: New file.
32937         * lib/unistr/u32-strcpy.c: New file.
32938         * lib/unistr/u-strcpy.h: New file.
32939
32940         * modules/unistr/u8-strcspn: New file.
32941         * modules/unistr/u16-strcspn: New file.
32942         * modules/unistr/u32-strcspn: New file.
32943         * lib/unistr/u8-strcspn.c: New file.
32944         * lib/unistr/u16-strcspn.c: New file.
32945         * lib/unistr/u32-strcspn.c: New file.
32946         * lib/unistr/u-strcspn.h: New file.
32947
32948         * modules/unistr/u8-strdup: New file.
32949         * modules/unistr/u16-strdup: New file.
32950         * modules/unistr/u32-strdup: New file.
32951         * lib/unistr/u8-strdup.c: New file.
32952         * lib/unistr/u16-strdup.c: New file.
32953         * lib/unistr/u32-strdup.c: New file.
32954         * lib/unistr/u-strdup.h: New file.
32955
32956         * modules/unistr/u8-strlen: New file.
32957         * modules/unistr/u16-strlen: New file.
32958         * modules/unistr/u32-strlen: New file.
32959         * lib/unistr/u8-strlen.c: New file.
32960         * lib/unistr/u16-strlen.c: New file.
32961         * lib/unistr/u32-strlen.c: New file.
32962         * lib/unistr/u-strlen.h: New file.
32963
32964         * modules/unistr/u8-strmblen: New file.
32965         * modules/unistr/u16-strmblen: New file.
32966         * modules/unistr/u32-strmblen: New file.
32967         * lib/unistr/u8-strmblen.c: New file.
32968         * lib/unistr/u16-strmblen.c: New file.
32969         * lib/unistr/u32-strmblen.c: New file.
32970
32971         * modules/unistr/u8-strmbtouc: New file.
32972         * modules/unistr/u16-strmbtouc: New file.
32973         * modules/unistr/u32-strmbtouc: New file.
32974         * lib/unistr/u8-strmbtouc.c: New file.
32975         * lib/unistr/u16-strmbtouc.c: New file.
32976         * lib/unistr/u32-strmbtouc.c: New file.
32977
32978         * modules/unistr/u8-strncat: New file.
32979         * modules/unistr/u16-strncat: New file.
32980         * modules/unistr/u32-strncat: New file.
32981         * lib/unistr/u8-strncat.c: New file.
32982         * lib/unistr/u16-strncat.c: New file.
32983         * lib/unistr/u32-strncat.c: New file.
32984         * lib/unistr/u-strncat.h: New file.
32985
32986         * modules/unistr/u8-strncmp: New file.
32987         * modules/unistr/u16-strncmp: New file.
32988         * modules/unistr/u32-strncmp: New file.
32989         * lib/unistr/u8-strncmp.c: New file.
32990         * lib/unistr/u16-strncmp.c: New file.
32991         * lib/unistr/u32-strncmp.c: New file.
32992
32993         * modules/unistr/u8-strncpy: New file.
32994         * modules/unistr/u16-strncpy: New file.
32995         * modules/unistr/u32-strncpy: New file.
32996         * lib/unistr/u8-strncpy.c: New file.
32997         * lib/unistr/u16-strncpy.c: New file.
32998         * lib/unistr/u32-strncpy.c: New file.
32999         * lib/unistr/u-strncpy.h: New file.
33000
33001         * modules/unistr/u8-strnlen: New file.
33002         * modules/unistr/u16-strnlen: New file.
33003         * modules/unistr/u32-strnlen: New file.
33004         * lib/unistr/u8-strnlen.c: New file.
33005         * lib/unistr/u16-strnlen.c: New file.
33006         * lib/unistr/u32-strnlen.c: New file.
33007         * lib/unistr/u-strnlen.h: New file.
33008
33009         * modules/unistr/u8-strpbrk: New file.
33010         * modules/unistr/u16-strpbrk: New file.
33011         * modules/unistr/u32-strpbrk: New file.
33012         * lib/unistr/u8-strpbrk.c: New file.
33013         * lib/unistr/u16-strpbrk.c: New file.
33014         * lib/unistr/u32-strpbrk.c: New file.
33015         * lib/unistr/u-strpbrk.h: New file.
33016
33017         * modules/unistr/u8-strrchr: New file.
33018         * modules/unistr/u16-strrchr: New file.
33019         * modules/unistr/u32-strrchr: New file.
33020         * lib/unistr/u8-strrchr.c: New file.
33021         * lib/unistr/u16-strrchr.c: New file.
33022         * lib/unistr/u32-strrchr.c: New file.
33023
33024         * modules/unistr/u8-strspn: New file.
33025         * modules/unistr/u16-strspn: New file.
33026         * modules/unistr/u32-strspn: New file.
33027         * lib/unistr/u8-strspn.c: New file.
33028         * lib/unistr/u16-strspn.c: New file.
33029         * lib/unistr/u32-strspn.c: New file.
33030         * lib/unistr/u-strspn.h: New file.
33031
33032         * modules/unistr/u8-strstr: New file.
33033         * modules/unistr/u16-strstr: New file.
33034         * modules/unistr/u32-strstr: New file.
33035         * lib/unistr/u8-strstr.c: New file.
33036         * lib/unistr/u16-strstr.c: New file.
33037         * lib/unistr/u32-strstr.c: New file.
33038         * lib/unistr/u-strstr.h: New file.
33039
33040         * modules/unistr/u8-strtok: New file.
33041         * modules/unistr/u16-strtok: New file.
33042         * modules/unistr/u32-strtok: New file.
33043         * lib/unistr/u8-strtok.c: New file.
33044         * lib/unistr/u16-strtok.c: New file.
33045         * lib/unistr/u32-strtok.c: New file.
33046         * lib/unistr/u-strtok.h: New file.
33047
33048         * modules/unistr/u8-uctomb: New file.
33049         * modules/unistr/u16-uctomb: New file.
33050         * modules/unistr/u32-uctomb: New file.
33051         * lib/unistr/u8-uctomb.c: New file.
33052         * lib/unistr/u16-uctomb.c: New file.
33053         * lib/unistr/u32-uctomb.c: New file.
33054
33055         * MODULES.html.sh (Unicode string functions): Add the new modules.
33056
33057 2007-01-08  Bruno Haible  <bruno@clisp.org>
33058
33059         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
33060         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
33061         subdirectories.
33062
33063 2007-01-08  Karl Berry  <karl@gnu.org>
33064
33065         * doc/error.texi: mention that main() fns must set program_name
33066         when progname is used.
33067
33068 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
33069
33070         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
33071         WCTYPE_H is empty, for the benefit of builds from non-distclean
33072         directories.  Problem reported by Eric Blake in
33073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
33074
33075 2007-01-08  Bruno Haible  <bruno@clisp.org>
33076
33077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
33078         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
33079         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
33080         PROVIDE_CANONICALIZE_FILENAME_MODE.
33081         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
33082
33083 2007-01-08  Bruno Haible  <bruno@clisp.org>
33084
33085         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
33086         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
33087         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
33088         * lib/fts.c: Likewise.
33089         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
33090
33091 2006-12-25  Bruno Haible  <bruno@clisp.org>
33092
33093         * modules/utf8-ucs4-safe: New file.
33094         * lib/utf8-ucs4-safe.h: New file.
33095         * lib/unistr/utf8-ucs4-safe.c: New file.
33096
33097         * modules/utf16-ucs4-safe: New file.
33098         * lib/utf16-ucs4-safe.h: New file.
33099         * lib/unistr/utf16-ucs4-safe.c: New file.
33100
33101         * MODULES.html.sh (Unicode string functions): Add the new modules.
33102
33103 2007-01-08  Bruno Haible  <bruno@clisp.org>
33104
33105         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
33106         (Depends-on): Add unitypes.
33107         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
33108         (u8_mbtouc_aux): Move out to separate file.
33109         (u8_mbtouc): Use ucs4_t, uint8_t types.
33110         * lib/unistr/utf8-ucs4.c: New file.
33111
33112         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
33113         (Depends-on): Add unitypes.
33114         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
33115         (u16_mbtouc_aux): Move out to separate file.
33116         (u16_mbtouc): Use ucs4_t, uint16_t types.
33117         * lib/unistr/utf16-ucs4.c: New file.
33118
33119         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
33120         (Depends-on): Add unitypes.
33121         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
33122         (u8_uctomb_aux): Move out to separate file.
33123         (u8_uctomb): Use ucs4_t, uint8_t types.
33124         * lib/unistr/ucs4-utf8.c: New file.
33125
33126         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
33127         (Depends-on): Add unitypes.
33128         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
33129         (u16_uctomb_aux): Move out to separate file.
33130         (u16_uctomb): Use ucs4_t, uint16_t types.
33131         * lib/unistr/ucs4-utf16.c: New file.
33132
33133 2006-12-25  Bruno Haible  <bruno@clisp.org>
33134
33135         * modules/unitypes: New file.
33136         * lib/unitypes.h: New file.
33137         * MODULES.html.sh (func_all_modules): New section "Unicode string
33138         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
33139         this section. Add unitypes.
33140
33141 2007-01-08  Bruno Haible  <bruno@clisp.org>
33142
33143         Avoid variable names that conflict with those from libtool.
33144         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
33145         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
33146         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
33147         library_names_spec to acl_library_names_spec, hardcode_* to
33148         acl_hardcode_*.
33149         Reported by Ralf Wildenhues.
33150
33151 2007-01-08  Bruno Haible  <bruno@clisp.org>
33152
33153         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
33154         definition.
33155         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
33156         definition.
33157         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
33158         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
33159         definition.
33160         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
33161         definition.
33162         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
33163         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
33164         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
33165         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
33166         definition.
33167         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
33168         definition.
33169         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
33170         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
33171         GC_USE_<algorithm>.
33172         * lib/gc-libgcrypt.c: Likewise.
33173         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
33174         * modules/gc-arctwo (configure.ac): Likewise.
33175         * modules/gc-des (configure.ac): Likewise.
33176         * modules/gc-hmac-md5 (configure.ac): Likewise.
33177         * modules/gc-hmac-sha1 (configure.ac): Likewise.
33178         * modules/gc-md2 (configure.ac): Likewise.
33179         * modules/gc-md4 (configure.ac): Likewise.
33180         * modules/gc-md5 (configure.ac): Likewise.
33181         * modules/gc-random (configure.ac): Likewise.
33182         * modules/gc-rijndael (configure.ac): Likewise.
33183         * modules/gc-sha1 (configure.ac): Likewise.
33184
33185 2007-01-08  Bruno Haible  <bruno@clisp.org>
33186
33187         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
33188         macro definition.
33189         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
33190         definition.
33191         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
33192         definition.
33193         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
33194         * modules/fcntl-safer (configure.ac): Likewise.
33195         * modules/fopen-safer (configure.ac): Likewise.
33196         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
33197         GNULIB_FWRITEERROR macro definition.
33198
33199 2007-01-08  Bruno Haible  <bruno@clisp.org>
33200
33201         * m4/gnulib-common.m4: New file.
33202         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
33203         (func_get_filelist): Add m4/gnulib-common.m4.
33204
33205 2007-01-08  Bruno Haible  <bruno@clisp.org>
33206
33207         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
33208         command.
33209
33210 2007-01-08  Jim Meyering  <jim@meyering.net>
33211
33212         Use a more robust test for a "can't happen" condition.
33213         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
33214         narrowed the st_size value.  Presuming the "can't happen" condition
33215         is true, that narrowing could conceivably convert an invalid st_size
33216         value into a valid one.  Instead, use a change based on Matthew
33217         Woehlke's original patch.
33218
33219         Slight readability improvement: use an assert-like macro
33220         in place of literal "abort ()" uses.
33221         * lib/fts.c (fts_assert): Define.
33222         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
33223         Use this macro instead of a bare 'abort'.
33224
33225 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         Don't worry about using IRIX 5.3's wctype.h broken definitions;
33228         simply work around them.
33229         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
33230         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
33231         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
33232         declaring.
33233         Don't bother to define as macros, since the standard doesn't require it.
33234         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
33235         longer worry about IRIX 5.3.
33236         (HAVE_WCTYPE_CTMP_BUG): Remove.
33237
33238 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33239
33240         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
33241         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
33242         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33243         Problems reported by Georg Schwarz for IRIX 5.3.
33244
33245         * gnulib-tool (autoconf_minversion): Take the maximum version number
33246         found, not the minimum.  Problem reported by James Youngman.
33247
33248 2007-01-03  Karl Berry  <karl@gnu.org>
33249
33250         * doc/error.texi: new file, explaining interaction with progname.
33251         * doc/gnulib.texi: include it.  Update copyright.
33252
33253 2007-01-03  Simon Josefsson  <simon@josefsson.org>
33254
33255         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
33256         AC_CANONICAL_HOST, to improve autobuild outputs.
33257
33258 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
33259             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33260
33261         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
33262         sockets, server sockets, and other file descriptors.  Count errors
33263         to compute the return value.  Reorder the code a bit to be easier
33264         to follow.  Don't set event bits that were not requested (except
33265         POLLERR and POLLHUP).
33266
33267 2007-01-01  Bruno Haible  <bruno@clisp.org>
33268
33269         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
33270
33271 2007-01-03  Jim Meyering  <jim@meyering.net>
33272
33273         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
33274
33275 2007-01-02  Bruno Haible  <bruno@clisp.org>
33276
33277         * modules/settime (Include): Require timespec.h.
33278         * modules/nanosleep (Include): Likewise.
33279
33280 2007-01-01  Bruno Haible  <bruno@clisp.org>
33281
33282         * gnulib-tool (func_emit_copyright_notice): Bump year.
33283         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
33284
33285 2007-01-01  Bruno Haible  <bruno@clisp.org>
33286
33287         Improve support for OpenBSD.
33288         * build-aux/config.rpath (libname_spec): Export.
33289         (library_names_spec): New variable. Export.
33290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
33291         library_names_spec from the config.rpath output. Locate shared library
33292         through the name pattern in library_names_spec.
33293
33294 2007-01-01  Eric Blake  <ebb9@byu.net>
33295
33296         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
33297
33298 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
33299
33300         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
33301         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
33302         assume the C locale, and avoid an "eval" that could cause trouble.
33303         Problem with SORT reported by Bob Proulx.
33304
33305         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
33306         Define.  Trivial patch from Henning Nielsen Lund, originally
33307         sent to bug-grep@gnu.org today.
33308
33309 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33310
33311         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
33312         struct stat.  Problem reported by Henning Nielsen Lund.
33313         * lib/acl.c: Include acl.h first, to check interface.  Don't
33314         bother to include sys/types.h and sys/stat.h again.
33315
33316 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
33317
33318         Import the following change from libc; problem reported by
33319         Sven Verdoolaege.
33320
33321         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
33322
33323         [BZ #1373]
33324         * lib/argp.h: Remove __NTH for __argp_usage inline function.
33325
33326 2006-12-28  Jim Meyering  <jim@meyering.net>
33327
33328         * build-aux/announce-gen: Do not assume that the package
33329         builds any of tar.gz, tar.bz2, and .xdelta files.
33330         Suggestion from Simon Josefsson.
33331
33332 2006-12-28  Simon Josefsson  <simon@josefsson.org>
33333
33334         * modules/announce-gen: New file.
33335
33336 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
33337
33338         * lib/mbchar.h: Just include <wctype.h>; the wctype module
33339         handles its gotchas now.
33340         * lib/mbswidth.c: Likewise.
33341         * lib/wcwidth.h: Likewise.
33342         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
33343         and iswcntrl; the wctype module does this stuff now.
33344         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33346         * modules/mbchar (Depends-on): Add wctype.
33347         * modules/mbswidth (Depends-on): Likewise.
33348         * modules/wcwidth (Depends-on): Likewise.
33349
33350 2006-12-27  Eric Blake  <ebb9@byu.net>
33351
33352         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
33353         module uses more than what <wctype.h> is required to provide.
33354
33355 2006-12-26  Eric Blake  <ebb9@byu.net>
33356
33357         * gnulib-tool (sed_extract_prog): Avoid space-tab.
33358
33359 2006-12-26  Eric Blake  <ebb9@byu.net>
33360
33361         * modules/absolute-header: New module.
33362         * modules/fcntl (Depends-on): Depend on it.
33363         * modules/inttypes (Depends-on): Likewise.
33364         * modules/stdint (Depends-on): Likewise.
33365         * modules/sys_stat (Depends-on): Likewise.
33366         * modules/wctype (Depends-on): Likewise.
33367         * MODULES.html.sh (Support for building libraries and
33368         executables): Document it.
33369
33370 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33371
33372         * gnulib-tool (SED): Remove, undoing previous change.
33373         The problem was that it broke coreutils on Solaris, because
33374         "sed --posix" leaked into a makefile.
33375         (sed): New alias, if 'alias' and GNU sed.
33376
33377 2006-12-24  Jim Meyering  <jim@meyering.net>
33378
33379         Work around an fchownat bug in glibc-2.4:
33380         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
33381         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
33382         in spite of the -P option.
33383         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
33384         New macros.
33385         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
33386         * modules/openat (Files): Add lib/fchownat.c.
33387         * lib/openat.c (fchownat): Don't define here.  Move to...
33388         * lib/fchownat.c: ...this new file.
33389
33390 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33391
33392         Fix bug reported by Bruno Haible in
33393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
33394         where quotearg.c didn't compile on Mac OS X 10.2 because it
33395         lacks <wchar.h> and wint_t.
33396         * lib/wctype_.h (__wctype_wint_t): New type.
33397         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
33398         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
33399         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
33400         Arg is now of type __wctype_wint_t, not wint_t.
33401         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
33402         substitute HAVE_WINT_T.
33403         * modules/wctype (Files): Add m4/wint_t.m4.
33404         (wctype.h): Substitute HAVE_WINT_T.
33405
33406 2006-12-23  Bruno Haible  <bruno@clisp.org>
33407
33408         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
33409
33410 2006-12-23  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
33413         S_ISLNK.
33414         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
33415         mingw.
33416
33417 2006-12-22  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/copy-file.c: Include acl.h.
33420         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
33421         Close the file descriptors only after being done with copy_acl.
33422         * modules/copy-file (Depends-on): Add acl.
33423
33424 2006-12-22  Bruno Haible  <bruno@clisp.org>
33425
33426         * gnulib-tool (SED): New variable.
33427         Use $SED instead of sed everywhere.
33428
33429 2006-12-22  Bruno Haible  <bruno@clisp.org>
33430
33431         * modules/no-c++: New file.
33432         * m4/no-c++.m4: New file.
33433         * MODULES.html.sh (Support for building libraries and executables):
33434         Add no-c++.
33435
33436 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
33437
33438         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
33439         Include <limits.h>, and use its INT_MAX to rewrite the
33440         j loop so that it does not overflow 'int'.  Problem reported by
33441         Ralf Wildenhues in
33442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
33443         Play it safe by shifting left by 1 rather than multiplying by 2,
33444         as GCC is less likely to optimize this away when the value
33445         is signed (when it assumes overflow leads to undefined behavior).
33446         Also, don't assume time_t uses two's complement.
33447
33448 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
33449
33450         * MODULES.html.sh: New module wctype.
33451         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
33452         * lib/fnmatch.c: Don't bother to include <wchar.h> before
33453         <wctype.h>, since the new wctype module should fix this.
33454         * lib/quotearg.c: Include <wctype.h> unconditionally, since
33455         the wctype module should arrange for it.
33456         * lib/regex_internal.h: Likewise.
33457         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
33458         since the wctype module should handle this now.
33459         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
33460         * modules/fnmatch (Depends-on): Add wctype.
33461         * modules/quotearg (Depends-on): Likewise.
33462         * modules/regex (Depends-on): Likewise.
33463
33464 2006-12-19  Bruno Haible  <bruno@clisp.org>
33465
33466         * lib/strdup.h [C++]: Wrap definitions in extern "C".
33467         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
33468
33469 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33470
33471         * modules/savewd (Depends-on): Fix dependency on fcntl.
33472
33473 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33474
33475         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
33476         conforms to C99, rather than relying on the user's environment
33477         setting of STDINT_H.
33478
33479 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33480         and Eric Blake  <ebb9@byu.net>
33481
33482         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
33483         This is more consistent with the other defines here.
33484         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
33485         Port to z/OS.  Problem reported by Paul Gilmartin.
33486         Change local vars to use gl_ prefix rather than ac_.
33487         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
33488         with other defines.
33489         * modules/double-slash-root: New module.
33490         * modules/dirname (Files): Remove m4/double-slash-root.m4.
33491         (Depends-on): Add double-slash-root.
33492         * MODULES.html.sh (File system functions): Mention new module.
33493
33494 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
33495
33496         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
33497         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
33498         This is for the benefit of gzip, which doesn't do i18n.
33499
33500 2006-12-12  Jim Meyering  <jim@meyering.net>
33501
33502         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
33503         Reported by Andreas Schwab <schwab@suse.de>.
33504
33505 2006-12-12  Bruno Haible  <bruno@clisp.org>
33506
33507         Merge these changes.
33508         2006-09-05  Bruno Haible  <bruno@clisp.org>
33509         * lib/iconvme.c (iconv_string): No need to save and restore errno when
33510         iconv_alloc succeeded.
33511         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
33512         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
33513         test for " && dest " at the end - dest is always != NULL there. Call
33514         iconv with 4xNULL arguments initially, to reset the state. Call iconv
33515         with 2xNULL arguments, also to flush the state storage. Handle the
33516         IRIX iconv behaviour. Realloc the final result, to throw away unused
33517         memory.
33518
33519 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33520
33521         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
33522         and fchmodat unconditionally, since glibc 2.4 has them.
33523         Problem reported by Arkadiusz Miskiewicz.
33524
33525 2006-12-10  Bruno Haible  <bruno@clisp.org>
33526
33527         * gnulib-tool (func_import): Show the include files only for those
33528         modules that are copied and specified.
33529         Reported by Karl Berry.
33530
33531 2006-12-08  Jim Meyering  <jim@meyering.net>
33532
33533         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
33534         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
33535
33536         * build-aux/announce-gen: Add two new options, both optional:
33537         --bootstrap-tools=TOOL_LIST
33538               a comma-separated list of tools, e.g.,
33539               autoconf,automake,bison,gnulib
33540         --gnulib-snapshot-date=DATE
33541               if gnulib is in the bootstrap tool list,
33542               then report this as the snapshot date.
33543               If not specified, use the current date/time.
33544               If you specify a date here, be sure it's UTC.
33545
33546 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33547
33548         * tests/test-argp-2.sh: Fix test to match actual output.
33549         (func_compare): Fix sed script to be portable.
33550
33551 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33552
33553         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
33554         workaround for this case.  It is not autoconfigured now; offhand
33555         it's hard to see how to autoconfigure it.
33556
33557 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33558
33559         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
33560         a directory that is about to be chowned.  Such a directory's
33561         initial file permissions should permit the owner only and this
33562         should not be changed until after the chown, since the group and
33563         other bits would be incorrect if they granted permission before
33564         the chown.
33565
33566         Fix porting problem for iswctype reported by Georg Schwarz in:
33567         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
33568         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
33569         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
33570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
33571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33572
33573 2006-12-03  Jim Meyering  <jim@meyering.net>
33574
33575         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
33576         p->fts_statp may not yet be defined.
33577         (fts_read): Instead, set it in the caller, once p->fts_statp is
33578         sure to be defined, and corresponds to a top-level directory.
33579         This bug made du -x fail.  Here's the coreutils test case:
33580         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
33581         Reported by Mike Frysinger.
33582
33583 2006-12-01  Jim Meyering  <jim@meyering.net>
33584
33585         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
33586         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
33587         Reported by Simon Josefsson.
33588
33589 2006-11-30  Jim Meyering  <jim@meyering.net>
33590
33591         * m4/warning.m4: Use the all-permissive copyright notice
33592         recommended by RMS (rather than LGPL).
33593         * m4/vararrays.m4: Likewise.
33594         * m4/flexmember.m4: Likewise.
33595
33596 2006-11-29  Bruno Haible  <bruno@clisp.org>
33597
33598         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
33599         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
33600         using +=.
33601         Reported by Simon Josefsson <simon@josefsson.org>.
33602
33603 2006-11-28  James Youngman <jay@gnu.org>
33604
33605         * README: Advise users that they might find the bug-gnulib@gnu.org
33606         and autotools-announce@gnu.org mailing lists useful.
33607
33608 2006-11-28  Bruno Haible  <bruno@clisp.org>
33609
33610         * m4/ptrdiff_max.m4: Remove file.
33611
33612 2006-11-21  Bruno Haible  <bruno@clisp.org>
33613
33614         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
33615         _AC_COMPUTE_INT.
33616         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
33617         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
33618         _AC_COMPUTE_INT.
33619         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
33620         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
33621         _AC_COMPUTE_INT.
33622         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
33623
33624 2006-11-28  Jim Meyering  <jim@meyering.net>
33625
33626         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
33627         warning from "gcc -Wshadow" about shadowing the builtin.
33628
33629 2006-11-27  Bruno Haible  <bruno@clisp.org>
33630
33631         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
33632         _AC_COMPUTE_INT.
33633         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
33634
33635 2006-11-27  Bruno Haible  <bruno@clisp.org>
33636             Paul Eggert  <eggert@cs.ucla.edu>
33637
33638         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
33639
33640 2006-11-26  Bruno Haible  <bruno@clisp.org>
33641
33642         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
33643         noinst_LTLIBRARIES.
33644
33645 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33646             Bruno Haible  <bruno@clisp.org>
33647
33648         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
33649         if compiling with "gcc -ansi".
33650
33651 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
33652
33653         Fix some incompatibilities with gcc -ansi -pedantic.
33654         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
33655         if compiling pedantically with GCC, unless it's C99 or later.
33656         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
33657         it mishandles gcc -ansi -pedantic as well.
33658         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
33659         if gcc -pedantic.
33660         * lib/regexec.c (check_node_accept_bytes): Don't use auto
33661         initializers for struct if -pedantic, unless it's C99 or later.
33662
33663 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
33664
33665         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
33666         Don't close an fd more than once. Identical atimes indicate
33667         success, not failure.
33668
33669 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
33670
33671         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
33672
33673 2006-11-23  Jim Meyering  <jim@meyering.net>
33674
33675         * build-aux/announce-gen: New file.  From coreutils.
33676
33677 2006-11-22  Jim Meyering  <jim@meyering.net>
33678
33679         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
33680         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
33681         (fts_read): Use a temporary to narrow the overused st_size member
33682         before using it in a switch statement.  Reported by Matthew Woehlke.
33683
33684         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
33685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33686
33687 2006-11-20  Bruno Haible  <bruno@clisp.org>
33688
33689         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
33690         changequote instead of pairs of brackets.
33691         Reported by Andreas Schwab <schwab@suse.de>.
33692
33693 2006-11-21  Jim Meyering  <jim@meyering.net>
33694
33695         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
33696         so as to remain compatible with older compilers.
33697         Patch from Michael Deutschmann.
33698
33699 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
33700
33701         * MODULES.html.sh (File system functions): Add openat.
33702
33703         * lib/openat.h (rpl_fstatat): New macro, if
33704         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
33705         (fstatat): Define to rpl_fstatat under the same conditions,
33706         unless COMPILING_FSTATAT.
33707         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
33708         seems to have the bug.
33709         * lib/fstatat.c: New file.
33710         * modules/openat (Files): Add it.
33711
33712 2006-11-20  Bruno Haible  <bruno@clisp.org>
33713
33714         * Makefile: New file.
33715
33716 2006-11-20  Jim Meyering  <jim@meyering.net>
33717
33718         The beginnings of syntax-related checks for gnulib.
33719         * lib/Makefile: New file.
33720         * lib/t-idcache: New script.  Ensure that the two halves of
33721         idcache.c stay in sync.
33722
33723         * lib/idcache.c: Adjust comments in user- and group- portions to
33724         be more accurate, and to be consistent with one another.
33725
33726 2006-11-20  Jim Meyering  <jim@meyering.net>
33727
33728         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
33729         continue using the flexible array member (thus, this module performs
33730         half as many malloc calls), with the addition that...
33731         (getgroup, getuser): Consistently record a non-match via an empty
33732         "name" string, and map an empty string match to a NULL return value.
33733         * modules/idcache (Depends-on): Re-add flexmember.
33734
33735         * lib/idcache.c (getuser): Remove all uses of the register keyword.
33736         (getuidbyname, getgroup, getgidbyname): Likewise.
33737
33738         Use cleaner syntax: NULL rather than 0.
33739         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
33740
33741 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
33742
33743         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
33744         It mishandled the case where the group was missing.
33745         Problem reported by Greg Schafer.
33746         * modules/idcache: Likewise.
33747
33748 2006-11-18  Jim Meyering  <jim@meyering.net>
33749
33750         * check-module (%exempt_header): Add exception for some
33751         conditionally-included headers.
33752
33753         * modules/i-ring (Depends-on): Add verify.
33754         (License): Change to LGPL.
33755
33756 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33757
33758         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
33759         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
33760         and inttostr.h.  Use snprintf rather than uinttostr, so that
33761         LGPLed code doesn't depend on GPLed.
33762
33763 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
33764
33765         * modules/inline (License): Change from GPL to LGPL.
33766
33767 2006-11-17  Jim Meyering  <jim@meyering.net>
33768
33769         * modules/d-type (License): Switch to LGPL.
33770
33771 2006-11-15  Bruno Haible  <bruno@clisp.org>
33772
33773         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
33774
33775 2006-11-15  Eric Blake  <ebb9@byu.net>
33776
33777         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
33778         the module dependency.
33779
33780 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33781             Bruno Haible  <bruno@clisp.org>
33782
33783         * gnulib-tool (func_create_testdir): Add license consistency check.
33784
33785 2006-11-15  Eric Blake  <ebb9@byu.net>
33786
33787         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
33788         random "(cached)" in configure output.
33789
33790 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33791
33792         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
33793         test for conforming inttypes.h is both announced and cached.
33794
33795         * MODULES.html.sh (seen_modules, seen_files): New variables.
33796         (func_module): Rewrite to use a few less gnulib-tool and sed
33797         invocations.  Avoid a couple of quadratic algorithms for ...
33798         (missed_modules, missed_files): ... these, with ...
33799         (func_append, func_tmpdir): ... these new functions, from
33800         gnulib-tool.  Analogously, install traps for cleanup.
33801
33802         * tests/test-gc.c (main): Remove unused variables.
33803         * tests/test-read-file.c: Include stdlib.h, for 'free'.
33804
33805 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
33806
33807         * modules/inttostr (License): Change to LGPL.
33808
33809 2006-11-14  Eric Blake  <ebb9@byu.net>
33810
33811         * modules/tempname (License): Change to LGPL.
33812
33813 2006-11-14  Eric Blake  <ebb9@byu.net>
33814
33815         * doc/functions.texi (Function Portability): *printf functions on
33816         Cygwin now understand all POSIX size specifiers.
33817
33818 2006-11-14  Bruno Haible  <bruno@clisp.org>
33819
33820         * modules/c-ctype (License): Change to LGPL.
33821
33822 2006-11-12  Bruno Haible  <bruno@clisp.org>
33823
33824         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33825         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
33826         for GNOME libraries, for which the include files are installed in
33827         subdirectories of $prefix/include.
33828
33829 2006-11-12  Bruno Haible  <bruno@clisp.org>
33830
33831         * m4/lib-link.m4: Require at least autoconf-2.54.
33832         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
33833         name to underscores for the --with option.
33834
33835 2006-11-13  Bruno Haible  <bruno@clisp.org>
33836
33837         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
33838         the tests directory.
33839         Reported by Ralf Wildenhues.
33840
33841 2006-11-13  Bruno Haible  <bruno@clisp.org>
33842
33843         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
33844         (func_emit_initmacro_end): Undo the override here.
33845         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
33846         Works around the famous automake error in coreutils.
33847
33848 2006-11-13  Eric Blake  <ebb9@byu.net>
33849
33850         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
33851         element, not its node.
33852
33853 2006-11-12  Bruno Haible  <bruno@clisp.org>
33854
33855         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
33856         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
33857
33858 2006-11-12  Bruno Haible  <bruno@clisp.org>
33859
33860         * gnulib-tool: New option --local-symlink.
33861         (func_usage): Document it.
33862         (lsymbolic): New variable.
33863         (func_import, func_create_testdir): If --symlink was not specified,
33864         test whether --local-symlink was specified and the file comes from
33865         the local_gnulib_dir.
33866
33867 2006-11-12  Bruno Haible  <bruno@clisp.org>
33868
33869         * gnulib-tool (func_ln): New function.
33870         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
33871
33872 2006-11-12  Bruno Haible  <bruno@clisp.org>
33873
33874         Finish support for source files in subdirectories.
33875         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
33876         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
33877         AUTOMAKE_OPTIONS.
33878         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
33879
33880 2006-11-12  Bruno Haible  <bruno@clisp.org>
33881
33882         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33883         EXTRA_lib_SOURCES augmentation.
33884         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
33885
33886 2006-11-12  Jim Meyering  <jim@meyering.net>
33887
33888         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
33889         file descriptors.  This also averts a failure on systems with
33890         native openat support when a traversed directory lacks "x" access.
33891         * lib/fts_.h: Include "i-ring.h"
33892         (struct FTS) [fts_fd_ring]: New member.
33893         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
33894         (FCHDIR): Add parentheses.
33895         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
33896         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
33897         When descending, rather than simply closing the previous
33898         fts_cwd_fd value, push that file descriptor onto the ring.
33899         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
33900         (fts_open): Initialize the new fd_ring member.
33901         (fts_close): Clear the ring.
33902         (fts_safe_changedir): When possible, use our new fd_ring to skip
33903         the diropen and fstat and dev/ino comparison that would normally
33904         accompany a virtual `chdir ("..")'.
33905
33906         * modules/fts (Depends-on): Add i-ring.
33907         * modules/i-ring: New module.
33908         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
33909         * m4/i-ring.m4: New file.
33910
33911 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33912
33913         * gnulib-tool (func_create_testdir): Fix replacement of
33914         `build-aux' in configure.ac.  Run autotools in gltests
33915         subdirectory.
33916         (func_create_testdir, func_create_megatestdir, test): There is
33917         no need for '--force' in most autotool invocations in a new
33918         tree.  Actually fail the whole test if any of the tools, or the
33919         configure or make stages fail.
33920
33921         Sync from Automake.
33922         * build-aux/gnupload: Revert last change.  Add pointer to upload
33923         instructions of the GNU Maintenance Instructions.
33924         Suggestion by Karl Berry.
33925
33926 2006-11-10  Jim Meyering  <jim@meyering.net>
33927
33928         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
33929
33930 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33931
33932         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
33933         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
33934         (bind_textdomain_codeset) [! ENABLE_NLS]:
33935         Evaluate all the arguments.  That way, callers get compatible behavior
33936         if the arguments have side effects.  Also, it avoids some GCC
33937         diagnostics in some cases; Joel E. Denny reported problems when Bison
33938         was configured with --enable-gcc-warnigs.
33939
33940 2006-11-10  Jim Meyering  <jim@meyering.net>
33941
33942         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
33943         relevant options in CFLAGS (like -O, -fno-inline) are taken into
33944         account.
33945
33946 2006-11-10  Jim Meyering  <jim@meyering.net>
33947
33948         * modules/inline: New file/module.
33949         * modules/xalloc (Files): Remove m4/inline.m4.
33950         (Depends-on): Add inline, instead.
33951         * modules/oset: Likewise.
33952         * modules/list: Likewise.
33953
33954 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33955
33956         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
33957         Problem reported by Matthew Woehlke.
33958
33959 2006-11-09  Bruno Haible  <bruno@clisp.org>
33960
33961         * lib/tempname.c (gen_tempname): Remove variant that invokes
33962         __gen_tempname.
33963         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
33964         __gen_tempname.
33965
33966 2006-11-08  Bruno Haible  <bruno@clisp.org>
33967
33968         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
33969         to 'yes' instead of 'cross-compiling'.
33970
33971 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33972
33973         * lib/quotearg.h (quotearg_free): New decl.
33974         * lib/quotearg.c (quotearg_free): New function.
33975         (slot0, nslots, slotvec0, slotvec):
33976         Now file-scope so that quotearg_free can get at them.
33977
33978 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33979
33980         Sync from Automake.
33981         * build-aux/gnupload: Add missing 'gnu' to example URL.
33982         Report by Karl Berry.
33983
33984 2006-11-08  Bruno Haible  <bruno@clisp.org>
33985
33986         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
33987         Suggested by Paul Eggert.
33988
33989 2006-11-08  Jim Meyering  <jim@meyering.net>
33990
33991         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
33992         It's already included if !_LIBC.
33993         (fts_safe_changedir): Add a comment.
33994
33995 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33996
33997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
33998         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
33999         Matthew Woehlke.
34000
34001         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
34002         definitions up, to avoid colliding with change below.
34003         (static_inline) [HAVE_INLINE]: New macro.
34004         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
34005         Provide extern decls when !HAVE_INLINE.  Do not define unless
34006         static_inline is defined, either by us or by xmalloc.c.  Use
34007         static_inline rather than static inline.
34008         (XCALLOC): Optimize sizeof(T) = 1 case.
34009         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
34010
34011 2006-11-07  Bruno Haible  <bruno@clisp.org>
34012
34013         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
34014         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
34015         AC_C_INLINE.
34016         * modules/xalloc (Files): Add m4/inline.m4.
34017
34018 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34019
34020         * README: Fix typo.
34021         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
34022         (Miscellanous Notes): ...from this.
34023
34024 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
34025
34026         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
34027         Mention that offsetof should be used instead of sizeof.
34028         From Bruno Haible.
34029
34030 2006-11-07  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
34033
34034 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34035
34036         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
34037         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
34038         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34039         (gl_tree_add_before, gl_tree_add_after):
34040         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
34041         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
34042         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34043         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
34044         (gl_linked_add_after, gl_linked_add_at): Likewise.
34045         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
34046         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34047         (gl_tree_add_before, gl_tree_add_after): Likewise.
34048         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
34049         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
34050         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34051
34052 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34053
34054         * lib/gl_oset.h: Use C comment style, not C++ comment style.
34055
34056 2006-11-06  Bruno Haible  <bruno@clisp.org>
34057
34058         * m4/inline.m4: New file.
34059         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
34060         * modules/list (Files): Add m4/inline.m4.
34061         * modules/oset (Files): Likewise.
34062
34063 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34064
34065         * lib/idcache.c: Include <stddef.h>, for offsetof.
34066         (struct userid.name): Change from char * to a flexible array member.
34067         All uses changed.
34068         * modules/idcache (Depends-on): Add flexmember.
34069
34070         * MODULES.html.sh (Core language properties): New module flexmember.
34071         * modules/flexmember, m4/flexmember.m4: New files.
34072
34073         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
34074         inline functions that are identical with the old xnmalloc_inline,
34075         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
34076         that we can avoid some unnecessary integer multiplications and
34077         divisions in the common case where the element size is known at
34078         compile time.
34079         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
34080         needed.
34081         (xnboundedmalloc): Remove.
34082         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
34083         arguments, for consistency with rest of this header.
34084         (xcharalloc): Rewrite using XNMALLOC.
34085         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
34086         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
34087         versions have been moved to lib/xalloc.h and renamed to be the
34088         non-*_inline versions.
34089         (xmalloc, xrealloc): Implement without reference to the xnmalloc
34090         and xnrealloc functions, since those functions are now inline and
34091         now call us.
34092         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
34093         renaming described above.
34094         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
34095         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
34096         captures the dependency in AC_C_INLINE.
34097
34098         New module canonicalize-lgpl, proposed by Charles Wilson in
34099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
34100         with a few small changes afterwards.
34101         * MODULES.html.sh (File system functions): New module
34102         canonicalize-lgpl.
34103         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
34104         and canonicalize_file_name.
34105         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
34106         * modules/canonicalize-lgpl: New files.
34107
34108 2006-11-05  Bruno Haible  <bruno@clisp.org>
34109
34110         * gnulib-tool (func_import, func_create_testdir): Create directories
34111         also for files in subdirectories of lib/.
34112
34113 2006-11-05  Bruno Haible  <bruno@clisp.org>
34114
34115         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
34116         ANSI C compliant.
34117
34118 2006-11-03  Bruno Haible  <bruno@clisp.org>
34119
34120         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
34121         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
34122         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
34123         (xnboundedmalloc): New inline function.
34124         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
34125         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
34126         xmalloc.
34127         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
34128         xmalloc.
34129         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
34130         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
34131         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
34132         xmalloc.
34133         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
34134         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
34135         xmalloc.
34136         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
34137         gl_tree_add_after): Use XMALLOC instead of xmalloc.
34138         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
34139         xmalloc.
34140         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
34141         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
34142         gl_tree_add_after): Use XMALLOC instead of xmalloc.
34143         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
34144         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
34145         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
34146         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
34147
34148 2006-11-03  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/c-ctype.h [C++]: Define functions without name mangling.
34151         * lib/fwriteerror.h [C++]: Likewise.
34152         * lib/gcd.h [C++]: Likewise.
34153         * lib/linebreak.h [C++]: Likewise.
34154
34155 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34156
34157         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
34158         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
34159         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
34160         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
34161         Check for functions and headers just once.
34162         Check for declaration of canonicalize_file_name.
34163         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
34164
34165 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34166
34167         * gnulib-tool (func_import): Fix typo in actioncmd.
34168
34169 2006-11-02  Bruno Haible  <bruno@clisp.org>
34170
34171         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
34172         newline sequence in the Makefile.am snippet as a space, like "make"
34173         does.
34174         Reported by Roger Persson <perrog@gmail.com>.
34175
34176 2006-11-01  Bruno Haible  <bruno@clisp.org>
34177
34178         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
34179         already declared in <string.h>.
34180         * lib/strcase.h (strncasecmp): Don't declare it if yes.
34181
34182 2006-11-01  Bruno Haible  <bruno@clisp.org>
34183
34184         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
34185         * lib/strcase.h: Include <string.h>.
34186         (strcasecmp): Define to rpl_strcasecmp here.
34187
34188 2006-11-01  Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
34191
34192 2006-11-01  Eric Blake  <ebb9@byu.net>
34193
34194         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
34195
34196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
34197
34198 2006-10-29  Bruno Haible  <bruno@clisp.org>
34199
34200         Make it compile in C++ mode.
34201         * lib/full-write.c (full_rw): Add a cast.
34202
34203 2006-11-01  Bruno Haible  <bruno@clisp.org>
34204
34205         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
34206         be POSIX compliant.
34207         Reported by Roger Persson <perrog@gmail.com>.
34208
34209 2006-11-01  Eric Blake  <ebb9@byu.net>
34210
34211         * lib/getopt_.h: Fix comments.
34212
34213 2006-10-31  Eric Blake  <ebb9@byu.net>
34214
34215         * modules/tmpdir (Depends-on): Add sys_stat.
34216         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
34217         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
34218         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
34219         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
34220         tempname.
34221
34222 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34223
34224         Avoid some C++ diagnostics reported by Bruno Haible.
34225         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
34226         xmalloc.
34227         (quotearg_alloc): Use xcharalloc rather than xmalloc.
34228         (struct slotvec): Move to top level.
34229         (quotearg_n_options): Rewrite to avoid xmalloc.
34230         * lib/xalloc.h (xcharalloc): New function.
34231         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
34232         [defined __cplusplus]: Add function template that provides result
34233         type propagation.  This part of the change is from Bruno Haible.
34234
34235 2006-10-29  Bruno Haible  <bruno@clisp.org>
34236
34237         Make it compile in C++ mode.
34238         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
34239         * lib/strnlen1.c (strnlen1): Cast memchr result.
34240         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
34241         * lib/clean-temp.c (string_equals, string_hash): Add casts.
34242         (create_temp_dir): Rename local variable 'template'.
34243         (compile_csharp_using_sscli): Add cast.
34244         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
34245         * lib/findprog.c (find_in_path): Likewise.
34246         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
34247         * lib/wait-process.c (register_slave_subprocess): Likewise.
34248
34249 2006-10-22  Bruno Haible  <bruno@clisp.org>
34250
34251         * modules/tsearch: New file.
34252         * lib/tsearch.h: New file.
34253         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
34254         * m4/tsearch.m4: New file.
34255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
34256
34257 2006-10-29  Eric Blake  <ebb9@byu.net>
34258
34259         * lib/arcfour.c: Assume config.h.
34260         * lib/arctwo.c: Likewise.
34261         * lib/base64.c: Likewise.
34262         * lib/check-version.c: Likewise.
34263         * lib/crc.c: Likewise.
34264         * lib/des.c: Likewise.
34265         * lib/gc-gnulib.c: Likewise.
34266         * lib/gc-libgcrypt.c: Likewise.
34267         * lib/gc-pbkdf2-sha1.c: Likewise.
34268         * lib/getaddrinfo.c: Likewise.
34269         * lib/getdelim.c: Likewise.
34270         * lib/getline.c: Likewise.
34271         * lib/hmac-md5.c: Likewise.
34272         * lib/hmac-sha1.c: Likewise.
34273         * lib/iconvme.c: Likewise.
34274         * lib/md2.c: Likewise.
34275         * lib/md4.c: Likewise.
34276         * lib/memxor.c: Likewise.
34277         * lib/read-file.c: Likewise.
34278         * lib/readline.c: Likewise.
34279         * lib/rijndael-alg-fst.c: Likewise.
34280         * lib/rijndael-api-fst.c: Likewise.
34281         * lib/xgetdomainname.c: Likewise.
34282
34283 2006-10-28  Eric Blake  <ebb9@byu.net>
34284
34285         * lib/xstrndup.c: Assume config.h.
34286
34287 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34288
34289         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
34290         stat-macros.h is now for our own macros, whereas stat_h is for
34291         macros in the <sys/stat.h> name space.
34292         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
34293         (STAT_MACROS_H): Remove.
34294         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
34295         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
34296         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
34297         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
34298         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
34299         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
34300         Move these macros to ...
34301         * lib/stat_.h: here.  Don't include stat-macros.h.
34302         * lib/canonicalize.c: Don't include stat-macros.h.
34303         * lib/chown.c: Likewise.
34304         * lib/euidaccess.c: Likewise.
34305         * lib/file-type.c: Likewise.
34306         * lib/filemode.c: Likewise.
34307         * lib/glob.c: Likewise.
34308         * lib/isapipe.c: Likewise.
34309         * lib/lchown.c: Likewise.
34310         * lib/lstat.c: Likewise.
34311         * lib/mkdir-p.c: Likewise.
34312         * lib/rmdir.c: Likewise.
34313         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
34314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
34315         unless mkdir isn't declared, to speed up 'configure'.
34316         Always create sys/stat.h, since it's unlikely any real sys/stat.h
34317         would define all the S_* symbols.
34318         * modules/canonicalize (Depends-on):
34319         Depend on sys_stat, not stat-macros.
34320         * modules/chown: Likewise.
34321         * modules/euidaccess: Likewise.
34322         * modules/filemode: Likewise.
34323         * modules/file-type: Likewise.
34324         * modules/glob: Likewise.
34325         * modules/isapipe: Likewise.
34326         * modules/lchown: Likewise.
34327         * modules/lstat: Likewise.
34328         * modules/mkancesdirs: Likewise.
34329         * modules/rmdir: Likewise.
34330         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
34331         * modules/modechange: Likewise.
34332         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
34333         (configure.ac): Remove gl_STAT_MACROS.
34334         * modules/sys_stat (Depends-on): Remove stat-macros.
34335
34336 2006-10-27  Bruno Haible  <bruno@clisp.org>
34337
34338         * m4/signed.m4: Remove file.
34339         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
34340         invocation.
34341         * modules/vasnprintf (Files): Remove m4/signed.m4.
34342
34343 2006-10-27  Bruno Haible  <bruno@clisp.org>
34344
34345         Update to GNU gettext 0.16.
34346         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
34347         m4/inttypes-h.m4, m4/signed.m4.
34348         * m4/gettext.m4: Update to GNU gettext 0.16.
34349         * m4/intl.m4: New file, from GNU gettext.
34350         * m4/intldir.m4: New file, from GNU gettext.
34351         * config/srclist.txt: Update
34352
34353 2006-10-27  Eric Blake  <ebb9@byu.net>
34354
34355         * MODULES.html.sh: Document tempname.
34356         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
34357         dependencies.
34358         (Files): Move lib/tempname.c...
34359         * modules/tempname: ...to this new module.
34360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
34361         (gl_PREREQ_TEMPNAME): Move...
34362         * m4/tempname.m4: ...to this new file.
34363         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
34364         * modules/sys_stat (Depends-on): Add stat-macros.
34365         * lib/stat_.h (includes): Pick up stat macros.
34366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
34367         if stat macros are broken.
34368         * lib/tempname.c (includes): No need to include "stat-macros.h".
34369         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
34370         (direxists, __path_search) [!_LIBC]: Don't compile these in
34371         gnulib; the tmpdir module covers that.
34372         * lib/tempname.h: New file.
34373
34374 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         * COPYING: Explain how gnulib-tool converts licence headers.
34377         Almost all wording by Eric Blake.
34378
34379 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
34380
34381         * lib/mbchar.h (is_basic_table): Make read-only.
34382         * lib/mbchar.c (is_basic_table): Likewise.
34383         Reported by John Darrington.
34384
34385 2006-10-25  Bruno Haible  <bruno@clisp.org>
34386
34387         * lib/progname.h (set_program_name): Undefine before defining.
34388
34389 2006-10-25  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
34392         false for non-gcc C++ compilers.
34393         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34394
34395 2006-10-24  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
34398         iconv implementations like Irix iconv.
34399
34400 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34401
34402         * modules/vararrays: New file.
34403         * m4/vararrays.m4: New file, taken from diffutils.
34404         * MODULES.html.sh: New module vararrays.
34405
34406 2006-10-24  Karl Berry  <karl@gnu.org>
34407
34408         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
34409         Don't call GNU Unix.
34410
34411 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34412
34413         * users.txt: Add Libtool.
34414
34415         Sync from Libtool:
34416
34417         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34418
34419         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
34420         to gnulib's policy of including config.h unconditionally.
34421
34422 2006-10-24  Bruno Haible  <bruno@clisp.org>
34423
34424         * modules/wcwidth (Files): Add m4/wint_t.m4.
34425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
34426         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
34427
34428 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
34429
34430         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
34431         to pacify GCC with some -W flags enabled.  Problem reported by
34432         Bruno Haible.
34433
34434 2006-10-24  Jim Meyering  <jim@meyering.net>
34435
34436         * MODULES.html.sh: Remove uinttostr.  It's not a module.
34437         Reported by Karl Berry.
34438
34439 2006-10-23  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
34442
34443 2006-10-24  Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/gl_list.h: Use C comment style, not C++ comment style.
34446
34447 2006-10-23  Eric Blake  <ebb9@byu.net>
34448
34449         * lib/getaddrinfo.c (includes): Add missing include.
34450
34451 2006-10-23  Bruno Haible  <bruno@clisp.org>
34452             Paul Eggert  <eggert@cs.ucla.edu>
34453
34454         Ability to rename obstack_free.
34455         * lib/obstack.h (__obstack_free): New macro. Declare instead of
34456         obstack_free.
34457         (obstack_free): Invoke the __obstack_free macro.
34458         * lib/obstack.c (obstack_free): Use __obstack_free macro.
34459
34460 2006-10-23  Bruno Haible  <bruno@clisp.org>
34461             Paul Eggert  <eggert@cs.ucla.edu>
34462
34463         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
34464         __argc, __argv from the declaration. (They are defined as macros on
34465         mingw.)
34466
34467 2006-10-22  Bruno Haible  <bruno@clisp.org>
34468
34469         * doc/gnulib-intro.texi: New file.
34470         * doc/gnulib.texi: Include it.
34471
34472 2006-10-21  Bruno Haible  <bruno@clisp.org>
34473
34474         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
34475         "Introduction", "Miscellanous Notes", "Particular Modules".
34476
34477 2006-10-21  Bruno Haible  <bruno@clisp.org>
34478
34479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34480         Change mostlyclean-local rule to avoid sh syntax error from bash
34481         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
34482
34483 2006-10-23  Jim Meyering  <jim@meyering.net>
34484
34485         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
34486         in place of snprintf.
34487
34488         * modules/inttostr (Files): Add lib/uinttostr.c.
34489         * lib/uinttostr.c (inttostr): New file/function.
34490         * lib/inttostr.h (uinttostr): Declare.
34491         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
34492         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
34493         Add uinttostr.
34494         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
34495
34496 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
34497
34498         * lib/canonicalize.c (ELOOP): Define if not already defined.
34499         Problem reported by Bruno Haible in
34500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
34501
34502 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
34503
34504         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
34505         Problem reported by Perry Smith and Ville Laurikari.
34506
34507         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
34508         uses.
34509
34510 2006-10-19  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
34513         for mingw.
34514
34515 2006-10-19  Bruno Haible  <bruno@clisp.org>
34516
34517         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
34518         Needed for mingw.
34519
34520 2006-10-19  Bruno Haible  <bruno@clisp.org>
34521
34522         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
34523
34524 2006-10-19  Bruno Haible  <bruno@clisp.org>
34525
34526         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
34527         it.
34528
34529 2006-10-19  Bruno Haible  <bruno@clisp.org>
34530
34531         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
34532         invocation.
34533
34534 2006-10-19  Bruno Haible  <bruno@clisp.org>
34535
34536         * gnulib-tool (func_create_testdir): Don't include ftruncate and
34537         mountlist by default.
34538
34539 2006-10-16  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/c-strstr.c: Include c-strstr.h.
34542
34543 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34544
34545         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
34546         in a slash.
34547
34548 2006-10-18  Bruno Haible  <bruno@clisp.org>
34549
34550         * lib/lock.h [C++]: Wrap definitions in extern "C".
34551
34552 2006-10-18  Bruno Haible  <bruno@clisp.org>
34553
34554         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
34555         gl_LIBOBJS list.
34556
34557 2006-10-18  Bruno Haible  <bruno@clisp.org>
34558
34559         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
34560
34561 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
34562
34563         * lib/xstrtol.h: Include gettext.h.
34564         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
34565         Problem reported by Eric Blake.
34566         * modules/xstrtol (Depends-on): Add gettext-h.
34567
34568 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
34569
34570         * lib/strftime.c (advance): New macro.
34571         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
34572         incomplete type, so you can't add 0 to it.  Problem and patch
34573         reported by Eelco Dolstra for dietlibc.
34574
34575 2006-10-18  Jim Meyering  <jim@meyering.net>
34576
34577         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
34578         type for a local, and rename it: s/up/user_proc/.
34579
34580 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34581
34582         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
34583         READ_UTMP_USER_PROCESS.
34584         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
34585
34586 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
34587
34588         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
34589         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
34590
34591 2006-10-17  Eric Blake  <ebb9@byu.net>
34592
34593         * lib/sigprocmask.c (sigprocmask): Fix typo.
34594
34595         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
34596
34597         * modules/clean-temp (Makefile.am): Don't add to make output...
34598         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
34599         config.h.
34600
34601 2006-10-17  Bruno Haible  <bruno@clisp.org>
34602
34603         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
34604         differently if DEFAULT_TEXT_DOMAIN is set.
34605
34606 2006-10-16  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/clean-temp.c: Include fwriteerror.h.
34609
34610 2006-10-16  Bruno Haible  <bruno@clisp.org>
34611
34612         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
34613
34614 2006-10-16  Bruno Haible  <bruno@clisp.org>
34615
34616         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
34617         * lib/sigprocmask.h: Include <sys/types.h>.
34618         (sigset_t): Use the system's definition if present.
34619
34620 2006-10-17  Eric Blake  <ebb9@byu.net>
34621
34622         * lib/xvasprintf.c (includes): Assume config.h.
34623         * lib/xasprintf.c (includes): Likewise.
34624
34625 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34626
34627         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
34628         at least as wide as intmax_t.
34629
34630 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
34631
34632         (Imported from Automake.)
34633         * build-aux/gnupload: Update to version 1.1 of directive file.
34634
34635 2006-10-16  Eric Blake  <ebb9@byu.net>
34636
34637         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
34638         match Automake 1.10a.
34639
34640 2006-10-14  Bruno Haible  <bruno@clisp.org>
34641
34642         * modules/sigprocmask: New file.
34643         * lib/sigprocmask.h: New file.
34644         * lib/sigprocmask.c: New file.
34645         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
34646         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
34647         request sigprocmask.o.
34648         (gl_PREREQ_SIGPROCMASK): New macro.
34649         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
34650         (Depends-on): Add sigprocmask.
34651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
34652         gt_SIGNALBLOCKING. Test for 'raise' only once.
34653         * lib/fatal-signal.c: Include sigprocmask.h.
34654         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
34655         unblock_fatal_signals): Define always.
34656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34657         sigprocmask.
34658
34659 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34660
34661         Sync from Automake.
34662         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
34663         which incorrectly sets the mode of an existing destination
34664         directory.  In some cases the unpatched install-sh could do the
34665         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
34666         system.  We hope this is rare in practice, but it's clearly worth
34667         fixing.  Problem reported by Alex Unleashed in
34668         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
34669         Also, don't bother to check for -m bugs unless we're using -m;
34670         suggested by Stepan Kasal.
34671
34672 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34673
34674         Sync from Automake.
34675         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
34676         `-c' flag, so they appear at the same position as in %FASTDEP%
34677         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
34678         which ignores unknown options only after the first non-option.
34679         Bug report against M4 by Nelson H. F. Beebe.
34680
34681 2006-10-13  Jim Meyering  <jim@meyering.net>
34682
34683         Fix a bug in yesterday's change.
34684         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
34685         p->fts_statp->st_dev would be used uninitialized.
34686         Ensures that we always call fts_stat on the very first entry.
34687         Miklos Szeredi reported that find -xdev stopped working.
34688
34689 2006-10-12  Bruno Haible  <bruno@clisp.org>
34690
34691         * gnulib-tool (func_get_automake_snippet): Append an automatically
34692         computed EXTRA_DIST augmentation.
34693         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
34694         * modules/alloca-opt (Makefile.am): Likewise.
34695         * modules/allocsa (Makefile.am): Likewise.
34696         * modules/arcfour (Makefile.am): Likewise.
34697         * modules/arctwo (Makefile.am): Likewise.
34698         * modules/argmatch (Makefile.am): Likewise.
34699         * modules/argz (Makefile.am): Likewise.
34700         * modules/atexit (Makefile.am): Likewise.
34701         * modules/backupfile (Makefile.am): Likewise.
34702         * modules/byteswap (Makefile.am): Likewise.
34703         * modules/c-strtod (Makefile.am): Likewise.
34704         * modules/c-strtold (Makefile.am): Likewise.
34705         * modules/calloc (Makefile.am): Likewise.
34706         * modules/canon-host (Makefile.am): Likewise.
34707         * modules/canonicalize (Makefile.am): Likewise.
34708         * modules/chdir-long (Makefile.am): Likewise.
34709         * modules/chdir-safer (Makefile.am): Likewise.
34710         * modules/check-version (Makefile.am): Likewise.
34711         * modules/chown (Makefile.am): Likewise.
34712         * modules/cloexec (Makefile.am): Likewise.
34713         * modules/close-stream (Makefile.am): Likewise.
34714         * modules/closeout (Makefile.am): Likewise.
34715         * modules/crc (Makefile.am): Likewise.
34716         * modules/csharpexec (Makefile.am): Likewise.
34717         * modules/cycle-check (Makefile.am): Likewise.
34718         * modules/des (Makefile.am): Likewise.
34719         * modules/dev-ino (Makefile.am): Likewise.
34720         * modules/dirfd (Makefile.am): Likewise.
34721         * modules/dirname (Makefile.am): Likewise.
34722         * modules/dup2 (Makefile.am): Likewise.
34723         * modules/eealloc (Makefile.am): Likewise.
34724         * modules/error (Makefile.am): Likewise.
34725         * modules/euidaccess (Makefile.am): Likewise.
34726         * modules/exclude (Makefile.am): Likewise.
34727         * modules/exitfail (Makefile.am): Likewise.
34728         * modules/fcntl-safer (Makefile.am): Likewise.
34729         * modules/fcntl (Makefile.am): Likewise.
34730         * modules/file-type (Makefile.am): Likewise.
34731         * modules/fileblocks (Makefile.am): Likewise.
34732         * modules/filemode (Makefile.am): Likewise.
34733         * modules/filenamecat (Makefile.am): Likewise.
34734         * modules/fnmatch (Makefile.am): Likewise.
34735         * modules/fopen-safer (Makefile.am): Likewise.
34736         * modules/fpending (Makefile.am): Likewise.
34737         * modules/fprintftime (Makefile.am): Likewise.
34738         * modules/free (Makefile.am): Likewise.
34739         * modules/fsusage (Makefile.am): Likewise.
34740         * modules/ftruncate (Makefile.am): Likewise.
34741         * modules/fts (Makefile.am): Likewise.
34742         * modules/gc-arcfour (Makefile.am): Likewise.
34743         * modules/gc-des (Makefile.am): Likewise.
34744         * modules/gc-hmac-md5 (Makefile.am): Likewise.
34745         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
34746         * modules/gc-md4 (Makefile.am): Likewise.
34747         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
34748         * modules/gc-sha1 (Makefile.am): Likewise.
34749         * modules/gc (Makefile.am): Likewise.
34750         * modules/getaddrinfo (Makefile.am): Likewise.
34751         * modules/getcwd (Makefile.am): Likewise.
34752         * modules/getdelim (Makefile.am): Likewise.
34753         * modules/getdomainname (Makefile.am): Likewise.
34754         * modules/getgroups (Makefile.am): Likewise.
34755         * modules/gethostname (Makefile.am): Likewise.
34756         * modules/gethrxtime (Makefile.am): Likewise.
34757         * modules/getline (Makefile.am): Likewise.
34758         * modules/getloadavg (Makefile.am): Likewise.
34759         * modules/getlogin_r (Makefile.am): Likewise.
34760         * modules/getndelim2 (Makefile.am): Likewise.
34761         * modules/getopt (Makefile.am): Likewise.
34762         * modules/getpagesize (Makefile.am): Likewise.
34763         * modules/getpass-gnu (Makefile.am): Likewise.
34764         * modules/getpass (Makefile.am): Likewise.
34765         * modules/getsubopt (Makefile.am): Likewise.
34766         * modules/gettime (Makefile.am): Likewise.
34767         * modules/gettimeofday (Makefile.am): Likewise.
34768         * modules/getugroups (Makefile.am): Likewise.
34769         * modules/getusershell (Makefile.am): Likewise.
34770         * modules/glob (Makefile.am): Likewise.
34771         * modules/group-member (Makefile.am): Likewise.
34772         * modules/hard-locale (Makefile.am): Likewise.
34773         * modules/hash (Makefile.am): Likewise.
34774         * modules/hmac-md5 (Makefile.am): Likewise.
34775         * modules/hmac-sha1 (Makefile.am): Likewise.
34776         * modules/human (Makefile.am): Likewise.
34777         * modules/idcache (Makefile.am): Likewise.
34778         * modules/imaxabs (Makefile.am): Likewise.
34779         * modules/imaxdiv (Makefile.am): Likewise.
34780         * modules/inet_ntop (Makefile.am): Likewise.
34781         * modules/inet_pton (Makefile.am): Likewise.
34782         * modules/intprops (Makefile.am): Likewise.
34783         * modules/inttostr (Makefile.am): Likewise.
34784         * modules/inttypes (Makefile.am): Likewise.
34785         * modules/isapipe (Makefile.am): Likewise.
34786         * modules/javaversion (Makefile.am): Likewise.
34787         * modules/lchmod (Makefile.am): Likewise.
34788         * modules/lchown (Makefile.am): Likewise.
34789         * modules/localcharset (Makefile.am): Likewise.
34790         * modules/long-options (Makefile.am): Likewise.
34791         * modules/lstat (Makefile.am): Likewise.
34792         * modules/malloc (Makefile.am): Likewise.
34793         * modules/mathl (Makefile.am): Likewise.
34794         * modules/mbchar (Makefile.am): Likewise.
34795         * modules/md2 (Makefile.am): Likewise.
34796         * modules/md4 (Makefile.am): Likewise.
34797         * modules/md5 (Makefile.am): Likewise.
34798         * modules/memcasecmp (Makefile.am): Likewise.
34799         * modules/memchr (Makefile.am): Likewise.
34800         * modules/memcmp (Makefile.am): Likewise.
34801         * modules/memcoll (Makefile.am): Likewise.
34802         * modules/memcpy (Makefile.am): Likewise.
34803         * modules/memmem (Makefile.am): Likewise.
34804         * modules/memmove (Makefile.am): Likewise.
34805         * modules/mempcpy (Makefile.am): Likewise.
34806         * modules/memrchr (Makefile.am): Likewise.
34807         * modules/memset (Makefile.am): Likewise.
34808         * modules/memxor (Makefile.am): Likewise.
34809         * modules/mkancesdirs (Makefile.am): Likewise.
34810         * modules/mkdir-p (Makefile.am): Likewise.
34811         * modules/mkdir (Makefile.am): Likewise.
34812         * modules/mkdtemp (Makefile.am): Likewise.
34813         * modules/mkstemp (Makefile.am): Likewise.
34814         * modules/mktime (Makefile.am): Likewise.
34815         * modules/modechange (Makefile.am): Likewise.
34816         * modules/mountlist (Makefile.am): Likewise.
34817         * modules/nanosleep (Makefile.am): Likewise.
34818         * modules/obstack (Makefile.am): Likewise.
34819         * modules/openat (Makefile.am): Likewise.
34820         * modules/pagealign_alloc (Makefile.am): Likewise.
34821         * modules/pathmax (Makefile.am): Likewise.
34822         * modules/physmem (Makefile.am): Likewise.
34823         * modules/poll (Makefile.am): Likewise.
34824         * modules/posixtm (Makefile.am): Likewise.
34825         * modules/posixver (Makefile.am): Likewise.
34826         * modules/putenv (Makefile.am): Likewise.
34827         * modules/quote (Makefile.am): Likewise.
34828         * modules/quotearg (Makefile.am): Likewise.
34829         * modules/raise (Makefile.am): Likewise.
34830         * modules/read-file (Makefile.am): Likewise.
34831         * modules/readline (Makefile.am): Likewise.
34832         * modules/readlink (Makefile.am): Likewise.
34833         * modules/readtokens (Makefile.am): Likewise.
34834         * modules/readutmp (Makefile.am): Likewise.
34835         * modules/realloc (Makefile.am): Likewise.
34836         * modules/regex (Makefile.am): Likewise.
34837         * modules/rename-dest-slash (Makefile.am): Likewise.
34838         * modules/rename (Makefile.am): Likewise.
34839         * modules/rijndael (Makefile.am): Likewise.
34840         * modules/rmdir (Makefile.am): Likewise.
34841         * modules/rpmatch (Makefile.am): Likewise.
34842         * modules/safe-read (Makefile.am): Likewise.
34843         * modules/safe-write (Makefile.am): Likewise.
34844         * modules/same-inode (Makefile.am): Likewise.
34845         * modules/same (Makefile.am): Likewise.
34846         * modules/save-cwd (Makefile.am): Likewise.
34847         * modules/savedir (Makefile.am): Likewise.
34848         * modules/setenv (Makefile.am): Likewise.
34849         * modules/settime (Makefile.am): Likewise.
34850         * modules/sha1 (Makefile.am): Likewise.
34851         * modules/sig2str (Makefile.am): Likewise.
34852         * modules/snprintf (Makefile.am): Likewise.
34853         * modules/stat-macros (Makefile.am): Likewise.
34854         * modules/stat-time (Makefile.am): Likewise.
34855         * modules/stdbool (Makefile.am): Likewise.
34856         * modules/stdint (Makefile.am): Likewise.
34857         * modules/stdlib-safer (Makefile.am): Likewise.
34858         * modules/stpcpy (Makefile.am): Likewise.
34859         * modules/stpncpy (Makefile.am): Likewise.
34860         * modules/strcase (Makefile.am): Likewise.
34861         * modules/strcasestr (Makefile.am): Likewise.
34862         * modules/strchrnul (Makefile.am): Likewise.
34863         * modules/strcspn (Makefile.am): Likewise.
34864         * modules/strdup (Makefile.am): Likewise.
34865         * modules/strerror (Makefile.am): Likewise.
34866         * modules/strftime (Makefile.am): Likewise.
34867         * modules/strndup (Makefile.am): Likewise.
34868         * modules/strnlen (Makefile.am): Likewise.
34869         * modules/strpbrk (Makefile.am): Likewise.
34870         * modules/strsep (Makefile.am): Likewise.
34871         * modules/strstr (Makefile.am): Likewise.
34872         * modules/strtod (Makefile.am): Likewise.
34873         * modules/strtoimax (Makefile.am): Likewise.
34874         * modules/strtok_r (Makefile.am): Likewise.
34875         * modules/strtol (Makefile.am): Likewise.
34876         * modules/strtoll (Makefile.am): Likewise.
34877         * modules/strtoul (Makefile.am): Likewise.
34878         * modules/strtoull (Makefile.am): Likewise.
34879         * modules/strtoumax (Makefile.am): Likewise.
34880         * modules/strverscmp (Makefile.am): Likewise.
34881         * modules/sys_socket (Makefile.am): Likewise.
34882         * modules/sys_stat (Makefile.am): Likewise.
34883         * modules/sysexits (Makefile.am): Likewise.
34884         * modules/time_r (Makefile.am): Likewise.
34885         * modules/timegm (Makefile.am): Likewise.
34886         * modules/timespec (Makefile.am): Likewise.
34887         * modules/tmpfile-safer (Makefile.am): Likewise.
34888         * modules/trim (Makefile.am): Likewise.
34889         * modules/unistd-safer (Makefile.am): Likewise.
34890         * modules/unlinkdir (Makefile.am): Likewise.
34891         * modules/unlocked-io (Makefile.am): Likewise.
34892         * modules/userspec (Makefile.am): Likewise.
34893         * modules/utime (Makefile.am): Likewise.
34894         * modules/utimecmp (Makefile.am): Likewise.
34895         * modules/utimens (Makefile.am): Likewise.
34896         * modules/vasnprintf (Makefile.am): Likewise.
34897         * modules/vasprintf (Makefile.am): Likewise.
34898         * modules/vsnprintf (Makefile.am): Likewise.
34899         * modules/xalloc (Makefile.am): Likewise.
34900         * modules/xgetcwd (Makefile.am): Likewise.
34901         * modules/xnanosleep (Makefile.am): Likewise.
34902         * modules/xreadlink (Makefile.am): Likewise.
34903         * modules/xstrtod (Makefile.am): Likewise.
34904         * modules/xstrtol (Makefile.am): Likewise.
34905         * modules/xstrtold (Makefile.am): Likewise.
34906         * modules/yesno (Makefile.am): Likewise.
34907         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
34908
34909 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34910
34911         * modules/error (Makefile.am): Distribute files through
34912         EXTRA_DIST, not lib_SOURCES.
34913
34914 2006-10-12  Eric Blake  <ebb9@byu.net>
34915
34916         * modules/error (Makefile.am): Distribute files in /lib.
34917         * modules/obstack (Makefile.am): Likewise.
34918
34919 2006-10-12  Bruno Haible  <bruno@clisp.org>
34920
34921         * modules/acl (Makefile.am): Distribute all files in lib/ through
34922         EXTRA_DIST.
34923         * modules/arcfour (Makefile.am): Likewise.
34924         * modules/arctwo (Makefile.am): Likewise.
34925         * modules/argmatch (Makefile.am): Likewise.
34926         * modules/argz (Makefile.am): Likewise.
34927         * modules/atexit (Makefile.am): Likewise.
34928         * modules/backupfile (Makefile.am): Likewise.
34929         * modules/c-strtod (Makefile.am): Likewise.
34930         * modules/c-strtold (Makefile.am): Likewise.
34931         * modules/calloc (Makefile.am): Likewise.
34932         * modules/canon-host (Makefile.am): Likewise.
34933         * modules/canonicalize (Makefile.am): Likewise.
34934         * modules/chdir-long (Makefile.am): Likewise.
34935         * modules/chdir-safer (Makefile.am): Likewise.
34936         * modules/check-version (Makefile.am): Likewise.
34937         * modules/chown (Makefile.am): Likewise.
34938         * modules/cloexec (Makefile.am): Likewise.
34939         * modules/close-stream (Makefile.am): Likewise.
34940         * modules/closeout (Makefile.am): Likewise.
34941         * modules/crc (Makefile.am): Likewise.
34942         * modules/cycle-check (Makefile.am): Likewise.
34943         * modules/des (Makefile.am): Likewise.
34944         * modules/dirfd (Makefile.am): Likewise.
34945         * modules/dirname (Makefile.am): Likewise.
34946         * modules/dup2 (Makefile.am): Likewise.
34947         * modules/euidaccess (Makefile.am): Likewise.
34948         * modules/exclude (Makefile.am): Likewise.
34949         * modules/exitfail (Makefile.am): Likewise.
34950         * modules/fcntl-safer (Makefile.am): Likewise.
34951         * modules/file-type (Makefile.am): Likewise.
34952         * modules/fileblocks (Makefile.am): Likewise.
34953         * modules/filemode (Makefile.am): Likewise.
34954         * modules/filenamecat (Makefile.am): Likewise.
34955         * modules/fnmatch (Makefile.am): Likewise.
34956         * modules/fopen-safer (Makefile.am): Likewise.
34957         * modules/fpending (Makefile.am): Likewise.
34958         * modules/fprintftime (Makefile.am): Likewise.
34959         * modules/free (Makefile.am): Likewise.
34960         * modules/fsusage (Makefile.am): Likewise.
34961         * modules/ftruncate (Makefile.am): Likewise.
34962         * modules/fts (Makefile.am): Likewise.
34963         * modules/gc (Makefile.am): Likewise.
34964         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
34965         * modules/getaddrinfo (Makefile.am): Likewise.
34966         * modules/getcwd (Makefile.am): Likewise.
34967         * modules/getdelim (Makefile.am): Likewise.
34968         * modules/getdomainname (Makefile.am): Likewise.
34969         * modules/getgroups (Makefile.am): Likewise.
34970         * modules/gethostname (Makefile.am): Likewise.
34971         * modules/gethrxtime (Makefile.am): Likewise.
34972         * modules/getline (Makefile.am): Likewise.
34973         * modules/getloadavg (Makefile.am): Likewise.
34974         * modules/getlogin_r (Makefile.am): Likewise.
34975         * modules/getopt (Makefile.am): Likewise.
34976         * modules/getpass (Makefile.am): Likewise.
34977         * modules/getpass-gnu (Makefile.am): Likewise.
34978         * modules/getsubopt (Makefile.am): Likewise.
34979         * modules/gettime (Makefile.am): Likewise.
34980         * modules/gettimeofday (Makefile.am): Likewise.
34981         * modules/getugroups (Makefile.am): Likewise.
34982         * modules/getusershell (Makefile.am): Likewise.
34983         * modules/glob (Makefile.am): Likewise.
34984         * modules/group-member (Makefile.am): Likewise.
34985         * modules/hard-locale (Makefile.am): Likewise.
34986         * modules/hash (Makefile.am): Likewise.
34987         * modules/hmac-md5 (Makefile.am): Likewise.
34988         * modules/hmac-sha1 (Makefile.am): Likewise.
34989         * modules/human (Makefile.am): Likewise.
34990         * modules/idcache (Makefile.am): Likewise.
34991         * modules/imaxabs (Makefile.am): Likewise.
34992         * modules/imaxdiv (Makefile.am): Likewise.
34993         * modules/inet_ntop (Makefile.am): Likewise.
34994         * modules/inet_pton (Makefile.am): Likewise.
34995         * modules/inttostr (Makefile.am): Likewise.
34996         * modules/isapipe (Makefile.am): Likewise.
34997         * modules/lchown (Makefile.am): Likewise.
34998         * modules/long-options (Makefile.am): Likewise.
34999         * modules/lstat (Makefile.am): Likewise.
35000         * modules/malloc (Makefile.am): Likewise.
35001         * modules/mathl (Makefile.am): Likewise.
35002         * modules/mbchar (Makefile.am): Likewise.
35003         * modules/md2 (Makefile.am): Likewise.
35004         * modules/md4 (Makefile.am): Likewise.
35005         * modules/md5 (Makefile.am): Likewise.
35006         * modules/memcasecmp (Makefile.am): Likewise.
35007         * modules/memchr (Makefile.am): Likewise.
35008         * modules/memcmp (Makefile.am): Likewise.
35009         * modules/memcoll (Makefile.am): Likewise.
35010         * modules/memcpy (Makefile.am): Likewise.
35011         * modules/memmem (Makefile.am): Likewise.
35012         * modules/memmove (Makefile.am): Likewise.
35013         * modules/mempcpy (Makefile.am): Likewise.
35014         * modules/memrchr (Makefile.am): Likewise.
35015         * modules/memset (Makefile.am): Likewise.
35016         * modules/memxor (Makefile.am): Likewise.
35017         * modules/mkancesdirs (Makefile.am): Likewise.
35018         * modules/mkdir (Makefile.am): Likewise.
35019         * modules/mkdir-p (Makefile.am): Likewise.
35020         * modules/mkdtemp (Makefile.am): Likewise.
35021         * modules/mkstemp (Makefile.am): Likewise.
35022         * modules/mktime (Makefile.am): Likewise.
35023         * modules/modechange (Makefile.am): Likewise.
35024         * modules/mountlist (Makefile.am): Likewise.
35025         * modules/nanosleep (Makefile.am): Likewise.
35026         * modules/openat (Makefile.am): Likewise.
35027         * modules/pagealign_alloc (Makefile.am): Likewise.
35028         * modules/physmem (Makefile.am): Likewise.
35029         * modules/poll (Makefile.am): Likewise.
35030         * modules/posixtm (Makefile.am): Likewise.
35031         * modules/posixver (Makefile.am): Likewise.
35032         * modules/putenv (Makefile.am): Likewise.
35033         * modules/quote (Makefile.am): Likewise.
35034         * modules/quotearg (Makefile.am): Likewise.
35035         * modules/raise (Makefile.am): Likewise.
35036         * modules/read-file (Makefile.am): Likewise.
35037         * modules/readline (Makefile.am): Likewise.
35038         * modules/readlink (Makefile.am): Likewise.
35039         * modules/readtokens (Makefile.am): Likewise.
35040         * modules/readutmp (Makefile.am): Likewise.
35041         * modules/realloc (Makefile.am): Likewise.
35042         * modules/regex (Makefile.am): Likewise.
35043         * modules/rename (Makefile.am): Likewise.
35044         * modules/rename-dest-slash (Makefile.am): Likewise.
35045         * modules/rijndael (Makefile.am): Likewise.
35046         * modules/rmdir (Makefile.am): Likewise.
35047         * modules/rpmatch (Makefile.am): Likewise.
35048         * modules/safe-read (Makefile.am): Likewise.
35049         * modules/safe-write (Makefile.am): Likewise.
35050         * modules/same (Makefile.am): Likewise.
35051         * modules/save-cwd (Makefile.am): Likewise.
35052         * modules/savedir (Makefile.am): Likewise.
35053         * modules/setenv (Makefile.am): Likewise.
35054         * modules/settime (Makefile.am): Likewise.
35055         * modules/sha1 (Makefile.am): Likewise.
35056         * modules/sig2str (Makefile.am): Likewise.
35057         * modules/snprintf (Makefile.am): Likewise.
35058         * modules/stdlib-safer (Makefile.am): Likewise.
35059         * modules/stpcpy (Makefile.am): Likewise.
35060         * modules/stpncpy (Makefile.am): Likewise.
35061         * modules/strcase (Makefile.am): Likewise.
35062         * modules/strcasestr (Makefile.am): Likewise.
35063         * modules/strchrnul (Makefile.am): Likewise.
35064         * modules/strcspn (Makefile.am): Likewise.
35065         * modules/strdup (Makefile.am): Likewise.
35066         * modules/strerror (Makefile.am): Likewise.
35067         * modules/strftime (Makefile.am): Likewise.
35068         * modules/strndup (Makefile.am): Likewise.
35069         * modules/strnlen (Makefile.am): Likewise.
35070         * modules/strpbrk (Makefile.am): Likewise.
35071         * modules/strsep (Makefile.am): Likewise.
35072         * modules/strstr (Makefile.am): Likewise.
35073         * modules/strtod (Makefile.am): Likewise.
35074         * modules/strtoimax (Makefile.am): Likewise.
35075         * modules/strtok_r (Makefile.am): Likewise.
35076         * modules/strtol (Makefile.am): Likewise.
35077         * modules/strtoll (Makefile.am): Likewise.
35078         * modules/strtoul (Makefile.am): Likewise.
35079         * modules/strtoull (Makefile.am): Likewise.
35080         * modules/strtoumax (Makefile.am): Likewise.
35081         * modules/strverscmp (Makefile.am): Likewise.
35082         * modules/time_r (Makefile.am): Likewise.
35083         * modules/timegm (Makefile.am): Likewise.
35084         * modules/tmpfile-safer (Makefile.am): Likewise.
35085         * modules/unistd-safer (Makefile.am): Likewise.
35086         * modules/unlinkdir (Makefile.am): Likewise.
35087         * modules/userspec (Makefile.am): Likewise.
35088         * modules/utime (Makefile.am): Likewise.
35089         * modules/utimecmp (Makefile.am): Likewise.
35090         * modules/utimens (Makefile.am): Likewise.
35091         * modules/vasnprintf (Makefile.am): Likewise.
35092         * modules/vasprintf (Makefile.am): Likewise.
35093         * modules/vsnprintf (Makefile.am): Likewise.
35094         * modules/xalloc (Makefile.am): Likewise.
35095         * modules/xgetcwd (Makefile.am): Likewise.
35096         * modules/xnanosleep (Makefile.am): Likewise.
35097         * modules/xreadlink (Makefile.am): Likewise.
35098         * modules/xstrtod (Makefile.am): Likewise.
35099         * modules/xstrtol (Makefile.am): Likewise.
35100         * modules/xstrtold (Makefile.am): Likewise.
35101         * modules/yesno (Makefile.am): Likewise.
35102
35103 2006-10-12  Jim Meyering  <jim@meyering.net>
35104
35105         * m4/getloadavg.m4: Revert the change below.
35106
35107         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
35108         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
35109         fail with a symlink, which is what coreutils' ./bootstrap now
35110         creates by default.
35111
35112 2006-10-12  Bruno Haible  <bruno@clisp.org>
35113
35114         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
35115         mingw.
35116         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
35117         MSVC and mingw explicitly.
35118
35119 2006-10-11  Simon Josefsson  <jas@extundo.com>
35120             Bruno Haible  <bruno@clisp.org>
35121
35122         Add support for multiple gnulib-tool invocations in the scope of a
35123         single configure.ac file.
35124         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
35125         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
35126         with the same contents as the _LIBADD variable.
35127         (func_emit_initmacro_start, func_emit_initmacro_end,
35128         func_emit_initmacro_done): New functions.
35129         (func_import, func_create_testdir): Invoke them. Allow the identifiers
35130         gl_LIBOBJS and gl_LTLIBOBJS.
35131
35132 2006-10-11  Bruno Haible  <bruno@clisp.org>
35133
35134         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
35135         (func_create_testdir): Don't create po/Makefile.am, don't invoke
35136         autoreconf. Instead, invoke autopoint explicitly but move back the
35137         *.m4 files from gnulib.
35138
35139 2006-10-11  Bruno Haible  <bruno@clisp.org>
35140
35141         * gnulib-tool (func_usage): Make module names after --create-testdir
35142         optional.
35143         (func_create_testdir): If no module was specified, use nearly all
35144         modules.
35145
35146 2006-10-12  Jim Meyering  <jim@meyering.net>
35147
35148         Big performance improvement for fts-based tools that use FTS_NOSTAT.
35149         Avoid spurious inode-mismatch problems on non-POSIX file systems.
35150         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
35151         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
35152         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
35153         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
35154         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
35155         (fts_set_stat_required): New function.
35156         (fts_open): Defer the calls to fts_stat, if possible or requested.
35157         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
35158         into fts_stat itself.
35159         (fts_read): Perform any required (deferred) fts_stat call.
35160         (fts_build): Likewise, for the directory we're about to open and read.
35161         In the readdir loop, carefully decide whether each entry will require
35162         an eventual call to fts_stat, using dirent.d_type info if available.
35163         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
35164         a command line argument into this function.  Update all callers.
35165         Map a return value of FTS_DOT to FTS_D for a command line argument.
35166         * modules/fts (Depends-on): Add d-type.  Alphabetize.
35167         Thanks to Miklos Szeredi for his tenacity and for the initial
35168         bug report about "find" failing on a FUSE-based file system.
35169
35170         * lib/fts.c (fts_open): Use consistent indentation.
35171
35172 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35173
35174         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
35175         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
35176         reported by Jim Meyering.  All uses of cache variables renamed
35177         to match Autoconf's.
35178         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
35179         the other one.
35180
35181         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35182         Fix misspelling in diagnostic.
35183
35184 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35185
35186         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
35187         defined.  Problem reported by Matthew Woehlke.
35188
35189         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
35190         Add support for Tandem NonStop R series.
35191         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
35192         Use new macro.
35193
35194         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
35195         (has_trailing_slash): Omit size arg; all callers changed.
35196         Omit 'inline', since it doesn't help performance and we'd
35197         need to configure it.
35198         Don't count //, ///, etc. as having a trailing slash.
35199         As a side effect, this removes a C99ism reported by Matthew Woehlke.
35200         (rpl_rename_dest_slash): On failure, use rename's errno rather
35201         than (in some cases) an incorrect or junk errno.
35202         Simplify code by removing need to compute length; this does
35203         cause it to make two passes instead of one over the file name,
35204         but it's worth it.
35205
35206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
35207         change, since Autoconf's version may no longer be appropriate now
35208         that we are using CVS Autoconf's version.  Add support for Tandem.
35209
35210 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35211             Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
35214         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
35215         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
35216         gl_AC_TYPE_LONG_LONG.
35217
35218         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
35219         instead of HAVE_LONG_LONG.
35220         * lib/printf-args.c (printf_fetchargs): Likewise.
35221         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
35222         * lib/vasnprintf.c (VASNPRINTF): Likewise.
35223         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
35224         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
35225         gl_AC_TYPE_LONG_LONG.
35226
35227 2006-10-11  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/longlong.m4: Add comments.
35230         * m4/ulonglong.m4: Likewise.
35231
35232 2006-10-10  Bruno Haible  <bruno@clisp.org>
35233
35234         Make it possible to #define stpcpy, strdup to aliases.
35235         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
35236         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
35237
35238 2006-10-10  Bruno Haible  <bruno@clisp.org>
35239
35240         Make it possible to #define gcd to an alias.
35241         * lib/gcd.c: Include config.h.
35242
35243 2006-10-10  Bruno Haible  <bruno@clisp.org>
35244
35245         Make it possible to #define c_isascii to an alias.
35246         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
35247         defined. Undefine the macros before defining them, to avoid gcc
35248         warnings.
35249         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
35250         define NO_C_CTYPE_MACROS early.
35251
35252 2006-10-10  Bruno Haible  <bruno@clisp.org>
35253
35254         Make it possible to #define set_program_name to an alias.
35255         * lib/progname.c: Don't undefine set_program_name; instead, undefine
35256         ENABLE_RELOCATABLE early.
35257
35258 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35259
35260         Port to Tandem NSK OSS, which has 64-bit signed int but at most
35261         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
35262         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
35263         More generally, don't assume that 64-bit signed int is available
35264         if unsigned int is, and vice versa.
35265         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
35266         unsigned symbols, not on their signed counterparts.
35267         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
35268         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
35269         (UINT64_C, UINTMAX_C):
35270         Likewise.
35271         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
35272         unsigned counterparts.
35273         (Have_long_long, Unsigned): New macros.
35274         (Int): Renamed from INT.
35275         (strtoimax): Use the new macros.
35276         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
35277         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
35278         * modules/inttypes (inttypes.h): Substitute
35279         HAVE_UNSIGNED_LONG_LONG_INT.
35280         * modules/stdint (stdint.h): Likewise.
35281         (Files): Add m4/ulonglong.m4.
35282
35283 2006-10-10  Bruno Haible  <bruno@clisp.org>
35284
35285         Fix a gcc -Wshadow warning.
35286         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
35287         to 'bucket'.
35288         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
35289         gl_linked_indexof_from_to): Likewise.
35290         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
35291         Likewise.
35292         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
35293         Likewise.
35294         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
35295         Reported by Eric Blake.
35296
35297 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
35298
35299         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
35300         for NetBSD.  Problem reported by Bruno Haible.
35301
35302 2006-10-09  Jim Meyering  <jim@meyering.net>
35303
35304         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
35305         Patch from Bruno Haible.
35306
35307 2006-10-09  Jim Meyering  <jim@meyering.net>
35308
35309         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
35310         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
35311         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
35312
35313 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35314
35315         Don't include <config.h> twice; this doesn't work in some cases,
35316         e.g., when config.h has "#define intmax_t long long int" and
35317         we include <config.h>, <inttypes.h>, <config.h> in that order.
35318         Problem reported by Matthew Woehlke in:
35319         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
35320         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
35321         * lib/fts-cycle.c: Don't include config.h.
35322         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
35323         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
35324         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
35325         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
35326         inttypes.h.
35327         * lib/xstrtoumax.c: Likewise.
35328         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
35329         __strtol and the like, so that this module is more like its siblings.
35330         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
35331         Remove; no longer needed now that we assume gnulib inttypes.h.
35332
35333 2006-10-08  Bruno Haible  <bruno@clisp.org>
35334
35335         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
35336         option.
35337
35338 2006-10-07  Jim Meyering  <jim@meyering.net>
35339
35340         * modules/inttypes (inttypes.h): Revert what seems to have been
35341         an inadvertent part of today's change: use "|", not "/" in the
35342         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
35343
35344 2006-10-07  Bruno Haible  <bruno@clisp.org>
35345
35346         * modules/sublist: New file.
35347
35348 2006-10-07  Bruno Haible  <bruno@clisp.org>
35349
35350         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
35351         * modules/argz (argz.h): Likewise.
35352         * modules/arpa_inet (arpa/inet.h): Likewise.
35353         * modules/byteswap (byteswap.h): Likewise.
35354         * modules/configmake (configmake.h): Likewise.
35355         * modules/fcntl (fcntl.h): Likewise.
35356         * modules/fnmatch (fnmatch.h): Likewise.
35357         * modules/getopt (getopt.h): Likewise.
35358         * modules/glob (glob.h): Likewise.
35359         * modules/inttypes (inttypes.h): Likewise.
35360         * modules/netinet_in (netinet/in.h): Likewise.
35361         * modules/poll (poll.h): Likewise.
35362         * modules/stdbool (stdbool.h): Likewise.
35363         * modules/stdint (stdint.h): Likewise.
35364         * modules/sys_select (sys/select.h): Likewise.
35365         * modules/sys_socket (sys/socket.h): Likewise.
35366         * modules/sys_stat (sys/stat.h): Likewise.
35367         * modules/sysexits (sysexits.h): Likewise.
35368         * modules/unistd (unistd.h): Likewise.
35369         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35370         Add a "DO NOT EDIT" comment to the generated file.
35371         (func_import): Likewise for gnulib-comp.m4.
35372
35373 2006-10-07  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/gl_sublist.h: New file.
35376         * lib/gl_sublist.c: New file.
35377
35378 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35379
35380         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
35381         name (relative to the original working directory) and the file
35382         name component (relative to the temporary working directory).  All
35383         callers changed.
35384         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
35385         * lib/mkdir-p.c (make_dir_parents): Likewise.
35386         * lib/mkdir-p.h (make_dir_parents): Likewise.
35387
35388 2006-10-06  Eric Blake  <ebb9@byu.net>
35389
35390         Define several macros for use by the clean-temp module.
35391         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
35392         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
35393         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
35394
35395         * lib/clean-temp.h (close_stream_temp): New declaration.
35396         * lib/clean-temp.c (includes): Pull in headers according to what
35397         other modules are in use.
35398         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
35399
35400 2006-10-06  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
35403         instead of fopen, fwriteerror.
35404
35405 2006-10-06  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
35408         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
35409         int.
35410         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
35411         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
35412         Return an error indicator.
35413         Suggested by Eric Blake.
35414
35415 2006-10-06  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
35418         Reported by Eric Blake.
35419
35420 2006-10-06  Bruno Haible  <bruno@clisp.org>
35421
35422         * modules/closeout (Description): Mention stderr too.
35423
35424 2006-10-06  Bruno Haible  <bruno@clisp.org>
35425         and Paul Eggert  <eggert@cs.ucla.edu>
35426
35427         * lib/closeout.c (close_stdout): Also close stderr.
35428         * lib/closeout.h: Update comment.
35429
35430 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
35431
35432         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
35433         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
35434         * lib/dirchownmod.c: Include lchown.h.
35435         * lib/lchown.c: Don't include files that lchown.h now includes.
35436         Don't declare chown, since lchown.h now does that.
35437         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
35438         (lchown): Define to rpl_chown if lchown is declared but
35439         does not exist.  Declare using a prototype if lchown is not
35440         declared.  Add a copyright notice.
35441         * lib/mkstemp.h: Include <unistd.h>.
35442         * lib/openat.c: Include lchown.h.
35443
35444         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
35445         we now test for that separately.
35446         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
35447         rather than O_NOFOLLOW, when testing whether it's possible to
35448         avoid a race condition reliably.
35449         * lib/savewd.c (savewd_chdir): Likewise.
35450
35451         Remove macros that are no longer needed now that stdint.h is
35452         reliable.
35453         * lib/fsusage.c (UINTMAX_MAX): Remove.
35454         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
35455         * lib/utimecmp.c (SIZE_MAX): Remove.
35456
35457         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
35458
35459         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
35460         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
35461         O_NOATIME works.
35462
35463 2006-10-05  Bruno Haible  <bruno@clisp.org>
35464
35465         * lib/gl_list.h (gl_sortedlist_search_from_to,
35466         gl_sortedlist_indexof_from_to): New declarations.
35467         (gl_list_implementation): New fields sortedlist_search_from_to,
35468         sortedlist_indexof_from_to.
35469         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
35470         inline functions.
35471         * lib/gl_list.c (gl_sortedlist_search_from_to,
35472         gl_sortedlist_indexof_from_to): New functions.
35473         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
35474         function.
35475         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
35476         (gl_array_sortedlist_search_from_to): New function.
35477         (gl_array_list_implementation): Update.
35478         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
35479         function.
35480         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
35481         (gl_carray_sortedlist_search_from_to): New function.
35482         (gl_carray_list_implementation): Update.
35483         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
35484         gl_linked_sortedlist_indexof_from_to): New functions.
35485         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35486         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35487         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
35488         gl_tree_sortedlist_indexof_from_to): New functions.
35489         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35490         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35491         Update.
35492         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35493         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
35494         Update.
35495
35496 2006-10-05  Bruno Haible  <bruno@clisp.org>
35497
35498         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
35499         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
35500         (struct gl_list_implementation): Add fields search_from_to,
35501         indexof_from_to. Remove fields search, indexof.
35502         (gl_list_search): Use the search_from_to method.
35503         (gl_list_search_from, gl_list_search_from_to): New functions.
35504         (gl_list_indexof): Use the indexof_from_to method.
35505         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
35506         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
35507         (gl_list_search_from, gl_list_search_from_to): New functions.
35508         (gl_list_indexof): Use the indexof_from_to method.
35509         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
35510         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
35511         gl_array_indexof. Add start_index, end_index arguments.
35512         (gl_array_search_from_to): Renamed from gl_array_search. Add
35513         start_index, end_index arguments.
35514         (gl_array_remove, gl_array_list_implementation): Update.
35515         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
35516         gl_carray_indexof. Add start_index, end_index arguments.
35517         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
35518         start_index, end_index arguments.
35519         (gl_carray_remove, gl_carray_list_implementation): Update.
35520         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
35521         gl_linked_search. Add start_index, end_index arguments.
35522         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
35523         start_index, end_index arguments.
35524         (gl_linked_remove): Update.
35525         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35526         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35527         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
35528         field to 'size_t'.
35529         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
35530         gl_tree_search. Add start_index, end_index arguments.
35531         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
35532         start_index, end_index arguments.
35533         (gl_tree_remove): Update.
35534         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35535         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35536         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
35537         function.
35538         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
35539         gl_tree_search. Add start_index, end_index arguments.
35540         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
35541         start_index, end_index arguments.
35542         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35543         Update.
35544         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35545
35546 2006-10-05  Bruno Haible  <bruno@clisp.org>
35547
35548         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
35549
35550         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
35551         fwriteerror_temp): New declarations.
35552         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
35553         (descriptors): New variable.
35554         (cleanup): First, close the descriptors.
35555         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
35556         fclose_temp, fwriteerror_temp): New functions.
35557
35558 2006-10-04  Jim Meyering  <jim@meyering.net>
35559
35560         * lib/fts.c (fts_open): Tiny comment change.
35561
35562 2006-10-04  Bruno Haible  <bruno@clisp.org>
35563
35564         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
35565         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
35566         gl_LOCK_BODY.
35567         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
35568         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
35569         gl_LOCK_EARLY_BODY.
35570         (gl_LOCK): Require gl_LOCK_BODY.
35571
35572 2006-10-04  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
35575         (gl_oset_search_atleast): New declaration.
35576         (struct gl_oset_implementation): Add field 'search_atleast'.
35577         (gl_oset_search_atleast): New inline function.
35578         * lib/gl_oset.c (gl_oset_search_atleast): New function.
35579         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
35580         (gl_array_oset_implementation): Update.
35581         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
35582         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
35583         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
35584
35585 2006-10-04  Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
35588
35589 2006-10-03  Bruno Haible  <bruno@clisp.org>
35590
35591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
35592         from gl_avltreehash_list_implementation.
35593
35594 2006-10-03  Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/gl_oset.c (gl_oset_add): Fix return type.
35597
35598 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
35599
35600         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
35601
35602 2006-10-02  Eric Blake  <ebb9@byu.net>
35603
35604         * modules/strnlen (Depends-on): Add extensions.
35605
35606 2006-10-02  Eric Blake  <ebb9@byu.net>
35607
35608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
35609         definition in 2.60+.
35610
35611 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
35612
35613         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
35614         checks.
35615
35616 2006-10-02  Bruno Haible  <bruno@clisp.org>
35617
35618         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
35619         to the AUTOMAKE_OPTIONS.
35620         Reported by Jim Meyering.
35621
35622 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35623
35624         Work around bug in Solaris 10 /proc file system:
35625         /proc/self/fd/NNN/.. isn't the parent directory of
35626         the directory whose file descriptor is NNN.  This needs to
35627         be worked around at run time, not compile time, since a
35628         program might be built on Solaris 8, where things work, and
35629         run on Solaris 10.
35630         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
35631         to use the following interface instead:
35632         (OPENAT_BUFFER_SIZE): New macro.
35633         (openat_proc_name): New function.
35634         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
35635         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
35636         Likewise.
35637         * lib/openat-proc.c: New file.
35638         * modules/openat (Files): Add lib/openat-proc.c.
35639         (Depends-on): Add same-inode, stdbool.
35640         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
35641
35642 2006-09-29  Bruno Haible  <bruno@clisp.org>
35643
35644         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
35645         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
35646         argument. Set stdout_closed before testing for ferror, not after.
35647         (fwriteerror, fwriteerror_no_ebadf): New functions.
35648
35649 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35650
35651         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
35652
35653 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
35654
35655         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
35656         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
35657
35658 2006-09-28  Jim Meyering  <jim@meyering.net>
35659
35660         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
35661         Include <unistd.h>.
35662
35663 2006-09-28  Bruno Haible  <bruno@clisp.org>
35664
35665         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
35666         * modules/linkedhash-list (Depends-on): Likewise.
35667         * modules/rbtreehash-list (Depends-on): Likewise.
35668
35669 2006-09-28  Bruno Haible  <bruno@clisp.org>
35670
35671         * lib/strndup.h: Simplify the redefinition of strndup.
35672         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
35673         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
35674
35675 2006-09-28  Bruno Haible  <bruno@clisp.org>
35676
35677         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
35678         * lib/gl_linkedhash_list.c: Likewise.
35679         * lib/gl_rbtreehash_list.c: Likewise.
35680
35681 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35682
35683         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
35684         getaddrinfo.
35685
35686         * lib/__fpending.h: Don't include <stdio_ext.h> unless
35687         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
35688         it causes <stdio_ext.h> to cause a compile-time error.
35689         Problem reported by Nelson H. F. Beebe.
35690         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
35691         of HAVE_DECL___PENDING.
35692
35693         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
35694         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
35695         declaration.
35696
35697 2006-09-27  Jim Meyering  <jim@meyering.net>
35698
35699         This file could end up with a definition for a function
35700         named __strndup, rather than rpl_strndup on a system with
35701         incomplete weak_alias support.
35702         * lib/strndup.c (strndup): Rename from __strndup.
35703         Remove #defines that used to map __strndup to strndup.
35704         Don't use K&R prototypes.
35705         Remove LIBC-related code, since this file is not sync'd with glibc.
35706         * lib/strndup.h: Revamp, accordingly.
35707         * m4/strndup.m4: Modernize.
35708
35709 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35710
35711         * modules/savewd (Depends-on): Add 'raise'.
35712         * lib/savewd.c: Include <signal.h>, for 'raise'.
35713
35714 2006-09-26  Jim Meyering  <jim@meyering.net>
35715
35716         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
35717         when we detect Darwin 8.7.0's acl_get_file bug.
35718         Rearrange to perform the new (below) run-test while $LIBS
35719         contains any acl-related library.  Set USE_ACL at the end.
35720         (gl_ACL_GET_FILE): New function.
35721
35722 2006-09-26  Eric Blake  <ebb9@byu.net>
35723
35724         * lib/verror.c: Include <config.h> unconditionally.
35725
35726 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
35727
35728         * modules/clock-time (Maintainer): Add self.
35729         * modules/getlogin_r (Depends-on): Add extensions.
35730
35731 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35732
35733         * modules/clock-time: New module.
35734         * modules/nanosleep (Depends-on): Add clock-time.
35735         * modules/gethrxtime (Depends-on): Likewise.
35736         * modules/gettime (Depends-on): Likewise.
35737         * modules/settime (Depends-on): Likewise.
35738
35739         * modules/fts-lgpl: Depend on openat.
35740         * modules/mkancesdirs: Depend on savewd.
35741         * modules/mkdir-p: Likewise.
35742
35743 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35744
35745         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
35746
35747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
35748         `gl_have_arbitrary_file_name_length_limit' to
35749         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
35750         actually works between configure runs.
35751
35752 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35753             Bruno Haible  <bruno@clisp.org>
35754
35755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
35756
35757 2006-09-25  Jim Meyering  <jim@meyering.net>
35758
35759         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
35760         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
35761
35762 2006-09-25  Eric Blake  <ebb9@byu.net>
35763
35764         * gnulib-tool (func_import, func_create_testdir): Fix typos in
35765         exec's in 2006-09-18 patch when shuffling fds.
35766
35767 2006-09-25  Bruno Haible  <bruno@clisp.org>
35768
35769         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
35770         Reported by Jim Meyering.
35771
35772 2006-09-24  Jim Meyering  <jim@meyering.net>
35773
35774         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
35775         compare a pointer against a literal "0".  That caused failures with
35776         at least HP-UX's hpcc.
35777
35778 2006-09-22  Simon Josefsson  <jas@extundo.com>
35779
35780         * modules/gc-sha1:
35781         * modules/gc-md4:
35782         * modules/gc-hmac-sha1:
35783         * modules/gc-hmac-md5:
35784         * modules/gc-des:
35785         * modules/gc-arcfour: Distribute more files.
35786
35787 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35788
35789         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
35790         (gl_linked_iterator_from_to): Initialize struct completely.
35791         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
35792         (gl_tree_iterator_from_to): Likewise
35793         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
35794         * lib/gl_array_list.c [lint] (gl_array_iterator)
35795         (gl_array_iterator_from_to): Likewise.
35796         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
35797         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
35798         (gl_carray_iterator_from_to): Likewise.
35799
35800         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
35801         * lib/md4.c (md4_process_block): Remove unused variable.
35802         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
35803         parentheses for clarity.
35804
35805 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35806
35807         * modules/bison-i18n (Depends-on): Add gettext.
35808
35809 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35810
35811         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
35812         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35813         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
35814         also add missing comma that caused broken test.
35815         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
35816         stdlib.h, for `abort'.
35817         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
35818         variables.
35819         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
35820         include unistd.h if present, for `rmdir'.
35821         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
35822         variables.
35823         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
35824         in the process include standard headers for prototypes.
35825         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
35826         gets declared on GNU/Linux.
35827         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
35828         unistd.h, for `rmdir'.
35829         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
35830
35831         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
35832         always true.
35833         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
35834
35835         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
35836
35837 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35838
35839         * gnulib-tool (func_version): Create output all at once.  This
35840         may help avoid triggering unnecessary SIGPIPEs, and at any
35841         rate it doesn't hurt.
35842
35843 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35844             Bruno Haible  <bruno@clisp.org>
35845
35846         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
35847         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35848         * m4/signed.m4 (bh_C_SIGNED): Likewise.
35849
35850         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
35851         (gl_FUNC_VASPRINTF): Invoke it.
35852
35853 2006-09-22  Bruno Haible  <bruno@clisp.org>
35854
35855         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
35856         getloadavg.c as first argument.
35857
35858 2006-09-22  Bruno Haible  <bruno@clisp.org>
35859
35860         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
35861         at the beginning of the gl_INIT macro.
35862         * modules/getloadavg (configure.ac): Pass $gl_source_base to
35863         gl_GETLOADAVG.
35864
35865 2006-09-22  Bruno Haible  <bruno@clisp.org>
35866
35867         * gnulib-tool (func_create_megatestdir): Don't include the config-h
35868         module.
35869         Suggested by Ralf Wildenhues.
35870
35871 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35872
35873         Import this patch from libc:
35874
35875         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
35876
35877         * lib/regex_internal.c (re_string_reconstruct): Handle
35878         offset < pstr->valid_raw_len && pstr->offsets_needed case.
35879         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
35880         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
35881         re_string_context_at.
35882
35883         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
35884         now requires it.
35885         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
35886         gl_REGEX now does it for us.
35887         (gl_REGEX): Add test taken from
35888         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
35889
35890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
35891         Check that large offsets work.  Modernize Autoconf usages.
35892         Prefer "yes" to mean a good thing rather than a bad.
35893         Don't put "#define mkstemp" in config.h, as this might interfere
35894         with standard system headers that "#define mkstemp mkstemp64".
35895
35896         * modules/mkstemp (Depends-on): Add extensions, so that
35897         mkstemp is visible on some platforms.
35898         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
35899         (Include): Change to "mkstemp.h" from <stdlib.h>.
35900         (Files): Add mkstemp.h.
35901
35902         * lib/mkstemp.h: New file, since some standard headers
35903         #define mkstemp.
35904         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
35905         Include "mkstemp.h".
35906         Make the _LIBC code resemble glibc original more,
35907         e.g., use K&R style.
35908         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
35909         (mkstemp): Remove, since mkstemp.h does this for us.
35910         * lib/stdlib--.h: Include mkstemp.h.
35911
35912         Import this patch from libc:
35913
35914         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
35915
35916         * lib/tempname.c (__gen_tempname): Change attempts_min
35917         into a macro.  Use preprocessor to decide how to initialize
35918         attempts [Coverity CID 67].
35919
35920 2006-09-20  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/mkdtemp.c: Import from libc.
35923         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
35924                 * sysdeps/posix/tempname.c (__gen_tempname): Change
35925                 attempts_min into a macro.  Use preprocessor to decide how to
35926                 initialize attempts [Coverity CID 67].
35927         2001-11-27  Paul Eggert  <eggert@twinsun.com>
35928                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
35929                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
35930
35931 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35932
35933         * gnulib-tool (func_exit): New function, to allow to pass the
35934         exit status portably through the trap.  Use everywhere.
35935         (--help, --version): Signal a write error.
35936         (trap): catch SIGPIPE, for write errors.
35937         Exit at the end of the trap, with the correct exit status.
35938
35939 2006-09-19  Karl Berry  <karl@gnu.org>
35940
35941         * doc/gnulib.texi: note about the license texinfo files.
35942
35943 2006-09-19  Eric Blake  <ebb9@byu.net>
35944
35945         * gnulib-tool: Avoid space-tab.
35946
35947 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
35948
35949         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
35950         that prevented coreutils 6.1 from building.  Problem reported
35951         by Petter Reinholdtsen.
35952
35953 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
35954
35955         * gnulib-tool (avoidlist): Fix typo that broke options like
35956         --avoid=lock that are used by coreutils bootstrap.
35957
35958 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
35959
35960         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
35961         more systematically.
35962
35963 2006-09-18  Jim Meyering  <jim@meyering.net>
35964
35965         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
35966
35967 2006-09-18  Bruno Haible  <bruno@clisp.org>
35968
35969         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
35970
35971 2006-09-18  Bruno Haible  <bruno@clisp.org>
35972
35973         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
35974         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
35975         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
35976         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
35977         * m4/gettext.m4: Require autoconf >= 2.52.
35978         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
35979         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
35980         of gl_cv_header_inttypes_h.
35981
35982 2006-09-18  Bruno Haible  <bruno@clisp.org>
35983
35984         * lib/javaversion.c: Include configmake.h.
35985
35986 2006-09-18  Bruno Haible  <bruno@clisp.org>
35987
35988         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
35989         avoid that the while loops be executed in a subshell.
35990
35991 2006-09-18  Bruno Haible  <bruno@clisp.org>
35992
35993         * MODULES.html.sh (func_module): Break long lines.
35994         Suggested by Bruce Korb <bkorb@gnu.org>.
35995
35996 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35997
35998         Speed up by a factor of 1.12.
35999         * gnulib-tool (nl): New variable.
36000         (func_import): Rewrite include directive extraction to only read each
36001         directive once.
36002
36003 2006-09-17  Bruno Haible  <bruno@clisp.org>
36004
36005         * modules/javaversion (Makefile.am): Remove DEFS setting.
36006         (Depends-on): Add configmake, for PKGDATADIR definition.
36007
36008 2006-09-17  Bruno Haible  <bruno@clisp.org>
36009
36010         * gnulib-tool (func_create_testdir): Rewrite all files at once.
36011
36012 2006-09-17  Bruno Haible  <bruno@clisp.org>
36013
36014         * gnulib-tool (func_append): New function, stolen from libtool.m4.
36015         (func_modules_transitive_closure, func_modules_add_dummy,
36016         func_modules_to_filelist, func_import, func_create_testdir,
36017         func_create_megatestdir, ...): Use it wherever possible.
36018         Suggested by Ralf Wildenhues.
36019
36020 2006-09-16  Karl Berry  <karl@gnu.org>
36021
36022         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
36023         to avoid sectioning errors.
36024         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
36025         [ifinfo]: blank line after @center-ed titles.
36026         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
36027         Spell FSF address consistently with others.
36028         (These changes approved by rms.)
36029
36030 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36031
36032         Speed up by a factor of 1.61.
36033         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
36034         already checked module names again.
36035
36036 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36037
36038         Speed up by a factor of 1.13.
36039         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
36040         for new_files, and the input to func_add_or_update.
36041
36042 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36043
36044         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
36045         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
36046
36047 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36048
36049         * modules/mkancesdirs (Depends-on): Add fcntl.
36050         * modules/savewd: New file.
36051         * MODULES.html.sh (File system functions): Add savewd.
36052
36053         * modules/configmake (Makefile.am): Add support for the
36054         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
36055
36056 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36057
36058         * m4/savewd.m4: New file.
36059
36060 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36061
36062         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
36063         (dirchownmod): New arg FD.  All callers changed.
36064         Use FD rather than opening the directory ourself, as opening is
36065         now the caller's responsibility.
36066         * lib/dirchownmod.h: Likewise.
36067         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
36068         hosts that require <sys/types.h> before <sys/stat.h>.  Include
36069         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
36070         (test_dir): Remove.
36071         (mkancesdirs): Return length of prefix of FILE that has already
36072         been made, or -2 if there is a child doing the work.  Redo
36073         algorithm so that it is O(N) rather than O(N**2).  Optimize away
36074         ".", and treat ".." specially since it might stray back into
36075         already-created areas.  Use a subprocess if necessary.  New arg
36076         WD; all users changed.  MAKE_DIR function should now return 1
36077         if it creates a directory that is not readable.  Return -2 if
36078         a child process is spun off.
36079         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
36080         Adjust signature to match code.
36081         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
36082         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
36083         all users changed.
36084         * lib/savewd.c, lib/savewd.h: New files.
36085
36086 2006-09-15  Jim Meyering  <jim@meyering.net>
36087
36088         * modules/rename-dest-slash: New module.
36089         * MODULES.html.sh (posix_compat): Add it here.
36090
36091         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
36092
36093 2006-09-15  Jim Meyering  <jim@meyering.net>
36094
36095         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
36096         file.
36097
36098         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
36099
36100 2006-09-15  Jim Meyering  <jim@meyering.net>
36101
36102         * lib/rename-dest-slash.c (has_trailing_slash): Use
36103         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
36104         (rpl_rename_dest_slash): Perform the cheaper trailing slash
36105         test before testing whether SRC is a directory.
36106         Suggestions from Bruno Haible.
36107
36108         Avoid a warning about an unused variable.
36109         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
36110         into the #ifdef block where it's used.
36111
36112         * lib/rename-dest-slash.c: New file.
36113
36114 2006-09-14  Bruno Haible  <bruno@clisp.org>
36115
36116         * lib/allocsa.c: Include <config.h> unconditionally.
36117         * lib/asnprintf.c: Likewise.
36118         * lib/asprintf.c: Likewise.
36119         * lib/c-strcasecmp.c: Likewise.
36120         * lib/c-strcasestr.c: Likewise.
36121         * lib/c-strncasecmp.c: Likewise.
36122         * lib/c-strstr.c: Likewise.
36123         * lib/classpath.c: Likewise.
36124         * lib/clean-temp.c: Likewise.
36125         * lib/concatpath.c: Likewise.
36126         * lib/copy-file.c: Likewise.
36127         * lib/csharpcomp.c: Likewise.
36128         * lib/csharpexec.c: Likewise.
36129         * lib/execute.c: Likewise.
36130         * lib/fatal-signal.c: Likewise.
36131         * lib/findprog.c: Likewise.
36132         * lib/fwriteerror.c: Likewise.
36133         * lib/gl_array_list.c: Likewise.
36134         * lib/gl_array_oset.c: Likewise.
36135         * lib/gl_avltree_list.c: Likewise.
36136         * lib/gl_avltree_oset.c: Likewise.
36137         * lib/gl_avltreehash_list.c: Likewise.
36138         * lib/gl_carray_list.c: Likewise.
36139         * lib/gl_linked_list.c: Likewise.
36140         * lib/gl_linkedhash_list.c: Likewise.
36141         * lib/gl_list.c: Likewise.
36142         * lib/gl_oset.c: Likewise.
36143         * lib/gl_rbtree_list.c: Likewise.
36144         * lib/gl_rbtree_oset.c: Likewise.
36145         * lib/gl_rbtreehash_list.c: Likewise.
36146         * lib/imaxabs.c: Likewise.
36147         * lib/imaxdiv.c: Likewise.
36148         * lib/javacomp.c: Likewise.
36149         * lib/javaexec.c: Likewise.
36150         * lib/javaversion.c: Likewise.
36151         * lib/linebreak.c: Likewise.
36152         * lib/localcharset.c: Likewise.
36153         * lib/lock.c: Likewise.
36154         * lib/mbchar.c: Likewise.
36155         * lib/mbswidth.c: Likewise.
36156         * lib/mkdtemp.c: Likewise.
36157         * lib/pipe.c: Likewise.
36158         * lib/printf-args.c: Likewise.
36159         * lib/printf-parse.c: Likewise.
36160         * lib/progname.c: Likewise.
36161         * lib/progreloc.c: Likewise.
36162         * lib/readlink.c: Likewise.
36163         * lib/sh-quote.c: Likewise.
36164         * lib/stpcpy.c: Likewise.
36165         * lib/stpncpy.c: Likewise.
36166         * lib/strcasecmp.c: Likewise.
36167         * lib/strcasestr.c: Likewise.
36168         * lib/strcspn.c: Likewise.
36169         * lib/striconv.c: Likewise.
36170         * lib/strncasecmp.c: Likewise.
36171         * lib/strnlen1.c: Likewise.
36172         * lib/strstr.c: Likewise.
36173         * lib/strtok_r.c: Likewise.
36174         * lib/tls.c: Likewise.
36175         * lib/tmpdir.c: Likewise.
36176         * lib/unicodeio.c: Likewise.
36177         * lib/unsetenv.c: Likewise.
36178         * lib/vasnprintf.c: Likewise.
36179         * lib/vasprintf.c: Likewise.
36180         * lib/wait-process.c: Likewise.
36181         * lib/xallocsa.c: Likewise.
36182         * lib/xsetenv.c: Likewise.
36183         * lib/xstriconv.c: Likewise.
36184
36185 2006-09-13  Simon Josefsson  <jas@extundo.com>
36186
36187         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
36188         that internally, suggested by Ralf Wildenhues
36189         <Ralf.Wildenhues@gmx.de>.
36190
36191 2006-09-13  Simon Josefsson  <jas@extundo.com>
36192
36193         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
36194         @LIBOBJS@.
36195         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36196
36197 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
36198
36199         * lib/_fpending.c: Include <config.h> unconditionally, since we no
36200         longer worry about uses that don't define HAVE_CONFIG_H.
36201         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
36202         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
36203         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
36204         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
36205         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
36206         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
36207         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
36208         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
36209         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
36210         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
36211         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
36212         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
36213         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
36214         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
36215         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
36216         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
36217         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
36218         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
36219         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
36220         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
36221         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
36222         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
36223         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
36224         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
36225         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
36226         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
36227         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
36228         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
36229         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
36230         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
36231         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
36232         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
36233         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
36234         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
36235         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
36236         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
36237         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
36238         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
36239         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
36240         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
36241         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
36242         Likewise.
36243
36244 2006-09-13  Eric Blake  <ebb9@byu.net>
36245
36246         * lib/getopt.c: Fix typo in last commit.
36247
36248 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36249
36250         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
36251         dgettext.
36252
36253 2006-09-12  Jim Meyering  <jim@meyering.net>
36254
36255         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
36256         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
36257         Reported by Nelson H. F. Beebe.
36258
36259 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36260
36261         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
36262         program_invocation_name and program_invocation_short_name are
36263         initialized.
36264         * lib/argp-namefrob.h: Move declarations of program_invocation_name
36265         and program_invocation_short_name to argp.h, so they are visible
36266         to user programs.
36267         * lib/argp.h: Likewise
36268
36269 2006-09-10  Bruno Haible  <bruno@clisp.org>
36270
36271         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
36272         m4/inttypes_h.m4, m4/uintmax_t.m4.
36273
36274 2006-09-10  Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
36277         gl_AC_TYPE_UINTMAX_T.
36278
36279 2006-09-10  Bruno Haible  <bruno@clisp.org>
36280
36281         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
36282
36283 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36284
36285         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
36286         convention.  Text proposed by Bruno Haible.
36287         (struct argp_option): Document the use of N_() wrappers.
36288
36289         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
36290         '\v', and translate the two parts separately, instead of feeding
36291         the whole string to gettext.  This allows to exclude
36292         '\v' from the strings visible to the translator by writing doc
36293         strings as N_("..") "\v" N_("..").
36294
36295 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
36296
36297         * config/srclist.txt: Undo latest change; the bug was fixed.
36298
36299 2006-09-09  Bruno Haible  <bruno@clisp.org>
36300
36301         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
36302         assignments if building a library without libtool.
36303         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
36304         in func_emit_lib_Makefile_am.
36305         (func_import): When building a static library libfoo.a, arrange to
36306         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
36307         (func_create_testdir): Likewise.
36308         * modules/gc (configure.ac, Makefile.am): If building statically,
36309         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
36310         * modules/iconvme (configure.ac, Makefile.am): Likewise.
36311         * modules/striconv (configure.ac, Makefile.am): Likewise.
36312         Based on a suggestion by Ralf Wildenhues.
36313
36314 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36315
36316         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
36317         Check for unistd.h too, since Autoconf doesn't assume POSIX.
36318         Also:
36319
36320         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36321         Add year_2050_test to catch glibc bug 2821
36322         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
36323
36324         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36325         Prefer #ifdef to #if.
36326
36327         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
36328         Return from 'main' instead of calling 'exit'.
36329
36330 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36331
36332         * lib/mktime.c (guess_time_tm): Fix bug where mktime
36333         returned the maximum time_t value rather than (time_t) -1.
36334         Problem originally reported by William Bardwell
36335         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
36336
36337         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
36338         Moved to here ...
36339         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
36340         ... from here.
36341
36342 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
36343
36344         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
36345         2821 is fixed.
36346
36347 2006-09-08  Jim Meyering  <jim@meyering.net>
36348
36349         Don't make generated files read-only.  That would bother too many
36350         people.  However, do retain the ability to work when targets are
36351         read-only: remove the destination and temporary files before writing
36352         them (when generated via sed or echo), or by using the -f option for
36353         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
36354         * modules/alloca-opt, modules/argz, modules/arpa_inet:
36355         * modules/byteswap, modules/configmake, modules/fcntl:
36356         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
36357         * modules/localcharset, modules/netinet_in, modules/poll:
36358         * modules/stdbool, modules/stdint, modules/sys_select:
36359         * modules/sys_socket, modules/sys_stat, modules/sysexits:
36360
36361 2006-09-08  Jim Meyering  <jim@meyering.net>
36362
36363         Avoid new build failure on FreeBSD 6.0.
36364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
36365         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
36366         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
36367
36368 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36369
36370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
36371
36372 2006-09-07  Jim Meyering  <jim@meyering.net>
36373
36374         Fix global typo in last change: use chmod u-w, not chmod u-x.
36375         Spotted by Paul Eggert and Bruce Korb.
36376         * modules/alloca-opt, modules/argz, modules/arpa_inet:
36377         * modules/byteswap, modules/configmake, modules/fcntl:
36378         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
36379         * modules/localcharset, modules/netinet_in, modules/poll:
36380         * modules/stdbool, modules/stdint, modules/sys_select:
36381         * modules/sys_socket, modules/sys_stat, modules/sysexits:
36382
36383 2006-09-06  Jim Meyering  <jim@meyering.net>
36384
36385         Make generated files be read-only.
36386         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
36387         Ensure that each generated file is now read-only.
36388         * modules/argz: Likewise.
36389         * modules/arpa_inet: Likewise.
36390         * modules/byteswap: Likewise.
36391         * modules/configmake: Likewise.
36392         * modules/fcntl: Likewise.
36393         * modules/fnmatch: Likewise.
36394         * modules/getopt: Likewise.
36395         * modules/glob: Likewise.
36396         * modules/inttypes: Likewise.
36397         * modules/netinet_in: Likewise.
36398         * modules/poll: Likewise.
36399         * modules/stdbool: Likewise.
36400         * modules/stdint: Likewise.
36401         * modules/sys_select: Likewise.
36402         * modules/sys_socket: Likewise.
36403         * modules/sys_stat: Likewise.
36404         * modules/sysexits: Likewise.
36405         * modules/localcharset: Same as above, but continue using temporary
36406         file named "t-$@" (why different?) rather than the "$@-t" used
36407         everywhere else.
36408
36409         * modules/sysexits (Makefile.am): Replace literal occurrences
36410         of "sysexit.h" more readable, and more consistent, "$@".
36411
36412 2006-09-06  Bruno Haible  <bruno@clisp.org>
36413
36414         * modules/striconv: New file.
36415         * modules/xstriconv: New file.
36416         * MODULES.html.sh (Internationalization functions): Add striconv,
36417         xstriconv.
36418
36419 2006-09-06  Bruno Haible  <bruno@clisp.org>
36420
36421         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
36422         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
36423         not using libtool correctly.
36424
36425 2006-09-06  Bruno Haible  <bruno@clisp.org>
36426
36427         * lib/striconv.h: New file.
36428         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
36429         iconvstring.c.
36430         * lib/xstriconv.h: New file.
36431         * lib/xstriconv.c: New file.
36432
36433 2006-09-06  Bruno Haible  <bruno@clisp.org>
36434
36435         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
36436         lib_..._LDFLAGS.
36437
36438 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36439
36440         * lib/argz_.h: Sync from Libtool.
36441
36442         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
36443                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36444
36445         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
36446
36447 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
36448
36449         * modules/trim: New file.
36450
36451 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
36452
36453         * lib/trim.h: New file.
36454         * lib/trim.c: New file.
36455
36456 2006-09-05  Bruno Haible  <bruno@clisp.org>
36457
36458         * MODULES.html.sh (String handling): Add trim.
36459
36460 2006-09-04  Karl Berry  <karl@gnu.org>
36461
36462         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
36463         until next release.
36464
36465 2006-09-03  Bruno Haible  <bruno@clisp.org>
36466
36467         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
36468         correctly.
36469
36470 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36471
36472         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
36473         not gl_GETLOADAVG.  Omit unneeded semicolons.
36474         Problems reported by Ralf Wildenhues in
36475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
36476         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
36477         at the end, which is the usual gnulib style.
36478
36479         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
36480         of doing all the work ourselves.
36481         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
36482         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
36483
36484 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36485
36486         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
36487         Problem reported by Ralf Wildenhues in
36488         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
36489
36490         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
36491         HAVE_STRUCT_STATFS_F_FSTYPENAME.
36492
36493 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36494
36495         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
36496         yesterday's patch by changing test -n to test -z.
36497
36498 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36499
36500         * modules/getloadavg (Files): Add m4/getloadavg.m4.
36501         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
36502         the former is now obsolescent.
36503
36504         * modules/chdir-long (Depends-on): Add fcntl.
36505
36506 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36507
36508         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
36509         obsolescent, and programs should use gnulib instead.
36510         * m4/getloadavg.m4: New file, with contents taken from Autoconf
36511         but with prefixes changed.
36512
36513 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36514
36515         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
36516         or stdbool.h, because they might not exist while configuring.
36517
36518         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
36519         Don't include unistd.h or limits.h; not needed, since chdir-long.h
36520         does that for us.
36521         (O_DIRECTORY): Remove.
36522
36523 2006-08-31  Eric Blake  <ebb9@byu.net>
36524
36525         * gnulib-tool: Don't let emacs change spaces to TAB.
36526
36527 2006-08-31  Bruno Haible  <bruno@clisp.org>
36528
36529         * gnulib-tool: When calling func_import more than once, do it in a
36530         subshell.
36531         Reported by Eric Blake <ebb9@byu.net>.
36532
36533 2006-08-31  Bruno Haible  <bruno@clisp.org>
36534
36535         * gnulib-tool (nl): Remove variable.
36536         (sed_transform_lib_file): Use more robust test for config-h module.
36537         (func_import): Fix typo in 2006-08-25 patch.
36538
36539 2006-08-31  Bruno Haible  <bruno@clisp.org>
36540
36541         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
36542         specified, augment Makefile.am variables instead of assigning them.
36543
36544 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
36545
36546         Work around a bug in both the Linux and SunOS 64-bit kernels:
36547         nanosleep mishandles sleeps for longer than 2**31 seconds.
36548         Problem reported by Frank v Waveren in
36549         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
36550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
36551         Check for nanosleep bug.
36552         (LIB_NANOSLEEP): Append clock_gettime library if needed.
36553
36554 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
36555
36556         Work around a bug in both the Linux and SunOS 64-bit kernels:
36557         nanosleep mishandles sleeps for longer than 2**31 seconds.
36558         Problem reported by Frank v Waveren in
36559         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
36560         * lib/nanosleep.c (BILLION): New constant.
36561         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
36562         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
36563         implementation.
36564
36565 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
36566
36567         * modules/nanosleep (Depends-on): Add gettime.
36568
36569 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
36570         and Simon Josefsson  <jas@extundo.com>
36571         and Oskar Liljeblad  <oskar@osk.mine.nu>
36572
36573         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
36574         * gnulib-tool (func_import): New license type 'unmodifiable license
36575         text'.
36576         * modules/fdl: Use it.  Longer description.
36577         * module/gpl, module/lgpl: New files.
36578
36579 2006-08-30  Jim Meyering  <jim@meyering.net>
36580
36581         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
36582         shadowing the parameter.
36583
36584 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36585
36586         Sync from Libtool:
36587
36588         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36589
36590         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
36591         sharing with gnulib.  Report by Eric Blake.
36592
36593 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36594
36595         * modules/isapipe: New file.
36596         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
36597
36598 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36599
36600         * modules/configmake (Makefile.am): Add a comment, and omit
36601         the CONFIGMAKE_ prefix from generated macro names.  Suggested
36602         by Bruno Haible.
36603
36604 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36605
36606         * m4/isapipe.m4: New file.
36607
36608 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36609
36610         * lib/isapipe.c, lib/isapipe.h: New files.
36611
36612 2006-08-29  Jim Meyering  <jim@meyering.net>
36613
36614         * modules/configmake (Makefile.am): Make configmake.h depend on
36615         Makefile.  Otherwise, a stale configmake.h could hang around.
36616
36617 2006-08-29  Eric Blake  <ebb9@byu.net>
36618
36619         * lib/error.c (error_at_line, print_errno_message): Match libc, after
36620         resolution of upstream bug 3044.
36621
36622 2006-08-29  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/localcharset (Depends-on): Add configmake.
36625         (Makefile.am): Remove setting of LIBDIR through DEFS.
36626
36627 2006-08-29  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
36630         defined.
36631
36632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
36633
36634         * modules/fcntl: New file.
36635         * modules/chdir-safer (Depends-on): Add fcntl.
36636         * modules/fts: Likewise.
36637         * modules/mkdir-p: Likewise.
36638
36639         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
36640         This undoes the most recent change, since we're now addressing the
36641         problem in a different way.
36642
36643         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
36644         into output, since the output might be called Makefile.am even
36645         if $makefile_name is something different.
36646         (func_import): Use $makefile_am rather than
36647         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
36648         empty.
36649
36650         * modules/inttypes (Files): Add m4/inttypes-h.m4.
36651
36652 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
36653
36654         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
36655         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
36656         recent change to stdint.m4, since we're now addressing the problem in a
36657         different way.
36658
36659 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
36660
36661         * m4/fcntl_h.m4: New file.
36662
36663 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
36664
36665         * lib/fcntl_.h: New file.
36666         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
36667         the fcntl module.
36668         * lib/dirchownmod.c: Likewise.
36669         * lib/fts.c: Likewise.
36670
36671         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
36672         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
36673         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
36674         just before including <inttypes.h>, to avoid circular inclusion.
36675
36676 2006-08-28  Jim Meyering  <jim@meyering.net>
36677
36678         * doc/visibility.texi: Actually read and correct the grammar of the
36679         sentence affected by yesterday's change.
36680
36681 2006-08-28  Eric Blake  <ebb9@byu.net>
36682
36683         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
36684         needs wrapper.
36685
36686 2006-08-28  Eric Blake  <ebb9@byu.net>
36687
36688         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
36689
36690 2006-08-28  Eric Blake  <ebb9@byu.net>
36691
36692         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
36693
36694 2006-08-28  Bruno Haible  <bruno@clisp.org>
36695
36696         * modules/c-strstr: New file, from GNU gettext.
36697         * MODULES.html.sh (String handling): Add c-strstr.
36698
36699 2006-08-28  Bruno Haible  <bruno@clisp.org>
36700
36701         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
36702         macros.
36703         Reported by Eric Blake.
36704
36705 2006-08-28  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
36708         (VASNPRINTF): Return a string of length > INT_MAX without failing.
36709         * lib/vasprintf.c: Include errno.h, limits.h.
36710         (EOVERFLOW): New fallback definition.
36711         (vasprintf): Test here whether the string length is > INT_MAX.
36712         * lib/vsnprintf.c: Include errno.h, limits.h.
36713         (EOVERFLOW): New fallback definition.
36714         (vsnprintf): Fix bug when generated string was too long for the buffer.
36715         Test here whether the string length is > INT_MAX.
36716
36717 2006-08-28  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/inttypes_.h (SCNX*): Remove definitions.
36720         Reported by Eric Blake.
36721
36722 2006-08-28  Bruno Haible  <bruno@clisp.org>
36723
36724         * lib/c-strstr.h: New file, from GNU gettext.
36725         * lib/c-strstr.c: New file, from GNU gettext.
36726
36727 2006-08-28  Bruno Haible  <bruno@clisp.org>
36728
36729         * gnulib-tool: Reorder some statements.
36730
36731 2006-08-28  Bruno Haible  <bruno@clisp.org>
36732
36733         * gnulib-tool: New option --makefile-name.
36734         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
36735         $makefile_name.
36736         (func_import): Write $makefile_name to the cache file, and read it from
36737         there unless explicitly specified. Use $makefile_name as file name
36738         instead of Makefile.am. Adjust the recommendations accordingly.
36739
36740 2006-08-28  Bruno Haible  <bruno@clisp.org>
36741
36742         * gnulib-tool (func_verify_module): Check against misapplying patch.
36743
36744 2006-08-28  Bruno Haible  <bruno@clisp.org>
36745
36746         * gnulib-tool (func_relativize, func_relconcat): New functions.
36747         Give an error if --local-dir is given with --update.
36748         Remove trailing slashes from $local_gnulib_dir.
36749         (func_import): Store the relativized $local_gnulib_dir in
36750         gnulib-cache.m4, and read it from there if not specified explicitly.
36751
36752 2006-08-28  Bruno Haible  <bruno@clisp.org>
36753
36754         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
36755         is the current directory. Respect also $local_gnulib_dir.
36756
36757 2006-08-28  Bruno Haible  <bruno@clisp.org>
36758             Simon Josefsson  <jas@extundo.com>
36759
36760         BeOS portability.
36761         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
36762
36763 2006-08-27  Jim Meyering  <jim@meyering.net>
36764
36765         * doc/visibility.texi: Remove duplicate word: "pointer".
36766
36767 2006-08-26  Bruno Haible  <bruno@clisp.org>
36768
36769         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
36770         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
36771         (Makefile.am): Create inttypes.h from inttypes_.h.
36772         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
36773
36774         * modules/imaxabs: New file.
36775
36776         * modules/imaxdiv: New file.
36777
36778 2006-08-26  Bruno Haible  <bruno@clisp.org>
36779
36780         * m4/inttypes.m4: New file.
36781         * m4/_inttypes_h.m4: Remove file.
36782         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
36783         PRI_MACROS_BROKEN.
36784         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
36785
36786         * m4/imaxabs.m4: New file.
36787
36788         * m4/imaxdiv.m4: New file.
36789
36790 2006-08-26  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/inttypes_.h: New file.
36793         * lib/inttypes.h: Remove file.
36794         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
36795
36796         * lib/imaxabs.c: New file.
36797
36798         * lib/imaxdiv.c: New file.
36799
36800 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36801
36802         New config-h module, so that "make" output needn't be cluttered
36803         by -DHAVE_CONFIG_H.
36804         * MODULES.html.sh (Support for building libraries and executables):
36805         Add config-h.
36806         * modules/config-h: New file.
36807         * gnulib-tool (nl, sed_transform_lib_file): New vars.
36808         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
36809         the config-h module is used.
36810
36811         New configmake module, so that "make" output needn't be cluttered
36812         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
36813         * MODULES.html.sh (Support for building libraries and executables):
36814         Add configmake.
36815         * modules/configmake: New file.
36816
36817 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36818
36819         * m4/config-h.m4: New file.
36820
36821 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36822
36823         * config/srclist.txt: Add elisp-comp.
36824
36825 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36826
36827         * MODULES.html.sh (Support for building libraries and executables):
36828         Add elisp-comp.
36829         * build-aux/elisp-comp: New file.
36830         * modules/elisp-comp: New file.
36831
36832 2006-08-24  Bruno Haible  <bruno@clisp.org>
36833
36834         * gnulib-tool (func_create_testdir): Use non-default values of
36835         sourcebase and m4base.
36836
36837 2006-08-24  Bruno Haible  <bruno@clisp.org>
36838
36839         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
36840         HTML structure.
36841
36842 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36843
36844         * modules/openat (Depends-on): Add lchown.
36845
36846 2006-08-23  Bruno Haible  <bruno@clisp.org>
36847
36848         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
36849         of gl_LOCK_EARLY instead of gl_LOCK.
36850
36851 2006-08-23  Bruno Haible  <bruno@clisp.org>
36852
36853         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
36854         on OSF/1 to no.
36855         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
36856
36857 2006-08-23  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
36860         as unusable.
36861
36862         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
36863         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
36864         (gl_LOCK): New macro.
36865
36866 2006-08-22  Simon Josefsson  <jas@extundo.com>
36867
36868         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
36869         to md5 module.
36870
36871 2006-08-22  Simon Josefsson  <jas@extundo.com>
36872
36873         * MODULES.html.sh: Add "Support for maintaining and release
36874         projects".
36875
36876         * build-aux/gnupload: New file, from coreutils.
36877
36878 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36879
36880         Avoid the need for AC_LIBSOURCES in m4 macros.
36881         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
36882         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
36883         * modules/check-version (EXTRA_DIST): Add check-version.h.
36884         * modules/crc (EXTRA_DIST): Add crc.h.
36885         * modules/des (EXTRA_DIST): Add des.h.
36886         * modules/gc (EXTRA_DIST): Add gc.h.
36887         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
36888         * modules/getline (EXTRA_DIST): Add getline.h.
36889         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
36890         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
36891         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
36892         * modules/md2 (EXTRA_DIST): Add md2.h.
36893         * modules/md4 (EXTRA_DIST): Add md4.h.
36894         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
36895         * modules/read-file (EXTRA_DIST): Add read-file.h.
36896         * modules/readline (EXTRA_DIST): Add readline.h.
36897         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
36898         rijndael-api-fst.h.
36899
36900 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36901
36902         * m4/rijndael.m4 (gl_ARCFOUR):
36903         * m4/arctwo.m4 (gl_ARCTWO):
36904         * m4/check-version.m4 (gl_CHECK_VERSION):
36905         * m4/crc.m4 (gl_CRC):
36906         * m4/des.m4 (gl_DES):
36907         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
36908         * m4/gc.m4 (gl_GC):
36909         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
36910         * m4/getline.m4 (gl_FUNC_GETLINE):
36911         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
36912         * m4/hmac-md5.m4 (gl_HMAC_MD5):
36913         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
36914         * m4/md2.m4 (gl_MD2):
36915         * m4/md4.m4 (gl_MD4):
36916         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
36917         * m4/read-file.m4 (gl_FUNC_READ_FILE):
36918         * m4/readline.m4 (gl_FUNC_READLINE):
36919         * m4/rijndael.m4 (gl_RIJNDAEL):
36920         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
36921         to get the necessary .h files and whatnot.
36922
36923 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36924
36925         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
36926         gnulib rather than the other way around.
36927         * config/srclistvars.sh (COREUTILS): Remove.
36928
36929 2006-08-22  Jim Meyering  <jim@meyering.net>
36930
36931         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
36932
36933         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
36934
36935 2006-08-22  Eric Blake  <ebb9@byu.net>
36936
36937         * modules/regexprops-generic: New file.
36938         * MODULES.html.sh (Support for building documentation): List it.
36939
36940 2006-08-22  Eric Blake  <ebb9@byu.net>
36941
36942         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
36943         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36944         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
36945         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
36946
36947 2006-08-22  Bruno Haible  <bruno@clisp.org>
36948
36949         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
36950         and lib_LTLIBRARIES like the other lib_* variables.
36951
36952 2006-08-22  Bruno Haible  <bruno@clisp.org>
36953
36954         * build-aux/x-to-1.in: New file, from GNU gettext.
36955
36956 2006-08-22  Bruno Haible  <bruno@clisp.org>
36957
36958         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
36959         <utmpx.h> exists.
36960
36961 2006-08-22  Bruno Haible  <bruno@clisp.org>
36962
36963         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
36964         <utmpx.h> exists.
36965
36966 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
36967
36968         BeOS portability.
36969         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
36970         exist.
36971         Problem reported by Bruno Haible.
36972
36973 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
36974
36975         Avoid the need for AC_LIBSOURCES in m4 macros.
36976         * modules/acl (EXTRA_DIST): Add acl.h.
36977         * modules/argmatch (Files): Add m4/argmatch.m4.
36978         (configure.ac): Add gl_ARGMATCH.
36979         (EXTRA_DIST): Renamed from lib_SOURCES, for
36980         consistency with the other modules.  Remove argmatch.c.
36981         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
36982         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
36983         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
36984         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
36985         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
36986         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
36987         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
36988         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
36989         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
36990         * modules/closeout (EXTRA_DIST): Add closeout.h.
36991         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
36992         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
36993         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
36994         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
36995         dirname.h; remove basename.c and stripslash.c.
36996         * modules/exclude (EXTRA_DIST): Add exclude.h.
36997         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
36998         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
36999         * modules/file-type (EXTRA_DIST): Add file-type.h.
37000         * modules/filemode (EXTRA_DIST): Add filemode.h.
37001         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
37002         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37003         * modules/fpending (EXTRA_DIST): Add __fpending.h.
37004         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
37005         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
37006         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
37007         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
37008         * modules/getdate (EXTRA_DIST): Add getdate.c.
37009         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
37010         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
37011         * modules/getpass (EXTRA_DIST): Add getpass.h.
37012         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
37013         * modules/group-member (EXTRA_DIST): Add group-member.h.
37014         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
37015         * modules/hash (EXTRA_DIST): Add hash.h.
37016         * modules/human (EXTRA_DIST): Add human.h.
37017         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
37018         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
37019         * modules/lchown (EXTRA_DIST): Add lchown.h.
37020         * modules/long-options (EXTRA_DIST): Add long-options.h.
37021         * modules/lstat (EXTRA_DIST): Add lstat.h.
37022         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
37023         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
37024         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
37025         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
37026         * modules/memxor (EXTRA_DIST): Add memxor.h.
37027         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
37028         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
37029         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
37030         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
37031         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
37032         * modules/physmem (EXTRA_DIST): Add physmem.h.
37033         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
37034         * modules/posixver (EXTRA_DIST): Add posixver.h.
37035         * modules/quote (EXTRA_DIST): Add quote.h.
37036         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
37037         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
37038         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
37039         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
37040         regex_internal.h regexec.c.
37041         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
37042         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
37043         * modules/same (EXTRA_DIST): Add same.h.
37044         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
37045         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
37046         * modules/savedir (EXTRA_DIST): Add savedir.h.
37047         * modules/sha1 (EXTRA_DIST): Add sha1.h.
37048         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
37049         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
37050         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
37051         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
37052         * modules/strdup (EXTRA_DIST): Add strdup.h.
37053         * modules/strftime (EXTRA_DIST): Add strftime.h.
37054         * modules/strndup (EXTRA_DIST): Add strndup.h.
37055         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
37056         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
37057         * modules/time_r (EXTRA_DIST): Add time_r.h.
37058         * modules/timespec (EXTRA_DIST): Add timespec.h.
37059         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37060         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
37061         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
37062         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
37063         * modules/userspec (EXTRA_DIST): Add userspec.h.
37064         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
37065         * modules/utimens (EXTRA_DIST): Add utimens.h.
37066         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
37067         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
37068         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
37069         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
37070         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
37071         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
37072         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
37073         * modules/yesno (EXTRA_DIST): Add yesno.h.
37074
37075 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
37076
37077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
37078
37079         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
37080         * m4/dev-ino.m4, same-inode.m4: Remove.
37081
37082         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
37083         * m4/acl.m4 (AC_FUNC_ACL):
37084         * m4/backupfile.m4 (gl_BACKUPFILE):
37085         * m4/c-strtod.m4 (gl_C99_STRTOLD):
37086         * m4/canon-host.m4 (gl_CANON_HOST):
37087         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
37089         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
37090         * m4/cloexec.m4 (gl_CLOEXEC):
37091         * m4/close-stream.m4 (gl_CLOSE_STREAM):
37092         * m4/closeout.m4 (gl_CLOSEOUT):
37093         * m4/dirfd.m4 (gl_FUNC_DIRFD):
37094         * m4/dirname.m4 (gl_DIRNAME):
37095         * m4/exclude.m4 (gl_EXCLUDE):
37096         * m4/exitfail.m4 (gl_EXITFAIL):
37097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
37098         * m4/file-type.m4 (gl_FILE_TYPE):
37099         * m4/filemode.m4 (gl_FILEMODE):
37100         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
37101         * m4/fpending.m4 (gl_FUNC_FPENDING):
37102         * m4/fprintftime.m4 (gl_FPRINTFTIME):
37103         * m4/fts.m4 (gl_FUNC_FTS):
37104         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
37105         * m4/getdate.m4 (gl_GETDATE):
37106         * m4/gethrxtime.m4 (gl_GETHRXTIME):
37107         * m4/getpagesize.m4 (gl_GETPAGESIZE):
37108         * m4/getpass.m4 (gl_FUNC_GETPASS):
37109         * m4/gettime.m4 (gl_GETTIME):
37110         * m4/getugroups.m4 (gl_GETUGROUPS):
37111         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
37112         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
37113         * m4/hard-locale.m4 (gl_HARD_LOCALE):
37114         * m4/hash.m4 (gl_HASH):
37115         * m4/idcache.m4 (gl_IDCACHE):
37116         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
37117         * m4/lchown.m4 (gl_FUNC_LCHOWN):
37118         * m4/long-options.m4 (gl_LONG_OPTIONS):
37119         * m4/lstat.m4 (gl_FUNC_LSTAT):
37120         * m4/md5.m4 (gl_MD5):
37121         * m4/memcasecmp.m4 (gl_MEMCASECMP):
37122         * m4/memcoll.m4 (gl_MEMCOLL):
37123         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
37124         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
37125         * m4/memxor.m4 (gl_MEMXOR):
37126         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
37127         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
37128         * m4/modechange.m4 (gl_MODECHANGE):
37129         * m4/mountlist.m4 (gl_MOUNTLIST):
37130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37131         * m4/openat.m4 (gl_FUNC_OPENAT):
37132         * m4/pathmax.m4 (gl_PATHMAX):
37133         * m4/physmem.m4 (gl_PHYSMEM):
37134         * m4/posixtm.m4 (gl_POSIXTM):
37135         * m4/posixver.m4 (gl_POSIXVER):
37136         * m4/quote.m4 (gl_QUOTE):
37137         * m4/quotearg.m4 (gl_QUOTEARG):
37138         * m4/readtokens.m4 (gl_READTOKENS):
37139         * m4/readutmp.m4 (gl_READUTMP):
37140         * m4/regex.m4 (gl_REGEX):
37141         * m4/safe-read.m4 (gl_SAFE_READ):
37142         * m4/safe-write.m4 (gl_SAFE_WRITE):
37143         * m4/same.m4 (gl_SAME):
37144         * m4/save-cwd.m4 (gl_SAVE_CWD):
37145         * m4/savedir.m4 (gl_SAVEDIR):
37146         * m4/settime.m4 (gl_SETTIME):
37147         * m4/sha1.m4 (gl_SHA1):
37148         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
37149         * m4/stat-macros.m4 (gl_STAT_MACROS):
37150         * m4/stat-time.m4 (gl_STAT_TIME):
37151         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
37152         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
37153         * m4/strdup.m4 (gl_FUNC_STRDUP):
37154         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
37155         * m4/strndup.m4 (gl_FUNC_STRNDUP):
37156         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
37157         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
37158         * m4/time_r.m4 (gl_TIME_R):
37159         * m4/timespec.m4 (gl_TIMESPEC):
37160         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
37161         * m4/unlinkdir.m4 (gl_UNLINKDIR):
37162         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
37163         * m4/userspec.m4 (gl_USERSPEC):
37164         * m4/utimecmp.m4 (gl_UTIMECMP):
37165         * m4/utimens.m4 (gl_UTIMENS):
37166         * m4/xalloc.m4 (gl_XALLOC):
37167         * m4/xgetcwd.m4 (gl_XGETCWD):
37168         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
37169         * m4/xreadlink.m4 (gl_XREADLINK):
37170         * m4/xstrtod.m4 (gl_XSTRTOD):
37171         * m4/yesno.m4 (gl_YESNO):
37172         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
37173         to get the necessary .h files and whatnot.
37174
37175 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
37176             Bruno Haible  <bruno@clisp.org>
37177
37178         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
37179         /bin/sh understanding of '!' conditional negation.
37180
37181 2006-08-21  Jim Meyering  <jim@meyering.net>
37182
37183         * modules/openat (Depends-on): Really alphabetize.
37184
37185         * modules/acl (Depends-on): Add error and quote.
37186
37187         * check-module (find_included_lib_files): Add at-func.c to the
37188         ok-to-include-more-than-once white list.
37189
37190         * modules/openat (Depends-on): Add lstat.  Alphabetize.
37191
37192 2006-08-21  Bruno Haible  <bruno@clisp.org>
37193
37194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37195         Emit a pkgdata_DATA variable only if some snippets add contents to it.
37196         Reported by Martin Lambers <marlam@marlam.de>.
37197
37198 2006-08-21  Bruno Haible  <bruno@clisp.org>
37199
37200         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
37201         specify an installation location, don't emit a noinst_LIBRARIES or
37202         noinst_LTLIBRARIES assignment.
37203
37204 2006-08-21  Bruno Haible  <bruno@clisp.org>
37205
37206         BeOS portability.
37207         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
37208         BeOS has mbrtowc() but no <wctype.h>.
37209
37210 2006-08-21  Bruno Haible  <bruno@clisp.org>
37211
37212         BeOS portability.
37213         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
37214         exist.
37215
37216 2006-08-21  Bruno Haible  <bruno@clisp.org>
37217
37218         BeOS portability.
37219         * lib/mbchar.h: Include <wctype.h> only if it exists.
37220
37221 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37222
37223         Remove files that are no longer needed by their respective modules.
37224         * m4/obstack.m4: Remove.
37225         * m4/strerror_r.m4: Remove.
37226         * m4/uint32_t.m4: Remove.
37227         * m4/uintptr_t.m4: Remove.
37228         * m4/ullong_max.m4: Remove.
37229         * m4/xstrtoimax.m4: Remove.
37230         * m4/xstrtoumax.m4: Remove.
37231
37232         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
37233         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
37234         dependencies now capture this.
37235
37236         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37237         Do not use AC_LIBSOURCES, since gnulib modules now do this.
37238         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
37239         * m4/human.m4 (gl_HUMAN): Likewise.
37240         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
37241         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
37242
37243         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
37244
37245         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
37246         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
37247         stdint.
37248         * m4/human.m4 (gl_HUMAN): Likewise.
37249         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
37250         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
37251         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
37252         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
37253         * m4/xstrtol (gl_XSTRTOL): Likewise.
37254
37255         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
37256         AC_TYPE_LONG_LONG_INT.
37257         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
37258         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
37259         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
37260         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
37261
37262         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
37263         on stdbool.
37264
37265         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
37266         (gl_PREREQ_XSTRTOUL): Remove.
37267
37268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
37269
37270         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
37271         mode.
37272
37273 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37274
37275         Add and change modules to make it easier for coreutils to use
37276         gnulib-tool.
37277         * modules/backupfile (Files): Remove m4/d-ino.m4.
37278         (Depends-on): Add d-ino.
37279         * modules/cycle-check (Depends-on): Add stdint.
37280         (lib_SOURCES): Add cycle-check.h.
37281         * modules/d-ino: New module.
37282         * modules/d-type: New module.
37283         * modules/error (Files): Remove m4/strerror_r.m4.
37284         * modules/filemode (Files): Add m4/st_dm_mode.m4.
37285         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37286         m4/inttypes_h.m4, m4/uintmax_t.m4.
37287         (Depends-on): Add stdint.
37288         (lib_SOURCES): Add fsusage.h.
37289         * modules/getcwd (Files): Remove d-ino.m4.
37290         (Depends-on): Add d-ino.
37291         * modules/getndelim2 (Depends-on): Add stdint.
37292         * modules/glob (Files): Remove m4/d-type.m4.
37293         (Depends-on): Add d-type.
37294         * modules/host-os: New module.
37295         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
37296         m4/inttypes_h.m4, m4/uintmax_t.m4.
37297         * Depends-on: Add stdint.
37298         (lib_SOURCES): Add human.h.
37299         * modules/inttostr (Files): Remove m4/intmax_t.m4,
37300         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
37301         m4/uintmax_t.m4, m4/ulonglong.m4.
37302         (Depends-on): Add stdint.
37303         (EXTRA_DIST): Add inttostr.h.
37304         * modules/lchmod: New module.
37305         * modules/link-follow: New module.
37306         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
37307         (Depends-on): Add lchmod.
37308         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
37309         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
37310         (Depends-on): Add stdint.
37311         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
37312         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
37313         (Depends-on): Add stdint.
37314         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
37315         * modules/perl: New module.
37316         * modules/regex (Depends-on): Add stdint.
37317         * modules/rmdir-errno: New module.
37318         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
37319         m4/intmax_t.m4.
37320         (Depends-on): Add stdint.
37321         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
37322         m4/uintmax_t.m4.
37323         (Depends-on): Add stdint.
37324         * modules/unlink-busy: New module.
37325         * modules/utimecmp (Depends-on): Add stdint.
37326         * modules/uptime: New module.
37327         * modules/winsz-ioctl: New module.
37328         * modules/winsz-termios: New module.
37329         * modules/xnanosleep (Depends-on): Add nanosleep.
37330         * modules/ullong_max: Remove.
37331         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
37332         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
37333         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
37334         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
37335         (Depends-on): Add inttypes.
37336         (lib_SOURCES): Add xstrtol.h.
37337         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
37338         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
37339         * MODULES.html.sh: Move 'assert' into the assert section.
37340         Move 'dummy' into the linking section.
37341         Remove ullong_max.
37342         Add section for compatibility checks for POSIX:2001 functions,
37343         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
37344         winsz-ioctl, and winsz-termios into it.
37345         Add lchmod.
37346         Add top-level Misc section and put host-os, perl, and uptime
37347         into it.
37348
37349 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37350
37351         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
37352         now assume the stdint module.  Do not include inttypes.h.
37353         * lib/fsusage.h: Likewise.
37354         * lib/getndelim2.c: Likewise.
37355         * lib/human.h: Likewise.
37356         * lib/inttostr.h: Likewise.
37357         * lib/obstack.c: Likewise.
37358         * lib/regex_internal.h: Likewise.
37359         * lib/tempname.c: Likewise.
37360         * lib/utimecmp.c: Likewise.
37361         * lib/xstrtol.h: Likewise.
37362
37363         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
37364
37365         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
37366         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
37367         * lib/xtime.h: Likewise.
37368
37369 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37370
37371         * modules/openat (Files): Add lib/fchmodat.c.
37372         Fixes problem reported by Jay Youngman.
37373
37374 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37375
37376         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
37377         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
37378
37379 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
37380             Bruno Haible  <bruno@clisp.org>
37381
37382         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
37383         and is a script that invokes bison. Tighten the code. Add comments.
37384
37385 2006-08-18  Jim Meyering  <jim@meyering.net>
37386
37387         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
37388         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
37389         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
37390         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
37391
37392 2006-08-18  Bruno Haible  <bruno@clisp.org>
37393
37394         * modules/bison-i18n: New file.
37395         * MODULES.html.sh (Internationalization functions): Add it.
37396
37397 2006-08-18  Bruno Haible  <bruno@clisp.org>
37398
37399         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
37400         sys/statvfs.h. When getmntinfo was found, check its declaration and
37401         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
37402
37403 2006-08-18  Bruno Haible  <bruno@clisp.org>
37404
37405         * m4/bison-i18n.m4: New file, from bison.
37406
37407 2006-08-18  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
37410         (ME_DUMMY): Treat "kernfs" as a dummy.
37411         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
37412
37413 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37414
37415         Update from coreutils.
37416
37417         2006-08-15  Jim Meyering  <jim@meyering.net>
37418
37419         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
37420
37421         2006-01-17  Jim Meyering  <jim@meyering.net>
37422
37423         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
37424
37425         2006-01-11  Jim Meyering  <jim@meyering.net>
37426
37427         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
37428         Check for the lchmod function.
37429
37430 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37431
37432         Update from coreutils.
37433
37434         * lib/__fpending.h: Add copyright notice.
37435         * lib/fprintftime.h: Likewise.
37436         * lib/savedir.c: Use (C) in copyright notice.
37437         * lib/savedir.h: Likewise.
37438
37439         2006-08-15  Jim Meyering  <jim@meyering.net>
37440
37441         * lib/at-func.c: New file, with the logic of all emulated at-functions.
37442         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
37443         in support of the EXPECTED_ERRNO macro.
37444         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
37445         definitions.  Instead, define the appropriate symbols and include
37446         "at-func.c".
37447         * lib/mkdirat.c (mkdirat): Likewise.
37448         * lib/fchmodat.c (fchmodat): Likewise.
37449         (ENOSYS): Remove definition.
37450         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
37451         it.  Don't include "unistd--.h" -- it wasn't ever used.
37452
37453         2006-01-17  Jim Meyering  <jim@meyering.net>
37454
37455         Rewrite fts.c not to change the current working directory,
37456         by using openat, fstatat, fdopendir, etc..
37457
37458         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
37459         (HAVE_OPENAT_SUPPORT): Define.
37460         [_LIBC] (fchdir): Don't undef or define; no longer used.
37461         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
37462         Now, this `function' always succeeds, and consumes its file descriptor
37463         parameter -- so callers must not close such FDs.  Update callers.
37464         (diropen_fd, opendirat, cwd_advance_fd): New functions.
37465         (diropen): Add parameter, SP.  Adjust all callers.
37466         Implement using diropen_fd, rather than open.
37467         (fts_open): Initialize new member, fts_cwd_fd.
37468         Remove fts_rft-setting code.
37469         (fts_close): Close fts_cwd_fd, if necessary.
37470         (__opendir2): Define in terms of opendir or opendirat,
37471         depending on whether the FST_NOCHDIR flag is set.
37472         (fts_build): Since fts_safe_changedir consumes its FD, and since
37473         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
37474         and close the dup'd file descriptor upon failure.
37475         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
37476         (fts_safe_changedir): Tweak semantics to reflect that this function
37477         now calls cwd_advance_fd and hence consumes its FD argument.
37478         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
37479         [struct FTS] (fts_rft): Remove now-unused member.
37480         [struct FTS] (fts_cycle.state): Improve comment.
37481
37482         * lib/openat.c (openat_needs_fchdir): New function.
37483         * lib/openat.h (openat_needs_fchdir): Declare it.
37484
37485 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
37486
37487         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
37488         Problem and fix reported by Pádraig Brady in
37489         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
37490
37491 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37492
37493         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
37494
37495 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37496
37497         * lib/memcoll.c (memcoll): Optimize for the common case where the
37498         arguments are bytewise equal.
37499
37500 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37501
37502         * doc/regexprops-generic.texi: Add a copyright notice.
37503
37504 2006-08-15  Bruno Haible  <bruno@clisp.org>
37505
37506         * modules/tmpdir (License): Change to LGPL.
37507
37508 2006-08-15  Bruno Haible  <bruno@clisp.org>
37509
37510         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
37511         module.
37512
37513 2006-08-14  Simon Josefsson  <jas@extundo.com>
37514
37515         * config/srclist.txt: Add gnupload.
37516
37517 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37518
37519         Change copyright notice from LGPL 2 to GPL 2, since that's the
37520         standard form used in the gnulib repository.
37521         * tests/test-lock.c: Likewise.
37522         * tests/test-stdint.c: Likewise.
37523         * tests/test-tls.c: Likewise.
37524
37525         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
37526         prelude-manager.  User shorter URLs for GNU projects, without '?'.
37527         Add copyright notice.
37528
37529         * check-module: Add copyright notice.  Output a copyright
37530         notice if "--version" is specified.
37531         * modules/COPYING: New file.
37532         * tests/test-getaddrinfo.c: Add copyright notice.
37533         * tests/test-verify.c: Likewise.
37534
37535 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37536
37537         Change copyright notice from LGPL 2 to GPL 2, since that's the
37538         standard form used in the gnulib repository.
37539         * lib/lock.c: LGPL -> GPL.
37540         * lib/lock.h: Likewise.
37541         * lib/strnlen1.c: Likewise.
37542         * lib/strnlen1.h: Likewise.
37543         * lib/tls.c: Likewise.
37544         * lib/tls.h: Likewise.
37545         * lib/tmpdir.c: Likewise.
37546
37547         * lib/TODO: Remove; this belongs only in coreutils.
37548
37549 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37550
37551         Add copyright notices to long-enough files that lack them, since
37552         otherwise the files aren't clearly free.  Use the same notice that
37553         getdate.texi already uses.
37554         * doc/alloca-opt.texi: Add copyright notice.
37555         * doc/alloca.texi: Likewise.
37556         * doc/ctime.texi: Likewise.
37557         * doc/functions.texi: Likewise.
37558         * doc/gcd.texi: Likewise.
37559         * doc/gnulib-tool.texi: Likewise.
37560         * doc/inet_ntoa.texi: Likewise.
37561         * doc/visibility.texi: Likewise.
37562
37563         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
37564         * doc/quote.texi: Add copyright notice.
37565
37566         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
37567         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
37568         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
37569         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
37570         is now obsolete, and give a pointer to the Sun list.
37571         Add copyright notice.
37572
37573 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37574
37575         * config/srclistvars.sh: Add copyright notice.
37576
37577 2006-08-14  Eric Blake  <ebb9@byu.net>
37578
37579         Import the following change from libc:
37580
37581         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
37582
37583         Upstream bug 2997.
37584         * lib/misc/error.c: Add space between program name and message if file
37585         name is missing.
37586
37587 2006-08-12  Karl Berry  <karl@gnu.org>
37588
37589         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
37590         remove, these originate in gnulib now.
37591
37592 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37593
37594         * doc/Makefile (standards.info standards.html standards.dvi):
37595         Also depend on make-stds.texi.
37596
37597 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
37598
37599         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
37600         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
37601
37602         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
37603         in wchar_t.  Problem reported by Eric Blake.
37604
37605         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
37606         LEN is smaller than SIZE.  Suggested by Bruno Haible.
37607         Also, help the compiler to keep LEN in a register.
37608
37609 2006-08-11  Eric Blake  <ebb9@byu.net>
37610
37611         * users.txt: Sort.  Add tar.
37612
37613 2006-08-11  Bruno Haible  <bruno@clisp.org>
37614
37615         * users.txt: New file.
37616
37617 2006-08-11  Bruno Haible  <bruno@clisp.org>
37618
37619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
37620         before <wchar.h>. Needed for OSF/1 and BSD/OS.
37621
37622 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37623
37624         * modules/snprintf (Depends-on): Remove minmax.
37625         (Maintainer): Add self and Bruno.
37626
37627 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37628
37629         * lib/.cppi-disable: Add snprintf.h, socket_.h.
37630         * lib/snprintf.c: Include <errno.h> and <limits.h>.
37631         (EOVERFLOW): Define if the system does not.
37632         Do not include "minmax.h"; it wasn't used.
37633         (snprintf): Don't assume size_t promotes to an unsigned type.
37634         Fix bug when generated string was too long for the buffer: the
37635         buffer's contents are supposed to be the initial prefix of the
37636         output.  Don't assume vasnprintf returns EOVERFLOW if the size
37637         exceeds INT_MAX; do the check ourselves.
37638
37639         Import the following changes from libc:
37640
37641         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
37642
37643         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
37644         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
37645         set wc to the byte which couldn't be converted.
37646         (re_string_reconstruct): Don't clear valid_raw_len before calling
37647         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
37648         tip_context using re_string_context_at.
37649
37650         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
37651
37652         * lib/posix/regex.h: g++ still cannot handled [restrict].
37653
37654         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
37655
37656         * lib/posix/regex.h: Remove special handling for VMS.
37657
37658 2006-08-10  Jim Meyering  <jim@meyering.net>
37659
37660         * modules/same-inode: New module.
37661         * modules/dev-ino: New module.
37662         * modules/cycle-check: Depend on these modules, rather than simply
37663         including their .h files.
37664         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
37665         required via m4/cycle-check.m4.
37666         * modules/same: Depend on new same-inode module, rather than
37667         including same-inode.h.
37668         * modules/chdir-safer: New file.
37669
37670         * modules/chown (Depends-on): Add stat-macros.
37671
37672 2006-08-10  Jim Meyering  <jim@meyering.net>
37673
37674         * m4/cycle-check.m4: New file.
37675         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
37676         * m4/dev-ino.m4, m4/same-inode.m4: New files.
37677
37678 2006-08-10  Eric Blake  <ebb9@byu.net>
37679
37680         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
37681         in from original proposal.
37682
37683 2006-08-10  Eric Blake  <ebb9@byu.net>
37684         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37685
37686         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
37687         namespace.
37688
37689 2006-08-10  Bruno Haible  <bruno@clisp.org>
37690
37691         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
37692         as well.
37693
37694 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37695
37696         Sync from coreutils.
37697
37698         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
37699
37700         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
37701         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
37702
37703 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37704
37705         * modules/restrict: Remove; no longer needed now that we assume
37706         Autoconf 2.59 or later.
37707         * MODULES.html.sh: Remove 'restrict'.
37708         * modules/argp (Depends-on): Remove 'restrict'.
37709         * modules/base64 (Depends-on): Likewise.
37710         * modules/gc (Depends-on): Likewise.
37711         * modules/getaddrinfo (Depends-on): Likewise.
37712         * modules/glob (Depends-on): Likewise.
37713         * modules/inet_ntop (Depends-on): Likewise.
37714         * modules/inet_pton (Depends-on): Likewise.
37715         * modules/memxor (Depends-on): Likewise.
37716         * modules/regex (Depends-on): Likewise.
37717         * modules/strtok_r (Depends-on): Likewise.
37718         * modules/time_r (Depends-on): Likewise.
37719
37720 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
37721
37722         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
37723         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
37724         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37725         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
37726         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
37727         * m4/memxor.m4 (gl_MEMXOR): Likewise.
37728         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
37729         gl_C_RESTRICT replaced by AC_C_RESTRICT.
37730
37731         Merge from coreutils.
37732         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
37733         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
37734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37735         * m4/time_r.m4 (gl_TIME_R): Likewise.
37736
37737 2006-08-09  Karl Berry  <karl@gnu.org>
37738
37739         * config/srclist.txt: no more gettext-tools, per Bruno.
37740
37741 2006-08-08  Eric Blake  <ebb9@byu.net>
37742
37743         * modules/verror: New module.
37744         * MODULES.html.sh: Document it.
37745
37746 2006-08-08  Eric Blake  <ebb9@byu.net>
37747
37748         * lib/verror.h, lib/verror.c: New files.
37749
37750 2006-08-08  Eric Blake  <ebb9@byu.net>
37751
37752         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
37753         verror_at_line output complies with GNU Coding Standards even when
37754         file is NULL.
37755
37756 2006-08-07  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
37759         versions of AIX.
37760         Reported by Ralf Wildenhues.
37761
37762 2006-08-07  Bruno Haible  <bruno@clisp.org>
37763
37764         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
37765         in an AC_DEFUN. Needed so that the autoconf snippets can use
37766         AC_REQUIRE.
37767
37768 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37769
37770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37771         Initialize pkgdata_DATA.
37772         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
37773         overriding it.
37774
37775 2006-08-06  Eric Blake  <ebb9@byu.net>
37776
37777         * lib/error.h: Fold in some upstream changes from glibc.
37778         * lib/error.c: Likewise.
37779
37780 2006-08-04  Bruno Haible  <bruno@clisp.org>
37781
37782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37783         Make the mostlyclean-local rule depend on mostlyclean-generic.
37784         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
37785
37786 2006-07-31  Bruno Haible  <bruno@clisp.org>
37787
37788         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
37789         <stdlib.h>, <string.h>.
37790
37791 2006-07-30  Bruno Haible  <bruno@clisp.org>
37792
37793         * modules/readlink (License): Change to LGPL.
37794
37795 2006-07-30  Bruno Haible  <bruno@clisp.org>
37796
37797         * modules/javaversion (Makefile.am): Distribute javaversion.java and
37798         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
37799         set PKGDATADIR to point to it.
37800
37801 2006-07-30  Bruno Haible  <bruno@clisp.org>
37802
37803         * modules/csharpexec (configure.ac): Comment out macro invocation.
37804         * modules/javaexec (configure.ac): Likewise.
37805         * modules/javacomp-script (configure.ac): Likewise.
37806
37807         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
37808
37809 2006-07-30  Bruno Haible  <bruno@clisp.org>
37810
37811         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
37812         linked-list.
37813
37814 2006-07-30  Bruno Haible  <bruno@clisp.org>
37815
37816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
37817
37818 2006-07-30  Bruno Haible  <bruno@clisp.org>
37819
37820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37821         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
37822         get removed.
37823
37824 2006-07-29  Bruno Haible  <bruno@clisp.org>
37825
37826         Make it possible for gnulib-tool to work with locally modified or
37827         augmented gnulib repositories.
37828         * gnulib-tool (func_usage): Document --local-dir option.
37829         (local_gnulib_dir): New variable.
37830         Handle --local-dir option.
37831         (func_lookup_file): New function.
37832         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
37833         (func_get_description, func_get_filelist, func_get_description,
37834         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
37835         func_get_automake_snippet, func_get_include_directive,
37836         func_get_license, func_get_maintainer): Use func_lookup_file.
37837         (func_import, func_create_testdir): Use func_lookup_file.
37838
37839 2006-07-29  Bruno Haible  <bruno@clisp.org>
37840
37841         * modules/setenv (Depends-on): Add unistd.
37842
37843 2006-07-29  Bruno Haible  <bruno@clisp.org>
37844
37845         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
37846
37847 2006-07-29  Bruno Haible  <bruno@clisp.org>
37848
37849         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
37850
37851 2006-07-29  Bruno Haible  <bruno@clisp.org>
37852
37853         * gnulib-tool (import, update): If there is no Makefile.am, look at
37854         aclocal.m4, instead of bailing out.
37855
37856 2006-07-29  Bruno Haible  <bruno@clisp.org>
37857
37858         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
37859         Categorize the options by when they are useful.
37860
37861 2006-07-29  Bruno Haible  <bruno@clisp.org>
37862
37863         * gnulib-tool (func_usage): Document option --no-libtool.
37864         Handle option --no-libtool.
37865         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
37866         for changed semantics of $libtool variable.
37867         (func_import): Likewise. If libtool is not used, show this through
37868         an option --no-libtool.
37869         (func_create_testdir): Update.
37870
37871 2006-07-29  Bruno Haible  <bruno@clisp.org>
37872
37873         * gnulib-tool (func_import): Extend error message about missing
37874         --doc-base.
37875
37876 2006-07-29  Bruno Haible  <bruno@clisp.org>
37877
37878         * gnulib-tool (func_import): Don't create the $docbase directory if
37879         there is no file to store there.
37880
37881 2006-07-29  Bruno Haible  <bruno@clisp.org>
37882
37883         * gnulib-tool (autoconf_minversion): If a --dir option is given and
37884         relevant, look for configure.ac there, not in the current directory.
37885         Also use a simple search for AC_PREREQ, not "autoconf --trace".
37886
37887 2006-07-29  Bruno Haible  <bruno@clisp.org>
37888
37889         * gnulib-tool (SORT): New variable.
37890         (func_usage): Undocument --assume-autoconf option.
37891         Remove --assume-autoconf option handling.
37892         (autoconf_minversion): Determine from the contents of configure.ac.
37893         (func_import): Remove autoconf_minversion handling.
37894         Suggested by Eric Blake.
37895
37896 2006-07-29  Bruno Haible  <bruno@clisp.org>
37897
37898         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
37899
37900 2006-07-29  Bruno Haible  <bruno@clisp.org>
37901
37902         * config/srclist.txt (*setenv.[ch]): Remove rules.
37903
37904 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37905
37906         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
37907
37908 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37909
37910         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
37911         arpa/inet.h.
37912
37913 2006-07-28  Simon Josefsson  <jas@extundo.com>
37914
37915         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
37916         * modules/inet_pton (Depends-on): Likewise.
37917
37918 2006-07-28  Simon Josefsson  <jas@extundo.com>
37919
37920         * m4/netinet_in_h.m4: New file.
37921
37922 2006-07-28  Simon Josefsson  <jas@extundo.com>
37923
37924         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
37925         #include's.
37926
37927 2006-07-28  Simon Josefsson  <jas@extundo.com>
37928
37929         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
37930         #include's.
37931
37932 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
37935         setgid on directories only if they set these bits.
37936         * lib/modechange.h: Remove obsolete comment about masks.
37937
37938 2006-07-28  Eric Blake  <ebb9@byu.net>
37939
37940         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
37941         macro expansion.
37942
37943 2006-07-28  Bruno Haible  <bruno@clisp.org>
37944
37945         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
37946
37947 2006-07-28  Bruno Haible  <bruno@clisp.org>
37948
37949         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
37950
37951 2006-07-28  Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
37954         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
37955         Define fallbacks.
37956         Avoids link error on FreeBSD 4.x.
37957         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37958
37959         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
37960         encoding.
37961         * lib/mbswidth.c (iswcntrl): Likewise.
37962
37963 2006-07-27  Bruno Haible  <bruno@clisp.org>
37964
37965         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
37966         test.
37967
37968 2006-07-27  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
37971         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
37972         defined.
37973
37974 2006-07-26  Eric Blake  <ebb9@byu.net>
37975
37976         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
37977
37978 2006-07-26  Eric Blake  <ebb9@byu.net>
37979
37980         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
37981         like mingw that lack mkstemp.
37982         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
37983         avoid compilation warning on mingw.
37984
37985 2006-07-26  Bruno Haible  <bruno@clisp.org>
37986
37987         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
37988         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
37989         INT_FAST*_MIN, INTPTR_MIN.
37990
37991 2006-07-25  Bruno Haible  <bruno@clisp.org>
37992
37993         * modules/version-etc (Depends-on): Add stdarg.
37994
37995 2006-07-25  Bruno Haible  <bruno@clisp.org>
37996
37997         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
37998         complex commands.
37999
38000 2006-07-25  Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
38003         defined in <stdarg.h> or config.h.
38004
38005 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
38006
38007         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
38008         (gl_STDIO_SAFER): Remove.
38009
38010 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
38011
38012         * MODULES.html.sh (File stream based Input/Output):
38013         Add fopen-safer, tmpfile-safer; remove stdio-safer.
38014         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
38015         * modules/fopen-safer, modules/tmpfile-safer: New files.
38016         * modules/stdio-safer: Remove.
38017
38018 2006-07-24  Bruno Haible  <bruno@clisp.org>
38019
38020         * modules/tmpdir: New file.
38021         * MODULES.html.sh (File system functions): Add it.
38022
38023 2006-07-24  Bruno Haible  <bruno@clisp.org>
38024
38025         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
38026         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
38027
38028 2006-07-24  Bruno Haible  <bruno@clisp.org>
38029
38030         * modules/clean-temp: New file.
38031
38032 2006-07-24  Bruno Haible  <bruno@clisp.org>
38033
38034         * m4/tmpdir.m4: New file, from GNU gettext.
38035
38036 2006-07-24  Bruno Haible  <bruno@clisp.org>
38037
38038         * lib/tmpdir.h: New file, from GNU gettext.
38039         * lib/tmpdir.c: New file, from GNU gettext.
38040
38041 2006-07-24  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/clean-temp.h: New file, from GNU gettext.
38044         * lib/clean-temp.c: New file, from GNU gettext.
38045
38046 2006-07-23  Eric Blake  <ebb9@byu.net>
38047
38048         * modules/stdio-safer (Files): Add tmpfile-safer.c.
38049         (Depends-on): Add binary-io.
38050
38051 2006-07-23  Eric Blake  <ebb9@byu.net>
38052
38053         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
38054
38055 2006-07-23  Eric Blake  <ebb9@byu.net>
38056
38057         * lib/tmpfile-safer.c: New file.
38058         * lib/stdio-safer.h (fopen_safer): Add prototype.
38059         * lib/stdio--.h (tmpfile): Make safer.
38060
38061 2006-07-23  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
38064         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
38065         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
38066         gl_linked_remove_at): Use it.
38067
38068 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38069         and Simon Josefsson <jas@extundo.com>
38070
38071         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
38072
38073         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
38074
38075 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38076
38077         * modules/close-stream: New file.
38078         * modules/closeout (Description): Make it clear that it exits
38079         with a diagnostic on error.
38080         (Depends-on): Add close-stream.  Remove fpending, stdbool.
38081         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
38082
38083 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38084
38085         * m4/close-stream.m4: New file.
38086
38087 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38088
38089         * lib/close-stream.c, lib/close-stream.h: New files.
38090
38091 2006-07-22  Bruno Haible  <bruno@clisp.org>
38092
38093         Merge from GNU gettext 0.15.
38094
38095         2006-05-01  Bruno Haible  <bruno@clisp.org>
38096
38097                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
38098
38099         2006-07-22  Bruno Haible  <bruno@clisp.org>
38100
38101                 * modules/javaversion: New file.
38102                 * MODULES.html.sh (Java): Add javaversion.
38103
38104         2006-03-12  Bruno Haible  <bruno@clisp.org>
38105
38106                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
38107
38108         2005-12-04  Bruno Haible  <bruno@clisp.org>
38109
38110                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
38111                 (untested).
38112
38113         2006-06-21  Bruno Haible  <bruno@clisp.org>
38114
38115                 Avoid warnings from recent versions of mcs.
38116                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
38117                 -o, -L, -r any more. Use options documented since mcs-1.0
38118                 instead. Similarly for -g.
38119
38120         2005-12-04  Bruno Haible  <bruno@clisp.org>
38121
38122                 * build-aux/csharpcomp.sh.in: Suffix for resources is
38123                 .resources, not .resource.
38124
38125         2005-07-09  Bruno Haible  <bruno@clisp.org>
38126
38127                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
38128                 add a .dll suffix.
38129                 Reported by Mark Junker <mjscod@gmx.de>.
38130
38131         2006-07-22  Bruno Haible  <bruno@clisp.org>
38132
38133                 * modules/gettext: Upgrade to gettext-0.15.
38134                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
38135                 m4/visibility.m4.
38136                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
38137
38138 2006-07-22  Bruno Haible  <bruno@clisp.org>
38139
38140         Merge from GNU gettext 0.15.
38141
38142         2006-03-25  Bruno Haible  <bruno@clisp.org>
38143
38144                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
38145
38146         2006-07-21  Bruno Haible  <bruno@clisp.org>
38147
38148                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
38149                 "1.1".
38150
38151         2006-05-09  Bruno Haible  <bruno@clisp.org>
38152
38153                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
38154                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
38155                 for the conftestver execution.
38156
38157         2006-05-01  Bruno Haible  <bruno@clisp.org>
38158
38159                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
38160                 optional target-version argument. Verify that the compiler
38161                 groks source of the specified source-version, or add -source
38162                 option as necessary. Verify that the compiler produces
38163                 bytecode in the specified target-version, or add -target and
38164                 -source options as necessary. Make the result of the test
38165                 available as variable CONF_JAVAC. Also log error output in
38166                 config.log.
38167
38168         2006-03-11  Bruno Haible  <bruno@clisp.org>
38169
38170                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
38171
38172         2006-05-09  Bruno Haible  <bruno@clisp.org>
38173
38174                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
38175                 CLASSPATH_SEPARATOR to a semicolon.
38176
38177         2006-03-12  Bruno Haible  <bruno@clisp.org>
38178
38179                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
38180                 available as variable CONF_JAVA, for subsequent autoconf
38181                 tests. Also log error output in config.log.
38182
38183         2006-07-19  Bruno Haible  <bruno@clisp.org>
38184
38185                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
38186                 that getline works on glibc2 systems. Needed to avoid trouble
38187                 in relocatable.c.
38188                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
38189
38190         2005-12-04  Bruno Haible  <bruno@clisp.org>
38191
38192                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
38193                 launcher (untested).
38194
38195         2005-12-04  Bruno Haible  <bruno@clisp.org>
38196
38197                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
38198
38199         2006-07-22  Bruno Haible  <bruno@clisp.org>
38200
38201                 * gettext.m4: Update from GNU gettext-0.15.
38202                 * nls.m4: Likewise.
38203                 * po.m4: Likewise.
38204                 * inttypes-pri.m4: Likewise.
38205                 * inttypes-h.m4: Renamed from inttypes.m4.
38206                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
38207
38208 2006-07-22  Bruno Haible  <bruno@clisp.org>
38209
38210         Merge from GNU gettext 0.15.
38211
38212         2005-07-05  Bruno Haible  <bruno@clisp.org>
38213
38214                 * printf-args.c (printf_fetchargs): Work around broken
38215                 definition of wint_t on mingw.
38216
38217         2005-02-12  Bruno Haible  <bruno@clisp.org>
38218
38219                 * xallocsa.h: Add extern "C" for C++.
38220
38221         2006-05-17  Bruno Haible  <bruno@clisp.org>
38222
38223                 Cygwin portability.
38224                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
38225
38226         2006-04-30  Bruno Haible  <bruno@clisp.org>
38227
38228                 * progreloc.c: Include <mach-o/dyld.h> if available.
38229                 (find_executable): Use _NSGetExecutablePath when possible.
38230
38231         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38232
38233                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
38234                 function.
38235
38236         2005-12-29  Bruno Haible  <bruno@clisp.org>
38237
38238                 * progreloc.c (set_program_name_and_installdir): Fix
38239                 compilation error.
38240
38241         2005-12-04  Bruno Haible  <bruno@clisp.org>
38242
38243                 Cygwin portability.
38244                 * progreloc.c: Include <windows.h> also on Cygwin.
38245                 (find_executable): Add support for Cygwin.
38246                 (set_program_name_and_installdir): Handle also platforms with
38247                 nonempty EXEEXT.
38248
38249         2006-07-11  Bruno Haible  <bruno@clisp.org>
38250
38251                 * javacomp.c: Fix a comment.
38252                 Reported by Jim Meyering.
38253
38254         2006-04-30  Bruno Haible  <bruno@clisp.org>
38255
38256                 * javacomp.h (compile_java_class): Add source_version,
38257                 target_version arguments.
38258                 * javacomp.c: Rewritten to choose only a compiler that
38259                 respects the specified source_version and target_version.
38260
38261         2006-06-27  Bruno Haible  <bruno@clisp.org>
38262
38263                 Assume correct S_ISDIR macro.
38264                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
38265
38266         2006-07-22  Bruno Haible  <bruno@clisp.org>
38267
38268                 * javaversion.h: New file, from GNU gettext.
38269                 * javaversion.c: New file, from GNU gettext.
38270                 * javaversion.java: New file, from GNU gettext.
38271                 * javaversion.class: New file, from GNU gettext.
38272
38273         2006-05-17  Bruno Haible  <bruno@clisp.org>
38274
38275                 Cygwin portability.
38276                 * javaexec.c (execute_java_class): Test for jview program
38277                 also on Cygwin.
38278
38279         2006-04-09  Bruno Haible  <bruno@clisp.org>
38280
38281                 * fatal-signal.c: Don't include string.h.
38282                 (at_fatal_signal): Use a copying loop instead of memcpy.
38283
38284         2005-12-04  Bruno Haible  <bruno@clisp.org>
38285
38286                 * csharpexec.c: Add support for 'clix' launcher (untested).
38287                 (execute_csharp_using_sscli): New function.
38288                 (execute_csharp_program): Call it.
38289
38290         2006-06-21  Bruno Haible  <bruno@clisp.org>
38291
38292                 Avoid warnings from recent versions of mcs.
38293                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
38294                 -o, -L, -r any more. Use options documented since mcs-1.0
38295                 instead. Similarly for -g.
38296
38297         2005-07-09  Bruno Haible  <bruno@clisp.org>
38298
38299                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
38300                 add a .dll suffix.
38301                 Reported by Mark Junker <mjscod@gmx.de>.
38302
38303         2006-06-17  Bruno Haible  <bruno@clisp.org>
38304
38305                 * config.charset: Update for NetBSD 3.0.
38306
38307         2006-05-17  Bruno Haible  <bruno@clisp.org>
38308
38309                 Cygwin portability.
38310                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
38311
38312         2006-05-16  Bruno Haible  <bruno@clisp.org>
38313
38314                 * localcharset.c [CYGWIN]: Include <windows.h>.
38315                 (get_charset_aliases): For Cygwin, return the same CPxxx
38316                 aliases list as under WIN32.
38317                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
38318                 the environment variables. Fall back to GetACP().
38319
38320         2006-04-05  Bruno Haible  <bruno@clisp.org>
38321
38322                 * config.charset: Update Juan Manuel Guerrero's address.
38323
38324         2005-02-12  Bruno Haible  <bruno@clisp.org>
38325
38326                 * allocsa.h: Add extern "C" for C++.
38327
38328         2005-02-10  Bruno Haible  <bruno@clisp.org>
38329
38330                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
38331                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
38332
38333         2006-07-22  Bruno Haible  <bruno@clisp.org>
38334
38335                 * gettext.h: Update to GNU gettext-0.15.
38336
38337 2006-07-22  Bruno Haible  <bruno@clisp.org>
38338
38339         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
38340         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
38341         lib-prefix.m4, longdouble.m4, ssize_t.m4.
38342
38343 2006-07-21  Eric Blake  <ebb9@byu.net>
38344
38345         * modules/stdlib-safer: New file.
38346         * MODULES.html.sh (File stream based Input/Output): Add
38347         stdlib-safer.
38348
38349 2006-07-21  Eric Blake  <ebb9@byu.net>
38350
38351         * lib/stdlib-safer.h: New file from coreutils, required by
38352         stdlib--.h.
38353
38354 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38355
38356         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
38357
38358 2006-07-20  Bruno Haible  <bruno@clisp.org>
38359
38360         * gnulib-tool: Recognize new option --assume-autoconf.
38361         (autoconf_minversion): New variable.
38362         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
38363
38364 2006-07-20  Bruno Haible  <bruno@clisp.org>
38365
38366         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
38367
38368 2006-07-19  Derek R. Price  <derek@ximbiot.com>
38369
38370         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
38371         Reindent and repaginate.
38372
38373 2006-07-19  Derek Price  <derek@ximbiot.com>
38374
38375         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
38376         Correct grammar.
38377
38378 2006-07-17  Bruno Haible  <bruno@clisp.org>
38379
38380         * modules/list: New file.
38381         * modules/array-list: New file.
38382         * modules/carray-list, modules/carray-list-tests: New files.
38383         * modules/linked-list, modules/linked-list-tests: New files.
38384         * modules/avltree-list, modules/avltree-list-tests: New files.
38385         * modules/rbtree-list, modules/rbtree-list-tests: New files.
38386         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
38387         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
38388         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
38389         * modules/oset: New file.
38390         * modules/array-oset: New file.
38391         * modules/avltree-oset, modules/avltree-oset-tests: New files.
38392         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
38393         * tests/test-carray_list.c: New file.
38394         * tests/test-linked_list.c: New file.
38395         * tests/test-avltree_list.c: New file.
38396         * tests/test-rbtree_list.c: New file.
38397         * tests/test-linkedhash_list.c: New file.
38398         * tests/test-avltreehash_list.c: New file.
38399         * tests/test-rbtreehash_list.c: New file.
38400         * tests/test-avltree_oset.c: New file.
38401         * tests/test-rbtree_oset.c: New file.
38402         * MODULES.html.sh (Container data structures): New section.
38403
38404 2006-07-17  Bruno Haible  <bruno@clisp.org>
38405
38406         * m4/gl_list.m4: New file.
38407
38408 2006-07-17  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/gl_list.h: New file.
38411         * lib/gl_list.c: New file.
38412         * lib/gl_array_list.h: New file.
38413         * lib/gl_array_list.c: New file.
38414         * lib/gl_carray_list.h: New file.
38415         * lib/gl_carray_list.c: New file.
38416         * lib/gl_linked_list.h: New file.
38417         * lib/gl_linked_list.c: New file.
38418         * lib/gl_anylinked_list1.h: New file.
38419         * lib/gl_anylinked_list2.h: New file.
38420         * lib/gl_avltree_list.h: New file.
38421         * lib/gl_avltree_list.c: New file.
38422         * lib/gl_anyavltree_list1.h: New file.
38423         * lib/gl_anyavltree_list2.h: New file.
38424         * lib/gl_rbtree_list.h: New file.
38425         * lib/gl_rbtree_list.c: New file.
38426         * lib/gl_anyrbtree_list1.h: New file.
38427         * lib/gl_anyrbtree_list2.h: New file.
38428         * lib/gl_anytree_list1.h: New file.
38429         * lib/gl_anytree_list2.h: New file.
38430         * lib/gl_linkedhash_list.h: New file.
38431         * lib/gl_linkedhash_list.c: New file.
38432         * lib/gl_anyhash_list1.h: New file.
38433         * lib/gl_anyhash_list2.h: New file.
38434         * lib/gl_avltreehash_list.h: New file.
38435         * lib/gl_avltreehash_list.c: New file.
38436         * lib/gl_rbtreehash_list.h: New file.
38437         * lib/gl_rbtreehash_list.c: New file.
38438         * lib/gl_anytreehash_list1.h: New file.
38439         * lib/gl_anytreehash_list2.h: New file.
38440
38441         * lib/gl_oset.h: New file.
38442         * lib/gl_oset.c: New file.
38443         * lib/gl_array_oset.h: New file.
38444         * lib/gl_array_oset.c: New file.
38445         * lib/gl_avltree_oset.h: New file.
38446         * lib/gl_avltree_oset.c: New file.
38447         * lib/gl_rbtree_oset.h: New file.
38448         * lib/gl_rbtree_oset.c: New file.
38449         * lib/gl_anytree_oset.h: New file.
38450
38451 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
38452
38453         * m4/mkancesdirs.m4: New file.
38454         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
38455         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
38456         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
38457         it.
38458
38459 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
38460
38461         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
38462         * lib/mkancesdirs.h: New files.
38463         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
38464         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
38465         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
38466         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
38467         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
38468         callers changed.  Revamp internals significantly, by not
38469         attempting to create directories that are temporarily more
38470         permissive than the final results.  Do not attempt to use
38471         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
38472         This removes some race conditions, fixes some bugs, and simplifies
38473         things.  Use new dirchownmod function to do owner and mode changes.
38474         * lib/mkdir-p.h: Likewise.
38475         * lib/modechange.c (octal_to_mode): New function.
38476         (struct mode_change): New member mentioned.
38477         (make_node_op_equals): New arg mentioned.  All callers changed.
38478         (mode_compile): Keep track of which mode bits the user has explicitly
38479         mentioned.
38480         (mode_adjust): New arg DIR, so that we implement the X op correctly.
38481         New arg PMODE_BITS, to keep track of which mode bits the user
38482         mentioned; it treats S_ISUID and S_ISGID speciall.
38483         All callers changed.
38484         * lib/modechange.h: Likewise.
38485
38486 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
38487
38488         * MODULES.html.sh: Add mkancestors.
38489         * modules/mkancesdirs: New module.
38490         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
38491         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
38492         The chdir-safer and afs files are now orphans; I'll remove them
38493         unless someone speaks up.
38494         Add lib/dirchownmod.c, lib/dirchownmod.h.
38495         (Depends-on): Remove alloca, chown, save-cwd, dirname.
38496         Add lchown, mkancesdirs.
38497         (Maintainer): Add self.
38498
38499 2006-07-15  Karl Berry  <karl@gnu.org>
38500
38501         * gnulib-tool: help message wording/arrangement.
38502
38503 2006-07-14  Simon Josefsson  <jas@extundo.com>
38504
38505         * doc/gnulib.texi (Libtool and Windows): New section.
38506
38507 2006-07-12  Simon Josefsson  <jas@extundo.com>
38508
38509         * modules/gendocs (License): Fix license, approved by Karl.
38510
38511 2006-07-12  Eric Blake  <ebb9@byu.net>
38512
38513         * MODULES.html.sh: Add gendocs.
38514
38515 2006-07-11  Eric Blake  <ebb9@byu.net>
38516
38517         * modules/fdl: New module, to install doc/fdl.texi.
38518         * MODULES.html.sh: Add new section for documentation modules.
38519         * gnulib-tool: Avoid space-tab.
38520         (--doc-base): New option, to manage files from doc.
38521
38522 2006-07-11  Eric Blake  <ebb9@byu.net>
38523
38524         * m4/absolute-header.m4: Fix comments to match recent change.
38525
38526 2006-07-11  Eric Blake  <ebb9@byu.net>
38527
38528         * gnulib-tool: List --doc-base before --tests-base.
38529
38530 2006-07-11  Derek R. Price  <derek@ximbiot.com>
38531
38532         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
38533
38534 2006-07-11  Bruno Haible  <bruno@clisp.org>
38535
38536         * README: Mention where to put documentation.
38537
38538 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38539
38540         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
38541
38542 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38543
38544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
38545         to stdint.m4.
38546
38547 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38548
38549         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
38550         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
38551         "no/such/file/stdint.h" when there is no such file, so that
38552         the resulting C code can be parsed by dodgy compilers.
38553         Problems reported by Bob Proulx.
38554
38555 2006-07-10  Derek R. Price  <derek@ximbiot.com>
38556
38557         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
38558         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
38559         macros into the GNU _D_EXACT_NAMLEN.
38560         * lib/savedir.c:  Likewise.
38561         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
38562
38563 2006-07-10  Derek R. Price  <derek@ximbiot.com>
38564         and Paul Eggert  <eggert@cs.ucla.edu>
38565
38566         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
38567         * m4/savedir.m4:
38568         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
38569         macros into the GNU _D_EXACT_NAMLEN.
38570
38571 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38572
38573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
38574         around the absolute name, to work around a problem with the HP-UX
38575         11.23 native C compiler, reported by Bob Proulx.
38576
38577 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38578
38579         * doc/maintain.texi, make-stds.texi: Sync from
38580         <http://savannah.gnu.org/projects/gnustandards>.
38581
38582 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38583
38584         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
38585
38586 2006-07-09  Jim Meyering  <jim@meyering.net>
38587
38588         * m4/glob.m4: Remove a doubled word in a comment.
38589
38590 2006-07-09  Jim Meyering  <jim@meyering.net>
38591
38592         * lib/argp-pv.c: Remove a doubled word in a comment.
38593         * lib/check-version.c (check_version): Likewise.
38594         * lib/javacomp.c (compile_java_class): Likewise.
38595
38596 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
38597
38598         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
38599         for the benefit of people using Autoconf 2.60.  If you want to
38600         support older Autoconf versions you can copy m4/onceonly_2_57.m4
38601         (or m4/onceonly.m4, if pre-2.57) manually.
38602
38603 2006-07-08  Jim Meyering  <jim@meyering.net>
38604
38605         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
38606         comment.
38607         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
38608         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
38609         comment.
38610
38611 2006-07-08  Jim Meyering  <jim@meyering.net>
38612
38613         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
38614
38615 2006-07-07  Simon Josefsson  <jas@extundo.com>
38616
38617         * tests/test-crc.c: Change expected crc value, the test vector
38618         were probably computed using the old broken crc.c?
38619
38620 2006-07-06  Simon Josefsson  <jas@extundo.com>
38621
38622         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
38623         now the canonical place for the M4 file).
38624
38625         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
38626         from the sys_socket dependency now.
38627
38628         * modules/inet_pton (Files): Ditto.
38629
38630         * modules/inet_ntop (Files): Ditto.
38631
38632 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38633
38634         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
38635         not gl_PREREQ_GETUSERSHELL.
38636
38637 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38638
38639         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
38640         with only one argument, for Autoconf 2.60.
38641         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
38642         expand to nothing, so add a shell command to avoid syntax error.
38643         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
38644
38645 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38646
38647         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
38648
38649 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38650
38651         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
38652         no longer needed.  Check for isblank decl.
38653         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
38654         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
38655         of existence.
38656
38657 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38658
38659         * lib/getloadavg.c: Use __VMS, not VMS.
38660         * lib/getopt.c: Likewise.
38661         * lib/getpagesize.h: Likewise.
38662         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
38663         and probably does not work.
38664
38665 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         * lib/.cppi-disable: Add wcwidth.
38668         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
38669         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
38670         (ISGRAPH): Remove.  All uses changed to isgraph.
38671         (FOLD) [!defined _LIBC]: Remove special case.
38672         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
38673         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
38674         HAVE_ISBLANK.
38675         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
38676         case.
38677
38678 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
38679
38680         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
38681         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
38682         brackets.  Other minor changes to suppress some compiler
38683         warnings.
38684
38685 2006-07-06  Derek R. Price  <derek@ximbiot.com>
38686         and Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
38689         of invoking obsolescent AC_HEADER_DIRENT macro.
38690         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
38691         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
38692         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38694         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
38695         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38696         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
38697         * m4/readdir.m4: Remove; no longer needed.
38698
38699 2006-07-06  Derek R. Price  <derek@ximbiot.com>
38700         and Paul Eggert  <eggert@cs.ucla.edu>
38701
38702         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
38703         Don't worry about this obsolete case any more.
38704         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
38705         directories.
38706         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
38707         worry about this obsolete case any more.
38708         * lib/fts.c: Likewise.
38709         * lib/getcwd.c: Likewise.
38710         * lib/glob.h: Likewise.
38711         * lib/savedir.c: Likewise.
38712
38713 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38714
38715         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
38716         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
38717         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
38718         needed.
38719         All uses removed.
38720         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
38721         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
38722         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
38723         needed.
38724         * m4/getdate.m4 (gl_GETDATE): Likewise.
38725         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
38726         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
38727         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38728         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
38729         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
38730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38731         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
38732         needed.
38733
38734 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38735
38736         * lib/memcasecmp.c: Include <limits.h>.
38737         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
38738         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
38739         Don't assume isdigit succeeds only on '0' through '9'.
38740
38741 2006-07-05  Eric Blake  <ebb9@byu.net>
38742
38743         * modules/getaddrinfo (Depends-on): Add snprintf.
38744
38745 2006-07-05  Eric Blake  <ebb9@byu.net>
38746
38747         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
38748         to avoid 'header present but could not be compiled' on cygwin.
38749
38750 2006-07-05  Eric Blake  <ebb9@byu.net>
38751
38752         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
38753         missing from netdb.h.
38754         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
38755
38756 2006-07-05  Derek R. Price  <derek@ximbiot.com>
38757
38758         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
38759         no longer needed.
38760         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
38761         * m4/getdate.m4 (gl_GETDATE): Likewise.
38762         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
38763         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
38764         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38765         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
38766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
38767
38768 2006-07-05  Derek R. Price  <derek@ximbiot.com>
38769
38770         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
38771         All uses of is_space replaced by isspace.
38772         * lib/exit.h: Don't talk about STDC_HEADERS.
38773         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
38774         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
38775         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
38776         replaced by isprint etc.
38777         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
38778         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
38779         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
38780         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
38781         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
38782         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
38783
38784 2006-07-05  Bruno Haible  <bruno@clisp.org>
38785
38786         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
38787         the function exists, before testing against AIX.
38788         Reported by Martin Lambers <marlam@marlam.de>.
38789
38790 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38791
38792         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
38793         From Mark D. Baushke.
38794
38795 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38796
38797         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
38798         to the absolute name, not just one, to bypass Sun C 5.8's
38799         "warning: #include of /usr/include/... may be non-portable".
38800
38801 2006-07-04  Eric Blake  <ebb9@byu.net>
38802
38803         * modules/dirname-tests: New test module.
38804         * tests/test-dirname.c: New file, replacing dirname.c
38805         TEST_DIRNAME section that was recently deleted.
38806
38807 2006-07-04  Bruno Haible  <bruno@clisp.org>
38808
38809         Assume ANSI C header files and <ctype.h> functions.
38810         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
38811         (mbsnwidth): Use isprint, iscntrl instead.
38812
38813 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38814
38815         Merge from coreutils.
38816         * MODULES.html.sh: Add xstrtold.
38817         * modules/xstrtold: New file.
38818         * modules/cycle-check (Files): Add lib/same-inode.h.
38819         * modules/dirname (Files): Add m4/double-slash-root.m4.
38820         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
38821         * modules/mkdir-p (Files): Add lib/same-inode.h.
38822         * modules/same (Files): Add lib/same-inode.h.
38823
38824 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38825
38826         * m4/absolute-header.m4: Renamed from full-header-path.m4.
38827         This is to keep the terminology clean; POSIX talks about
38828         "absolute pathnames", not "full pathnames", but the GNU
38829         Coding Standards say to use "path" for something else;
38830         so use "absolute" to keep both sides happy.
38831         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
38832         Set gl_absolute_header, not gl_full_header_path.
38833         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
38834         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
38835         All uses changed.
38836
38837         Merge from coreutils.
38838
38839         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
38840
38841         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
38842         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
38843         want to require the building of c-strtod.o.
38844         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
38845         needs -lm directly.
38846         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
38847
38848         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
38849
38850         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
38851         --as-needed option if available.  Problem reported by Albert Chin in
38852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
38853         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
38854         cc merely issues a bunch of annoying warnings for --as-needed
38855         (this problem was reported by Bob Proulx).  Also, try linking with
38856         -lm to detect a bug in binutils 2.16 (this problem was reported
38857         by Ralf Wildenhues).
38858
38859         2006-06-18  Jim Meyering  <jim@meyering.net>
38860
38861         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
38862         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
38863         macro.
38864         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
38865         also check for glibc-2.4's abort-inducing bug.
38866
38867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
38868         Low-probability clean-up should be to use rmdir to get rid of
38869         the just-created directory, not unlink.
38870
38871         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
38872         configure fail, and request a bug report to inform us about it.
38873         Add a comment that, barring reports to the contrary, in 2007 we'll
38874         assume ftruncate is universally available.
38875
38876         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
38877
38878         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
38879
38880         2006-03-12  Jim Meyering  <jim@meyering.net>
38881
38882         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
38883         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
38884         * m4/same.m4 (gl_SAME): Likewise.
38885         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
38886
38887         2006-03-11  Eric Blake  <ebb9@byu.net>
38888
38889         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
38890         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
38891         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
38892         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
38893
38894 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38895
38896         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
38897         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
38898         reported by Mark D. Baushke, one in
38899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
38900
38901         Merge from coreutils.
38902
38903         * lib/.cppi-disable: Add stdint_.h.
38904         * lib/.cvsignore: Add stdint.h.
38905
38906         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
38907
38908         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
38909         both double and long double versions.
38910         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
38911         * lib/xstrtold.c: New file.
38912         * lib/xstrtod.h (xstrtold): New decl.
38913
38914         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38915
38916         * lib/filemode.c (setst): Remove.
38917         (strmode): Rewrite to avoid setst.  This makes the code shorter,
38918         (arguably) clearer, and the generated code is a bit smaller on my
38919         Debian GNU/Linux stable x86 host.
38920
38921         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
38922
38923         * lib/filemode.c: Include "filemode.h" first, to test the interface.
38924         Assume that filemode.h includes sys/types.h and sys/stat.h.
38925         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
38926         (ftypelet): Reorder to put common cases first, for efficiency.
38927         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
38928         to do 'M'.
38929         (strmode): Renamed from mode_string, and now stores 12 bytes instead
38930         of 10, for compatibility with FreeBSD.  All callers changed.
38931         (filemodestring): Now stores 12 bytes instead of 10, and sets file
38932         types that can't be deduced solely from st_mode.  First arg is now a
38933         const pointer.
38934         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
38935         (strmode): Renamed from mode_string.
38936         (filemodestring): New decl.
38937         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
38938         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
38939         needed.
38940         (S_ISPORT, S_ISWHT): New macros, if not already defined.
38941
38942         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38943
38944         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
38945         fsusage.h now does that.  Include fsusage.h first, to test interface.
38946         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
38947         at most one method (the old code could have generated decls that
38948         didn't conform to C89, not that this was ever exercised).
38949         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
38950
38951         2006-03-19  Jim Meyering  <jim@meyering.net>
38952
38953         Work even in a chroot where d_ino values for entries in "/"
38954         don't match the stat.st_ino values for the same names.
38955         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
38956         number, iterate through all entries again, using lstat instead.
38957         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
38958         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
38959
38960         * lib/getcwd.c (__getcwd): Clarify a comment.
38961         Use memcpy in place of a call to strcpy.
38962
38963         2006-03-12  Jim Meyering  <jim@meyering.net>
38964
38965         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
38966         matches that of the current directory (which we're about to chdir ".."
38967         out of), then save the dev-ino of the parent, instead.
38968
38969         * lib/same-inode.h (SAME_INODE): New file/macro.
38970         * lib/chdir-safer.c (SAME_INODE): Remove definition.
38971         Include "same-inode.h", instead.
38972         * lib/same.c: Likewise.
38973         * lib/cycle-check.h: Include "same-inode.h".
38974         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
38975         * lib/cycle-check.c (SAME_INODE): Remove definition.
38976         * lib/root-dev-ino.h: Include "same-inode.h".
38977
38978         2006-03-11  Eric Blake  <ebb9@byu.net>
38979
38980         * lib/same.c (same_name): s/base_name/last_component/
38981         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
38982         * lib/filenamecat.c (file_name_concat): Likewise.
38983
38984         2006-03-11  Eric Blake  <ebb9@byu.net>,
38985                     Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
38988         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
38989         drive prefix.
38990         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
38991         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
38992         (last_component): New method.
38993         * lib/dirname.c (dir_len): Determine when drive letters need a
38994         subsequent slash.  Preserve // when it is special.
38995         (dir_name): Don't append dot when drive letter is absolute.
38996         [TEST_DIRNAME]: Move into a full-blown gnulib test.
38997         * lib/basename.c (base_name): New semantics - malloc the result.
38998         Preserve // when it is special.  Preserve relative files that look
38999         like drive letters.
39000         (base_len): Preserve // when it is special.
39001         (last_component): New method, similar to old base_name semantics.
39002         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
39003         base_name.  Strip redundant slashes from ///.
39004
39005 2006-07-03  Jim Meyering  <jim@meyering.net>
39006
39007         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
39008         macro is used before the first cycle_check call.
39009
39010 2006-07-03  Eric Blake  <ebb9@byu.net>
39011
39012         * modules/dirname (Depends-on): Add xstrndup.
39013
39014 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39015
39016         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
39017         test cases, so that config.log is a bit easier to follow.
39018
39019 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39020
39021         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
39022         both are 64 bits, since this seems to be the tradition, and this
39023         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
39024         we ever run into a host that prefers long long to long in this
39025         case, we'll need another configure-time test.  Problem reported by
39026         Jim Meyering.
39027
39028 2006-07-02  Eric Blake  <ebb9@byu.net>
39029
39030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
39031
39032 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39033
39034         * modules/inttypes (Depends-on): No longer depends on stdint.
39035         * modules/stdint (Description): Say more about assumptions.
39036         Say that the fast types might differ.  Say macros are used.
39037         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
39038         (Makefile.am): Revise list of substituted symbols to match
39039         new stdint.m4.
39040         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
39041         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
39042         * tests/test-stdint.c (verify_same_types)
39043         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
39044         the code conforms to C99/C89.
39045         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
39046         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
39047
39048 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39049
39050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
39051         but fix a bug, by requiring at least 64 bits.
39052         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39053         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
39054         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
39055         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
39056
39057         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
39058         changes.  Make 2.59 a prerequisite.  Check and substitute for
39059         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
39060         inttypes.h.  Do not use special include files; just use the
39061         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
39062         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
39063         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
39064         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
39065         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
39066         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
39067         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
39068         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
39069         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
39070         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
39071         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
39072         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
39073         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
39074         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
39075         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
39076         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
39077         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
39078         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
39079         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
39080         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
39081         WINT_MAX.  Check for C99 conformance more strictly, by detecting
39082         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
39083         not check for things that C99 does not require, e.g., int8_t.  If
39084         a test isn't needed unless <stdint.h> isn't working, and is
39085         unlikely to be needed for any other reason, then don't do it
39086         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
39087         size_t, since we assume C89 freestanding at least.  Do not check
39088         for sig_atomic_t, wchar_t, or wint_t, since the code now does
39089         the right thing even if the types are not defined.  Instead use:
39090         (gl_STDINT_TYPE_PROPERTIES): New macro.
39091         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
39092         testing whether <sys/types.h> clashes, as Autoconf does this for
39093         us now.  All uses removed.
39094         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
39095         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
39096         (gl_CHECK_TYPE_SAME):
39097         Remove; no longer needed.
39098         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
39099         exists, since we'll return 0 anyway in that case.
39100         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
39101
39102 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
39105         possible collision with system files.
39106         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
39107         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
39108         WCHAR_MIN and WCHAR_MAX in this case.
39109         (<stddef.h>): Do not include; no longer needed.
39110         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
39111         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
39112         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
39113         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
39114         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
39115         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
39116         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
39117         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
39118         !defined(__c99))]: Include in this case too, since it's harmless
39119         now.
39120         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
39121         dangerous to do so.
39122         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
39123         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
39124         (_STDINT_MIN, _STDINT_MAX): New macros.
39125         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
39126         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
39127         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
39128         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
39129         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
39130         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
39131         macros, not typedefs; this simplifies things quite a bit.
39132         Use long int for all types narrower than int64_t.
39133         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
39134         Define in terms of long long int or int64_t or long int,
39135         not int64_t or int32_t.  This saves some compile-time testing.
39136         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
39137         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
39138         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
39139         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
39140         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
39141         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
39142         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
39143         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39144         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
39145         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
39146         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
39147         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
39148         undef any previous version and define our own version, for
39149         simplicity and consistency with the new macros for types.
39150         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
39151         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
39152         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
39153         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
39154         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
39155         @WINT_T_SUFFIX@ to keep things simple here.
39156         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
39157         Simplify by assuming typical 8/16/32/64 host, since we're
39158         already doing that elsewhere anyway.
39159         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
39160         and assume long long int is 64 bits if available.  This
39161         speeds up 'configure'.
39162
39163 2006-07-01  Eric Blake  <ebb9@byu.net>
39164
39165         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
39166         Reported by Andreas Buening.
39167
39168 2006-07-01  Eric Blake  <ebb9@byu.net>
39169
39170         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
39171
39172 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
39173
39174         * lib/getaddrinfo.c: fixed typo
39175
39176 2006-06-29  Jim Meyering  <jim@meyering.net>
39177
39178         * modules/strftime (Maintainer): Add my name, since with the
39179         FPRINTFTIME changes strftime.c has forked from glibc.
39180
39181 2006-06-29  Eric Blake  <ebb9@byu.net>
39182
39183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
39184
39185 2006-06-29  Eric Blake  <ebb9@byu.net>
39186
39187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
39188
39189 2006-06-29  Eric Blake  <ebb9@byu.net>
39190
39191         * lib/stat_.h: New file.
39192
39193 2006-06-29  Eric Blake  <ebb9@byu.net>
39194
39195         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
39196         unused static function.
39197
39198 2006-06-29  Eric Blake  <ebb9@byu.net>
39199
39200         * doc/functions.texi (Function Portability): Document missing lstat
39201         on mingw.
39202
39203 2006-06-29  Eric Blake  <ebb9@byu.net>
39204
39205         * MODULES.html.sh: Add sys_stat.
39206         * modules/sys_stat: New module.
39207         * modules/mkstemp (Depends-on): Add sys_stat.
39208
39209 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39210
39211         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
39212
39213 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39214
39215         * m4/c-bs-a.m4: Removed.
39216
39217 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39218
39219         * lib/strftime.c: Assume strftime() exists.
39220
39221 2006-06-29  Derek Price  <derek@ximbiot.com>
39222
39223         * modules/c-bs-a: Removed - \a is C89.
39224         * MODULES.html.sh: Remove c-bs-a.
39225
39226 2006-06-29  Bruno Haible  <bruno@clisp.org>
39227
39228         * modules/wcwidth (License): Change to LGPL.
39229
39230 2006-06-28  Simon Josefsson  <jas@extundo.com>
39231
39232         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
39233         on _WIN32.
39234
39235         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
39236         getnameinfo.
39237
39238 2006-06-28  Simon Josefsson  <jas@extundo.com>
39239
39240         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
39241
39242 2006-06-28  Simon Josefsson  <jas@extundo.com>
39243
39244         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
39245         functions there.  It will succeed on Windows XP, but on Windows
39246         2000 and (presumably) earlier, it will fail, and use the internal
39247         re-implementation.
39248         (use_win32_p): New function.
39249         (getaddrinfo): Use strtoul on servname, to support numeric ports.
39250         Support AI_NUMERICSERV to disable getservbyname.
39251         (getnameinfo): New function, only supports
39252         NI_NUMERICHOST|NI_NUMERICSERV for now.
39253
39254         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
39255         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
39256         getnameinfo.
39257
39258 2006-06-28  Eric Blake  <ebb9@byu.net>
39259
39260         * modules/wcwidth: New file.
39261         * modules/mbchar (Depends-on): Add wcwidth.
39262         * modules/mbswidth (Depends-on): Add wcwidth.
39263         * MODULES.html.sh: Add wcwidth.
39264
39265 2006-06-28  Eric Blake  <ebb9@byu.net>
39266
39267         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
39268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
39269
39270 2006-06-28  Eric Blake  <ebb9@byu.net>
39271
39272         * lib/xvasprintf.h: Fix comments.
39273
39274 2006-06-28  Eric Blake  <ebb9@byu.net>
39275
39276         * lib/mbchar.h (wcwidth): Include wcwidth.h.
39277         * lib/mbswidth.c (wcwidth): Move from here...
39278         * lib/wcwidth.h: ...to this new file.
39279
39280 2006-06-28  Derek R. Price  <derek@ximbiot.com>
39281
39282         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
39283
39284         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
39285         it's obsolete.
39286         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
39287
39288 2006-06-28  Derek R. Price  <derek@ximbiot.com>
39289
39290         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
39291         Autoconf 2.60 says this stuff was obsolete.
39292
39293 2006-06-28  Bruno Haible  <bruno@clisp.org>
39294
39295         * modules/wcwidth (Files): Add m4/wchar_t.m4.
39296
39297 2006-06-28  Bruno Haible  <bruno@clisp.org>
39298
39299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
39300         gt_TYPE_WCHAR_T.
39301
39302 2006-06-28  Bruno Haible  <bruno@clisp.org>
39303
39304         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
39305         declaration for wcwidth.
39306         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
39307
39308 2006-06-28  Bruno Haible  <bruno@clisp.org>
39309
39310         * lib/mkdtemp.c [MINGW]: Include <io.h>.
39311         (mkdir): Define using _mkdir.
39312
39313 2006-06-28  Bruno Haible  <bruno@clisp.org>
39314
39315         * lib/getaddrinfo.h: Fix POSIX URL.
39316         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
39317         _WIN32.
39318         (use_win32_p): Make static.
39319         (getaddrinfo): Reject service name if it is empty or does not consist
39320         solely of decimal digits, or if its value is > 65535.
39321         (getnameinfo): Remove useless casts.
39322
39323 2006-06-27  Simon Josefsson  <jas@extundo.com>
39324
39325         * modules/sys_select: New file, suggested by Bruno Haible, Paul
39326         Eggert and Martin Lambers.
39327
39328 2006-06-27  Simon Josefsson  <jas@extundo.com>
39329
39330         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
39331         Eggert and Martin Lambers.
39332
39333 2006-06-27  Bruno Haible  <bruno@clisp.org>
39334
39335         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
39336         result to 0, not to empty.
39337         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
39338
39339 2006-06-27  Bruno Haible  <bruno@clisp.org>
39340
39341         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
39342
39343 2006-06-26  Simon Josefsson  <jas@extundo.com>
39344
39345         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
39346         present.
39347
39348 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
39349
39350         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
39351         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
39352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
39353
39354 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
39355
39356         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
39357
39358 2006-06-26  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
39361
39362 2006-06-26  Bruno Haible  <bruno@clisp.org>
39363
39364         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
39365
39366 2006-06-26  Bruno Haible  <bruno@clisp.org>
39367
39368         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
39369         SGI C compiler in pre-C99 mode.
39370         Suggested by Mark D. Baushke and Larry Jones.
39371
39372 2006-06-26  Bruno Haible  <bruno@clisp.org>
39373
39374         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
39375         WCHAR_MAX.
39376         Reported by Mark D. Baushke and Larry Jones.
39377
39378 2006-06-26  Bruno Haible  <bruno@clisp.org>
39379
39380         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
39381         in pre-C99 mode.
39382         Suggested by Mark D. Baushke and Larry Jones.
39383
39384 2006-06-23  Simon Josefsson  <jas@extundo.com>
39385             Bruno Haible  <bruno@clisp.org>
39386
39387         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
39388         Emit mostlyclean-local rule.
39389         (func_emit_tests_Makefile_am): Likewise.
39390         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
39391
39392 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
39393
39394         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
39395
39396 2006-06-23  Bruno Haible  <bruno@clisp.org>
39397
39398         * tests/test-stdint.c: Update to match ISO C 99 Technical
39399         Corrigendum 1.
39400
39401 2006-06-23  Bruno Haible  <bruno@clisp.org>
39402
39403         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
39404
39405 2006-06-23  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/stdint_.h: Treat IRIX like OpenBSD.
39408
39409 2006-06-23  Bruno Haible  <bruno@clisp.org>
39410
39411         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
39412         ISO C 99 Technical Corrigendum 1.
39413
39414 2006-06-22  Simon Josefsson  <jas@extundo.com>
39415
39416         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
39417         MinGW.
39418
39419 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39420
39421         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
39422         needed.  Some compiler complained about some of them.  Problem reported
39423         by Larry Jones in
39424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
39425
39426 2006-06-21  Simon Josefsson  <jas@extundo.com>
39427
39428         * tests/test-getaddrinfo.c: New file.
39429
39430         * modules/getaddrinfo-tests: New file.
39431
39432         * MODULES.html.sh: Add inet_pton.
39433
39434         * modules/inet_pton: New file.
39435
39436 2006-06-21  Simon Josefsson  <jas@extundo.com>
39437
39438         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
39439         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
39440         of using the (limited) gnulib implementation on Windows XP.
39441
39442         * m4/inet_pton.m4: New file.
39443
39444 2006-06-21  Simon Josefsson  <jas@extundo.com>
39445
39446         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
39447         variable.
39448
39449         * lib/socket_.h: Don't define WINVER.
39450
39451         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
39452         slightly modified to work in gnulib.
39453
39454 2006-06-21  Simon Josefsson  <jas@extundo.com>
39455
39456         * doc/gnulib.texi (Windows sockets): Add.
39457
39458 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39459
39460         * lib/read-file.c (fread_file): Start with buffer allocation of
39461         0 bytes rather than 1 byte; this simplifies the code.
39462         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
39463         code to free buffer and save/restore errno.
39464         (internal_read_file): Remove unused local.
39465
39466 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39467
39468         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
39469         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
39470         Problem reported by Denis Excoffier in
39471         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
39472
39473 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39474
39475         * modules/sys_socket, modules/socklen: Include sys/types since
39476         FreeBSD 4.x's sys/socket.h needs it.
39477
39478 2006-06-19  Simon Josefsson  <jas@extundo.com>
39479
39480         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
39481
39482 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
39483
39484         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
39485
39486 2006-06-19  Bruno Haible  <bruno@clisp.org>
39487
39488         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
39489         and FULL_PATH_INTTYPES_H in angle brackets.
39490         Reported by Mark D. Baushke <mdb@gnu.org>.
39491
39492 2006-06-17  Eric Blake  <ebb9@byu.net>
39493
39494         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
39495         errno.
39496
39497 2006-06-17  Bruno Haible  <bruno@clisp.org>
39498
39499         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
39500         <sys/inttypes.h>.
39501
39502 2006-06-17  Bruno Haible  <bruno@clisp.org>
39503
39504         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
39505         whether errno is declared. Assume <errno.h> declares errno.
39506
39507 2006-06-17  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
39510
39511 2006-06-17  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
39514         problem on Solaris 2.5.1.
39515
39516 2006-06-16  Eric Blake  <ebb9@byu.net>
39517
39518         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
39519         * lib/unicodeio.c [!defined errno]: Likewise.
39520         * lib/strtol.c [!defined errno]: Likewise.
39521         * lib/strtod.c [!defined errno]: Likewise.
39522
39523 2006-06-15  Eric Blake  <ebb9@byu.net>
39524
39525         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
39526
39527 2006-06-15  Eric Blake  <ebb9@byu.net>
39528
39529         * config/srclist.txt (ssize_t.m4): Lose sync.
39530
39531 2006-06-15  Bruno Haible  <bruno@clisp.org>
39532
39533         * modules/stdint (Files): Include m4/full-header-path.m4,
39534         m4/size_max.m4, m4/wchar_t.m4.
39535         (Makefile.am): Many more substitutions.
39536         * modules/stdint-tests: New file.
39537         * tests/test-stdint.c: New file.
39538
39539 2006-06-15  Bruno Haible  <bruno@clisp.org>
39540
39541         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
39542         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
39543         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
39544         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
39545         gl_CHECK_TYPE_SAME): New macros.
39546
39547 2006-06-15  Bruno Haible  <bruno@clisp.org>
39548
39549         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
39550
39551 2006-06-15  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/stdint_.h: Rewritten to be fully auto-configured.
39554         Fixes bug on HP-UX/IA64.
39555
39556 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
39557
39558         * lib/getdate.y (__attribute__): Don't define if already defined.
39559         Problem reported by Larry Jones.
39560         * lib/utimens.c (__attribute__): Likewise.
39561
39562 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
39563
39564         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
39565         reported by Andreas Schwab.
39566
39567 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39568             Bruno Haible  <bruno@clisp.org>
39569
39570         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
39571         check for the declaration of strnlen and a run test that exposes the
39572         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
39573         rpl_strndup.
39574
39575 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39576             Bruno Haible  <bruno@clisp.org>
39577
39578         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
39579
39580 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39581
39582         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
39583         compile test, for Tru64 4.0D.
39584
39585 2006-05-28  Karl Berry  <karl@gnu.org>
39586
39587         * config/srclist.txt (printf-args.c): lose sync.
39588
39589 2006-05-26  Martin Lambers  <marlam@marlam.de>
39590
39591         * lib/getpass.c: Updates the test for the native W32 API, and adds
39592         missing includes, thus fixing compilation warnings.
39593
39594 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39595
39596         * lib/exclude.c (exclude_fnmatch): New function.
39597         (excluded_file_name): Call exclude_fnmatch.
39598         * lib/exclude.h (excluded_file_name): New prototype
39599
39600 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
39601
39602         * lib/tempname.c (small_open, large_open): New macros.
39603         (__open, __open64) [!_LIBC]: Remove.
39604         (__gen_tempname): Use small_open and large_open instead of __open
39605         and __open64.  This fixes a portability bug on HP-UX 11.11i
39606         reported by Simon Wing-Tang in
39607         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
39608
39609 2006-05-24  Bruno Haible  <bruno@clisp.org>
39610
39611         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
39612         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
39613         Reported by Thorsten Maerz <torte@netztorte.de> via
39614         Aaron Stone <aaron@serendipity.cx>.
39615
39616 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39617
39618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
39619         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
39620         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
39621         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
39622         not really conditional on the cache.
39623         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
39624
39625 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39626
39627         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
39628         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
39629         (my_usleep): Don't mishandle maximum value.
39630
39631 2006-05-19  Jim Meyering  <jim@meyering.net>
39632
39633         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
39634
39635 2006-05-17  Bruno Haible  <bruno@clisp.org>
39636
39637         Cygwin portability.
39638         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
39639
39640 2006-05-17  Bruno Haible  <bruno@clisp.org>
39641
39642         * lib/stdint_.h: Fix recognition of Cygwin.
39643
39644 2006-05-15  Bruno Haible  <bruno@clisp.org>
39645
39646         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
39647         on libtool patch by Ralf Wildenhues.
39648
39649 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39650
39651         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
39652         test for C99 conformance; (bool) 0.5 is an integer constant
39653         expression, but (bool) -0.5 is not.  Problem reported by Fedor
39654         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
39655
39656 2006-05-11  Simon Josefsson  <jas@extundo.com>
39657
39658         * m4/xvasprintf.m4: Fix obvious typo.
39659
39660 2006-05-11  Jim Meyering  <jim@meyering.net>
39661
39662         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
39663         James Lemley.
39664
39665 2006-05-10  Simon Josefsson  <jas@extundo.com>
39666
39667         * lib/md4.c: Typo fix, update copyright years.
39668         (K1, K2): Don't use L because it turn computations into 64-bit on
39669         64-bit platforms.
39670
39671 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
39674         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
39675         unwanted sign propagation, e.g., on hosts with 64-bit int.
39676         There still are some problems with reeelly weird theoretical hosts
39677         (e.g., 33-bit int) but it's not worth worrying about now.
39678         * lib/sha1.c (rol): Likewise.
39679         (K1, K2, K3, K4): Remove unnecessary L suffix.
39680
39681 2006-05-10  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/des.c: Cast to avoid warnings.
39684
39685 2006-05-09  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
39688         (Depends-on): Depend also on xsize, stdarg.
39689         (configure.ac): Add gl_XVASPRINTF.
39690
39691 2006-05-09  Bruno Haible  <bruno@clisp.org>
39692
39693         * m4/xvasprintf.m4: New file.
39694
39695 2006-05-09  Bruno Haible  <bruno@clisp.org>
39696
39697         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
39698         (EOVERFLOW): Define fallback value.
39699         (xstrcat): New function.
39700         (xvasprintf): Recognize the special case of a string concatenation.
39701
39702 2006-05-08  Eric Blake  <ebb9@byu.net>
39703
39704         * gnulib-tool (func_version): Base copyright year on CVS date.
39705         (func_emit_copyright_notice): New function.
39706         (func_emit_lib_Makefile_am): Use it.
39707         (func_emit_tests_Makefile_am): Likewise.
39708         (func_import): Likewise.
39709
39710 2006-05-08  Bruno Haible  <bruno@clisp.org>
39711
39712         * modules/stdarg: New file.
39713         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
39714
39715 2006-05-08  Bruno Haible  <bruno@clisp.org>
39716
39717         * m4/stdarg.m4: New file, from GNU gettext.
39718
39719 2006-05-08  Bruno Haible  <bruno@clisp.org>
39720
39721         * config/srclist.txt (build-aux/config.rpath): different from latest
39722         release.
39723
39724 2006-05-08  Bruno Haible  <bruno@clisp.org>
39725
39726         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
39727
39728 2006-05-05  Jim Meyering  <jim@meyering.net>
39729
39730         * m4/warning.m4: New file, derived from bison's file by the same name.
39731
39732 2006-05-03  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/stdint_.h: Shorter URL.
39735         * lib/inttypes.h: Likewise.
39736
39737 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39738
39739         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
39740
39741 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39742
39743         * lib/verify.h: Document the internals better.  Most of this change
39744         was written by Bruno Haible.
39745
39746 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39747
39748         * doc/verify.texi: New file, partly based on a proposal by
39749         Bruno Haible.
39750
39751 2006-05-02  Bruno Haible  <bruno@clisp.org>
39752
39753         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
39754         test from here...
39755         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
39756
39757 2006-04-29  Bruno Haible  <bruno@clisp.org>
39758
39759         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
39760         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
39761
39762 2006-04-29  Bruno Haible  <bruno@clisp.org>
39763
39764         * gnulib-tool: Make --update option actually work.
39765
39766 2006-04-29  Bruno Haible  <bruno@clisp.org>
39767
39768         * doc/gcd.texi: New file.
39769         * doc/gnulib.texi: Include it.
39770
39771 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
39772
39773         * lib/getdate.y (get_date): When adding relative date, start with the
39774         initial time, not with the result of the first mktime call.
39775
39776 2006-04-25  Bruno Haible  <bruno@clisp.org>
39777
39778         * gnulib-tool (func_import): Output the include directives in three
39779         blocks, sorted separately.
39780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39781
39782 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
39785         to define main with arguments, for C++.  Reported by Eric Blake.
39786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
39787         Prefer 'int main ()' to 'int main (void)', for C++.
39788         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
39789         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
39790         for 'main', for C99 and C++.
39791
39792 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
39793
39794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
39795         Don't assume that exit status -1 is valid.
39796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39797         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39798         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39799         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
39800         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
39801         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
39802         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
39803         functions can be used without declaring them, or that you can
39804         exit with status -1.
39805         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39806
39807 2006-04-24  Karl Berry  <karl@gnu.org>
39808
39809         * config/srclist.txt (longdouble.m4): sync lost.
39810
39811 2006-04-24  Eric Blake  <ebb9@byu.net>
39812
39813         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
39814
39815 2006-04-24  Bruno Haible  <bruno@clisp.org>
39816
39817         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
39818         poll() implementation in AIX.
39819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39820
39821 2006-04-24  Bruno Haible  <bruno@clisp.org>
39822
39823         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
39824         assigned exactly once.
39825
39826 2006-04-23  Claudio Fontana  <claudio@gnu.org>
39827             Bruno Haible  <bruno@clisp.org>
39828
39829         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
39830         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
39831         for AM_CPPFLAGS.
39832
39833 2006-04-23  Bruno Haible  <bruno@clisp.org>
39834
39835         * modules/copy-file: Depend on unistd.
39836         * modules/execute: Likewise.
39837         * modules/fatal-signal: Likewise.
39838         * modules/findprog: Likewise.
39839         * modules/mkdtemp : Likewise.
39840         * modules/pipe: Likewise.
39841         * modules/wait-process: Likewise.
39842
39843 2006-04-23  Bruno Haible  <bruno@clisp.org>
39844
39845         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
39846         condition was already detected.
39847         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39848
39849 2006-04-23  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/copy-file.c: Include <unistd.h> unconditionally.
39852         * lib/execute.c: Likewise.
39853         * lib/fatal-signal.c: Likewise.
39854         * lib/findprog.c: Likewise.
39855         * lib/mkdtemp.c: Likewise.
39856         * lib/pipe.h: Likewise.
39857         * lib/pipe.c: Likewise.
39858         * lib/wait-process.h: Likewise.
39859
39860 2006-04-23  Bruno Haible  <bruno@clisp.org>
39861
39862         * gnulib-tool (func_usage): Fix --import description. Document
39863         --update.
39864         (func_import): Create temporary file in a temporary directory, if
39865         --dry-run is specified. Silence errors from 'grep' when there are no
39866         m4 files in $m4dir.
39867         (func_create_testdir): Silence errors from 'grep' when there are no
39868         m4 files in $m4dir.
39869         Reported by Karl Berry <karl@freefriends.org>.
39870
39871 2006-04-20  Bruno Haible  <bruno@clisp.org>
39872
39873         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
39874         one argument, so that the code will be portable to Autoconf 2.60.
39875         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
39876         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39877         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
39878
39879 2006-04-19  Derek Price  <derek@ximbiot.com>
39880             Eric Blake  <ebb9@byu.net>
39881
39882         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
39883         rather than "/full/path.h".  Update comment to match.  Shorten &
39884         generalize m4_translit call via AS_TR_CPP.
39885
39886 2006-04-19  Derek Price  <derek@ximbiot.com>
39887             Eric Blake  <ebb9@byu.net>
39888
39889         * lib/inttypes.h: Correct grammar in comment.
39890
39891 2006-04-18  Derek Price  <derek@ximbiot.com>
39892             Paul Eggert  <eggert@cs.ucla.edu>
39893
39894         * modules/inttypes: New file.
39895         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
39896
39897 2006-04-18  Derek Price  <derek@ximbiot.com>
39898             Paul Eggert  <eggert@cs.ucla.edu>
39899
39900         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
39901         New files.
39902
39903 2006-04-18  Derek Price  <derek@ximbiot.com>
39904             Paul Eggert  <eggert@cs.ucla.edu>
39905
39906         * lib/inttypes.h: New file.
39907         * lib/strtoimax.c: Assume <inttypes.h>.
39908
39909 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
39910
39911         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
39912         isn't mounted.  Problem reported by Kir Kolyshkin.
39913
39914 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
39917         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
39918         Derek R. Price.
39919         * lib/regex.h (RE_DUP_MAX): Update comment to match current
39920         implementation.
39921
39922 2006-04-12  Eric Blake  <ebb9@byu.net>
39923
39924         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
39925         is now done automatically by the corresponding Autoconf macro.
39926
39927 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
39928
39929         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
39930         time_r.h.
39931
39932 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
39933
39934         Merge regex changes from libc, removing some of our
39935         POSIX-conformance changes that were rejected and redoing them in a
39936         less-intrusive way.
39937
39938         * lib/regcomp.c (re_compile_internal, init_dfa):
39939         Length arg is now size_t, not Idx.  All uses changed.
39940         (peek_token): Forward decl now says internal_function.
39941         (__re_error_msgid, __re_error_msgid_idx):
39942         Now static rather than extern with attribute_hidden.
39943         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
39944         For some reason libc prefers K&R style defns for external functions.
39945         (regerror) [!defined _LIBC]: Likewise.
39946         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
39947         (seek_collating_symbol_entry, lookup_collation_sequence_value):
39948         (build_range_exp, build_collating_symbol):
39949         Use K&R-style defn.
39950         (re_compile_fastmap): Use '\0' to memset, not 0.
39951         (utf8_sb_map): Make the calculations more obvious.
39952         (init_dfa, parse_bracket_exp, build_charclass_op):
39953         Call calloc and cast result, as glibc does.
39954         (init_word_char, fetch_token, peek_token, peek_token_bracket):
39955         (build_range_exp, build_collating_symbol):
39956         Now internal functions.
39957
39958         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
39959
39960         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
39961         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
39962         Don't depend on VMS; depend on __VMS instead, for POSIX
39963         namespace cleanness.
39964         (regoff_t): Define to ssize_t, not long int.
39965
39966         Remove the REG_ macros named below.  Instead, make the old names
39967         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
39968         __USE_GNU_REGEX.
39969         (REG_BACKSLASH_ESCAPE_IN_LISTS):
39970         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
39971         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
39972         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
39973         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
39974         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
39975         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
39976         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
39977         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
39978         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
39979         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
39980         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
39981         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
39982         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
39983         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
39984         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
39985         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
39986         (REG_NREGS):
39987         Remove.  All uses replaced by the old RE_* names.
39988         (RE_BACKSLASH_ESCAPE_IN_LISTS):
39989         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
39990         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
39991         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
39992         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
39993         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
39994         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
39995         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
39996         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
39997         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
39998         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
39999         Don't bother having these macros be independent of each others'
40000         values, since they no longer exist in the POSIX name space.
40001
40002         Rename the following member names back to their old names,
40003         unless !__USE_GNU_REGEX.  All uses changed back.
40004         (buffer): Renamed from re_buffer.
40005         (allocated): Renamed from re_allocated.
40006         (used): Renamed from re_used.
40007         (syntax): Renamed from re_syntax.
40008         (fastmap): Renamed from re_fastmap.
40009         (translate): Renamed from re_translate.
40010         (can_be_null): Renamed from re_can_be_null.
40011         (regs_allocated): Renamed from re_regs_allocated.
40012         (fastmap_accurate): Renamed from re_fastmap_accurate.
40013         (no_sub): Renamed from re_no_sub.
40014         (not_bol): Renamed from re_not_bol.
40015         (not_eol): Renamed from re_not_eol.
40016         (newline_anchor): Renamed from re_newline_anchor.
40017         (num_regs): Renamed from rm_num_regs.
40018         (start): Renamed from rm_start.
40019         (end): Renamed from rm_end.
40020
40021         (free_state): Move up a bit.
40022
40023         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
40024         #define to be empty.
40025         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
40026         when that is what is intended.
40027         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
40028         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
40029         (MAX): New macro.
40030         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
40031         All uses changed back to re_malloc, etc.  It's now the caller's
40032         responsibility to check for overflow; all callers changed.
40033         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
40034         (re_x2nrealloc): Remove.
40035         (free_state): Remove decl.
40036
40037         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
40038         (re_set_registers, re_exec):
40039         Use K&R-style defn.
40040
40041         2006-01-31  Roland McGrath  <roland@redhat.com>
40042
40043         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
40044         Reported by Mike Frysinger <vapier@gentoo.org>.
40045
40046         2006-01-15  Andreas Jaeger  <aj@suse.de>
40047
40048         [BZ #1950]
40049         * lib/regex_internal.c (re_string_reconstruct): Adjust for
40050         build_wcs_upper_buffer change.
40051         (build_wcs_upper_buffer): Change return type.
40052
40053         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
40054
40055         * lib/regex_internal.h: Include <stdint.h> if available.
40056
40057         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
40058
40059         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
40060
40061         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40062
40063         * lib/regcomp.c: Adjust for changed secondary hash function.
40064
40065         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
40066
40067         * lib/regex.h: Pretty printing.
40068         Clean up namespace a bit.
40069
40070         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
40071
40072         * lib/regexec.c (update_cur_sifted_state, check_arrival,
40073         check_arrival_add_next_nodes): Avoid using uninitialized variable.
40074
40075         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40076                     Ulrich Drepper  <drepper@redhat.com>
40077
40078         [BZ #1302]
40079         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
40080         changed.
40081         (bitset_word_t): Renamed from bitset_word.  All uses changed.
40082
40083         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
40084
40085         [BZ #281]
40086         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
40087         * lib/regcomp.c: Remove unnecessary uses of
40088         unsigned RE_TRANSLATE_TYPE.
40089         * lib/regex_internal.h: Likewise.
40090         * lib/regex_internal.c: Likewise.
40091         * lib/regexec.c: Likewise.
40092         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
40093
40094         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
40095
40096         * lib/regexec.c (find_recover_state): Remove unnecessary
40097         initialization.
40098         (transit_state_bkref): Make DFA a const pointer.
40099         (get_subexp): Likewise.
40100         (check_arrival): Likewise.
40101         (update_cur_sifted_state): Likewise.
40102         (re_search_internal): Likewise.
40103         (prune_impossible_nodes): Likewise.
40104         (acquire_init_state_context): Likewise.
40105         (proceed_next_node): Likewise.
40106         (set_regs): Likewise.
40107         (free_fail_stack_return): Likewise.
40108         (check_arrival_expand_ecl): Mark DFA parameter as const.
40109         (check_arrival_expand_ecl_sub): Likewise.
40110         (check_subexp_limits): Likewise.
40111         (sub_epsilon_src_nodes):  Likewise.
40112         (add_epsilon_src_nodes):  Likewise.
40113         (merge_state_array): Likewise.
40114         (update_regs): Likewise.
40115         (build_trtable): Likewise.
40116         (sift_states_backward): Mark MCTX parameter as const.
40117         (build_sifted_states): Likewise.
40118         (update_cur_sifted_state): Likewise.
40119         (sift_states_mkref): Likewise.
40120         (check_arrival_expand_ecl): Mark eclosure as const.
40121         (check_dst_limits_calc_pos_1): Likewise.
40122         * lib/regex_internal.h (re_match_context_t): Make dfa a const
40123         pointer.
40124
40125         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
40126
40127         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
40128         (transit_state_sb): Likewise.
40129         (transit_state_mb): Likewise.
40130         (sift_states_iter_mb): Likewise.
40131         (check_arrival_add_next_nodes): Likewise.
40132         (check_node_accept_bytes): Change first parameter to pointer-to-const.
40133         [_LIBC] (re_search_2_stub): Use mempcpy.
40134
40135         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
40136         mbrtowc for very simple UTF-8 case.
40137
40138         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
40139         a pointer-to-const.
40140         (re_acquire_state_context): Likewise.
40141         * lib/regex_internal.h: Adjust prototypes.
40142
40143         * lib/regex.c: Prevent using C++ compilers.
40144
40145         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
40146         (re_acquire_state_context): Likewise.
40147
40148 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * modules/regex (Depends-on): Add ssize_t.
40151
40152 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40153
40154         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
40155         translation table.
40156
40157 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40158
40159         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
40160
40161 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
40162             Bruno Haible  <bruno@clisp.org>
40163
40164         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
40165         <sys/types.h> and <inttypes.h>.
40166
40167 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40168
40169         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
40170         `__error_t_defined', so argp.h will not typedef the former.
40171
40172 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40173
40174         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
40175         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
40176         glibc names.  Even if glibc is changed to conform to POSIX, the
40177         traditional names will be available anyway, since regex depends on
40178         the extensions module.  Also, fix a longstanding typo in the
40179         implementation of Spencer ERE test #75 from grep 2.3.  Problems
40180         reported by Emanuele Giaquinta.  Also, change sense of cached
40181         variable, so that the message makes sense.
40182
40183 2006-03-24  Simon Josefsson  <jas@extundo.com>
40184
40185         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
40186         including some doc fixes.
40187         (base64_encode_alloc): Fix +1 bug on allocation failures.
40188
40189 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40190
40191         * lib/base64.c (base64_encode): Do not read past end of array with
40192         unsanitized input on systems with CHAR_BIT > 8.
40193
40194 2006-03-24  Eric Blake  <ebb9@byu.net>
40195
40196         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
40197
40198 2006-03-22  Karl Berry  <karl@gnu.org>
40199
40200         * config/srclist.txt (*setenv.[ch]): get from coreutils.
40201         * config/srclistvars.sh (COREUTILS): new var.
40202
40203 2006-03-17  Jim Meyering  <jim@meyering.net>
40204
40205         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
40206         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
40207
40208 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40209
40210         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
40211         no longer needs it.  Instead, check that regoff_t is as least
40212         as wide as ptrdiff_t.
40213
40214         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
40215         so that our regex.h stays compatible with the installed regex.
40216         This is helpful for installers who configure --without-included-regex.
40217         Problem reported by Emanuele Giaquinta.
40218
40219 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40220
40221         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
40222         Typedef to long int, not to off_, as POSIX will likely change
40223         in that direction.
40224
40225 2006-03-15  Eric Blake  <ebb9@byu.net>
40226
40227         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
40228
40229 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
40230
40231         * lib/argp-help.c (validate_uparams): Fix typo
40232         * lib/argp-parse.c (argp_default_options): Consistently begin help
40233         messages with a lowercase letter.
40234
40235 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
40236
40237         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
40238         overrun buffers and shouldn't be used (much as gets shouldn't be
40239         used).
40240         * lib/time_r.c (asctime_r, ctime_r): Likewise.
40241
40242 2006-03-08  Simon Josefsson  <jas@extundo.com>
40243
40244         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
40245         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40246
40247 2006-03-08  Simon Josefsson  <jas@extundo.com>
40248
40249         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
40250         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40251
40252 2006-03-08  Simon Josefsson  <jas@extundo.com>
40253
40254         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
40255         signal that configure disabled the device.
40256
40257 2006-03-08  Simon Josefsson  <jas@extundo.com>
40258
40259         * build-aux/maint.mk: Fix refresh-po, to handle no translated
40260         languages.
40261
40262 2006-03-07  Simon Josefsson  <jas@extundo.com>
40263
40264         * modules/getopt (Depends-on): Add unistd.
40265
40266         * modules/unistd: New file.
40267
40268 2006-03-07  Simon Josefsson  <jas@extundo.com>
40269
40270         * modules/gc-random: New file.
40271
40272 2006-03-07  Simon Josefsson  <jas@extundo.com>
40273
40274         * m4/unistd_h.m4: New file.
40275
40276 2006-03-07  Simon Josefsson  <jas@extundo.com>
40277
40278         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
40279         test to be side-effect free by storing the result in the cache
40280         variable gl_cv_lib_readline, and moving the assignment of
40281         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
40282         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40283
40284 2006-03-07  Simon Josefsson  <jas@extundo.com>
40285
40286         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
40287         error on missing devices (the functions will return an error).
40288
40289         * m4/gc.m4: Move random stuff to gc-random.m4
40290
40291 2006-03-07  Simon Josefsson  <jas@extundo.com>
40292
40293         * lib/unistd_.h: New file.
40294
40295 2006-03-07  Simon Josefsson  <jas@extundo.com>
40296
40297         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
40298
40299 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
40300
40301         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
40302         Problem reported by Juan Manuel Guerrero.
40303
40304 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
40305
40306         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
40307         the unistd module.
40308         * lib/getlogin_r.c: Likewise.
40309         * lib/getlogin_r.h: Likewise.
40310         * lib/glob.c: Likewise.
40311         * lib/pagealign_alloc.c: Likewise.
40312         * lib/unistd_.h: Remove; no longer needed.
40313
40314 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
40315
40316         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40317         Add unistd.
40318         * modules/c-stack (Depends-on): Add unistd.
40319         * modules/getlogin_r: Likewise.
40320         * modules/glob: Likewise.
40321         * modules/pagealign_alloc: Likewise.
40322         * modules/unistd (Files): Remove lib/unistd_.h.
40323         (EXTRA_DIST): Remove.
40324         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
40325         need unistd_.h.
40326         (MOSTLYCLEANFILES): Remove unistd.h-t.
40327
40328 2006-03-03  Simon Josefsson  <jas@extundo.com>
40329
40330         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
40331
40332 2006-03-03  Simon Josefsson  <jas@extundo.com>
40333
40334         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
40335         libidn and bison.
40336
40337 2006-03-03  Simon Josefsson  <jas@extundo.com>
40338
40339         * build-aux/maint.mk: Add indent target.
40340
40341 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
40342
40343         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
40344         our replacement poll.h in any case, to avoid a differing
40345         declaration from a system header.  Seen on AIX.
40346
40347 2006-03-01  Simon Josefsson  <jas@extundo.com>
40348
40349         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
40350         <kasal@ucw.cz>.
40351
40352 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40353
40354         * modules/gettime (Depends-on): Add extensions module.
40355         * modules/nanosleep (Depends-on): Likewise.
40356         * modules/settime (Depends-on): Likewise.
40357
40358 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40359
40360         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
40361         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
40362         pedantically.
40363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40364         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
40365
40366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
40367         not "==".  Reported by Ralf Wildenhues.
40368
40369 2006-03-01  Karl Berry  <karl@gnu.org>
40370
40371         * doc/Copyright/request-*: new files, synced from gnuorg.
40372
40373 2006-03-01  Karl Berry  <karl@gnu.org>
40374
40375         * config/srclist.txt (Copyright/*): new entries.
40376
40377 2006-02-28  Simon Josefsson  <jas@extundo.com>
40378
40379         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
40380
40381 2006-02-27  Simon Josefsson  <jas@extundo.com>
40382
40383         * lib/base64.h: Indent #define's.  From Jim Meyering
40384         <jim@meyering.net>.
40385
40386 2006-02-27  Jim Meyering  <jim@meyering.net>
40387
40388         Revert the change of 2006-02-24, so these files can continue
40389         to be sync'd from gettext.
40390         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
40391         of `config.h'.
40392
40393 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
40394
40395         * modules/intprops: New file.
40396         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40397         Add intprops.
40398         * modules/getloadavg (Files): Remove lib/intprops.h.
40399         (Depends-on): Add intprops.
40400         * modules/human: Likewise.
40401         * modules/inttostr: Likewise.
40402         * modules/openat: Likewise.
40403         * modules/sig2str: Likewise.
40404         * modules/userspec: Likewise.
40405         * modules/utimecmp: Likewise.
40406         * modules/xnanosleep: Likewise.
40407         * modules/xstrtol: Likewise.
40408
40409 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
40410
40411         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
40412         * modules/lock-tests (TESTS): Use $(EXEEXT).
40413         * modules/tls-tests: Likewise.
40414         * modules/argp-tests: Likewise.
40415         (check_PROGRAMS): New var, replacing...
40416         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
40417
40418 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40419
40420         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
40421         `config.h'.
40422
40423 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40424
40425         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
40426
40427 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40428
40429         Sync from coreutils.
40430         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
40431         gl_CHDIR_SAFER.
40432
40433 2006-02-22  Jim Meyering  <jim@meyering.net>
40434
40435         Sync from coreutils.
40436         * m4/chdir-safer.m4: New file.
40437
40438 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
40439
40440         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
40441         AT_FDCWD exceeds INT_MAX.
40442         * lib/openat.h (AT_FDCWD): Likewise.
40443
40444 2006-02-17  Eric Blake  <address@hidden>
40445
40446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
40447
40448 2006-02-16  Simon Josefsson  <jas@extundo.com>
40449
40450         * modules/getaddrinfo (Depends-on): Add sys_socket.
40451
40452 2006-02-15  Simon Josefsson  <jas@extundo.com>
40453
40454         * build-aux/maint.mk: Add dsyntax-check rule.
40455
40456 2006-02-15  Eric Blake  <ebb9@byu.net>
40457
40458         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
40459         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
40460         'present but cannot compile' warnings on cygwin.
40461         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
40462         use ws2tcpip.h if sys/socket.h works.
40463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
40464         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
40465
40466 2006-02-14  Simon Josefsson  <jas@extundo.com>
40467
40468         * modules/maintainer-makefile (Files): Rename.
40469
40470         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
40471         and (the local) Makefile.cfg to maint-cfg.mk.
40472
40473         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
40474         to the latter.
40475
40476         * modules/maintainer-makefile: New module.
40477
40478         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
40479         severaly stripped to make it possible to build it up from scratch
40480         with reliable tests.
40481
40482         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
40483         fixes to permit overriding the default actions when configure and
40484         makefile are not available.
40485
40486 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
40487
40488         Sync from coreutils.
40489         * modules/lstat (Depends-on): Don't depend on xalloc.
40490         (License): Change from GPL to LGPL, since this is now simply a
40491         replacement for a libc function.
40492
40493 2006-02-14  Jim Meyering  <jim@meyering.net>
40494
40495         Sync from coreutils.
40496
40497         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
40498         failure on deficient systems, and simplify gnulib lgpl dependencies.
40499         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
40500         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
40501
40502         * lib/xalloc-die.c: Remove unused definition of N_.
40503
40504 2006-02-14  Jim Meyering  <jim@meyering.net>
40505
40506         Sync from coreutils.
40507         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
40508         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
40509         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
40510         double-quote uses of that variable, to accommodate the rare case in
40511         which getmntent is available in none of the libraries checked.  This
40512         happens at least on FreeBSD 5.0.
40513
40514 2006-02-13  Simon Josefsson  <jas@extundo.com>
40515
40516         * gnulib-tool (Usage): Fix --import, from
40517         karl@freefriends.org (Karl Berry).
40518
40519 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
40520
40521         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
40522
40523 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
40524
40525         * lib/argp-namefrob.h: Restore changes accidentally lost during the
40526         "autoupdate" on 2005-12-12.
40527
40528 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40529
40530         * modules/closeout (Depends-on): Remove atexit.
40531
40532 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40533
40534         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
40535         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
40536
40537 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
40538
40539         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
40540         __EXTENSIONS__ if this causes compilation to fail.  Problem
40541         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
40542         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
40543
40544 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40545
40546         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
40547         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
40548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
40549         All uses changed.
40550
40551 2006-01-26  Simon Josefsson  <jas@extundo.com>
40552
40553         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
40554         prototype is visible on mingw32.
40555
40556         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
40557         for mingw32.
40558
40559         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
40560         mingw32).
40561
40562 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40563
40564         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
40565         attempt to open for write; this always fails, at least on POSIX
40566         hosts.  This reinstates the 2006-01-09 change, which was
40567         inadvertently removed.
40568
40569 2006-01-26  Bruno Haible  <bruno@clisp.org>
40570
40571         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
40572         Reported by Paul Eggert.
40573
40574 2006-01-26  Bruno Haible  <bruno@clisp.org>
40575             Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         * lib/stdbool_.h (_Bool)
40578         [(! (defined __cplusplus || defined __BEOS__)
40579           && !defined __GNUC__
40580           && !(defined __HP_cc || defined __xlc__
40581                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
40582                || defined __sgi))]:
40583         #define to signed char in these cases too; this simplifies
40584         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
40585         etc., separately) and makes it more conservative.
40586
40587 2006-01-25  Simon Josefsson  <jas@extundo.com>
40588
40589         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
40590         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
40591         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
40592
40593 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40594
40595         * lib/argp-namefrob.h: Bugfix. Remove stray #
40596
40597 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40598
40599         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
40600         so that we test the test.
40601         Check for yet another HP-UX cc bug involving *bool |= bool.
40602
40603 2006-01-25  Karl Berry  <karl@gnu.org>
40604
40605         * config/srclist.txt (vasnprintf.c): sync lost.
40606
40607 2006-01-25  Jim Meyering  <jim@meyering.net>
40608
40609         Sync from the stable (b5) branch of coreutils:
40610
40611         * lib/fts.c (fts_children): Don't let close() clobber errno from
40612         failed fchdir().
40613
40614         * lib/fts.c (fts_stat): When following a symlink-to-directory,
40615         don't necessarily interpret stat-fails+lstat-succeeds as indicating
40616         a dangling symlink.  That can also happen at least for ELOOP.
40617         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
40618         FYI, this bug predates the inclusion of fts.c in coreutils.
40619
40620         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
40621         in their own block, so pre-c99 compilers don't object.
40622
40623         Avoid the double-free (first in fts_read, second in fts_close) that
40624         would occur when an `active' directory is made inaccessible (e.g.,
40625         via chmod a-x) during a traversal.
40626         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
40627         before returning.  Reproduce this failure by
40628         mkdir -p a/b; cd a; chmod a-x . b
40629         Reported by Stavros Passas.
40630
40631 2006-01-25  Jim Meyering  <jim@meyering.net>
40632
40633         * lib/fileblocks.c: Remove more useless parentheses.
40634         * lib/readutmp.h: Likewise.
40635
40636 2006-01-25  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
40639         warnings.
40640         Reported by Paul Eggert.
40641
40642 2006-01-25  Bruno Haible  <bruno@clisp.org>
40643
40644         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
40645         rid of a trap command. For Solaris sh.
40646         Reported by Mark D. Baushke <mdb@gnu.org>.
40647
40648 2006-01-24  Simon Josefsson  <jas@extundo.com>
40649
40650         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
40651         Bruno.
40652
40653 2006-01-24  Karl Berry  <karl@gnu.org>
40654
40655         * config/srclist.txt (argp-namefrob.h): sync lost.
40656
40657 2006-01-24  Jim Meyering  <jim@meyering.net>
40658
40659         * modules/openat (Files): Add lib/intprops.h.
40660         From Mark D. Baushke.
40661
40662 2006-01-24  Jim Meyering  <jim@meyering.net>
40663
40664         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
40665         Reported by Mark D. Baushke.
40666
40667 2006-01-24  Jim Meyering  <jim@meyering.net>
40668
40669         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
40670
40671 2006-01-24  Bruno Haible  <bruno@clisp.org>
40672
40673         * modules/strnlen (Maintainer): Change from glibc to all.
40674
40675 2006-01-24  Bruno Haible  <bruno@clisp.org>
40676
40677         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
40678         Patch by Paul Eggert.
40679
40680 2006-01-24  Bruno Haible  <bruno@clisp.org>
40681
40682         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
40683         already has it.
40684         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
40685         2005-11-26.
40686
40687         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
40688         'signed char' to avoid problems with the built-in _Bool type.
40689         Reported by Paul Eggert on 2005-11-26.
40690
40691 2006-01-24  Bruno Haible  <bruno@clisp.org>
40692
40693         * gnulib-tool (func_import): Avoid constructing complicated sed
40694         expressions inside backquote.
40695         Report and solution by Mark D. Baushke <mdb@gnu.org>.
40696
40697 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
40698
40699         These changes imported from libc.
40700         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
40701         test and two separate function calls.
40702         * lib/strndup.c (__strndup): Add libc_hidden_def.
40703
40704 2006-01-23  Simon Josefsson  <jas@extundo.com>
40705
40706         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
40707         Remove the test_*_SOURCES variable: automake infers it by default.
40708         * modules/tls-tests: Likewise.
40709
40710 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         Work around porting bugs reported by Dieter in
40713         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
40714         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
40715         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
40716         Include "getopt.h" first, to check interface.
40717         (getenv): Declare only if defined HAVE_DECL_GETENV &&
40718         !HAVE_DECL_GETENV.
40719         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
40720         (__strndup): Revert to K&R-style function dfns, the glibc style.
40721         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
40722         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
40723         Include strnlen.h first, to get prototype properly.
40724         (strnlen): Renamed from __strnlen.
40725         Remove weak alias.
40726
40727 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40728
40729         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
40730
40731 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40732
40733         * config/srclist.txt: Adjust to reflect glibc reorganization.
40734         This affects only comments.
40735
40736 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40737
40738          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
40739          Reported by Bruce Korb <bkorb@gnu.org>.
40740
40741 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40742
40743         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
40744         to pacify gcc -Wswitch-default.
40745
40746 2006-01-22  Bruno Haible  <bruno@clisp.org>
40747
40748         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
40749         temporary buffer for sprintf, take into account the precision also
40750         for 'd', 'i', 'u', 'o', 'x', 'X'.
40751
40752 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
40753
40754         * modules/argp-tests: New module
40755         * tests/test-argp.c: New file
40756         * tests/test-argp-2.sh: New file
40757
40758 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
40759
40760         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
40761         (__argp_base_name): Removed
40762         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
40763         typo.
40764         (__argp_base_name): Provide macro definition or extern declaration
40765         depending on the configuration
40766
40767 2006-01-20  Simon Josefsson  <jas@extundo.com>
40768
40769         * modules/inet_ntop (Depends-on): Depend on sys_socket.
40770
40771 2006-01-20  Simon Josefsson  <jas@extundo.com>
40772
40773         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
40774
40775 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
40776
40777         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
40778         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
40779         Suggested by Bruno Haible.
40780
40781 2006-01-20  Karl Berry  <karl@gnu.org>
40782
40783         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
40784         until changes propagate, I guess.
40785
40786 2006-01-19  Simon Josefsson  <jas@extundo.com>
40787
40788         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
40789
40790 2006-01-19  Simon Josefsson  <jas@extundo.com>
40791
40792         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
40793
40794 2006-01-19  Simon Josefsson  <jas@extundo.com>
40795
40796         * gnulib-tool: Set check_PROGRAMS.
40797
40798         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
40799         modules/des-tests, modules/gc-arcfour-tests,
40800         modules/gc-arctwo-tests, modules/gc-des-tests,
40801         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
40802         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
40803         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
40804         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
40805         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
40806         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
40807         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
40808         test_*_SOURCES.
40809
40810 2006-01-18  Simon Josefsson  <jas@extundo.com>
40811
40812         * modules/socklen (Depends-on): Depend on sys_socket.
40813
40814 2006-01-18  Simon Josefsson  <jas@extundo.com>
40815
40816         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
40817         modules/des-tests, modules/gc-arcfour-tests,
40818         modules/gc-arctwo-tests, modules/gc-des-tests,
40819         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
40820         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
40821         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
40822         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
40823         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
40824         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
40825         $(EXEEXT) to automake TESTS variable, for mingw32.
40826
40827 2006-01-17  Simon Josefsson  <jas@extundo.com>
40828
40829         * modules/socklen (Include): Need sys/socket.h.
40830
40831 2006-01-17  Bruno Haible  <bruno@clisp.org>
40832
40833         * modules/ssize_t (Include): Add <sys/types.h>.
40834
40835 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
40836
40837         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
40838         it's not portable and it doesn't work with cross-compiles.
40839         Problem reported by Bruno Haible.  Fix missing-$ typo in
40840         'test "gl_cv_ignore_unused_libraries" ...' that prevented
40841         -zignore from being used with Sun's C compiler.
40842
40843 2006-01-12  Simon Josefsson  <jas@extundo.com>
40844
40845         * lib/base64.c: Fix warning, reported by Bruno Haible
40846         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
40847
40848 2006-01-12  Bruno Haible  <bruno@clisp.org>
40849
40850         * modules/ldd: New file.
40851         * build-aux/ldd.sh.in: New file.
40852         * MODULES.html.sh (Support for building libraries and executables): Add
40853         ldd.
40854
40855 2006-01-12  Bruno Haible  <bruno@clisp.org>
40856
40857         * m4/ldd.m4: New file.
40858
40859 2006-01-12  Bruno Haible  <bruno@clisp.org>
40860
40861         * gnulib-tool (func_import, func_create_testdir): Don't go into an
40862         endless loop while replacing $auxdir with build-aux.
40863
40864 2006-01-11  Simon Josefsson  <jas@extundo.com>
40865
40866         * lib/stdint_.h (SIZE_MAX): Add missing (.
40867
40868 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40869
40870         Sync from coreutils.
40871         * lib/md5.c: Fix commentary typos.
40872         (alignof, UNALIGNED_P): No need for a GCC-specific version.
40873         * lib/md5.h (__attribute__): Remove; unused.
40874         * lib/sha1.c: Fix commentary to match md5 better.
40875         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
40876         so that we don't need to worry about alignment.  All uses changed.
40877         This merges the 2005-10-28 md5 change into sha1.
40878
40879 2006-01-11  Jim Meyering  <jim@meyering.net>
40880
40881         Sync from coreutils.
40882         * lib/md5.c (OP): Fix spacing.
40883
40884 2006-01-11  Bruno Haible  <bruno@clisp.org>
40885
40886         Ensure automatic ordering between gl_LOCK and gl_ARGP.
40887         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
40888         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
40889
40890 2006-01-11  Bruno Haible  <bruno@clisp.org>
40891
40892         Ensure automatic ordering between gl_LOCK and gl_ARGP.
40893         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
40894         the "early" section as well.
40895
40896 2006-01-11  Bruno Haible  <bruno@clisp.org>
40897
40898         Avoid "ar: no archive members specified" error on MacOS X.
40899         * gnulib-tool (func_modules_add_dummy): New function.
40900         (func_import, func_create_testdir): Invoke it.
40901
40902 2006-01-11  Bruno Haible  <bruno@clisp.org>
40903
40904         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
40905         with $auxdir in AC_CONFIG_FILES statements.
40906
40907 2006-01-11  Bruno Haible  <bruno@clisp.org>
40908
40909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40910         Initialize also noinst_HEADERS to empty.
40911
40912 2006-01-11  Bruno Haible  <bruno@clisp.org>
40913
40914         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
40915         variables.
40916         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
40917         autoreconf.
40918
40919 2006-01-11  Bruno Haible  <bruno@clisp.org>
40920
40921         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
40922         overridable by the user.
40923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40924
40925 2006-01-10  Simon Josefsson  <jas@extundo.com>
40926
40927         * modules/sys_socket: New file.
40928
40929 2006-01-10  Simon Josefsson  <jas@extundo.com>
40930
40931         * m4/sys_socket_h.m4: New file.
40932
40933 2006-01-10  Simon Josefsson  <jas@extundo.com>
40934
40935         * lib/socket_.h: New file.
40936
40937 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40938
40939         * modules/readutmp (Maintainer): Add myself.
40940
40941 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40942
40943         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
40944         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
40945         People who are still concerned with buggy memcmp implementations
40946         can invoke gl_FUNC_MEMCMP themselves.
40947
40948 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40949
40950         * lib/regex_internal.h (BITSET_WORD_BITS):
40951         Work around a bug in 64-bit PGC (before version 6.1-2), where the
40952         preprocessor mishandles large unsigned values as if they were signed.
40953         Problem reported by Claudio Fontana in
40954         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
40955
40956 2006-01-10  Jim Meyering  <jim@meyering.net>
40957
40958         Avoid the double-free (first in fts_read, second in fts_close) that
40959         would occur when an `active' directory is made inaccessible (e.g.,
40960         via chmod a-x) during a traversal.
40961         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
40962         before returning.  Reproduce this failure by
40963         mkdir -p a/b; cd a; chmod a-x . b
40964         Reported by Stavros Passas.
40965
40966         Sync from coreutils.
40967         * lib/sha1.c: Tweak grammar in a comment.
40968
40969 2006-01-10  Jim Meyering  <jim@meyering.net>
40970
40971         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
40972         Patch by Joerg Sonnenberger.
40973
40974 2006-01-10  Bruno Haible  <bruno@clisp.org>
40975
40976         * modules/readutmp: Depend on module free.
40977         * modules/strtok_r: Depend on module restrict.
40978
40979 2006-01-10  Bruno Haible  <bruno@clisp.org>
40980
40981         * modules/gettext (configure.ac): Add an invocation of
40982         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
40983
40984 2006-01-10  Bruno Haible  <bruno@clisp.org>
40985
40986         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
40987         Reported by Werner Lemberg <wl@gnu.org>.
40988
40989 2006-01-10  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/localcharset.c: Update from GNU gettext.
40992
40993 2006-01-10  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/argp.h (__const): Remove macro. Use const instead.
40996         * lib/argp-fmtstream.h (__const): Likewise.
40997         * lib/glob_.h (__const): Remove macro.
40998         * lib/glob-libc.h: Use const instead of __const.
40999
41000 2006-01-10  Bruno Haible  <bruno@clisp.org>
41001
41002         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
41003         variable.
41004         Needed to avoid an automake error regarding the 'gettext' module.
41005
41006 2006-01-09  Simon Josefsson  <jas@extundo.com>
41007
41008         * modules/inet_ntop (Depends-on): Add restrict.
41009
41010 2006-01-09  Simon Josefsson  <jas@extundo.com>
41011
41012         * modules/gc-rijndael-tests (License): Put under LGPL.
41013
41014         * modules/gc-des-tests (License): Likewise.
41015
41016         * modules/gc-arcfour-tests (License): Likewise.
41017
41018         * modules/gc-arctwo-tests (License): Likewise.
41019
41020         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
41021
41022         * modules/gc-hmac-sha1-tests (Files): Likewise.
41023
41024         * modules/gc-hmac-md5-tests (License): Likewise.
41025
41026         * modules/gc-sha1-tests (License): Likewise.
41027
41028         * modules/gc-md5-tests (License): Likewise.
41029
41030         * modules/gc-md4-tests (License): Likewise.
41031
41032         * modules/gc-md2-tests (License): Likewise.
41033
41034         * modules/gc-tests (License): Likewise.
41035
41036         * modules/des-tests (License): Likewise.
41037
41038         * modules/md4-tests (License): Likewise.
41039
41040         * modules/md2-tests (License): Likewise.
41041
41042 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41043
41044         Sync from coreutils:
41045
41046         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
41047         * modules/lib-ignore: New file.
41048         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
41049         chdir-safer.m4, lchmod.m4.
41050         * modules/openat: Add mkdirat.c, openat-priv.h.
41051
41052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41053
41054         Sync from coreutils.
41055         * m4/lib-ignore.m4: New file.
41056         * m4/lchmod.m4: New file.
41057
41058 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41059
41060         Sync from coreutils.
41061         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
41062         for write access: POSIX says that must fail.
41063         * lib/fts.c (diropen): Likewise.
41064         * lib/save-cwd.c (save_cwd): Likewise.
41065         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
41066         well, for minor improvements on hosts that lack O_DIRECTORY.
41067         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
41068         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
41069         Fall back on chown if open failed with EACCES.
41070
41071         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
41072         Report an error at compile-time if only a 1-second nominal clock
41073         resolution is found.
41074
41075         * lib/lchmod.h: New file.
41076         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
41077         (make_dir_parents): Use lchown rather than chown, and
41078         lchmod rather than chmod.
41079
41080         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
41081         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
41082         "proc" reported by n0dalus.
41083
41084         * lib/mountlist.c: Include <limits.h>.
41085         (dev_from_mount_options)
41086         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
41087         New function.  It no longer assumes "dev=" has the System V meaning
41088         on Linux (since it doesn't).  It also parses "dev=" more carefully.
41089         (read_file_system_list)
41090         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
41091         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
41092         dev= in that case.
41093
41094         * lib/posixtm.h (PDS_PRE_2000): New macro.
41095         * lib/posixtm.c (year): Arg is now syntax_bits rather than
41096         allow_century.  All usages changed.  Reject dates outside the range
41097         1969-1999 if PDS_PRE_2000 is used.
41098
41099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41100
41101         Sync from coreutils.
41102         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
41103         (Time of day items): Mention the possibility of leap seconds.
41104         Problem reported by Dr. David Alan Gilbert.
41105
41106 2006-01-09  Jim Meyering  <jim@meyering.net>
41107
41108         Sync from coreutils.
41109
41110         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
41111
41112         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
41113
41114         * lib/modechange.c (mode_compile): Reject an invalid mode string
41115         that starts with an octal digit.  From Andreas Gruenbacher.
41116
41117         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
41118         and dup to open_safer and dup_safer, respectively.
41119         (openat_permissive): Fix typo in comment.
41120
41121         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
41122         "gettext.h"; either no longer needed or are guaranteed by openat.h.
41123         (_): Remove; no longer needed.
41124         (openat): Renamed from rpl_openat; no need for rpl_openat
41125         since openat.h renames openat for us.
41126         Replace most of the body with a call to openat_permissive,
41127         to avoid duplicate code.
41128         Port to (probably hypothetical) environments were mode_t is
41129         wider than int.
41130         (openat_permissive): Require mode arg, so that we can check
41131         types better.  Put it just after flags.  Change cwd failure
41132         indicator from pointer-to-bool to pointer-to-errno-value.
41133         All callers changed.
41134         Invoke openat_save_fail and/or openat_restore_fail if
41135         cwd_errno is null, so that openat can call us.
41136         (openat_permissive, fdopendir, fstatat, unlinkat):
41137         Simplify errno handling to avoid some duplicate code,
41138         as it's OK to set errno on success.
41139         * lib/openat.h: Revamp code so that function macros depend on
41140         __OPENAT_PREFIX only, not also on AT_FDCWD.
41141         (openat_ro): Remove.  Caller changed to use openat_permissive.
41142         (openat_permissive): Now a macro, if not a function.
41143         (openat_restore_fail, openat_save_fail): Now always functions,
41144         since mkdirat needs them even if __OPENAT_PREFIX is defined.
41145
41146         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
41147         and openat.c.
41148         * lib/mkdirat.c: Include openat-priv.h.
41149         Remove definitions of macros defined therein.
41150         * lib/openat.c: Likewise.
41151
41152         * lib/mkdirat.c (mkdirat): New file and function.
41153         * lib/openat.h (mkdirat): Declare.
41154
41155         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
41156
41157         * lib/openat.h (openat_permissive): Declare.
41158         (openat_ro): Define.
41159
41160         * lib/openat.c (EXPECTED_ERRNO): New macro.
41161         (openat_permissive): New function -- used in remove.c rewrite.
41162         (all functions): Set errno just before returning, only if there
41163         was an actual failure.
41164         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
41165
41166         Emulate openat-family functions using Linux's procfs, if possible.
41167         Idea and some code based on Ulrich Drepper's glibc changes.
41168
41169         * lib/openat.c: (BUILD_PROC_NAME): New macro.
41170         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
41171         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
41172         before falling back on save_cwd and restore_cwd.
41173         (fdopendir, fstatat, unlinkat): Likewise.
41174
41175         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
41176         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
41177
41178         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
41179         as second argument to va_arg.  Otherwise, some versions of gcc
41180         warn that `if this code is reached, the program will abort'.
41181
41182 2006-01-09  Jim Meyering  <jim@meyering.net>
41183
41184         Sync from coreutils.
41185         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
41186         Require openat-priv.h.
41187
41188 2006-01-09  Bruno Haible  <bruno@clisp.org>
41189
41190         * modules/strnlen (Include): Use strnlen.h.
41191
41192 2006-01-09  Bruno Haible  <bruno@clisp.org>
41193
41194         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
41195
41196 2006-01-09  Bruno Haible  <bruno@clisp.org>
41197
41198         * lib/sysexit_.h (EX_OK): New macro.
41199         Suggested by Martin Lambers <marlam@marlam.de>.
41200
41201 2006-01-09  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
41204         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
41205
41206 2006-01-09  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
41209         numbers.
41210
41211 2006-01-09  Bruno Haible  <bruno@clisp.org>
41212
41213         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
41214         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
41215         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
41216         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
41217
41218 2006-01-09  Bruno Haible  <bruno@clisp.org>
41219
41220         * build-aux/javacomp.sh.in: New file, moved from lib/.
41221         * modules/javacomp-script (Files): Update.
41222         (configure.ac): Add AC_CONFIG_FILES invocation.
41223         (EXTRA_DIST): Remove variable.
41224
41225         * build-aux/javaexec.sh.in: New file, moved from lib/.
41226         * modules/javaexec (Files): Update.
41227         (configure.ac): Add AC_CONFIG_FILES invocation.
41228         (EXTRA_DIST): Remove javaexec.sh.in.
41229
41230         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
41231         * modules/csharpcomp-script (Files): Update.
41232         (configure.ac): Add AC_CONFIG_FILES invocation.
41233         (EXTRA_DIST): Remove variable.
41234
41235         * build-aux/csharpexec.sh.in: New file, moved from lib/.
41236         * modules/csharpexec (Files): Update.
41237         (configure.ac): Add AC_CONFIG_FILES invocation.
41238         (EXTRA_DIST): Remove csharpexec.sh.in.
41239
41240 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
41241
41242         Sync from coreutils.
41243
41244         Add POSIX ACL support
41245         * lib/acl.h (copy_acl, set_acl): Add declarations.
41246         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
41247         systems other than Linux.
41248         (chmod_or_fchmod): New function: use fchmod when possible,
41249         and chmod otherwise.
41250         (file_has_acl): Add a POSIX ACL implementation, with a
41251         Linux-specific subcase.
41252         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
41253         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
41254         acls are unsupported.
41255         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
41256         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
41257         are unsupported.
41258
41259 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
41260
41261         Sync from coreutils.
41262         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
41263
41264 2006-01-07  Bruno Haible  <bruno@clisp.org>
41265
41266         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
41267         gl_EARLY.
41268
41269 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41270
41271         * lib/strftime.c (tzname): Don't declare if it is already #defined.
41272         Problem reported for Mingw by Mark Junker.
41273
41274 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41275
41276         * README: Gnulib normally doesn't generate a tarball.
41277
41278 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
41279
41280         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
41281         long int, not int, for nanosecond counts, so that people who are
41282         used to POSIX struct timespec won't be surprised.  Reported by Jim
41283         Meyering.
41284
41285 2005-12-28  Bruno Haible  <bruno@clisp.org>
41286
41287         * build-aux/config.rpath: Update from GNU gettext.
41288
41289 2005-12-16  Jim Meyering  <jim@meyering.net>
41290
41291         * modules/fprintftime: New module.
41292         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
41293
41294 2005-12-16  Jim Meyering  <jim@meyering.net>
41295
41296         * m4/fprintftime.m4: New file.
41297
41298 2005-12-16  Jim Meyering  <jim@meyering.net>
41299
41300         * lib/fprintftime.c, lib/fprintftime.h: New files.
41301
41302 2005-12-15  Simon Josefsson  <jas@extundo.com>
41303
41304         * modules/socklen (configure.ac): Fix M4 macro name, to align with
41305         new m4/socklen.m4.
41306
41307 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41308
41309         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
41310         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
41311
41312 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41313
41314         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
41315         * lib/argp-help.c (fill_in_uparams): Check if the constructed
41316         struct uparams is valid. Fall back to the default values if it is
41317         not.
41318
41319 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41320
41321         * modules/argp (Files): Add argp-pin.c
41322         (Depends-on): dirname
41323         (lib_SOURCES): Add argp-pin.c
41324
41325 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41326
41327         * m4/argp.m4:  Check if program_invocation_name and
41328         program_invocation_short_name are declared and define appropriate
41329         macros if they are not.
41330
41331 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41332
41333         * lib/argp-help.c (__argp_base_name): New function
41334         (__argp_short_program_name): Rewrite using __argp_base_name
41335         * lib/argp-namefrob.h: Define program_invocation_name and
41336         program_invocation_short_name if requested
41337         (__argp_base_name): Add prototype
41338         * lib/argp-parse.c (argp_def): Use gettext wrappers
41339         (argp_default_parser): Use __argp_base_name
41340         * lib/argp-pin.c: New file. Defines program_invocation_name and
41341         program_invocation_short_name on systems that lack them.
41342
41343 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41344
41345         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
41346         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
41347         porting problem reported by Georg Schwarz in
41348         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
41349
41350 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41351
41352         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
41353         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
41354         porting problem reported by Georg Schwarz in
41355         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
41356
41357 2005-12-05  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
41360         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
41361         Reported by Mark Junker <mjscod@gmx.de>.
41362
41363 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41364
41365         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
41366         Use implementation from Albert Chin, with some
41367         comments/corrections by Stepan Kasal and myself.
41368
41369 2005-12-02  Bruno Haible  <bruno@clisp.org>
41370
41371         * gnulib-tool (func_import): Accept GPLed build tool modules when
41372         --lgpl is given.
41373         * modules/csharpcomp-script: New file.
41374         * modules/csharpcomp: Depend on it.
41375         * modules/javacomp-script: New file.
41376         * modules/javacomp: Depend on it.
41377         Suggested by Simon Josefsson.
41378
41379 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
41380
41381         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
41382         statement, to work around an HP-UX 10.20 compiler bug reported by
41383         Peter O'Gorman.
41384
41385 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
41386
41387         * modules/savedir (Depends-on): Add openat.
41388
41389 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
41390
41391         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
41392         (uintmax_t) [defined uintmax_t]: Do not declare.
41393         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
41394         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
41395         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
41396         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
41397         sake of portability to weird hosts that C allows (though we don't
41398         know of any practical examples).
41399
41400         * lib/savedir.h (fdsavedir): New decl.
41401         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
41402         contains most of the former guts of savedir.
41403         (savedir): Use savedirstream.
41404         Include "openat.h".
41405
41406 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41407
41408         * modules/obstack (Files): Add m4/ulonglong.m4.
41409         Problem reported by Davide Angelocola.
41410
41411 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
41414         coreutils no longer futzes with rounding modes.
41415
41416 2005-11-14  Jim Meyering  <jim@meyering.net>
41417
41418         * lib/mkstemp-safer.c: Include <config.h>, required for possible
41419         replacement of mkstemp.
41420
41421 2005-11-10  Simon Josefsson  <jas@extundo.com>
41422
41423         * lib/readline.c: Remove EOL.
41424
41425 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41426
41427         * modules/gethrxtime (Depends-on): Add gettime.
41428
41429 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41430
41431         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
41432         or gettimeofday; no longer needed.
41433
41434 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
41435
41436         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
41437         time business.
41438         (gethrxtime) [! (HAVE_NANOUPTIME
41439         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
41440         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
41441         our own approximation.
41442
41443 2005-11-08  Eric Blake  <ebb9@byu.net>
41444
41445         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
41446
41447 2005-11-08  Eric Blake  <ebb9@byu.net>
41448
41449         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
41450
41451 2005-11-04  Bruno Haible  <bruno@clisp.org>
41452
41453         * gnulib-tool: Implement --update mode.
41454
41455 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41456
41457         Fix porting problem reported by Theodoros V. Kalamatianos.
41458         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
41459         Don't assume that futimes failing means we must fail.
41460
41461 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41462
41463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
41464         variables to suggest the intended function of the PATH_MAX check.
41465
41466 2005-10-30  Kean Johnston  <jkj@sco.com>
41467
41468         Trivial changes to support SCO systems.
41469         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
41470         as PATH_MAX.
41471         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
41472         where __ptr is null when no I/O is pending.
41473
41474 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
41475
41476         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
41477         leave errno alone.  Problem reported by Dmitry V. Levin.
41478
41479 2005-10-28  Simon Josefsson  <jas@extundo.com>
41480
41481         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
41482         Test more.
41483
41484         * tests/test-gc-md2.c, tests/test-md2.c: New files.
41485
41486         * modules/md2, modules/md2-tests: New files.
41487
41488 2005-10-28  Simon Josefsson  <jas@extundo.com>
41489
41490         * m4/inet_ntop.m4: More tests.
41491
41492         * m4/gc-md2.m4, md2.m4: New file.
41493
41494 2005-10-28  Simon Josefsson  <jas@extundo.com>
41495
41496         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
41497         "restrict" keywords, as per POSIX.  Protect the function
41498         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
41499         Don't use K&R prototypes.  Check the sprintf return values.
41500         Re-define EAFNOSUPPORT if not present.  Indent.
41501
41502         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
41503         suggested by Bruno Haible <bruno@clisp.org>.
41504
41505         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
41506
41507         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
41508
41509         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
41510         libgcrypt).
41511
41512         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
41513
41514         * lib/md2.h, lib/md2.c: New files.
41515
41516 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
41517
41518         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
41519         errno alone.  Problem reported by Frederic Jolliton.
41520
41521 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41522
41523         * modules/verify (License): Change from GPL to LGPL.  This is a
41524         tiny module and there are apparently near-equivalents that are
41525         under the BSD license.
41526
41527 2005-10-24  Simon Josefsson  <jas@extundo.com>
41528
41529         * modules/sha1: Relicense to LGPL.
41530
41531 2005-10-24  Simon Josefsson  <jas@extundo.com>
41532
41533         * lib/md4.h: Shrink buffer size, now that we changed the type.
41534
41535 2005-10-23  Simon Josefsson  <jas@extundo.com>
41536
41537         * gnulib-tool (func_import): Fix --tests-base.
41538
41539 2005-10-22  Simon Josefsson  <jas@extundo.com>
41540
41541         * modules/arcfour (Depends-on): Need stdint.
41542
41543 2005-10-22  Simon Josefsson  <jas@extundo.com>
41544
41545         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
41546         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
41547
41548 2005-10-22  Simon Josefsson  <jas@extundo.com>
41549
41550         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
41551         suggested by Bruno Haible <bruno@clisp.org>.
41552
41553 2005-10-22  Simon Josefsson  <jas@extundo.com>
41554
41555         * lib/crc.h: Include stddef.h, for size_t.
41556
41557 2005-10-22  Simon Josefsson  <jas@extundo.com>
41558
41559         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
41560         arcfour_context struct (simplify test vector testing in GNU
41561         Shishi).
41562
41563 2005-10-21  Simon Josefsson  <jas@extundo.com>
41564
41565         * modules/des, modules/des-tests: New files.
41566
41567         * modules/gc-des, modules/gc-des-tests: New files.
41568
41569         * tests/test-des.c, tests/test-gc-des.c: New file.
41570
41571 2005-10-21  Simon Josefsson  <jas@extundo.com>
41572
41573         * modules/arctwo, modules/arctwo-tests: New files.
41574
41575         * tests/test-arctwo.c: New file.
41576
41577         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
41578
41579         * tests/test-gc-arctwo.c: New file.
41580
41581 2005-10-21  Simon Josefsson  <jas@extundo.com>
41582
41583         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
41584         Bruno Haible <bruno@clisp.org>.
41585
41586         * m4/gc-des.m4: New file.
41587
41588 2005-10-21  Simon Josefsson  <jas@extundo.com>
41589
41590         * m4/arctwo.m4: New file.
41591
41592         * m4/gc-arctwo.m4: New file.
41593
41594 2005-10-21  Simon Josefsson  <jas@extundo.com>
41595
41596         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
41597         block.
41598
41599 2005-10-21  Simon Josefsson  <jas@extundo.com>
41600
41601         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
41602         <bruno@clisp.org>.
41603
41604         * lib/hmac-sha1.c (hmac_sha1): Likewise.
41605
41606         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
41607         Bruno Haible <bruno@clisp.org>.
41608
41609         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
41610         <bruno@clisp.org>.
41611
41612 2005-10-21  Simon Josefsson  <jas@extundo.com>
41613
41614         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
41615
41616 2005-10-21  Simon Josefsson  <jas@extundo.com>
41617
41618         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
41619
41620 2005-10-21  Simon Josefsson  <jas@extundo.com>
41621
41622         * lib/des.h, lib/des.c: New files.
41623
41624         * lib/gc-gnulib.c: Support DES.c
41625
41626 2005-10-21  Simon Josefsson  <jas@extundo.com>
41627
41628         * lib/arctwo.h, lib/arctwo.c: New files.
41629
41630         * lib/gc-gnulib.c: Support ARCTWO.
41631
41632 2005-10-21  Simon Josefsson  <jas@extundo.com>
41633
41634         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
41635         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41636
41637 2005-10-21  Simon Josefsson  <jas@extundo.com>
41638
41639         * gnulib-tool (func_import, func_create_testdir): Define automake
41640         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
41641         Makefile.am snippet),
41642         suggested by Bruno Haible <bruno@clisp.org>.
41643
41644         * modules/gc (Makefile.am): Use it.
41645
41646 2005-10-21  Bruno Haible  <bruno@clisp.org>
41647
41648         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
41649         patch.
41650
41651 2005-10-19  Simon Josefsson  <jas@extundo.com>
41652
41653         * tests/test-gc-rijndael.c: New file.
41654
41655         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
41656
41657 2005-10-19  Simon Josefsson  <jas@extundo.com>
41658
41659         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
41660         interface too.
41661
41662 2005-10-19  Simon Josefsson  <jas@extundo.com>
41663
41664         * tests/test-gc-arcfour.c: New file.
41665
41666         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
41667
41668 2005-10-19  Simon Josefsson  <jas@extundo.com>
41669
41670         * modules/gc-md4, modules/gc-md4-tests: New file.
41671
41672         * tests/test-gc-md4.c: New file.
41673
41674 2005-10-19  Simon Josefsson  <jas@extundo.com>
41675
41676         * m4/gc-md4.m4: New file.
41677
41678 2005-10-19  Simon Josefsson  <jas@extundo.com>
41679
41680         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
41681         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
41682         <kasal@ucw.cz>.
41683
41684 2005-10-19  Simon Josefsson  <jas@extundo.com>
41685
41686         * m4/gc-arcfour.m4: New file.
41687
41688         * m4/gc-rijndael.m4: New file.
41689
41690 2005-10-19  Simon Josefsson  <jas@extundo.com>
41691
41692         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
41693
41694 2005-10-19  Simon Josefsson  <jas@extundo.com>
41695
41696         * lib/gc-gnulib.c: Support ARCFOUR.
41697
41698 2005-10-19  Simon Josefsson  <jas@extundo.com>
41699
41700         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
41701         support.
41702
41703         * lib/gc.h: Add ECB enum type.
41704
41705         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
41706
41707 2005-10-18  Simon Josefsson  <jas@extundo.com>
41708
41709         * tests/test-md5.c: New file.
41710
41711         * modules/md5-tests: New file.
41712
41713 2005-10-18  Simon Josefsson  <jas@extundo.com>
41714
41715         * tests/test-md4.c: New file.
41716
41717         * modules/md4, modules/md4-tests: New files.
41718
41719 2005-10-18  Simon Josefsson  <jas@extundo.com>
41720
41721         * m4/md4.m4: New file.
41722
41723 2005-10-18  Simon Josefsson  <jas@extundo.com>
41724
41725         * lib/md4.h, lib/md4.c: New files, based on md5.?.
41726
41727 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
41728
41729         * gnulib-tool (func_create_testdir): Omit the second check whether
41730         BUILT_SOURCES in nonempty.
41731
41732 2005-10-17  Simon Josefsson  <jas@extundo.com>
41733
41734         * tests/test-rijndael.c: New file.
41735
41736 2005-10-17  Simon Josefsson  <jas@extundo.com>
41737
41738         * modules/sha1: Depend on stdint instead of md5.
41739
41740         * modules/md5: Depend on stdint, remove uint32_t.
41741
41742 2005-10-17  Simon Josefsson  <jas@extundo.com>
41743
41744         * modules/gc-sha1-tests: New file.
41745
41746         * tests/test-gc-sha1.c: New file.
41747
41748 2005-10-17  Simon Josefsson  <jas@extundo.com>
41749
41750         * m4/md5.m4: Remove call to uint32_t.m4.
41751
41752 2005-10-17  Simon Josefsson  <jas@extundo.com>
41753
41754         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
41755
41756         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
41757         md5.h.
41758
41759         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
41760
41761         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
41762
41763 2005-10-17  Simon Josefsson  <jas@extundo.com>
41764
41765         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
41766
41767 2005-10-17  Simon Josefsson  <jas@extundo.com>
41768
41769         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
41770
41771 2005-10-17  Simon Josefsson  <jas@extundo.com>
41772
41773         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
41774
41775         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
41776
41777 2005-10-17  Bruno Haible  <bruno@clisp.org>
41778
41779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
41780         that it can also be used in a test.
41781
41782 2005-10-16  Bruno Haible  <bruno@clisp.org>
41783
41784         * gnulib-tool (func_emit_tests_Makefile_am): Also define
41785         TESTS_ENVIRONMENT, so that individual tests can augment it.
41786
41787         * gnulib-tool (func_create_testdir): Use an intermediate target for
41788         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
41789         macros, like $(ALLOCA_H), which cannot be passed through the command
41790         line.
41791
41792 2005-10-15  Simon Josefsson  <jas@extundo.com>
41793
41794         * modules/rijndael-tests: New file.
41795
41796         * modules/rijndael: New file.
41797
41798 2005-10-15  Simon Josefsson  <jas@extundo.com>
41799
41800         * m4/rijndael.m4: New file.
41801
41802 2005-10-15  Simon Josefsson  <jas@extundo.com>
41803
41804         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
41805
41806         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
41807
41808 2005-10-14  Simon Josefsson  <jas@extundo.com>
41809
41810         * tests/test-arcfour.c: New file.
41811
41812         * modules/arcfour, modules/arcfour-tests: New files.
41813
41814 2005-10-14  Simon Josefsson  <jas@extundo.com>
41815
41816         * m4/arcfour.m4: New file.
41817
41818 2005-10-14  Simon Josefsson  <jas@extundo.com>
41819
41820         * lib/arcfour.h, lib/arcfour.c: New files.
41821
41822 2005-10-14  Roland McGrath  <roland@redhat.com>
41823
41824         Import from libc.  [BZ #1331]
41825         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
41826         macro argument.
41827         Reported by Matej Vela <vela@debian.org>.
41828
41829 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41830
41831         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
41832         include <wchar.h>; no longer needed.
41833
41834 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41835
41836         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
41837
41838 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
41839         and  Ulrich Drepper  <drepper@redhat.com>
41840
41841         Import from libc.
41842         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
41843         instead of inline stream orientation test and two separate
41844         function calls.  Pay no attention to USE_IN_LIBIO.
41845
41846 2005-10-13  Simon Josefsson  <jas@extundo.com>
41847
41848         * modules/gc-hmac-md5-tests: New file.
41849
41850         * tests/test-gc-hmac-sha1.c: New file.
41851
41852         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
41853
41854         * modules/gc-hmac-md5-tests: New file.
41855
41856         * tests/test-gc-md5.c: New file.
41857
41858         * modules/gc-md5-tests: New file.
41859
41860 2005-10-13  Simon Josefsson  <jas@extundo.com>
41861
41862         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
41863         Move memory allocation outside of loop.
41864
41865 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
41866
41867         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
41868         intermediate directory is in a read-only file system.  Problem
41869         reported by Eric Blake.
41870
41871 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
41872
41873         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
41874
41875 2005-10-12  Simon Josefsson  <jas@extundo.com>
41876
41877         * tests/test-hmac-sha1.c: New file.
41878
41879         * modules/hmac-sha1-tests: New file.
41880
41881         * modules/hmac-sha1: New file.
41882
41883 2005-10-12  Simon Josefsson  <jas@extundo.com>
41884
41885         * modules/gc-sha1: New file.
41886
41887 2005-10-12  Simon Josefsson  <jas@extundo.com>
41888
41889         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
41890
41891         * tests/test-gc-pbkdf2-sha1.c: New file.
41892
41893 2005-10-12  Simon Josefsson  <jas@extundo.com>
41894
41895         * modules/gc-md5, modules/gc-hmac-md5: New files.
41896
41897         * modules/gc (Files): Remove md5, memxor and hmac files.
41898
41899 2005-10-12  Simon Josefsson  <jas@extundo.com>
41900
41901         * m4/gc-pbkdf2-sha1.m4: New file.
41902
41903         * m4/gc-hmac-sha1.m4: New file.
41904
41905         * m4/gc-sha1: New file.
41906
41907         * m4/hmac-sha1.m4: New file.
41908
41909 2005-10-12  Simon Josefsson  <jas@extundo.com>
41910
41911         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
41912
41913         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
41914
41915 2005-10-12  Simon Josefsson  <jas@extundo.com>
41916
41917         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
41918         suggested by Bruno Haible <bruno@clisp.org>.
41919
41920 2005-10-12  Simon Josefsson  <jas@extundo.com>
41921
41922         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
41923
41924 2005-10-12  Simon Josefsson  <jas@extundo.com>
41925
41926         * lib/gc-pbkdf2-sha1.c: New file.
41927
41928         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
41929
41930 2005-10-12  Simon Josefsson  <jas@extundo.com>
41931
41932         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
41933
41934         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
41935
41936 2005-10-12  Simon Josefsson  <jas@extundo.com>
41937
41938         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
41939         GC_USE_HMAC_MD5, respectively.
41940
41941         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
41942         (gc_md5): Fix typo.
41943
41944         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
41945
41946         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
41947
41948         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
41949
41950 2005-10-12  Bruno Haible  <bruno@clisp.org>
41951
41952         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
41953         Reported by Stepan Kasal <kasal@ucw.cz>.
41954
41955 2005-10-11  Simon Josefsson  <jas@extundo.com>
41956
41957         * tests/test-crc.c: New file.
41958
41959         * modules/crc, modules/crc-tests: New files.
41960
41961 2005-10-11  Simon Josefsson  <jas@extundo.com>
41962
41963         * m4/crc.m4: New file.
41964
41965 2005-10-11  Simon Josefsson  <jas@extundo.com>
41966
41967         * lib/gc.h: Add gc_hash and gc_hash_buffer.
41968
41969         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
41970
41971         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
41972
41973 2005-10-11  Simon Josefsson  <jas@extundo.com>
41974
41975         * lib/crc.h, lib/crc.c: New files.
41976
41977         * lib/gc.h (gc_hash_buffer): Add doc.
41978
41979 2005-10-11  Bruno Haible  <bruno@clisp.org>
41980
41981         * modules/c-strcasestr: New file.
41982         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
41983
41984 2005-10-11  Bruno Haible  <bruno@clisp.org>
41985
41986         * modules/c-strcase: New file.
41987         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
41988
41989 2005-10-11  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/strcasecmp.c: Include limits.h.
41992         (strcasecmp): Avoid integer overflow on exotic platforms.
41993         * lib/strncasecmp.c: Include limits.h.
41994         (strncasecmp): Avoid integer overflow on exotic platforms.
41995         Reported by Paul Eggert.
41996
41997 2005-10-11  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/c-strcasestr.h: New file, from GNU gettext.
42000         * lib/c-strcasestr.c: New file, from GNU gettext.
42001
42002 2005-10-11  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/c-strcase.h: New file, from GNU gettext.
42005         * lib/c-strcasecmp.c: New file, from GNU gettext.
42006         * lib/c-strncasecmp.c: New file, from GNU gettext.
42007
42008 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42009
42010         * modules/mempcpy (License): GPL -> LGPL.
42011         * modules/strchrnul (License): Likewise.
42012         * modules/sysexits (License): Likewise.
42013
42014 2005-10-08  Simon Josefsson  <jas@extundo.com>
42015
42016         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
42017
42018 2005-10-07  Simon Josefsson  <jas@extundo.com>
42019
42020         * m4/memxor.m4: Remove gl_C_RESTRICT call.
42021
42022 2005-10-06  Simon Josefsson  <jas@extundo.com>
42023
42024         * tests/test-hmac-md5.c: New file.
42025
42026         * modules/hmac-md5-tests: New file.
42027
42028         * modules/hmac-md5: New file.
42029
42030 2005-10-06  Simon Josefsson  <jas@extundo.com>
42031
42032         * m4/hmac-md5.m4: New file.
42033
42034         * m4/memxor.m4: Require gl_C_RESTRICT.
42035
42036 2005-10-06  Simon Josefsson  <jas@extundo.com>
42037
42038         * lib/memxor.c (memxor): Avoid casts and warnings.
42039
42040 2005-10-06  Simon Josefsson  <jas@extundo.com>
42041
42042         * lib/hmac-md5.c: New file.
42043
42044         * lib/hmac.h: New file.
42045
42046 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42047
42048         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
42049         promotes to int, not unsigned int, to catch the AIX 5.3
42050         compiler bug.
42051
42052 2005-10-05  Simon Josefsson  <jas@extundo.com>
42053
42054         * modules/memxor: New file.
42055
42056         * modules/iconv (Files): Move config.rpath to havelib, it is used
42057         there.
42058
42059         * modules/havelib (Files): Add config.rpath.
42060
42061 2005-10-05  Simon Josefsson  <jas@extundo.com>
42062
42063         * m4/memxor.m4: New file.
42064
42065 2005-10-05  Simon Josefsson  <jas@extundo.com>
42066
42067         * lib/memxor.c (memxor): Fix compiler error.
42068
42069         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
42070         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
42071
42072         * lib/memxor.h, lib/memxor.c: New files.
42073
42074         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
42075         we assume all systems have it, suggested by Jim Meyering
42076         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
42077         any systems lack sys/socket.h; mingw32 is known to lack it, but we
42078         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
42079         same reasons.
42080
42081 2005-10-05  Simon Josefsson  <jas@extundo.com>
42082
42083         * config/srclist.txt: Add glibc bug 1423 for md5.h.
42084
42085 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42086
42087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
42088         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
42089         needed, since the source code now assumes these .h files.
42090
42091 2005-10-05  Derek Price  <derek@ximbiot.com>
42092
42093         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
42094
42095 2005-10-05  Bruno Haible  <bruno@clisp.org>
42096
42097         * modules/stdint (License): Change to LGPL.
42098
42099 2005-10-04  Simon Josefsson  <jas@extundo.com>
42100
42101         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
42102         D. Baushke" <mdb@gnu.org>.
42103
42104 2005-10-04  Bruno Haible  <bruno@clisp.org>
42105
42106         * lib/verify.h (verify_true): Provide alternative definition for C++.
42107
42108 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42109
42110         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
42111         (SSIZE_MAX): New macro, if not already defined.
42112         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
42113         than 2 GiB.
42114
42115 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42116
42117         Sync from coreutils.
42118         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
42119         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
42120         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
42121         ULLONG_MAX doesn't work with 2.7.2.1.
42122
42123 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42124
42125         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
42126         From Ben Pfaff.
42127
42128         * modules/exclude (Depends-on): Depend on verify.
42129         * modules/strtoimax (Depends-on): Likewise.
42130         * modules/utimecmp (Depends-on): Likewise.
42131
42132 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         * lib/exclude.c: Include verify.h.
42135         (verify): Remove.  All callers changed to use verify.h's version.
42136         * lib/strtoimax.c: Likewise.
42137         * lib/utimecmp.c: Likewis.e
42138
42139         Sync from coreutils.
42140         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
42141         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
42142         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
42143         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
42144         bother returning ENOSYS if settimeofday or stime fails; just let
42145         them return whatever errno they want to return.
42146         * lib/utimens.c: Include unistd.h, for dup2.
42147         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
42148         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
42149
42150 2005-10-02  Jim Meyering  <jim@meyering.net>
42151
42152         Sync from coreutils.
42153         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
42154         from glibc-2.2.5 that fails for read-only files.
42155
42156 2005-10-02  Jim Meyering  <jim@meyering.net>
42157
42158         Sync from coreutils.
42159         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
42160         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
42161         `#if HAVE_CONFIG_H'.
42162         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
42163         Remove AT_FDCWD test.
42164         Do not consume the fd unless successful.
42165         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
42166         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
42167         block, so that we don't even try to compile it if settimeofday is
42168         available.  This works around a compilation failure on OSF1 V5.1,
42169         due to stime requiring a `long int*' while tv_sec is `int'.
42170
42171 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
42172
42173         Sync from coreutils.
42174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
42175         against `yes', rather than just testing for nonempty.
42176
42177 2005-10-01  Simon Josefsson  <jas@extundo.com>
42178
42179         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
42180         and Darwin.
42181
42182         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
42183         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
42184         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
42185         freeaddrinfo and gai_strerror are declared by the POSIX headers.
42186         Check if struct addrinfo is declared.
42187
42188 2005-10-01  Simon Josefsson  <jas@extundo.com>
42189
42190         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
42191         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
42192         AI_* and EAI_* definitions.  Protect function declarations.
42193
42194 2005-10-01  Jim Meyering  <jim@meyering.net>
42195
42196         Sync from coreutils.
42197
42198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
42199         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
42200         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
42201         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
42202         in the inet and nsl libraries.  Required on Solaris 5.7.
42203
42204 2005-10-01  Jim Meyering  <jim@meyering.net>
42205
42206         Sync from coreutils.
42207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
42208         in the inet and nsl libraries.  Required on Solaris 5.7.
42209
42210 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
42211
42212         * lib/getdelim.c (getdelim): Remove unused variables.
42213
42214 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42215
42216         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
42217         so that the code works even with ancient cpp.  Portability problem
42218         with GCC 2.7.2.1 reported by Thomas M.Ott.
42219
42220 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42221
42222         * modules/regex (Depends-on): Add strcase.
42223
42224         * modules/gethostname (Licence): Change from GPL to LGPL, since
42225         gethostname.c is a trivial implementation of a standard library
42226         function.
42227         * modules/poll (License): Change from GPL to LGPL, since it's
42228         derived from LGPL code.
42229
42230 2005-09-27  Jim Meyering  <jim@meyering.net>
42231
42232         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
42233         HAVE_CONFIG_H.
42234
42235         * lib/intprops.h (signed_type_or_expr__): Define.
42236         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
42237         for unsigned types.
42238
42239 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42240
42241         * lib/verify.h (verify_expr): Remove, replacing with:
42242         (verify_true): New macro that returns true instead of void.
42243         (verify_type__): Remove.
42244         (verify): Use verify_true rather than verify_type__.
42245
42246 2005-09-26  Bruno Haible  <bruno@clisp.org>
42247
42248         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
42249         is necessary.
42250         (lib_SOURCES): Remove mbchar.c.
42251         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
42252         (Files): Add m4/mbrtowc.m4.
42253         * modules/mbiter: Likewise.
42254         * modules/mbuiter: Likewise.
42255
42256 2005-09-26  Bruno Haible  <bruno@clisp.org>
42257
42258         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
42259         compile mbchar.c if they are not both present.
42260         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
42261         * m4/mbiter.m4 (gl_MBITER): Likewise.
42262         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
42263         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
42264         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
42265
42266 2005-09-25  Jim Meyering  <jim@meyering.net>
42267
42268         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
42269         also uses socklen_t.
42270
42271 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
42272
42273         * lib/utimens.c (ENOSYS): Define if not already defined.
42274         (futimens): Support having a null PATH if the file descriptor
42275         is nonnegative.
42276
42277         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
42278         Remove.
42279         (__attribute): Define to empty unless GCC 3.1 or later.
42280         This works around a core dump on OpenBSD 3.4, which has GCC
42281         2.95.3, which dumps core when given __attribute__(()).  It also
42282         simplifies other tests, since we really don't want to bother with
42283         worrying about which ancient version of GCC supported what.
42284         Original problem reported by Yoann Vandoorselaere, with part of
42285         the fix suggested by Derek Price.
42286
42287 2005-09-24  Jim Meyering  <jim@meyering.net>
42288
42289         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
42290         so we can once again use a positive bitfield width of 1 -- now we
42291         don't have to explain why we were using a bitfield width of 2.
42292
42293 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
42294
42295         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
42296         and similarly for the other external symbols.  Problem reported
42297         by James Gallager.
42298
42299         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
42300         bug reported by Jim Meyering.
42301
42302         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
42303         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
42304         not needed, since socklen is a prerequisite module.
42305
42306 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
42307
42308         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
42309         Problem reported by Eric Blake.
42310         (getaddrinfo): Initialize se so that it's not garbage.
42311         Redo internal storage allocation so that it doesn't make unportable
42312         assumptions about alignment.
42313         Fix a memory leak.
42314
42315         * lib/utimens.c (futimens): Use futimesat if available.
42316         Prefer it to futimes since it doesn't have the futimes bug.
42317
42318         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
42319         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
42320         Instead, declare a function that returns a pointer to an array,
42321         and use verify_type__ to declare the size of the array.
42322         Problem and germ of a solution reported by Bruno Haible.
42323         (verify_type__): Use 2, not 1, for bitfield size, to avoid
42324         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
42325
42326 2005-09-23  Jim Meyering  <jim@meyering.net>
42327
42328         Sync from coreutils.
42329         Correct build failure (socklen_t not defined) on at least
42330         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
42331         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
42332
42333 2005-09-23  Jim Meyering  <jim@meyering.net>
42334
42335         * modules/getaddrinfo (Depends-on): Add socklen.
42336
42337 2005-09-23  Bruno Haible  <bruno@clisp.org>
42338
42339         * tests/test-verify.c: New file.
42340
42341 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
42342
42343         Sync from coreutils.
42344
42345         * modules/argmatch (Depends-on): Add verify.
42346         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
42347         unistd-safer.
42348         * modules/save-cwd (Depends-on): Likewise.
42349
42350         * modules/openat (Files): Add lib/openat-die.c.
42351         (Depends-on): Remove error, exitfail.
42352         Add dirname.
42353
42354         * modules/verify: New file.
42355         * MODULES.html.sh (Diagnostics <assert.h>): New section,
42356         with "verify" module.
42357
42358 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
42359
42360         Sync from coreutils.
42361
42362         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
42363         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
42364         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
42365         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
42366         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
42367         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
42368         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
42369         Don't bother checking for string.h, stdlib.h, unistd.h.
42370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
42371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
42372         module's job.
42373         * m4/jm-macros.m4 (gl_MACROS): Likewise.
42374         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
42375
42376         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
42377         (gl_GETDATE): Use it.
42378
42379         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
42380
42381 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
42382
42383         Sync from coreutils.
42384
42385         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
42386         stat-time.h.
42387         * lib/argmatch.h: Include verify.h
42388         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
42389         (ARGMATCH_ASSERT): Remove; unused.
42390         * lib/canonicalize.c: Assume STDC_HEADERS.
42391         * lib/exclude.c: Include "strcase.h".
42392         * lib/regex_internal.h [!defined _LIBC]: Likewise.
42393         * lib/getusershell.c: Include stdio--.h rather than stdio.h
42394         and stdio-safer.h.
42395         (getusershell): Call fopen, not fopen_safer.
42396         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
42397         Do not include unistd-safer.h.
42398         (save_cwd): Don't call fd_safer; no longer needed
42399         now that we include fcntl--.h.
42400
42401         * lib/getdate.y (relative_time): New type.
42402         (RELATIVE_TIME_0): New constant.
42403         (parser_control): Use relative_time instead of doing it ourselves.
42404         (%union): Add new relative_time rel member.
42405         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
42406         Now typeless.
42407         (relunit, relunit_snumber): Now of type rel.
42408         (zone, rel, relunit, get_date): Adjust to above changes.
42409
42410         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
42411         Do not include unistd-safer.h.
42412         (getloadavg): Don't call fd_safer; no longer needed
42413         now that we include fcntl--.h.
42414
42415         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
42416         (make_dir_parents): Treat ENOSYS like EEXIST.
42417
42418         Improve quality of diagnostics on restore_cwd failure.
42419         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
42420         (make_dir_parents): Last arg is now int * (for errno), not bool *.
42421         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
42422         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
42423         each time through the loop.  Do not diagnose restore_cwd failure;
42424         that is the caller's job (and perhaps the caller does not care).
42425
42426         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
42427         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
42428         If the file already exists but is not a directory, don't bother
42429         to try to make its parents.
42430         Close potential file descriptor leak if we can't chdir("/") (!).
42431         Don't always return true if chdir($PWD) fails; return true only
42432         if the requested action was done successfully (except for the
42433         chdir($PWD)).
42434         Don't log final directory unless we actually made it.
42435         Refactor to avoid duplicate code to fix up permissions.
42436         Don't attempt to fix up parent permissions if chdir($PWD) fails.
42437
42438         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
42439         to make it a bit faster and (I hope) clearer.
42440         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
42441         Fix bug in formats like %2N.
42442
42443         * lib/verify.h: New file.
42444
42445 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
42446
42447         Sync from coreutils.
42448         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
42449
42450 2005-09-22  Jim Meyering  <jim@meyering.net>
42451
42452         Sync from coreutils.
42453
42454         * m4/lstat.m4 (gl_FUNC_LSTAT):
42455         Use AC_LIBSOURCES to require lstat.c and lstat.h.
42456         Remove obsolete comment.
42457         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
42458         * m4/xstrtod.m4: Likewise.
42459
42460         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
42461
42462 2005-09-22  Jim Meyering  <jim@meyering.net>
42463
42464         Sync from coreutils.
42465
42466         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
42467
42468         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
42469         the .tm_year member, since otherwise gcc-4.0 would now warn about
42470         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
42471
42472         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
42473         order to avoid an unsuppressible warning from gcc on 64-bit systems.
42474
42475         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
42476         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
42477         when run in a time zone for which daylight savings time is in effect
42478         for the starting date.
42479
42480         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
42481         stop us from restricting permissions of just-created absolute-named
42482         directories.
42483         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
42484         to restore initial working directory.
42485         * lib/mkdir-p.c (make_dir_parents): New parameter:
42486         different_working_dir, to tell caller if/when we change the working
42487         directory and are unable to return to the initial one.
42488         * lib/mkdir-p.h (make_dir_parents): Update prototype.
42489         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
42490         `return false'.  This fixes a bug introduced on 2004-07-30.
42491
42492         * lib/openat.c (fdopendir): Be sure to close the supplied
42493         file descriptor before returning.  This makes our replacement
42494         implementation a little closer to Solaris's, where fdopendir
42495         ties the file descriptor to the returned DIR* pointer.
42496         * lib/openat.c (unlinkat): New function.
42497         * lib/openat.h (unlinkat): Add prototype.
42498         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
42499         (openat_restore_fail): Rename from openat_restore_die.
42500         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
42501
42502         Provide an alternative to exiting immediately upon save_cwd or
42503         restore_cwd failure.  Now, an application can arrange e.g.,
42504         to perform a longjump in that case.
42505         * lib/openat.c: Include dirname.h.
42506         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
42507         (rpl_openat, fdopendir, fstatat): Call openat_save_die
42508         and openat_restore_die rather than calling error directly.
42509         Don't include "error.h" or "exitfail.h"; they're no longer needed.
42510
42511         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
42512         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
42513         define.
42514
42515         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
42516         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
42517                             int utc, int nanoseconds);
42518         Background:
42519         date should not have to allocate a megabyte of virtual memory to
42520         handle a format argument like +%1048575T.  When implemented with
42521         strftime, it must allocate such a buffer, use strftime to fill it
42522         in, print it, then free it.
42523         With fprintftime, it simply prints everything and exits.
42524         With no need for memory allocation, that's one fewer way to fail.
42525         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
42526         optional field width, not before, so we accept %9:z, not %:9z.
42527         (my_strftime): Be sure to use L_('x') for literals.
42528
42529         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
42530         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
42531         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
42532         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
42533         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
42534         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
42535         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
42536         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
42537         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
42538         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
42539         * lib/xgethostname.c, lib/xreadlink.c:
42540         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
42541
42542         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
42543         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
42544         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
42545         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42546         and don't include <sys/file.h>).
42547
42548 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
42549
42550         Sync from coreutils.
42551
42552         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
42553         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
42554         [!LDAV_DONE]: Avoid unused variable warning.
42555
42556 2005-09-21  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/unicodeio.h (unicode_to_mb): New declaration.
42559
42560 2005-09-20  Derek Price  <derek@ximbiot.com>
42561
42562         * lib/getaddrinfo.c: Don't include <netdb.h> included from
42563         getaddrinfo.h.
42564
42565 2005-09-20  Bruno Haible  <bruno@clisp.org>
42566
42567         * gnulib-tool: Remove trailing slashes from the values specified for
42568         --source-base, --m4-base, --tests-base, --aux-dir.
42569         Suggested by Simon Josefsson <jas@extundo.com>.
42570
42571 2005-09-20  Bruno Haible  <bruno@clisp.org>
42572
42573         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
42574         func_modules_to_filelist, func_import, func_create_testdir): Make all
42575         sorting results locale-independent, so that gnulib-cache.m4 doesn't
42576         change when gnulib-tool is invoked in a different locale.
42577
42578 2005-09-19  Simon Josefsson  <jas@extundo.com>
42579
42580         * m4/socklen.m4: Fix typo.
42581
42582 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42583
42584         Use a consistent style for including <config.h>.
42585         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
42586         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
42587         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
42588         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
42589         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
42590         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
42591         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
42592         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
42593         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
42594         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
42595         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
42596         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
42597         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
42598         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
42599         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
42600         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
42601         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
42602         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
42603         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
42604         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
42605         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
42606         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
42607         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
42608         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
42609         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
42610         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
42611         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
42612         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
42613         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
42614         lib/xstrtoumax.c, lib/yesno.c:
42615         Standardize inclusion of config.h.
42616         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
42617         lib/inttostr.h:  Removed inclusion of config.h from header files.
42618         * lib/inttostr.c:  Adjusted in-tree users.
42619         * lib/timespec.h: Remove superfluous warning to include config.h.
42620         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
42621         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
42622         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
42623         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
42624         config.h with HAVE_CONFIG_H.
42625
42626 2005-09-19  Jim Meyering  <jim@meyering.net>
42627
42628         * modules/pathmax (License): Change to LGPL.
42629
42630 2005-09-19  Derek Price  <derek@ximbiot.com>
42631
42632         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
42633
42634 2005-09-19  Bruno Haible  <bruno@clisp.org>
42635
42636         * gnulib-tool (import): Provide default for --tests-base.
42637
42638 2005-09-19  Bruno Haible  <bruno@clisp.org>
42639
42640         * doc/quote.texi: New file, extracted from gnulib.texi.
42641         * doc/ctime.texi: New file, extracted from gnulib.texi.
42642         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
42643         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
42644         * doc/gnulib.texi: Include them.
42645
42646 2005-09-18  Bruno Haible  <bruno@clisp.org>
42647
42648         Portability fix.
42649         * gnulib-tool (func_readlink): New function.
42650         (func_ln_if_changed): Use it.
42651
42652 2005-09-18  Bruno Haible  <bruno@clisp.org>
42653
42654         * gnulib-tool: Support --with-tests also with --import.
42655         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
42656         (func_import): Use variables $testsbase and $inctests. Emit a
42657         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
42658         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
42659         SUBDIRS += $testsdir.
42660         (func_create_testdir): Update.
42661
42662 2005-09-18  Bruno Haible  <bruno@clisp.org>
42663
42664         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
42665         instead of $dry_run.
42666         (func_cp_if_changed, func_mv_if_changed): Remove functions.
42667         (func_ln_if_changed): Don't handle dry-run here.
42668         (func_import): In dry-run mode, detect more precisely which actions
42669         would be performed, and don't use "...ing" verbs.
42670
42671 2005-09-18  Bruno Haible  <bruno@clisp.org>
42672
42673         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
42674         (func_import): Use join on two temporary files instead of three nested
42675         loops, in order to determine which files are new or old.
42676
42677 2005-09-18  Bruno Haible  <bruno@clisp.org>
42678
42679         * gnulib-tool (func_import): Comment out code that spits out the
42680         new files with --dry-run.
42681
42682 2005-09-18  Bruno Haible  <bruno@clisp.org>
42683
42684         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
42685
42686 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
42687
42688         * lib/stat-time.h: New file.
42689         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
42690         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
42691         in a different way.
42692         (timespec_cmp): New function.
42693         * lib/utimecmp.c: Include stat-time.h.
42694         (SYSCALL_RESOLUTION): Depend on whether various struct stat
42695         members exist, not on the obsolescent ST_MTIM_NSEC.
42696         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
42697
42698 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
42699
42700         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
42701
42702 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
42703
42704         * MODULES.html.sh (File system functions): Add stat-time.
42705         * modules/stat-time: New file.
42706         * modules/timespec (Files): Remove m4/st_mtim.m4; this
42707         is now done in a different way, by the stat-time module.
42708         * modules/utimecmp (Depends-on): Add stat-time.
42709
42710 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42711
42712         * m4/st_mtim.m4: Remove.  Superseded by...
42713         * m4/stat-time.m4: New file.
42714         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
42715         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
42716
42717 2005-09-15  Derek Price  <derek@ximbiot.com>
42718
42719         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
42720
42721 2005-09-15  Derek Price  <derek@ximbiot.com>
42722
42723         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
42724         * lib/regex_internal.c: Ditto, using this...
42725         (__GNUC_PREREQ): ...new macro.
42726         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
42727         using...
42728         (__GNUC_PREREQ): ...this new macro.
42729
42730         * lib/strstr.h: Include string.h. Define strstr as a macro here.
42731
42732 2005-09-15  Derek Price  <derek@ximbiot.com>
42733             Paul Eggert  <eggert@cs.ucla.edu>
42734
42735         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
42736         changes, consolidating in...
42737         * lib/regex_internal.h: ...this file.
42738
42739 2005-09-13  Jim Meyering  <jim@meyering.net>
42740
42741         * lib/canon-host.c: Filter through gnu indent and reword comments
42742         slightly.
42743         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
42744
42745 2005-09-13  Derek Price  <derek@ximbiot.com>
42746
42747         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
42748         failure.
42749         Reported by Jim Meyering  <jim@meyering.net>.
42750
42751 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42752
42753         * lib/base64.c: Typo.
42754         (base64_encode): Put b64str in initialized data section.
42755
42756 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
42757
42758         Merge glibc and coreutils changes into gnulib, plus a few
42759         extra fixes.
42760         * lib/md5.c: Use #error rather than a string.
42761         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
42762         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
42763         (__attribute__): Define to empty for non recent-GCC.
42764         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
42765         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
42766         Renamed from their non-__ counterparts, with new macros replacing
42767         them if not _LIBC.  Add __THROW attribute.
42768         (rol): Remove.
42769         (struct md5_ctx): Align buffer if using GCC.
42770         * lib/sha1.h (struct sha1_ctx): Likewise.
42771         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
42772         The old name was backwards.
42773         (NOTSWAP): Remove; not used.
42774         (rol): New macro, moved here from md5.h.
42775         (sha1_process_block): Remove a FIXME that doesn't make sense.
42776
42777 2005-09-12  Derek Price  <derek@ximbiot.com>
42778
42779         Return usable errors from canon-host.
42780         * lib/canon-host.h: New file.
42781         * lib/canon-host.c (canon_host): Wrap...
42782         (canon_host_r): ...this new function, which now relies exclusively on
42783         getaddrinfo.
42784         (ch_strerror): New function.
42785         (last_cherror): New global.
42786         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
42787         interface.
42788         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
42789         void *.
42790         (freeaddrinfo): Free ai->ai_canonname when set.
42791
42792 2005-09-12  Derek Price  <derek@ximbiot.com>
42793
42794         Make canon-host require getaddrinfo.
42795         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
42796         AC_LIBSOURCE canon-host.h.  Call...
42797         (gl_PREREQ_CANON_HOST): ...this new function, which requires
42798         gl_GETADDRINFO.
42799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
42800
42801 2005-09-12  Derek Price  <derek@ximbiot.com>
42802
42803         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
42804         LGPL.
42805         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
42806
42807 2005-09-12  Derek Price  <derek@ximbiot.com>
42808
42809         * lib/gai_strerror.c: Include config.h when available.  Include
42810         getaddrinfo.h before other headers to test interface.
42811         Reported by Larry Jones <lawrence.jones@ugs.com>.
42812
42813 2005-09-12  Derek Price  <derek@ximbiot.com>
42814             Paul Eggert  <eggert@cs.ucla.edu>
42815
42816         * modules/glob (Files): Add glob-libc.h.
42817
42818 2005-09-12  Derek Price  <derek@ximbiot.com>
42819             Paul Eggert  <eggert@cs.ucla.edu>
42820
42821         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
42822         glob_.h, glob-libc.h.
42823         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
42824
42825 2005-09-12  Derek Price  <derek@ximbiot.com>
42826             Paul Eggert  <eggert@cs.ucla.edu>
42827
42828         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
42829         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
42830         protecting things that should be done only in gnulib contexts.
42831         * lib/glob_.h: New file, containing only the glob things needed for
42832         gnulib.
42833         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
42834         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
42835         (glob, globfree, glob_pattern_p): Now defined simply in terms of
42836         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
42837         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
42838         and to respect the namespace rules better.
42839
42840 2005-09-08  Simon Josefsson  <jas@extundo.com>
42841
42842         * modules/socklen: New file.
42843
42844 2005-09-08  Simon Josefsson  <jas@extundo.com>
42845
42846         * m4/socklen.m4: New file.
42847
42848 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42849
42850         * modules/utimens (Files): Add m4/utimbuf.m4, since
42851         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
42852         Reported by Sergey Poznyakoff.
42853
42854 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
42857         definitions, since that's the preferred style in glibc.
42858         Fix a minor spacing issue, and update copyright notice to match
42859         glibc's.
42860
42861 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
42864
42865 2005-09-06  Simon Josefsson  <jas@extundo.com>
42866
42867         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
42868         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
42869
42870 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42871
42872         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
42873         warning.
42874
42875 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
42876
42877         * config/srclist.txt: Add glibc bug 1302.
42878
42879 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
42880
42881         Change bitset word type from unsigned int to unsigned long int,
42882         as this has better performance on typical 64-bit hosts.
42883         Port bitset code to hosts with unusual word sizes.
42884         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
42885         (build_collating_symbol):
42886         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
42887         argument is a bitset.  This is merely a style issue, but it makes
42888         it clearer that an entire array is expected.
42889         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
42890         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
42891         Port to the case where bitset_word is not the same as unsigned int.
42892         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
42893         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
42894         Likewise.
42895         * lib/regexec.c (check_dst_limits_calc_pos_1,
42896         check_subexp_matching_top):
42897         (build_trtable, group_nodes_into_DFAstates):
42898         Likewise.
42899         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
42900         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
42901         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
42902         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
42903         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
42904         * lib/regcomp.c (optimize_subexps, lower_subexp):
42905         Work even if bitset_word has holes in its bitwise representation.
42906         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
42907         * lib/regexec.c (check_dst_limits_calc_pos_1,
42908         check_subexp_matching_top):
42909         Likewise.
42910         * lib/regex_internal.c (re_string_reconstruct):
42911         Don't assume UCHAR_MAX == 255.
42912         * lib/regex_internal.h (bitset_set_all): Likewise.
42913         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
42914         All uses changed.
42915         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
42916         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
42917         All uses changed.
42918         (BITSET_WORD_MAX): New macro.
42919         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
42920         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
42921         (bitset_empty, bitset_copy):
42922         Prefer sizeof (bitset) to multiplying it out ourselves.
42923         (bitset_not_merge): Remove; unused.
42924         (bitset_contain): Return bool, not unsigned int with one bit on.
42925         All callers changed.
42926         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
42927         alignment than re_node_set; do this by defining a new internal
42928         type struct dests_alloc and using it to allocate memory.
42929
42930 2005-09-05  Bruno Haible  <bruno@clisp.org>
42931
42932         * gnulib-tool (func_import): Fix comparison in handling of symbolic
42933         links.
42934
42935 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
42936
42937         * modules/size_max (Makefile.am): Add size_max.h
42938
42939 2005-09-04  Derek Price  <derek@ximbiot.com>
42940
42941         * gnulib-tool (func_import): Fix reversed $symbolic logic.
42942
42943 2005-09-03  Simon Josefsson  <jas@extundo.com>
42944
42945         * gnulib-tool: Fix typo.
42946
42947 2005-09-03  Simon Josefsson  <jas@extundo.com>
42948
42949         * config/srclist.txt: Add glibc bug 1293.
42950
42951 2005-09-03  Derek Price  <derek@ximbiot.com>
42952
42953         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
42954         From Larry Jones <lawrence.jones@ugs.com>.
42955
42956 2005-09-02  Simon Josefsson  <jas@extundo.com>
42957
42958         * modules/socklen: New file.
42959
42960 2005-09-02  Simon Josefsson  <jas@extundo.com>
42961
42962         * modules/havelib: New module.
42963
42964         * modules/gettext, modules/iconv, modules/lock, modules/readline:
42965         Use havelib.
42966
42967 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         Check for arithmetic overflow when calculating sizes, to prevent
42970         some buffer-overflow issues.  These patches are conservative, in the
42971         sense that when I couldn't determine whether an overflow was possible,
42972         I inserted a run-time check.
42973         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
42974         macros.
42975         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
42976         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
42977         (re_xnrealloc, re_x2nrealloc): New inline functions.
42978         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
42979         parse_bracket_exp):
42980         (build_equiv_class, build_charclass): Check for arithmetic overflow
42981         in size expression calculations.
42982         * lib/regex_internal.c (re_string_realloc_buffers):
42983         (build_wcs_upper_buffer, re_node_set_add_intersect):
42984         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
42985         (re_dfa_add_node, register_state): Likewise.
42986         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
42987         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
42988         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
42989         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
42990
42991 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
42992
42993         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
42994         m4/ulonglong.m4.  Problem reported by Martin Lambers.
42995
42996 2005-09-02  Bruno Haible  <bruno@clisp.org>
42997
42998         Support for lib vs. lib64 distinction on biarch platforms.
42999         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
43000         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
43001         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
43002
43003 2005-09-02  Bruno Haible  <bruno@clisp.org>
43004
43005         * gnulib-tool (import): In the other first-use case, provide defaults
43006         as well.
43007
43008 2005-09-02  Bruno Haible  <bruno@clisp.org>
43009
43010         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
43011         patches not yet found in the latest gettext release.
43012
43013 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43014
43015         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
43016         to avoid a collision with bits/local_lim.h in glibc.
43017         All uses changed.  Problem reported by Dmitry V. Levin in
43018         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
43019
43020         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
43021         bugs in int versus size_t comparisons.
43022         (re_string_context_at): Fix bug where the code assumed that
43023         Idx is signed.
43024
43025         Use bool where appropriate.
43026         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
43027         All callers changed.
43028         (calc_eclosure_iter): Likewise, for ROOT arg.
43029         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
43030         (build_charclass_op): Likewise, for NON_MATCH arg.
43031         * lib/regex_internal.c (re_string_allocate, re_string_construct):
43032         (re_string_construct_common): Likewise, for ICASE arg.
43033         * lib/regexec.c (re_search_2_stub, re_search_stub):
43034         Likewise, for RET_LEN arg.
43035         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
43036         (set_regs): Likewise, for FL_BACKTRACK arg.
43037         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
43038         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
43039         (calc_eclosure_iter, parse_bracket_exp):
43040         Use bool for internal variables that are booleans.
43041         * lib/regexec.c (re_search_internal, check_matching,
43042         proceed_next_node):
43043         (set_regs, build_sifted_states, sift_states_bkref):
43044         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
43045         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
43046         (find_collation_sequence_value):
43047         Likewise.
43048         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
43049         (re_node_set_compare):
43050         Return bool, not int. All callers changed.
43051         * lib/regexec.c (check_halt_node_context, check_dst_limits):
43052         (build_trtable, check_node_accept): Likewise.
43053         * lib/regex_internal.h: Include stdbool.h.
43054
43055         Fix bugs uncovered when converting to bool.
43056         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
43057         failure instead of charging ahead blindly.
43058         * lib/regex_internal.c (register_state): Likewise.
43059         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
43060         for freeing internal storage.
43061         (group_nodes_into_DFA_states): Use unsigned int, not int, for
43062         bitset pieces used as boolean, to avoid undefined behavior
43063         on hosts that do int overflow checking.
43064
43065 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43066
43067         * config/srclist.txt: Add glibc bugs 1285-1287.
43068
43069 2005-09-01  Jim Meyering  <jim@meyering.net>
43070
43071         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
43072         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
43073         Require gl_STAT_MACROS, too.
43074
43075 2005-09-01  Bruno Haible  <bruno@clisp.org>
43076
43077         * gnulib-tool (import): In the first-use case, provide defaults.
43078
43079 2005-09-01  Bruno Haible  <bruno@clisp.org>
43080
43081         * gnulib-tool (func_import): Remove the .tmp files.
43082
43083 2005-09-01  Bruno Haible  <bruno@clisp.org>
43084
43085         * gnulib-tool (func_import): Fix handling of symbolic links.
43086
43087 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43088
43089         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
43090         old glibc regex code mishandles strings longer than 2**31 bytes.
43091         This patch fixes this when the regex code is used in gnulib
43092         (i.e., outside glibc).
43093
43094         This patch should not affect the use of the regex code inside
43095         glibc.  No doubt this problem also needs to be handled for glibc
43096         as well, but the result will be an incompatible change to the
43097         glibc ABI, and the old ABI will have to be supported too.  That
43098         can be the the subject for another patch.
43099
43100         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
43101         governing whether the rest of this patch is active.  By default,
43102         the macro is disabled and the patch has no effect.
43103         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
43104         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
43105         (struct re_pattern_buffer, re_search, re_search_2, re_match):
43106         (re_match_2, re_set_registers): Use the new types.
43107         * lib/regex_internal.h (Idx, re_hashval_t): New types.
43108         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
43109         New macros.
43110         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
43111         (re_string_context_at, bin_tree_t, re_dfastate_t):
43112         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
43113         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
43114         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
43115         (re_string_char_size_at, re_string_wchar_at):
43116         (re_string_elem_size_at):
43117         Use the new types and macros to port to 64-bit hosts.
43118         Use unsigned types for internal values, so that the code
43119         mostly works even for arrays larger than SSIZE_MAX.
43120         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
43121         (search_duplicated_node, calc_eclosure_iter, fetch_number):
43122         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
43123         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
43124         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
43125         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
43126         (calc_inveclosure, parse_dup_op, build_range_exp):
43127         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
43128         (fetch_number, create_token_tree, mark_opt_subexp):
43129         Likewise.
43130         * lib/regex_internal.c (re_string_construct_common,
43131         create_ci_newstate):
43132         (create_cd_newstate, re_string_allocate, re_string_construct):
43133         (re_string_realloc_buffers, build_wcs_upper_buffer):
43134         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
43135         (re_string_reconstruct, re_string_peek_byte_case):
43136         (re_string_fetch_byte_case, re_string_context_at):
43137         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
43138         (re_node_set_init_copy, re_node_set_add_intersect):
43139         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
43140         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
43141         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
43142         (re_acquire_state, re_acquire_state_context, register_state):
43143         Likewise.
43144         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
43145         search_cur_bkref_entry):
43146         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
43147         (re_search_internal, re_search_2_stub, re_search_stub)
43148         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
43149         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
43150         (update_cur_sifted_state, check_dst_limits):
43151         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
43152         (check_subexp_limits, sift_states_bkref, merge_state_array):
43153         (check_subexp_matching_top, get_subexp, get_subexp_sub):
43154         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
43155         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
43156         (expand_bkref_cache, check_node_accept_bytes):
43157         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
43158         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
43159         (acquire_init_state_context, check_halt_node_context):
43160         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
43161         (sift_states_backward, clean_state_log_if_needed):
43162         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
43163         (find_recover_state, transit_state_sb, transit_state_mb):
43164         (transit_state_bkref, build_trtable, match_ctx_clean):
43165         Likewise.
43166         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
43167         to work around an assumption that REG_MISSING is negative.
43168
43169         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
43170         (seek_collating_symbol_entry) [defined _LIBC]:
43171         (lookup_collation_sequence_value) [defined _LIBC]:
43172         (build_range_exp, build_collating_symbol) [defined _LIBC]:
43173         Use prototypes rather than old-style function definitions.
43174         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
43175         (transit_state_sb) [0]:
43176         (find_collation_sequence_value) [defined _LIBC]: Likewise.
43177
43178         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
43179         rm_eo.
43180
43181         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
43182         (optimize_subexps, lower_subexp):
43183         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
43184         since the signed shift might overflow.  Use 1u<<31 instead.
43185         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
43186         Likewise.
43187         * lib/regexec.c (check_dst_limits_calc_pos_1,
43188         check_subexp_matching_top): Likewise.
43189
43190         * lib/regcomp.c (optimize_subexps, lower_subexp):
43191         Use CHAR_BIT rather than 8, for clarity.
43192         * lib/regexec.c (check_dst_limits_calc_pos_1):
43193         (check_subexp_matching_top): Likewise.
43194         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
43195         have to worry about portability issues when shifting it left.
43196         Remove no-longer-needed test for table_size > 0.
43197         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
43198         in a word, as the resulting behavior is undefined.
43199         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
43200         in one case, a <= should have been an <, and in another case the
43201         whole test was missing.
43202         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
43203         the standard name CHAR_BIT.
43204         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
43205         this is not true on one's complement and signed-magnitude hosts.
43206
43207         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
43208         next_last_offset.
43209         (struct re_dfa_t): Remove unused member states_alloc.
43210         * lib/regcomp.c (init_dfa): Don't initialize unused members.
43211
43212 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43213
43214         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
43215         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
43216         and large-file glibc and in 32-bit large-file Solaris.
43217
43218 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
43221         lengths fit in regoff_t; this isn't true if regoff_t is the same
43222         width as size_t.
43223         * lib/regex.c (re_search_internal): 5th arg is LAST_START
43224         (= START + RANGE) instead of RANGE.  This avoids overflow
43225         problems when regoff_t is the same width as size_t.
43226         All callers changed.
43227         (re_search_2_stub): Check for overflow when adding the
43228         sizes of the two strings.
43229         (re_search_stub): Check for overflow when adding START
43230         to RANGE; if it occurs, substitute the extreme value.
43231
43232 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
43235
43236 2005-08-31  Jim Meyering  <jim@meyering.net>
43237
43238         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
43239         a pointer-to-const.
43240         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
43241         (register_state): Likewise.
43242         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
43243         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
43244         (group_nodes_into_DFAstates): Likewise.
43245
43246 2005-08-31  Jim Meyering  <jim@meyering.net>
43247
43248         * check-module: Add a FIXME comment.
43249
43250 2005-08-31  Eric Blake  <ebb9@byu.net>
43251
43252         * modules/unistd-safer (Files): Add unistd--.h.
43253         * modules/stdio-safer (Files): Add stdio--.h.
43254
43255 2005-08-31  Derek Price  <derek@ximbiot.com>
43256
43257         * lib/getdelim.c (getdelim): Return EOF on EOF.
43258         Reported by Larry Jones <lawrence.jones@ugs.com>.
43259
43260 2005-08-31  Bruno Haible  <bruno@clisp.org>
43261
43262         Avoid unnecessary diffs in the generated lib/Makefile.am.
43263         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
43264         the generated files.
43265         (func_import): Don't set cmd.
43266
43267 2005-08-31  Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/strstr.c: Include <stddef.h>, for NULL.
43270         * lib/strcasestr.c: Likewise.
43271         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43272
43273 2005-08-31  Bruno Haible  <bruno@clisp.org>
43274
43275         * gnulib-tool: New option --macro-prefix.
43276         (func_import): Use macro_prefix.
43277         (import): Handle option --macro-prefix.
43278
43279 2005-08-31  Bruno Haible  <bruno@clisp.org>
43280
43281         * gnulib-tool (import): Rename most ac_* variables to cached_*.
43282         Also use new variables cached_lgpl, cached_libtool.
43283
43284 2005-08-31  Bruno Haible  <bruno@clisp.org>
43285
43286         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
43287         always instantiating them.
43288
43289 2005-08-31  Bruno Haible  <bruno@clisp.org>
43290
43291         * gnulib-tool (func_import): Read the previous cached settings
43292         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
43293         earlier added by gnulib but are now dropped. Warn when a gnulib file
43294         overwrites a non-gnulib file.
43295
43296 2005-08-31  Bruno Haible  <bruno@clisp.org>
43297
43298         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
43299         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
43300         projects that don't keep autogenerated files in CVS. Put into
43301         actioncmd only the specified modules, not the transitive closure.
43302
43303 2005-08-31  Bruno Haible  <bruno@clisp.org>
43304
43305         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
43306         Create directories that shall be filled.
43307         (import): Don't look for gl_* macros in configure.ac. Recurse across
43308         all directories containing a gnulib-cache.m4 files, if meaningful.
43309
43310 2005-08-31  Bruno Haible  <bruno@clisp.org>
43311
43312         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
43313         (import): Set seen_libtool when we see gl_LIBTOOL.
43314
43315 2005-08-31  Bruno Haible  <bruno@clisp.org>
43316
43317         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
43318         declaration macro definitions from generated gnulib.m4.
43319
43320 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
43321
43322         * lib/iconvme.h: Add prototype for iconv_alloc.
43323
43324 2005-08-29  Simon Josefsson  <jas@extundo.com>
43325
43326         * lib/iconvme.c: Fix errno.
43327
43328 2005-08-29  Bruno Haible  <bruno@clisp.org>
43329
43330         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
43331         that it works when the directory contains spaces.
43332
43333 2005-08-29  Bruno Haible  <bruno@clisp.org>
43334
43335         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
43336
43337 2005-08-29  Bruno Haible  <bruno@clisp.org>
43338
43339         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
43340         Emit more advice.
43341
43342 2005-08-29  Bruno Haible  <bruno@clisp.org>
43343         and Stepan Kasal  <kasal@ucw.cz>
43344
43345         * check-module: If more parameters are given, check each of them
43346         separately; add more exceptions, as noted by Jim Meyering.
43347         (check_module): New procedure.
43348         (%exempt_header): Now contains all exceptions.
43349
43350 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
43351
43352         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
43353
43354 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
43355
43356         * lib/iconvme.c: Split iconv_string into iconv_alloc.
43357
43358 2005-08-28  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/gnulib-tool.m4: New file.
43361
43362 2005-08-27  Jim Meyering  <jim@meyering.net>
43363
43364         * modules/unistd-safer (Files): Add pipe-safer.c.
43365         * modules/fcntl-safer (Files): Add creat-safer.c.
43366
43367 2005-08-27  Jim Meyering  <jim@meyering.net>
43368
43369         * m4/stdlib-safer.m4: New file.  From coreutils.
43370         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
43371         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
43372         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
43373         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
43374         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
43375
43376 2005-08-27  Jim Meyering  <jim@meyering.net>
43377
43378         * lib/fopen-safer.c: Merge minor changes from coreutils.
43379         * lib/dup-safer.c: Likewise.
43380         * lib/fd-safer.c: Likewise.
43381
43382         Merge from coreutils.
43383         * lib/stdio--.h: New file.
43384         * lib/stdlib--.h: New file.
43385         * lib/mkstemp-safer.c: New file.
43386
43387         GNU tar needs these.
43388         * lib/pipe-safer.c: New file.
43389         * lib/creat-safer.c: New file.
43390         * lib/fcntl--.h (creat): Define to creat_safer.
43391         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
43392         * lib/unistd--.h (pipe): Define to pipe_safer.
43393         * lib/unistd-safer.h: Declare pipe_safer.
43394
43395 2005-08-26  Simon Josefsson  <jas@extundo.com>
43396
43397         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
43398         Haible <bruno@clisp.org>.
43399
43400 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
43401
43402         * lib/regex_internal.h: Remove all references to
43403         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
43404         or better.
43405         (bitset_not, bitset_merge, bitset_not_merge):
43406         (bitset_mask, re_string_allocate, re_string_construct):
43407         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
43408         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
43409         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
43410         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
43411         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
43412         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
43413         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
43414         (re_acquire_state_context):
43415         Remove unnecessary forward decls.
43416         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
43417         Put __attribute at function definition,
43418         now that the function decl has been removed.
43419         * lib/regex_internal.c (re_string_peek_byte_case):
43420         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
43421         Likewise.
43422
43423 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
43424
43425         * m4/regex.m4: Add AC_PREREQ(2.50).
43426         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
43427
43428 2005-08-25  Simon Josefsson  <jas@extundo.com>
43429
43430         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
43431         __fsetlocking.
43432
43433 2005-08-25  Simon Josefsson  <jas@extundo.com>
43434
43435         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
43436         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
43437         GLIBC specific code.
43438
43439 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43440
43441         Make regex safe for g++.  This fixes one real bug (an "err"
43442         that should have been "*err").  g++ problem reported by
43443         Sam Steingold.
43444         * lib/regex_internal.h (re_calloc): New macro, consistent with
43445         re_malloc etc.  All callers of calloc changed to use re_calloc.
43446         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
43447         not int.  All callers changed.
43448         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
43449         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
43450         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
43451         (find_recover_state): Change "err" to "*err"; this fixes what
43452         appears to be a real bug.
43453         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
43454         versus int.
43455
43456 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43457
43458         * modules/regex (Depends-on): Add malloc, since the code
43459         assumes that !malloc(0) means failure.
43460
43461 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43462
43463         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
43464
43465         alloca modernization/simplification for regex.
43466         * lib/regex.c: Remove portability cruft for alloca.  This no longer
43467         needs to be at the start of the file, and can be moved into
43468         regex_internal.h and simplified.
43469         * lib/regex_internal.h: Include <alloca.h>.
43470         (__libc_use_alloca) [!defined _LIBC]: New macro.
43471         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
43472         now works outside glibc.
43473
43474 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43475
43476         * config/srclist.txt: Add glibc bugs 1241, 1245.
43477
43478 2005-08-25  Jim Meyering  <jim@meyering.net>
43479
43480         * lib/open-safer.c: Include <config.h>.
43481         Otherwise, we'd lose LARGEFILE support in any file using
43482         e.g. "fcntl--.h"
43483
43484 2005-08-25  Bruno Haible  <bruno@clisp.org>
43485
43486         * m4/minmax.m4: Require autoconf 2.52.
43487         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
43488         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
43489         alternatives of translit over the alphabet.
43490         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
43491
43492 2005-08-24  Simon Josefsson  <jas@extundo.com>
43493
43494         * tests/test-getpass.c: New file.
43495
43496 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43497
43498         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
43499         for GNU regex features.
43500
43501 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43502
43503         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
43504         * lib/regex.h (regerror): Likewise.
43505
43506         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
43507         requires this.  (The code never needed it.)
43508
43509         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
43510         All uses of recently-renamed identifiers changed to use the new,
43511         POSIX-compliant names.  The code will build and run just fine
43512         without these changes, but it's better to eat our own dog food
43513         and use the standard-conforming names.
43514
43515         * lib/regex.h: Fix a multitude of POSIX name space violations.
43516         These changes have an effect only for programs that define
43517         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
43518         do not change anything for programs compiled in the normal way.
43519         Also, there is no effect on the ABI.
43520
43521         (_REGEX_SOURCE): New macro.
43522         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
43523         defined and _GNU_SOURCE is not; this fixes a name space violation.
43524
43525         Rename the following macros to obey POSIX requirements.
43526         The old names are still visible as macros if _REGEX_SOURCE is defined.
43527         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
43528         RE_BACKSLASH_ESCAPE_IN_LISTS.
43529         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
43530         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
43531         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
43532         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
43533         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
43534         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
43535         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
43536         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
43537         (REG_INTERVALS): renamed from RE_INTERVALS.
43538         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
43539         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
43540         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
43541         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
43542         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
43543         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
43544         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
43545         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
43546         RE_UNMATCHED_RIGHT_PAREN_ORD.
43547         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
43548         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
43549         (REG_DEBUG): renamed from RE_DEBUG.
43550         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
43551         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
43552         unusual, since we can't clash with the POSIX REG_ICASE.
43553         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
43554         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
43555         (REG_NO_SUB): renamed from RE_NO_SUB.
43556         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
43557         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
43558         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
43559         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
43560         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
43561         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
43562         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
43563         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
43564         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
43565         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
43566         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
43567         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
43568         RE_SYNTAX_POSIX_MINIMAL_BASIC.
43569         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
43570         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
43571         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
43572         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
43573         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
43574         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
43575         (REG_FIXED): Renamed from REGS_FIXED.
43576         (REG_NREGS): Renamed from RE_NREGS.
43577
43578         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
43579         of other REG_* macros, since POSIX says the user is allowed to
43580         #undef these macros selectively.
43581
43582         (reg_errcode_t): Update comment stating what other tables need
43583         to be consistent.
43584
43585         Rename the following enum values to obey POSIX requirements.
43586         The old names are still visible as macros.
43587         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
43588         is not defined, since GNU is supposed to be a superset of POSIX as
43589         much as possible, and since we want reg_errcode_t to be a signed
43590         type for implementation consistency.
43591         (_REG_NOERROR): Renamed from REG_NOERROR.
43592         (_REG_NOMATCH): Renamed from REG_NOMATCH.
43593         (_REG_BADPAT): Renamed from REG_BADPAT.
43594         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
43595         (_REG_ECTYPE): Renamed from REG_ECTYPE.
43596         (_REG_EESCAPE): Renamed from REG_EESCAPE.
43597         (_REG_ESUBREG): Renamed from REG_ESUBREG.
43598         (_REG_EBRACK): Renamed from REG_EBRACK.
43599         (_REG_EPAREN): Renamed from REG_EPAREN.
43600         (_REG_EBRACE): Renamed from REG_EBRACE.
43601         (_REG_BADBR): Renamed from REG_BADBR.
43602         (_REG_ERANGE): Renamed from REG_ERANGE.
43603         (_REG_ESPACE): Renamed from REG_ESPACE.
43604         (_REG_BADRPT): Renamed from REG_BADRPT.
43605         (_REG_EEND): Renamed from REG_EEND.
43606         (_REG_ESIZE): Renamed from REG_ESIZE.
43607         (_REG_ERPAREN): Renamed from REG_ERPAREN.
43608         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
43609         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
43610         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
43611         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
43612
43613         (_REG_RE_NAME, _REG_RM_NAME): New macros.
43614         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
43615         changed.  But support the old name if the new one is not defined
43616         and if _REGEX_SOURCE.
43617
43618         Change the following member names in struct re_pattern_buffer.
43619         The old names are still supported if !_REGEX_SOURCE.
43620         The new names are always supported, regardless of _REGEX_SOURCE.
43621         (re_buffer): Renamed from buffer.
43622         (re_allocated): Renamed from allocated.
43623         (re_used): Renamed from used.
43624         (re_syntax): Renamed from syntax.
43625         (re_fastmap): Renamed from fastmap.
43626         (re_translate): Renamed from translate.
43627         (re_can_be_null): Renamed from can_be_null.
43628         (re_regs_allocated): Renamed from regs_allocated.
43629         (re_fastmap_accurate): Renamed from fastmap_accurate.
43630         (re_no_sub): Renamed from no_sub.
43631         (re_not_bol): Renamed from not_bol.
43632         (re_not_eol): Renamed from not_eol.
43633         (re_newline_anchor): Renamed from newline_anchor.
43634
43635         Change the following member names in struct re_registers.
43636         The old names are still supported if !_REGEX_SOURCE.
43637         The new names are always supported, regardless of _REGEX_SOURCE.
43638         (rm_num_regs): Renamed from num_regs.
43639         (rm_start): Renamed from start.
43640         (rm_end): Renamed from end.
43641
43642         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
43643         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
43644         Prepend __ to parameter names.
43645
43646         Undo yesterday's changes.
43647
43648 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43649
43650         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
43651         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
43652         lib/regex.c.
43653
43654 2005-08-24  Jim Meyering  <jim@meyering.net>
43655
43656         Sync from coreutils.
43657         * m4/fcntl-safer.m4: New file.
43658
43659         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
43660         and object files for this module.
43661
43662 2005-08-24  Jim Meyering  <jim@meyering.net>
43663
43664         Sync from coreutils.
43665         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
43666
43667 2005-08-24  Jim Meyering  <jim@meyering.net>
43668
43669         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
43670         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
43671
43672 2005-08-24  Jim Meyering  <jim@meyering.net>
43673
43674         * modules/fcntl-safer: New module.
43675         * modules/fts (Depends-on): Add fcntl-safer.
43676         * MODULES.html.sh (File descriptor based Input/Output):
43677         Add fcntl-safer.
43678
43679 2005-08-24  Bruno Haible  <bruno@clisp.org>
43680
43681         Support for unit test modules.
43682         * modules/README: Mention tests modules.
43683         * modules/TEMPLATE-TESTS: New file.
43684         * gnulib-tool: New options --extract-tests-module, --with-tests and
43685         --tests-base (unused for the moment).
43686         (testsbase, inctests): New variables.
43687         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
43688         (func_verify_module): Exclude TEMPLATE-TESTS.
43689         (func_verify_nontests_module, func_verify_tests_module): New functions.
43690         (func_get_dependencies): Add implicit dependency for tests modules.
43691         (func_get_tests_module): New function.
43692         (func_modules_transitive_closure): When --with-tests was specified,
43693         include the unit tests as well, unless explicitly avoided.
43694         (func_emit_lib_Makefile_am): Ignore the tests modules here.
43695         (func_emit_tests_Makefile_am): New function.
43696         (func_create_testdir): When --with-tests was specified, emit a
43697         tests/ directory.
43698         * MODULES.html.sh (Future developments): Update.
43699
43700 2005-08-24  Bruno Haible  <bruno@clisp.org>
43701
43702         * modules/tls-tests: New file.
43703         * tests/test-tls.c: New file, from GNU gettext.
43704
43705 2005-08-24  Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/lock-tests: New file.
43708         * tests/test-lock.c: New file, from GNU gettext.
43709
43710 2005-08-24  Bruno Haible  <bruno@clisp.org>
43711
43712         * lib/lock.h: Add multiple inclusion guard.
43713         * lib/tls.h: Add multiple inclusion guard.
43714
43715 2005-08-24  Bruno Haible  <bruno@clisp.org>
43716
43717         * gnulib-tool: Add support for the --aux-dir option to
43718         --create-testdir, --create-megatestdir, --test, --megatest.
43719         (func_create_testdir, func_create_megatestdir): Optionally emit a
43720         AC_CONFIG_AUX_DIR directive.
43721         (create-testdir, create-megatestdir, test, megatest): Provide a
43722         default value for $auxdir.
43723
43724 2005-08-24  Bruno Haible  <bruno@clisp.org>
43725
43726         * gnulib-tool (import): Use compound statement instead of subshell
43727         where possible.
43728
43729 2005-08-24  Bruno Haible  <bruno@clisp.org>
43730
43731         * gnulib-tool (import): Change --aux-dir default to "build-aux".
43732
43733 2005-08-24  Bruno Haible  <bruno@clisp.org>
43734
43735         * gnulib-tool (func_version): Update.
43736
43737 2005-08-24  Bruno Haible  <bruno@clisp.org>
43738
43739         * gnulib-tool (func_import, func_create_testdir,
43740         func_create_megatestdir): Quote all autoconf macro arguments.
43741
43742 2005-08-24  Bruno Haible  <bruno@clisp.org>
43743
43744         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
43745         option --force, because --force causes the aclocal.m4 of each
43746         subdirectory to be newer than the corresponding config.h.in.
43747
43748 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43749
43750         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
43751         All contents moved to gl_REGEX.
43752         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
43753         assume that it does.
43754
43755 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43756
43757         * lib/regex.h (REG_NOSYS)
43758         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
43759         Define, since POSIX requires it as of 2001.
43760         (_REG_ENOSYS)
43761         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
43762         New private symbol, used to keep the enum signed in all cases.
43763         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
43764         Youngman in
43765         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
43766
43767         * lib/regex_internal.c (re_string_skip_chars, register_state):
43768         (calc_state_hash):
43769         Remove forward decls; no longer needed now that we use prototypes.
43770         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
43771         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
43772         (clean_state_log_if_needed): Likewise.
43773
43774 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43775
43776         * config/srclist.txt: Add glibc bugs 1231-1233.
43777
43778 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43779
43780         Fix problems reported by Sam Steingold in
43781         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
43782         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
43783         assumed that reg_errcode_t is a signed type, which is not
43784         necessarily true if _XOPEN_SOURCE is not defined.
43785         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
43786         since some compilers warn about it otherwise.
43787
43788 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43789
43790         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
43791         (init_word_char, create_initial_state, duplicate_node_closure):
43792         (fetch_token, peek_token_bracket, build_range_exp):
43793         (build_collating_symbol): Remove forward decls; no longer needed
43794         now that we use prototypes.
43795
43796         * lib/regcomp.c:
43797         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
43798         (re_compile_fastmap_iter, regcomp, regerror, regfree):
43799         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
43800         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
43801         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
43802         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
43803         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
43804         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
43805         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
43806         (build_range_exp, build_collating_symbol, parse_bracket_exp):
43807         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
43808         (build_charclass, build_charclass_op, fetch_number, create_tree):
43809         (create_token_tree, mark_opt_subexp, duplicate_tree):
43810         Use prototypes rather than old-style definitions.
43811
43812         * lib/regex_internal.c:
43813         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
43814         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
43815         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
43816         (re_string_reconstruct, re_string_peek_byte_case):
43817         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
43818         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
43819         (re_node_set_init_copy, re_node_set_add_intersect):
43820         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
43821         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
43822         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
43823         (re_acquire_state, re_acquire_state_context, register_state):
43824         (create_ci_newstate, create_cd_newstate, free_state):
43825         Likewise.
43826         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
43827         re_search_2):
43828         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
43829         (re_search_internal, prune_impossible_nodes):
43830         (acquire_init_state_context, check_matching, static):
43831         (check_halt_node_context, check_halt_state_context, proceed_next_node):
43832         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
43833         (update_regs, sift_states_backward, build_sifted_states):
43834         (clean_state_log_if_needed, merge_state_array):
43835         (update_cur_sifted_state, add_epsilon_src_nodes):
43836         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
43837         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
43838         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
43839         (find_recover_state, check_subexp_matching_top, transit_state_mb):
43840         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
43841         (check_arrival, check_arrival_add_next_nodes):
43842         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
43843         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
43844         (check_node_accept_bytes, check_node_accept, extend_buffers):
43845         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
43846         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
43847         (sift_ctx_init):
43848         Likewise.
43849
43850         * lib/regex_internal.h:
43851         (re_string_allocate, re_string_construct, re_string_reconstruct):
43852         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
43853         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
43854         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
43855         (re_string_context_at, re_string_peek_byte_case):
43856         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
43857         is defined, since we now use prototypes always.
43858
43859         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
43860         C89 or better.  All uses removed.
43861
43862 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43863
43864         * config/srclist.txt: Add glibc bugs 1220-1227.
43865
43866 2005-08-20  Jim Meyering  <jim@meyering.net>
43867
43868         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
43869         of unused local, dfa.
43870
43871 2005-08-20  Bruno Haible  <bruno@clisp.org>
43872
43873         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
43874
43875 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43876
43877         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
43878         (re_node_set_insert_last, re_dfa_add_node):
43879         Rename local variables to avoid GCC shadowing warnings.
43880
43881 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43882
43883         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
43884         [defined lint]: Suppress bogus uninitialized-variable warnings.
43885
43886         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
43887         and let the caller return REG_ESPACE if out of space.  This
43888         removes an uninitialied-variable warning with GCC 4.0.1, and also
43889         avoids taking the address of a local variable.  All callers
43890         changed.
43891
43892 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43893
43894         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
43895         $LIBCSRC/posix/regexec.c.
43896         Add glibc bug 1217 for regcomp.c.
43897
43898 2005-08-19  Jim Meyering  <jim@meyering.net>
43899
43900         * lib/regexec.c (proceed_next_node): Redo local variables to
43901         avoid GCC shadowing warnings.
43902
43903 2005-08-18  Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/strstr.c (strstr): Fix return value in multibyte case.
43906         * lib/strcasestr.c (strcasestr): Likewise.
43907
43908 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43909
43910         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
43911
43912 2005-08-17  Jim Meyering  <jim@meyering.net>
43913
43914         Make the %s format (seconds since the epoch) work for a negative
43915         number and when used with a zero-padded field width, e.g. %015s.
43916
43917         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
43918         label so that it precedes the code to set `digits'.  Otherwise,
43919         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
43920         print `00-22'.  Now, it prints `-0022', as it should.
43921
43922 2005-08-17  Bruno Haible  <bruno@clisp.org>
43923
43924         * modules/strstr (Files): Add m4/mbrtowc.m4.
43925         (Depends-on): Add mbuiter.
43926
43927 2005-08-17  Bruno Haible  <bruno@clisp.org>
43928
43929         * modules/strcasestr: New file.
43930         * MODULES.html.sh (String handling, based on ANSI C 89): Add
43931         strcasestr.
43932
43933 2005-08-17  Bruno Haible  <bruno@clisp.org>
43934
43935         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
43936
43937 2005-08-17  Bruno Haible  <bruno@clisp.org>
43938
43939         * modules/mbuiter: New file.
43940         * MODULES.html.sh (Extended multibyte and wide character utilities):
43941         Add mbuiter.
43942
43943 2005-08-17  Bruno Haible  <bruno@clisp.org>
43944
43945         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
43946         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
43947
43948 2005-08-17  Bruno Haible  <bruno@clisp.org>
43949
43950         * m4/strcasestr.m4: New file.
43951
43952 2005-08-17  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
43955         * lib/strstr.c: Completely rewritten, with multibyte locale support.
43956
43957 2005-08-17  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/strcasestr.h: New file.
43960         * lib/strcasestr.c: New file.
43961
43962 2005-08-17  Bruno Haible  <bruno@clisp.org>
43963
43964         * lib/strcasecmp.c: Use mbuiter.h.
43965
43966 2005-08-17  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/mbuiter.h: New file.
43969
43970 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43971
43972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
43973         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
43974         and gl_GETOPT are both invoked via different paths (as happens
43975         with GNU tar CVS because it uses both argp and getopt), the former
43976         wins.
43977
43978 2005-08-16  Bruno Haible  <bruno@clisp.org>
43979
43980         * modules/tls: New file.
43981         * MODULES.html.sh (Multithreading): Add tls.
43982
43983 2005-08-16  Bruno Haible  <bruno@clisp.org>
43984
43985         * modules/strnlen1: New file.
43986         * MODULES.html.sh (String handling): Add strnlen1.
43987
43988 2005-08-16  Bruno Haible  <bruno@clisp.org>
43989
43990         * modules/strcase (Files): Add m4/mbrtowc.m4.
43991         (Depends-on): Add strnlen1, mbchar.
43992
43993 2005-08-16  Bruno Haible  <bruno@clisp.org>
43994
43995         * modules/mbiter: New file.
43996         * MODULES.html.sh (Extended multibyte and wide character utilities):
43997         Add mbiter.
43998
43999 2005-08-16  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/mbfile: New file.
44002         * MODULES.html.sh (Extended multibyte and wide character utilities):
44003         Add mbfile.
44004
44005 2005-08-16  Bruno Haible  <bruno@clisp.org>
44006
44007         * modules/mbchar: New file.
44008         * MODULES.html.sh (Extended multibyte and wide character utilities):
44009         New section.
44010
44011 2005-08-16  Bruno Haible  <bruno@clisp.org>
44012
44013         * m4/tls.m4: New file, from GNU gettext.
44014
44015 2005-08-16  Bruno Haible  <bruno@clisp.org>
44016
44017         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
44018         always.
44019         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
44020
44021 2005-08-16  Bruno Haible  <bruno@clisp.org>
44022
44023         * m4/mbiter.m4: New file.
44024
44025 2005-08-16  Bruno Haible  <bruno@clisp.org>
44026
44027         * m4/mbfile.m4: New file.
44028
44029 2005-08-16  Bruno Haible  <bruno@clisp.org>
44030
44031         * m4/mbchar.m4: New file.
44032
44033 2005-08-16  Bruno Haible  <bruno@clisp.org>
44034
44035         * lib/tls.h: New file, from GNU gettext.
44036         * lib/tls.c: New file, from GNU gettext.
44037
44038 2005-08-16  Bruno Haible  <bruno@clisp.org>
44039
44040         * lib/strnlen1.h: New file.
44041         * lib/strnlen1.c: New file.
44042
44043 2005-08-16  Bruno Haible  <bruno@clisp.org>
44044
44045         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
44046         (mbi_init): Update.
44047         (mbi_avail, mbi_advance): Let the iteration end before the terminating
44048         NUL byte, not after it.
44049
44050 2005-08-16  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/strcase.h (strcasecmp): Add note in comments.
44053         * lib/strncasecmp.c: Use code from strcasecmp.c.
44054         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
44055         (strcasecmp): Work correctly in multibyte locales.
44056
44057 2005-08-16  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/mbiter.h: New file.
44060
44061 2005-08-16  Bruno Haible  <bruno@clisp.org>
44062
44063         * lib/mbfile.h: New file.
44064
44065 2005-08-16  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/mbchar.h: New file.
44068         * lib/mbchar.c: New file.
44069
44070 2005-08-16  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
44073         the valid ones. Makes the comparison operations transitive:
44074         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
44075         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
44076
44077 2005-08-15  Simon Josefsson  <jas@extundo.com>
44078
44079         * modules/ssize_t (License): Change to 'unlimited'.
44080
44081         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
44082
44083 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
44086         Add comments for each pending glibc patch.
44087
44088 2005-08-15  Bruno Haible  <bruno@clisp.org>
44089
44090         * lib/regex.h (__restrict_arr): Don't define to __restrict if
44091         __cplusplus is defined.
44092
44093 2005-08-14  Jim Meyering  <jim@meyering.net>
44094
44095         Sync from coreutils.
44096
44097         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
44098         Use the hash-table-based cycle-detection code not just when
44099         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
44100         Reported by James Youngman in
44101         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
44102         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
44103         FTS_TIGHT_CYCLE_CHECK.
44104         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
44105         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
44106         once again.
44107         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
44108         * lib/fts.c (fd_safer): Remove decl.
44109         Include fcntl--.h rather than unistd-safer.h
44110         (fts_safe_changedir): Don't call fd_safer; no longer needed
44111         now that we include fcntl--.h.
44112
44113 2005-08-12  Simon Josefsson  <jas@extundo.com>
44114
44115         * modules/getndelim2: Use ssize_t module.
44116         * modules/getnline: Likewise.
44117         * modules/safe-read: Likewise.
44118         * modules/xreadlink: Likewise.
44119
44120         * modules/ssize_t: New file.
44121
44122 2005-08-12  Simon Josefsson  <jas@extundo.com>
44123
44124         * m4/readline.m4: Look for termcap, curses or ncurses if required.
44125
44126 2005-08-12  Simon Josefsson  <jas@extundo.com>
44127
44128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44129         ssize_t.
44130
44131 2005-08-12  Simon Josefsson  <jas@extundo.com>
44132
44133         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
44134         readline, getdelim and check_version.
44135         (Support for systems lacking ISO C 99: Sizes of integer types):
44136         Add size_max.
44137
44138 2005-08-12  Bruno Haible  <bruno@clisp.org>
44139
44140         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
44141
44142 2005-08-11  Simon Josefsson  <jas@extundo.com>
44143
44144         * modules/readline: New file.
44145
44146         * modules/strnlen (Files): Add strnlen.h.
44147
44148 2005-08-11  Simon Josefsson  <jas@extundo.com>
44149
44150         * m4/readline.m4: New file.
44151
44152 2005-08-11  Simon Josefsson  <jas@extundo.com>
44153
44154         * lib/readline.h, readline.c: New file.
44155
44156 2005-08-11  Simon Josefsson  <jas@extundo.com>
44157
44158         * doc/gnulib.texi (Initial import, Finishing touches): Mention
44159         gl_AVOID.
44160
44161 2005-08-11  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/strnlen.h (strnlen): Change parameter name to match comment.
44164
44165 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
44166
44167         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
44168
44169 2005-08-10  Simon Josefsson  <jas@extundo.com>
44170
44171         * tests/test-iconvme.c: New file.
44172
44173 2005-08-10  Simon Josefsson  <jas@extundo.com>
44174
44175         * m4/strnlen.m4: New file.
44176
44177         * m4/strndup.m4: Don't check for strnlen declaration, done in
44178         strnlen.m4.
44179
44180 2005-08-10  Simon Josefsson  <jas@extundo.com>
44181
44182         * lib/strndup.c: Use strnlen.h.
44183
44184         * lib/strnlen.h: New file.
44185
44186 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44187
44188         * README: Typos.
44189
44190 2005-08-02  Simon Josefsson  <jas@extundo.com>
44191
44192         * modules/readline: New file.
44193
44194 2005-08-02  Simon Josefsson  <jas@extundo.com>
44195
44196         * modules/getdelim: New file.
44197
44198         * modules/getline: Rewrite, don't use getndelim2.
44199
44200 2005-08-02  Simon Josefsson  <jas@extundo.com>
44201
44202         * m4/getline.m4: Separate out getdelim stuff into separate module.
44203
44204         * m4/getdelim.m4: New file.
44205
44206 2005-08-02  Simon Josefsson  <jas@extundo.com>
44207
44208         * lib/getline.h, getline.c: Rewrite.
44209
44210         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
44211
44212 2005-07-31  Bruno Haible  <bruno@clisp.org>
44213
44214         * lib/lock.h (gl_lock_initializer): New macro.
44215         (gl_lock_define_initialized): Use it.
44216         (gl_rwlock_initializer): New macro.
44217         (gl_rwlock_define_initialized): Use it.
44218         (gl_recursive_lock_initializer): New macro.
44219         (gl_recursive_lock_define_initialized): Use it.
44220
44221 2005-07-30  Karl Berry  <karl@gnu.org>
44222
44223         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
44224         Report from Ben Pfaff, regarding getopt.
44225
44226 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
44227
44228         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
44229         normal way.
44230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
44231         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
44232         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
44233         (gl_GETOPT): Use the new macros.  Most of the implementation
44234         is moved to the new macros.  This is for programs like Emacs
44235         that don't want all the functionality of gl_GETOPT.
44236
44237 2005-07-26  Bruno Haible  <bruno@clisp.org>
44238
44239         * m4/lock.m4: Update from GNU gettext.
44240
44241 2005-07-26  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/lock.h: Update from GNU gettext.
44244         * lib/lock.c: Update from GNU gettext.
44245
44246 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44247
44248         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
44249         obsolescent AC_TRY_RUN.  Include the default includes files, for
44250         'exit'.
44251
44252 2005-07-24  Bruno Haible  <bruno@clisp.org>
44253
44254         * modules/visibility: New file.
44255         * MODULES.html.sh (Misc): Add visibility.
44256
44257 2005-07-24  Bruno Haible  <bruno@clisp.org>
44258
44259         * m4/visibility.m4: New file.
44260
44261 2005-07-24  Bruno Haible  <bruno@clisp.org>
44262
44263         * doc/visibility.texi: New file.
44264
44265 2005-07-22  Bruno Haible  <bruno@clisp.org>
44266
44267         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
44268         $(ALLOCA_H), redundant through BUILT_SOURCES.
44269         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
44270         redundant through BUILT_SOURCES.
44271         * modules/byteswap (Makefile.am): Remove explicit dependency on
44272         $(BYTESWAP_H), redundant through BUILT_SOURCES.
44273         * modules/fnmatch (Makefile.am): Remove explicit dependency on
44274         $(FNMATCH_H), redundant through BUILT_SOURCES.
44275         * modules/getopt (Makefile.am): Remove explicit dependency on
44276         $(GETOPT_H), redundant through BUILT_SOURCES.
44277         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
44278         redundant through BUILT_SOURCES.
44279         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
44280         redundant through BUILT_SOURCES.
44281         * modules/stdbool (Makefile.am): Remove explicit dependency on
44282         $(STDBOOL_H), redundant through BUILT_SOURCES.
44283         * modules/stdint (Makefile.am): Remove explicit dependency on
44284         $(STDINT_H), redundant through BUILT_SOURCES.
44285         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
44286         Remove explicit dependency on $(SYSEXITS_H).
44287         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
44288
44289 2005-07-18  Simon Josefsson  <jas@extundo.com>
44290
44291         * lib/check-version.c (check_version): Accept identical versions too.
44292
44293 2005-07-18  Bruno Haible  <bruno@clisp.org>
44294
44295         * modules/lock: New file.
44296         * MODULES.html.sh (Multithreading): New section.
44297
44298 2005-07-18  Bruno Haible  <bruno@clisp.org>
44299
44300         * m4/lock.m4: New file, from GNU gettext.
44301
44302 2005-07-18  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/lock.h: New file, from GNU gettext.
44305         * lib/lock.c: New file, from GNU gettext.
44306
44307 2005-07-18  Bruno Haible  <bruno@clisp.org>
44308
44309         * lib/lock.h (gl_once_t): New type.
44310         (gl_once_define, gl_once): New macros.
44311         * lib/lock.c (fresh_once): New variable.
44312         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
44313         functions.
44314
44315 2005-07-16  Simon Josefsson  <jas@extundo.com>
44316
44317         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
44318         workaround, suggested by Bruno.
44319
44320 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
44321
44322         * modules/xalloc (Depends-on): Add xalloc-die.
44323         * modules/xvasprintf (Depends-on): Add xalloc-die.
44324
44325 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
44326
44327         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
44328         with a minor change.
44329
44330 2005-07-15  Bruno Haible  <bruno@clisp.org>
44331
44332         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
44333         When using lib/poll.c, define poll as rpl_poll.
44334
44335 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
44336
44337         * modules/argp (Depends-on): Remove unlocked-io.
44338
44339 2005-07-14  Derek Price  <derek@ximbiot.com>
44340
44341         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
44342         for glob symlink bug.
44343
44344 2005-07-14  Bruno Haible  <bruno@clisp.org>
44345
44346         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
44347         Instead, test for *_unlocked function declarations directly.
44348
44349 2005-07-11  Simon Josefsson  <jas@extundo.com>
44350
44351         * modules/size_max: New file.
44352
44353         * modules/xsize: Depend on size_max module for size_max.m4.
44354
44355 2005-07-11  Simon Josefsson  <jas@extundo.com>
44356
44357         * lib/size_max.h: New file.
44358
44359 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
44360
44361         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
44362         copyright symbol and the year.
44363         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
44364         (version_etc_va): Use parameterized copyright notice.
44365         Reword to conform to the current GNU coding standards.
44366
44367 2005-07-11  Karl Berry  <karl@gnu.org>
44368
44369         * doc/gnulib.texi (Quoting): new node.
44370         (Initial import): more info, from Patrice.
44371
44372 2005-07-11  Bruno Haible  <bruno@clisp.org>
44373
44374         * gnulib-tool (func_usage): Document option --avoid.
44375         (Command line options): Handle --avoid.
44376         (func_acceptable): New function.
44377         (func_modules_transitive_closure): Use it.
44378
44379 2005-07-11  Bruno Haible  <bruno@clisp.org>
44380
44381         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
44382         Reported by Jim Meyering.
44383
44384 2005-07-10  Bruno Haible  <bruno@clisp.org>
44385
44386         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
44387         Needed when size_t is smaller than 'unsigned int'.
44388         Reported by Paul Eggert.
44389
44390 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44391
44392         * modules/argp (Depends-on): Add unlocked-io
44393
44394 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44395
44396         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
44397         block of defines.
44398
44399 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44400
44401         * config/srclist.txt: Comment out regcomp.c, since we have a porting
44402         fix now.
44403
44404 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
44405         and Paul Eggert  <eggert@cs.ucla.edu>
44406
44407         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
44408         in wint_t, not wchar_t.  Remove now-unnecessary cast.
44409
44410 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
44411
44412         * modules/regex (Files): Add lib/regex_internal.c,
44413         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
44414         (Depends-on): Add extensions.
44415         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
44416
44417 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
44418
44419         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
44420         pathconf.
44421         * m4/same.m4 (gl_SAME): Likewise.
44422         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
44423
44424         * m4/regex.m4: Adjust to new libc regex implementation.
44425         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
44426         all the .c and .h parts of (the new) regex.
44427         Quote the m4 stuff better.
44428         Check for RE_ICASE bug of old gnulib.
44429         Check for REG_STARTEND of recent libc.
44430         Rename local variables from jm_* to gl_*.
44431         Quote operand of "test -f".
44432         Say "recent enough" version of libc, not "version 2".
44433         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
44434         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
44435         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
44436         Remove check for btowc, isascii.
44437         Require AM_LANGINFO_CODESET.
44438
44439 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
44440
44441         * lib/regex.c, regex.h: Sync from libc.
44442         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
44443         * lib/regexec.c:
44444         New files, synced from libc, except that regex_internal.h
44445         currently has a small porting fix.
44446
44447 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
44450         regex_internal.c, regexec.c.
44451         Add regex_internal.h too, but as a comment, since the libc version
44452         is currently broken in gnulib mode.
44453
44454 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         Support programs like Emacs that use gnulib but not gettext.
44457         * MODULES.html.sh (Internationalization functions): Add gettext-h.
44458         * modules/gettext-h: New file.
44459         * modules/gettext (Files): Remove lib/gettext.h.
44460         (Depends-on): Add gettext-h.
44461         (Makefile.am): Remove lib_SOURCES.
44462         * modules/argmatch, modules/c-stack, modules/closeout:
44463         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
44464         * modules/execute, modules/file-type, modules/getaddrinfo:
44465         * modules/getopt, modules/human, modules/javacomp:
44466         * modules/javaexec, modules/mkdir-p, modules/obstack:
44467         * modules/openat, modules/pagealign_alloc, modules/pipe:
44468         * modules/quotearg, modules/regex, modules/rpmatch:
44469         * modules/unicodeio, modules/userspec, modules/version-etc:
44470         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
44471         * modules/xsetenv:
44472         Depend on gettext-h, not gettext.
44473
44474 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44475
44476         * gnulib-tool (func_import): Add support for 'public domain' license.
44477         * modules/alloca, modules/atexit, modules/memmove:
44478         Now public domain, not GPL.
44479         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
44480         * modules/realloc, modules/strerror, modules/strtod:
44481         Now LGPL, not GPL.
44482
44483 2005-07-05  Bruno Haible  <bruno@clisp.org>
44484
44485         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
44486         autoconf CVS. Needed for mingw.
44487
44488 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44489
44490         Remove the dependency of the strftime module on the tzset module.
44491         * modules/strftime (Depends-on): Remove dependency on tzset.
44492
44493 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44494
44495         Remove the dependency of the strftime module on the tzset module.
44496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
44497         gl_FUNC_TZSET_CLOBBER.
44498
44499 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44500
44501         Remove the dependency of the strftime module on the tzset module.
44502         * lib/strftime.c (my_strftime)
44503         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
44504         Copy the input structure, to work around some of the bug with
44505         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
44506         Solaris releases, you should also use the tzset module, but we won't
44507         require it as a dependency any more since we don't want LGPLed code
44508         to depend on GPLed code.
44509
44510 2005-07-02  Jim Meyering  <jim@meyering.net>
44511
44512         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
44513         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
44514         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
44515         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
44516
44517 2005-07-02  Jim Meyering  <jim@meyering.net>
44518
44519         * lib/backupfile.c (backup_args): Change a `0' to NULL.
44520
44521 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44522
44523         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
44524         declares only 'struct timespec;' (!).
44525
44526 2005-07-01  Jim Meyering  <jim@meyering.net>
44527
44528         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
44529         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
44530         * lib/save-cwd.c, tempname.c:
44531         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
44532         and don't include <sys/file.h>).
44533
44534 2005-06-29  Jim Meyering  <jim@meyering.net>
44535
44536         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
44537         type name.  Use the variable name instead.
44538         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
44539         Likewise.
44540
44541 2005-06-28  Simon Josefsson  <jas@extundo.com>
44542
44543         * modules/check-version (Files): Add check-version.m4.
44544
44545 2005-06-28  Simon Josefsson  <jas@extundo.com>
44546
44547         * m4/check-version.m4: New file, suggested by Jim Meyering
44548         <jim@meyering.net>.
44549
44550 2005-06-28  Simon Josefsson  <jas@extundo.com>
44551
44552         * lib/check-version.h, lib/check-version.c: New files.
44553
44554 2005-06-28  Simon Josefsson  <jas@extundo.com>
44555
44556         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
44557         collision with global variable.  Better indentation.  Don't
44558         increment buffer pointer beyond buffer end.  Based on comments
44559         from Paul Eggert <eggert@cs.ucla.edu>.
44560
44561         * lib/base64.h: Indent.
44562
44563 2005-06-28  Simon Josefsson  <jas@extundo.com>
44564
44565         * doc/gnulib.texi (Library version handling): New section.
44566
44567 2005-06-28  Jim Meyering  <jim@meyering.net>
44568
44569         * check-module (find_included_lib_files): Hard-code another
44570         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
44571         but modules/fts-lgpl (correctly) does not list those files.
44572
44573         * modules/canonicalize (Files): Add lib/pathmax.h.
44574
44575 2005-06-25  Simon Josefsson  <jas@extundo.com>
44576
44577         * modules/check-version: New file.
44578
44579 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
44580
44581         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
44582         initializer of struct addrinfo, as an indication that we don't
44583         care how many members the structure has.
44584
44585 2005-06-24  Derek Price  <derek@ximbiot.com>
44586         and Bruno Haible  <bruno@clisp.org>
44587
44588         Remove stat module & update lstat.
44589         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
44590         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44591         * m4/stat.m4: Remove this file.
44592
44593 2005-06-24  Derek Price  <derek@ximbiot.com>
44594         and Bruno Haible  <bruno@clisp.org>
44595
44596         Remove stat module & update lstat.
44597         * lib/stat.c: Remove this file...
44598         (slash_aware_lstat): ...moving this content and its support...
44599         * lib/lstat.c (rpl_lstat): ...into here.
44600         * lib/lstat.h: New file.
44601
44602 2005-06-24  Derek Price  <derek@ximbiot.com>
44603         and Bruno Haible  <bruno@clisp.org>
44604
44605         Remove stat module & update lstat.
44606         * config/srclist.txt (libc sources): Remove stat.
44607
44608 2005-06-24  Derek Price  <derek@ximbiot.com>
44609         and Bruno Haible  <bruno@clisp.org>
44610
44611         Remove stat module & update lstat.
44612         * MODULES.html.sh (stat): Remove.
44613         * MODULES.html: Regenerated.
44614         * modules/lstat (Description): Correct function name.
44615         (Files): Add "lstat.h".
44616         (Depends-on): Remove stat, add xalloc, stat-macros.
44617         * modules/stat: Remove this file.
44618         (Include): Add "lstat.h", remove <sys/stat.h>.
44619
44620 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44621
44622         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
44623         (ranged_convert): Don't save conversion in a temporary struct.
44624         This causes a warning with GCC 4.0.0, and anyway in the typical
44625         case it's not worth the extra 100 bytes or so of code.
44626         (ranged_convert, __mktime_internal): When calling a function via a
44627         pointer P, use P () rather than (*P) (), as we now assume C89 or
44628         better.
44629
44630 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44631
44632         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
44633         "who -r" failed to give output.  Problem reported by Tim Waugh.
44634
44635         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
44636         (xcalloc): Use it to avoid needless tests.
44637         Problem reported by Jim Meyering.
44638
44639 2005-06-20  Derek Price  <derek@ximbiot.com>
44640
44641         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
44642         unnecessary for Autoconfs > 2.59c.
44643
44644 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44645
44646         * lib/argp.h (__option_is_short): Check upper limit of
44647         __key. Isprint() requires its argument to have the value
44648         of an unsigned char or EOF.
44649
44650 2005-06-16  Jim Meyering  <jim@meyering.net>
44651
44652         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
44653         when either N or S is zero.
44654
44655 2005-06-16  Derek Price  <derek@ximbiot.com>
44656
44657         * m4/bison.m4: Declare YACC & YFLAGS precious.
44658
44659 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
44662         multibyte string or pattern, fall back on unibyte matching.
44663         Problem reported by James Youngman.
44664
44665 2005-06-08  Bruno Haible  <bruno@clisp.org>
44666
44667         * modules/csharpcomp: New file.
44668         * MODULES.html.sh (C#): Add csharpcomp.
44669
44670 2005-06-08  Bruno Haible  <bruno@clisp.org>
44671
44672         * m4/csharpcomp.m4: New file, from GNU gettext.
44673
44674 2005-06-08  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/csharpcomp.h: New file, from GNU gettext.
44677         * lib/csharpcomp.c: New file, from GNU gettext.
44678         * lib/csharpcomp.sh.in: New file, from GNU gettext.
44679
44680 2005-06-08  Bruno Haible  <bruno@clisp.org>
44681
44682         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
44683         warning on mingw.
44684
44685 2005-06-07  Derek Price  <derek@ximbiot.com>
44686
44687         Sync from CVS.
44688         * lib/glob_.h: Indent nested #ifdef.
44689
44690 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44691
44692         Sync from coreutils.
44693         Use "file name" when talking about file names, instead of "filename"
44694         or "path", as per the GNU coding standards.
44695         * lib/mkdir-p.c: Renamed from makepath.c.
44696         (make_dir_parents): Renamed from make_path.  All callers changed.
44697         * lib/mkdir-p.h: Likewise.  All includers changed.
44698         * lib/filenamecat.c: Renamed from path-concat.c.
44699         (file_name_concat): Renamed from path_concat.  All callers changed.
44700         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
44701         * lib/filenamecat.h: Likewise.  All includers changed.
44702         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
44703         in comments or local variable names.
44704         * lib/basename.c: Likewise.
44705         * lib/canonicalize.c, canonicalize.h: Likewise.
44706         * lib/dirname.c, dirname.h: Likewise.
44707         * lib/euidaccess.c: Likewise.
44708         * lib/exclude.c: Likewise
44709         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
44710         * lib/fsusage.c, fsuage.h: Likewise.
44711         * lib/fts.c, fts_.h: Likewise.
44712         * lib/getcwd.c: Likewise.
44713         * lib/getloadavg.c: Likewise.
44714         * lib/mkstemp.c: Likewise.
44715         * lib/mountlist.c, mountlist.h: Likewise.
44716         * lib/openat.c, openat.h: Likewise.
44717         * lib/readlink-stub.c: Likewise.
44718         * lib/readutmp.c, readutmp.h: Likewise.
44719         * lib/rename.c: Likewise.
44720         * lib/rmdir.c: Likewise.
44721         * lib/same.c: Likewise.
44722         * lib/savedir.c: Likewise.
44723         * lib/stripslash.c: Likewise.
44724         * lib/tempname.c: Likewise.
44725         * lib/xreadlink.c: Likewise.
44726         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
44727         All uses changed.
44728         * lib/exclude.h: Likewise.
44729
44730         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
44731         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
44732         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
44733         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
44734         * lib/pathmax.h: Include <limits.h> unconditionally, since other
44735         files have been getting away with it for years (MORE/BSD 4.3
44736         is extinct now).
44737         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
44738         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
44739
44740         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
44741         Define to 256, not 255, as per modern POSIX.
44742
44743 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44744
44745         Sync from coreutils.
44746         Use "file name" when talking about file names, instead of "filename"
44747         or "path", as per the GNU coding standards.
44748         * MODULES.html.sh: mkdir-p renamed from makepath.
44749         filenamecat renamed from path-concat.
44750         * modules/filenamecat: Renamed from modules/path-concat.
44751         (Files): filenamecat.h and filenamecat.c renamed from
44752         path-concat.h and path-concat.c.
44753         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
44754         (Include): filenamecat.h, not path-concat.h.
44755         * modules/mkdir-p: Renamed from modules/makepath.
44756         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
44757         makepath.c.
44758         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
44759         (Include): mkdir-p.h, not makepath.h.
44760
44761 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44762
44763         Sync from coreutils.
44764         * m4/mkdir-p.m4: Renamed from makepath.m4.
44765         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
44766         Rename files from makepath.c to mkdir-p.c, and from
44767         makepath.h to mkdir-p.h.
44768         * m4/filenamecat.m4: Renamed from path-concat.m4.
44769         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
44770         Rename files from path-concat.c to filenamecat.c,
44771         and from path-concat.h to filenamecat.h.
44772         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
44773         "file name" in local variables or comments.
44774         * m4/rename.m4: Likewise.
44775
44776 2005-06-01  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/csharpexec: New file.
44779         * MODULES.html.sh (C#): New section.
44780
44781 2005-06-01  Bruno Haible  <bruno@clisp.org>
44782
44783         * m4/csharp.m4: New file, from GNU gettext.
44784         * m4/csharpexec.m4: New file, from GNU gettext.
44785
44786 2005-06-01  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/csharpexec.h: New file, from GNU gettext.
44789         * lib/csharpexec.c: New file, from GNU gettext.
44790         * lib/csharpexec.sh.in: New file, from GNU gettext.
44791
44792 2005-05-31  Derek Price  <derek@ximbiot.com>
44793             Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         Sync from cvs.
44796         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
44797
44798 2005-05-31  Derek Price  <derek@ximbiot.com>
44799             Paul Eggert  <eggert@cs.ucla.edu>
44800
44801         Sync from cvs.
44802         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
44803
44804 2005-05-29  Derek Price  <derek@ximbiot.com>
44805
44806         * config/srclist.txt (glob_.h, glob.c): Add these files.
44807
44808 2005-05-29  Derek Price  <derek@ximbiot.com>
44809
44810         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
44811         * modules/glob: New file.
44812         * modules/getlogin_r: Add link to POSIX spec in description.
44813
44814 2005-05-29  Derek Price  <derek@ximbiot.com>
44815             Paul Eggert  <eggert@cs.ucla.edu>
44816
44817         * m4/glob.m4: New file.
44818
44819 2005-05-29  Derek Price  <derek@ximbiot.com>
44820             Paul Eggert  <eggert@cs.ucla.edu>
44821
44822         * lib/glob_.h, lib/glob.c: New files.
44823
44824 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
44825
44826         * modules/fts (Files): Remove m4/inttypes-pri.m4.
44827         * modules/fts-lgpl (Depends-on): Remove gettext.
44828
44829 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
44830
44831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
44832         and don't require gt_INTTYPES_PRI.
44833
44834 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
44835
44836         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
44837
44838         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
44839         the configuration hassle isn't worth it.
44840         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
44841         (LONGEST_MODIFIER, PRIuMAX): Remove.
44842
44843 2005-05-27  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/getlogin_r.h: Remove second include of <stddef.h>.
44846
44847 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
44848
44849         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
44850         _POSIX_PTHREAD_SEMANTICS for Solaris.
44851
44852 2005-05-25  Derek Price  <derek@ximbiot.com>
44853
44854         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
44855
44856 2005-05-25  Derek Price  <derek@ximbiot.com>
44857             Paul Eggert  <eggert@cs.ucla.edu>
44858
44859         * modules/getlogin_r, m4/getlogin_r.m4: New files.
44860         * lib/getlogin_r.c, getlogin_r.h: New files.
44861
44862 2005-05-25  Bruno Haible  <bruno@clisp.org>
44863             Derek Price  <derek@ximbiot.com>
44864
44865         * lib/getlogin_r.h: Simplify API documentation.
44866
44867 2005-05-23  Derek Price  <derek@ximbiot.com>
44868
44869         * modules/minmax (Files): Add m4/minmax.m4.
44870         (configure.ac): Add gl_MINMAX.
44871
44872 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44873
44874         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
44875         so that unistd-safer.h (GPL'ed code) need not be included.
44876
44877 2005-05-22  Bruno Haible  <bruno@clisp.org>
44878
44879         * m4/minmax.m4: New file.
44880         Based on a patch by Derek Price <derek@ximbiot.com>.
44881
44882 2005-05-22  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
44885         (INT64_MIN): Fix definition.
44886         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
44887
44888         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
44889         NEED_SIGNED_INT_TYPES.
44890
44891         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
44892         HAVE_SYSTEM_INTTYPES.
44893
44894 2005-05-22  Bruno Haible  <bruno@clisp.org>
44895
44896         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
44897         Also include <sys/param.h> if it defines MIN, MAX.
44898         Based on a patch by Derek Price <derek@ximbiot.com>.
44899
44900 2005-05-21  Jim Meyering  <jim@meyering.net>
44901
44902         * modules/fts (Files): Add m4/inttypes-pri.m4.
44903         (Depends-on): Add lstat and remove gettext.  Alphabetize.
44904
44905 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         New fts module.
44908         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
44909         (setup_dir, free_dir): New functions.
44910         (enter_dir, leave_dir): Define trivial
44911         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
44912         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
44913         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
44914         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
44915         Move to fts-cycle.c.
44916         (fts_open): Use setup_dir.
44917         (fts_close): Use free_dir.
44918         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
44919         This adds a label and some gotos, but the alternatives were messier.
44920         Check for memory allocation failure when entering a dir.
44921         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
44922         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
44923         (FTS): New member fts_cycle, that is a union that contains the
44924         old active_dir_ht and cycle_state.  All uses changed to mention
44925         fts_cycle.ht and fts_cycle.state.
44926         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
44927         fts.c, with the following changes:
44928         (setup_dir, free_dir): New functions.
44929         (enter_dir): Now returns bool.  Return true if successful, false
44930         if memory exhausted.  All callers changed.
44931         Do not bother partly cleaning up on
44932         memory allocation failure; that is free_dir's job.
44933         However, free ad if hash_insert fails, to avoid memory leak.
44934         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
44935         fts->fts_options to see which union member to use.
44936
44937 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44938
44939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
44940         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
44941
44942 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
44945
44946 2005-05-20  Jim Meyering  <jim@meyering.net>
44947
44948         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
44949         Now a macro, to pacify GCC.
44950
44951 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
44952
44953         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
44954         of -1.
44955
44956 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
44957
44958         * lib/chown.c (rpl_chown): Return -1 on failure.
44959
44960 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
44961
44962         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
44963         Don't check for stddef.h.
44964         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
44965         don't use its results.
44966         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
44967         since we include them unconditionally.  Don't require
44968         AM_STDBOOL_H, since stdbool is a prerequisite.
44969         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
44970         since we assume C89 or better.
44971         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
44972         as we don't use their results.
44973         Don't check for fchdir, memmove, memset, strrchr, as we use
44974         them unconditionally.
44975         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
44976         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
44977
44978 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
44979
44980         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
44981         Include <stddef.h> unconditionally, since we assume C89 now.
44982         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
44983         * lib/fts.c: Include fts_.h first, to check interface.
44984         Do not include intprops.h; no longer needed.
44985         Include cycle-check.h and hash.h, since fts_.h no longer does.
44986         Remove unnecessary casts of closedir to void.
44987         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
44988         decide whether to decrement nlinks.
44989         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
44990         (FTS): Use struct hash_table * instead of Hash_table, so that
44991         we no longer need to include hash.h here.
44992
44993 2005-05-18  Jim Meyering  <jim@meyering.net>
44994
44995         * modules/dirfd (License): Change to LGPL.  Most of the code
44996         is already in the public domain.
44997
44998 2005-05-18  Jim Meyering  <jim@meyering.net>
44999
45000         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
45001         Reported by Yoann Vandoorselaere.
45002
45003 2005-05-17  Jim Meyering  <jim@meyering.net>
45004
45005         * m4/fts.m4: New file, from coreutils.
45006
45007 2005-05-17  Jim Meyering  <jim@meyering.net>
45008
45009         * lib/fts.c, lib/fts_.h: New files, from coreutils.
45010
45011 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45012
45013         Sync from coreutils.
45014         * m4/unlinkdir.m4: New file.
45015
45016 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         Sync from coreutils.
45019         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
45020         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
45021         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
45022         White space changes only.
45023         * lib/makepath.c (make_path): Port to hosts where leading "//" is
45024         special.
45025         * lib/yesno.c: Include getline.h, not ctype.h.
45026         (yesno): Don't remove leading white space; POSIX doesn't allow it.
45027         Use getline to remove arbitrary restriction on response length.
45028
45029 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45030
45031         * config/srclist-update: Spell out "Street" in FSF postal
45032         mail address; this is the style the FSF seems to prefer.
45033
45034         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
45035         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
45036         this updates FSF postal mail address.
45037
45038         Sync from coreutils.
45039         * modules/unlinkdir: New file.
45040         * modules/yesno (Depends-on): Add getline.
45041         * MODULES.html.sh (File system functions): Add unlinkdir.
45042
45043 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
45046         lib/strsep.h:
45047         Change the initial comment to refer to GPL, not LGPL.
45048         gnulib-tool will change it to LGPL as needed.
45049
45050         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
45051         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
45052         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
45053         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
45054         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
45055         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
45056         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
45057         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
45058         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
45059         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
45060         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
45061         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
45062         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
45063         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
45064         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
45065         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
45066         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
45067         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
45068         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
45069         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
45070         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
45071         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
45072         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
45073         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
45074         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
45075         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
45076         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
45077         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
45078         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
45079         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
45080         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
45081         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
45082         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
45083         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
45084         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
45085         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
45086         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
45087         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
45088         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
45089         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
45090         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
45091         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
45092         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
45093         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
45094         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
45095         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
45096         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
45097         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
45098         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
45099         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
45100         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45101         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
45102         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
45103         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
45104         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
45105         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
45106         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
45107         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
45108         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
45109         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
45110         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
45111         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
45112         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
45113         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
45114         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
45115         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
45116         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
45117         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
45118         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
45119         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
45120         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
45121         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
45122         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
45123         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
45124         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
45125         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
45126         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
45127         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
45128         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
45129         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
45130         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
45131         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
45132         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
45133         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
45134         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
45135         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
45136         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
45137         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
45138         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
45139         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
45140         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
45141         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
45142         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
45143         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
45144         lib/yesno.c, lib/yesno.h:
45145         Update FSF postal mail address.
45146
45147 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
45150         tests/test-memmem.c, tests/test-stpncpy.c:
45151         Update FSF postal mail address.
45152
45153 2005-05-13  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
45156         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
45157         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
45158         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
45159         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
45160         Add support for 64-bit integers in the MSVC compiler.
45161
45162 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45163
45164         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
45165
45166 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
45167
45168         * gnulib-tool (func_import): Sort and uniquify recommended includes.
45169
45170 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
45171
45172         * doc/getdate.texi (General date syntax): Don't say that date
45173         date --iso-8601=ns generates acceptable dates; it doesn't yet.
45174         Problem reported by Nic Ferrier.
45175
45176 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45177
45178         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
45179         specified in ai_socktype. Fix invalid ai_protocol
45180         check. ai_protocol is usually set to 0 or depending on
45181         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
45182         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
45183         ai_socktype / ai_protocol in the returned addrinfo structure.
45184
45185 2005-05-10  Simon Josefsson  <jas@extundo.com>
45186
45187         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
45188         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45189
45190 2005-05-10  Karl Berry  <karl@gnu.org>
45191
45192         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
45193         (from http://www.gnu.org/licenses).
45194         * doc/COPYING.LIB: also rename to COPYING.LESSER.
45195         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
45196         fdl.texi suffices.
45197
45198 2005-05-10  Karl Berry  <karl@gnu.org>
45199
45200         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
45201         (COPYING.DOC): remove.
45202
45203         * config/srclist-update: new FSF address.
45204
45205 2005-05-10  Derek Price  <derek@ximbiot.com>
45206
45207         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
45208         possible.
45209
45210 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45211             Bruno Haible  <bruno@clisp.org>
45212
45213         * modules/inet_ntop: New file.
45214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45215         inet_ntop.
45216
45217 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45218             Bruno Haible  <bruno@clisp.org>
45219
45220         * m4/inet_ntop.m4: New file.
45221
45222 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45223             Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/inet_ntop.h: New file.
45226         * lib/inet_ntop.c: New file, from glibc with modifications.
45227
45228 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
45229
45230         * modules/time_r (License): Change to LGPL.
45231         * modules/extensions (License): Change to LGPL.  Actually,
45232         the license is more permissive than that, but currently gnulib-tool
45233         doesn't know how to handle more-permissive licenses.
45234
45235         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
45236         Problem reported by Dave Love.
45237
45238 2005-05-08  Jim Meyering  <jim@meyering.net>
45239
45240         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
45241         blank.
45242
45243 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
45244
45245         * modules/argmatch (Depends-on): Add stdbool.
45246         * modules/backupfile (Depends-on): Likewise.
45247         * modules/chdir-long (Depends-on): Likewise.
45248         * modules/closeout (Depends-on): Likewise.
45249         * modules/cycle-check (Depends-on): Likewise.
45250         * modules/dirname (Depends-on): Likewise.
45251         * modules/fnmatch (Depends-on): Likewise.
45252         * modules/fsusage (Depends-on): Likewise.
45253         * modules/fwriteerror (Depends-on): Likewise.
45254         * modules/getcwd (Depends-on): Likewise.
45255         * modules/getloadavg (Depends-on): Likewise.
45256         * modules/hard-locale (Depends-on): Likewise.
45257         * modules/makepath (Depends-on): Likewise.
45258         * modules/mountlist (Depends-on): Likewise.
45259         * modules/nanosleep (Depends-on): Likewise.
45260         * modules/posixtm (Depends-on): Likewise.
45261         * modules/quotearg (Depends-on): Likewise.
45262         * modules/readtokens (Depends-on): Likewise.
45263         * modules/readtokens0 (Depends-on): Likewise.
45264         * modules/readutmp (Depends-on): Likewise.
45265         * modules/save-cwd (Depends-on): Likewise.
45266         * modules/strftime (Depends-on): Likewise.
45267         * modules/userspec (Depends-on): Likewise.
45268         * modules/utimecmp (Depends-on): Likewise.
45269         * modules/xgetcwd (Depends-on): Likewise.
45270         * modules/xnanosleep (Depends-on): Likewise.
45271         * modules/xstrtod (Depends-on): Likewise.
45272         * modules/yesno (Depends-on): Likewise.
45273
45274 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
45277         needless checks.
45278
45279 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
45280
45281         Merge from coreutils.  Among other things,
45282         add bulletproofing for cases where stdin, stdout, or stderr are closed.
45283         * lib/fd-safer.c: New file.
45284         * lib/fcntl-safer.h, open-safer.c: Remove.
45285         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
45286         * lib/dup-safer.c: Include unistd-safer.h first.
45287         Don't include errno.h.
45288         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
45289         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
45290         * lib/file-type.c: Rely on file-type.h change.
45291         * lib/getloadavg.c: Include unistd-safer.h.
45292         (getloadavg): Use safer open.
45293         * lib/getusershell.c: Include "stdio-safer.h".
45294         (getusershell): Use safer fopen.
45295         * lib/long-options.c (long_options): Use NULL rather than 0.
45296         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
45297         'free'.
45298         * lib/modechange.c: Likewise.
45299         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
45300         (MODE_DONE): New constant.
45301         (struct mode_change): Remove 'next' member.
45302         (make_node_op_equals): New function; like the old one of the
45303         same name, except it allocates an array.
45304         (mode_compile, mode_create_from_ref): Use it.
45305         (mode_compile): Allocate result as an array, not a linked list.
45306         Parse octal string ourself, so that we catch mistakes like "+0".
45307         (mode_adjust): Arg is an array, not a linked list.
45308         * lib/modechange.c: Include stat-macros.h, xalloc.h.
45309         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
45310         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
45311         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
45312         Remove.  This is now stat-macros.h's job.
45313         (talloc): Remove.  All callers replaced by xalloc, so that
45314         our invokers don't have to worry about reporting memory failures.
45315         (make_node_op_equals): Remove.
45316         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
45317         New constants.
45318         (struct mode_change): Moved here from modechange.h.
45319         (mode_append_entry): Remove.
45320         (mode_compile): Remove MASKED_OPS arg, since it encouraged
45321         apps to have incorrect behavior.  Use simpler algorithm for head
45322         and tail.  Don't futz with umask; that's now the job of mode_adjust.
45323         Detect more invalid usages rather than having somewhat-random behavior.
45324         Don't insert an "a=" action, as that leads to incorrect behavior.
45325         (mode_compile, mode_create_from_ref): Return NULL on error instead
45326         of an enum, since now there's only one way to have an error.  All
45327         callers changed.
45328         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
45329         at the correct time.  Simplify calculation of "+u" and its ilk.
45330         Don't mishandle "+X".
45331         (mode_free): Remove "register" and localize decls.
45332         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
45333         (struct mode_change): Move to modechange.c; callers don't
45334         need to see this stuff.
45335         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
45336         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
45337         (mode_change, mode_adjust): Reflect the new signatures noted above.
45338         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
45339         that might redefine system include files.
45340         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
45341         (my_usleep): Use NULL rather than (void *) 0.
45342         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
45343         Use siginterrupt to specify that system calls should be interrupted.
45344         (rpl_nanosleep): Move initialization of suspended closer to call of
45345         my_usleep.
45346         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
45347         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
45348         (desirable_utmp_entry): New function.
45349         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
45350         using x2nrealloc, to simplify logic.
45351         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
45352         size calculation.  Do not assume utmp file is a regular file.
45353         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
45354         (READ_UTMP_CHECK_PIDS): New constant.
45355         * lib/save-cwd.c: Include unistd-safer.h.
45356         (save_cwd): Use fd_safer.
45357         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
45358         [!_LIBC] Include "stat-macros.h" instead.
45359         * lib/unistd-safer.h (fd_safer): New decl.
45360
45361 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
45362
45363         * modules/getloadavg (Depends-on): Add unistd-safer.
45364         * modules/getusershell (Depends-on): Add stdio-safer.
45365         * modules/lstat (Depends-on): Remove xalloc.
45366         * modules/mkstemp (Depends-on): Add stat-macros.
45367         * modules/modechange (Depends-on): Remove xstrtol.
45368         Add stat-macros, xalloc.
45369         * modules/save-cwd (Depends-on): Add unistd-safer.
45370         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
45371         * modules/unistd-safer (Files): Add lib/fd-safer.c
45372         (Makefile.am): Remove lib_SOURCES.
45373
45374         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
45375         Remove fcntl-safer; unistd-safer supersedes it.
45376
45377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
45378
45379         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
45380         AC_HEADER_STAT.
45381         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
45382         (gl_PREREQ_CHOWN): Remove.
45383         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
45384         it.  Don't require AC_HEADER_STAT.
45385         (gl_PREREQ_LSTAT): Remove.
45386         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
45387         Don't require AC_HEADER_STAT.
45388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
45389         (gl_PREREQ_RMDIR): Remove.
45390         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
45391         mention stat-macros.h or AC_HEADER_STAT, since we'll make
45392         the stat-macros module a prerequisite.
45393         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
45394         * m4/filemode.m4 (gl_FILEMODE): Likewise.
45395         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
45396         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
45397         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
45398         variable names.
45399         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
45400         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
45401         variable prefixes.
45402         * m4/fcntl-safer.m4: Remove.
45403         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
45404         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
45405         Invoke gl_PREREQ_FD_SAFER.
45406         (gl_PREREQ_FD_SAFER): New macro.
45407         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
45408         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
45409         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
45410         Remove duplicate call to AC_LIBOBJ(readutmp).
45411         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
45412
45413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
45414         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
45415
45416 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
45417
45418         * MODULES.html.sh (Misc): Add byteswap.
45419
45420 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
45421
45422         * modules/getcwd (Depends-on): Add extensions.
45423         * modules/openat (Depends-on): Likewise.
45424
45425 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
45426
45427         * modules/byteswap: New file.
45428
45429 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
45430
45431         * m4/byteswap.m4: New file.
45432
45433 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
45434
45435         * lib/byteswap_.h: New file.
45436
45437 2005-04-25  Karl Berry  <karl@gnu.org>
45438
45439         * m4/gettext.m4: Update from GNU gettext 0.14.4.
45440
45441 2005-04-25  Albert Chin  <china@thewrittenword.com>
45442
45443         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
45444         Toolkit C bug.
45445
45446 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
45447
45448         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
45449         (func_ln_if_changed) Remove forcibly for no error message
45450         in case file does not exist.
45451
45452 2005-04-19  Simon Josefsson  <jas@extundo.com>
45453
45454         * gnulib-tool (Options): Make --symlink mean --symbolic.
45455
45456 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
45457
45458         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
45459
45460 2005-04-16  Simon Josefsson  <jas@extundo.com>
45461
45462         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
45463
45464 2005-04-15  Simon Josefsson  <jas@extundo.com>
45465
45466         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
45467
45468 2005-04-15  Simon Josefsson  <jas@extundo.com>
45469
45470         * gnulib-tool: Rename --symlink to --symbolic.
45471
45472 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
45473
45474         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
45475         symbolic links to files instead of copying/moving.  Add --aux-dir,
45476         specifying directory relative --dir where auxiliary build tools
45477         are placed.
45478
45479 2005-04-14  Bruno Haible  <bruno@clisp.org>
45480
45481         * modules/allocsa (License): Change to LGPL.
45482         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45483
45484 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
45487         that "UTC +1 second" continues to work.  Problem reported
45488         by Dmitry V. Levin.
45489         (relunit_snumber): New rule.
45490         (relunit): Use it.
45491
45492 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45493
45494         * lib/getdate.y (universal_time_zone_table): New constant.
45495         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
45496         universal_time_zone_table.
45497         (lookup_zone): Prefer universal_time_zone_table to
45498         local_time_zone_table, so that "GMT" time stamps are allowed in
45499         London during the summer.  Problem reported by Ian Abbott.
45500
45501 2005-04-12  Jim Meyering  <jim@meyering.net>
45502
45503         * lib/human.c (humblock): Set *options even when returning due to
45504         xstrtoumax conversion failure.  Thanks to a used-uninitialized
45505         warning from gcc-4.
45506
45507 2005-04-09  Jim Meyering  <jim@meyering.net>
45508
45509         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
45510         -Wuninitialized: initialize tm0.tm_year.
45511
45512 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45513
45514         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
45515         count, since there's no maximum.  All uses changed.
45516         Add member dsts_seen.
45517         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
45518         not being INT_MAX.
45519         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
45520         Use pc_rels_seen to decide whther a date is absolute.
45521
45522         * lib/getdate.y (number): Don't overwrite year.
45523         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
45524         check.
45525
45526 2005-04-02  Simon Josefsson  <jas@extundo.com>
45527
45528         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
45529         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
45530
45531 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
45532
45533         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
45534         where no absolute path name can be longer than PATH_MAX.
45535
45536 2005-03-27  Jim Meyering  <jim@meyering.net>
45537
45538         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
45539
45540 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
45541
45542         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
45543         "one's complement" -> "ones' complement" in comment, as per Knuth.
45544         "value of type" -> "type or expression" in comment.
45545         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
45546
45547 2005-03-26  Jim Meyering  <jim@meyering.net>
45548
45549         Comment nits.
45550         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
45551         Correct typos: s/or/of/.
45552
45553 2005-03-26  Jim Meyering  <jim@meyering.net>
45554
45555         * modules/check-include-files: Move to ../ and rename to...
45556         * check-module: ...this.
45557
45558 2005-03-25  Jim Meyering  <jim@meyering.net>
45559
45560         * modules/xvasprintf (Files): Add xalloc.h.
45561
45562 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * modules/gettext (Files): config/config.rpath ->
45565         build-aux/config.rpath
45566         * modules/iconv (Files): Likewise.
45567         Problem reported by Oskar Liljeblad.
45568
45569 2005-03-23  Jim Meyering  <jim@meyering.net>
45570
45571         * modules/check-include-files: New script to check for
45572         missing dependencies, multiple includes, etc.
45573
45574         * modules/c-strtold (Depends-on): Add xalloc.
45575         * modules/c-strtod (Depends-on): Add xalloc.
45576         * modules/hash (Depends-on): Add xalloc.
45577         (Files): Remove lib/xalloc.h.
45578
45579         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
45580         * modules/userspec (Files): Add lib/inttostr.h.
45581
45582 2005-03-23  Jim Meyering  <jim@meyering.net>
45583
45584         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
45585
45586 2005-03-22  Jim Meyering  <jim@meyering.net>
45587
45588         * modules/stat-macros: New module.
45589         * modules/canonicalize, modules/euidaccess, modules/file-type,
45590         * modules/filemode, modules/lchown, modules/makepath,
45591         * modules/rmdir, modules/stat: Depend on new stat-macros module
45592         rather than listing lib/stat-macros.h manually.
45593         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
45594
45595 2005-03-22  Jim Meyering  <jim@meyering.net>
45596
45597         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
45598
45599 2005-03-22  Bruno Haible  <bruno@clisp.org>
45600
45601         * config/srclist.txt: Replace target directory 'config' with
45602         'build-aux'.
45603         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
45604         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
45605         ../build-aux/.
45606
45607 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
45608
45609         * modules/chdir-long (Depends-on): Add mempcpy.
45610
45611         * modules/acl, modules/backupfile, modules/c-strtod,
45612         modules/c-strtold, modules/canon-host, modules/canonicalize,
45613         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
45614         modules/exclude, modules/exitfail, modules/file-type,
45615         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
45616         modules/getdate, modules/getline, modules/getpagesize,
45617         modules/getpass, modules/getugroups, modules/group-member,
45618         modules/hard-locale, modules/hash, modules/human, modules/idcache,
45619         modules/inttostr, modules/long-options, modules/makepath,
45620         modules/md5, modules/memcasecmp, modules/memcoll,
45621         modules/modechange, modules/mountlist, modules/path-concat,
45622         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
45623         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
45624         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
45625         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
45626         modules/strftime, modules/strndup, modules/strverscmp,
45627         modules/timespec, modules/unlocked-io, modules/userspec,
45628         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
45629         modules/yesno:
45630         Remove lib_SOURCES line from Makefile.am section, as this is now
45631         done automatically by the corresponding Autoconf macro.
45632
45633 2005-03-21  Jim Meyering  <jim@meyering.net>
45634
45635         Changes imported from coreutils.
45636
45637         * lib/cycle-check.c: Don't include xalloc.h.
45638
45639         * lib/path-concat.c: Don't include assert.h.
45640         (path_concat): Remove assertion that would have triggered
45641         for ABASE starting with more than one slash.
45642         Reported by Andreas Schwab.
45643
45644         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
45645         properly when ABASE is an absolute file name.
45646         Correct the description of this function.
45647         Include <assert.h>.
45648         Add an assertion and a test driver.
45649         This fixes a bug introduced on 2004-07-02.
45650         Andreas Schwab reported the resulting failure of cp --parents:
45651         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
45652
45653 2005-03-21  Jim Meyering  <jim@meyering.net>
45654
45655         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
45656         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
45657
45658 2005-03-21  Jim Meyering  <jim@meyering.net>
45659         and  Paul Eggert  <eggert@cs.ucla.edu>
45660
45661         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
45662         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
45663         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
45664         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
45665         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
45666         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
45667         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
45668         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
45669         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
45670         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
45671         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
45672         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
45673         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
45674         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
45675         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
45676         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
45677         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
45678         for these modules.
45679
45680 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
45681
45682         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
45683         (which shouldn't happen), generate nothing instead of returning 0
45684         immediately, so that nstrftime (NULL, ...) doesn't return 0.
45685
45686 2005-03-16  Bruno Haible  <bruno@clisp.org>
45687
45688         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
45689         HAVE_LONGLONG_64BIT.
45690
45691 2005-03-16  Bruno Haible  <bruno@clisp.org>
45692
45693         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
45694         HAVE_LONGLONG_64BIT.
45695
45696 2005-03-16  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
45699         HAVE_LONGLONG_64BIT.
45700
45701 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
45702
45703         * lib/strftime.c (my_strftime): Prepend space to format so that we can
45704         reliably distinguish strftime failure from empty output on POSIX
45705         hosts.
45706
45707 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
45708
45709         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
45710         (iconv_string): Don't guess a size-zero buffer, as that might cause
45711         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
45712         result would be 'too large', where 'too large' is (heuristically)
45713         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
45714         overflow concerns.  This will prevent some unwanted malloc failures
45715         when the inputs are very large.
45716
45717 2005-03-15  Karl Berry  <karl@gnu.org>
45718
45719         * config/srclist.txt (config.rpath): from gettext.
45720         * config/config.rpath: update.
45721
45722 2005-03-15  Bruno Haible  <bruno@clisp.org>
45723
45724         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
45725         to 'negate'.
45726
45727         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
45728         variable.
45729
45730         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
45731         results.
45732
45733 2005-03-14  Simon Josefsson  <jas@extundo.com>
45734
45735         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
45736         <fx@gnu.org>.
45737
45738 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
45739
45740         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
45741         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
45742         intprops.h.
45743         * lib/strtol.c: Likewise.
45744
45745 2005-03-14  Jim Meyering  <jim@meyering.net>
45746
45747         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
45748         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
45749         to be nonzero so that we (and caller) can detect the difference
45750         between a valid zero-length expansion and an error return, even
45751         when the underlying strftime fails before writing anything into
45752         that location.
45753
45754 2005-03-14  Bruno Haible  <bruno@clisp.org>
45755
45756         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
45757         Update from GNU gettext 0.14.3.
45758
45759 2005-03-10  Jim Meyering  <jim@meyering.net>
45760
45761         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
45762
45763 2005-03-10  Jim Meyering  <jim@meyering.net>
45764
45765         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
45766         so that this module works on systems without fchdir.
45767
45768 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
45769
45770         Factor int-properties macros into a single file, except for
45771         glibc-related files.
45772         * lib/intprops.h: New file.
45773         * lib/getloadavg.c: Include it instead of limits.h.
45774         (INT_STRLEN_BOUND): Remove.
45775         * lib/human.c: Include intprops.h.
45776         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
45777         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
45778         302/1000.
45779         * lib/inttostr.h: Include intprops.h instead of limits.h.
45780         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
45781         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
45782         for consistency with intprops.h.
45783         (time_t_is_integer, twos_complement_arithmetic): Use them.
45784         * lib/sig2str.h: Include <signal.h>, intprops.h.
45785         (INT_STRLEN_BOUND): Remove.
45786         * lib/strftime.c (TYPE_SIGNED): Remove.
45787         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
45788         * lib/strtol.c: Adjust comments to match intprops.h.
45789         * lib/userspec.c: Include intprops.h.
45790         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
45791         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
45792         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
45793         instead of rolling our own expressions.
45794         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
45795
45796         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
45797         instead of int.
45798         (my_strftime): Do not mishandle years close to INT_MAX, by doing
45799         the right thing even if adding 1900 would overflow.  Similarly
45800         for tm_mon + 1 and tm_yday + 1.
45801         Make %Y always equivalent to %C%y, and similarly for %G and %g.
45802         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
45803         (DO_SIGNED_NUMBER): New macro.
45804         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
45805
45806 2005-03-07  Bruno Haible  <bruno@clisp.org>
45807
45808         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
45809
45810 2005-03-07  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
45813
45814 2005-03-04  Derek R. Price  <derek@ximbiot.com>
45815
45816         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
45817         (func_import): Only replace files via --import when they have actually
45818         changed.
45819
45820 2005-03-03  Derek R. Price  <derek@ximbiot.com>
45821
45822         * m4/mmap-anon.m4: New file.
45823         * m4/pagealign_alloc.m4: New file.
45824
45825 2005-03-03  Derek R. Price  <derek@ximbiot.com>
45826             Bruno Haible  <bruno@clisp.org>
45827
45828         * modules/pagealign_alloc: New file.
45829         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
45830
45831 2005-03-03  Derek R. Price  <derek@ximbiot.com>
45832             Bruno Haible  <bruno@clisp.org>
45833
45834         * lib/pagealign_alloc.h: New file.
45835         * lib/pagealign_alloc.c: New file.
45836
45837 2005-03-03  Bruno Haible  <bruno@clisp.org>
45838
45839         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
45840         Use an all-permissive copyright notice, recommended by RMS.
45841
45842 2005-03-02  Bruno Haible  <bruno@clisp.org>
45843
45844         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
45845         of AIX, the replacement has to be done only after <string.h> is
45846         included, therefore not in config.h. stpncpy.h does the replacement,
45847         and stpncpy.c uses it.
45848
45849 2005-03-02  Bruno Haible  <bruno@clisp.org>
45850
45851         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
45852         stpncpy.c uses it.
45853
45854 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
45857         The workaround isn't strictly needed for POSIX conformance, and
45858         it's too much of a pain to configure and maintain.  We'll ask
45859         people to fix their kernels instead.
45860         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
45861         (NANOSLEEP_BUG_WORKAROUND): Remove.
45862         (xnanosleep): Remove the workaround.
45863
45864 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45865
45866         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
45867         Reported by Derek Price.
45868         (Include): Add "timespec.h".
45869
45870         * modules/xnanosleep (Depends-on): Remove gethrxtime.
45871
45872 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
45875         to detect nanosleep bug.
45876
45877 2005-03-01  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
45880
45881 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45882
45883         * modules/gethrxtime: New file.
45884         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
45885         (Depends-on): Add gethrxtime.
45886         (configure.ac): Add gl_XNANOSLEEP.
45887         (Makefile.am): Remove lib_SOURCES line.
45888
45889 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45890
45891         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
45892         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
45893
45894 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45895
45896         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
45897         * lib/timespec.h (gettime): Return void, since it always
45898         succeeds now.  All uses changed.
45899         * lib/gettime.c (gettime) Likewise.
45900         [HAVE_NANOTIME]: Prefer nanotime.
45901         Assume gettimeofday succeeds, as POSIX requires.
45902         Assime time () succeeds, since other code already does.
45903         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
45904         (timespec_subtract): Remove.
45905         (NANOSLEEP_BUG_WORKAROUND): New constant.
45906         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
45907         things considerably.  Use it only on GNU/Linux hosts, since the
45908         workaround shouldn't be needed elsewhere.
45909
45910 2005-02-24  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/gettext (Files): Add m4/glibc2.m4.
45913
45914 2005-02-24  Bruno Haible  <bruno@clisp.org>
45915
45916         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
45917         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
45918         * m4/progtest.m4:
45919         Update from GNU gettext 0.14.2.
45920         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
45921
45922 2005-02-24  Bruno Haible  <bruno@clisp.org>
45923
45924         * lib/localcharset.c: Update from GNU gettext 0.14.2.
45925         * lib/config.charset: Update from GNU gettext 0.14.2.
45926
45927 2005-02-24  Bruno Haible  <bruno@clisp.org>
45928
45929         * lib/gettext.h: Update from GNU gettext 0.14.2.
45930
45931 2005-02-23  Simon Josefsson  <jas@extundo.com>
45932
45933         * m4/iconvme.m4: New file.
45934
45935 2005-02-23  Jim Meyering  <jim@meyering.net>
45936
45937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
45938         change.
45939         Thanks to Bruno Haible for catching it.
45940
45941 2005-02-22  Simon Josefsson  <jas@extundo.com>
45942
45943         * modules/iconvme: New file.
45944
45945         * MODULES.html.sh: Add iconvme.
45946
45947 2005-02-22  Simon Josefsson  <jas@extundo.com>
45948
45949         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
45950
45951 2005-02-22  Simon Josefsson  <jas@extundo.com>
45952
45953         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
45954
45955 2005-02-22  Jim Meyering  <jim@meyering.net>
45956
45957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
45958         s/ifndef/ifdef/.
45959
45960 2005-02-20  Neil Conway  <neilc@samurai.com>
45961
45962         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
45963         returned by OSX/Darwin if the specified buffer is not large
45964         enough for the hostname.
45965
45966 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45967
45968         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
45969         pass it to _help, otherwise the latter coredumps trying to
45970         dereference state.root_argp.
45971
45972 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45973
45974         * modules/chdir-long (Depends-on): Add memrchr.
45975         * modules/memrchr (Files): Add lib/memrchr.h.
45976         (Include): "memrchr.h".
45977
45978 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
45981
45982 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45983
45984         * lib/memrchr.h: New file.
45985         * lib/chdir-long.c: Include it.
45986         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
45987         Don't bother including stddef.h.
45988
45989 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45990
45991         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
45992         inclusion.
45993         Include <sys/types.h>, for dev_t.
45994         (ME_DUMMY, ME_REMOTE): Move from here....
45995         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
45996         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
45997         Dmitry V. Levin.
45998         Include mountlist.h first, to test the interface.
45999
46000 2005-01-29  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/progname.c (program_name): Initialize.
46003         Needed when linking statically on MacOS X.
46004
46005 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46006
46007         Sync from coreutils.
46008         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
46009         (Depends-on): Add c-strtod.
46010         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
46011
46012 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46013
46014         Sync from coreutils.
46015         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
46016
46017         Remove files that are specific to coreutils.
46018         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
46019
46020 2005-01-28  Bruno Haible  <bruno@clisp.org>
46021
46022         * modules/javacomp: New file.
46023         * MODULES.html.sh (Java): Add javacomp.
46024
46025 2005-01-28  Bruno Haible  <bruno@clisp.org>
46026
46027         * m4/javacomp.m4: New file, from GNU gettext.
46028
46029 2005-01-28  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/javacomp.sh.in: New file, from GNU gettext.
46032         * lib/javacomp.h: New file, from GNU gettext.
46033         * lib/javacomp.c: New file, from GNU gettext.
46034
46035 2005-01-26  Simon Josefsson  <jas@extundo.com>
46036
46037         * lib/gai_strerror.c: Use GPL in header.
46038
46039 2005-01-26  Bruno Haible  <bruno@clisp.org>
46040
46041         * modules/javaexec: New file.
46042         * MODULES.html.sh (Java): Add javaexec.
46043
46044 2005-01-26  Bruno Haible  <bruno@clisp.org>
46045
46046         * m4/javaexec.m4: New file, from GNU gettext.
46047
46048 2005-01-26  Bruno Haible  <bruno@clisp.org>
46049
46050         * lib/javaexec.sh.in: New file, from GNU gettext.
46051         * lib/javaexec.h: New file, from GNU gettext.
46052         * lib/javaexec.c: New file, from GNU gettext.
46053
46054 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46055
46056         * modules/lchown (Depends-on): Remove lchown.h
46057
46058 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46059
46060         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
46061         must be defined if the header file was not found, in order
46062         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
46063
46064 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46065
46066         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
46067         initializers for struct pentry_state.
46068         (__argp_error): Check return value of __asprintf
46069         (__argp_failure): Translate error message
46070
46071         * lib/argp-parse.c: Removed braces around the expansion of N_()
46072
46073 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46074
46075         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
46076         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
46077         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
46078         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
46079         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
46080         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
46081         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
46082         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
46083         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
46084         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
46085         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
46086         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
46087         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
46088         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
46089         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
46090         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
46091         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
46092         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
46093         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
46094         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
46095         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
46096         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
46097         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
46098         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
46099         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
46100         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
46101         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
46102         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
46103         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
46104         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
46105         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
46106         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
46107         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
46108         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
46109         xstrtol.m4, xstrtoumax.m4, yesno.m4:
46110         Use an all-permissive copyright notice, recommended by RMS.
46111
46112 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
46113
46114         * modules/chdir-long (Depends-on): Remove mempcpy.
46115
46116 2005-01-21  Jim Meyering  <jim@meyering.net>
46117
46118         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
46119         same value as for Solaris 9.
46120
46121         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
46122         component length.  This included changing the parameter to be
46123         of type `char *' rather than `char const *'.
46124         * lib/chdir-long.h (chdir_long): Update prototype.
46125
46126         * lib/openat.c (fdopendir, fstatat): New functions.
46127         * lib/openat.h: Include headers required for use of DIR and struct
46128         stat.
46129         [AT_SYMLINK_NOFOLLOW]: Define.
46130         (fdopendir, fstatat): Add prototypes.
46131
46132 2005-01-21  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/classpath: New file.
46135         * MODULES.html.sh (Java): Add classpath.
46136
46137 2005-01-21  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/classpath.h: New file, from GNU gettext.
46140         * lib/classpath.c: New file, from GNU gettext.
46141
46142 2005-01-20  Simon Josefsson  <jas@extundo.com>
46143
46144         * modules/version-etc-fsf: New file.
46145
46146 2005-01-20  Simon Josefsson  <jas@extundo.com>
46147
46148         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
46149         * lib/version-etc.c: Remove version_etc_copyright.
46150         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
46151         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
46152
46153 2005-01-20  Simon Josefsson  <jas@extundo.com>
46154
46155         * lib/base64.h (isbase64): Add.
46156
46157         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
46158         using a unsigned prototype, don't inline.
46159         (base64_decode): Use it.
46160
46161 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
46164         it.
46165
46166 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * lib/save-cwd.c (save_cwd): Remove code to support the case
46169         where fchdir is missing or flaky.
46170
46171 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46172
46173         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
46174
46175 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
46178         AC_LIBSOURCES now does this.
46179         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
46180         with new ullong_max module.
46181
46182 2005-01-19  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/sh-quote: New file.
46185         * MODULES.html.sh (Executing programs): Add sh-quote.
46186
46187 2005-01-19  Bruno Haible  <bruno@clisp.org>
46188
46189         * lib/sh-quote.h: New file, from GNU gettext.
46190         * lib/sh-quote.c: New file, from GNU gettext.
46191
46192 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46193
46194         Merge from coreutils.
46195         * m4/ullong_max.m4: New file.
46196         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
46197         (gl_MACROS): Assume localeconv exists.
46198
46199 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         Merge changes from coreutils, as described below in several
46202         changelogs dated today.
46203
46204         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
46205         (O_DIRECTORY): Remove; not needed here, since "." must be
46206         a directory.  All uses removed.
46207         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
46208         universal on Suns, and we also need to test for IRIX.
46209         Revamp code to use 'if' rather than '#if'.
46210         Avoid unnecessary comparison of cwd->desc to 0.
46211
46212         * lib/utimens.c (futimens): Robustify the previous patch, by checking
46213         for known valid error numbers rather than observed invalid ones.
46214
46215 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46216
46217         * modules/ullong_max: New file.
46218
46219         * modules/chdir-long, modules/openat: New files.
46220         * modules/save-cwd (Depends-on): Depend on chdir-long.
46221         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
46222
46223 2005-01-18  Jim Meyering  <jim@meyering.net>
46224
46225         Merge from coreutils.
46226         * m4/chdir-long.m4, m4/openat.m4: New files.
46227         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
46228         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
46229         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
46230         is sane and DOES follow symlinks.  Besides, testing 20 different
46231         systems found no broken chown implementations.
46232         Prompted by a change in rsync's copy of this macro.
46233         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
46234
46235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
46236
46237         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
46238         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
46239         NULL-means-set-to-current-time semantics.
46240         Remove temporary file immediately, rather than waiting
46241         for configure's at-exit trap code to do it.
46242
46243 2005-01-18  Jim Meyering  <jim@meyering.net>
46244
46245         * lib/version-etc.c (version_etc_copyright): Update copyright date.
46246
46247         * lib/utimens.c (futimens): Account for the fact that futimes
46248         can also fail with errno == ENOSYS or errno == ENOENT.
46249         Patch from Dmitry V. Levin.
46250
46251         Change the name of the robust chdir function from chdir to chdir_long.
46252         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
46253         (restore_cwd): Use chdir_long, not chdir.
46254         * lib/chdir-long.c: Renamed from chdir.c.
46255         * lib/chdir-long.h: Renamed from chdir.h.
46256         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
46257         Hurd.
46258
46259 2005-01-18  Bruno Haible  <bruno@clisp.org>
46260
46261         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
46262         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
46263         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
46264         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
46265         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
46266         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
46267         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
46268         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
46269         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
46270         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
46271         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
46272         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
46273         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
46274         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
46275         Use an all-permissive copyright notice, recommended by RMS.
46276
46277 2005-01-18  Bob Proulx  <bob@proulx.com>
46278
46279         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
46280         simplify offsetof() macro construct to avoid compile failure with
46281         native HP-UX 11.0 ANSI C compiler.
46282
46283 2005-01-17  Bruno Haible  <bruno@clisp.org>
46284
46285         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
46286         redundant because stpncpy.m4 takes care of it.
46287
46288 2005-01-17  Bruno Haible  <bruno@clisp.org>
46289
46290         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
46291
46292 2005-01-17  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
46295         used.
46296
46297 2005-01-17  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/fwriteerror.h (fwriteerror): Change specification to include
46300         fclose.
46301         * lib/fwriteerror.c: Include <stdbool.h>.
46302         (fwriteerror): At the end, close the file stream. Record whether
46303         stdout was already closed.
46304
46305 2005-01-17  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/execute.c (environ): Declare if needed.
46308         * lib/pipe.c (environ): Likewise.
46309         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
46310
46311 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46312
46313         * modules/argp: Depend on vsnprintf
46314
46315 2005-01-10  Jim Meyering  <jim@meyering.net>
46316
46317         * modules/closeout (Depends-on): Add atexit.
46318
46319 2005-01-06  Bruno Haible  <bruno@clisp.org>
46320
46321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
46322
46323 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46324
46325         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
46326         definitions to be after all include files, to avoid collisions.
46327         Problem reported by Bob Proulx.
46328
46329 2005-01-04  Jim Meyering  <jim@meyering.net>
46330
46331         Changes imported from coreutils.
46332         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
46333         as the mkstemp template, use a temporary directory and an
46334         8.3-friendly template to avoid trouble on systems like DJGPP.
46335         Reported by Juan M. Guerrero via Stepan Kasal.
46336         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
46337         close. Remove the temporary directory right away, rather than waiting
46338         for configure's at-exit trap code to do it.
46339         Suggestion from Stepan Kasal.
46340
46341 2005-01-01  Simon Josefsson  <jas@extundo.com>
46342
46343         * gnulib-tool: Print #include directives when --import'ing.
46344
46345 2004-12-28  Simon Josefsson  <jas@extundo.com>
46346
46347         * tests/test-base64.c: Include required header files.  Remove
46348         unused variables.
46349
46350 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46351
46352         * modules/error (Depends-on): Remove gettext.
46353
46354 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46355
46356         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
46357         not needed.  This removes a dependency on the gettext module.
46358         [defined _LIBC]: Do not include <libintl.h>; not needed.
46359
46360 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
46361
46362         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
46363         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
46364
46365 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
46366
46367         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
46368         HAVE_DECL_STRTOLD.
46369
46370 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46371
46372         * modules/getdate (Depends-on): Remove alloca-opt.
46373
46374 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46375
46376         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
46377
46378 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46379
46380         * lib/argp-parse.c: Include <stddef.h>.
46381         (alignof, alignto): New macros.
46382         (parser_init): Don't assume that void * is aligned sufficiently
46383         for struct option.
46384
46385         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
46386         need to extend the stack.
46387         (YYINITDEPTH): New macro, so that the initial stack isn't overly
46388         large.
46389
46390 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46391
46392         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
46393
46394 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46395
46396         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
46397         (2004-10-24) change.  Apparently this was a false alarm.
46398
46399         * modules/getdate: Depend on alloca-opt, not alloca.
46400
46401 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
46404         Remove now-obsolete comment about AIX.
46405         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
46406         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
46407         (YYMAXDEPTH): New macro.
46408
46409 2004-12-18  Simon Josefsson  <jas@extundo.com>
46410
46411         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
46412
46413 2004-12-18  Bruno Haible  <bruno@clisp.org>
46414
46415         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
46416
46417 2004-12-18  Bruno Haible  <bruno@clisp.org>
46418
46419         * lib/fatal-signal.c (fatal_signals): Make non-const.
46420         (init_fatal_signals): New function.
46421         (uninstall_handlers, install_handlers): Ignore signals that were set to
46422         SIG_IGN.
46423         (at_fatal_signal): Call init_fatal_signals.
46424         (init_fatal_signal_set): Likewise. Ignore signals that were set to
46425         SIG_IGN.
46426         Reported by Paul Eggert.
46427
46428 2004-12-18  Bruno Haible  <bruno@clisp.org>
46429
46430         * doc/alloca.texi: New file.
46431         * doc/alloca-opt.texi: New file.
46432
46433 2004-12-17  Jim Meyering  <jim@meyering.net>
46434
46435         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
46436         Otherwise, install-sh could exit with improper exit status when
46437         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
46438
46439 2004-12-16  Simon Josefsson  <jas@extundo.com>
46440
46441         * tests/test-base64.c: Add license.
46442
46443 2004-12-15  Stepan Kasal  <address@hidden>
46444
46445         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
46446
46447 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
46448
46449         * modules/getcwd (Files): Add m4/d-ino.m4.
46450         Suggested by Mark D. Baushke.
46451
46452 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
46453
46454         * lib/getdate.y (textint): New member "negative".
46455         (time_zone_hhmm): New function.
46456         Expect 14 shift-reduce conflicts, not 13.
46457         (o_colon_minutes): New rule.
46458         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
46459         (yylex): Set the "negative" member of signed numbers.
46460
46461 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         * doc/getdate.texi (Time of day items, Time zone items):
46464         Describe new formats +00:00, UTC+00:00.
46465
46466 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46467
46468         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
46469         spurious "-l"s.  Problem reported by Stepan Kasal.
46470
46471 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
46472
46473         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
46474         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
46475
46476 2004-12-04  Simon Josefsson  <jas@extundo.com>
46477
46478         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
46479         Vandoorselaere <yoann@prelude-ids.org>.
46480
46481 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
46482
46483         Changes imported from coreutils.
46484         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
46485         exist.
46486         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
46487
46488 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
46489
46490         Changes imported from coreutils.
46491         * lib/hard-locale.c: Assume <locale.h> exists.
46492         Include "strdup.h".
46493         (GLIBC_VERSION): New macro.
46494         (hard_locale): Assume setlocale exists.
46495         Rewrite to avoid #ifdef.
46496         Use strdup rather than malloc + strcpy.
46497         * lib/human.c: Assume <locale.h> exists.
46498         (human_readable): Assume localeconv exists.
46499
46500 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
46501
46502         * modules/hard-locale (Depends-on): Add strdup.
46503
46504 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46505
46506         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
46507         convert T2, not T.  (Imported from libc.)
46508
46509 2004-11-30  Simon Josefsson  <jas@extundo.com>
46510
46511         * modules/restrict (License): Change to LGPL.
46512
46513 2004-11-30  Simon Josefsson  <jas@extundo.com>
46514
46515         * m4/restrict.m4: Add copyright and copying conditions.
46516
46517 2004-11-30  Simon Josefsson  <jas@extundo.com>
46518
46519         * m4/base64.m4: New file.
46520
46521 2004-11-30  Simon Josefsson  <jas@extundo.com>
46522
46523         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
46524         base64.
46525
46526         * tests/test-base64.c: New file.
46527
46528         * modules/base64: New file.
46529
46530 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
46533         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
46534
46535         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
46536
46537 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
46538
46539         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
46540         (__getcwd.c): Don't restore errno; glibc doesn't.
46541         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
46542         first, falling back to our code only if its results look suspicious.
46543         Ensure that the resulting buffer is only as large as necessary.
46544
46545         * lib/readutmp.c: Include readutmp.h first.
46546         Include <errno.h>, since readutmp.h no longer does that.
46547         * lib/readutmp.h: Don't include <errno.h>,
46548         <sys/param.h>, <time.h>; not needed to establish interface.
46549         (errno): Remove decl.
46550         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
46551         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
46552         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
46553
46554 2004-11-28  Simon Josefsson  <jas@extundo.com>
46555
46556         * lib/base64.h, base64.c: New file.
46557
46558 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46559
46560         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
46561
46562 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46563
46564         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
46565         (Depends-on): Remove pathmax, same.  Add mempcpy.
46566         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
46567         (Makefile.am): Append getcwd.h to lib_SOURCES.
46568         (Include): Add getcwd.h.
46569         (Maintainer): Change from Jim Meyering to "all, glibc",
46570         since getdate now uses intended-for-glibc code.
46571         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
46572         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
46573
46574 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
46577         HP's ANSI C compiler.
46578         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
46579         Declaring int functions causes warnings on some modern systems and
46580         shouldn't be needed to compile on ancient ones.
46581         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
46582         defined.
46583
46584         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
46585         with the following changes.
46586         (__set_errno): Parenthesize properly.
46587         Include <stdbool.h>.
46588         (MIN, MAX, MATCHING_INO): New macros.
46589         (__getcwd): Define with prototype, not K&R form.
46590         Use heuristics to allocate default buffer on stack if possible.
46591         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
46592         behavior, and to avoid the PATH_MAX limit when computing
46593         ../../../../...
46594         Use MATCHING_INO to compare inode number to file.
46595         Check for arithmetic overflow in size calculations.
46596         Fix bug in reallocation of dot array that caused getcwd to fail
46597         on directories nested deeper than 75.
46598         Be more careful about saving errno on error.
46599         Do not use realloc; use only free+malloc, as this is a bit
46600         more flexible and avoids a needless copy operation.
46601         Do not inspect st_dev and st_ino for symbolic links; POSIX
46602         doesn't specify the latter.
46603         Check for closedir errors.
46604         Avoid needless casts.
46605         Use "#ifdef weak_alias" around weak_alias, to be like other
46606         glibc code.
46607         The following changes to getcwd.c have effect only when used in
46608         gnulib; they have no effect inside glibc proper.
46609         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
46610         as alloca isn't used.
46611         (alloca, __alloca): Likewise.
46612         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
46613         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
46614         unconditionally, as gnulib assumes C89 or better.
46615         Do not include <sys/param.h>.
46616         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
46617         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
46618         better.
46619         (NULL) [!defined NULL]: Remove; we assume C89 or better.
46620         Include <dirent.h> in a way that is compatible with modern Autoconf.
46621         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
46622         New macros, if not already defined.
46623         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
46624         Use "_LIBC", not "defined _LIBC", for consistency.
46625         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
46626         a mempcpy module.
46627         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
46628         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
46629         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
46630         credit only to Jim Meyering and adjust the copyright dates.
46631         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
46632         <stdlib.h>, <unistd.h>, "pathmax.h".
46633         Instead, include "xgetcwd.h" (first) and "getcwd.h".
46634         (INITIAL_BUFFER_SIZE): Remove.
46635         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
46636
46637 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46638
46639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
46640         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
46641         Use the _ONCE methods, for efficiency.
46642         Check for fcntl.h.  In test program, include <errno.h>
46643         and <fcntl.h> if available.  Remove old K&R cruft from
46644         test program.  Check for common errors in GNU/Linux,
46645         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
46646         don't do AC_LIBOBJ, as that's getcwd.m4's job.
46647         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
46648         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
46649         name accordingly.
46650         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
46651         accommodate new getcwd.c.
46652         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
46653         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
46654         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
46655         that's all we need now.
46656
46657 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46658
46659         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
46660         argp-parse.c depends on getopt internals, that means we should
46661         always use our getopt, to be on the safe side.
46662         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
46663         order not to spoil the result of an eventual previous invocation
46664         of gl_GETOPT_SUBSTITUTE.
46665
46666 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46667
46668         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
46669         redefinition warnings. To avoid them, include the defines
46670         in `#if !defined __need_getopt ... #endif'. The only place
46671         where __getopt_argv_const is used is in definitions
46672         of getopt_long and getopt_long_only below, which are as well
46673         protected by `#ifndef __need_getopt'.
46674         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
46675         __need_getopt after including <stdio.h> and <unistd.h> These
46676         headers might have defined it.
46677
46678 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
46679
46680         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
46681
46682 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
46683
46684         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
46685         (futimens): New function, which uses futimes if available.
46686         (futimens, utimens): Support timespec==NULL, with same semantics
46687         as utime and utimens.
46688         * lib/utimens.h (futimens): New decl.
46689
46690 2004-11-23  Jim Meyering  <jim@meyering.net>
46691
46692         * lib/getopt_.h: Remove trailing blanks.
46693
46694 2004-11-23  Jim Meyering  <jim@meyering.net>
46695
46696         * lib/__fpending.c: Add comment.
46697
46698 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
46699
46700         * modules/canonicalize (Depends-on): Add xreadlink.
46701         Problem reported by James Youngman.
46702
46703 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46704
46705         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
46706         New macros.
46707         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
46708         optopt): Use them instead of invoking ## directly; otherwise, the
46709         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
46710
46711 2004-11-19  Bruno Haible  <bruno@clisp.org>
46712
46713         * lib/strtok_r.c: Move comments from here...
46714         * lib/strtok_r.h: ... to here.
46715
46716 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
46719         implementations that mishandle size_t overflow.
46720
46721 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46722
46723         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
46724         might fail.  Problem reported by Yoann Vandoorselaere.
46725         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
46726         implementations that mishandle size_t overflow.
46727
46728 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46729
46730         * modules/canon-host (Depends-on): Add strdup.
46731
46732 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46733
46734         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
46735
46736 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * lib/canon-host.c: Include "strdup.h".
46739         (canon_host): Use getaddrinfo if available, so that IPv6 works.
46740         Use strdup instead of malloc/strcpy to duplicate strings.
46741
46742         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
46743         (human_space_before_unit): New constant.
46744         * lib/human.c (human_readable): Support it.
46745
46746         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
46747         (xgetcwd): Set errno correctly when failing.
46748         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
46749         the failure is actually due to a PATH_MAX problem.
46750
46751         Further getopt changes to make it more likely that glibc will
46752         buy the changes back.
46753         * lib/getopt.c (POSIXLY_CORRECT): New constant.
46754         (getopt): Use it, so to preserve glibc semantic
46755         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
46756         when compiling for libc.
46757         * lib/getopt_.h (__getopt_argv_const): Bring it back.
46758         (getopt_long, getopt_long_only): Use it.
46759
46760         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
46761         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
46762         (getopt): Argv is now char * const *, as per standard.
46763         (_getopt_internal_r, _getopt_internal): Argv is now char **,
46764         not char *__getopt_argv_const *.
46765         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
46766         _getopt_long_only_r): Likewise.
46767         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
46768         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
46769         _getopt_long_r, _getopt_long_only_r): Likewise.
46770         * lib/getopt_.h (__getopt_argv_const): Remove.
46771         (getopt): Argv is now char * const *, as per standard.
46772
46773         * lib/getdate.y (tORDINAL): New token.
46774         (day, relunit): Allow it for relative times.
46775         (relative_time_table): Use tORDINAL for ordinals.
46776
46777 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46778
46779         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
46780         Document that "second" isn't allowed as an ordinal number.
46781
46782 2004-11-16  Jim Meyering  <jim@meyering.net>
46783
46784         * modules/closeout (Depends-on): Add fpending.
46785
46786 2004-11-15  Jim Meyering  <jim@meyering.net>
46787
46788         * lib/closeout.c: Include "__fpending.h" once again.
46789         Include <stdbool.h>.
46790         (close_stdout): Don't fail just because stdout was closed initially,
46791         since some programs don't write to stdout in the normal course of
46792         operation (other than --version and --help), and we don't want this
46793         function to make e.g. `touch file >&-' fail.
46794         But do fail if it was closed and someone has tried to write to it.
46795         E.g., `printf foo >&-' must fail.
46796
46797 2004-11-13  Jim Meyering  <jim@meyering.net>
46798
46799         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
46800
46801 2004-11-12  Simon Josefsson  <jas@extundo.com>
46802
46803         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
46804         small doc fix is still pending.
46805
46806 2004-11-11  Simon Josefsson  <jas@extundo.com>
46807
46808         * modules/strtok_r: New file.
46809
46810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46811         strtok_r.
46812
46813 2004-11-11  Simon Josefsson  <jas@extundo.com>
46814
46815         * m4/strtok_r.m4: New file.
46816
46817         * m4/getopt.m4: Replace opterr.
46818
46819 2004-11-11  Simon Josefsson  <jas@extundo.com>
46820
46821         * lib/strtok_r.h, strtok_r.c: New file.
46822
46823 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
46824
46825         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
46826         of replacing opterr, getopt, etc.  This should handle the
46827         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
46828
46829 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
46830
46831         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
46832         we can stop lying to compilers about the constness of argv when we
46833         are compiled outside glibc.
46834         (getopt, getopt_long, getopt_long_only): Use it.
46835         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
46836         _getopt_internal, getopt): Likewise.
46837         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
46838         _getopt_long_only_r): Likewise.
46839         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
46840         _getopt_long_r, _getopt_long_only_r): Likewise.
46841
46842         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
46843         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
46844         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
46845         the other external symbols.
46846         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
46847         declaration, since the above renaming now works around collisions.
46848
46849 2004-11-11  Jim Meyering  <jim@meyering.net>
46850
46851         * lib/linebreak.c: Remove trailing blanks.
46852         * lib/alloca_.h: Likewise.
46853         * lib/acosl.c: Likewise.
46854         * lib/euidaccess.c: Likewise.
46855         * lib/allocsa.h: Likewise.
46856
46857 2004-11-10  Simon Josefsson  <jas@extundo.com>
46858
46859         * m4/getaddrinfo.m4: New file.
46860
46861 2004-11-10  Simon Josefsson  <jas@extundo.com>
46862
46863         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
46864
46865 2004-11-10  Simon Josefsson  <jas@extundo.com>
46866
46867         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46868         getaddrinfo.
46869
46870         * modules/getaddrinfo: New file.
46871
46872 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46873
46874         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
46875
46876 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46877
46878         * lib/mktime.c (SHR): New macro, which is a portable
46879         substitute for >> that should work even on Crays.
46880         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
46881         Problem reported by Mark D. Baushke in
46882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
46883         * lib/getdate.y (SHR): Likewise.
46884         (tm_diff): Use it.
46885         * lib/strftime.c (SHR): Likewise.
46886         (tm_diff): Use it.
46887         * lib/quotearg.c (struct quoting_options): Use unsigned int for
46888         quote_these_too, so that right shifts are well defined.  All uses
46889         changed.
46890
46891 2004-11-10  Jim Meyering  <jim@meyering.net>
46892
46893         Ensure that no close failure goes unreported.
46894         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
46895         return early when it seems there's nothing to flush.
46896         Don't include __fpending.h.
46897
46898 2004-11-10  Jim Meyering  <jim@meyering.net>
46899
46900         * modules/closeout (Depends-on): Remove fpending.
46901
46902 2004-11-10  Jim Meyering  <jim@meyering.net>
46903
46904         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
46905
46906 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46907
46908         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
46909         gl_FUNC_STRFTIME.
46910         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
46911         and AC_REQUIRE when possible, to avoid duplicate checks.
46912         Check for <wchar.h>.
46913
46914 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46915
46916         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
46917
46918 2004-11-09  Bruno Haible  <bruno@clisp.org>
46919
46920         * m4/sockpfaf.m4: New file.
46921
46922 2004-11-05  Bruno Haible  <bruno@clisp.org>
46923
46924         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
46925         Reported by Mark D. Baushke <mdb@cvshome.org>.
46926
46927 2004-11-04  Bruno Haible  <bruno@clisp.org>
46928
46929         2004-09-11  Bruno Haible  <bruno@clisp.org>
46930                 * allocsa.valgrind: New file.
46931         2004-02-06  Bruno Haible  <bruno@clisp.org>
46932                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
46933                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
46934                 Reported by Christopher Seip <chris.seip@hp.com>.
46935
46936 2004-11-04  Bruno Haible  <bruno@clisp.org>
46937
46938         * modules/allocsa (Files): Add lib/allocsa.valgrind.
46939         (Makefile.am): Distribute it.
46940
46941 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46942
46943         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
46944         with errno == ERANGE if the buffer is too small.
46945         Problem reported by Mark D. Baushke.
46946
46947 2004-11-03  Albert Chin  <china@thewrittenword.com>
46948             Paul Eggert  <eggert@cs.ucla.edu>
46949
46950         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
46951         equivalent, substitute $ac_type for equivalent type rather than
46952         blindly using uint32_t *always* which won't work if uint32_t is not
46953         available.  Define _UINT32_T to work around typedef of uint32_t if
46954         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
46955         2.5.1.
46956
46957 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
46958
46959         * m4/jm-macros.m4: Sync from coreutils.
46960         (gl_MACROS): Check for mbrlen, for pathchk.
46961         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
46962
46963 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
46964
46965         * lib/xreadlink.c (MAXSIZE): New macro.
46966         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
46967         size does not exceed MAXSIZE.  Avoid cast.
46968         As suggested by Mark D. Baushke in
46969         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
46970         if readlink fails with buffer size just under MAXSIZE, try again
46971         with MAXSIZE.
46972
46973 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
46974
46975         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
46976
46977 2004-11-02  Derek R. Price  <derek@ximbiot.com>
46978         and  Paul Eggert  <eggert@cs.ucla.edu>
46979
46980         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
46981         (get_date): Overparenthesize to avoid GCC warning.
46982
46983 2004-11-02  Bruno Haible  <bruno@clisp.org>
46984
46985         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
46986         returns void.
46987
46988 2004-11-02  Bruno Haible  <bruno@clisp.org>
46989
46990         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
46991         function returns void.
46992
46993 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46994
46995         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
46996         fflush_unlocked, flockfile, funlockfile, funlockfile,
46997         fputs_unlocked, putc_unlocked.
46998
46999 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47000
47001         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
47002         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
47003         already declared.
47004
47005 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         * modules/getdate (Files): Add doc/getdate.texi.
47008         (Depends-on): Add setenv, xalloc.
47009
47010 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47011
47012         * lib/getdate.y: Add support for TZ="foo" within a date string.
47013         Fix some bugs near time_t boundaries.  Reject dates with
47014         out-of-range components, e.g., "Sept 31".
47015         Include <stdlib.h>, "setenv.h", "xalloc.h".
47016         (ISDIGIT_LOCALE): Remove; unused.
47017         Note that the TZ and time functions used here are not reentrant.
47018         (mktime_ok, get_tz): New functions.
47019         (TZBUFSIZE): New constant.
47020         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
47021         This requires that we sometimes generate our own TZ="XXX..." setting.
47022
47023 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47024
47025         * doc/getdate.texi: New file, from coreutils with modifications for
47026         the new TZ parsing.
47027
47028 2004-10-27  Derek R. Price  <derek@ximbiot.com>
47029
47030         * lib/mktime.c (not_equal_tm): Remove redundant check.
47031
47032 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47033
47034         * modules/regex (lib_SOURCES): Add regex.c.
47035         Reported by James Youngman in
47036         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
47037
47038 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47039
47040         * lib/getdate.y: Use Bison 1.875 features, and some minor
47041         code cleanups.  This change does not affect semantics.
47042         Don't include <stdlib.h>; no longer needed.
47043         Don't include unlocked-io.h; only the "#if TEST" code uses
47044         stdio, and performance isn't crucial there.
47045         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
47046         Bison 1.875 features as described below.
47047         All uses of "PC." replaced by "pc->".
47048         (YYSTYPE): Add a forward declaration.
47049         (yylex, yyerror): Use full prototypes in forward decls.
47050         Use "%pure-parser" rather than obsolescent "%pure_parser".
47051         Use %parse-param and %lex-param instead of obsolescent
47052         YYPARSE_PARAM and YYLEX_PARAM.
47053         (meridian_table, month_and_day_table, time_units_table,
47054         relative_time_table, time_zone_table, military_table,
47055         lookup_zone, lookup_word, get_date):
47056         Use NULL instead of 0 where appropriate.
47057         (to_hour): Avoid abort (), to avoid a dependency on
47058         stdlib.h.
47059         (yyerror, yylex): Now accepts parser_control * arg.
47060         (main) [TEST]: Use '\0' rather than 0 for char.
47061
47062 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47063
47064         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
47065
47066 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47067
47068         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
47069         It's now the caller's responsibility to handle the case where
47070         !HAVE_GETPAGESIZE && !defined getpagesize.
47071
47072         * lib/mktime.c (leapyear): Arg is long int, not int.
47073
47074 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
47075
47076         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
47077
47078 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47079
47080         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
47081         missing.  Problem reported by James Youngman.
47082
47083 2004-10-16  Simon Josefsson  <jas@extundo.com>
47084
47085         * gnulib-tool: Fix comments.  Fix parse problem.
47086         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
47087
47088 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
47089
47090         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
47091         implementation of getopt_long.  Problem reported by Alexander Taler in:
47092         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
47093
47094 2004-10-15  Bruno Haible  <bruno@clisp.org>
47095
47096         * gnulib-tool: Untabify. Initialize supplied_libname.
47097         (func_usage): More homogenous output.
47098         (func_modules_transitive_closure, func_modules_to_filelist,
47099         func_emit_lib_Makefile_am): New functions.
47100         (func_import): New function, extracted from big case statement. Use
47101         func_get_license, func_modules_transitive_closure,
47102         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
47103         opt_lgpl. Don't use test -a, as it's not portable.
47104         (func_create_testdir): Use func_modules_transitive_closure,
47105         func_modules_to_filelist, func_emit_lib_Makefile_am.
47106
47107 2004-10-15  Bruno Haible  <bruno@clisp.org>
47108
47109         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
47110
47111 2004-10-15  Bruno Haible  <bruno@clisp.org>
47112
47113         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
47114         the portions belonging to each module.
47115         Suggested by Derek Robert Price <derek@ximbiot.com>.
47116
47117 2004-10-12  Simon Josefsson  <jas@extundo.com>
47118
47119         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
47120         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
47121         to real functions.
47122
47123 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47124
47125         * modules/vsnprintf: New file.
47126
47127 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47128
47129         * m4/vsnprintf.m4: New file.
47130
47131 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47132
47133         * lib/vsnprintf.h: New file.
47134         * lib/vsnprintf.c: New file.
47135
47136 2004-10-11  Bruno Haible  <bruno@clisp.org>
47137
47138         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
47139         vsnprintf.
47140
47141 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
47144
47145 2004-10-07  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
47148         fits into the provided buffer.
47149
47150 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47151
47152         * lib/diacrit.c, diacrit.h: Add GPL notice.
47153
47154         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
47155         notice.
47156         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
47157         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
47158         This avoids a potential constant-folding bug.
47159
47160 2004-10-05  Bruno Haible  <bruno@clisp.org>
47161
47162         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
47163         for the declaration of strsep.
47164
47165 2004-10-05  Bruno Haible  <bruno@clisp.org>
47166
47167         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
47168
47169 2004-10-04  Simon Josefsson  <jas@extundo.com>
47170
47171         * modules/memmem: New file.
47172         * tests/test-memmem.c: New file.
47173         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
47174
47175 2004-10-04  Simon Josefsson  <jas@extundo.com>
47176
47177         * m4/memmem.m4: New file.
47178
47179 2004-10-04  Simon Josefsson  <jas@extundo.com>
47180
47181         * lib/memmem.h: New file.
47182         * lib/memmem.c: New file, taken from glibc.
47183
47184 2004-10-04  Simon Josefsson  <jas@extundo.com>
47185
47186         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
47187         '#ifdef USE_UNLOCKED_IO'.
47188
47189 2004-10-04  Simon Josefsson  <jas@extundo.com>
47190
47191         * config/srclist.txt: Add memmem from glibc.
47192
47193 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
47196
47197         * modules/argmatch, modules/argp, modules/closeout, modules/error,
47198         modules/exclude, modules/getdate, modules/getline,
47199         modules/getndelim2, modules/getpass, modules/getpass-gnu,
47200         modules/getusershell, modules/linebuffer, modules/md5,
47201         modules/mountlist, modules/posixtm, modules/readtokens,
47202         modules/readutmp, modules/regex, modules/sha1,
47203         modules/version-etc, modules/yesno:
47204         Remove dependency on unlocked-io.
47205
47206 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47207
47208         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
47209
47210         * m4/unlocked-io.m4: Add copyright notice.
47211         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
47212
47213 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47214
47215         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
47216         * lib/xmalloc.c (xmemdup): Likewise.
47217         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
47218         XFREE): Remove these long-obsolescent macros.
47219         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
47220         * lib/xstrdup.c: Remove.
47221
47222         * lib/regex.c (re_comp): Cast gettext return value to char *,
47223         Problem reported by Martin Neitzel via Mark D. Baushke.
47224
47225 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47226
47227         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
47228         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
47229         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
47230         regex.c, sha1.c, version-etc.c, yesno.c:
47231         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
47232         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
47233         the includer's responsibility.
47234
47235         Sync from coreutils.
47236
47237         * lib/modechange.c (mode_compile): Don't decrement a pointer that
47238         points to the start of a string, as the C Standard says the
47239         resulting behavior is undefined.
47240
47241         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
47242         simple -> simple_backups, numbered_existing ->
47243         numbered_existing_backups, numbered -> numbered_backups
47244         to avoid shadowing problems.  All uses changed.
47245         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
47246         * lib/backupfile.c (check_extension, numbered_backup):
47247         Rename locals to avoid shadowing 'basename'.
47248         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
47249         once.
47250
47251         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
47252         * lib/.cvsignore: Add getopt.h.
47253
47254 2004-10-04  Bruno Haible  <bruno@clisp.org>
47255
47256         * modules/README: New file.
47257         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
47258         not a module.
47259
47260 2004-10-02  Jim Meyering  <jim@meyering.net>
47261
47262         * lib/dirfd.h, getpagesize.h: Add copyright notice.
47263
47264 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47265
47266         * modules/strsep: New file.
47267
47268 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47269
47270         * m4/strsep.m4: New file.
47271
47272 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47273
47274         * lib/strsep.h: New file.
47275         * lib/strsep.c: New file.
47276
47277 2004-10-01  Simon Josefsson  <jas@extundo.com>
47278
47279         * lib/snprintf.c (snprintf): Handle size==0.
47280
47281 2004-10-01  Simon Josefsson  <jas@extundo.com>
47282             Bruno Haible  <bruno@clisp.org>
47283
47284         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
47285         (snprintf): Declare 'args'.
47286
47287 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
47288
47289         * lib/snprintf.c: Remove comments as to why each header is needed.
47290
47291 2004-10-01  Bruno Haible  <bruno@clisp.org>
47292
47293         * MODULES.html.sh: Add strsep.
47294
47295 2004-09-30  Simon Josefsson  <jas@extundo.com>
47296
47297         * modules/snprintf: New file.
47298
47299 2004-09-30  Simon Josefsson  <jas@extundo.com>
47300
47301         * m4/snprintf.m4: New file.
47302
47303 2004-09-30  Simon Josefsson  <jas@extundo.com>
47304
47305         * lib/snprintf.h, lib/snprintf.c: New files.
47306
47307 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47308
47309         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
47310         (hol_entry_help): Never translate an empty string.
47311         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
47312         * lib/argp.h (OPTION_NO_TRANS): New option.
47313
47314 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
47315
47316         * modules/argp (Maintainer): Replace Simon Josefsson
47317         by Sergey Poznyakoff.
47318
47319 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
47320
47321         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
47322         changes merged back into glibc.
47323
47324 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
47325
47326         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
47327
47328 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
47329
47330         * lib/xvasprintf.c: Include xalloc.h.
47331         (xvasprintf): Use xalloc_die, not xmalloc_die.
47332
47333 2004-09-29  Bruno Haible  <bruno@clisp.org>
47334
47335         * modules/alloca-opt: New file, derived from modules/alloca.
47336         * modules/allocsa: Depend on alloca-opt instead of alloca.
47337         * modules/setenv: Likewise.
47338         * modules/vasnprintf: Likewise.
47339         * MODULES.html.sh: Add alloca-opt.
47340
47341 2004-09-28  Simon Josefsson  <jas@extundo.com>
47342
47343         * gnulib-tool: New parameter --lgpl, to asseert that modules are
47344         LGPL, and to replace license template from GPL to LGPL.
47345
47346 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
47347
47348         * modules/dummy: Change license to LGPL.
47349
47350 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
47351
47352         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
47353
47354 2004-09-24  Simon Josefsson  <jas@extundo.com>
47355
47356         * modules/minmax (License): Change from GPL to LGPL.
47357
47358 2004-09-23  Simon Josefsson  <jas@extundo.com>
47359
47360         * gnulib-tool (--import): Typo.
47361
47362 2004-09-23  Simon Josefsson  <jas@extundo.com>
47363
47364         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
47365
47366 2004-09-22  Bruno Haible  <bruno@clisp.org>
47367
47368         * modules/*: Add 'License' field.
47369         * gnulib-tool: Accept --extract-license option.
47370         (func_get_license): New function.
47371
47372 2004-09-21  Bruno Haible  <bruno@clisp.org>
47373
47374         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
47375         Reported by Simon Josefsson.
47376
47377 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47378
47379         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
47380         gl_AC_TYPE_LONG_LONG.
47381
47382 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
47383
47384         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
47385
47386 2004-09-18  Simon Josefsson  <jas@extundo.com>
47387         and  Paul Eggert  <eggert@cs.ucla.edu>
47388
47389         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
47390         calls with autoreconf.  Define GL_LIB.
47391
47392 2004-09-14  Karl Berry  <karl@gnu.org>
47393
47394         * config/srclist.txt: unsync setenv.c, sigh.
47395
47396 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
47399         Problem reported by Bruno Haible in:
47400         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
47401
47402 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47403
47404         * config/srclist.txt: Comment out argp-pvh.c.
47405
47406 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
47409         in case some system header has #define'd it.  Problem reported by
47410         Soeren D. Schulze in
47411         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
47412
47413 2004-09-09  Karl Berry  <karl@gnu.org>
47414
47415         * regex.[ch]: delete from the root.  These were supposed to be
47416                 synced with emacs cvs, but this has not happened for about
47417                 a year, and anyway nothing else uses emacs regex.[ch].
47418                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
47419                 lib/regex[.ch] is untouched.
47420
47421 2004-09-09  Bruno Haible  <bruno@clisp.org>
47422
47423         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
47424
47425 2004-09-09  Bruno Haible  <bruno@clisp.org>
47426
47427         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
47428         modifications.
47429         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
47430
47431 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
47432
47433         * modules/xvasprintf: New file.
47434         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
47435
47436 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
47437
47438         * lib/xvasprintf.h: New file.
47439         * lib/xvasprintf.c: New file.
47440         * lib/xasprintf.c: New file.
47441
47442 2004-09-08  Bruno Haible  <bruno@clisp.org>
47443
47444         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
47445
47446 2004-09-08  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
47449         length is > INT_MAX.
47450         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
47451         more.
47452
47453 2004-09-08  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/stdint_.h: New file, taken from GNU clisp.
47456
47457 2004-09-08  Bruno Haible  <bruno@clisp.org>
47458             Oskar Liljeblad  <oskar@osk.mine.nu>
47459
47460         * modules/stdint: New file.
47461         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
47462
47463 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47464
47465         Import from coreutils.
47466         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
47467         strings on unbounded length.  alloca's performance benefits aren't
47468         that important here.
47469         (V_STRDUP): Remove.
47470         (parse_with_separator): New function, with most of the internals
47471         of the old parse_user_spec.  Allow user to omit both user and group,
47472         for compatibility with FreeBSD.
47473         Clone only the user name, not the entire spec.
47474         Do not set *uid, *gid unless entirely successful.
47475         Avoid memory leak in some failing cases.
47476         Fix regression for USER.GROUP reported by Dmitry V. Levin in
47477         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
47478         (parse_user_spec): Rewrite to use parse_with_separator.
47479
47480 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * modules/userspec: Don't depend on alloca.
47483
47484 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47485
47486         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
47487
47488 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
47491         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
47492         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
47493
47494 2004-08-16  Simon Josefsson  <jas@extundo.com>
47495
47496         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
47497         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
47498         Add --dry-run for --import.
47499         Let user provided command line parameters override configure.ac
47500         settings.
47501
47502 2004-08-12  Simon Josefsson  <jas@extundo.com>
47503
47504         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
47505         as discussed with Paul Eggert in threads rooted at
47506         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
47507         and
47508         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
47509         Before, the test was empty, and relied on ELIDE_CODE in source
47510         code.)
47511         (gl_PREREQ_GETOPT): New macro.
47512         (gl_GETOPT): Use them.
47513
47514 2004-08-12  Simon Josefsson  <jas@extundo.com>
47515
47516         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
47517         * lib/getopt_.h: Renamed from getopt.h.
47518
47519 2004-08-12  Simon Josefsson  <jas@extundo.com>
47520
47521         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
47522         Change default library name from libfoo to libgnu.
47523         Now, if you have a configure.ac that says:
47524                 gl_SOURCE_BASE(gl)
47525                 gl_M4_BASE(gl/m4)
47526                 gl_MODULES(error getopt etcetera)
47527                 gl_INIT
47528         you can import all you need by running:
47529                 ../gnulib/gnulib-tool --import
47530
47531         * modules/getopt (Files): Rename getopt.h to getopt_.h.
47532         (Makefile.am): Rewrite, use logic from argz.
47533         (Include): Use <getopt.h> instead of "getopt.h".
47534
47535 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
47536
47537         * modules/argp (Files): Add m4/unlocked-io.m4.
47538         (Depends-on): Add extensions.
47539
47540 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
47543         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
47544         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
47545         Check for program_invocation_name, program_invocation_short_name,
47546         flockfile, funlockfile, features.h, _getopt_long_only_r.
47547
47548 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
47549
47550         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
47551         its complicated substitute.
47552         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
47553         and program_invocation_name.
47554         (__argp_basename) [!_LIBC]: Remove; the only use was
47555         replaced by its body.
47556         (__argp_short_program_name): Change condition from
47557         !defined __argp_short_program_name to
47558         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
47559         to match argp-namefrob.h.
47560         (__argp_failure): Don't assume strerror_r returns char *.
47561         * lib/argp-parse.c (N_): Define unconditionally.
47562         (argp_default_options): Fill out initializers with 0 to avoid
47563         gcc warnings.
47564
47565 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
47566
47567         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
47568         getopt1.c.
47569
47570 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47571
47572         Merge from coreutils.
47573
47574         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
47575
47576         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
47577         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
47578
47579 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47580
47581         Merge from coreutils.
47582
47583         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
47584         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
47585         for Reliant Unix 5.43.
47586
47587         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
47588         (union fooround): Use uintmax_t, not long int.
47589         The rest is a merge from libc:
47590         [defined _LIBC]: Include <shlib-compat.h>.
47591         (_obstack) [defined _LIBC]: Remove after 2.3.4.
47592
47593         * lib/settime.c (settime): Recode to avoid warning with
47594         Sun Forte C 6U2.
47595
47596         * lib/strverscmp.c: Convert to UTF-8.
47597
47598 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
47599
47600         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
47601         m4/uintmax_t.m4.
47602
47603 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47604
47605         * modules/xalloc-die: New file.
47606         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
47607
47608         * modules/md5 (Files): Add m4/uint32_t.m4.
47609         * modules/sha1: Renamed from modules/sha.
47610         (Files):
47611         Rename lib/sha.h to lib/sha1.h.
47612         Rename lib/sha.c to lib/sha1.c.
47613         Rename m4/sha.m4 to m4/sha1.m4.
47614         (lib_SOURCES): Likewise.
47615         (configure.ac): Rename gl_SHA to gl_SHA1.
47616         (Include): sha.h -> sha1.h.
47617
47618 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47619
47620         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
47621         * m4/sha1.m4: Renamed from sha.m4.
47622         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
47623
47624 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
47625
47626         * lib/obstack.h (obstack_empty_p):
47627         Don't assume that chunk->contents is suitably aligned.
47628         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
47629         Likewise. Problem reported by Benno in
47630         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
47631
47632         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
47633         readable.  This could be improved further but it'd take some work.
47634
47635 2004-08-08  Simon Josefsson  <jas@extundo.com>
47636
47637         * modules/xgethostname (Depends-on): Remove exit and error (not
47638         used).
47639
47640         * modules/getpass-gnu: Add getpass.h.
47641         (Depends-on): Add stdbool.
47642         * modules/getpass: Add getpass.h.
47643
47644 2004-08-08  Simon Josefsson  <jas@extundo.com>
47645
47646         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
47647         Check getpass declaration.
47648
47649 2004-08-08  Simon Josefsson  <jas@extundo.com>
47650
47651         * lib/xgethostname.c: Don't include error.h (not used).
47652
47653         * lib/getpass.h: Add.
47654         * lib/getpass.c: Include getpass.h first.
47655
47656 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
47657
47658         * lib/xalloc-die.c: New file.
47659         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
47660         All uses removed.
47661         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
47662         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
47663         xalloc-die.c.
47664         (_, N_, xalloc_die): Move to xalloc-die.c.
47665         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
47666         so that we needn't mess with xalloc_msg_memory_exhausted.
47667
47668         * lib/sha1.h: Renamed from sha.h.
47669         (SHA1_H): Renamed from _SHA_H.
47670         (sha1_ctx): Renamed from sha_ctx.
47671         (sha1_init_ctx): Renamed from sha_init_ctx.
47672         (sha1_process_block): Renamed from sha_process_block.
47673         (sha1_process_bytes): Renamed from sha_process_bytes.
47674         (sha1_finish_ctx): Renamed from sha_finish_ctx.
47675         (sha1_read_ctx): Renamed from sha_read_ctx.
47676         (sha1_stream): Renamed from sha_stream.
47677         (sha1_buffer): Renamed from sha_buffer.
47678         * lib/sha1.c: Likewise; renamed from sha.c.
47679         Do not include <sys/types.h>.
47680         Include <stddef.h> rather than <stdlib.h>.
47681
47682 2004-08-08  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
47685         FILESYSTEM_PREFIX_LEN.
47686         * lib/progreloc.c: Likewise.
47687         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
47688
47689 2004-08-06  Simon Josefsson  <jas@extundo.com>
47690
47691         * modules/progname (Depends-on): Don't depend on stdbool.
47692
47693 2004-08-06  Simon Josefsson  <jas@extundo.com>
47694
47695         * modules/getsubopt: New file.
47696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47697         getsubopt.
47698
47699 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         More merge from coreutils.
47702
47703         * m4/utimens.m4, m4/utimecmp.m4: New files.
47704         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
47705         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
47706         prereq.m4, sha.m4: Import changes from coreutils.
47707
47708 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         More merge from coreutils.
47711         * modules/raise, modules/readtokens0, modules/utimens:
47712         * modules/utimecmp, module/xnanosleep: New files.
47713         * modules/strftime: Add lib/strftime.h.
47714         Change include from <time.h> to "strftime.h".
47715         * modules/yesno: Add lib/yesno.h.
47716         * modules/backupfile: Remove lib/addext.c.
47717         * modules/euidaccess: Add stat-macros.h.
47718         * modules/canonicalize, modules/euidaccess,
47719         modules/filemode, modules/lchown, modules/makepath,
47720         modules/rmdir, modules/stat: Likewise.
47721
47722 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         Merge from tar.
47725         * lib/argp-help.c (make_hol, hol_append): Don't assume that
47726         SIZE_MAX is a valid preprocessor constant.
47727         (__argp_basename): Change from "#ifndef _LIBC"
47728         to "#ifndef __argp_short_program_name", so that
47729         we don't compile these functions for tar.
47730
47731         More merges from coreutils.
47732         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
47733         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
47734         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
47735         * lib/addext.c: Remove; no longer needed.
47736         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
47737         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
47738         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
47739         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
47740         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
47741         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
47742         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
47743         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
47744         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
47745         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
47746         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
47747         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
47748         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
47749         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
47750         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
47751         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
47752         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
47753         Import changes from coreutils.
47754
47755 2004-08-05  Simon Josefsson  <jas@extundo.com>
47756
47757         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
47758
47759 2004-08-05  Simon Josefsson  <jas@extundo.com>
47760
47761         * m4/getsubopt.m4: New file.
47762
47763 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
47764
47765         Merge from coreutils.
47766
47767         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
47768         * m4/getcwd-path-max.m4: New files.
47769
47770         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
47771         FILESYSTEM_PREFIX_LEN ->
47772         FILE_SYSTEM_PREFIX_LEN.
47773         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
47774         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
47775         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
47776         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
47777
47778         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
47779         prerequisite modules now handle the DOS stuff.
47780         Don't check for unistd.h.
47781
47782 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
47783
47784         Merge from coreutils.
47785
47786         * lib/.gdb-history: Remove; this doesn't belong here.
47787
47788         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
47789         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
47790         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
47791         * lib/getcwd.c: New files.
47792
47793         * lib/dirname.h: Include <stdbool.h>.
47794         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
47795         for consistency with POSIX terminology.  All uses changed.
47796         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
47797         (strip_trailing_slashes): Use bool for booleans.
47798         * lib/stripslash.c (strip_trailing_slashes): Likewise.
47799
47800         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
47801         sometimes returns a positive errno value even when it succeeds.
47802         (print_errno_message) [!LIBC]: Fall back on strerror if
47803         __strerror_r fails.
47804
47805         * lib/path-concat.c (mempcpy): Don't define if a system header defines
47806         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
47807         (longest_relative_suffix): New function.
47808         (path_concat): Use it.  Assume first argument is not NULL.
47809         Port to DOS.  Omit redundant separators.
47810         Report an error instead of returning NULL.
47811         Use mempcpy instead of memcpy.
47812         (xpath_concat): Remove: not declared or used.
47813
47814         * lib/same.h: Include <stdbool.h>
47815         (same_name): Return bool, not int.
47816         * lib/same.c (same_name): Likewise.
47817         (errno): Don't declare; we assume C89 or better now.
47818
47819         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
47820         if not already defined.
47821
47822         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
47823         * lib/dup-safer.c (errno): Likewise.
47824
47825 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
47826
47827         Merge from coreutils.
47828         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
47829         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
47830         * modules/path-concat: Don't depend on strdup.
47831
47832 2004-08-03  Simon Josefsson  <jas@extundo.com>
47833
47834         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
47835         * lib/progname.h: Don't include stdbool.h.
47836
47837 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
47838
47839         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
47840         * MODULES.html.sh (func_all_modules): Remove fatal.
47841
47842 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
47845
47846 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
47849         working.
47850
47851 2004-08-02  Simon Josefsson  <jas@extundo.com>
47852
47853         * lib/getsubopt.h: New file, with comments from Bruno Haible.
47854         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
47855         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
47856
47857 2004-08-01  Simon Josefsson  <jas@extundo.com>
47858
47859         * lib/xgetdomainname.c: Include stdlib.h, for free().
47860
47861 2004-07-19  Bruno Haible  <bruno@clisp.org>
47862
47863         * MODULES.html.sh (func_all_modules): Add dummy.
47864
47865 2004-07-16  Simon Josefsson  <jas@extundo.com>
47866
47867         * modules/dummy: New file.
47868
47869 2004-07-16  Simon Josefsson  <jas@extundo.com>
47870
47871         * lib/dummy.c: New file.
47872
47873 2004-07-16  Bruno Haible  <bruno@clisp.org>
47874
47875         * lib/backupfile.h: Add extern "C" for C++.
47876         * lib/closeout.h: Likewise.
47877         * lib/copy-file.h: Likewise.
47878         * lib/findprog.h: Likewise.
47879         * lib/full-write.h: Likewise.
47880         * lib/pathname.h: Likewise.
47881         * lib/progname.h: Likewise.
47882         * lib/stpcpy.h: Likewise.
47883         * lib/stpncpy.h: Likewise.
47884         * lib/strcase.h: Likewise.
47885         * lib/strstr.h: Likewise.
47886         * lib/xalloc.h: Likewise.
47887
47888         * lib/mbswidth.h: Add extern "C" for C++.
47889         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
47890
47891 2004-07-13  Robert Millan  <robertmh@gnu.org>
47892
47893         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
47894
47895 2004-07-09  Simon Josefsson  <jas@extundo.com>
47896
47897         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
47898         failed without this.)
47899
47900 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47901
47902         * modules/chown (Files): Add lib/fchown-stub.c, since
47903         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
47904
47905 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47906
47907         * lib/fchown-stub.c: New file.
47908
47909 2004-06-24  Jim Meyering  <jim@meyering.net>
47910
47911         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
47912
47913 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47914
47915         * modules/argz: Omit "#include".
47916
47917         * MODULES.html.sh (func_all_modules): Add calloc, to match
47918         2004-06-01 addition of calloc module.
47919
47920 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47921
47922         * m4/argz.m4: New file, which is autoupdated from libtool.
47923
47924 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
47927         libtool.
47928
47929 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47930
47931         * config/srclist-update: Don't insist on "USA." before the
47932         close-comment, as libtool omits the period and puts the */ on a
47933         separate line.
47934         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
47935         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
47936
47937 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
47938
47939         * modules/argz: New file.
47940         * MODULES.html.sh (func_all_modules): Add argz.
47941
47942 2004-06-12  Jim Meyering  <jim@meyering.net>
47943         and  Paul Eggert  <eggert@cs.ucla.edu>
47944
47945         * modules/hash (Files): Add lib/xalloc.h.
47946         * modules/pipe (Depends-on): Add wait-process.
47947         * modules/stat (Depends-on): Add xalloc.
47948         * modules/userspec (Files): Add lib/userspec.h.
47949         * modules/xstrto
47950
47951         Upgrade from gettext-0.13.
47952         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
47953         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
47954         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
47955
47956 2004-06-10  Jim Meyering  <jim@meyering.net>
47957
47958         * lib/calloc.c: New file.
47959
47960 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47961
47962         * lib/getdate.y (yylex): Allow space between sign and number.
47963         Problem reported by Dan Jacobson.
47964
47965 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
47966
47967         Merge from coreutils CVS.
47968
47969         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
47970         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
47971         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
47972         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
47973         xstrtol.m4: Fix copyright date and/or serial number.
47974
47975         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
47976         See if we need an fchown replacement.
47977         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
47978         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
47979         and use the replacement function if we detect either defect.
47980
47981         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
47982         gl_UTIMECMP.
47983
47984 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
47985         and  Jim Meyering  <jim@meyering.net>
47986
47987         Merge from coreutils CVS.
47988
47989         * lib/stat-macros.h: New file, with contents from file-type.h
47990         and coreutils' system.h.
47991         * lib/file-type.c: Include "stat-macros.h".
47992         * lib/file-type.h (file_type): Move all macro definitions to new file,
47993         stat-macros.h.
47994
47995         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
47996         Wrap old code with this conditional.
47997         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
47998         function that does not dereference symlinks.
47999         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
48000
48001         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
48002         dependency problems.
48003         (xreadlink): Accept new arg SIZE, for efficiency.
48004         All decls and uses changed.
48005         * lib/xreadlink.h: Include <stddef.h>, for size_t.
48006
48007         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
48008         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
48009
48010         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
48011         sysexits.h.
48012
48013 2004-06-01  Jim Meyering  <jim@meyering.net>
48014
48015         * m4/calloc.m4: New file.
48016
48017 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
48020         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
48021         Also, fix a typo in a diagnostic.
48022
48023 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
48026         or AC_FUNC_REALLOC.
48027
48028 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
48029
48030         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
48031         macros to be defined.
48032         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
48033         the allocator returns NULL because the requested size is zero.
48034
48035 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48036
48037         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
48038         var.  Add comment explaining why libc still defines it.  This
48039         merges the following patch from glibc:
48040         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
48041
48042 2004-05-20  Andreas Schwab  <schwab@suse.de>
48043
48044         * m4/free.m4: Replace free if it not known to work, not the other
48045         way round.
48046
48047 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
48048
48049         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
48050         present in glibc since revision 1.1 of this file.
48051         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
48052         obstack_alignment_mask, obstack_alloc, obstack_base,
48053         obstack_blank, obstack_blank_fast, obstack_chunk_size,
48054         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
48055         obstack_grow0, obstack_init, obstack_int_grow,
48056         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
48057         obstack_next_free, obstack_object_size, obstack_ptr_grow,
48058         obstack_ptr_grow_fast, obstack_room): Remove declarations of
48059         nonexistent functions.
48060
48061 2004-05-18  Karl Berry  <karl@gnu.org>
48062
48063         * config/srclist.txt: break link for vasnprintf.c.
48064
48065 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48066
48067         Port obstack to the AS/400, where pointers are 16 bytes wide and
48068         you cannot cast an integer to a valid pointer.  This patch is
48069         currently waiting to be integrated into glibc; see
48070         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
48071
48072         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
48073         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
48074         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
48075         (struct obstack): temp member is now a union of a pointer and
48076         an integer, instead of an integer.  All integer uses changed.
48077         This does not affect the physical layout of struct obstack,
48078         except on hosts (like the AS/400) where the size or alignment of
48079         void * is greater than that of ptrdiff_t.
48080         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
48081         __STDC__)]: Store temporary in pointer member of union, not
48082         integer member.
48083         * lib/obstack.c: Include <stddef.h>, for offsetof.
48084         (struct fooalign): Remove; it doesn't need a name.
48085         (union fooround): Change double to long double, and add void *.
48086         (DEFAULT_ALIGNMENT): Use offsetof to compute.
48087         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
48088         not a macro.  Hence the values are always int; so remove all
48089         casts-to-int in uses.
48090
48091 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48092
48093         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
48094         we can get this patch merged into glibc.
48095
48096 2004-05-17  Derek R. Price  <derek@ximbiot.com>
48097             Paul Eggert  <eggert@cs.ucla.edu>
48098
48099         * m4/argp: Depend on alloca.
48100
48101 2004-05-17  Derek R. Price  <derek@ximbiot.com>
48102             Paul Eggert  <eggert@cs.ucla.edu>
48103
48104         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
48105         freecoding.
48106
48107 2004-05-17  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
48110         precision that consists of a '.' followed by an empty digit string.
48111         Patch by Tor Lillqvist <tml@iki.fi>.
48112
48113 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
48116         for backward compatibility with older code.  We need our own
48117         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
48118         it under some other name, and our alloca.h will define it.
48119
48120 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48121             Derek Price  <derek@ximbiot.com>
48122
48123         * lib/alloca.c: Include <alloca.h>, to get our interface.
48124         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
48125         include <alloca.h> first.  Use C89 prototype for alloca; this
48126         requires including <stddef.h> for size_t.  Use extern "C" if C++.
48127         Use #elif for simplicity, since we can assume C89 now.
48128         Don't try to source the system alloca.h since it will not be found
48129         and to prevent recursively including its replacement.
48130         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
48131         * lib/regex.c: Likewise.
48132
48133 2004-05-16  Derek Price  <derek@ximbiot.com>
48134             Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         getline cleanup.  This changes the getndelim2 API: both order of
48137         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
48138         no delimiter).
48139
48140         * lib/getline.c: Don't include stddef.h or stdio.h, since our
48141         interface does that.
48142         (getline): Always use getdelim, so that we don't have two
48143         copies of this code.
48144         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
48145         if available.
48146         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
48147         (GETNDELIM2_MAXIMUM): New macro.
48148         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
48149         instead of the old practice of delim2==0.  All callers changed.
48150         Return -1 on overflow, instead of returning junk.
48151         Do not set *linesize unless allocation succeeds.
48152         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
48153         that we include sys/types.h.
48154         * lib/getnline.h: Likewise.
48155         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
48156         (getndelim2): Reorder arguments.
48157         * lib/getnline.c (getnline, getndelim):
48158         Don't discard the NMAX argument.
48159         (getnline): Invoke getndelim, to avoid code duplication.
48160         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
48161         of (size_t) -1 by callers of the getnline family.
48162
48163 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48164
48165         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
48166         Check for gettimeofday.
48167         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
48168         Check for settimeofday, stime.
48169
48170 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48171
48172         * lib/nanosleep.c (suspended): Change its type from int to
48173         sig_atomic_t volatile.
48174         (first_call): Make it private to rpl_nanosleep, and have it
48175         be zero initially as that's a bit faster.
48176         (my_usleep): Round up fractional times instead of truncating them,
48177         as this is the usual meaning for 'sleep'.
48178
48179         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
48180         doesn't work.
48181         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
48182         (ENOSYS): Define if not defined.
48183         (settime): Fall back on stime if it exists and settimeofday fails.
48184         But don't bother with fallbacks if a method fails with errno == EPERM.
48185
48186 2004-05-11  Jim Meyering  <jim@meyering.net>
48187
48188         Prior to this change, the save_cwd caller required read access to the
48189         current directory on most systems (ones with the fchdir function).
48190
48191         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
48192         fails, try write-only, and finally, resort to using xgetcwd.
48193
48194 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48195
48196         * lib/obstack.c, obstack.h: Import changes from libc.
48197
48198 2004-04-28  Bruno Haible  <bruno@clisp.org>
48199
48200         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
48201         also implicitly appends .exe to executables.
48202         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
48203         accepts Windows pathnames.
48204         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
48205         Treat Cygwin like Windows, since it now accepts Windows pathnames.
48206         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
48207         Treat Cygwin like Windows, since it now accepts Windows pathnames.
48208         Reported by Derek Robert Price <derek@ximbiot.com>.
48209
48210 2004-04-21  Karl Berry  <karl@gnu.org>
48211
48212         * config/srclist.txt (localcharset.c): break sync.
48213
48214 2004-04-20  Paul Eggert  <eggert@twinsun.com>
48215
48216         * m4/host-os.m4: Add a copyright notice.
48217
48218 2004-04-20  Jim Meyering  <jim@meyering.net>
48219
48220         Change UTILS_ to gl_ in AC_DEFINE'd names.
48221         Change utils_- and jm_-prefixed variables, too.
48222         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
48223         UTILS_FUNC_MKDIR_TRAILING_SLASH.
48224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
48225
48226         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
48227         Don't emit trailing blanks.
48228         Also rename jm_-prefixed variables to have gl_ prefix.
48229
48230         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
48231         Also rename jm_-prefixed variables to have gl_ prefix.
48232
48233         * m4/jm-macros.m4: Reflect the renamings.
48234         * m4/prereq.m4: Likewise.
48235
48236 2004-04-20  Jim Meyering  <jim@meyering.net>
48237
48238         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
48239         memory.
48240
48241 2004-04-20  Jim Meyering  <jim@meyering.net>
48242             Bruno Haible  <bruno@clisp.org>
48243
48244         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
48245         memory when realloc fails.
48246
48247 2004-04-19  Jim Meyering  <jim@meyering.net>
48248
48249         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
48250         now that readutmp.c may call `free (0)'.
48251
48252 2004-04-19  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
48255         * m4/inttypes_h.m4: Likewise.
48256         * m4/stdint_h.m4: Likewise.
48257         * m4/intmax_t.m4: Likewise.
48258         * m4/uintmax_t.m4: Likewise.
48259
48260 2004-04-18  Jim Meyering  <jim@meyering.net>
48261
48262         * m4/prereq.m4: Don't forbid jm_ prefix.
48263
48264         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
48265         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
48266         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
48267         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
48268         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
48269         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
48270         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
48271         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
48272         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
48273         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
48274         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
48275         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
48276         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
48277         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
48278         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
48279         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
48280         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
48281         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
48282         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
48283
48284 2004-04-18  Jim Meyering  <jim@meyering.net>
48285
48286         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
48287         failure, don't leak memory and do call END_UTMP_ENT.
48288
48289 2004-04-16  Jim Meyering  <jim@meyering.net>
48290
48291         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
48292         coreutils' stat program.
48293         (gl_PREREQ): Don't require jm_PREREQ_STAT.
48294
48295 2004-04-11  Paul Eggert  <eggert@twinsun.com>
48296
48297         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
48298         C89.
48299         (CHAR_BIT): Remove, since we assume C89.
48300         Include <stdint.h> if available, as per current Autoconf CVS advice.
48301
48302 2004-03-31  Jim Meyering  <jim@meyering.net>
48303
48304         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
48305         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
48306         * m4/xalloc.m4: Likewise.
48307
48308 2004-03-30  Paul Eggert  <eggert@twinsun.com>
48309
48310         Merge from coreutils.
48311
48312         * m4/inttostr.m4: New file.
48313         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
48314         Require AM_STDBOOL_H and gl_TIMESPEC instead.
48315         Require gl_CLOCK_TIME.
48316         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
48317
48318 2004-03-30  Paul Eggert  <eggert@twinsun.com>
48319
48320         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
48321         not bool, to be more consistent with Unix conventions.
48322         Suggested by Bruno Haible.
48323
48324         Merge from coreutils.
48325
48326         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
48327         * lib/umaxtostr.c: New files.
48328
48329         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
48330         the usual <time.h> dance.
48331         (get_date): Change signature to support fractional time stamps.
48332         All callers changed.
48333         * lib/getdate.y: Include "getdate.h" first, as we can now
48334         assume C89 and don't need to worry about 'const'.
48335         Similarly, include "unlocked-io.h" near start, not in middle.
48336         Include <limits.h>.
48337         (textint.value): Use long int rather than int.
48338         (textint.digits): Use size_t rather than int.
48339         (BILLION, LOG10_BILLION): New constants.
48340         (parser_control): New member rel_ns.  Members day_ordinal,
48341         time_zone, month, day, hour, minutes, rel_year, rel_month,
48342         rel_day, rel_hour, rel_minutes, rel_seconds
48343         are now long int, not int.  Member seconds is now struct timespec,
48344         not int.  New member timespec_seen.  Members dates_seen, days_seen,
48345         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
48346         not int.
48347         (%union.intval): Now long int, not int.
48348         New member timespec.
48349         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
48350         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
48351         (spec): Now is a timespec or an item list.
48352         (timespec, items): New nonterminals.
48353         (time, rel, relunit, number, get_date):
48354         Add support for fractional seconds.
48355         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
48356         (gmtime, localtime, mktime): Remove decls; not needed with C89.
48357         (to_hour): First arg is now long int, not int.
48358         (to_year): Returns long int, not int.
48359         Don't treat year -70 like 70.
48360         (tm_diff): Returns long int, not int.
48361         (lookup_word): Use bool instead of int when appropriate.
48362         (yylex): Use size_t for count, not int.
48363         Detect overflow when parsing large integer constants.
48364         Add support for fractions.
48365         (get_date): Make pointers 'const' if possible.
48366         Use more-portable code to detect integer overflow.
48367         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
48368         Don't use ctime; it's not reliable if the year has >4 digits.
48369
48370         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
48371         This is for compatibility with BSD.
48372
48373         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
48374         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
48375         From coreutils' system.h.
48376
48377         * lib/userspec.c: Don't include "posixver.h".
48378         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
48379         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
48380         compatible extension.  Simplify code by removing a boolean int
48381         that was always nonzero if a string was nonnull.
48382
48383 2004-03-30  Jim Meyering  <jim@meyering.net>
48384
48385         Merge from coreutils.
48386
48387         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
48388         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
48389         on some systems one must include <grp.h> before it.
48390         Reported by Christian Krackowizer.
48391
48392 2004-03-30  Jim Meyering  <jim@meyering.net>
48393
48394         Merge from coreutils.
48395
48396         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
48397
48398         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
48399         an empty input stream.
48400
48401         * lib/readtokens.c: Include <stdbool.h>.
48402         (readtoken): Use `size_t' rather than int/long.
48403         All callers adjusted.
48404         Use `bool' rather than `int' where appropriate.
48405         Use memset rather than an explicit loop.
48406         Use x2nrealloc rather than xrealloc.
48407         Allow the use of `\0' as a delimiter.
48408         (readtokens): Likewise.
48409         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
48410
48411 2004-03-30  Jim Meyering  <jim@meyering.net>
48412
48413         * m4/realloc.m4: Remove file, since now it does no more than
48414         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
48415         the `configure.ac' section of module/realloc.
48416         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
48417
48418 2004-03-30  Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
48421         nonnull.
48422
48423 2004-03-29  Paul Eggert  <eggert@twinsun.com>
48424
48425         Merge changes to getloadavg.c from coreutils and Emacs.
48426
48427         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
48428         Define to an expression, not to the empty string.
48429         Include cloexec.h and xalloc.h.
48430         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
48431         Use set_cloexec_flag rather than rolling our own.
48432         * lib/cloexec.c, lib/cloexec.h: New files.
48433
48434 2004-03-29  Paul Eggert  <eggert@twinsun.com>
48435
48436         * m4/cloexec.m4: New file.
48437
48438 2004-03-18  Paul Eggert  <eggert@twinsun.com>
48439
48440         * lib/getopt.h: Sync with libc CVS.
48441
48442 2004-03-18  Paul Eggert  <eggert@twinsun.com>
48443             Bruno Haible  <bruno@clisp.org>
48444
48445         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
48446         mbswidth.
48447
48448 2004-03-18  Paul Eggert  <eggert@twinsun.com>
48449             Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/mbswidth.h: Include <wchar.h> only if
48452         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
48453         <wchar.h>.
48454         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
48455
48456 2004-03-09  Paul Eggert  <eggert@twinsun.com>
48457
48458         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
48459         Sync with libc CVS.
48460         * lib/getopt_int.h: New file, also synced from libc.
48461
48462 2004-03-09  Paul Eggert  <eggert@twinsun.com>
48463
48464         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
48465         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
48466         Bring back getopt.c, getopt.h, getopt1.c.
48467
48468 2004-03-07  Paul Eggert  <eggert@twinsun.com>
48469
48470         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
48471         All uses changed.  Check for sa_sigaction member; this fixes
48472         a bug first reported by Jason Andrade in
48473         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
48474
48475 2004-03-07  Paul Eggert  <eggert@twinsun.com>
48476
48477         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
48478         '#if' expressions.  Unlike the code it replaces, it does not
48479         depend on (defined _SC_PAGESIZE).  However, it does depend on
48480         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
48481         first reported by Jason Andrade in
48482         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
48483
48484 2004-02-25  Simon Josefsson  <jas@extundo.com>
48485
48486         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
48487
48488 2004-02-25  Simon Josefsson  <jas@extundo.com>
48489
48490         * lib/strdup.h: New file.
48491         * lib/strdup.c: Include it.
48492         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
48493         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
48494
48495 2004-02-23  Karl Berry  <karl@gnu.org>
48496
48497         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
48498         (from fencepost.gnu.org:/gd/gnuorg).
48499
48500 2004-02-23  Karl Berry  <karl@gnu.org>
48501
48502         * config/srclistvars.sh (GNUORG) [karl]: redefine.
48503         * config/srclist.txt: add maintain/standards documents.
48504
48505 2004-02-18  Bruno Haible  <bruno@clisp.org>
48506
48507         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
48508         Reported by Derek Robert Price <derek@ximbiot.com>.
48509
48510 2004-02-16  Karl Berry  <karl@gnu.org>
48511
48512         * config/mkinstalldirs, install-sh: update from automake.
48513
48514 2004-02-06  Karl Berry  <karl@gnu.org>
48515
48516         * m4/po.m4: update from gettext 0.14.1.
48517
48518 2004-02-06  Karl Berry  <karl@gnu.org>
48519
48520         * lib/config.charset: update from gettext 0.14.1.
48521
48522 2004-02-05  Paul Eggert  <eggert@twinsun.com>
48523
48524         Add comments and code, prompted by suggestions from Bruno Haible
48525         for sh-quote.
48526         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
48527         describing the enum quoting_style values.
48528         * lib/quotearg.c (quotearg_alloc): New function.
48529         (quotearg_buffer_restyled): Treat lone { and } as special.
48530         Treat = as special.  Work around bug with older shells
48531         that "see" a '\' that is really the 2nd byte of a multibyte char.
48532         Quote empty string with shell_quoting_style.
48533
48534 2004-02-03  Bruno Haible  <bruno@clisp.org>
48535
48536         * m4/pipe.m4: New file, from GNU gettext.
48537
48538 2004-02-03  Bruno Haible  <bruno@clisp.org>
48539
48540         * lib/pipe.h: New file, from GNU gettext.
48541         * lib/pipe.c: New file, from GNU gettext.
48542
48543 2004-01-27  Bruno Haible  <bruno@clisp.org>
48544
48545         * m4/execute.m4: New file, from GNU gettext.
48546
48547 2004-01-27  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/execute.h: New file, from GNU gettext.
48550         * lib/execute.c: New file, from GNU gettext.
48551         * lib/w32spawn.h: New file, from GNU gettext.
48552
48553 2004-01-24  Paul Eggert  <eggert@twinsun.com>
48554
48555         Merge from diffutils.
48556
48557         * lib/file-type.c (file_type): Add typed memory objects.
48558         * lib/file-type.h (S_TYPEISTMO): New macro.
48559
48560         * lib/c-stack.h (c_stack_action): Remove argv argument.
48561         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
48562         (die): Don't calculate message unless segv_action returns.
48563         (get_stack_location, min_address_from_argv, max_address_from_argv,
48564         volatile stack_base, volatile_stack_size): Remove.
48565         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
48566         that every segmentation violation is a stack overflow.  (Ouch!)
48567         See Debian bug 136249 (still outstanding) for more info about why
48568         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
48569
48570 2004-01-24  Paul Eggert  <eggert@twinsun.com>
48571
48572         Exit-status fix from coreutils.
48573
48574         Use exit_failure consistently in place of EXIT_FAILURE,
48575         so that program exit statuses are consistent on failure.
48576
48577         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
48578         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
48579         * lib/argmatch.h: Comment fix to match the above.
48580         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
48581         Now a macro referring to exit_failure, instead of a separate
48582         variable.  Include "exitfail.h" to get it.
48583         * lib/xstrtol.h: Include "exitfail.h".
48584         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
48585
48586         * lib/long-options.c (parse_long_options): Use prototype
48587         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
48588         for clarity.
48589
48590 2004-01-21  Jim Meyering  <jim@meyering.net>
48591
48592         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
48593         so as not to conflict with a different-sized __mktime_internal
48594         function in GNU libc.
48595         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
48596         Problem building statically-linked `ls' reported by Michael Brunnbauer.
48597
48598 2004-01-20  Karl Berry  <karl@gnu.org>
48599
48600         * config/config.guess: update from config.
48601
48602         * config/srclistvars.sh: GNUWWWLICENSES for karl.
48603
48604 2004-01-20  Bruno Haible  <bruno@clisp.org>
48605
48606         Safer stack allocation.
48607         * lib/setenv.c: Include allocsa.h.
48608         (alloca): Remove fallback definition.
48609         (freea): Remove macro.
48610         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
48611         instead of freea.
48612
48613 2004-01-20  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/eealloc.m4: New file, from GNU gettext.
48616
48617 2004-01-20  Bruno Haible  <bruno@clisp.org>
48618
48619         * m4/allocsa.m4: New file, from GNU gettext.
48620
48621 2004-01-20  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/xallocsa.h: New file, from GNU gettext.
48624         * lib/xallocsa.c: New file, from GNU gettext.
48625
48626 2004-01-20  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
48629
48630 2004-01-20  Bruno Haible  <bruno@clisp.org>
48631
48632         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
48633         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
48634         specially.
48635
48636 2004-01-20  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
48639         patch.
48640
48641 2004-01-20  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
48644
48645 2004-01-20  Bruno Haible  <bruno@clisp.org>
48646
48647         * lib/eealloc.h: New file.
48648
48649 2004-01-20  Bruno Haible  <bruno@clisp.org>
48650
48651         * lib/binary-io.h: Avoid warnings on Cygwin.
48652
48653 2004-01-20  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/allocsa.h: New file, from GNU gettext.
48656         * lib/allocsa.c: New file, from GNU gettext.
48657
48658 2004-01-18  Karl Berry  <karl@gnu.org>
48659
48660         * doc/gpl.texi, doc/lgpl.texi: new files.
48661
48662 2004-01-18  Karl Berry  <karl@gnu.org>
48663
48664         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
48665         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
48666
48667 2004-01-15  Paul Eggert  <eggert@twinsun.com>
48668
48669         Merge from coreutils.
48670
48671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
48672         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
48673         (gl_DEFAULT_POSIX2_VERSION): Move
48674         the documentation from 'configure' into 'config.hin',
48675         so that 'configure --help' isn't burdened by it and
48676         we don't have to worry about its formatting there.
48677         Reword the documentation so that it's more succinct
48678         and can be run together into a single paragraph.
48679         * m4/same.m4 (gl_SAME): Check for pathconf.
48680
48681 2004-01-15  Paul Eggert  <eggert@twinsun.com>
48682
48683         Merge from coreutils.
48684
48685         * lib/posixver.c: Include posixver.h.
48686
48687         * lib/same.c: Include <stdbool.h>, <limits.h>.
48688         (_POSIX_NAME_MAX): Define if not defined.
48689         (MIN): New macro.
48690         (same_name): If file names are silently truncated, report
48691         that the file names are the same if they are the same after
48692         the silent truncation.
48693
48694         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
48695         conversion function.
48696         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
48697         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
48698         longer needed.
48699
48700 2004-01-15  Jim Meyering  <jim@meyering.net>
48701
48702         Merge from coreutils.
48703
48704         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
48705         if no library is required.
48706         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
48707         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
48708         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
48709         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
48710         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
48711         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
48712         value, $ac_cv_search_crypt, if it's "none required".
48713         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
48714         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
48715         not gl_FUNC_GETLOADAVG.
48716         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
48717         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
48718
48719 2004-01-15  Jim Meyering  <jim@meyering.net>
48720
48721         Merge from coreutils.
48722
48723         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
48724         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
48725         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
48726
48727         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
48728         optional configure-time default.
48729
48730         * lib/version-etc.c (version_etc_copyright): Update copyright date.
48731
48732         * lib/xreadlink.c (xreadlink): Correct outdated comment.
48733
48734 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
48735
48736         Merge from coreutils.
48737
48738         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
48739         value, $ac_cv_search_nanosleep, if it's "none required".
48740
48741 2004-01-14  Paul Eggert  <eggert@twinsun.com>
48742
48743         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
48744         with like-named macro in fnmatch.c.
48745         (EXT): Use an internal constant instead.
48746
48747         Merge fnmatch patches from glibc.
48748         * lib/fnmatch.c (mbsinit): Remove define.
48749         Add libc_hidden_ver (__fnmatch, fnmatch).
48750         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
48751         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
48752
48753 2004-01-14  Karl Berry  <karl@gnu.org>
48754
48755         * config/install-sh: update from automake.
48756
48757 2004-01-13  Karl Berry  <karl@gnu.org>
48758
48759         * config/install-sh: update from automake.
48760
48761 2004-01-09  Karl Berry  <karl@gnu.org>
48762
48763         * config/install-sh: update from automake.
48764
48765 2004-01-05  Karl Berry  <karl@gnu.org>
48766
48767         * config/config.{sub,guess}: update from config.
48768
48769 2003-12-31  Karl Berry  <karl@gnu.org>
48770
48771         * config/depcomp: update from automake.
48772
48773 2003-12-14  Karl Berry  <karl@gnu.org>
48774
48775         * lib/config.charset: update from gettext-runtime.
48776
48777 2003-12-03  Paul Eggert  <eggert@twinsun.com>
48778
48779         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
48780         Bug reported by Alfred M. Szmidt.
48781
48782 2003-12-03  Bruno Haible  <bruno@clisp.org>
48783
48784         * m4/gettext.m4: Upgrade from gettext-0.13.
48785         * m4/po.m4: Upgrade from gettext-0.13.
48786         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
48787         * m4/intmax.m4: New file, from gettext-0.13.
48788         * m4/printf-posix.m4: New file, from gettext-0.13.
48789
48790 2003-11-29  Karl Berry  <karl@gnu.org>
48791
48792         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
48793
48794 2003-11-25  Paul Eggert  <eggert@twinsun.com>
48795             Bruno Haible  <bruno@clisp.org>
48796
48797         * lib/printf-parse.h: Don't include sys/types.h.
48798         (ARG_NONE): New macro.
48799         (char_directive): Change type of *arg_index fields to size_t.
48800         * lib/printf-parse.c: Don't include sys/types.h.
48801         (SSIZE_MAX): Remove macro.
48802         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
48803         Remove unnecessary overflow check.
48804         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
48805         fields.
48806
48807 2003-11-25  Bruno Haible  <bruno@clisp.org>
48808
48809         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
48810
48811 2003-11-25  Bruno Haible  <bruno@clisp.org>
48812
48813         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
48814         gt_TYPE_SSIZE_T.
48815
48816 2003-11-24  Paul Eggert  <eggert@twinsun.com>
48817
48818         * modules/alloca: Remove dependency on xalloc.
48819
48820 2003-11-24  Paul Eggert  <eggert@twinsun.com>
48821
48822         * lib/alloca.c: Remove dependency on xalloc module.
48823         (xalloc_die): Remove.
48824         (memory_full) [!defined emacs]: New macro.
48825         [!defined emacs]: Don't include xalloc.h.
48826         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
48827         address arithmetic overflows.  Change datatypes a bit to avoid
48828         unnecessary casts.
48829
48830 2003-11-22  Jim Meyering  <jim@meyering.net>
48831
48832         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
48833         s/size/size_t/.
48834
48835 2003-11-21  Karl Berry  <karl@gnu.org>
48836
48837         * config/config.{sub,guess}: update from config.
48838
48839 2003-11-18  Karl Berry  <karl@gnu.org>
48840
48841         * config/config.{sub,guess}: update from config.
48842
48843         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
48844
48845 2003-11-17  Paul Eggert  <eggert@twinsun.com>
48846
48847         * README: Mention that S+T cannot overflow if S is the size of
48848         an existing object and T is sufficiently small.
48849
48850 2003-11-17  Jim Meyering  <jim@meyering.net>
48851
48852         On systems without utime and without a utimes function capable of
48853         dealing with a NULL struct utimbuf* argument, this utime replacement
48854         could -- in unusual circumstances -- leak a file descriptor.
48855         * lib/utime.c: Include <unistd.h> and <errno.h>.
48856         (utime_null): Be sure to close `fd' and to preserve errno.
48857         Reported by Geoff Collyer via Arnold Robbins.
48858
48859 2003-11-17  Bruno Haible  <bruno@clisp.org>
48860
48861         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
48862         (Depends-on): Add xsize.
48863
48864 2003-11-17  Bruno Haible  <bruno@clisp.org>
48865
48866         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
48867
48868 2003-11-17  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/vasnprintf.c (alloca): Remove fallback definition.
48871         (freea): Remove definition.
48872         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
48873         Reported by Paul Eggert.
48874
48875 2003-11-16  Paul Eggert  <eggert@twinsun.com>
48876             Bruno Haible  <bruno@clisp.org>
48877
48878         Protect against address arithmetic overflow.
48879         * lib/printf-args.h: Include stddef.h.
48880         (arguments): Change type of field 'count' to size_t.
48881         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
48882         'unsigned int' where appropriate.
48883         * lib/printf-parse.h: Include sys/types.h.
48884         (char_directive): Change type of *arg_index fields to ssize_t.
48885         (char_directives): Change type of fields 'count', max_*_length to
48886         size_t.
48887         * lib/printf-parse.c: Include sys/types.h and xsize.h.
48888         (SSIZE_MAX): Define fallback value.
48889         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
48890         instead of 'int' where appropriate. Check a_allocated, d_allocated
48891         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
48892         * lib/vasnprintf.c: Include xsize.h.
48893         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
48894         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
48895         overflow. Avoid wraparound when converting a width or precision from
48896         decimal to binary.
48897
48898 2003-11-16  Bruno Haible  <bruno@clisp.org>
48899
48900         Update from GNU gettext.
48901         * lib/printf-parse.c: Generalize to it can be compiled for wide
48902         strings.
48903         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
48904         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
48905         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
48906         SNPRINTF): New macros.
48907         Don't include <alloca.h> if the file is used inside libintl.
48908         (local_wcslen): New function, for Solaris 2.5.1.
48909         (VASNPRINTF): Use it instead of wcslen.
48910
48911 2003-11-16  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/xsize.h (xmax): New function.
48914         (xsum, xsum3, xsum4): Declare as "pure" functions.
48915
48916 2003-11-12  Paul Eggert  <eggert@twinsun.com>
48917
48918         * modules/xalloc (Files): Undo latest change, since xalloc.h
48919         no longer needs SIZE_MAX or PTRDIFF_MAX.
48920
48921 2003-11-12  Paul Eggert  <eggert@twinsun.com>
48922
48923         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
48924         gl_PTRDIFF_MAX.
48925
48926 2003-11-12  Paul Eggert  <eggert@twinsun.com>
48927
48928         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
48929         "return", to pacify some unknown compiler.  Problem reported
48930         by Joerg Schilling.
48931
48932 2003-11-12  Paul Eggert  <eggert@twinsun.com>
48933
48934         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
48935         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
48936         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
48937         heuristic is just as accurate as far as we know, and it removes a
48938         dependency on size_max.m4 and ptrdiff_max.m4.
48939
48940 2003-11-11  Bruno Haible  <bruno@clisp.org>
48941
48942         * modules/xsize (Files): Add m4/size_max.m4.
48943         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
48944
48945 2003-11-11  Bruno Haible  <bruno@clisp.org>
48946
48947         * m4/size_max.m4: New file.
48948         * m4/ptrdiff_max.m4: New file.
48949         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
48950         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
48951         (gl_XALLOC): Invoke it.
48952
48953 2003-11-11  Bruno Haible  <bruno@clisp.org>
48954
48955         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
48956         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
48957         defined.
48958
48959 2003-11-10  Paul Eggert  <eggert@twinsun.com>
48960
48961         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
48962         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
48963         rejected some allocations of exactly SIZE_MAX - 2 bytes.
48964         From Bruno Haible.
48965         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
48966         not (size_t) -1, since it's defined here.
48967
48968 2003-11-09  Karl Berry  <karl@gnu.org>
48969
48970         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
48971
48972 2003-11-06  Paul Eggert  <eggert@twinsun.com>
48973
48974         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
48975         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
48976         Reject sizes of exactly SIZE_MAX bytes.
48977         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
48978         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
48979
48980 2003-11-05  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/xsize.h: Include limits.h, to avoid a possible collision with
48983         SIZE_MAX defined in <limits.h> on Solaris.
48984
48985 2003-11-04  Jim Meyering  <jim@meyering.net>
48986
48987         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
48988         variable names, rather than @VAR@.
48989         * modules/poll: Likewise.
48990
48991 2003-11-04  Bruno Haible  <bruno@clisp.org>
48992
48993         * modules/xsize: New file.
48994         * modules/linebreak: Depend on xsize.
48995         * MODULES.html.sh (func_all_modules): Add xsize.
48996
48997 2003-11-04  Bruno Haible  <bruno@clisp.org>
48998
48999         * m4/xsize.m4: New file.
49000
49001 2003-11-04  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/xsize.h: New file.
49004         * lib/linebreak.c: Include xsize.h.
49005         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
49006         argument for overflow.
49007         Suggested by Paul Eggert.
49008
49009 2003-11-03  Karl Berry  <karl@gnu.org>
49010
49011         * config/config.{guess,sub}: update from config.
49012
49013 2003-11-03  Jim Meyering  <jim@meyering.net>
49014
49015         * modules/userspec (lib_SOURCES): Add userspec.h.
49016         (Include): Add "userspec.h".
49017         Improve description.
49018
49019 2003-11-03  Jim Meyering  <jim@meyering.net>
49020
49021         * lib/userspec.c: Include "userspec.h".
49022         * lib/userspec.h: New file.
49023
49024 2003-11-03  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
49027
49028 2003-11-03  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
49031         available, to avoid (extremely rare) race condition.
49032         Suggested by Paul Eggert.
49033
49034 2003-11-02  Karl Berry  <karl@gnu.org>
49035
49036         * config/srclist.txt (vasprintf.c): sync broken, sigh.
49037
49038 2003-10-31  Paul Eggert  <eggert@twinsun.com>
49039
49040         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
49041         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
49042         (read_filesystem_list): Set and use me_type_malloced.
49043         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
49044         whatever the type happens to be), for brevity and consistency.
49045         Check for size calculation overflow on Alphas running OSF/1.
49046
49047 2003-10-31  Jim Meyering  <jim@meyering.net>
49048
49049         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
49050
49051         * lib/linebuffer.c: Include <string.h> for declaration of memset.
49052
49053 2003-10-30  Paul Eggert  <eggert@twinsun.com>
49054             Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
49057         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
49058
49059 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49060
49061         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
49062         netbsd*-gnu*.  Suggested by Robert Millan.
49063
49064 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49065
49066         * modules/group-member: Depend on stdbool.
49067
49068 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49069
49070         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
49071
49072 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49073
49074         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
49075         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
49076         after the 'gnu' in these cases.  This fixes some bugs in the
49077         previous change, and is based on suggestions by Robert Millan.
49078
49079 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49080
49081         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
49082         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
49083         no longer needed.
49084         * lib/quotearg.c (quotearg_n_options): Use it.
49085         * lib/group-member.c: Include <stdbool.h>.
49086         (free_group_info): Arg is now const *; don't free arg.
49087         (get_group_info): Now returns bool and accepts struct group_info *,
49088         rather than returning a malloc'ed struct group_info *.
49089         All uses changed.  Check for overflow in internal size calculation.
49090
49091         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
49092         rather than xmalloc/xrealloc.
49093         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
49094         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
49095         conformance bug: the old code used a pointer after freeing the
49096         storage that it addressed.
49097         * lib/hash.c (hash_initialize): Simplify the code by using
49098         xalloc_oversized rather than doing it by hand.
49099         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
49100         the buffer preserved.  Use free and xmalloc instead.
49101         * lib/quotearg.c (quotearg_n_options): Likewise.
49102         Use a simpler test for size overflow.  Don't use xalloc_oversized
49103         because unsigned int might be wider than size_t (!); this suggests
49104         that we should switch from unsigned int to size_t for slot numbers.
49105
49106 2003-10-28  Paul Eggert  <eggert@twinsun.com>
49107
49108         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
49109         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
49110         NetBSD kernels.  Requested by Richard Stallman.
49111
49112 2003-10-27  Paul Eggert  <eggert@twinsun.com>
49113
49114         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
49115         to allocate the returned structure.  Do not allocate a subarray,
49116         as x2nrealloc will do that.
49117         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
49118         instead of xnrealloc.
49119         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
49120
49121 2003-10-27  Bruno Haible  <bruno@clisp.org>
49122
49123         * lib/stdbool_.h: Better support for BeOS.
49124
49125 2003-10-26  Paul Eggert  <eggert@twinsun.com>
49126
49127         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
49128         now uses inline.
49129
49130 2003-10-26  Paul Eggert  <eggert@twinsun.com>
49131
49132         * lib/xalloc.h (xalloc_oversized): New static inline function, for
49133         callers that want to do their own size-overflow checking.  Include
49134         <stdbool.h>, since xalloc_oversized returns bool.
49135         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
49136         to use xalloc_oversized.
49137
49138         Add two functions x2realloc, x2nrealloc, for programs that grow
49139         arrays dynamically by doubling their sizes.
49140         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
49141         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
49142         New functions.
49143
49144         Port to C99 semantics for 'inline' of external functions.
49145         Bug reported by Bruno Haible.
49146         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
49147         with the old contents of xnmalloc.
49148         (xnmalloc, xmalloc): Use it.
49149         (xnrealloc_inline): New static inline function,
49150         with the old contents of xnrealloc.
49151         (xnrealloc, xrealloc): Use it.
49152
49153         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
49154         that.
49155
49156 2003-10-26  Karl Berry  <karl@gnu.org>
49157
49158         * config/srclist.txt (COPYING.DOC): no longer available from
49159         /gd/gnuorg; don't know where the ultimate source is.
49160
49161 2003-10-25  Paul Eggert  <eggert@twinsun.com>
49162
49163         Fix several address-calculation bugs in the hash modules,
49164         plus some minor code cleanup.
49165
49166         * lib/hash.h: Include <stdbool.h>, for bool.
49167         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
49168         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
49169         hash_get_n_entries, hash_get_max_bucket_length,
49170         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
49171         hash_rehash): Use size_t rather than unsigned.
49172         * lib/hash.c (struct hash_table, hash_get_n_buckets,
49173         hash_get_n_buckets_used, hash_get_n_entries,
49174         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
49175         hash_get_entries, hash_do_for_each, hash_string, is_prime,
49176         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
49177         Likewise.
49178         (SIZE_MAX): Define if not defined.
49179         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
49180         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
49181         hash_print):
49182         Use const * when possible.
49183         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
49184         (check_tuning): Fix bug: if tuning parameters were very close to
49185         0 or 1, rounding errors could have caused subscript violations.
49186         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
49187         (hash_initialize): Add 'fail:' label
49188         to free table and return NULL, and use it to simplify code.
49189         Use calloc rather than clearing the storage ourself.
49190         (hash_initialize, hash_rehash): Check for arithmetic overflow in
49191         buffer size calculations.
49192         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
49193         Include <stddef.h>, for size_t.
49194         * lib/hash-pjw.c (hash_pjw): Likewise.
49195         Switch to method described by Bruno Haible.
49196         Include <limits.h>, for CHAR_BIT.
49197         (SIZE_BITS): New macro.
49198
49199 2003-10-23  Paul Eggert  <eggert@twinsun.com>
49200
49201         * m4/getline.m4 (AM_FUNC_GETLINE):
49202         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
49203         hosts.  Problem reported by Derek Robert Price in
49204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
49205         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
49206         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
49207
49208 2003-10-21  Paul Eggert  <eggert@twinsun.com>
49209
49210         * lib/getndelim2.c (getndelim2): When size calculation overflows,
49211         ceiling the allocation at NMAX bytes rather than silently
49212         discarding input bytes before NMAX is reached.  This makes
49213         a difference only if NMAX exceeds SIZE_MAX / 2.
49214
49215         * lib/obstack.c: Merge from glibc.
49216         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
49217         Add libc_hidden_def (_obstack_newchunk).
49218         (_obstack_free) [! defined _LIBC]: Remove.
49219         [defined _LIBC]: Make a strong alias from obstack_free, rather than
49220         a clone of the function body.
49221         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
49222         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
49223
49224         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
49225         glibc.
49226         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
49227         arg to memcpy.
49228
49229         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
49230         (obstack_ptr_grow_fast, obstack_int_grow_fast):
49231         Don't use lvalue casts, as GCC plans to remove support for them
49232         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
49233         was also present in the non-GCC version, indicating that this
49234         code had always been buggy and had never been widely used.
49235         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
49236         Use the fast variant of each macro, rather than copying the
49237         definiens of the fast variant; that way, we'll be more likely to
49238         catch future bugs in the fast variants.
49239
49240 2003-10-20  Bruno Haible  <bruno@clisp.org>
49241
49242         * modules/wait-process: New file.
49243         * MODULES.html.sh (func_all_modules): Add wait-process.
49244
49245 2003-10-20  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/wait-process.m4: New file.
49248
49249 2003-10-20  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/wait-process.h: New file, from GNU gettext.
49252         * lib/wait-process.c: New file, from GNU gettext.
49253
49254 2003-10-19  Jim Meyering  <jim@meyering.net>
49255
49256         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
49257         HPUX 10.20.
49258
49259 2003-10-18  Karl Berry  <karl@gnu.org>
49260
49261         * config/config.guess: update from config.
49262
49263 2003-10-16  Paul Eggert  <eggert@twinsun.com>
49264
49265         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
49266         (getgroups): First arg is int, not size_t.
49267         Don't let 'free' mangle errno.
49268
49269 2003-10-16  Paul Eggert  <eggert@twinsun.com>
49270
49271         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
49272
49273 2003-10-16  Karl Berry  <karl@gnu.org>
49274
49275         * config/config.{guess,sub}: update from config.
49276
49277 2003-10-16  Jim Meyering  <jim@meyering.net>
49278
49279         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
49280         memcpy.
49281
49282 2003-10-15  Paul Eggert  <eggert@twinsun.com>
49283
49284         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
49285         (SIZE_MAX): Remove.
49286         (new_exclude, add_exclude_file): Initial size no longer needs to
49287         be a power of 2.
49288         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
49289         our own address arithmetic overflow checking.
49290
49291         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
49292         (fnmatch): Do not alloca more than 2000 wide characters;
49293         instead, use malloc for large buffers.
49294         Check for address arithmetic overflow, and return -1
49295         with errno set to ENOMEM in that case.
49296         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
49297         (NEW_PATTERN): Do not alloca more than 8000 bytes;
49298         instead, return -1.  Check for address arithmetic overflow.
49299
49300 2003-10-14  Paul Eggert  <eggert@twinsun.com>
49301
49302         Handle invalid suffixes and overflow independently, so that
49303         callers can treat them independently as needed.  Fix some bugs in
49304         suffix handling, e.g., "100k@" was not diagnosed as an invalid
49305         suffix for a human-readable blocksize.  The major caller-visible
49306         change is the addition of a new
49307         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
49308         that both overflow and suffix chars were found.
49309
49310         * lib/human.c (humblock): Don't check separately for invalid suffix
49311         char; that is xstrtoumax's job (now that its bug is fixed).
49312         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
49313         INTMAX_MAX]: New macros.
49314         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
49315         TYPE_MAXIMUM): New macros.
49316         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
49317         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
49318         if overflow occurs, as it's what __strtol does and it's more useful
49319         in practice.
49320         (__xstrtol): If __strtol reports some error other than ERANGE,
49321         reflect it to the caller as LONGINT_INVALID.  If it reports
49322         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
49323         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
49324         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
49325         value.
49326         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
49327         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
49328         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
49329         [defined UINTMAX_MAX]: New macros.
49330
49331 2003-10-14  Bruno Haible  <bruno@clisp.org>
49332
49333         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
49334
49335 2003-10-14  Bruno Haible  <bruno@clisp.org>
49336
49337         * m4/sig_atomic_t: New file, from GNU gettext.
49338         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
49339
49340 2003-10-14  Bruno Haible  <bruno@clisp.org>
49341
49342         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
49343         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
49344         Also use volatile where needed.
49345
49346 2003-10-12  Paul Eggert  <eggert@twinsun.com>
49347
49348         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
49349         Change maintainer from Bruno Haible to 'all'.
49350
49351 2003-10-12  Paul Eggert  <eggert@twinsun.com>
49352
49353         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
49354
49355 2003-10-12  Paul Eggert  <eggert@twinsun.com>
49356
49357         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
49358         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
49359         and define in terms of the other primitives.
49360         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
49361         (SIZE_MAX): Define if not already defined.
49362         (array_size_overflow): New function.
49363         (xalloc_die): Abort instead of exiting if 'error' returns.
49364         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
49365         (xmalloc, xrealloc): Use them.
49366         (xcalloc): Check for address arithmetic overflow.
49367         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
49368         a bit faster than strcpy.
49369
49370 2003-10-10  Simon Josefsson  <jas@extundo.com>
49371
49372         * modules/argp (Depends-on): Add restrict and strcase.
49373
49374 2003-10-10  Simon Josefsson  <jas@extundo.com>
49375
49376         * m4/argp.m4: Add AC_C_INLINE.
49377
49378 2003-10-08  Paul Eggert  <eggert@twinsun.com>
49379
49380         Merge getpass from libc, plus a few fixes.
49381
49382         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
49383         Include <stdbool.h>.
49384         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
49385         __fsetlocking to empty.
49386         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
49387         do include <bits/libc-lock.h>.
49388         Do not include <fcntl.h>; not needed.
49389         [_LIBC]: Include <wchar.h>.
49390         (NOTCANCEL_MODE): New macro.
49391         (flockfile, funlockfile) [_LIBC]: New macros.
49392         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
49393         [!_LIBC]: New macros.
49394         (call_fclose): New function.
49395         (getpass): Use it.  Save tty stream separately; this simplifies the
49396         code and makes it more reliable if stdin happens to equal stdout.
49397         Invoke __fsetlocking on tty.
49398         Handle thread cancellation if needed.
49399         Namespace cleanup (use __tcgetattr, __getline).
49400         Use bool for Booleans.
49401         [USE_IN_LIBIO]: Handle wide streams.
49402         [!_LIBC]: Unconditionally do the fseek, since we don't know what
49403         stream might go where.
49404
49405         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
49406         doesn't have to include <stdio.h> before us.
49407         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
49408         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
49409         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
49410         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
49411         if not declared, so that we can use getpass.c code from libc without
49412         rewriting it.
49413         (flockfile, ftrylockfile, funlockfile): New macros.
49414
49415 2003-10-08  Paul Eggert  <eggert@twinsun.com>
49416
49417         * modules/getpass: Depend on stdbool.
49418
49419 2003-10-08  Paul Eggert  <eggert@twinsun.com>
49420
49421         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
49422
49423 2003-10-07  Karl Berry  <karl@gnu.org>
49424
49425         * config/config.{guess,sub}: update from config.
49426
49427 2003-10-06  Jim Meyering  <jim@meyering.net>
49428             Bruno Haible  <bruno@clisp.org>
49429
49430         This lets translators provide better translations for the
49431         "Written by ..." part of --version output.
49432         * lib/version-etc.h: Include stdarg.h.
49433         (version_etc_copyright): Declare as readonly.
49434         (version_etc): Make this function variadic with a NULL-terminated list
49435         of author name strings.
49436         (version_etc_va): New declaration.
49437         * lib/version-etc.c: Include stdarg.h, stdlib.h.
49438         (version_etc_copyright): Declare as readonly.
49439         (version_etc_va): New function. Provide a different translatable string
49440         for each possible number of authors < 10. Abbreviate when there are 10
49441         authors or more.
49442         (version_etc): Make this function variadic. Call version_etc_va.
49443         Suggestion from Gary V. Vaughan.
49444
49445         * lib/long-options.h (parse_long_options): Change prototype: the
49446         authors string is moved to the end and becomes variadic.
49447         * lib/long-options.c: Include stdarg.h.
49448         (parse_long_options): Make this function variadic, too.
49449         Call version_etc_va, not version_etc.
49450
49451 2003-10-06  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/version-etc-2: Remove file.
49454         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
49455
49456 2003-10-06  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/fatal-signal: New file.
49459         * MODULES.html.sh (func_all_modules): Add fatal-signal.
49460
49461 2003-10-06  Bruno Haible  <bruno@clisp.org>
49462
49463         * m4/fatal-signal.m4: New file.
49464         * m4/signalblocking.m4: New file, from GNU gettext.
49465
49466 2003-10-06  Bruno Haible  <bruno@clisp.org>
49467
49468         * lib/version-etc-2.h: Remove file.
49469         * lib/version-etc-2.c: Remove file.
49470
49471 2003-10-06  Bruno Haible  <bruno@clisp.org>
49472
49473         * lib/fatal-signal.h: New file, from GNU gettext.
49474         * lib/fatal-signal.c: New file, from GNU gettext.
49475
49476 2003-10-05  Paul Eggert  <eggert@twinsun.com>
49477
49478         * README: Rework advice for preventing empty .o files.
49479         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
49480         not <sys/types.h>.
49481
49482 2003-10-04  Karl Berry  <karl@gnu.org>
49483
49484         * lib/argp*: update from libc.
49485
49486 2003-10-04  Karl Berry  <karl@gnu.org>
49487
49488         * config/config.{guess,sub}: update from config.
49489
49490 2003-10-02  Bruno Haible  <bruno@clisp.org>
49491
49492         * modules/lchown (Include): Add lchown.h.
49493         * modules/time_r (Include): Use "..." syntax.
49494         * modules/xgetdomainname (Include): Add xgetdomainname.h.
49495
49496 2003-10-01  Simon Josefsson  <jas@extundo.com>
49497
49498         * MODULES.html.sh (func_all_modules): Move gethostname from section
49499         'based on' to section 'lacking' POSIX:2001.
49500
49501 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
49502
49503         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
49504         to output mode on the same stream.
49505
49506 2003-09-29  Paul Eggert  <eggert@twinsun.com>
49507
49508         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
49509         Fix arg typo in previous patch.
49510
49511 2003-09-28  Jim Meyering  <jim@meyering.net>
49512
49513         * lib/error.c: Correct cpp indentation.
49514
49515 2003-09-27  Paul Eggert  <eggert@twinsun.com>
49516
49517         * modules/free: New file.
49518
49519 2003-09-27  Paul Eggert  <eggert@twinsun.com>
49520
49521         * m4/free.m4: New file.
49522
49523 2003-09-27  Paul Eggert  <eggert@twinsun.com>
49524
49525         * lib/minmax.h (MIN, MAX)
49526         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
49527         Omit the special code that used __typeof__, since we worry that
49528         it could be more trouble than it's worth.  See:
49529         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
49530         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
49531
49532         * lib/free.c: New file.
49533
49534 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
49535
49536         Trivial fixes to Makefile.am parts of module listings.
49537         * modules/strstr: Append strstr.h to lib_SOURCES.
49538         * modules/strcase: Likewise, for strcase.h.
49539
49540 2003-09-27  Karl Berry  <karl@gnu.org>
49541
49542         * config/mkinstalldirs: update from automake.
49543
49544 2003-09-26  Paul Eggert  <eggert@twinsun.com>
49545
49546         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
49547         (error_tail): Do not loop, reallocating temporary buffer, since
49548         the output cannot contain more wide characters than the input
49549         contains bytes, the size must be big enough already.  This avoids
49550         one potential size overflow calculation.  Check for size overflow
49551         when calculating temporary buffer size.  Free temporary buffer
49552         when done, if it was allocated with malloc; this plugs a memory
49553         leak.  Remove casts from void * to pointers, that are no longer
49554         needed now that we're assuming C89 or better.
49555
49556         Merge error changes from glibc.
49557
49558         * lib/error.c, error.h: Update copyright notice header to match glibc.
49559         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
49560         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
49561         Disable cancellation while printing error.
49562         * lib/error.h: Prepend __ to parameter names.
49563
49564 2003-09-26  Jim Meyering  <jim@meyering.net>
49565
49566         * lib/error.c (error_tail): Move some declarations
49567         into inner scope where the local variables are used.
49568
49569 2003-09-26  Bruno Haible  <bruno@clisp.org>
49570
49571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
49572         stpncpy().
49573         Don't define stpncpy through config.h; it's now done through stpncpy.h.
49574
49575 2003-09-26  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/stpncpy.h (gnu_stpncpy): New declaration.
49578         (stpncpy): Define as alias for gnu_stpncpy.
49579         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
49580
49581 2003-09-25  Simon Josefsson  <jas@extundo.com>
49582
49583         * lib/xgetdomainname.h: New file.
49584         * lib/xgetdomainname.c: New file.
49585
49586 2003-09-25  Simon Josefsson  <jas@extundo.com>
49587             Bruno Haible  <bruno@clisp.org>
49588
49589         * modules/getdomainname: New file.
49590         * modules/xgetdomainname: New file.
49591         * MODULES.html.sh (func_all_modules): Add getdomainname,
49592         xgetdomainname.
49593
49594 2003-09-25  Simon Josefsson  <jas@extundo.com>
49595             Bruno Haible  <bruno@clisp.org>
49596
49597         * m4/getdomainname.m4: New file.
49598
49599 2003-09-25  Simon Josefsson  <jas@extundo.com>
49600             Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/getdomainname.h: New file.
49603         * lib/getdomainname.c: New file.
49604
49605 2003-09-25  Karl Berry  <karl@gnu.org>
49606
49607         * lib/argp-fmtstream.c, argp-help.c: update from libc.
49608
49609 2003-09-25  Karl Berry  <karl@gnu.org>
49610
49611         * config/install-sh: update from automake.
49612
49613 2003-09-25  Bruno Haible  <bruno@clisp.org>
49614
49615         * modules/version-etc-2: New file, from modules/version-etc with
49616         modifications.
49617         * MODULES.html.sh (func_all_modules): Add version-etc-2.
49618
49619 2003-09-25  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
49622         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
49623
49624 2003-09-24  Simon Josefsson  <jas@extundo.com>
49625
49626         * modules/xgethostname: Add xgethostname.h.
49627
49628 2003-09-24  Paul Eggert  <eggert@twinsun.com>
49629
49630         * lib/linebuffer.c (freebuffer): Don't free the argument, just
49631         the buffer associated with the argument.  Bug reported by
49632         Simon Josefsson.
49633
49634 2003-09-24  Paul Eggert  <eggert@twinsun.com>
49635
49636         * README: Document assumptions that 'int' is at least 32 bits
49637         wide, that integer arithmetic is 2's complement without overflow,
49638         that there are no holes in integer values, that adding sizes of
49639         two nonoverlapping objects can't overflow, and that all-bits-zero
49640         yields scalar zero.  Fix spelling and capitalization typos.
49641
49642 2003-09-19  Karl Berry  <karl@gnu.org>
49643
49644         * lib/argp.h: update from libc.
49645
49646 2003-09-17  Paul Eggert  <eggert@twinsun.com>
49647
49648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
49649         to avoid spurious warnings like "AC_RUN_IFELSE was called before
49650         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
49651
49652 2003-09-17  Paul Eggert  <eggert@twinsun.com>
49653
49654         * gnulib-tool: Use "test -h", not "test -L", for portability
49655         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
49656         (tags_regexp): Remove, since \| doesn't conform to POSIX.
49657         (sed_extract_prog): Issue s commands one-by-one, rather than
49658         using \| in one s command.
49659
49660 2003-09-16  Paul Eggert  <eggert@twinsun.com>
49661
49662         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
49663         input error, instead of returning NULL the next time we are called
49664         (and therefore losing track of errno).
49665
49666 2003-09-16  Bruno Haible  <bruno@clisp.org>
49667
49668         * gnulib-tool (func_create_testdir): Warn about duplicated
49669         dependencies.
49670
49671 2003-09-15  Paul Eggert  <eggert@twinsun.com>
49672
49673         * modules/argmatch, modules/fatal, modules/obstack,
49674         modules/xalloc, modules/xgethostname: Sort dependencies by
49675         importance, not alphabetically.
49676
49677 2003-09-15  Paul Eggert  <eggert@twinsun.com>
49678
49679         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
49680         fails, so that the caller gets the proper errno.
49681
49682         * lib/readutmp.c (read_utmp): Likewise.
49683         Check for fstat error.  Close stream and free storage
49684         when failing.
49685
49686 2003-09-14  Karl Berry  <karl@gnu.org>
49687
49688         * config/srclist.txt (strdup.c): disable for c89 changes.
49689
49690 2003-09-14  Jim Meyering  <jim@meyering.net>
49691
49692         * lib/getloadavg.c: Correct cpp indentation.
49693         * lib/strdup.c: Likewise.
49694         * lib/vasnprintf.c: Likewise.
49695
49696 2003-09-14  Bruno Haible  <bruno@clisp.org>
49697
49698         * modules/fwriteerror: New file.
49699         * MODULES.html.sh (func_all_modules): Add fwriteerror.
49700
49701 2003-09-14  Bruno Haible  <bruno@clisp.org>
49702
49703         * lib/fwriteerror.h: New file.
49704         * lib/fwriteerror.c: New file.
49705
49706 2003-09-12  Paul Eggert  <eggert@twinsun.com>
49707
49708         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
49709         modules/xgethostname, modules/xalloc: Depend on exit.
49710
49711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
49712
49713         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
49714
49715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
49716         and AC_MINIX, too, so that their extensions are available.
49717
49718         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
49719         This macro has been superseded by gl_BACKUPFILE.
49720
49721         More patches to assume C89 or better.
49722
49723         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
49724
49725         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
49726         unconditionally.
49727         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
49728         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
49729         Include <string.h>, <stdlib.h> unconditionally.
49730         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
49731         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
49732         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
49733         headers or for string.h.
49734         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
49735         or strtoul.
49736
49737         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
49738         headers.
49739         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
49740         * m4/userspec.m4 (gl_USERSPEC): Likewise.
49741         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
49742         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
49743         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
49745         memcpy, memset.
49746         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
49747         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
49748         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
49749         strtol.
49750         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
49751         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
49752         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
49753         strtoul.
49754
49755 2003-09-12  Paul Eggert  <eggert@twinsun.com>
49756
49757         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
49758         * lib/obstack.c [!defined _LIBC]: Likewise.
49759         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
49760         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
49761         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
49762
49763         More changes to assume C89 or better.
49764
49765         * lib/error.c (error_tail): Assume vprintf.
49766
49767         * lib/argmatch.c (getenv): Remove decl.
49768         * lib/progreloc.c (get_full_program_name): Define via prototype.
49769         * lib/setenv.c (clearenv): Likewise.
49770         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
49771         needed.
49772         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
49773         (malloc, memcpy): Remove decls.
49774         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
49775         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
49776         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
49777         (memcpy): Remove macro.
49778         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
49779         (__P): Remove.  All uses removed.
49780         (PTR): Remove.  All uses changed to void *.
49781         (CHAR_BIT, NULL): Remove.
49782         (spaces, zeros, memset_space, memset_zero)
49783         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
49784         Remove.
49785         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
49786         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
49787         Define with prototype.
49788         Remove now-unnecessary prototype decl.
49789         (extra_args_spec): Assume ANSI C.  All uses changed.
49790         (extra_args_spec_iso): Remove.
49791         (my_strftime, emacs_strftimeu): Define via prototype.
49792         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
49793         unconditionally.
49794         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
49795         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
49796         (strtoul, strtol): Remove decls.
49797         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
49798         LONG_MAX): Remove.
49799         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
49800         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
49801         (LOCALE_PARAM_PROTO): New macro.
49802         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
49803         (INTERNAL (strtol), strtol): Define with a prototype.
49804         (PARAMS): Remove.  All uses removed.
49805         * lib/tempname.c: Include <string.h> unconditionally.
49806         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
49807         * lib/xgethostname.c (main): Define with a prototype.
49808         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
49809         Include <stdlib.h> unconditionally.
49810         (calloc, malloc, realloc, free): Remove decls.
49811         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
49812         Include <stdlib.h> unconditionally.  Sort include file names.
49813         (strtod): Remove.
49814         (xstrtod): Define with a prototype.
49815         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
49816         (strtol, strtoul): Remove decls.
49817
49818 2003-09-11  Paul Eggert  <eggert@twinsun.com>
49819
49820         More patches to assume C89 or better.
49821         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
49822         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
49823         string.h, memchr, STDC_HEADERS.
49824
49825 2003-09-11  Paul Eggert  <eggert@twinsun.com>
49826
49827         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
49828         Include <stdlib.h>, <string.h> unconditionally.
49829         Remove now-unnecessary cast to char *.
49830         * lib/strnlen.c: Include <string.h> unconditionally.
49831         * lib/yesno.c (yesno): Define with a prototype.
49832
49833 2003-09-11  Bruno Haible  <bruno@clisp.org>
49834
49835         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
49836
49837 2003-09-10  Jim Meyering  <jim@meyering.net>
49838
49839         * lib/error.c: Correct indentation of cpp directives.
49840
49841 2003-09-10  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
49844         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
49845         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
49846         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
49847         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
49848         <stdlib.h> and <string.h> checks.
49849         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
49850         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
49851
49852 2003-09-10  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/strcspn.c: Include <string.h> unconditionally.
49855         * lib/strpbrk.c: Include <string.h> unconditionally.
49856         * lib/strstr.c: Include <string.h> unconditionally.
49857         * lib/unicodeio.c: Include <string.h> unconditionally.
49858         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
49859         * lib/unsetenv.c: Likewise.
49860         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
49861         * lib/yesno.c: Include <stdlib.h> unconditionally.
49862         (rpmatch): Add prototype.
49863
49864 2003-09-09  Paul Eggert  <eggert@twinsun.com>
49865
49866         More patches to assume C89 or better.
49867         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
49868         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
49869         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
49870         or for string.h.
49871         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
49872         stdlib.h.
49873         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
49874         C headers.
49875         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
49876         string.h.
49877         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
49878         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
49879         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
49880         or for string.h.
49881         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
49882         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
49883         C headers.
49884         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
49885         memcpy.
49886         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
49887         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
49888         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
49889         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
49890         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
49891         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
49892         string.h, free.
49893         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
49894         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
49895         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
49896         C headers, or for string.h.
49897         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
49898         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
49899         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
49900         headers, memory.h, stdlib.h, string.h, strings.h.
49901         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
49902         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
49903         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
49904         strchr.
49905         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
49906         headers, memory.h, string.h.
49907         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
49908         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
49909         free.
49910         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
49911         headers.
49912         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
49913         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
49914         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
49915         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
49916         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
49917
49918 2003-09-09  Paul Eggert  <eggert@twinsun.com>
49919
49920         More K&R removal.
49921
49922         * lib/acosl.c (main): Use a prototype.
49923         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
49924         tanl.c: Likewise.
49925
49926         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
49927
49928         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
49929         (getopt, etopt_long, getopt_long_only, _getopt_internal)
49930         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
49931         with a prototype.
49932         * lib/getopt.c (const): Remove macro.
49933         Include <string.h> unconditionally.
49934         (my_index): Remove; all uses changed to strchr.
49935         (strlen): Remove decl.
49936         (exchange): Remove forward decl; no longer needed.
49937         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
49938         Define with prototype.
49939         * lib/getopt1.c (const): Remove macro.
49940         (getopt_long, getopt_long_only, main): Define with prototype.
49941
49942         * lib/getugroups.c: Include <string.h> unconditionally.
49943
49944         * lib/getusershell.c: Include <stdlib.h> unconditionally.
49945         (getusershell, setusershell, endusershell, readname, main):
49946         Define with prototypes.
49947
49948         * lib/group-member.c: Include group-member.h first.
49949         Include <stdlib.h> unconditionally.
49950
49951         * lib/hard-locale.c: Include hard-locale.h first.
49952         Include <stdlib.h>, <string.h> unconditionally.
49953
49954         * lib/hash.c (free, malloc): Remove decls.
49955         Include <stdlib.h> unconditionally.
49956
49957         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
49958         (getenv): Do not declare.
49959
49960         * lib/idcache.c: Include <string.h> unconditionally.
49961
49962         * lib/long-options.c: Include long-options.h first, to test interface.
49963         Include <stdlib.h> unconditionally.
49964
49965         * lib/makepath.c: Include makepath.h first, to test interface.
49966         Include <stdlib.h> and <string.h> unconditionally.
49967
49968         * lib/linebuffer.c: Include <stdlib.h>.
49969         (free): Remove decl.
49970
49971         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
49972         stddef.h. rpl_malloc returns void *, not char *.
49973         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
49974         prototype.
49975
49976         * lib/md5.h: Include <limits.h> unconditionally.
49977         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
49978         (__P): Remove; all uses removed.
49979         * lib/md5.c: Include "md5.h" first.
49980         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
49981         md5_buffer, md5_process_bytes, md5_process_block):
49982         Define with prototypes.
49983         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
49984         * lib/sha.c: Include "sha.h" first.
49985         Include <stdlib.h>, <string.h> unconditionally.
49986
49987         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
49988         * lib/memcmp.c (__ptr_t): Likewise.
49989         * lib/memrchr.c (__ptr_t): Likewise.
49990         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
49991         Include <string.h> unconditionally.
49992         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
49993         * lib/memchr.c: Include <stdlib.h> unconditionally.
49994         * lib/memchr.c (LONG_MAX): Remove.
49995         * lib/memrchr.c (LONG_MAX): Likewise.
49996         * lib/memchr.c (__memchr): Define via a prototype.
49997         * lib/memrchr.c (__memrchr): Likewise.
49998         * lib/memcmp.c (__P): Remove, and remove all uses.
49999         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
50000         Remove forward decls; no longer needed.
50001         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
50002         Use types required by C89 in prototype.
50003
50004         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
50005         * lib/savedir.c: Likewise.
50006         * lib/mkdir.c (free): Remove decl.
50007         * lib/rmdir.c (rmdir): Define with a prototype.
50008         * lib/savedir.c: Include savedir.h first, to test interface.
50009
50010         * lib/mktime.c (STDC_HEADERS): Remove.
50011         Include <stdlib.h>, <string.h> unconditionally.
50012
50013         * lib/modechange.c: Include <stdlib.h> unconditionally.
50014         (malloc): Remove decl.
50015
50016         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
50017         (free): Remove decl.
50018
50019         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
50020         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
50021         (This type really should be intptr_t, but that's a C99ism.)
50022         (_obstack_memcpy): Remove: all uses changed to memcpy.
50023         Include <string.h> unconditionally.
50024         (struct obstack): Assume __STDC__ for types of members
50025         chunkfun, freefun, extra_arg.
50026         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
50027         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
50028         obstack_begin, obstack_specify_allocation,
50029         obstack_specify_allocation_with_arg, obstack_chunkfun,
50030         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
50031         Remove unprototyped decls and the macros that use them.
50032         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
50033         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
50034         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
50035         (defined __STDC__ && __STDC__)]:
50036         Remove nonprototyped code.
50037         Include <stdlib.h> unconditionally.
50038         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
50039         _obstack_allocated_p, _obstack_free, obstack_free,
50040         _obstack_memory_used, print_and_abort):
50041         Define using prototypes.
50042         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
50043         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
50044         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
50045         obstack_next_free, obstack_object_size, obstack_room) [0]:
50046         Remove unused, unprototyped code.
50047
50048         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
50049
50050         * lib/physmem.c (physmem_total, physmem_available, main): Define
50051         with prototypes.
50052
50053         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
50054         (main): Define with a prototype.
50055
50056         * lib/posixver.c (getenv): Remove decl.
50057
50058         * lib/putenv.c (malloc): Returns void *, not char *.
50059         Include <string.h> unconditionally.
50060         (strchr, memcpy, NULL): Do not define.
50061
50062         * lib/readtokens.c: Include readtokens.h first, to test interface.
50063         Include <stdlib.h>, <string.h> unconditionally.
50064         (init_tokenbuffer): Define with a prototype.
50065
50066         * lib/regex.c (PARAMS): Remove.  All uses removed.
50067         All uses of _RE_ARGS removed, too.
50068         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50069         unconditionally.
50070         (bzero): Assume memset exists.
50071         (memcmp, memcpy, NULL): Remove.
50072         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
50073         char, or assignments to local vars of type signed char.
50074         (init_syntax_once, PREFIX(extract_number_and_incr),
50075         PREFIX(print_partial_compiled_pattern),
50076         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
50077         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
50078         PREFIX(regex_grow_registers), PREFIX(regex_compile),
50079         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
50080         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
50081         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
50082         wcs_compile_range, byte_compile_range, truncate_wchar,
50083         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
50084         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
50085         count_mbs_length, wcs_re_match_2_internal,
50086         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
50087         PREFIX(alt_match_null_string_p),
50088         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
50089         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
50090         regfree, PREFIX(extract_number)): Define with prototype.  Remove
50091         now-unnecessary declaration, if any.
50092         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
50093         regcomp, regexec):
50094         Remove now-unnecessary casts among pointer types.
50095         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
50096
50097         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
50098         (free): Remove decl.
50099
50100         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
50101
50102         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
50103         (free): Remove decl.
50104
50105         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
50106         * lib/xgetcwd.c: Likewise.
50107
50108         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
50109         (free): Remove decl.
50110
50111         * lib/strchrnul.c (strchrnul): Define with a prototype.
50112         Fix bug: c_in was not converted to char before searching.
50113
50114         The following changes are not K&R related:
50115
50116         * lib/group-member.h: Include <sys/types.h>, so that this file is
50117         self-contained.
50118         * lib/makepath.h: Likewise.
50119
50120         * lib/getusershell.c (readname, default_index, line_size, readname):
50121         Use size_t, not int, for sizes.
50122         (readname): If the size overflows, report an error instead of
50123         looping forever.
50124
50125 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50126
50127         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
50128         libc.
50129
50130 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50131
50132         * README: New section: portability guidelines.
50133
50134 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
50135
50136         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
50137         C89 spec.
50138
50139 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
50140
50141         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
50142
50143 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50144
50145         Assume C89 or better; remove K&R cruft.
50146         A few of these changes were first proposed by Derek Robert Price
50147         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
50148
50149         * lib/addext.c: Include <string.h> unconditionally.
50150         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
50151         Don't declare getenv or malloc.
50152
50153         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
50154         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
50155         (NULL): Remove.
50156         (find_stack_direction, alloca): Use prototypes.
50157
50158         * lib/atexit.c (atexit): Define using a prototype.
50159
50160         * lib/basename.c, dirname.c, stripslash.c:
50161         Include <string.h> unconditionally.
50162
50163         * lib/bcopy.c: Include <stddef.h>.
50164         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
50165
50166         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
50167
50168         * lib/error.h (error, error_at_line, error_print_progname)
50169         [! (defined (__STDC__) && __STDC__)]: Remove decls.
50170         * lib/error.c: Include error.h first, to check interface.
50171         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
50172         (VA_START): Remove; all uses changeed to va_start.
50173         (exit, strerror): Remove decls.
50174         (error_print_progname): Prototype uncondionally.
50175         Don't include <errno.h>; no longer needed.
50176         (private_strerror): Remove.
50177         (error_tail): Always define.
50178         (error, error_at_line): Assume C89 or better; always use prototypes.
50179         * lib/fatal.c: Include "fatal.h" first, to test interface.
50180         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
50181         (VA_START): Remove; all uses changed to va_start.
50182         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
50183         this case.
50184         (exit): Remove decl.
50185         (fatal): Prototype unconditionally.  Assume va_start works.
50186         Abort at end, to pacify gcc.
50187
50188         * lib/euidaccess.c (main): Define with a prototype.
50189
50190         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
50191
50192         * lib/exitfail.c: Include <stdlib.h> unconditionally.
50193
50194         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
50195         prototypes.
50196         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
50197         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
50198         (getenv): Remove decl.
50199         (fnmatch): Define using a prototype.
50200         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
50201         (FCT): Define using a prototype.
50202
50203         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
50204
50205         * lib/gethostname.c: Include <stddef.h>.
50206         (gethostname): Define with prototype.  Length is size_t, not int.
50207
50208 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50209
50210         Assume C89 or better; remove K&R cruft.
50211         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
50212         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
50213         string.h, getenv, malloc.
50214         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
50215         headers.
50216         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
50217         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
50218         do not check for strerror.
50219         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
50220         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
50221         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
50222         do not check for doprnt or vprintf.
50223         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
50224         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
50225
50226 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50227
50228         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
50229         getversion.c should have been removed then, but was accidentally
50230         preserved.
50231
50232         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
50233         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
50234
50235 2003-09-08  Karl Berry  <karl@gnu.org>
50236
50237         * config/config.sub, config.guess, srclistvars.sh: update from savannah
50238                 config, forget about prep.
50239
50240         * config/depcomp, missing: update from automake.
50241
50242 2003-09-07  Paul Eggert  <eggert@twinsun.com>
50243
50244         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
50245         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
50246
50247 2003-09-07  Paul Eggert  <eggert@twinsun.com>
50248
50249         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
50250         copy_tm_result.  Bug reported by Simon Josefsson in
50251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
50252
50253 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50254
50255         * m4/time_r.m4: New file.
50256         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
50257         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
50258         is. Check for timegm declaration.
50259         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
50260         Do not check for gmtime_r.
50261         Replace mktime if __mktime_internal does not exist and if mktime
50262         hasn't been replaced already.
50263
50264 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50265
50266         * lib/time_r.c, lib/time_r.h: New files.
50267
50268         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
50269         __localtime_r.
50270         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
50271         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
50272
50273         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
50274         __gmtime_r.
50275         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
50276         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
50277         Include <time_r.h>.
50278
50279         * lib/timegm.c: Switch to glibc implementation, with the following
50280         changes:
50281         [defined HAVE_CONFIG_H]: Include <config.h>.
50282         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
50283         (__mktime_internal) [!defined _LIBC]: New decl.
50284         (__gmtime_r) [!defined _LIBC]: New macro and function.
50285         (timegm): Use a prototype, since gnulib assumes C89.
50286         Do not bother declaring tmp to be const, as it's not really usefu.
50287         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
50288         (timegm): Declare only if HAVE_DECL_TIMEGM.
50289
50290 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50291
50292         * MODULES.html.sh (func_all_modules): Add time_r.
50293         * modules/time_r: New file.
50294         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
50295         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
50296
50297 2003-09-03  Paul Eggert  <eggert@twinsun.com>
50298
50299         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
50300         Bug reported by Lute Kamstra in
50301         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
50302
50303         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
50304         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
50305         course with correspondingly smaller numbers for tomorrow and
50306         yesterday.  From Tadayoshi Funaba.  Originally installed into
50307         sh-utils on 1999-08-07, but the patch got lost (I guess during the
50308         coreutils merge?).
50309
50310 2003-08-31  Simon Josefsson  <jas@extundo.com>
50311
50312         * modules/timegm: New file.
50313         * MODULES.html.sh (func_all_modules): Add timegm.
50314
50315 2003-08-31  Simon Josefsson  <jas@extundo.com>
50316
50317         * m4/timegm.m4: New file.
50318
50319 2003-08-31  Simon Josefsson  <jas@extundo.com>
50320
50321         * lib/timegm.h: New file.
50322         * lib/timegm.c: New file.  Based on
50323         wget-1.8.2/src/http.c:mktime_from_utc.
50324
50325 2003-08-31  Karl Berry  <karl@gnu.org>
50326
50327         * lib/argp.h: update from libc.
50328
50329 2003-08-28  Bruno Haible  <bruno@clisp.org>
50330
50331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
50332         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
50333         followed by '#define fnmatch fnmatch_posix' gives an error.
50334
50335 2003-08-28  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
50338         warning on QNX, which defines O_BINARY to 000000.
50339
50340 2003-08-27  Jim Meyering  <jim@meyering.net>
50341
50342         * m4/mkstemp.m4: Require that the system mkstemp be able to create
50343         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
50344         would fail after 32.  Reported by Danny Levinson.  Details here:
50345         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
50346
50347 2003-08-24  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
50350         MSVC7 <stdio.h> is included later.
50351
50352 2003-08-22  Simon Josefsson  <jas@extundo.com>
50353
50354         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
50355
50356 2003-08-20  Karl Berry  <karl@gnu.org>
50357
50358         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
50359
50360 2003-08-20  Bruno Haible  <bruno@clisp.org>
50361
50362         * modules/progname: New file.
50363         * MODULES.html.sh (func_all_modules): Add progname.
50364
50365 2003-08-20  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/progname.h: New file, from GNU gettext.
50368         * lib/progname.c: New file, from GNU gettext.
50369         * lib/progreloc.c: New file, from GNU gettext.
50370
50371 2003-08-19  Jim Meyering  <jim@meyering.net>
50372
50373         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
50374         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
50375
50376 2003-08-19  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
50379         more.
50380
50381 2003-08-19  Bruno Haible  <bruno@clisp.org>
50382
50383         * lib/xstrdup.c: Assume <string.h> exists.
50384
50385 2003-08-18  Paul Eggert  <eggert@twinsun.com>
50386
50387         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
50388         in makefile rules.
50389
50390 2003-08-18  Jim Meyering  <jim@meyering.net>
50391
50392         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
50393         * m4/lib-ld.m4: Likewise.
50394
50395 2003-08-18  Jim Meyering  <jim@meyering.net>
50396
50397         * lib/setenv.h: Indent nested cpp directive.
50398         * lib/vasnprintf.c: Remove trailing blanks.
50399
50400 2003-08-17  Simon Josefsson  <jas@extundo.com>
50401
50402         * modules/xstrndup: New file.
50403         * MODULES.html.sh (func_all_modules): Add xstrndup.
50404
50405 2003-08-17  Simon Josefsson  <jas@extundo.com>
50406
50407         * modules/argp: Fix autoconf macro name. Add more dependencies.
50408
50409 2003-08-17  Simon Josefsson  <jas@extundo.com>
50410
50411         * m4/xstrndup.m4: New file.
50412
50413 2003-08-17  Simon Josefsson  <jas@extundo.com>
50414
50415         * m4/argp.m4: New file.
50416
50417 2003-08-17  Simon Josefsson  <jas@extundo.com>
50418             Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/xstrndup.h: New file.
50421         * lib/xstrndup.c: New file.
50422
50423 2003-08-17  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/strndup (Files, Include): Add lib/strndup.h.
50426
50427 2003-08-17  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/euidaccess (Files): Add lib/euidaccess.h.
50430
50431 2003-08-17  Bruno Haible  <bruno@clisp.org>
50432
50433         * lib/strndup.h: New file.
50434
50435 2003-08-17  Bruno Haible  <bruno@clisp.org>
50436
50437         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
50438         like AC_GNU_SOURCE.
50439         * modules/extensions (configure.ac): Comment out the invocation of
50440         gl_USE_SYSTEM_EXTENSIONS.
50441
50442 2003-08-16  Paul Eggert  <eggert@twinsun.com>
50443
50444         Merges from coreutils, etc.
50445         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
50446         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
50447         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
50448         fixing a typo.
50449         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
50450         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
50451
50452 2003-08-16  Paul Eggert  <eggert@twinsun.com>
50453
50454         Document merge from coreutils.
50455         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
50456         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
50457         * modules/utime: Add m4/utimes-null.m4.
50458
50459 2003-08-16  Paul Eggert  <eggert@twinsun.com>
50460
50461         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
50462         space, undoing this 2003-08-12 change:
50463         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
50464
50465 2003-08-16  Paul Eggert  <eggert@twinsun.com>
50466
50467         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
50468         strtoul.c from libc, undoing this 2003-08-12 change:
50469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
50470
50471 2003-08-16  Jim Meyering  <jim@meyering.net>
50472
50473         Merges from coreutils.
50474         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
50475         prefix.  Adjust cache variables similarly.  Create 500 rather than
50476         just 300 files, to exercise bug on Darwin6.5, too.
50477         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
50478         $missing_dir.
50479         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
50480         AM_SYS_POSIX_TERMIOS.
50481         Reported by mkc@mathdogs.com.
50482         Also change use of $am_cv_sys_posix_termios
50483         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
50484         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
50485         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
50486         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
50487         in /proc/mounts until it finds one with matching device number.  This
50488         is unnecessary when the FILE argument *is* a mount point.  No stat call
50489         is necessary in that case.  So, disable the statvfs-testing code on
50490         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
50491         as RedHat bug# 84846.
50492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
50493         to 1MB, so as not to render systems with no stack size limit (e.g.,
50494         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
50495         Include <unistd.h>.  On some systems,
50496         it is required for the definition of _SC_PAGESIZE.
50497
50498 2003-08-16  Jim Meyering  <jim@meyering.net>
50499
50500         Merge from coreutils.
50501         * lib/xstrtoimax.c: #else #if -> #elif.
50502         * lib/xstrtoumax.c: Likewise.
50503
50504 2003-08-16  Jim Meyering  <jim@meyering.net>
50505
50506         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
50507         * m4/utimes.m4: Removed.
50508         * m4/utimes-null.m4: Renamed from utimes.m4.
50509
50510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
50511         to 1MB, so as not to render systems with no stack size limit (e.g.,
50512         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
50513         Include <unistd.h>.  On some systems,
50514         it is required for the definition of _SC_PAGESIZE.
50515
50516 2003-08-16  Jim Meyering  <jim@meyering.net>
50517         and Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         Merges from coreutils, etc.
50520
50521         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
50522         using the latest version from cvs.  This avoids problems with #line
50523         directives using a vendor (Sun) compiler.
50524         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
50525         Don't set GETGROUPS_LIB here; now it's
50526         done via getgroups.m4's wrapper function.
50527         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
50528         rather than just in sh-util/configure.in, so that the
50529         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
50530         same.
50531         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
50532         AC_FUNC_GETLOADAVG where to find getloadavg.c.
50533         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
50534         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
50535         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
50536         Remove code that is now done by the newly-required macros.
50537         Append $(EXEEXT) to DF_PROG.
50538         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
50539         Do not invoke or require the following here,
50540         since prereq.m4 or some gnulib .m4 now does this for us:
50541         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
50542         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
50543         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
50544         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
50545         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
50546         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
50547         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
50548         AC_FUNC_OBSTACK.
50549         Do not replace the following functions, as this is now the job
50550         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
50551         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
50552         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
50553         atexit getpass, strdup, getpagesize.
50554         Replace 'raise'.
50555         Do not check for the following functions, as this is now the job
50556         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
50557         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
50558         setregid.
50559         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
50560         Check for sys/sysctl.h.
50561         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
50562         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
50563         of checking for ssize_t ourselves.
50564
50565         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
50566         Require every macro that gnulib/modules/* suggests for us.
50567         (jm_PREREQ_ADDEXT): New macro.
50568         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
50569         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
50570
50571         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
50572         (gl_PHYSMEM): Use it.
50573         Also check for `table' function.
50574         Check for new headers and functions.
50575         Add check for sys/sysmp.h.
50576         With suggestions from Kaveh Ghazi.
50577         Ignore headers that are present but cannot be compiled.  This
50578         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
50579         C 5.4.
50580
50581 2003-08-15  Paul Eggert  <eggert@twinsun.com>
50582
50583         Document merge from coreutils.
50584         * modules/userspec: Depend on posixver.
50585         * modules/strftime: Depend on tzset.
50586
50587 2003-08-15  Paul Eggert  <eggert@twinsun.com>
50588
50589         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
50590         rather than tab, after '#' in shell-script copyright notices.
50591         Suggested by Bruno Haible.
50592
50593 2003-08-15  Paul Eggert  <eggert@twinsun.com>
50594
50595         * config/srclist-update: Use three spaces, rather than tab, after '#'
50596         in shell-script copyright notices.  Suggested by Bruno Haible.
50597         Remove unnecessary parenthesization in regular expression.
50598
50599 2003-08-15  Jim Meyering  <jim@meyering.net>
50600
50601         Merge from coreutils.
50602         * lib/xgethostname.c: Include <stdlib.h>.
50603         (xghostname): Don't exit for anything other than memory-related
50604         failure; just return NULL.
50605         * lib/userspec.c: Include "posixver.h".
50606         (parse_user_spec): Accept `.' as a separator only
50607         in pre-POSIX-200112 mode.
50608         * lib/strtoimax.c: Use #elif rather than #else #if.
50609         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
50610         Remove function, now that we can rely on a working tzset function.
50611         [!_LIBC]: Ensure that the required autoconf test has been run.
50612         [!defined _NL_CURRENT && HAVE_STRFTIME]:
50613         Use underlying_strftime for %r.
50614         * lib/sha.c: Merge in some clean-up and optimization changes from
50615         glibc.
50616         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
50617         Ensure that it is a multiple of 64.
50618         Rearrange loop exit tests so as to avoid performing an
50619         additional fread after encountering an error or EOF.
50620         * lib/realloc.c: Update copyright date.
50621
50622 2003-08-15  Jim Meyering  <jim@meyering.net>
50623         and Paul Eggert  <eggert@twinsun.com>
50624
50625         Merge from coreutils.
50626         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
50627         member but strut utmpx does not.  Needed for AIX 4.3.3.
50628         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
50629
50630 2003-08-15  Jim Meyering  <jim@meyering.net>
50631         and Paul Eggert  <eggert@cs.ucla.edu>
50632
50633         Merges from coreutils, etc.
50634         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
50635         Require gl_FUNC_TZSET_CLOBBER.
50636         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
50637         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
50638         members.
50639
50640 2003-08-14  Paul Eggert  <eggert@twinsun.com>
50641
50642         Help the merge from coreutils.
50643         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
50644         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
50645         * m4/tzset.m4: Use it too.
50646
50647 2003-08-14  Paul Eggert  <eggert@twinsun.com>
50648
50649         * modules/tzset: New file.
50650
50651 2003-08-14  Jim Meyering  <jim@meyering.net>
50652
50653         Merges from coreutils.
50654         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
50655         variable names, rather than @FNMATCH_H@.
50656         * modules/alloca: Likewise for $(ALLOCA_H).
50657
50658         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
50659         the three copies of the literal target, `fnmatch.h'.
50660         * modules/alloca (alloca.h): Likewise.
50661
50662 2003-08-14  Jim Meyering  <jim@meyering.net>
50663
50664         Merge from coreutils.
50665         * m4/tzset.m4: New file.
50666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
50667         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
50668         otherwise, AIX 5.1 systems would end up using the latter.
50669         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
50670         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
50671         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
50672         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
50673
50674 2003-08-14  Jim Meyering  <jim@meyering.net>
50675
50676         Merge from coreutils.
50677         * lib/obstack.h: Whitespace changes.
50678         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
50679         and xcalloc return values.
50680         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
50681         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
50682         hang on OSF/1 5.1 for DIR on both local and remote file systems.
50683         Reported by (and fix confirmed by) Nelson H. F. Beebe.
50684         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
50685         error from mntctl.
50686         Use mntctl's return value to drive the entry-processing loop, since
50687         we can't rely on the value of the vmt_length member in the last
50688         entry.  On some systems doing so could result in exhausting
50689         virtual memory.  Based in part on a patch from Mike Jetzer.
50690
50691 2003-08-14  Jim Meyering  <jim@meyering.net>
50692         and Paul Eggert  <eggert@twinsun.com>
50693
50694         Merges from coreutils, plus other fixes.
50695         * lib/physmem.c: Merge in portability changes from gcc/libiberty
50696         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
50697         for credits and details.  Thanks to Kaveh Ghazi for helping
50698         to keep these files in sync.
50699         (ARRAY_SIZE): Define it.
50700         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
50701         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
50702         (memcasecmp): Don't assume size_t fits in unsigned int.
50703         Remove casts and duplicate code.
50704         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
50705         (memcpy): Remove definition.
50706         Merge in some clean-up and optimization changes from glibc.
50707         [BLOCKSIZE]: Move definition to top of file.
50708         Ensure that it is a multiple of 64.
50709         Rearrange loop exit tests so as to avoid performing an
50710         additional fread after encountering an error or EOF.
50711         * lib/md5.h (md5_uintptr): Define.
50712         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
50713         return to the initial working directory.  Preserve errno
50714         for caller.
50715         * lib/idcache.c: Include "xalloc.h".
50716         (xmalloc, xrealloc): Remove decls.
50717         (getuser): Remove casts no longer required in C89.
50718         * lib/human.c: Include stdio.h, for sprintf.
50719         * lib/group-member.c: Include "xalloc.h".
50720         (xmalloc, xrealloc): Remove decls.
50721         (get_group_info): Remove casts no longer required in C89.
50722         * lib/getusershell.c (readname): Remove casts no longer required in
50723         C89.
50724         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
50725         * lib/getline.c: Whitespace fix, from coreutils.
50726
50727 2003-08-13  Paul Eggert  <eggert@twinsun.com>
50728
50729         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
50730         Check for isascii.
50731
50732         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
50733         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
50734         Undo previous (whitespace-only) change.
50735
50736 2003-08-13  Paul Eggert  <eggert@twinsun.com>
50737
50738         * lib/exclude.c: Include <ctype.h>
50739         (IN_CTYPE_DOMAIN): New macro.
50740         (is_space): New fn.
50741         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
50742         and empty lines.
50743
50744         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
50745         Undo previous (whitespace-only) change.
50746
50747 2003-08-13  Paul Eggert  <eggert@twinsun.com>
50748
50749         * config/srclist-update: Change update back to the old behavior,
50750         leaving whitespace alone.  Use one 'sed' command rather than a
50751         pipeline.
50752         (fixlicense): Now a variable, not a function.
50753         (remove_trailing_blanks): Remove.
50754         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
50755         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
50756         Undo previous (whitespace-only) change.
50757
50758 2003-08-12  Paul Eggert  <eggert@twinsun.com>
50759
50760         Merge from coreutils.
50761         * modules/euidaccess: Add lib_SOURCES, include for new
50762         file euidaccess.h
50763
50764 2003-08-12  Paul Eggert  <eggert@twinsun.com>
50765
50766         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
50767         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
50768         Normalize leading white space and remove trailing white space.
50769
50770         Merge from coreutils
50771         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
50772
50773         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
50774         0.12.1.  These files are now being upgraded automatically by
50775         ../config/srclist-update.
50776
50777 2003-08-12  Paul Eggert  <eggert@twinsun.com>
50778
50779         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
50780         Normalize leading white space and remove trailing white space.
50781         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
50782         notice, as per ../config/srclist-update.
50783
50784         Merge from coreutils.
50785         * lib/euidaccess.h: New file.
50786         * lib/euidaccess.c: Include it.
50787         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
50788         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
50789         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
50790
50791 2003-08-12  Paul Eggert  <eggert@twinsun.com>
50792
50793         * config/srclist-update: Add copyright notice.
50794         (remove_id_lines, remove_trailing_blanks): New constants.
50795         (fixfile): Use them to normalize spacing a bit in copied files.
50796         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
50797         Normalize leading white space and remove trailing white space.
50798
50799         * config/texinfo.tex: Sync with texinfo.
50800
50801         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
50802         strtoul.c from libc, to merge coreutils whitespace changes.
50803
50804         * config/srclist.txt: Get the following m4 files from gettext:
50805         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
50806         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
50807         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
50808         wint_t.m4.
50809
50810 2003-08-12  Karl Berry  <karl@gnu.org>
50811
50812         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
50813         been made.
50814
50815 2003-08-11  Paul Eggert  <eggert@twinsun.com>
50816
50817         * modules/gnu-source, m4/gnu-source.m4:
50818         Remove; we're assuming Autoconf 2.54 or later now.
50819         Suggested by Bruno Haible.
50820         * MODULES.html.sh (func_all_modules): Remove gnu-source.
50821
50822 2003-08-11  Bruno Haible  <bruno@clisp.org>
50823
50824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
50825
50826 2003-08-11  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
50829         (vasnprintf): Use it instead of wcslen.
50830
50831 2003-08-11  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
50834         value to ensure that _Bool promotes to int. Use #define for _Bool when
50835         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
50836
50837 2003-08-10  Karl Berry  <karl@gnu.org>
50838
50839         * lib/regex.h: update from libc (whitespace fix).
50840
50841 2003-08-09  Paul Eggert  <eggert@twinsun.com>
50842
50843         Merge some files from coreutils.  These changes were
50844         originally made by Jim Meyering.
50845         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
50846         many older Unixes require this.
50847         * lib/alloca.c (alloca): Remove cast to argument of free;
50848         no longer needed in C89.
50849         * lib/alloca_.h, regex.h: Fix white space to match
50850         what GNU indent does.
50851
50852 2003-08-09  Paul Eggert  <eggert@twinsun.com>
50853
50854         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
50855         apparently Emacs's Unicode mode got confused before my 2003-08-05
50856         checkin.
50857
50858 2003-08-08  Paul Eggert  <eggert@twinsun.com>
50859
50860         * m4/extensions.m4: New file.
50861         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
50862         Require gl_USE_SYSTEM_EXTENSIONS.
50863         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
50864         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
50865
50866 2003-08-08  Paul Eggert  <eggert@twinsun.com>
50867
50868         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
50869         * modules/extensions, modules/gnu-source: New files.
50870         * modules/timespec, modules/unlocked-io: Depend on extensions.
50871
50872 2003-08-07  Paul Eggert  <eggert@twinsun.com>
50873
50874         * modules/restrict: New file.
50875         * MODULES.html.sh (func_all_modules): Add restrict.
50876         * modules/regex: Depend on restrict.
50877
50878 2003-08-07  Paul Eggert  <eggert@twinsun.com>
50879
50880         * m4/restrict.m4: New file.
50881         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
50882
50883 2003-08-07  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
50886         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
50887
50888 2003-08-07  Bruno Haible  <bruno@clisp.org>
50889
50890         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
50891         makes the module 'getndelim2' compatible with the module 'getline'.
50892
50893 2003-08-05  Paul Eggert  <eggert@twinsun.com>
50894
50895         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
50896         byte with "\201" to avoid glitches when editing that source file
50897         with multi-gnome-terminal.
50898
50899 2003-08-05  Paul Eggert  <eggert@twinsun.com>
50900
50901         * lib/bumpalloc.h: Remove.
50902
50903 2003-08-05  Paul Eggert  <eggert@twinsun.com>
50904
50905         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
50906         * modules/bumpalloc: Remove.
50907
50908 2003-08-04  Paul Eggert  <eggert@twinsun.com>
50909
50910         * lib/getloadavg.c: Change copyright notice and spacing to conform to
50911         GNU coding style.
50912
50913         Merge from coreutils.
50914         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
50915         1. From glibc.
50916         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
50917         from Karl Berry, implemented by Jim Meyering.
50918         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
50919         from Dmitry V. Levin.
50920         Remove anachronistic cast of xrealloc.
50921         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
50922         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
50923         type. Otherwise, it wouldn't compile with at least /bin/cc on
50924         ymp-cray-unicos9.0.2.X.
50925         Combine two mostly-identical uses of alloca into one.
50926         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
50927
50928 2003-08-04  Dave Love  <d.love@dl.ac.uk>
50929
50930         [From Emacs.]
50931
50932         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
50933         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
50934         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
50935         obsolete NLIST_NAME_UNION.
50936         [__GNU__]: Undef BSD and FSCALE.
50937         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
50938
50939 2003-08-03  Paul Eggert  <eggert@twinsun.com>
50940
50941         * lib/stdbool_.h (_Bool): Make it signed char, instead of
50942         an enum type, so that it's guaranteed to promote to int.  See:
50943         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
50944
50945 2003-08-03  Karl Berry  <karl@gnu.org>
50946
50947         * config/depcomp: update from automake.
50948
50949 2003-07-31  Paul Eggert  <eggert@twinsun.com>
50950
50951         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
50952         (strerror): Don't assume that a printable int fits in 14 bytes.
50953
50954 2003-07-31  Bruno Haible  <bruno@clisp.org>
50955
50956         * modules/getpass-gnu: New file.
50957         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
50958
50959 2003-07-31  Bruno Haible  <bruno@clisp.org>
50960
50961         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
50962
50963 2003-07-24  Karl Berry  <karl@gnu.org>
50964
50965         * config/missing: update from automake.
50966
50967 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
50968             Bruno Haible  <bruno@clisp.org>
50969
50970         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
50971         * lib/getline.c (getline, getdelim): Likewise.
50972         Remove _GNU_SOURCE define; now it's defined in config.h through
50973         m4/getline.m4.
50974
50975 2003-07-23  Karl Berry  <karl@gnu.org>
50976
50977         * config/config.sub: update from prep.
50978
50979 2003-07-22  Paul Eggert  <eggert@twinsun.com>
50980
50981         * modules/xalloc (Depends-on): Add exitfail.
50982         * modules/xmemcoll: Likewise.
50983
50984 2003-07-22  Paul Eggert  <eggert@twinsun.com>
50985
50986         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
50987         over-parenthesization in macros.
50988
50989         Sync with coreutils.
50990
50991         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
50992         required by C99.
50993
50994         Use `exit_failure' for xalloc and xmemcoll instead of their own
50995         private exit-failure variables.
50996         * lib/xalloc.h (xalloc_exit_failure): Remove.
50997         * lib/xmalloc.c: Likewise.  Include exitfail.h.
50998         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
50999         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
51000         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
51001         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
51002
51003 2003-07-20  Jim Meyering  <jim@meyering.net>
51004
51005         * modules/closeout (Depends-on): Add exitfail.
51006         Suggestion from Bruno Haible.
51007
51008 2003-07-19  Karl Berry  <karl@gnu.org>
51009
51010         * config/config.sub: update from prep.
51011
51012 2003-07-18  Paul Eggert  <eggert@twinsun.com>
51013
51014         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
51015         Remove.
51016         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
51017         to test that it can stand by itself.  Include "exitfail.h".
51018         Clients should set exit_failure instead.
51019         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
51020
51021 2003-07-18  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/getndelim2: New file.
51024         * modules/getline: Share files with module getndelim2.
51025         * modules/getnline: Depend on getndelim2 instead of sharing files with
51026         it. Add getnline.c to lib_SOURCES.
51027         * MODULES.html.sh (func_all_modules): Add getndelim2.
51028
51029 2003-07-18  Bruno Haible  <bruno@clisp.org>
51030
51031         * m4/getndelim2.m4: New file.
51032         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
51033         invoke gl_PREREQ_GETNDELIM2.
51034         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
51035         gl_PREREQ_GETNDELIM2.
51036         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
51037         gl_GETNDELIM2.
51038
51039 2003-07-18  Bruno Haible  <bruno@clisp.org>
51040
51041         * lib/getndelim2.h: New file.
51042         * lib/getndelim2.c: Make into a module of its own. Include config.h,
51043         getndelim2.h.
51044         (getndelim2): Make non-static. Change return type to ssize_t.
51045         * lib/getline.h: Change argument names.
51046         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
51047         * lib/getnline.c: Include getndelim2.h.
51048
51049 2003-07-18  Andreas Schwab  <schwab@suse.de>
51050
51051         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
51052
51053 2003-07-17  Karl Berry  <karl@gnu.org>
51054
51055         * config/config.sub: update from prep.
51056
51057 2003-07-17  Bruno Haible  <bruno@clisp.org>
51058
51059         * modules/getnline: New file.
51060         * modules/getline: Add lib/getndelim2.c to source file list.
51061         * MODULES.html.sh (func_all_modules): Add getnline.
51062
51063 2003-07-17  Bruno Haible  <bruno@clisp.org>
51064
51065         * m4/getnline.m4: New file.
51066
51067 2003-07-17  Bruno Haible  <bruno@clisp.org>
51068
51069         * m4/Makefile.am.in: Remove file.
51070         * m4/Makefile.am: Remove file.
51071         * m4/Makefile.in: Remove file.
51072
51073 2003-07-17  Bruno Haible  <bruno@clisp.org>
51074
51075         * lib/getnline.h: New file.
51076         * lib/getnline.c: New file.
51077         * lib/getndelim2.c: New file, extracted from getline.c.
51078         (getndelim2): Renamed from getdelim2, with added nmax argument.
51079         * lib/getline.c: Include getndelim2.c.
51080         (getdelim2): Moved out to getndelim2.c.
51081         (getline, getdelim): Update.
51082
51083 2003-07-17  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/Makefile.am: Remove file.
51086         * lib/Makefile.in: Remove file.
51087
51088 2003-07-17  Bruno Haible  <bruno@clisp.org>
51089
51090         * configure.in: Remove file.
51091         * Makefile.in: Remove file.
51092
51093 2003-07-17  Bruno Haible  <bruno@clisp.org>
51094
51095         * MODULES.html.sh: Put the </BODY> right before </HTML>.
51096
51097 2003-07-16  Karl Berry  <karl@gnu.org>
51098
51099         * config/srclist-update: was running fixlicense twice, which caused
51100                 texinfo.tex to be nullified for some reason.  Simplify,
51101                 $gplsrc is no longer needed as far as I can see?
51102
51103 2003-07-16  Jim Meyering  <jim@meyering.net>
51104
51105         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
51106
51107 2003-07-15  Paul Eggert  <eggert@twinsun.com>
51108
51109         * config/srclist.txt: Get the following files from gettext-runtime/intl
51110         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
51111         ref-del.sin.  From Bruno Haible.
51112         * config/srclist-update (fixfile): Change grep pattern again, since the
51113         previous fix didn't work (there was another trailing $).  Use
51114         '[$]' to escape the $s.
51115
51116 2003-07-15  Karl Berry  <karl@gnu.org>
51117
51118         * lib/vasnprintf.c: update from gettext.
51119
51120 2003-07-15  Karl Berry  <karl@gnu.org>
51121
51122         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
51123         gets expanded when surrounded by '$'.
51124
51125 2003-07-15  Jim Meyering  <jim@meyering.net>
51126
51127         * modules/save-cwd: Don't depend on error.  From Derek Price.
51128
51129 2003-07-15  Jim Meyering  <jim@meyering.net>
51130
51131         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
51132
51133 2003-07-14  Simon Josefsson  <jas@extundo.com>
51134
51135         * modules/mempcpy: New file.
51136         * MODULES.html.sh (func_all_modules): Add mempcpy.
51137
51138 2003-07-14  Simon Josefsson  <jas@extundo.com>
51139
51140         * m4/mempcpy.m4: New file.
51141
51142 2003-07-14  Simon Josefsson  <jas@extundo.com>
51143
51144         * lib/mempcpy.h: New file.
51145         * lib/mempcpy.c: New file.
51146
51147 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51148
51149         * modules/getdate, modules/posixtm: Depend on mktime.
51150
51151 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51152
51153         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
51154         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
51155         unicodeio.c, unicodeio.h, unlocked-io.h:
51156         Switch from LGPL to GPL.
51157
51158 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51159
51160         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
51161         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
51162         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
51163         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
51164         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
51165         updated automatically by ../config/srclist-update.  This changes
51166         their license from LPGL to GPL.
51167
51168 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51169
51170         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
51171         assumed to refer to the root of the most recent stable gettext version.
51172         * config/srclistvars.sh: Add defaults for eggert.
51173         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
51174         Match "This program" as well as "The program".  This is needed
51175         for gettext.
51176
51177 2003-07-14  Jim Meyering  <jim@meyering.net>
51178
51179         Don't emit diagnostics.  Let callers do that.
51180         * lib/save-cwd.c: Don't include "error.h".
51181         (save_cwd): Don't call error.  Ensure that errno is valid
51182         when returning nonzero.
51183
51184         * lib/save-cwd.h (restore_cwd): Update prototype.
51185         * lib/save-cwd.c (restore_cwd): Remove two parameters.
51186         Simplify.  Don't call error upon failure.  Let callers do that.
51187         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
51188         when auditing is enabled.  But don't bother updating the #if.
51189
51190 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
51191
51192         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
51193         it breaks C++ compilation.
51194         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
51195
51196 2003-07-10  Simon Josefsson  <jas@extundo.com>
51197
51198         * modules/strchrnul (Makefile.am): Add strchrnul.h.
51199
51200 2003-07-10  Jim Meyering  <jim@meyering.net>
51201
51202         * m4/clock_time.m4: Remove trailing blank.
51203         * m4/intmax_t.m4: Likewise.
51204
51205 2003-07-10  Jim Meyering  <jim@meyering.net>
51206
51207         * lib/vasnprintf.c: Remove trailing blanks.
51208         Make cpp indentation consistent.
51209
51210 2003-07-09  Paul Eggert  <eggert@twinsun.com>
51211
51212         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
51213         posixver.c, strftime.c, strnlen.c, strverscmp.c:
51214         Switch from LGPL to GPL.
51215
51216 2003-07-09  Paul Eggert  <eggert@twinsun.com>
51217
51218         * config/srclist.txt: Sort sublists.  Add
51219         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
51220         that differ from gnulib for one reason or another; we'd like this list
51221         to be smaller but for now let's document what we have.
51222
51223 2003-07-08  Paul Eggert  <eggert@twinsun.com>
51224
51225         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
51226         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
51227         and sweeter "eval x=$x".
51228         * config/srclist.txt: Get lib/argp* from glibc.
51229
51230 2003-07-07  Paul Eggert  <eggert@twinsun.com>
51231
51232         * lib/mktime.c: Fix some boundary cases and remove need for floating
51233         point.
51234
51235         Issue a compile-time diagnostic if time_t is floating point, or if
51236         two's complement arithmetic is not in effect, or if arithmetic
51237         right shift does not propagate the sign.  These assumptions were
51238         all in the original code but they weren't checked.
51239
51240         (TIME_T_MIDPOINT, verify): New macros.
51241         (__isleap): Remove; it has integer overflow problems.
51242         (leapyear): New function, without those problems.
51243         (ydhms_tm_diff): Remove; splitting into two parts.
51244         (ydhms_diff): New function, containing the arithmetic part of
51245         the old ydhms_tm_diff function.  Issue a compile-time
51246         diagnostic if we are not using C99 integer division.
51247         Avoid casts when possible.
51248         (guess_time_tm): New function, containing the checking part of
51249         the old ydhms_tm_diff function.  Return the new value, rather than
51250         the difference between it and the old.  Accept a new argument T
51251         so that *T specifies the old value.  Check for overflow in the result.
51252
51253         (__mktime_internal): Use a time_t offset, not a long int offset.
51254         This undoes the 2003-06-04 change, which is no longer needed now
51255         that we have better overflow checking.
51256         (localtime_offset): Likewise.
51257
51258         (__mktime_internal): Avoid harmful overflow on hosts where time_t
51259         and long are 64-bit but int is only 32-bit.
51260         (ydhms_diff): Use long int to store year1 and yday1.
51261         Issue a compile-time diagnostic if long int is not wide enough.
51262
51263         (__mktime_internal): Use long int to store adjusted year and yday.
51264         Use plain C rather than preprocessor commands, if that doesn't
51265         affect efficiency.
51266         Check for overflow (and try to repair) after each probe
51267         rather than checking only at the very end.  This avoids some bugs
51268         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
51269         does not equal GMT offset at maximum time).
51270         Use integer to check for overflow rather than floating point; this
51271         is more portable to non-IEEE hosts, and is a tad faster.
51272         When we detect that we are oscillating between two values,
51273         don't check whether tm_isdst has the requested value, since
51274         we already know the answer.  When tm_isdst has the wrong value,
51275         use a different heuristic to find the right one, based on the
51276         extreme values actually observed in practice in tz2003a,
51277         rather than the (overly optimistic) "previous 3 calendar quarters".
51278
51279         (not_equal_tm, print_tm, check_result): Use "const T" rather than
51280         "T const" to accommodate glibc style.
51281         (check_result): Use less-confusing report format.  "long" -> "long int.
51282         (main): Likewise.
51283         Don't loop if the iteration overflows time_t.
51284         Allow a negative step in the iteration.
51285
51286 2003-07-06  Karl Berry  <karl@gnu.org>
51287
51288         * config/depcomp: update from automake.
51289         * config/config.sub: update from prep.
51290
51291 2003-07-03  Karl Berry  <karl@gnu.org>
51292
51293         * config/config.guess: update from prep.
51294
51295 2003-07-01  Paul Eggert  <eggert@twinsun.com>
51296
51297         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
51298         xreadlink.c now includes it unconditionally.
51299
51300 2003-07-01  Paul Eggert  <eggert@twinsun.com>
51301
51302         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
51303         having it depend on HAVE_SYS_TYPES_H.
51304
51305 2003-07-01  Bruno Haible  <bruno@clisp.org>
51306
51307         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
51308         <sys/types.h> should be sufficient.
51309         Reported by Paul Eggert.
51310
51311 2003-06-26  Karl Berry  <karl@gnu.org>
51312
51313         * config/depcomp: update from automake.
51314
51315 2003-06-26  Bruno Haible  <bruno@clisp.org>
51316
51317         * modules/human: Depend on module stdbool.
51318
51319 2003-06-25  Bruno Haible  <bruno@clisp.org>
51320
51321         * modules/readlink: New file.
51322         * modules/xreadlink: Depend on it.
51323         * MODULES.html.sh (func_all_modules): Add readlink.
51324
51325 2003-06-25  Bruno Haible  <bruno@clisp.org>
51326
51327         * m4/readlink.m4: New file.
51328
51329 2003-06-25  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/readlink.c: New file.
51332
51333 2003-06-22  Karl Berry  <karl@gnu.org>
51334
51335         * config/srclist.txt: update mkinstalldirs from automake.
51336         * config/mkinstalldirs: update.
51337
51338 2003-06-22  Bruno Haible  <bruno@clisp.org>
51339
51340         Portability to mingw32.
51341         * m4/ssize_t.m4: New file, from GNU gettext.
51342         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
51343         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
51344
51345 2003-06-22  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/safe-read: Add m4/ssize_t.m4.
51348         * modules/xreadlink: Add m4/ssize_t.m4.
51349
51350 2003-06-20  Bruno Haible  <bruno@clisp.org>
51351
51352         Assume C89, so PARAMS isn't needed.
51353         * lib/unicodeio.h (PARAMS): Remove.
51354         * lib/unicodeio.c: Don't use PARAMS.
51355
51356 2003-06-18  Karl Berry  <karl@gnu.org>
51357
51358         * config/config.{guess,sub}: update from prep.
51359
51360 2003-06-18  Jim Meyering  <jim@meyering.net>
51361
51362         Merge changes from coreutils.
51363         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
51364         Remove explicit declarations of xmalloc and realloc.
51365         Include xalloc.h.
51366         (read_utmp): Remove anachronistic cast of xmalloc.
51367
51368 2003-06-17  Paul Eggert  <eggert@twinsun.com>
51369
51370         Assume C89, so PARAMS isn't needed.
51371         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
51372         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
51373         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
51374         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
51375         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
51376         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
51377         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
51378         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
51379         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
51380         lib/xstrtod.h, lib/xstrtol.h: Likewise.
51381         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
51382         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
51383         no longer needed. Anyway, config.h should always be included before any
51384         other file.
51385
51386 2003-06-11  Simon Josefsson  <jas@extundo.com>
51387
51388         * modules/sysexits: New file.
51389         * MODULES.html.sh (func_all_modules): Add sysexits.
51390
51391 2003-06-11  Simon Josefsson  <jas@extundo.com>
51392
51393         * lib/sysexit_.h: New file.
51394
51395 2003-06-11  Derek Price  <derek@ximbiot.com>
51396
51397         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
51398         necessary.
51399
51400 2003-06-11  Bruno Haible  <bruno@clisp.org>
51401
51402         * m4/sysexits.m4: New file.
51403
51404 2003-06-10  Simon Josefsson  <jas@extundo.com>
51405
51406         * lib/argp.h: New file, from glibc.
51407         * lib/argp-ba.c: New file, from glibc.
51408         * lib/argp-eexst.c: New file, from glibc.
51409         * lib/argp-fmtstream.c: New file, from glibc.
51410         * lib/argp-fmtstream.h: New file, from glibc.
51411         * lib/argp-fs-xinl.c: New file, from glibc.
51412         * lib/argp-help.c: New file, from glibc.
51413         * lib/argp-namefrob.h: New file, from glibc.
51414         * lib/argp-parse.c: New file, from glibc.
51415         * lib/argp-pv.c: New file, from glibc.
51416         * lib/argp-pvh.c: New file, from glibc.
51417         * lib/argp-xinl.c: New file, from glibc.
51418
51419 2003-06-10  Simon Josefsson  <jas@extundo.com>
51420
51421         * modules/strchrnul: New file.
51422
51423 2003-06-10  Simon Josefsson  <jas@extundo.com>
51424
51425         * modules/argp: New file.
51426
51427 2003-06-10  Simon Josefsson  <jas@extundo.com>
51428
51429         * m4/strchrnul.m4: New file.
51430
51431 2003-06-10  Simon Josefsson  <jas@extundo.com>
51432
51433         * lib/strchrnul.h: New file.
51434         * lib/strchrnul.c: New file.
51435
51436 2003-06-10  Bruno Haible  <bruno@clisp.org>
51437
51438         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
51439
51440 2003-06-07  Karl Berry  <karl@gnu.org>
51441
51442         * config/config.{guess,sub}: update from prep.
51443
51444 2003-06-07  Jim Meyering  <jim@meyering.net>
51445
51446         * modules/strtod: Use $(...) notation, not @...@ for
51447         AC_REPLACE'd variables.
51448         * modules/localcharset: Likewise.
51449
51450 2003-06-07  Jim Meyering  <jim@meyering.net>
51451
51452         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
51453         in place of my name in the copyright comment.
51454         Remove definition and uses of __P.
51455
51456         From coreutils.
51457         * lib/stat.c: Don't declare xmalloc explicitly.
51458         Instead, include "xalloc.h".
51459         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
51460         xrealloc, and xcalloc return values.
51461         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
51462         Improve comment.
51463         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
51464
51465 2003-06-07  Bruno Haible  <bruno@clisp.org>
51466
51467         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
51468         avoid AC_CONFIG_LINKS.
51469         * modules/fnmatch (Makefile.am): Use explicit creation rule for
51470         fnmatch.h, to avoid AC_CONFIG_LINKS.
51471         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
51472
51473 2003-06-07  Bruno Haible  <bruno@clisp.org>
51474
51475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
51476         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
51477         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
51478         directory.
51479         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
51480         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
51481         directory.
51482
51483 2003-06-06  Jim Meyering  <jim@meyering.net>
51484
51485         Merge from coreutils.
51486         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
51487         Consolidate declarations and initializations of *_base* locals.
51488
51489         Merge from coreutils.
51490         This avoids a core dump on systems without GNU putenv,
51491         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
51492         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
51493         (unsetenv): New static function, from GNU libc.
51494         (rpl_putenv): Use it.
51495
51496         * lib/modechange.c: Remove trailing blanks.
51497
51498         Merge from coreutils.
51499         * lib/fsusage.c: Remove declaration of statfs.
51500         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
51501
51502         * lib/posixtm.c: Include <stdbool.h> unconditionally.
51503
51504 2003-06-06  Jim Meyering  <jim@meyering.net>
51505
51506         * lib/stdbool_.h: Renamed from stdbool.h.in.
51507
51508 2003-06-06  Jim Meyering  <jim@meyering.net>
51509             Bruno Haible  <bruno@clisp.org>
51510
51511         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
51512         Adjust Makefile.am snippet not to redirect directly to target.
51513         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
51514
51515 2003-06-05  Paul Eggert  <eggert@twinsun.com>
51516
51517         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
51518         mismatch, look in future quarters as well as past.  This fixes a
51519         bug when processing fall-backwards gaps immediately after a long
51520         period of daylight-saving time.
51521
51522         * lib/mktime.c: Assume freestanding C89 or better.
51523         (HAVE_LIMITS_H): Remove.  Assume it's 1.
51524         (__P): Remove; not used.
51525         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
51526         (mktime, not_equal_tm, print_tm, check_result,
51527         main): Use prototypes.  Use const * where appropriate.
51528         (main): Fix typo in testing code that uncovered by above changes.
51529         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
51530
51531 2003-06-04  Paul Eggert  <eggert@twinsun.com>
51532
51533         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
51534         locale.h, localeconv.  This merges changes from coreutils.
51535
51536         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
51537         It can be removed after the next Autoconf is released.
51538         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
51539         needed.
51540
51541 2003-06-04  Paul Eggert  <eggert@twinsun.com>
51542
51543         * lib/mktime.c: Fix Debian bug 177940
51544         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
51545         (localtime_offset): Now long int, not time_t, because we want it
51546         to be guaranteed to be signed.  All uses changed.
51547         (__mktime_internal): If overflow would occur when adding offset,
51548         don't add it.
51549
51550         Merge 'human' changes from coreutils.  Rewrite to support
51551         locale-specific notations like thousands separators.
51552         * lib/human.c: Simplify authorship notice.
51553         Include human.h immediately after config.h.
51554         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
51555         <limits.h>: Do not include, since human.h does.
51556         (SIZE_MAX, UINTMAX_MAX): New macros.
51557         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
51558         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
51559         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
51560         (power_letter): Renamed from suffixes.
51561         (generate_suffix_backwards): Remove.
51562         (adjust_value): Now takes int style (because of human.h changes)
51563         and long double value (for greater precision on some platforms).
51564         (group_number): New function.
51565         (human_readable): Use it.  Use integer options, not enum.
51566         Put the options before the sizes in the arg list.
51567         Support all the new options.
51568         The old human_readable function has been removed;
51569         use inttostr.h instead.
51570         (human_readable, default_block_size, humblock):
51571         Use uintmax_t, not int, for block sizes.
51572         (human_readable_inexact, block_size_types): Remove.
51573         (block_size_opts): New constant.
51574         (human_options): Renamed from human_block_size, with new signature
51575         that allows block sizes up to UINTMAX_MAX.  All callers changed.
51576         * lib/human.h: Add copyright and authorship notice.
51577         Include <limits.h> and <stdbool.h> unconditionally.
51578         (PARAMS): Remove.  All uses removed.
51579         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
51580         (enum human_inexact_style): Remove tag; now a nameless enum.
51581         (human_floor, human_ceiling, human_round_to_even): Now have
51582         values 2, 0, 1 rather than -1, 1, 0.
51583         (human_group_digits, human_suppress_point_zero, human_autoscale,
51584         human_base_1024, human_SI, human_B): New constants.
51585         (human_readable_inexact, human_block_size): Remove.
51586         (human_readable): Size args are now uintmax_t, not int.
51587         (human_options): New decl.
51588
51589         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
51590         unnecessary now that we assume C89 or better.  This change
51591         imported from coreutils.
51592
51593         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
51594         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
51595         in the 2003-05-30 sync from glibc.
51596
51597         .h files should stand alone, but we shouldn't include <sys/types.h>
51598         if we can get away with just <stddef.h>.
51599
51600         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
51601         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
51602         rather than <sys/types.h>, as we merely need size_t.
51603         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
51604         to get size_t.
51605         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
51606         Include <stdio.h>, to get FILE.
51607         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
51608         memcasecmp.h has included <stddef.h> and all we need is size_t.
51609         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
51610         our interface, instead of including <sys/types.h>
51611
51612 2003-06-04  Paul Eggert  <eggert@twinsun.com>
51613
51614         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
51615         now, as glibc mktime is buggy on non-glibc systems.
51616
51617 2003-06-03  Karl Berry  <karl@gnu.org>
51618
51619         * config/config.sub: update from prep.
51620
51621 2003-06-02  Paul Eggert  <eggert@twinsun.com>
51622
51623         [from coreutils]
51624         Fix some minor time-related bugs with POSIX time arguments.
51625         Some valid time stamps were being rejected (notably -1, and
51626         time stamps before 1900 on 64-bit hosts).  And some invalid
51627         time stamps were being accepted, e.g. September 31.
51628
51629         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
51630         that we can return (time_t) -1 successfully.
51631         * lib/posixtm.c: Likewise.
51632         [HAVE_STDBOOL_H]: Include <stdbool.h>.
51633         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
51634         (t): Remove static var.
51635         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
51636         of static var.  All uses changed.
51637         (year): Do not reject years before 1900; they can occur with
51638         64-bit time_t.
51639         (posix_time_parse): Do not check for out-of-range components;
51640         that is now the caller's responsibility, since our checks were
51641         only approximations.
51642         (posixtime): Use mktime to check for out-of-range components,
51643         since it knows them exactly.
51644         If mktime returns (time_t) -1, check whether an error actually occurred
51645         by invoking localtime on -1.
51646         (main) [TEST_POSIXTIME]: Check for input data errors, and report
51647         posixtime failures better.
51648         Improve the test data (in comments only).
51649
51650 2003-06-02  Karl Berry  <karl@gnu.org>
51651
51652         * config/mkinstalldirs (version): new variable.
51653         (--version): new option.
51654         (usage): improve message.
51655
51656 2003-05-30  Karl Berry  <karl@gnu.org>
51657
51658         * lib/mktime.c: update from libc.
51659
51660 2003-05-30  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
51663         * config/config.rpath: Upgrade to gettext-0.12.1.
51664
51665 2003-05-30  Bruno Haible  <bruno@clisp.org>
51666
51667         * m4/gettext.m4: Upgrade to gettext-0.12.1.
51668         * m4/nls.m4: New file, from gettext-0.12.1.
51669         * m4/po.m4: New file, from gettext-0.12.1.
51670         * m4/progtest.m4: Upgrade to gettext-0.12.1.
51671
51672 2003-05-30  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
51675         * lib/localcharset.h: Likewise.
51676         * lib/localcharset.c: Likewise.
51677
51678 2003-05-29  Karl Berry  <karl@gnu.org>
51679
51680         * config/config.rpath: update from gettext.
51681
51682 2003-05-28  Paul Eggert  <eggert@twinsun.com>
51683
51684         Assume the headers required for C89 freestanding compilers.
51685         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
51686         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
51687         * m4/human.m4 (gl_HUMAN): Likewise.
51688         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
51689         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
51690         * m4/userspec.m4 (gl_USERSPEC): Likewise.
51691         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
51692         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51693         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
51694
51695 2003-05-28  Paul Eggert  <eggert@twinsun.com>
51696
51697         Assume the headers required for C89 freestanding compilers.
51698         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
51699         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
51700         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
51701         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
51702         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
51703         define, since <limits.h> is guaranteed to do that.
51704         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
51705         * lib/exclude.c: Include <stdbool.h> unconditionally.
51706         * lib/tempname.c: Include <stddef.h> unconditionally.
51707         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
51708         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
51709         <stddef.h> does that.
51710         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
51711         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
51712         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
51713         needed.
51714         * lib/xstrtol.c: Likewise.
51715         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
51716         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
51717
51718         * lib/addext.c (addext): Use assignment rather than cast, to avoid
51719         warnings on some platforms.
51720
51721         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
51722         arbitrarily.
51723
51724 2003-05-26  Jim Meyering  <jim@meyering.net>
51725
51726         Merge in a change from coreutils:
51727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
51728         that is guaranteed to be `no'.  Use `no_such_member' to indicate
51729         that condition, rather than `-1' which is slightly misleading.
51730         Change the name of the cache variable to have the gl_ prefix.
51731         Prompted by a patch from Richard Dawe for DJGPP.
51732
51733 2003-05-24  Karl Berry  <karl@gnu.org>
51734
51735         * config/config.guess: update from prep.
51736
51737 2003-05-22  Karl Berry  <karl@gnu.org>
51738
51739         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
51740
51741 2003-05-20  Karl Berry  <karl@gnu.org>
51742
51743         * config/config.guess: update from prep.
51744
51745 2003-05-18  Karl Berry  <karl@gnu.org>
51746
51747         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
51748         might actually be set by the user.
51749
51750         * config/depcomp, install-sh, mdate-sh: update from automake.
51751
51752 2003-05-17  Bruno Haible  <bruno@clisp.org>
51753
51754         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
51755         invalid expansion for AC_EGREP_CPP.
51756         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
51757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
51758         Suggested by Akim Demaille <akim@epita.fr> in
51759         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
51760
51761 2003-05-12  Jim Meyering  <jim@meyering.net>
51762
51763         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
51764         the space-padded-by-default conversion specifiers, %e, %k, %l.
51765
51766 2003-05-12  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
51769         the string is longer than 4 KB.
51770
51771 2003-05-11  Karl Berry  <karl@gnu.org>
51772
51773         * config/config.{guess,sub}: update from prep.
51774
51775 2003-05-09  Bruno Haible  <bruno@clisp.org>
51776
51777         * modules/error: Add m4/strerror_r.m4 to file list.
51778
51779 2003-05-03  Bruno Haible  <bruno@clisp.org>
51780
51781         Upgrade to Unicode-4.0.
51782         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
51783         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
51784         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
51785         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
51786         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
51787         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
51788         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
51789         Change width of U+E0100..U+E01EF from 1 to 0.
51790
51791 2003-04-25  Jim Meyering  <jim@meyering.net>
51792
51793         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
51794         of type size_t, not int.
51795
51796 2003-04-25  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/copy-file.c: Include <stddef.h>, for size_t.
51799
51800 2003-04-21  Paul Eggert  <eggert@twinsun.com>
51801
51802         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
51803         code which expansion is under static control.  Patch imported from
51804         Akim Demaille's patch to Bison; see
51805         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
51806
51807 2003-04-14  Bruno Haible  <bruno@clisp.org>
51808
51809         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
51810
51811 2003-04-11  Jim Meyering  <jim@meyering.net>
51812
51813         Merge changes from Coreutils.
51814
51815         2003-03-22  Jim Meyering  <jim@meyering.net>
51816
51817         * lib/strftime.c (widen): Cast alloca return value to proper type.
51818
51819         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
51820
51821         From GNU libc.
51822         * lib/strftime.c (my_strftime): Handle very large width
51823         specifications for numeric values correctly.  Improve checks for
51824         overflow.
51825
51826         2003-01-19  Jim Meyering  <jim@meyering.net>
51827
51828         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
51829         definitions.
51830         (nl_get_alt_digit) [! defined my_strftime]: Define.
51831         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
51832         _nl_get_alt_digit and _nl_get_walt_digit.
51833
51834         * lib/strftime.c (my_strftime): Merge in locale-related changes from
51835         libc. These changes have no effect outside of _LIBC.
51836
51837 2003-04-10  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/findprog: New file.
51840         * MODULES.html.sh (func_all_modules): Add it.
51841
51842 2003-04-10  Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/findprog.m4: New file.
51845         * m4/eaccess.m4: New file.
51846
51847 2003-04-10  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/findprog.h: New file, from GNU gettext.
51850         * lib/findprog.c: New file, from GNU gettext.
51851
51852 2003-04-05  Jim Meyering  <jim@meyering.net>
51853
51854         Merge changes from Coreutils.
51855
51856         * lib/exclude.h (PARAMS): Remove definition and uses.
51857         * lib/exclude.c: Remove uses of `PARAMS'.
51858
51859         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
51860         Add test-cases for DOS filenames. Declare program_name.
51861         (main): Set up program_name.  Patch by Rich Dawe.
51862
51863         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
51864         error from mntctl.
51865         Use mntctl's return value to drive the entry-processing loop, since
51866         we can't rely on the value of the vmt_length member in the last
51867         entry.  On some systems doing so could result in exhausting
51868         virtual memory.  Based in part on a patch from Mike Jetzer.
51869
51870 2003-04-04  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/linebreak: New file.
51873         * MODULES.html.sh (func_all_modules): Add it.
51874
51875 2003-04-04  Bruno Haible  <bruno@clisp.org>
51876
51877         * m4/linebreak.m4: New file.
51878
51879 2003-04-04  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/linebreak.h: New file, from GNU gettext.
51882         * lib/linebreak.c: New file, from GNU gettext with slight
51883         modifications.
51884         * lib/lbrkprop.h: New file, from GNU gettext.
51885
51886 2003-04-03  Bruno Haible  <bruno@clisp.org>
51887
51888         * modules/utf8-ucs4: New file.
51889         * modules/utf16-ucs4: New file.
51890         * modules/ucs4-utf8: New file.
51891         * modules/ucs4-utf16: New file.
51892         * MODULES.html.sh (func_all_modules): Add them.
51893
51894 2003-04-03  Bruno Haible  <bruno@clisp.org>
51895
51896         * m4/utf-ucs4.m4: New file.
51897         * m4/ucs4-utf.m4: New file.
51898
51899 2003-04-03  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/utf8-ucs4.h: New file, from GNU gettext.
51902         * lib/utf16-ucs4.h: New file, from GNU gettext.
51903         * lib/ucs4-utf8.h: New file, from GNU gettext.
51904         * lib/ucs4-utf16.h: New file, from GNU gettext.
51905
51906 2003-04-02  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/binary-io: New file.
51909         * MODULES.html.sh (func_all_modules): Add it.
51910
51911 2003-04-02  Bruno Haible  <bruno@clisp.org>
51912
51913         * lib/binary-io.h: New file, from GNU gettext.
51914
51915 2003-04-01  Bruno Haible  <bruno@clisp.org>
51916
51917         * modules/pathname: New file.
51918         * MODULES.html.sh (func_all_modules): Add it.
51919
51920 2003-04-01  Bruno Haible  <bruno@clisp.org>
51921
51922         * lib/pathname.h: New file, from GNU gettext.
51923         * lib/concatpath.c: New file, from GNU gettext.
51924
51925 2003-03-30  Bruno Haible  <bruno@clisp.org>
51926
51927         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
51928
51929 2003-03-30  Bruno Haible  <bruno@clisp.org>
51930
51931         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
51932         function chown() doesn't exist.
51933
51934 2003-03-28  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/copy-file: New file.
51937         * MODULES.html.sh (func_all_modules): Add it.
51938
51939 2003-03-28  Bruno Haible  <bruno@clisp.org>
51940
51941         * m4/copy-file.m4: New file.
51942
51943 2003-03-28  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/copy-file.h: New file, from GNU gettext.
51946         * lib/copy-file.c: New file, from GNU gettext.
51947
51948 2003-03-18  Jim Meyering  <jim@meyering.net>
51949
51950         * lib/quote.c (quote_n): Fix typo in comment.
51951
51952 2003-03-18  Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
51955         checking.
51956         * m4/onceonly_2_57.m4: Likewise.
51957
51958 2003-03-17  Bruno Haible  <bruno@clisp.org>
51959
51960         * m4/onceonly.m4: Require autoconf 2.54 or newer.
51961         (m4_quote): Remove macro.
51962         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
51963
51964 2003-03-14  Jim Meyering  <jim@meyering.net>
51965
51966         Merge changes from Coreutils.
51967         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
51968         to be const, in order to avoid warnings.
51969         (obstack_room): Likewise.
51970         (obstack_empty_p): Likewise.
51971
51972 2003-03-14  Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
51975         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
51976
51977 2003-03-13  Paul Eggert  <eggert@twinsun.com>
51978
51979         Merge changes from Bison.
51980         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
51981         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
51982         when compiling Bison 1.875's `bitset bset = obstack_alloc
51983         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
51984         * lib/hash.c: Include <stdbool.h> unconditionally.
51985
51986 2003-03-13  Paul Eggert  <eggert@twinsun.com>
51987
51988         * m4/onceonly.m4 (m4_quote): New macro.
51989         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
51990         Quote AC_FOREACH variable-expansions properly.
51991
51992 2003-03-13  Paul Eggert  <eggert@twinsun.com>
51993
51994         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
51995
51996 2003-03-09  Paul Eggert  <eggert@twinsun.com>
51997
51998         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
51999         Reported by Bruce Becker; see:
52000         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
52001
52002 2003-03-03  Paul Eggert  <eggert@twinsun.com>
52003             Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
52006         Reported by John Hughes, see
52007         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
52008
52009 2003-02-20  Bruno Haible  <bruno@clisp.org>
52010
52011         * MODULES.html.sh (func_all_modules): Add poll.
52012
52013 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52014
52015         * modules/poll: New file.
52016
52017 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52018
52019         * lib/poll_.h: New file.
52020         * lib/poll.c: New file.
52021
52022 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52023
52024         * m4/poll.m4: New file.
52025
52026 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52027
52028         * modules/mathl: New file.
52029
52030 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52031
52032         * lib/mathl.h: New file.
52033         * lib/acosl.c: New file.
52034         * lib/asinl.c: New file.
52035         * lib/atanl.c: New file.
52036         * lib/ceill.c: New file.
52037         * lib/cosl.c: New file.
52038         * lib/expl.c: New file.
52039         * lib/floorl.c: New file.
52040         * lib/frexpl.c: New file.
52041         * lib/ldexpl.c: New file.
52042         * lib/logl.c: New file.
52043         * lib/sincosl.c: New file.
52044         * lib/sinl.c: New file.
52045         * lib/sqrtl.c: New file.
52046         * lib/tanl.c: New file.
52047         * lib/trigl.c: New file.
52048         * lib/trigl.h: New file.
52049
52050 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52051
52052         * m4/mathl.m4: New file.
52053
52054 2003-02-18  Bruno Haible  <bruno@clisp.org>
52055
52056         * MODULES.html.sh (func_all_modules): Add mathl.
52057
52058 2003-02-17  Bruno Haible  <bruno@clisp.org>
52059
52060         * modules/mkdtemp: New module.
52061         * MODULES.html.sh (func_all_modules): Add it.
52062
52063 2003-02-17  Bruno Haible  <bruno@clisp.org>
52064
52065         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
52066
52067 2003-02-17  Bruno Haible  <bruno@clisp.org>
52068
52069         * lib/mkdtemp.h: New file, from GNU gettext.
52070         * lib/mkdtemp.c: New file, from GNU gettext.
52071
52072 2003-02-02  Jim Meyering  <jim@meyering.net>
52073
52074         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
52075         e.g. glibc-2.2.93.
52076
52077 2003-01-31  Bruno Haible  <bruno@clisp.org>
52078
52079         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
52080         'rpl_rename'.
52081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
52082         'rpl_strnlen'.
52083         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
52084         'rpl_strtod'.
52085         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
52086         'rpl_utime'.
52087
52088 2003-01-31  Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/rename.c: #undef rename before defining rpl_rename.
52091         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
52092
52093 2003-01-30  Bruno Haible  <bruno@clisp.org>
52094
52095         * modules/vasnprintf, modules/vasprintf: New modules.
52096         * MODULES.html.sh (func_all_modules): Add them.
52097
52098 2003-01-30  Bruno Haible  <bruno@clisp.org>
52099
52100         * m4/signed.m4: New file, from GNU gettext.
52101         * m4/longdouble.m4: New file, from GNU gettext.
52102         * m4/wchar_t.m4: New file, from GNU gettext.
52103         * m4/wint_t.m4: New file, from GNU gettext.
52104         * m4/vasnprintf.m4: New file.
52105         * m4/vasprintf.m4: New file.
52106
52107 2003-01-30  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/printf-args.h: New file, from GNU gettext.
52110         * lib/printf-args.c: New file, from GNU gettext.
52111         * lib/printf-parse.h: New file, from GNU gettext.
52112         * lib/printf-parse.c: New file, from GNU gettext.
52113         * lib/vasnprintf.h: New file, from GNU gettext.
52114         * lib/vasnprintf.c: New file, from GNU gettext.
52115         * lib/asnprintf.c: New file, from GNU gettext.
52116         * lib/vasprintf.h: New file, from GNU gettext with modifications.
52117         * lib/vasprintf.c: New file, from GNU gettext.
52118         * lib/asprintf.c: New file, from GNU gettext.
52119
52120 2003-01-29  Bruno Haible  <bruno@clisp.org>
52121
52122         * modules/stpncpy: New module.
52123         * MODULES.html.sh (func_all_modules): Add it.
52124
52125 2003-01-29  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/stpncpy.m4: New file.
52128
52129 2003-01-29  Bruno Haible  <bruno@clisp.org>
52130
52131         * lib/stpncpy.h: New file, from GNU gettext with modifications.
52132         * lib/stpncpy.c: New file, from GNU gettext with modifications.
52133
52134 2003-01-28  Bruno Haible  <bruno@clisp.org>
52135
52136         * modules/c-ctype: New module.
52137         * MODULES.html.sh (func_all_modules): Add it.
52138
52139 2003-01-28  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
52142         Paul Eggert.
52143         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
52144         Paul Eggert.
52145
52146 2003-01-27  Bruno Haible  <bruno@clisp.org>
52147
52148         * modules/xsetenv: New module.
52149         * MODULES.html.sh (func_all_modules): Add it.
52150
52151 2003-01-27  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/xsetenv.h: New file, from GNU gettext.
52154         * lib/xsetenv.c: New file, from GNU gettext.
52155
52156 2003-01-23  Jim Meyering  <jim@meyering.net>
52157
52158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
52159         from working on systems without dirfd (at least Irix and OSF1/Tru64).
52160
52161 2003-01-23  Bruno Haible  <bruno@clisp.org>
52162
52163         * modules/minmax: New module.
52164         * MODULES.html.sh (func_all_modules): Add it.
52165
52166 2003-01-23  Bruno Haible  <bruno@clisp.org>
52167
52168         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
52169         Eggert.
52170
52171 2003-01-22  Bruno Haible  <bruno@clisp.org>
52172
52173         * modules/exit: New module.
52174         * MODULES.html.sh (func_all_modules): Add it.
52175
52176 2003-01-22  Bruno Haible  <bruno@clisp.org>
52177
52178         * lib/exit.h: New file, from GNU gettext.
52179
52180 2003-01-19  Bruno Haible  <bruno@clisp.org>
52181
52182         * gnulib-tool: Recognize option --extract-maintainer.
52183         (func_get_maintainer): New function.
52184         * modules/*: Add Maintainer entry.
52185
52186 2003-01-16  Jim Meyering  <jim@meyering.net>
52187
52188         * m4/regex.m4: The `regex' struct is both input and output.
52189         Initialize it before each use.  Patch by Tim Waugh.
52190
52191 2003-01-16  Bruno Haible  <bruno@clisp.org>
52192
52193         * MODULES.html.sh: Add a table of contents. Add the module name as
52194         leftmost column. Add hyperlinks.
52195
52196 2003-01-15  Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
52199
52200 2003-01-15  Bruno Haible  <bruno@clisp.org>
52201
52202         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
52203         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
52204         suffix.
52205
52206 2003-01-15  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
52209
52210 2003-01-15  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
52213         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
52214
52215 2003-01-14  Jim Meyering  <jim@meyering.net>
52216
52217         * lib/same.c (same_name): Tweak a comment.
52218
52219 2003-01-14  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
52222         when a string comparison is sufficient.
52223
52224 2003-01-14  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
52227         'unsigned int'.
52228
52229 2003-01-14  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/hash-pjw.c: Add comment about low quality of this function.
52232
52233 2003-01-13  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/stpcpy: Distribute lib/stpcpy.h.
52236         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
52237
52238 2003-01-13  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/*: Add a description.
52241         * modules/strpbrk: Fix Makefile.am snippet.
52242         * modules/strtoimax: Fix dependencies.
52243         * modules/strtoumax: Likewise.
52244
52245 2003-01-13  Bruno Haible  <bruno@clisp.org>
52246
52247         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
52248         * modules/alloca (Makefile.am): All object files depend on alloca.h.
52249         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
52250
52251 2003-01-13  Bruno Haible  <bruno@clisp.org>
52252
52253         * gnulib-tool (func_create_testdir): Store config/* files in the main
52254         directory.
52255         * config.rpath: Move to ...
52256         * config/config.rpath: ... here.
52257         * modules/gettext: Contains config/config.rpath, not config.rpath.
52258         * modules/iconv: Likewise.
52259
52260 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52261
52262         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52263         to avoid collisions with libcurses and libreadline.
52264
52265         * m4/getstr.m4: Remove.
52266         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
52267
52268 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52269
52270         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52271         to avoid collisions with libcurses and libreadline.
52272
52273         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
52274         * lib/getstr.h, getstr.c: Remove.
52275         * lib/getline.c: Include "getline.h", to check interface.
52276         Move body of old getstr.c here: this defines MIN_CHUNK and
52277         declares getdelim2, which is renamed from getstr.
52278         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
52279
52280         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
52281         All uses changed.
52282         * lib/linebuffer.h: Likewise.
52283         (readline): Remove backward-compatibility macro.
52284
52285 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52286
52287         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52288         to avoid collisions with libcurses and libreadline.
52289         * getstr: Remove.
52290         * MODULES.html.sh: Remove getstr.
52291         * modules/getline: Depend on unlocked-io, not getstr.
52292
52293 2003-01-12  Jim Meyering  <jim@meyering.net>
52294
52295         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
52296
52297 2003-01-10  Bruno Haible  <bruno@clisp.org>
52298
52299         * modules/alloca: Change Makefile.am requirements. Simplify Include
52300         requirements. Add lib/alloca_.h to file list.
52301
52302 2003-01-10  Bruno Haible  <bruno@clisp.org>
52303
52304         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
52305
52306 2003-01-10  Bruno Haible  <bruno@clisp.org>
52307
52308         * lib/alloca_.h: New file.
52309         * lib/getdate.y: Unconditionally include alloca.h.
52310         * lib/makepath.c: Likewise.
52311         * lib/setenv.c: Likewise.
52312         * lib/userspec.c: Likewise.
52313
52314 2003-01-09  Karl Berry  <karl@gnu.org>
52315
52316         * MODULES.html.sh: include `dirname $0` in PATH, to find
52317         gnulib-tool.
52318
52319 2003-01-09  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/stdbool: Change configure.ac, Makefile.am requirements.
52322         Simplify Include requirements. Add lib/stdbool.h.in to file list.
52323
52324 2003-01-09  Bruno Haible  <bruno@clisp.org>
52325
52326         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
52327
52328 2003-01-09  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/stdbool.h.in: New file.
52331
52332 2003-01-09  Bruno Haible  <bruno@clisp.org>
52333
52334         * gnulib-tool (func_all_modules): Ignore files ending in ~.
52335         * MODULES.html.sh: Likewise.
52336
52337 2003-01-08  Jim Meyering  <jim@meyering.net>
52338
52339         * lib/full-write.c: Undefine and define-away `const' after inclusion
52340         of errno.h, not before.  Suggestion from Bruno Haible.
52341
52342 2003-01-08  Bruno Haible  <bruno@clisp.org>
52343
52344         * modules/full-read: Depend on full-write.
52345
52346 2003-01-08  Bruno Haible  <bruno@clisp.org>
52347
52348         * lib/safe-read.c: Include specification header first, to ensure its
52349         selfcontainedness.
52350         * lib/full-write.c: Likewise.
52351
52352 2003-01-07  Jim Meyering  <jim@meyering.net>
52353
52354         * lib/full-write.c: Rework so that it may serve to define full_read,
52355         too.
52356         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
52357
52358 2003-01-07  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/strtoimax.c: Include <stdint.h> as an alternative to
52361         <inttypes.h>.
52362         * lib/xstrtol.h: Likewise.
52363         * lib/xstrtoimax.c: Likewise.
52364         * lib/xstrtoumax.c: Likewise.
52365         * lib/human.h: Likewise.
52366
52367         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
52368         on systems that have <inttypes.h> but not <stdint.h>.
52369
52370 2003-01-07  Bruno Haible  <bruno@clisp.org>
52371
52372         * MODULES.html.sh: Add copyright notice.
52373         (missed_files): Omit CVS directory entries.
52374         (func_module): Make it work with sed-3.02.
52375         * MODULES.txt: Remove file.
52376
52377 2003-01-06  Jim Meyering  <jim@meyering.net>
52378
52379         * lib/version-etc.c: Update year in translatable copyright string.
52380
52381 2003-01-03  Karl Berry  <karl@gnu.org>
52382
52383         * config/config.{guess,sub}: update from prep.
52384
52385 2003-01-02  Karl Berry  <karl@gnu.org>
52386
52387         * doc/COPYING.DOC: belatedly updated to 1.2.
52388
52389 2003-01-01  Karl Berry  <karl@gnu.org>
52390
52391         * gnulib-tool (func_verify_module): report module name $module in
52392         error message, not $1.
52393         * gnulib-tool (create-testdir): don't complain if destdir couldn't
52394         be created, only if it doesn't exist.
52395         * gnulib-tool (last_checkin_date): don't expand the $Date here.
52396
52397 2002-12-31  Paul Eggert  <eggert@twinsun.com>
52398
52399         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
52400
52401 2002-12-31  Paul Eggert  <eggert@twinsun.com>
52402
52403         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
52404         memcmp if strcoll doesn't work.
52405
52406 2002-12-31  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/utime.c (utime_null): No need to call ftruncate if the file was
52409         nonempty.
52410
52411 2002-12-31  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/memcoll.c (STRCOLL): New macro.
52414         (memcoll): Use it.
52415
52416 2002-12-31  Bruno Haible  <bruno@clisp.org>
52417
52418         * lib/localcharset.h: New file.
52419         * lib/localcharset.c: Include it.
52420         * lib/unicodeio.c: Likewise.
52421
52422 2002-12-31  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
52425         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
52426
52427 2002-12-31  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/getline.h: Include <stddef.h>, for size_t.
52430
52431         * lib/unicodeio.h: Include <stddef.h>, for size_t.
52432         * lib/unicodeio.c: Don't include <stddef.h>.
52433
52434 2002-12-31  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
52437         HAVE_TM_ZONE.
52438
52439 2002-12-24  Karl Berry  <karl@gnu.org>
52440
52441         * config/config.guess: update from prep.
52442
52443 2002-12-24  Bruno Haible  <bruno@clisp.org>
52444
52445         General infrasructure.
52446         * m4/README: Rewritten.
52447         * m4/onceonly.m4: New file.
52448         * m4/onceonly_2_57.m4: New file.
52449
52450         Module atexit.
52451         * m4/atexit.m4: New file.
52452
52453         Module strtod.
52454         * m4/strtod.m4: New file.
52455
52456         Module strtol.
52457         * m4/strtol.m4: New file.
52458
52459         Module strtoul.
52460         * m4/strtoul.m4: New file.
52461
52462         Module memchr.
52463         * m4/memchr.m4: New file.
52464
52465         Module memcmp.
52466         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
52467         (jm_FUNC_MEMCMP): Invoke it.
52468
52469         Module memcpy.
52470         * m4/memcpy.m4: New file.
52471
52472         Module memmove.
52473         * m4/memmove.m4: New file.
52474
52475         Module memset.
52476         * m4/memset.m4: New file.
52477
52478         Module strcspn.
52479         * m4/strcspn.m4: New file.
52480
52481         Module strpbrk.
52482         * m4/strpbrk.m4: New file.
52483
52484         Module strstr.
52485         * m4/strstr.m4: New file.
52486
52487         Module strerror.
52488         * m4/strerror.m4: New file.
52489
52490         Module mktime.
52491         * m4/mktime.m4: Renamed from jm-mktime.m4.
52492         (gl_PREREQ_MKTIME): New macro.
52493         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
52494
52495         Module malloc.
52496         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
52497         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
52498         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
52499
52500         Module realloc.
52501         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
52502         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
52503         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
52504
52505         Module strftime.
52506         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
52507         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
52508         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
52509         gl_TM_GMTOFF.
52510         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
52511
52512         Module xalloc.
52513         * m4/xalloc.m4: New file.
52514
52515         Module alloca.
52516         * m4/alloca.m4: New file.
52517
52518         Module putenv.
52519         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
52520         (jm_FUNC_PUTENV): Invoke it.
52521
52522         Module setenv.
52523         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
52524         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
52525         when invoked twice.
52526         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
52527         gt_FUNC_SETENV.
52528
52529         Module memrchr.
52530         * m4/memrchr.m4: New file.
52531
52532         Module stpcpy.
52533         * m4/stpcpy.m4: New file.
52534
52535         Module strcase.
52536         * m4/strcase.m4: New file.
52537
52538         Module strdup.
52539         * m4/strdup.m4: New file.
52540
52541         Module strnlen.
52542         * m4/strnlen.m4: New file.
52543
52544         Module strndup.
52545         * m4/strndup.m4: New file.
52546
52547         Module xstrtod.
52548         * m4/xstrtod.m4: New file.
52549
52550         Module xstrtol.
52551         * m4/xstrtol.m4: New file.
52552
52553         Module getdate.
52554         * m4/getdate.m4: New file.
52555
52556         Module unlocked-io.
52557         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
52558         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
52559         * m4/jm-glibc-io.m4n: Remove file.
52560
52561         Module long-options.
52562         * m4/long-options.m4: New file.
52563
52564         Module md5.
52565         * m4/md5.m4: New file.
52566
52567         Module sha.
52568         * m4/sha.m4: New file.
52569
52570         Module getstr.
52571         * m4/getstr.m4: New file.
52572
52573         Module getline.
52574         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
52575         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
52576         <sys/types.h>, for size_t. Use the function name gnu_getline, not
52577         simply getline. Infoke gl_PREREQ_GETLINE.
52578
52579         Module obstack.
52580         * m4/obstack.m4: New file.
52581
52582         Module hash.
52583         * m4/hash.m4: New file.
52584
52585         Module readtokens.
52586         * m4/readtokens.m4: New file.
52587
52588         Module strverscmp.
52589         * m4/strverscmp.m4: New file.
52590
52591         Module stdbool.
52592         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
52593         OSF/1.
52594
52595         Module strtoll.
52596         * m4/strtoll.m4: New file.
52597
52598         Module strtoull.
52599         * m4/strtoull.m4: New file.
52600
52601         Module strtoimax.
52602         * m4/strtoimax.m4: New file.
52603
52604         Module strtoumax.
52605         * m4/strtoumax.m4: New file.
52606
52607         Module xstrtoimax.
52608         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
52609         jm_AC_PREREQ_XSTRTOIMAX.
52610         Moved the strtol prerequisites to strtol.m4.
52611         Moved the strtoll prerequisites to strtoll.m4.
52612         Moved the strtoimax prerequisites to strtoimax.m4.
52613
52614         Module xstrtoumax.
52615         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
52616         jm_AC_PREREQ_XSTRTOUMAX.
52617         Moved the strtoul prerequisites to strtoul.m4.
52618         Moved the strtoull prerequisites to strtoull.m4.
52619         Moved the strtoumax prerequisites to strtoumax.m4.
52620
52621         Module chown.
52622         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
52623         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
52624
52625         Module dup2.
52626         * m4/dup2.m4: New file.
52627
52628         Module ftruncate.
52629         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
52630         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
52631
52632         Module getgroups.
52633         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
52634         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
52635
52636         Module gettimeofday.
52637         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
52638         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
52639         gl_PREREQ_GETTIMEOFDAY.
52640
52641         Module mkdir.
52642         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
52643         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
52644
52645         Module mkstemp.
52646         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
52647         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
52648         jm_AC_TYPE_UINTMAX_T.
52649         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
52650
52651         Module stat.
52652         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
52653         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
52654
52655         Module lstat.
52656         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
52657         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
52658
52659         Module timespec.
52660         * m4/timespec.m4 (gl_TIMESPEC): New macro.
52661         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
52662         * m4/st_mtim.m4: Indentation.
52663
52664         Module nanosleep.
52665         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
52666         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
52667         gl_PREREQ_NANOSLEEP.
52668
52669         Module regex.
52670         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
52671         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
52672         (gl_REGEX): New macro.
52673
52674         Module rename.
52675         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
52676         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
52677
52678         Module rmdir.
52679         * m4/rmdir.m4: New file.
52680
52681         Module utime.
52682         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
52683         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
52684         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
52685
52686         Module dirname.
52687         * m4/dirname.m4: New file.
52688
52689         Module getopt.
52690         * m4/getopt.m4: New file.
52691
52692         Module unistd-safer.
52693         * m4/unistd-safer.m4: New file.
52694
52695         Module fnmatch.
52696         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
52697         declaration.
52698         (gl_PREREQ_FNMATCH_EXTRA): New macro.
52699         (gl_FUNC_FNMATCH_POSIX): New macro.
52700         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
52701         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
52702         simply fnmatch.
52703
52704         Module exclude.
52705         * m4/exclude.m4: New file.
52706
52707         Module human.
52708         * m4/human.m4: New file.
52709
52710         Module acl.
52711         * m4/acl.m4: Nop.
52712
52713         Module backupfile.
52714         * m4/backupfile.m4: New file.
52715         * m4/d-ino.m4: Indentation.
52716
52717         Module fsusage.
52718         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
52719         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
52720         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
52721
52722         Module dirfd.
52723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
52724         requirements.
52725
52726         Module euidaccess.
52727         * m4/euidaccess.m4: New file.
52728
52729         Module file-type.
52730         * m4/file-type.m4: New file.
52731
52732         Module fileblocks.
52733         * m4/fileblocks.m4: New file.
52734
52735         Module filemode.
52736         * m4/filemode.m4: New file.
52737
52738         Module isdir.
52739         * m4/isdir.m4: New file.
52740
52741         Module lchown.
52742         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
52743         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
52744
52745         Module makepath.
52746         * m4/makepath.m4: New file.
52747
52748         Module modechange.
52749         * m4/modechange.m4: New file.
52750
52751         Module mountlist.
52752         * m4/mountlist.m4: New file.
52753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
52754         Indentation.
52755
52756         Module path-concat.
52757         * m4/path-concat.m4: New file.
52758
52759         Module pathmax.
52760         * m4/pathmax.m4: New file.
52761
52762         Module same.
52763         * m4/same.m4: New file.
52764
52765         Module save-cwd.
52766         * m4/save-cwd.m4: New file.
52767
52768         Module savedir.
52769         * m4/savedir.m4: New file.
52770
52771         Module xgetcwd.
52772         * m4/xgetcwd.m4: New file.
52773         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
52774
52775         Module xreadlink.
52776         * m4/xreadlink.m4: New file.
52777
52778         Module safe-read.
52779         * m4/safe-read.m4: New file.
52780
52781         Module safe-write.
52782         * m4/safe-write.m4: New file.
52783
52784         Module closeout.
52785         * m4/closeout.m4: New file.
52786
52787         Module stdio-safer.
52788         * m4/stdio-safer.m4: New file.
52789
52790         Module getpass.
52791         * m4/getpass.m4: New file.
52792
52793         Module getugroups.
52794         * m4/getugroups.m4: New file.
52795
52796         Module group-member.
52797         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
52798         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
52799
52800         Module idcache.
52801         * m4/idcache.m4: New file.
52802
52803         Module userspec.
52804         * m4/userspec.m4: New file.
52805
52806         Module gettime.
52807         * m4/clock_time.m4: New file.
52808         * m4/gettime.m4: New file.
52809
52810         Module settime.
52811         * m4/settime.m4: New file.
52812
52813         Module posixtm.
52814         * m4/posixtm.m4: New file.
52815
52816         Module gethostname.
52817         * m4/gethostname.m4: New file.
52818
52819         Module canon-host.
52820         * m4/canon-host.m4: New file.
52821
52822         Module gettext.
52823         * m4/codeset.m4: New file, from gettext-0.11.5.
52824         * m4/gettext.m4: New file, from gettext-0.11.5.
52825         * m4/glibc21.m4: New file, from gettext-0.11.5.
52826         * m4/iconv.m4: New file, from gettext-0.11.5.
52827         * m4/intdiv0.m4: New file, from gettext-0.11.5.
52828         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
52829         * m4/inttypes.m4: New file, from gettext-0.11.5.
52830         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
52831         * m4/isc-posix.m4: New file, from gettext-0.11.5.
52832         * m4/lcmessage.m4: New file, from gettext-0.11.5.
52833         * m4/lib-ld.m4: New file, from gettext-0.11.5.
52834         * m4/lib-link.m4: New file, from gettext-0.11.5.
52835         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
52836         * m4/progtest.m4: New file, from gettext-0.11.5.
52837         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
52838         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
52839         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
52840
52841         Module localcharset.
52842         * m4/localcharset.m4: New file.
52843
52844         Module hard-locale.
52845         * m4/hard-locale.m4: New file.
52846
52847         Module mbswidth.
52848         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
52849         onceonly macros.
52850         * m4/mbrtowc.m4: Add comment.
52851
52852         Module memcasecmp.
52853         * m4/memcasecmp.m4: New file.
52854
52855         Module memcoll.
52856         * m4/memcoll.m4: New file.
52857
52858         Module unicodeio.
52859         * m4/unicodeio.m4: New file.
52860
52861         Module rpmatch.
52862         * m4/rpmatch.m4: New file.
52863
52864         Module yesno.
52865         * m4/yesno.m4: New file.
52866
52867         Module exitfail.
52868         * m4/exitfail.m4: New file.
52869
52870         Module c-stack.
52871         * m4/c-stack.m4 (gl_C_STACK): New macro.
52872         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
52873
52874         Module error.
52875         * m4/error.m4 (gl_ERROR): New macro.
52876         (jm_PREREQ_ERROR): Use onceonly macros.
52877
52878         Module fatal.
52879         * m4/fatal.m4: New file.
52880
52881         Module getloadavg.
52882         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
52883         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
52884
52885         Module getpagesize.
52886         * m4/getpagesize.m4: New file.
52887
52888         Module getusershell.
52889         * m4/getusershell.m4: New file.
52890
52891         Module physmem.
52892         * m4/physmem.m4: New file.
52893
52894         Module posixver.
52895         * m4/posixver.m4: New file.
52896
52897         Module quotearg.
52898         * m4/quotearg.m4: New file.
52899
52900         Module quote.
52901         * m4/quote.m4: New file.
52902
52903         Module readutmp.
52904         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
52905
52906         Module sig2str.
52907         * m4/sig2str.m4: New file.
52908
52909         Other.
52910         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
52911         ulonglong.m4.
52912         * m4/intmax_t.m4: New file.
52913         * m4/d-type.m4: Indentation.
52914         * m4/jm-macros.m4: Update.
52915         * m4/prereq.m4 (jm_PREREQ): Update.
52916         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
52917         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
52918         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
52919         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
52920         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
52921         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
52922         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
52923         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
52924         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
52925         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
52926         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
52927         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
52928         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
52929         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
52930         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
52931         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
52932         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
52933         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
52934         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
52935
52936 2002-12-24  Bruno Haible  <bruno@clisp.org>
52937
52938         * MODULES.txt: Update according to m4/ changes.
52939
52940         Module gettext.
52941         * config.rpath: New file, from gettext-0.11.5.
52942
52943         * modules/*: New module descriptions.
52944         * gnulib-tool: New file.
52945         * MODULES.html.sh: New file.
52946
52947 2002-12-21  Karl Berry  <karl@gnu.org>
52948
52949         * doc/fdl.texi: update to version 1.2.
52950
52951 2002-12-19  Karl Berry  <karl@gnu.org>
52952
52953         * config/config.guess: update from prep.
52954
52955 2002-12-18  Bruno Haible  <bruno@clisp.org>
52956
52957         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
52958         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
52959
52960 2002-12-17  Bruno Haible  <bruno@clisp.org>
52961
52962         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
52963         stdlib.h, string.h.
52964
52965 2002-12-17  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/canon-host.c (strdup): Remove unused declaration.
52968
52969         * lib/fsusage.c: Include full_read.h.
52970         (get_fs_usage): Use full_read instead of safe_read.
52971
52972         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
52973
52974 2002-12-12  Karl Berry  <karl@gnu.org>
52975
52976         * config/config.guess: update from prep.
52977
52978 2002-12-11  Bruno Haible  <bruno@clisp.org>
52979
52980         * m4/setenv.m4: New file, from gettext-0.11.5.
52981
52982 2002-12-11  Bruno Haible  <bruno@clisp.org>
52983
52984         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
52985         not unsetenv().
52986         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
52987         modifications:
52988
52989         2002-12-11  Bruno Haible  <bruno@clisp.org>
52990
52991                 * setenv.c (alloca): Fall back to malloc.
52992                 (freea): New macro.
52993                 (setenv): Use freea() to free memory allocated with alloca().
52994
52995         2002-11-13  Bruno Haible  <bruno@clisp.org>
52996
52997                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
52998                 function declarations.
52999                 * unsetenv.c (unsetenv): Likewise.
53000
53001         2002-03-04  Bruno Haible  <bruno@clisp.org>
53002
53003                 Portability to AIX 4.3.3.
53004                 * unsetenv.c: New file, extracted from setenv.c.
53005                 * setenv.c: Move the unsetenv() function to unsetenv.c.
53006
53007         2001-12-20  Bruno Haible  <bruno@clisp.org>
53008
53009                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
53010                 use malloc instead. For SunOS 4.
53011
53012         2001-12-11  Bruno Haible  <bruno@clisp.org>
53013
53014                 * setenv.c: Declare alloca.
53015                 (compar_fn_t): New typedef.
53016                 (KNOWN_VALUE, STORE_VALUE): Use it.
53017
53018         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
53019         setenv.h.
53020
53021 2002-12-10  Paul Eggert  <eggert@twinsun.com>
53022
53023         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
53024         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
53025         Choose values that are less likely to collide with system fnmatch
53026         options.
53027         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
53028         defined (e.g., a pure POSIX system).
53029         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
53030         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
53031
53032 2002-12-06  Paul Eggert  <eggert@twinsun.com>
53033
53034         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
53035         a pain in practice to deal with generated m4 files.  This change
53036         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
53037
53038         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
53039         and jm-glibc-io.m4, as they are no longer a special case.
53040         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
53041         kludge and the auto-generation stuff.  Check only whether the
53042         functions are declared, not whether they exist, since older hosts
53043         that don't declare the functions can't use the optimization anyway.
53044
53045 2002-12-06  Jim Meyering  <jim@meyering.net>
53046
53047         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
53048
53049         Merge in changes from libc's misc/error.c, in preparation
53050         for the merge of gnulib's changes back into libc.
53051
53052         * lib/error.c (_): Define only if not already defined.
53053         Move definition to follow all #include directives.
53054         Include unlocked-io.h only if !_LIBC.
53055         [_LIBC]: Include <libio/libioP.h>.
53056         [USE_IN_LIBIO]: Include <libio/iolibio.h>
53057         (fflush): Tweak definition to use INTUSE.
53058         (putc): Define.
53059
53060 2002-12-05  Paul Eggert  <eggert@twinsun.com>
53061
53062         * lib/alloca.c [defined emacs]: Include "lisp.h".
53063         (xalloc_die) [defined emacs]: New macro.
53064         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
53065         [! defined emacs]: Include <xalloc.h>.
53066         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
53067         (pointer): Typedef to POINTER_TYPE *.
53068         (malloc): Remove decl; we now always use xmalloc.
53069         (alloca): Use old-style definition, since Emacs needs this.
53070         Check for arithmetic overflow when computing combined size.
53071
53072 2002-12-04  Paul Eggert  <eggert@twinsun.com>
53073
53074         Do not generate unlocked-io.h automatically, since it's easier to
53075         maintain it by hand.
53076
53077         * lib/unlocked-io.h: New file, from GNU diffutils,
53078         but with proper copyright notice and attribution.
53079         * lib/gen-uio: Remove.
53080         * lib/Makefile.am: Add copyright notice.
53081         (libfetish_a_SOURCES): Add unlocked-io.h.
53082         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
53083         (DISTCLEANFILES, io_functions): Remove macros.
53084         (EXTRA_DIST): Remove gen_uio.
53085         (unlocked-io.h): Remove rule.
53086
53087 2002-12-04  Jim Meyering  <jim@meyering.net>
53088
53089         Reflect the fact that stat.c and lstat.c are no longer generated.
53090         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
53091         (DISTCLEANFILES): Likewise.
53092         (EXTRA_DIST): Likewise.
53093         (all_local): Don't depend on stat.c or lstat.c.
53094         (stat.c, lstat.c): Remove rules.
53095         (EXTRA_DIST): Remove xstat.in.
53096
53097         * lib/xstat.in: Remove file.  Contents moved into stat.c.
53098         * lib/stat.c: New file.  Contents mostly from xstat.in.
53099         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
53100         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
53101
53102         * lib/safe-read.c: Rework so that it may serve to define safe_write,
53103         too.
53104         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
53105
53106 2002-12-03  Jim Meyering  <jim@meyering.net>
53107
53108         * lib/safe-read.c, safe-write.c: Change variable names and comments,
53109         but not semantics, to minimize the differences between these two files.
53110         (safe_read): Change comment to mention SAFE_READ_ERROR.
53111
53112         * lib/safe-read.c (IS_EINTR): Define.
53113         (safe_read): Use IS_EINTR in place of in-function cpp directives.
53114
53115 2002-12-02  Jim Meyering  <jim@meyering.net>
53116
53117         * lib/safe-read.c (EINTR): Define.
53118         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53119         (INT_MAX): Provide fallback.
53120         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
53121
53122         * lib/safe-read.h (SAFE_READ_ERROR): Define.
53123
53124 2002-12-02  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
53127         Define, taken from safe-read.c.
53128         (INT_MAX): Provide fallback.
53129         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
53130         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
53131
53132         * lib/safe-read.c (EINTR): Remove definition.
53133         (safe_read): Don't use EINTR if it is absent.
53134
53135 2002-12-01  Jim Meyering  <jim@meyering.net>
53136
53137         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
53138         zero.
53139         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
53140
53141 2002-11-27  Paul Eggert  <eggert@twinsun.com>
53142
53143         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
53144         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
53145         with `if (! (value < limit)) abort ();', for readability.
53146
53147 2002-11-26  Karl Berry  <karl@gnu.org>
53148
53149         * lib/strdup.c: copy from libc again, with jim's ok.
53150         * lib/.cppi-disable: re-add strdup.c
53151
53152 2002-11-25  Karl Berry  <karl@gnu.org>
53153
53154         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
53155         instead of "strtol.c".
53156
53157 2002-11-25  Karl Berry  <karl@gnu.org>
53158
53159         * config/install-sh: update from automake for variable quoting, $0 in
53160         error msgs, etc.
53161
53162         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
53163         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
53164         entry.
53165
53166 2002-11-25  Jim Meyering  <jim@meyering.net>
53167
53168         * lib/mktime.c: Sync from libc, now that it has the latest fix.
53169
53170 2002-11-24  Karl Berry  <karl@gnu.org>
53171
53172         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
53173         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
53174
53175 2002-11-24  Jim Meyering  <jim@meyering.net>
53176
53177         Update from coreutils:
53178
53179         * lib/mktime.c: Merge in changes from libc.
53180
53181         Avoid a link-time failure on some Linux systems.
53182         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
53183         (otherwise).
53184         (__mon_yday): Declare with the STATIC attribute.
53185         (__mktime_internal): Likewise.
53186         Based on a report from Greg Schafer.
53187
53188 2002-11-23  Jim Meyering  <jim@meyering.net>
53189
53190         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
53191         Use `unsigned', not `int', as type of index.
53192
53193         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
53194
53195         * lib/fsusage.c: Remove unneeded parentheses around operands of
53196         `defined'.
53197
53198 2002-11-22  Paul Eggert  <eggert@twinsun.com>
53199
53200         * lib/quotearg.h: Allow multiple inclusion by surrounding with
53201         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
53202         so that we can be included first.
53203         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
53204         * lib/quotearg.c: Include quotearg.h immediately after config.h.
53205         No need to include stddef.h or sys/types.h any more.
53206         Surround local include files with "", not "<>".
53207         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
53208         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
53209         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
53210         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
53211         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
53212         (ISPRINT): Remove; no longer needed now that we assume C89.
53213
53214         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
53215         Preserve errno.
53216
53217         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
53218         quotearg_char): Use SIZE_MAX rather than
53219         (size_t) -1 when we are talking about "infinity".
53220
53221         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
53222
53223 2002-11-22  Paul Eggert  <eggert@twinsun.com>
53224
53225         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
53226         hint that one should use `if (! x) abort ();' rather than `assert
53227         (x);', and anyway it's one less thing to worry about configuring.
53228         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
53229         hash_rehash, hash_insert): Use abort rather than assert.
53230
53231 2002-11-22  Bruno Haible  <bruno@clisp.org>
53232
53233         * lib/safe-read.h: Assume C89. Add comments.
53234         (safe_read): Change return type to size_t.
53235         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
53236         byte counts > SSIZE_MAX correctly.
53237         * lib/safe-write.h: New file.
53238         * lib/safe-write.c: New file.
53239         * lib/full-read.h: New file.
53240         * lib/full-read.c: New file.
53241         * lib/full-write.h: Assume C89. Add comments.
53242         * lib/full-write.c: Include safe-write.h.
53243         (full_write): Rewritten to use safe_write.
53244         Suggested by Jim Meyering and Paul Eggert.
53245
53246 2002-11-21  Jim Meyering  <jim@meyering.net>
53247
53248         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
53249
53250         Merge in changes from the coreutils.
53251
53252         2002-09-25  Paul Eggert  <eggert@twinsun.com>
53253         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
53254         <stdint.h>.
53255         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
53256         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
53257         int.  Work more efficiently if X is the same width as uintmax_t.
53258         Do not compare X to -1, to avoid bogus compiler warning.
53259         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
53260         Don't assume that f_frsize and f_bsize are the same type.
53261
53262         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
53263         warning on FreeBSD.
53264
53265         * lib/makepath.c (make_path): Restore umask *before* creating the final
53266         component.
53267         (make_path): Minor reformatting.
53268
53269         * lib/xmalloc.c: Adjust to work with new autoconf macros,
53270         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
53271         HAVE_MALLOC/HAVE_REALLOC.
53272
53273         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
53274         dummy ones.  At least on GNU/Linux systems, `auto' means something
53275         else.
53276         From Michael Stone.
53277
53278 2002-11-21  Bruno Haible  <bruno@clisp.org>
53279
53280         Remove case insensitive option matching.
53281         * lib/argmatch.h (argcasematch): Remove declaration.
53282         (ARGCASEMATCH): Remove macro.
53283         (__xargmatch_internal): Remove case_sensitive argument.
53284         (XARGMATCH): Update.
53285         (XARGCASEMATCH): Remove macro.
53286         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
53287         case_sensitive argument.
53288         (argcasematch): Remove function.
53289         (__xargmatch_internal): Remove case_sensitive argument.
53290         (main): Use XARGMATCH instead of XARGCASEMATCH.
53291
53292         * lib/xmalloc.c: Change compile-time error message. Add comment about
53293         required autoconf version.
53294
53295 2002-11-20  Paul Eggert  <eggert@twinsun.com>
53296
53297         Merge argmatch cleanups from Bison.  Assume C89.
53298
53299         * lib/argmatch.c: Include config.h here, not in argmatch.h.
53300         Include stdlib.h, for EXIT_FAILURE.
53301         Always include <string.h>, since we assume C89.
53302         (EXIT_FAILURE): Remove pre-C89 bug workaround.
53303         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
53304         Include <stddef.h> instead, since it's all we need for size_t.
53305         (PARAMS): Remove.  All uses removed.
53306         (ARRAY_CARDINALITY): Do not bother to #undef.
53307         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
53308         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
53309         Remove unnecessary parentheses.
53310         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
53311         Insert necessary parentheses.
53312         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
53313         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
53314
53315 2002-11-19  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
53318         * lib/mbswidth.h: Include <stddef.h>, for size_t.
53319
53320         * lib/mbswidth.h (PARAMS): Remove macro.
53321         (mbswidth, mbsnwidth): Use ANSI C function declarations.
53322         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
53323
53324         * lib/gcd.h (PARAMS): Remove macro.
53325         (gcd): Use ANSI C function declarations.
53326         * lib/gcd.c (gcd): Likewise.
53327
53328 2002-11-15  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/strcspn.c: Include <stddef.h>.
53331         (strcspn): Use ANSI C function declaration. Change return type to
53332         size_t. Use NULL.
53333         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
53334         (strpbrk): Use NULL.
53335         * lib/strpbrk.h (PARAMS): Remove macro.
53336         (strpbrk): Use ANSI C function declaration.
53337         * lib/strstr.c: Don't include <sys/types.h>.
53338         * lib/strstr.h (PARAMS): Remove macro.
53339         (strstr): Use ANSI C function declarations.
53340
53341 2002-11-14  Karl Berry  <karl@gnu.org>
53342
53343         * config/mkinstalldirs: `do' on separate line, instead of
53344         `for var; do'.
53345
53346 2002-11-06  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
53349         * lib/gcd.c (gcd): Likewise.
53350
53351 2002-11-05  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/gcd.h: New file, from gettext-0.11.5.
53354         * lib/gcd.c: New file, from gettext-0.11.5.
53355
53356 2002-11-05  Bruno Haible  <bruno@clisp.org>
53357
53358         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
53359         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
53360         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
53361         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
53362
53363         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
53364         <libintl.h>.
53365         * lib/makepath.c: Include gettext.h instead of <locale.h> and
53366         <libintl.h>.
53367
53368         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
53369         * lib/human.c: Include gettext.h instead of <libintl.h>.
53370         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
53371         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
53372         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
53373         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
53374         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
53375         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
53376         (textdomain): Remove definition.
53377         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
53378
53379         * lib/long-options.c: Remove include of <libintl.h> and definition of
53380         _.
53381         * lib/same.c: Remove include of <libintl.h> and definition of _.
53382
53383 2002-11-04  Owen Taylor  <otaylor@redhat.com>
53384
53385         * lib/config.charset: A few additions for Solaris.
53386
53387 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
53388
53389         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
53390         * lib/localcharset.c (locale_charset): Declare as extern "C".
53391
53392 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
53393
53394         * lib/config.charset: msdos in uk_UA uses CP1125.
53395
53396 2002-11-04  Bruno Haible  <bruno@clisp.org>
53397
53398         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
53399         * lib/strcase.h: New file, from GNU gettext-0.11.5.
53400         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
53401         * lib/strstr.h: New file, from GNU gettext-0.11.5.
53402         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
53403
53404 2002-11-04  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/localcharset.c (locale_charset): Don't return an empty string.
53407
53408 2002-11-04  Bruno Haible  <bruno@clisp.org>
53409
53410         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
53411         aliases.
53412
53413 2002-11-04  Bruno Haible  <bruno@clisp.org>
53414
53415         * lib/config.charset: Update for newest glibc. Add canonical names
53416         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
53417
53418 2002-11-04  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/config.charset: Add support for NetBSD.
53421
53422 2002-11-04  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
53425
53426 2002-11-01  Bruno Haible  <bruno@clisp.org>
53427
53428         * configure.in: Add AC_CONFIG_AUX_DIR call.
53429         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
53430         test/Makefile.
53431         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
53432
53433 2002-09-28  Karl Berry  <karl@gnu.org>
53434
53435         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
53436         installed automake until the next release, since changes have been
53437         made.
53438
53439 2002-09-25  Karl Berry  <karl@gnu.org>
53440
53441         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
53442         * lib/getopt*: copy from libc/posix.
53443         * lib/gettext.h: copy from gettext.
53444         * lib/.cppi-disable: add strdup.c, gettext.h.
53445
53446 2002-09-25  Karl Berry  <karl@gnu.org>
53447
53448         * config/srclist.txt: enable gettext.h check.
53449         * config/config.{guess,sub}: update from prep.
53450         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
53451                 from automake 1.6.3.
53452         See srclist*.
53453
53454 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
53455
53456         * regex.c (PATFETCH): Remove the translating fetch.
53457         (PATFETCH_RAW): Rename to PATFETCH.
53458         (set_image_of_range): New fun.
53459         (SET_RANGE_TABLE_WORK_AREA): Use it.
53460         (regex_compile): Don't translate the pattern chars so eagerly.
53461         Only do it when inserting an `exactn' bytecode or when handling
53462         a char-range.
53463         (mutually_exclusive_p): Avoid empty statement.
53464
53465 2002-07-06  Jim Meyering  <meyering@lucent.com>
53466
53467         * m4/README: Don't mention Makefile.am.in.
53468         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
53469
53470 2002-07-01  Jim Meyering  <meyering@lucent.com>
53471
53472         * lib/c-stack.c: Include sys/time.h.
53473         From Volker Borchert.
53474
53475 2002-06-26  Paul Eggert  <eggert@twinsun.com>
53476
53477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
53478
53479 2002-06-26  Paul Eggert  <eggert@twinsun.com>
53480
53481         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
53482         New macro.  Use it uniformly instead of
53483         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
53484         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
53485         reported by Vin Shelton.
53486
53487 2002-06-22  Paul Eggert  <eggert@twinsun.com>
53488
53489         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
53490         Do not assume SA_SIGINFO behavior.
53491         Bug reported by Jim Meyering on NetBSD 1.5.2.
53492
53493 2002-06-22  Jim Meyering  <meyering@lucent.com>
53494
53495         * m4/c-stack.m4: New file, from diffutils-2.8.2.
53496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
53497
53498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
53499         now that configure.ac uses AC_GNU_SOURCE.
53500         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
53501         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
53502
53503         Update to latest tools.  Suggestions from Paul Eggert.
53504         * m4/stdbool.m4: New file, from diffutils-2.8.2.
53505         * m4/gnu-source.m4: Update from diffutils-2.8.2.
53506         * m4/fnmatch.m4: Likewise.
53507         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
53508         to AC_HEADER_STDBOOL
53509
53510 2002-06-22  Jim Meyering  <meyering@lucent.com>
53511
53512         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
53513         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
53514
53515 2002-06-22  Jim Meyering  <meyering@lucent.com>
53516
53517         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
53518
53519         * lib/exitfail.c, exitfail.h: Likewise.
53520         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
53521
53522         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
53523         of fnmatch.h.
53524         (EXTRA_DIST): Add fnmatch_loop.c.
53525         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
53526
53527         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
53528         * lib/fnmatch.c: Update from diffutils-2.8.2.
53529         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
53530         * lib/fnmatch.h: Remove file.
53531
53532 2002-06-21  Jim Meyering  <meyering@lucent.com>
53533
53534         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
53535         * m4/mbrtowc.m4: Likewise.
53536
53537         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
53538         * m4/mbswidth.m4: Reflect name change:
53539         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
53540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
53541
53542         * m4/lib-link.m4: Update from gettext-0.11.2.
53543         * m4/gettext.m4: Likewise.
53544
53545         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
53546         From Alfred M. Szmidt.
53547
53548 2002-06-18  Paul Eggert  <eggert@twinsun.com>
53549
53550         * lib/file-type.h: Report an error if neither S_ISREG nor
53551         S_IFREG is defined, instead of using a test specific to glibc
53552         2.2.  This should be safe, since POSIX requires S_ISREG and
53553         Unix Version 7 had S_IFREG.  We don't need to check for
53554         <sys/types.h> since we don't use any symbols that it defines.
53555
53556 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
53557
53558         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
53559         $@-t, so that each temporary file name is unique and valid in the first
53560         8 characters, for operation under DOS.
53561
53562 2002-06-15  Paul Eggert  <eggert@twinsun.com>
53563
53564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
53565
53566 2002-06-15  Jim Meyering  <meyering@lucent.com>
53567
53568         Work even with DJGPP 2.03, which lacks support for symlinks.
53569         From Richard Dawe.
53570         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
53571         is defined.
53572         * lib/lchown.c (S_ISLNK): Likewise.
53573
53574 2002-06-15  Jim Meyering  <meyering@lucent.com>
53575
53576         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
53577         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
53578         have been included before this file.
53579
53580 2002-06-14  Jim Meyering  <meyering@lucent.com>
53581
53582         * lib/file-type.h: Use the version from diffutils-2.8.2.
53583         * lib/file-type.c: Likewise.
53584
53585 2002-06-07  Jim Meyering  <meyering@lucent.com>
53586
53587         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
53588         They're needed at least for NetBSD 1.5.2.
53589         ($statxfs_includes): Include those same headers.
53590         ($statxfs_includes): Include sys/vfs.h if available.
53591         ($statxfs_includes): Likewise for sys/statvfs.h.
53592         Check for the following members in both structs statfs and statvfs:
53593         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
53594
53595 2002-06-01  Jim Meyering  <meyering@lucent.com>
53596
53597         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
53598         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
53599
53600 2002-05-28  Jim Meyering  <meyering@lucent.com>
53601
53602         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
53603         Reported by Volker Borchert.
53604
53605 2002-05-27  Jim Meyering  <meyering@lucent.com>
53606
53607         Fix a problem seen only on nonconforming systems whereby ls.c's
53608         use of localtime, and then of gettimeofday would cause trouble:
53609         the localtime call used to initialize rpl_gettimeofday's save
53610         mechanism would clobber ls's current local time information so
53611         that in any long listing the first file would always be listed
53612         with date 1970-01-01.  Analysis by Volker Borchert.
53613
53614         * lib/gettimeofday.c (localtime): Undefine.
53615         (rpl_localtime): New function.
53616
53617 2002-05-27  Jim Meyering  <meyering@lucent.com>
53618
53619         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
53620         localtime.
53621
53622         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
53623         use the replacement function; it wouldn't resolve at link time.
53624         Reported by Volker Borchert.
53625
53626 2002-05-22  Jim Meyering  <meyering@lucent.com>
53627
53628         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
53629         file-type.h.
53630         * lib/file-type.h: New file.
53631         * lib/file-type.c (file_type): New file/function.  Extracted from
53632         diffutils.
53633
53634 2002-04-30  Jim Meyering  <meyering@lucent.com>
53635
53636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
53637
53638 2002-04-29  Paul Eggert  <eggert@twinsun.com>
53639
53640         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
53641
53642 2002-04-29  Paul Eggert  <eggert@twinsun.com>
53643
53644         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
53645         Do not check for alloca.h (no longer used) or stdbool.h (was never
53646         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
53647
53648 2002-04-29  Paul Eggert  <eggert@twinsun.com>
53649
53650         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
53651
53652 2002-04-29  Jim Meyering  <meyering@lucent.com>
53653
53654         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
53655         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
53656         Use AC_FUNC_STRNLEN here instead.
53657
53658         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
53659         With autoconf-2.53a, it's part of AC_PROG_CC.
53660
53661 2002-04-28  Paul Eggert  <eggert@twinsun.com>
53662
53663         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
53664         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
53665
53666 2002-04-28  Paul Eggert  <eggert@twinsun.com>
53667
53668         * lib/sig2str.h, lib/sig2str.c: New files.
53669         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
53670
53671 2002-04-28  Paul Eggert  <eggert@twinsun.com>
53672
53673         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
53674         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
53675         of 127, since 64 is the largest conceivable number for ancient
53676         nonstandard hosts.
53677         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
53678
53679 2002-04-28  Jim Meyering  <meyering@lucent.com>
53680
53681         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
53682
53683 2002-04-24  Jim Meyering  <meyering@lucent.com>
53684
53685         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
53686         (jm_PREREQ): Use it.
53687
53688         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
53689         mach/mach.h fcntl.h.
53690         Check for this function: setlocale.
53691
53692 2002-04-24  Jim Meyering  <meyering@lucent.com>
53693
53694         * lib/gettext.h: New file, from Gettext.
53695         * lib/Makefile.am (INCLUDES): Remove -I../intl.
53696         (libfetish_a_SOURCES): Add gettext.h.
53697
53698 2002-04-16  Jim Meyering  <meyering@lucent.com>
53699
53700         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
53701         ut_pid, ut_id, ut_exit.
53702
53703 2002-04-16  Jim Meyering  <meyering@lucent.com>
53704
53705         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
53706         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
53707         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
53708
53709 2002-04-12  Jim Meyering  <meyering@lucent.com>
53710
53711         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
53712         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
53713         existence of the getmntinfo function.  Needed for Darwin 5.3.
53714
53715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
53716         This is necessary at least on Darwin 5.3.
53717
53718         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
53719         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
53720         strnlen.o in the library, and that makes some versions of ranlib
53721         object.
53722
53723 2002-04-12  Jim Meyering  <meyering@lucent.com>
53724
53725         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
53726
53727 2002-04-09  Jim Meyering  <meyering@lucent.com>
53728
53729         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
53730         to be more precise.  Rather than saying we're checking whether the
53731         function `works', say what we're testing.
53732         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
53733         Reported by Bruno Haible.
53734
53735 2002-03-10  Jim Meyering  <meyering@lucent.com>
53736
53737         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
53738         Suggestion from Santiago Vila.
53739
53740 2002-03-08  Jim Meyering  <meyering@lucent.com>
53741
53742         * lib/rename.c: Mention that this wrapper is needed also on
53743         mips-dec-ultrix4.4 systems.
53744
53745 2002-03-02  Jim Meyering  <meyering@lucent.com>
53746
53747         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
53748         not HAVE_CLOCK_SETTIME.
53749
53750 2002-02-27  Paul Eggert  <eggert@twinsun.com>
53751
53752         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
53753         Check for clock_settime.
53754
53755 2002-02-27  Paul Eggert  <eggert@twinsun.com>
53756
53757         * lib/nanosleep.h: Rename to....
53758         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
53759
53760         * lib/gettime.c: New file.
53761         * lib/settime.c: New file.
53762         * lib/stime.c: Remove.
53763
53764         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
53765         timespec.h.  Remove nanosleep.h.
53766
53767 2002-02-25  Paul Eggert  <eggert@twinsun.com>
53768
53769         * m4/acl.m4: New file.
53770         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
53771         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
53772
53773 2002-02-25  Paul Eggert  <eggert@twinsun.com>
53774
53775         * lib/acl.c, lib/acl.h: New files.
53776         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
53777
53778 2002-02-24  Jim Meyering  <meyering@lucent.com>
53779
53780         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
53781         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
53782         cause trouble.  Reported by Nelson Beebe.
53783
53784 2002-02-23  Paul Eggert  <eggert@twinsun.com>
53785
53786         * lib/path-concat.c (xpath_concat): Reorder code to pacify
53787         compilers that don't know that xalloc_die never returns.
53788
53789 2002-02-20  Jim Meyering  <meyering@lucent.com>
53790
53791         * lib/getdate.c: Regenerate using bison-1.33.
53792
53793 2002-02-17  Jim Meyering  <meyering@lucent.com>
53794
53795         * config/config.guess (main): Don't use `head -1'; it's no longer
53796         portable. Use `sed 1q' instead.
53797
53798 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
53799
53800         * m4/codeset.m4: Upgrade to gettext-0.11.
53801         * m4/gettext.m4: Upgrade to gettext-0.11.
53802         * m4/glibc21.m4: Upgrade to gettext-0.11.
53803         * m4/iconv.m4: Upgrade to gettext-0.11.
53804         * m4/isc-posix.m4: Upgrade to gettext-0.11.
53805         * m4/lcmessage.m4: Upgrade to gettext-0.11.
53806         * m4/lib-ld.m4: New file, from gettext-0.11.
53807         * m4/lib-link.m4: New file, from gettext-0.11.
53808         * m4/lib-prefix.m4: New file, from gettext-0.11.
53809         * m4/progtest.m4: Upgrade to gettext-0.11.
53810
53811 2002-02-15  Paul Eggert  <eggert@twinsun.com>
53812
53813         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
53814         (jm_PREREQ): Use it.
53815
53816 2002-02-15  Paul Eggert  <eggert@twinsun.com>
53817
53818         * lib/posixver.c, lib/posixver.h: New files.
53819         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
53820
53821 2002-02-02  Paul Eggert  <eggert@twinsun.com>
53822             Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
53825         (fwrite_success_callback): New declaration.
53826         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
53827         print_unicode_char. Call failure callback instead of error.
53828         (fwrite_success_callback): New function.
53829         (exit_failure_callback): New function.
53830         (fallback_failure_callback): New function.
53831         (print_unicode_char): Call unicode_to_mb.
53832
53833 2002-01-26  Jim Meyering  <meyering@lucent.com>
53834
53835         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
53836         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
53837
53838 2002-01-26  Jim Meyering  <meyering@lucent.com>
53839
53840         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
53841
53842 2002-01-22  Paul Eggert  <eggert@twinsun.com>
53843
53844         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
53845
53846 2002-01-22  Jim Meyering  <meyering@lucent.com>
53847
53848         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
53849         Otherwise, some versions of automake would omit the rule that makes
53850         Makefile from Makefile.in.
53851
53852 2002-01-21  Paul Eggert  <eggert@twinsun.com>
53853
53854         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
53855         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
53856         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
53857         (memcoll): Set errno to zero if there is no error.
53858
53859         * lib/quotearg.c (quotearg_buffer_restyled):
53860         Fix bug with quoting buffers containing NUL when backslashing escapes.
53861         This bug was exposed by the other changes in this patch.
53862         (quotearg_n_options): New arg ARGSIZE.
53863         All callers changed.
53864         (quoting_options_from_style): New function.
53865         (quotearg_n_style): Use it.
53866         (quotearg_n_style_mem): New function.
53867
53868         * lib/quotearg.h (quotearg_n_style_mem): New function.
53869
53870 2002-01-19  Jim Meyering  <meyering@lucent.com>
53871
53872         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
53873         Remove useless quotes: DF_PROG="df".
53874         * m4/strnlen.m4: New file.
53875
53876 2002-01-16  Paul Eggert  <eggert@twinsun.com>
53877
53878         * lib/backupfile.c (ISDIGIT): Comment fix.
53879         * lib/getdate.y (ISDIGIT): Likewise.
53880         * lib/posixtm.c (ISDIGIT, year): Likewise.
53881         * lib/strverscmp.c (ISDIGIT): Likewise.
53882         * lib/userspec.c (ISDIGIT): Likewise.
53883
53884 2002-01-16  Jim Meyering  <meyering@lucent.com>
53885
53886         * lib/getdate.y: Add three semicolons, each just before a closing
53887         brace. Bison (as of version 1.31) no longer papers over that mistake.
53888
53889 2002-01-05  Jim Meyering  <meyering@lucent.com>
53890
53891         * lib/version-etc.c (version_etc_copyright): Update copyright year.
53892
53893 2001-12-19  Paul Eggert  <eggert@twinsun.com>
53894
53895         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
53896         not silently exit merely because the output buffer happens to
53897         have nothing pending.
53898
53899 2001-12-18  Paul Eggert  <eggert@twinsun.com>
53900
53901         See the big note in ../ChangeLog.
53902         * lib/human.c (suffixes): Prefer K to k for 1024.
53903         (generate_suffix_backwards): New function.
53904         (human_readable_inexact): Use it.
53905         * lib/xstrtol.c (__xstrtol): If there is no number but there
53906         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
53907         Accept 'K' as well as 'k'.
53908
53909 2001-12-15  Jim Meyering  <meyering@lucent.com>
53910
53911         * lib/regex.h (__restrict_arr): Update from libc.
53912
53913         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
53914         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
53915         (STREQ): Define.
53916
53917 2001-12-14  Jim Meyering  <meyering@lucent.com>
53918
53919         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
53920         Suggestion from Bruno Haible.
53921
53922 2001-12-10  Jim Meyering  <meyering@lucent.com>
53923
53924         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
53925         xrealloc, Instead, include "xalloc.h".
53926         (initbuffer): Don't cast xmalloc return value to char*.
53927         (readline): Reword comment.
53928         Don't cast xrealloc return value to char*
53929         Return NULL, not 0.
53930
53931 2001-12-09  Jim Meyering  <meyering@lucent.com>
53932
53933         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
53934         about `signed and unsigned type in conditional expression'.
53935         * lib/posixtm.c (posix_time_parse): Likewise.
53936
53937         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
53938
53939         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
53940         to avoid a pedantic warning.
53941
53942         * lib/getstr.c: Don't include assert.h.
53943         (getstr): Remove warning-evoking assertions.
53944         Return -1 if offset parameter is out of bounds.
53945         Change the type of a local from int to size_t.
53946
53947         * lib/strftime.c (my_strftime_localtime_r): Include this function
53948         definition in the `#if ! HAVE_TM_GMTOFF' block.
53949
53950         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
53951         Include xalloc.h instead.
53952
53953 2001-12-02  Jim Meyering  <meyering@lucent.com>
53954
53955         * lib/tempname.c: Don't declare getenv, thus reverting the change of
53956         2001-11-18.  It's no longer necessary, now that stdlib.h is always
53957         included.
53958
53959         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
53960         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
53961
53962 2001-11-30  Akim Demaille  <akim@epita.fr>
53963
53964         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
53965         before being defined.
53966
53967 2001-11-27  Paul Eggert  <eggert@twinsun.com>
53968
53969         * lib/quotearg.h (quotearg_n, quotearg_n_style):
53970         First arg is int, not unsigned.
53971         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
53972         (SIZE_MAX, UINT_MAX): New macros.
53973         (quotearg_n_options): Abort if N is negative.
53974         Avoid overflow check on hosts where size_t is 64 bits and int
53975         is 32 bits, as overflow is impossible there.
53976         Fix off-by-one typo that caused unnecessary reallocation.
53977
53978 2001-11-27  Jim Meyering  <meyering@lucent.com>
53979
53980         * lib/tempname.c: Merge with version from libc.
53981         * lib/regex.c: Likewise.
53982
53983         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
53984         systems for which STDC_HEADERS is 0, it was not included, resulting in
53985         a warning about an integer-to-pointer conversion problem with getenv.
53986         Reported by Volker Borchert.
53987
53988 2001-11-26  Jim Meyering  <meyering@lucent.com>
53989
53990         * lib/gtod.h: Remove file.
53991         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
53992         * lib/gettimeofday.c: Don't include gtod.h.
53993         (GTOD_init): Remove function.
53994         (rpl_gettimeofday): Do its job here instead, rather than aborting.
53995         Suggestion from Volker Borchert.
53996
53997 2001-11-23  Jim Meyering  <meyering@lucent.com>
53998
53999         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
54000         it.
54001         * lib/hash.c (struct hash_table): Define it here instead.
54002
54003 2001-11-22  Jim Meyering  <meyering@lucent.com>
54004
54005         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
54006
54007 2001-11-20  Jim Meyering  <meyering@lucent.com>
54008
54009         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
54010         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
54011
54012 2001-11-19  Jim Meyering  <meyering@lucent.com>
54013
54014         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
54015         directory.  Use "conftestXXXXXX" as the template.
54016         Suggestion from Paul Eggert.
54017
54018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
54019         immediately, so the test doesn't mistakenly hit the max-open-files
54020         limit.
54021
54022 2001-11-18  Paul Eggert  <eggert@twinsun.com>
54023
54024         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
54025         (TEMPORARIES): New macro.
54026         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
54027         removes an artificial limitation (e.g. HP-UX 10.20, where
54028         TMP_MAX is 17576).
54029
54030 2001-11-18  Jim Meyering  <meyering@lucent.com>
54031
54032         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
54033
54034 2001-11-18  Jim Meyering  <meyering@lucent.com>
54035
54036         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
54037         on SunOS 4.
54038
54039         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
54040         files will be created before anything else.
54041
54042 2001-11-17  Paul Eggert  <eggert@twinsun.com>
54043
54044         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
54045         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
54046
54047 2001-11-17  Jim Meyering  <meyering@lucent.com>
54048
54049         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
54050         Prompted by a report from Bob Proulx.
54051
54052         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
54053         Instead, require UTILS_FUNC_MKSTEMP.
54054
54055 2001-11-17  Jim Meyering  <meyering@lucent.com>
54056
54057         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
54058         Now, that's done as part of AC_FUNC_STRTOD.
54059
54060 2001-11-17  Jim Meyering  <meyering@lucent.com>
54061
54062         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
54063         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
54064         rather than group writable.  Patch by Juan F. Codagnone.
54065
54066         * lib/readtokens.c: Remove explicit declarations of xmalloc and
54067         xrealloc, Instead, include "xalloc.h".
54068
54069         * lib/mountlist.c: Include unlocked-io.h after all system headers.
54070         Remove explicit declarations of xmalloc, xrealloc,
54071         and xstrdup.  Instead, include "xalloc.h".
54072
54073         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
54074         unlocked-io.h.
54075         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
54076         Likewise.
54077         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
54078
54079         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
54080         Reported by Padraig Brady.
54081
54082         * lib/mkstemp.c: #undef mkstemp.
54083         Include config.h.
54084         (rpl_mkstemp): Rename from mkstemp.
54085         Protoize.
54086
54087 2001-11-16  Jim Meyering  <meyering@lucent.com>
54088
54089         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
54090         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
54091         determine the amount of total physical memory, use pstat_getstatic.
54092         HPUX-11 doesn't define _SC_PHYS_PAGES.
54093         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
54094         If sysconf couldn't be used to determine the amount of available
54095         physical memory, use both pstat_getstatic and pstat_getdynamic.
54096         Based on a patch from Bob Proulx.
54097
54098 2001-11-10  Jim Meyering  <meyering@lucent.com>
54099
54100         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
54101         (jm_PREREQ): Use it.
54102
54103 2001-11-09  Jim Meyering  <meyering@lucent.com>
54104
54105         * m4/jm-macros.m4: Require autoconf-2.52f.
54106         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
54107         Use these AC_-prefixed names, not the AM_-prefixed ones.
54108
54109         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
54110
54111 2001-11-05  Jim Meyering  <meyering@lucent.com>
54112
54113         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
54114
54115 2001-11-04  Jim Meyering  <meyering@lucent.com>
54116
54117         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
54118         $DEFS.
54119
54120 2001-11-03  Jim Meyering  <meyering@lucent.com>
54121
54122         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
54123         of AC_DEFUN.
54124
54125         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
54126         know the name of the variable in the macro definition.
54127
54128 2001-11-03  Jim Meyering  <meyering@lucent.com>
54129
54130         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
54131         in argmatch_to_argument call.
54132
54133         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
54134         argument.
54135
54136         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
54137         e.g., a fault due to an attempt to free a NULL pointer.
54138
54139 2001-11-01  Jim Meyering  <meyering@lucent.com>
54140
54141         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
54142         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
54143
54144 2001-11-01  Jim Meyering  <meyering@lucent.com>
54145
54146         * lib/dirfd.c, lib/dirfd.h: New files.
54147         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
54148
54149         * lib/hash.c (hash_print) [TESTING]: Clean up.
54150
54151 2001-10-22  Paul Eggert  <eggert@twinsun.com>
54152
54153         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
54154         to avoid a warning if -Wall.
54155
54156 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
54157
54158         * README: New file
54159         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
54160         (per RMS's instructions, this is now the canonical source)
54161         * lgpl/, gpl/: New directories.
54162
54163 2001-10-21  Paul Eggert  <eggert@twinsun.com>
54164
54165         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
54166
54167 2001-10-21  Jim Meyering  <meyering@lucent.com>
54168
54169         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
54170         this code would end up calling gettext even in packages built
54171         with --disable-nls.
54172         * lib/getopt.c (_): Likewise.
54173         * lib/regex.c (_): Likewise.
54174
54175 2001-10-20  Paul Eggert  <eggert@twinsun.com>
54176
54177         * m4/error.m4 (jm_PREREQ_ERROR):
54178         Do not invoke AC_CHECK_FUNCS with strerror_r, as
54179         AC_FUNC_STRERROR_R does that.
54180         Check for strerror declaration.
54181
54182         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
54183         are supposed to have them these days.
54184         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
54185         Merge changes from latest Autoconf CVS.
54186         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
54187         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
54188         POSIX decided to standardize on the int flavor of strerror_r.
54189
54190 2001-10-20  Paul Eggert  <eggert@twinsun.com>
54191
54192         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
54193         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
54194         Use strerror_r that is only a macro, even if it is not a function.
54195         (strerror): Check for HAVE_DECL_STRERROR before declaring.
54196         (private_strerror): Use prototypes, not old-style function definition.
54197         (print_errno_message): New function.
54198         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
54199         char*-flavored one.
54200         (error_tail, error, error_at_line): Use it.
54201
54202 2001-10-11  Jim Meyering  <meyering@lucent.com>
54203
54204         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
54205         and quote_n (1, ... to avoid clobbering a buffer.
54206
54207 2001-10-05  Jim Meyering  <meyering@lucent.com>
54208
54209         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
54210         hash-pjw.h.
54211         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
54212         * lib/hash-pjw.h: New file.
54213
54214 2001-09-30  Jim Meyering  <meyering@lucent.com>
54215
54216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
54217         `struct fsstat' has the `f_fstypename' member.
54218         Use that to define FS_TYPE, which is now used to make
54219         the getfsstat link test tighter.
54220
54221 2001-09-30  Jim Meyering  <meyering@lucent.com>
54222
54223         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
54224         Include <sys/ucred.h>, for Apple Darwin.
54225         Include sys/mount.h and sys/fs_types.h only if available.
54226         (FS_TYPE): Define.
54227         (read_filesystem_list): Use FS_TYPE.
54228
54229 2001-09-29  Paul Eggert  <eggert@twinsun.com>
54230
54231         * lib/exclude.c (excluded_filename): 0 -> false, since it's
54232         a boolean context.
54233
54234 2001-09-29  Jim Meyering  <meyering@lucent.com>
54235
54236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
54237         [one-argument getmntent function]): Include stdio.h before mntent.h.
54238         SunOS 4.1.x needs it for the declaration of `FILE'.
54239         Patch by Volker Borchert.
54240
54241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
54242         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
54243         sys/fs_types.h, and make the link-test for getfsstat guard #include
54244         directives with appropriate #if HAVE_*_H tests so that we can
54245         detect getfsstat on Apple Darwin1.3.7 systems.
54246         Reported by Nelson Beebe.
54247         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
54248
54249 2001-09-28  Paul Eggert  <eggert@twinsun.com>
54250
54251         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
54252         #defines strtoimax.  Also treat the other strto* functions
54253         like strtoimax.
54254
54255         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
54256         Check for strtoul and strtoumax,
54257         as those declarations are made even in the signed case.
54258         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
54259         Likewise, for strtol and strtoimax.
54260
54261 2001-09-28  Paul Eggert  <eggert@twinsun.com>
54262
54263         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
54264         #defines strtoimax.  Also treat the other strto* functions
54265         like strtoimax.
54266
54267         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
54268         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
54269         (strtoimax, strtoumax): Do not declare if already defined as a macro.
54270
54271 2001-09-26  Jim Meyering  <meyering@lucent.com>
54272
54273         Most macros in unlocked-io.h had the wrong number of arguments.
54274         * lib/gen-uio: New script.
54275         (USE_UNLOCKED_IO): Define to 1 if not already defined.
54276         * lib/unlocked-io.hin: Remove file.
54277         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
54278         rather than trying to embed it here.
54279         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
54280         Reported by Padraig Brady.
54281
54282 2001-09-25  Volker Borchert  <bt@teknon.de>
54283
54284         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
54285         `result'.
54286
54287 2001-09-24  Jim Meyering  <meyering@lucent.com>
54288
54289         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
54290
54291 2001-09-23  Jim Meyering  <meyering@lucent.com>
54292
54293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
54294         instead of the mere test for existence of mntent.h.  The latter
54295         would get a false-positive on AIX 3.4 systems.
54296         In the outer getmntent if-block, don't die if neither of the getmntent
54297         tests succeeds.  Instead, just fall through and continue with the
54298         remaining tests.
54299
54300 2001-09-23  Jim Meyering  <meyering@lucent.com>
54301
54302         * lib/mountlist.c: Remove useless parentheses in #if directives.
54303         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
54304         the deprecated MOUNTED symbol is no longer defined in mntent.h.
54305
54306 2001-09-22  Jim Meyering  <meyering@lucent.com>
54307
54308         * m4/gettext.m4: New file.  From gettext.
54309         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
54310         * m4/progtest.m4: Likewise
54311         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
54312         * m4/glibc21.m4: Likewise.
54313
54314         * m4/libintl.m4: Remove.  No longer used.
54315
54316 2001-09-22  Jim Meyering  <meyering@lucent.com>
54317
54318         * lib/localcharset.c: Update from latest gettext.
54319         * lib/config.charset: Likewise.
54320
54321 2001-09-20  Jim Meyering  <meyering@lucent.com>
54322
54323         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
54324         strtoimax.
54325         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
54326         strtoumax.
54327
54328 2001-09-20  Jim Meyering  <meyering@lucent.com>
54329
54330         * lib/xstrtol.c (strtoimax): Guard declaration with
54331         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
54332         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
54333         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
54334         (strtoumax): Likewise, for completeness (it wasn't necessary).
54335
54336 2001-09-17  Paul Eggert  <eggert@twinsun.com>
54337
54338         * lib/strtoimax.c (HAVE_LONG_LONG):
54339         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
54340         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
54341         to work around bug in IBM C compiler.
54342
54343 2001-09-17  Jim Meyering  <meyering@lucent.com>
54344
54345         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
54346         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
54347         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
54348         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
54349         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
54350         whenever the right hand side need not be expanded by the shell.
54351
54352 2001-09-16  Paul Eggert  <eggert@twinsun.com>
54353
54354         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
54355         library.  It's not correct, as some older glibcs are buggy.
54356         fnmatch wasn't fixed until glibc 2.2.
54357
54358         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
54359         special shell magic here.
54360
54361 2001-09-16  Jim Meyering  <meyering@lucent.com>
54362
54363         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
54364         * m4/jm-macros.m4: Require it.
54365
54366 2001-09-16  Jim Meyering  <meyering@lucent.com>
54367
54368         * lib/mkdir.c: New file.
54369
54370 2001-09-15  Jim Meyering  <meyering@lucent.com>
54371
54372         * m4/jm-macros.m4: Check for help2man.
54373
54374 2001-09-11  Jim Meyering  <meyering@lucent.com>
54375
54376         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
54377         The body, by Paul Eggert, was moved here from configure.in.
54378         * m4/jm-macros.m4: Require UTILS_HOST_OS.
54379
54380 2001-09-04  Paul Eggert  <eggert@twinsun.com>
54381
54382         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
54383         (jm_PREREQ): Use it.
54384
54385 2001-09-04  Paul Eggert  <eggert@twinsun.com>
54386
54387         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
54388         Use ssize_t, not int, to store result of readlink.
54389         Check for ssize_t overflow as well as size_t overflow,
54390         as POSIX says the result of readlink is implementation-defined
54391         when ssize_t overflows.
54392         Remove unnecessary cast to char*.
54393         Use free+malloc instead of realloc, as the storage doesn't need
54394         to be preserved and it's clearer and can be more efficient that way.
54395         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
54396         * lib/xreadlink.h (xreadlink): Update prototype.
54397
54398 2001-09-04  Paul Eggert  <eggert@twinsun.com>
54399
54400         * lib/xgetcwd.c: Revert some of the previous change; intead,
54401         fix the HAVE_GETCWD_NULL code to behave more like the
54402         !HAVE_GETCWD_NULL code used to.
54403
54404         Include "xalloc.h".
54405         (xgetcwd): Do not return NULL when memory is exhausted; instead,
54406         invoke xalloc_die.
54407
54408 2001-09-03  Paul Eggert  <eggert@twinsun.com>
54409
54410         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
54411         sys/param.h, as pathmax.h includes them.
54412
54413 2001-09-03  Paul Eggert  <eggert@twinsun.com>
54414
54415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
54416         (jm_PREREQ_XGETCWD): New macro.
54417
54418         * m4/getcwd.m4: New file.
54419
54420 2001-09-03  Paul Eggert  <eggert@twinsun.com>
54421
54422         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
54423         like the HAVE_GETCWD_NULL code.
54424         Include pathmax.h if not HAVE_GETCWD.
54425         Do not include xalloc.h.
54426         (INITIAL_BUFFER_SIZE): New symbol.
54427         Do not use xmalloc / xrealloc, since the caller is responsible for
54428         handling errors.  Preserve errno around `free' during failure.
54429         Do not overrun buffer when using getwd.
54430
54431 2001-09-03  Paul Eggert  <eggert@twinsun.com>
54432
54433         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
54434         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
54435         getcwd (NULL, 0).
54436
54437 2001-09-03  Paul Eggert  <eggert@twinsun.com>
54438
54439         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
54440         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
54441         spotted by Jim Meyering.
54442
54443 2001-09-03  Jim Meyering  <meyering@lucent.com>
54444
54445         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
54446         failure.
54447
54448 2001-09-02  Jim Meyering  <meyering@lucent.com>
54449
54450         * lib/error.c: Update from GNU libc.
54451
54452 2001-09-01  Jim Meyering  <meyering@lucent.com>
54453
54454         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
54455         Used by df.
54456
54457 2001-09-01  Jim Meyering  <meyering@lucent.com>
54458
54459         * lib/xreadlink.c: New file.
54460         * lib/xreadlink.h: New file.
54461         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
54462         xreadlink.h.
54463
54464         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
54465         doesn't conflict with sparc Solaris 7's definition in
54466         /usr/include/sys/int_types.h.
54467
54468         * lib/exclude.c: Use `""', not `<>' to #include non-system header
54469         files.
54470         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
54471         and strncasecmp as r-values.  Unixware didn't have declarations.
54472
54473 2001-08-31  Paul Eggert  <eggert@twinsun.com>
54474
54475         * lib/xstrtol.h: Add copyright notice.
54476         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
54477         LONGINT_INVALID_SUFFIX_CHAR.
54478
54479 2001-08-31  Paul Eggert  <eggert@twinsun.com>
54480
54481         * lib/xstrtol.c (strtoimax): New decl.
54482
54483 2001-08-31  Paul Eggert  <eggert@twinsun.com>
54484
54485         * lib/xgetcwd.c: Don't include pathmax.h.
54486         Include stdlib.h and unistd.h if available.
54487         Include xalloc.h.
54488         (xmalloc, xstrdup, free): Remove decls.
54489         (xgetcwd): Don't assume sizes fit in unsigned.
54490         Check for overflow when computing sizes.
54491         Simplify reallocation code.
54492
54493 2001-08-31  Paul Eggert  <eggert@twinsun.com>
54494
54495         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
54496         a directory's st_size can have an arbitrary value, so the old
54497         usage could waste an arbitrary amount of memory.  All uses
54498         changed.
54499         * lib/savedir.h: Update prototype.
54500
54501 2001-08-31  Paul Eggert  <eggert@twinsun.com>
54502
54503         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
54504
54505         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
54506         old strtoimax.c.
54507
54508         Also, make the following further changes to make this file's
54509         configuration more similar to that of strtol.c:
54510         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
54511         (strtoumax, uintmax_t, strtoull, strtol): Remove.
54512         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
54513         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
54514         changed to signed values.
54515
54516         And make the following changes as well:
54517         Fix copyright notice, as 1999 was missing.
54518         (verify): New macro.
54519         (strtoimax): Check sizes at compile-time, not run-time.
54520         Prefer strtol to strtoll if both work.
54521         (main): Remove; it was not that useful and was a pain to maintain.
54522
54523         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
54524
54525 2001-08-31  Jim Meyering  <meyering@lucent.com>
54526
54527         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
54528         Use an initial, malloc'd, buffer of length 128 rather than
54529         a statically allocated one of length 1024.
54530
54531 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54532
54533         Simplify code, partly by assuming autoconf 2.52 semantics.
54534
54535         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
54536
54537         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
54538         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
54539         All uses removed.
54540         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
54541         Move AC_REQUIRE to next-to-top level, to avoid confusion.
54542         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
54543         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
54544         jm_AC_HEADER_INTTYPES_H.
54545         * m4/jm-macros.m4 (jm_MACROS): Likewise.
54546
54547         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
54548
54549         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
54550         Quote first arg of AC_DEFUN.
54551         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
54552         since they are needed to parse the include file even if we need
54553         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
54554         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
54555         but with opposite signedness.
54556
54557 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54558
54559         Merge 'exclude' changes from tar 1.13.22.
54560         This fixes one or two unlikely storage allocation overflow bugs,
54561         but doesn't change user-visible behavior otherwise.
54562
54563 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54564
54565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
54566         (jm_PREREQ_EXCLUDE): New macro.
54567
54568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54569
54570         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
54571         tm to be declared.
54572
54573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54574
54575         * lib/hash.c: Remove '2001' from copyright notice.
54576
54577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54578
54579         * lib/full-write.h: New file.
54580         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
54581         * lib/full-write.c: Correct credits, as cccp.c no longer
54582         exists and anyway it was so heavily changed from the old cccp
54583         code as to be unrecognizable.  Include full-write.h.
54584         (full_write) Return size_t, with short writes meaning failure.
54585         All callers changed.  This fixes a bug with large buffers
54586         on 64-bit hosts.
54587         * lib/utime.c: Include full-write.h.
54588
54589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54590
54591         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
54592         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
54593         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
54594         Include if available.
54595         (<xalloc.h>): Include
54596         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
54597         (verify): New macro.  Use it to verify that EXCLUDE macros do not
54598         collide with FNM macros.
54599         (struct patopts): New struct.
54600         (struct exclude): Use it, as exclude patterns now come with options.
54601         (new_exclude): Support above changes.
54602         (new_exclude, add_exclude_file):
54603         Initial size must now be a power of two to simplify overflow checking.
54604         (free_exclude, fnmatch_no_wildcards): New function.
54605         (excluded_filename): No longer requires options arg, as the options
54606         are determined by add_exclude.  Now returns bool, not int.
54607         (excluded_filename, add_exclude):
54608         Add support for the fancy new exclusion options.
54609         (add_exclude, add_exclude_file): Now takes int options arg.
54610         Check for arithmetic overflow when computing sizes.
54611         (add_exclude_file): xrealloc might modify errno, so don't
54612         realloc until after errno might be used.
54613
54614         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
54615         New macros.
54616         (free_exclude): New decl.
54617         (add_exclude, add_exclude_file): Now takes int options arg.
54618         (excluded_filename): No longer requires options arg, as the options
54619         are determined by add_exclude.  Now returns bool, not int.
54620
54621 2001-08-30  Paul Eggert  <eggert@twinsun.com>
54622
54623         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
54624
54625 2001-08-27  Jim Meyering  <meyering@lucent.com>
54626
54627         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
54628
54629         * lib/version-etc.c (N_): Remove definition.
54630         Revert most of last change.
54631         Instead, simply don't mark the `Copyright...' string for translation.
54632         Based on advice from Paul Eggert.
54633
54634         * lib/strtoxmax.c: Tweak comment.
54635
54636 2001-08-26  Jim Meyering  <meyering@lucent.com>
54637
54638         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
54639
54640         * m4/xstrtoimax.m4: New file.
54641         * m4/xstrtoumax.m4: Add comments explaining why we
54642         AC_REPLACE_FUNCS(strtol).
54643
54644 2001-08-26  Jim Meyering  <meyering@lucent.com>
54645
54646         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
54647         of copyright with `%s' so translators don't get an untranslated
54648         message in 2002.
54649         (COPYRIGHT_YEAR): Define.
54650         (version_etc): Use fprintf rather than fputs.
54651         Suggestion from Ulrich Drepper.
54652
54653         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
54654
54655         * lib/strtoll.c: New file, from GNU libc.
54656         * lib/xstrtoimax.c: New file.
54657
54658         * lib/xstrtol.h: Add xstrtoimax.
54659         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
54660         * lib/strtoimax.c: New file.  Likewise, but first define
54661         STRTOUXMAX_SIGNED.
54662
54663         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
54664         ...
54665         * lib/strtoxmax.c: ... then renamed to this.
54666
54667 2001-08-18  Paul Eggert  <eggert@twinsun.com>
54668
54669         * m4/inttypes.m4: Add AC_PREREQ(2.13).
54670         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
54671         (jm_AC_TYPE_INTMAX_T): New macro.
54672         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
54673
54674         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
54675
54676         * m4/longlong.m4: Renamed from ulonglong.m4.
54677         * m4/inttypes.m4: Renamed from inttypes_h.m4.
54678         * m4/uintmax_t.m4: Removed.
54679
54680 2001-08-13  Paul Eggert  <eggert@twinsun.com>
54681
54682         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
54683         Port to Solaris 8, where 'sed' requires a space after the 'r'
54684         command, and where sh dislikes "$/".  Clean up the spacing a bit.
54685         Redirect output to $tmp just once.
54686
54687 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
54688
54689         * lib/addext.c (<errno.h>): Include.
54690         (errno): Declare if not defined.
54691         (addext): Work correctly when pathconf returns -1 and leaves
54692         errno alone because there is no limit.  Also, work even if
54693         pathconf returns a value greater than SIZE_MAX.
54694
54695 2001-08-12  Jim Meyering  <meyering@lucent.com>
54696
54697         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
54698         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
54699         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
54700         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
54701         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
54702         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
54703         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
54704         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
54705         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
54706         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
54707         utime.m4, utimes.m4, xstrtoumax.m4:
54708         Quote the first argument in each use of AC_DEFUN.
54709
54710 2001-08-12  Jim Meyering  <meyering@lucent.com>
54711
54712         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
54713         Simply `return getcwd (NULL, 0);'.
54714         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
54715         Use 1300 as initial value for length, not PATH_MAX.
54716
54717         * lib/pathmax.h: Clean up cpp syntax.
54718
54719 2001-08-12  Jim Meyering  <meyering@lucent.com>
54720
54721         * lib/gettimeofday.c: New file.
54722         * lib/gtod.h: New file.
54723         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
54724
54725 2001-08-05  Jim Meyering  <meyering@lucent.com>
54726
54727         * m4/jm-macros.m4: Require autoconf-2.52.
54728
54729 2001-08-04  Jim Meyering  <meyering@lucent.com>
54730
54731         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
54732         stmt, to get in sync with glibc.
54733
54734 2001-08-03  Paul Eggert  <eggert@twinsun.com>
54735
54736         The following changes are from gettext 0.10.39 as maintained by
54737         Bruno Haible.
54738
54739         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
54740         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
54741         with inverted sense.  All uses changed.
54742
54743         * lib/mbswidth.c: Don't include <limits.h>.
54744         Include <stdlib.h> and <string.h> unconditionally.
54745         (iswcntrl, mbsinit, ISCNTRL): New macros.
54746         (mbsnwidth): Use K&R style function declarations.
54747         Don't bother checking for MB_LEN_MAX == 1, since the compiler
54748         can optimize it when MB_CUR_MAX == 1.
54749         The width of control characters is zero, not 1.
54750
54751 2001-08-03  Paul Eggert  <eggert@twinsun.com>
54752
54753         The following changes are from gettext 0.10.39 as maintained by
54754         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
54755
54756         * m4/codeset.m4: Upgrade to serial AM1.
54757         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
54758         all uses changed.  Quote first arg of AC_DEFUN.
54759         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
54760
54761         * m4/iconv.m4: Upgrade to serial AM2.
54762         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
54763         Add --with-libconv-prefix.
54764         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
54765         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
54766         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
54767         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
54768         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
54769
54770         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
54771         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
54772         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
54773         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
54774         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
54775         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
54776         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
54777         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
54778         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
54779
54780         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
54781         string.h any more.
54782
54783         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
54784         not the default value.
54785
54786         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
54787         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
54788         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
54789         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
54790         Also check for iswcntrl, used for wcwidth fallback.
54791         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
54792         to Autoconf 2.13.
54793
54794 2001-08-03  Jim Meyering  <meyering@lucent.com>
54795
54796         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
54797         as it was in the original.  Reported by Paul Eggert.
54798
54799 2001-07-16  Jim Meyering  <meyering@lucent.com>
54800
54801         * m4/gettimeofday.m4: New file.
54802         Prompted by a report from Bernhard Baehr.
54803
54804 2001-07-15  Jim Meyering  <meyering@lucent.com>
54805
54806         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
54807         stuff. Now it's in ../Makefile.cfg.
54808
54809 2001-07-15  Jim Meyering  <meyering@lucent.com>
54810
54811         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
54812         (BUILT_SOURCES): Add unlocked-io.h.
54813         (io_functions): Define.
54814         (unlocked-io.h): New rule.
54815         (DISTCLEANFILES): Add unlocked-io.h.
54816         (all-local): Depend on unlocked-io.h, to ensure it is created.
54817
54818         * lib/unlocked-io.hin: New file
54819
54820         * lib/regex.c: Update from glibc.
54821
54822 2001-07-05  Jim Meyering  <meyering@lucent.com>
54823
54824         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
54825         recommendation.
54826         (libfetish_a_SOURCES): Put all .h files here instead.
54827         Remove a thus-exposed (better checks in automake) duplicate and
54828         two unnecessary .h files.
54829
54830 2001-07-04  Jim Meyering  <meyering@lucent.com>
54831
54832         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
54833         that generates jm-glibc-io.m4 so that it doesn't trigger any make
54834         distcheck failure.
54835
54836 2001-07-02  Jim Meyering  <meyering@lucent.com>
54837
54838         The following changes were prompted by suggestions from Bruno Haible.
54839
54840         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
54841         is now generated.
54842         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
54843         definition of EXTRA_DIST.
54844         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
54845         ensure that the generated file is created/updated whenever the list
54846         of $(unlocked_functions) is changed.
54847         (jm-glibc-io.m4): New rule.
54848         (unlocked-io.h): New rule -- currently unused.
54849
54850 2001-06-24  Jim Meyering  <meyering@lucent.com>
54851
54852         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
54853         unmatched right bracket, rather than kludging it with an extra,
54854         falsely-matching quote in a comment.  Patch by Akim Demaille.
54855
54856 2001-06-11  Jim Meyering  <meyering@lucent.com>
54857
54858         * lib/regex.c: Update from GNU libc.
54859
54860 2001-05-27  Jim Meyering  <meyering@lucent.com>
54861
54862         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
54863         Check for ut_type in struct utmp.
54864
54865 2001-05-27  Jim Meyering  <meyering@lucent.com>
54866
54867         * lib/readutmp.h (UT_TYPE): Define.
54868
54869 2001-05-24  Jim Meyering  <meyering@lucent.com>
54870
54871         * lib/argmatch.c: Include "quote.h".
54872         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
54873         quote function.  Reported by Göran Uddeborg.
54874
54875 2001-05-22  Jim Meyering  <meyering@lucent.com>
54876
54877         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
54878         now that we use the package-supplied version unconditionally.
54879         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
54880
54881 2001-05-21  Jim Meyering  <meyering@lucent.com>
54882
54883         * m4/regex.m4: Change a couple backticks to single quotes to avoid
54884         shell syntax errors.
54885
54886 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
54887
54888         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
54889
54890 2001-05-20  Paul Eggert  <eggert@twinsun.com>
54891
54892         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
54893         Don't bother to check library strftime, since
54894         we'll be using our own my_strftime function anyway.
54895         Define my_strftime instead of strftime.
54896
54897 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
54898
54899         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
54900         which is not yet declared.
54901
54902 2001-05-15  Jim Meyering  <meyering@lucent.com>
54903
54904         * m4/regex.m4: Use proper quoting so brackets appear in the test
54905         program.
54906         Reported by, and with help from, Bruno Haible.
54907
54908 2001-05-13  Jim Meyering  <meyering@lucent.com>
54909
54910         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
54911         undefined.
54912
54913 2001-05-11  Paul Eggert  <eggert@twinsun.com>
54914
54915         dirname code cleanup.  base_name now behaves more compatibly
54916         with POSIX basename when given file names that have trailing
54917         slashes, and similarly for dir_name.  Add new primitives
54918         base_len and dir_len.  Put the directory-name-related decls
54919         into dirname.h.
54920
54921         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
54922         * lib/backupfile.c (base_name): Likewise.
54923         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
54924         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
54925         * lib/makepath.c (strip_trailing_slashes): Likewise.
54926         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
54927         ISSLASH): Likewise.
54928         * lib/rename.c (strip_trailing_slashes): Likewise.
54929         * lib/same.c (base_name): Likewise.
54930         * lib/stripslash.c (ISSLASH): Likewise.
54931
54932         * lib/addext.c: Include <dirname.h> after size_t is defined.
54933         * lib/backupfile.c: Likewise.
54934
54935         * lib/addext.c (addext): Use base_len to trim redundant
54936         trailing slashes instead of doing it ourselves.
54937         But do not trim the last slash if it is not redundant.
54938
54939         * lib/backupfile.c (find_backup_file_name,
54940         max_backup_version): Use base_len instead of rolling it ourselves.
54941         Handle the case of "" and (on DOS) "C:" correctly.
54942
54943         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
54944         needed. Include <string.h>, <dirname.h>.
54945         (base_name): Allow file names ending in slashes, other than names
54946         that are all slashes.  In this case, return the basename followed
54947         by the slashes.  This is more general, and can be used in places
54948         where the original base_name purposely had an assertion failure.
54949         (base_len): New function.
54950
54951         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
54952         Do not include <assert.h>; no longer needed.
54953         Include xalloc.h.
54954         (memrchr): Remove decl.
54955         (dir_name_r): Remove.
54956         (dir_len): Renamed from dirlen.  All callers changed.
54957         Rewrite in terms of base_name, for simplicity and consistency.
54958         (dir_name): Never return NULL.  All callers changed.
54959         Do not include <stdlib.h> in test program; no longer needed.
54960         return 0; is fine for test program.
54961
54962         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
54963         New macros.
54964         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
54965
54966         * lib/path-concat.c (path_concat): Use base_len to compute
54967         base length, not strlen; this means we cannot rely on memcpy
54968         to null-terminate.
54969
54970         * lib/same.c (STREQ): Remove.
54971         (same_name): Handle the case where the basename ends in trailing '/'.
54972
54973         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
54974         a slash was stripped.  Do not strip the last slash after a
54975         file system prefix.
54976
54977 2001-05-11  Paul Eggert  <eggert@twinsun.com>
54978
54979         * lib/Makefile.am (libfetish_a_SOURCES):
54980         Add strftime.c, since we now compile it on all hosts.
54981
54982         * lib/strftime.c (my_strftime):
54983         Define to nstrftime if emacs, but only if my_strftime is not defined.
54984         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
54985         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
54986         Add one more extra argument: a nanoseconds value.
54987         All uses changed.
54988         (ns): New macro.
54989         (my_strftime function): Add %N format.
54990         (emacs_strftimeu): Renamed from emacs_strftime,
54991         with extra ut argument.
54992
54993 2001-05-09  Paul Eggert  <eggert@twinsun.com>
54994
54995         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
54996
54997 2001-04-21  Jim Meyering  <meyering@lucent.com>
54998
54999         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
55000         doesn't interfere.
55001
55002 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
55003
55004         * m4/ftruncate.m4: Check for chsize.
55005         Link with ftruncate.o unconditionally if ftruncate is missing.
55006         This was required when cross-compiling to i586-mingw32msvc.
55007
55008 2001-04-08  Jim Meyering  <meyering@lucent.com>
55009
55010         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
55011         recomputed; that's necessary when the offset spans a DST transition.
55012         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
55013
55014 2001-04-02  Jim Meyering  <meyering@lucent.com>
55015
55016         * lib/regex.h, regex.c: Update from GNU libc.
55017
55018 2001-03-24  Jim Meyering  <meyering@lucent.com>
55019
55020         * m4/jm-macros.m4: Require autoconf-2.49d.
55021
55022 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
55023
55024         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
55025
55026 2001-03-19  Paul Eggert  <eggert@twinsun.com>
55027
55028         * lib/version-etc.c (version_etc_copyright): Update to 2001.
55029
55030 2001-03-17  Jim Meyering  <meyering@lucent.com>
55031
55032         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
55033         now that the version in autoconf is equivalent.
55034         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
55035
55036         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
55037         Suggestion from Akim Demaille.
55038
55039         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
55040         (jm_PREREQ_TEMPNAME): New function.
55041
55042 2001-03-16  Paul Eggert  <eggert@twinsun.com>
55043
55044         * lib/tempname.c (uint64_t): Define to uintmax_t if
55045         not defined, and if UINT64_MAX is not defined.
55046         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
55047         Reported by John David Anglin.
55048
55049 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
55050
55051         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
55052         resolve alias if codeset is empty.
55053         * lib/config.charset (BeOS): Use wildcard syntax.
55054
55055 2001-03-13  Jim Meyering  <meyering@lucent.com>
55056
55057         * lib/path-concat.c (path_concat)
55058         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
55059         concatenating e.g., `C:' and `foo'.
55060         From Bruno Haible.
55061
55062 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
55063
55064         * lib/localcharset.c (locale_charset): Don't use
55065         setlocale(LC_CTYPE,NULL). Don't return NULL.
55066         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
55067
55068 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
55069
55070         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
55071         support for DOS/DJGPP.
55072
55073 2001-03-01  Paul Eggert  <eggert@twinsun.com>
55074
55075         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
55076         lacks mkstemp.  Compile our own tempname.c if we compile our own
55077         mkstemp.c, as mkstemp relies on tempname.
55078
55079 2001-03-01  Jim Meyering  <meyering@lucent.com>
55080
55081         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
55082         AH_VERBATIM really does output its argument verbatim.
55083
55084 2001-02-28  Paul Eggert  <eggert@twinsun.com>
55085
55086         * lib/Makefile.am (libfetish_a_SOURCES):
55087         Add dup-safer.c, fopen-safer.c.
55088         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
55089
55090         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
55091         * lib/unistd-safer.h: New files.
55092
55093 2001-02-25  Paul Eggert  <eggert@twinsun.com>
55094
55095         The mkstemp replacement is taken from glibc 2.2.2, with some
55096         portability fixes for use outside glibc, as follows:
55097
55098         * lib/tempname.c (struct_stat64): New macro.
55099         (direxists, __gen_tempname): Use it.
55100         This avoids a portability problem with Solaris 8.
55101
55102         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
55103         (<stddef.h>, <stdint.h>, <string.h>):
55104         Include only if STDC_HEADERS || _LIBC.
55105         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
55106         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
55107         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
55108         (__set_errno): Define this macro if <errno.h> doesn't.
55109         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
55110         Define these macros if <stdio.h> doesn't.
55111         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
55112         Define these macros if <sys/stat.h>
55113         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
55114         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
55115         __xstat64): Define if not _LIBC.
55116         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
55117         (__gen_tempname): Invoke gettimeofday only if
55118         HAVE_GETTIMEOFDAY || _LIBC;
55119         otherwise, fall back on plain "time".
55120         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
55121
55122         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
55123
55124         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
55125
55126 2001-02-18  Paul Eggert  <eggert@twinsun.com>
55127
55128         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
55129
55130 2001-02-17  Paul Eggert  <eggert@twinsun.com>
55131
55132         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
55133         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
55134         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
55135         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
55136
55137 2001-02-17  Paul Eggert  <eggert@twinsun.com>
55138
55139         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
55140         Remove workaround macros for hosts that have mbrtowc but not
55141         mbstate_t, as we now insist on proper declarations for both
55142         before using mbrtowc.
55143
55144 2001-02-17  Jim Meyering  <meyering@lucent.com>
55145
55146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
55147         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
55148         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
55149         UnixWare 7.1.1.
55150
55151         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
55152         rather than AC_CACHE_VAL.
55153
55154 2001-02-17  Jim Meyering  <meyering@lucent.com>
55155
55156         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
55157         around included file name.
55158
55159         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
55160
55161         * lib/strftime.c: Update from GNU libc (the only changes were to
55162         comments).
55163
55164 2001-02-17  Jim Meyering  <meyering@lucent.com>
55165
55166         * lib/regex.c: Update from libc.
55167
55168 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
55169
55170         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
55171         clash.
55172
55173 2001-02-16  Paul Eggert  <eggert@twinsun.com>
55174
55175         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
55176         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
55177         Reported by Mark Hounschell via Paul Eggert.
55178
55179 2001-02-07  Jim Meyering  <meyering@lucent.com>
55180
55181         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
55182
55183 2001-02-05  Jim Meyering  <meyering@lucent.com>
55184
55185         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
55186         it includes the patch required for `large file' support with at least
55187         HP-UX's 10.20 /bin/cc.
55188
55189 2001-02-03  Jim Meyering  <meyering@lucent.com>
55190
55191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
55192         AS_IF, now that it works once again (mysteriously).
55193         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
55194
55195 2001-01-30  Jim Meyering  <meyering@lucent.com>
55196
55197         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
55198         * m4/chown.m4: Rename conftestchown to conftest.chown.
55199         * m4/rename.m4: s/conftestdir/conftest.d1/ and
55200         s/conftestdir2/conftest.d2/.
55201         * m4/utimes.m4: s/conftestdata/conftest.data/
55202         Inspired by Pavel Roskin's change in autoconf.
55203
55204 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
55205
55206         * lib/config.charset: Update for FreeBSD 4.2.
55207
55208 2001-01-27  Jim Meyering  <meyering@lucent.com>
55209
55210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
55211         a use of AS_IF.
55212         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
55213
55214 2001-01-26  Jim Meyering  <meyering@lucent.com>
55215
55216         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
55217         quotearg.c includes it.
55218
55219 2001-01-26  Jim Meyering  <meyering@lucent.com>
55220
55221         * lib/quotearg.c: Include stddef.h.
55222         * lib/quote.c: Include stddef.h.
55223         Reported by Axel Kittenberger.
55224
55225         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
55226         line in double quotes so that it evokes a better diagnostic.
55227         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
55228         Reported by Axel Kittenberger.
55229
55230 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
55231
55232         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
55233         as if it was a `charset'.
55234
55235 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
55236
55237         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
55238         has const.
55239
55240 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
55241
55242         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
55243         to avoid a warning.  Add back 'const' to inptr.
55244
55245 2001-01-20  Jim Meyering  <meyering@lucent.com>
55246
55247         Be sure that headers are checked before used in code compiled
55248         for the type checks.
55249         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
55250         In place of that, invoke jm_CHECK_ALL_TYPES.
55251         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
55252         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
55253         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
55254         The check for ssize_t was mistakenly run before the test for unistd.h.
55255
55256         The configure-time check for stdbool.h was missing.
55257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
55258         (jm_PREREQ_HASH): New function.
55259
55260 2001-01-17  Jim Meyering  <meyering@lucent.com>
55261
55262         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
55263         for autoconf-2.49c.
55264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
55265
55266 2001-01-16  Jim Meyering  <meyering@lucent.com>
55267
55268         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
55269         From Bruno Haible.
55270
55271 2001-01-14  Jim Meyering  <meyering@lucent.com>
55272
55273         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
55274         foo and bar.  Create conftestdir/ in the script, not in the C code.
55275         Remove directories in the script, not in the C code.
55276         Remove conftestdir{,2} before trying to create the directory.
55277         Make the entire configure script fail if the mkdir fails.
55278
55279 2001-01-14  Jim Meyering  <meyering@lucent.com>
55280
55281         * lib/rename.c: New file.  From Volker Borchert.
55282         Include stdlib.h, string.h or strings.h, and xalloc.h.
55283         Use strip_trailing_slashes rather than open-coding it.
55284
55285 2001-01-03  Paul Eggert  <eggert@twinsun.com>
55286
55287         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
55288
55289 2001-01-03  Jim Meyering  <meyering@lucent.com>
55290
55291         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
55292         of local `inptr' to avoid warning with some system declarations of
55293         iconv.
55294
55295 2001-01-02  Volker Borchert  <bt@teknon.de>
55296
55297         * m4/rename.m4: New file.
55298         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
55299
55300 2001-01-01  Jim Meyering  <meyering@lucent.com>
55301
55302         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
55303         even on systems with utmpx.h.  It's necessary for the declaration of
55304         utmp's ut_user member.  Reported by Andreas Jaeger.
55305
55306         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
55307         available. They are required for the declarations of getgrgid and
55308         getpwuid resp.
55309         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
55310         Reported by Andreas Jaeger.
55311
55312 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
55313
55314         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
55315         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
55316         so `make install' also works in VPATH builds.
55317
55318 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
55319
55320         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
55321         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
55322         can be used in subdirectories.
55323
55324 2000-12-29  Paul Eggert  <eggert@twinsun.com>
55325
55326         * lib/modechange.c: Do not assume that mode_t uses the
55327         traditional octal encoding.  E.g. "chmod 1 FOO" should set
55328         the other-execute bit of FOO even if S_IXOTH != 1.
55329
55330         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
55331         WOTH, XOTH, ALLM): New macros.
55332         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
55333          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
55334         Use them.
55335         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
55336         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
55337         (mode_compile):
55338         No need to use uintmax_t; unsigned long is long enough.
55339         Don't bother to get suffix since we don't use it.
55340
55341 2000-12-26  Jim Meyering  <meyering@lucent.com>
55342
55343         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
55344         better with autoheader.
55345
55346 2000-12-24  Jim Meyering  <meyering@lucent.com>
55347
55348         * lib/hash.c (is_prime): Return explicit boolean values.
55349         (hash_get_first): Return NULL to appease Irix5.6's 89.
55350         Reported by Nelson Beebe.
55351
55352 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
55353
55354         * lib/localcharset.c (locale_charset): Add support for Win32.
55355
55356 2000-12-18  Paul Eggert  <eggert@twinsun.com>
55357
55358         * lib/physmem.h, lib/physmem.c: New files.
55359
55360         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
55361         (noinst_HEADERS): Add physmem.h.
55362
55363         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
55364         't' for compatibility with Solaris 8 sort.
55365
55366 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
55367
55368         * lib/config.charset: Add support for BeOS.
55369
55370 2000-12-17  Jim Meyering  <meyering@lucent.com>
55371
55372         * m4/dos.m4 (jm_AC_DOS): New file and macro.
55373         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
55374
55375 2000-12-16  Jim Meyering  <meyering@lucent.com>
55376
55377         This bug had a serious impact on chown: `chown N:M FILE' (for integer
55378         N and M) would have treated it like `chown N:N FILE'.
55379
55380         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
55381
55382 2000-12-16  Jim Meyering  <meyering@lucent.com>
55383
55384         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
55385         SHELLS_FILE to a file name that's useful on djgpp systems.
55386         Include stdlib.h.
55387         (ADDITIONAL_DEFAULT_SHELLS): Define.
55388         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
55389         Based mostly on a patch from Prashant TR.
55390
55391 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
55392
55393         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
55394         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
55395         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
55396
55397 2000-12-08  Andreas Schwab  <schwab@suse.de>
55398
55399         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
55400         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
55401
55402 2000-12-07  Jim Meyering  <meyering@lucent.com>
55403
55404         * lib/stripslash.c (ISSLASH): Define.
55405         (strip_trailing_slashes): Use ISSLASH rather than comparing against
55406         `/'.
55407         From Prashant TR.
55408
55409         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
55410         (dir_name_r): Declare this function as static.
55411         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
55412         manifest itself on a name containing a mix of slashes and
55413         backslashes.
55414         Make this function work with names starting with a DOS-style
55415         drive letter and colon prefix.
55416         (dir_name): Append `.' if necessary.
55417         Based mostly on patches from Prashant TR and Eli Zaretskii.
55418
55419         * lib/dirname.h (dir_name_r): Remove prototype.
55420
55421 2000-12-06  Paul Eggert  <eggert@twinsun.com>
55422
55423         * m4/off_t-format.m4: Remove this file.
55424         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
55425
55426 2000-12-06  Jim Meyering  <meyering@lucent.com>
55427
55428         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
55429         replacement strtoull, we may well need the replacement strtoul, too.
55430         Check for declarations of strtoul and strtoull.
55431         Check for strtol.  Mainly as a cue to cause automake to include
55432         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
55433         Check for limits.h -- strtol.c needs it.
55434
55435 2000-12-05  Jim Meyering  <meyering@lucent.com>
55436
55437         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
55438
55439 2000-12-04  Jim Meyering  <meyering@lucent.com>
55440
55441         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
55442         Also include memory.h, stdlib.h, unistd.h if appropriate.
55443         Reported by Andreas Jaeger (conflicting declaration of malloc).
55444
55445 2000-12-02  Jim Meyering  <meyering@lucent.com>
55446
55447         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
55448         * m4/jm-macros.m4 (jm_MACROS): require it.
55449
55450 2000-12-02  Jim Meyering  <meyering@lucent.com>
55451
55452         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
55453
55454 2000-12-01  Paul Eggert  <eggert@twinsun.com>
55455
55456         * lib/memrchr.c: Include <config.h> before any system include file.
55457
55458 2000-11-30  Jim Meyering  <meyering@lucent.com>
55459
55460         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
55461
55462 2000-11-30  Jim Meyering  <meyering@lucent.com>
55463
55464         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
55465
55466 2000-11-29  Paul Eggert  <eggert@twinsun.com>
55467
55468         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
55469
55470 2000-11-26  Jim Meyering  <meyering@lucent.com>
55471
55472         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
55473
55474 2000-11-22  Paul Eggert  <eggert@twinsun.com>
55475
55476         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
55477         size of (size_t) -1; it's not portable.
55478
55479 2000-11-17  Jim Meyering  <meyering@lucent.com>
55480
55481         * lib/strstr.c: Update from GNU libc.
55482
55483 2000-11-17  Akim Demaille  <akim@epita.fr>
55484
55485         * lib/obstack.h: Formatting changes.
55486         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
55487         prevent type checking.
55488         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
55489         cast the value to (void *): assigning a `foo *' to a `void *'
55490         variable is valid.
55491         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
55492
55493 2000-11-16  Jim Meyering  <meyering@lucent.com>
55494
55495         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
55496
55497 2000-11-11  Jim Meyering  <meyering@lucent.com>
55498
55499         * lib/error.c: Add a couple #includes, merging from GNU libc version.
55500
55501 2000-11-10  Jim Meyering  <meyering@lucent.com>
55502
55503         * lib/obstack.h: Update from GNU libc.
55504         * lib/obstack.c: Likewise.
55505
55506 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
55507
55508         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
55509
55510 2000-11-06  Paul Eggert  <eggert@twinsun.com>
55511
55512         * lib/getusershell.c (setusershell): Use rewind rather than
55513         fseek/fseeko, to avoid configuration hassles with fseeko.
55514         Don't bother opening SHELLS_FILE if shellstream is NULL;
55515         it's not necessary.
55516
55517 2000-11-05  Jim Meyering  <meyering@lucent.com>
55518
55519         * lib/makepath.h (make_dir): Declare.
55520         * lib/makepath.c (make_dir): Remove `static' attribute.
55521         Tweak a comment.
55522
55523 2000-11-04  Jim Meyering  <meyering@lucent.com>
55524
55525         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
55526
55527 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
55528
55529         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
55530         last one in a bucket, advance to the next bucket.
55531
55532 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
55533
55534         * lib/fnmatch.c: Do not comment out all the code if we are using
55535         the GNU C library, because in some cases we are replacing buggy
55536         code in the GNU C library itself.
55537
55538 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
55539
55540         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
55541         (regex_compile): Catch bogus \(\1\).
55542
55543 2000-10-30  Paul Eggert  <eggert@twinsun.com>
55544
55545         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
55546         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
55547         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
55548
55549 2000-10-30  Paul Eggert  <eggert@twinsun.com>
55550
55551         * lib/error.h, getline.h, modechange.h:
55552         Remove "2000" from Copyright line, as the file hasn't been
55553         changed this year other than in the copyright notice.
55554
55555         * lib/xalloc.h: Add "2000" to Copyright line, as this file
55556         was changed this year.
55557
55558 2000-10-29  Jim Meyering  <meyering@lucent.com>
55559
55560         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
55561         renaming.
55562         * m4/ls-mntd-fs.m4: Likewise
55563
55564 2000-10-29  Jim Meyering  <meyering@lucent.com>
55565
55566         * lib/xstat.in: Fix grammar in comment.
55567
55568 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
55569
55570         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
55571         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
55572         doesn't define __restrict_arr.
55573
55574 2000-10-28  Jim Meyering  <meyering@lucent.com>
55575
55576         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
55577         (jm_PREREQ_MEMCHR): New function.
55578
55579 2000-10-28  Jim Meyering  <meyering@lucent.com>
55580
55581         * lib/memchr.c: Update from libc.
55582         Adjust for portability:
55583         [HAVE_STDLIB_H]: Include stdlib.h.
55584         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
55585         Undef __memchr, too.
55586         [!weak_alias]: Define __memchr to memchr.
55587
55588         * lib/regex.c: Update from libc.
55589         * lib/regex.h: Likewise.
55590         * lib/getopt1.c: Likewise.
55591         * lib/memcmp.c: Likewise.
55592
55593         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
55594         Avoid using fseek, when possible -- it's broken by design.
55595         Patch by Ulrich Drepper.
55596
55597 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
55598
55599         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
55600         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
55601         Giving in to popular pressure to shut up the compiler with casts.
55602
55603 2000-10-26  Jim Meyering  <meyering@lucent.com>
55604
55605         * lib/strftime.c: Update from libc.
55606
55607 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
55608
55609         * regex.c: More `unsigned char' -> `re_char' changes.
55610         Also change several `int' into `re_wchar_t'.
55611         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
55612         (PUSH_FAILURE_POINTER): Don't cast any more.
55613         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
55614         We want GCC to complain, since this piece of code makes
55615         re_match non-reentrant, which *should* be fixed.
55616         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
55617         (EXTEND_BUFFER): Use RETALLOC.
55618         (SET_LIST_BIT): Don't cast.
55619         (re_wchar_t): New type.
55620         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
55621         that those two functions will always properly return.
55622         (IMMEDIATE_QUIT_CHECK): Cast to void.
55623         (analyse_first): Use recursion rather than an explicit stack.
55624         (re_compile_fastmap): Can't fail anymore.
55625         (re_search_2): Don't check re_compile_fastmap for failure.
55626         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
55627         Now also sets the new value (passed in a new argument).
55628         (re_match_2_internal): Use it.
55629         Also, use a new var `reg' of type size_t when looping through regs
55630         rather than reuse the inappropriate `mcnt'.
55631
55632 2000-10-25  Jim Meyering  <meyering@lucent.com>
55633
55634         * lib/obstack.c: Update from libc.
55635
55636 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
55637
55638         * regex.c (regex_compile): Change the way of handling a range from
55639         a char less than 256 to a char not less than 256.
55640
55641 2000-10-24  Andrew Innes  <andrewi@gnu.org>
55642
55643         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
55644         NT-Emacs only.
55645         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
55646         so that re_search functions only quit when callers expect them to.
55647
55648 2000-10-23  Jim Meyering  <meyering@lucent.com>
55649
55650         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
55651         wrong.  That set_locale call must not have any side effects.
55652         From Paul Eggert.
55653
55654 2000-10-22  Jim Meyering  <meyering@lucent.com>
55655
55656         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
55657         [CYCLIC]: Remove now-unused definition.
55658
55659         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
55660         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
55661         Suggestion from Ulrich Drepper.
55662
55663 2000-10-21  Jim Meyering  <meyering@lucent.com>
55664
55665         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
55666         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
55667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
55668
55669 2000-10-21  Jim Meyering  <meyering@lucent.com>
55670
55671         * lib/dirname.c (memrchr): Declare if necessary.
55672         (dir_name): Remove the restriction that there be no
55673         trailing slashes.  Now, this code skips past them, effectively
55674         ignoring them.
55675         [TEST_DIRNAME] (main): New unit tests.
55676
55677         * lib/memrchr.c: New file from GNU libc.
55678         Undef __memrchr, too.
55679         [!weak_alias]: Define __memrchr to memrchr.
55680         Guard weak_alias use with `#ifdef weak_alias'.
55681
55682 2000-10-21  Jim Meyering  <meyering@lucent.com>
55683
55684         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
55685         (dir_name): Use dir_name_r.
55686         * lib/dirname.h (dir_name_r): Declare it.
55687
55688 2000-10-17  Jim Meyering  <meyering@lucent.com>
55689
55690         * lib/quote.h (PARAMS): Define and use.
55691         Reported by Akim Demaille.
55692
55693         * lib/getopt.c: Update from libc.
55694
55695 2000-10-16  Jim Meyering  <meyering@lucent.com>
55696
55697         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
55698         setlocale.
55699         From Jan Fedak.
55700
55701 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
55702
55703         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
55704
55705 2000-09-25  Jim Meyering  <meyering@lucent.com>
55706
55707         * lib/md5.h (rol): Define (from GnuPG).
55708
55709         * lib/sha.c: Give credit (GnuPG) where due.
55710         (M): Use rol rather than open-coding it.
55711         Add a FIXME comment.
55712
55713 2000-09-21  Jim Meyering  <meyering@lucent.com>
55714
55715         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
55716         Reported by Michael Stone.
55717
55718 2000-09-20  Jim Meyering  <meyering@lucent.com>
55719
55720         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
55721         (noinst_HEADERS): Add sha.h.
55722         Based on code from Scott G. Miller and from GnuPG.
55723
55724 2000-09-18  Jim Meyering  <meyering@lucent.com>
55725
55726         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
55727         LIBS. Otherwise, everyone ends up linking with -lelf for some
55728         configurations.
55729         Reported by Mike Stone.
55730
55731 2000-09-15  Jim Meyering  <meyering@lucent.com>
55732
55733         * lib/regex.c: Update from libc.
55734
55735 2000-09-10  Jim Meyering  <meyering@lucent.com>
55736
55737         * lib/getopt.c (_getopt_internal): Update from glibc.
55738
55739 2000-09-09  Jim Meyering  <meyering@lucent.com>
55740
55741         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
55742         think it should be used as a general replacement for isascii.
55743         * lib/fnmatch.c: Likewise.
55744         * lib/mbswidth.c: Likewise
55745         * lib/regex.c: Likewise.
55746
55747         Don't use atoi.
55748         * lib/userspec.c: Include sys/param.h and limits.h.
55749         Include xstrtol.h.
55750         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
55751         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
55752         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
55753         UID, GID.  Check range.
55754
55755 2000-09-06  Jim Meyering  <meyering@lucent.com>
55756
55757         * lib/getopt.c (_getopt_internal): Update from glibc.
55758
55759 2000-08-30  Jim Meyering  <meyering@lucent.com>
55760
55761         * lib/strftime.c: Merge in changes from GNU libc.
55762
55763 2000-08-26  Jim Meyering  <meyering@lucent.com>
55764
55765         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
55766         * m4/fpending.m4: New file.
55767
55768 2000-08-26  Jim Meyering  <meyering@lucent.com>
55769
55770         * lib/closeout.c: Include "__fpending.h".
55771         (close_stdout_status): Return right away if there's nothing to flush.
55772
55773         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
55774         * lib/__fpending.c: New file.
55775         * lib/__fpending.h: New file.
55776
55777 2000-08-20  Jim Meyering  <meyering@lucent.com>
55778
55779         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
55780         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
55781         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
55782
55783 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
55784
55785         Improve fileutils installation on systems where running
55786         programs (like install) can't be unlinked.
55787         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
55788         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
55789
55790 2000-08-07  Paul Eggert  <eggert@twinsun.com>
55791
55792         Standardize on "memory exhausted" instead of "Memory exhausted"
55793         or "virtual memory exhausted".
55794         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
55795         "virtual memory exhausted".
55796         * lib/same.c (same_name): Invoke xalloc_die instead of printing
55797         our own message.
55798         * lib/userspec.c (parse_user_spec): Likewise.
55799         * lib/bumpalloc.h: comment fix
55800         * lib/same.c, userspec.c: Include xalloc.h.
55801
55802         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
55803         not char *const and pointing to a constant array.
55804         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
55805         (xrealloc): Comment fix.
55806
55807         * lib/userspec.c (parse_user_spec):
55808         Don't translate a message until just before returning,
55809         to avoid unnecessary translation.
55810
55811 2000-08-07  Jim Meyering  <meyering@lucent.com>
55812
55813         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
55814         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
55815         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
55816         getgroups.c, gethostname.c, getopt.h, group-member.c,
55817         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
55818         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
55819         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
55820         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
55821         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
55822         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
55823         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
55824         yesno.c: Back out Copyright date changes for each file with no change
55825         this year.  This eases coordination with other programs using the same
55826         source code modules.  From Paul Eggert.
55827
55828 2000-08-06  Paul Eggert  <eggert@twinsun.com>
55829
55830         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
55831         not char, for compatibility with glibc 2.1.3 strftime.c.
55832
55833 2000-08-03  Greg McGary  <greg@mcgary.org>
55834
55835         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
55836         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
55837         (EXTEND_BUFFER): Use them.
55838
55839 2000-08-01  Jim Meyering  <meyering@lucent.com>
55840
55841         * lib/dirname.c (ISSLASH): Define.
55842         (BACKSLASH_IS_PATH_SEPARATOR): Define.
55843         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
55844         both `\' and `/' may be use as path separators.
55845         Based on a patch from Prashant TR.
55846
55847 2000-07-31  Paul Eggert  <eggert@twinsun.com>
55848
55849         * lib/quotearg.c (quotearg_n_options): Don't make the initial
55850         slot vector a constant, since it might get modified.
55851
55852 2000-07-31  Jim Meyering  <meyering@lucent.com>
55853
55854         * lib/xmalloc.c: Use `virtual memory exhausted', not
55855         `Memory exhausted'.
55856         * lib/obstack.c (print_and_abort): Likewise.
55857
55858 2000-07-30  Paul Eggert  <eggert@twinsun.com>
55859
55860         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
55861         buffer, so that the caller can always quote one small
55862         component of a "memory exhausted" message in slot 0.
55863         From a suggestion by Jim Meyering.
55864
55865 2000-07-30  Jim Meyering  <meyering@lucent.com>
55866
55867         * lib/makepath.c (make_path): Quote the other instance, too.
55868
55869         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
55870         (STATIC_BUF_SIZE): Define.
55871         (quotearg_n_options): Use only statically allocated storage when
55872         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
55873         than STATIC_BUF_SIZE.
55874
55875 2000-07-29  Jim Meyering  <meyering@lucent.com>
55876
55877         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
55878         * lib/dirname.c (dir_name): Likewise.
55879
55880         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
55881         `/'.
55882
55883         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
55884         (dir_name): Assert that there are no trailing slashes.
55885
55886 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
55887
55888         * lib/mbswidth.h (mbswidth): Add a flags argument.
55889         (mbswidth): New declaration.
55890         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
55891         * lib/mbswidth.c (mbswidth): Add a flags argument.
55892         (mbsnwidth): New function.
55893
55894 2000-07-24  Jim Meyering  <meyering@lucent.com>
55895
55896         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
55897
55898 2000-07-23  Paul Eggert  <eggert@twinsun.com>
55899
55900         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
55901
55902 2000-07-23  Paul Eggert  <eggert@twinsun.com>
55903
55904         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
55905         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
55906         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
55907         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
55908         invoke multibyte primitives.
55909
55910 2000-07-23  Paul Eggert  <eggert@twinsun.com>
55911
55912         * lib/quotearg.c:
55913         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
55914         so that mbstate_t is always defined.
55915
55916         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
55917         be 1 in at least one GCC installation, and this configuration
55918         error is likely to be common.  Ignoring MB_LEN_MAX hurts
55919         performance on hosts that have mbrtowc but have only unibyte
55920         locales, but I assume these hosts are rare.
55921
55922 2000-07-23  Paul Eggert  <eggert@twinsun.com>
55923
55924         * lib/mbswidth.c (_XOPEN_SOURCE):
55925         Don't define; this causes problems on Solaris 7.
55926         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
55927
55928 2000-07-23  Jim Meyering  <meyering@lucent.com>
55929
55930         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
55931         too: getgrgid, getpwuid, getuid.
55932
55933 2000-07-23  Jim Meyering  <meyering@lucent.com>
55934
55935         * lib/basename.c (base_name): Add an assertion.
55936
55937 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
55938
55939         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
55940         shadow its mbsinit function.
55941
55942 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
55943
55944         * lib/mbswidth.h: New file.
55945         * lib/mbswidth.c: New file.
55946         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
55947         (noinst_HEADERS): Add mbswidth.h.
55948
55949 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
55950
55951         * lib/config.charset: Add support for FreeBSD. Improve support for
55952         HP-UX and IRIX 6.
55953
55954 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
55955
55956         * m4/mbswidth.m4: New file.
55957         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
55958
55959 2000-07-15  Jim Meyering  <meyering@lucent.com>
55960
55961         * lib/makepath.c: Include quote.h.
55962         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
55963         corresponding argument in a `quote (...)' call.
55964         Give better diagnostics.
55965
55966         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
55967         (noinst_HEADERS): Add quote.h.
55968
55969         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
55970         from tar's src/misc.c.
55971         * lib/quote.h: New file.  Prototypes for same.
55972
55973 2000-07-14  Paul Eggert  <eggert@twinsun.com>
55974
55975         From a suggestion by Bruno Haible.
55976         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
55977         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
55978         to decide whether to define the BeOS workaround macro;
55979         this adjusts to the change to AC_MBSTATE_T.
55980
55981 2000-07-14  Jim Meyering  <meyering@lucent.com>
55982
55983         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
55984         jm_AC_TYPE_UINTMAX_T.
55985
55986 2000-07-13  Paul Eggert  <eggert@twinsun.com>
55987
55988         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
55989
55990         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
55991         quotearg_buffer_restyled): Add support for
55992         clocale_quoting_style.  Undo previous change to
55993         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
55994         and "{RIGHT QUOTATION MARK}" msgids.
55995
55996 2000-07-10  Paul Eggert  <eggert@twinsun.com>
55997
55998         From a suggestion by Bruno Haible.
55999         * m4/mbstate_t.m4 (AC_MBSTATE_T):
56000         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
56001         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
56002         and mbstate_t, to a single-part test that simply defines mbstate_t.
56003         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
56004         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
56005
56006 2000-07-10  Jim Meyering  <meyering@lucent.com>
56007
56008         * m4/strerror_r.m4: Mirror the correction made in autoconf.
56009
56010         * m4/gnu-source.m4: Output to confdefs.h directly.
56011         Suggestion from Akim Demaille.
56012
56013 2000-07-09  Paul Eggert  <eggert@twinsun.com>
56014
56015         The old behavior of quoting `like this' doesn't look good with
56016         newer, ISO-style fonts.  See:
56017         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
56018
56019         Instead, quote "like this" by default.  Let the translator
56020         tailor the locale-specific quoting behavior by providing
56021         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
56022
56023         * lib/quotearg.c (N_): New macro.
56024         (gettext_default): New function.
56025         (quotearg_buffer_restyled): Use
56026         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
56027         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
56028
56029 2000-07-09  Jim Meyering  <meyering@lucent.com>
56030
56031         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
56032         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
56033
56034         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
56035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
56036
56037 2000-07-09  Jim Meyering  <meyering@lucent.com>
56038
56039         * lib/Most files: Update copyright dates to include 2000.
56040
56041 2000-07-08  Jim Meyering  <meyering@lucent.com>
56042
56043         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
56044         if not defined.
56045         (xgethostname): Remove now-unnecessary #ifdef.
56046         Move declaration of `err' into loop where it's used.
56047
56048 2000-07-05  Paul Eggert  <eggert@twinsun.com>
56049         and Bruno Haible  <haible@clisp.cons.org>
56050
56051         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
56052         only if the test for an object-type mbstate_t fails.  This
56053         prevents us from mistakenly reporting that mbstate_t is a
56054         system object type after we "#define mbstate_t int" to work
56055         around its lack.
56056
56057 2000-07-05  Paul Eggert  <eggert@twinsun.com>
56058         and Bruno Haible  <haible@clisp.cons.org>
56059
56060         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
56061
56062 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56063
56064         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
56065         to strerror_r.
56066         Include <ctype.h> for use of isalpha.
56067
56068 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56069
56070         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
56071         by allocating a larger buffer. Test the gethostname return value for
56072         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
56073         returns an error and ENAMETOOLONG isn't defined.
56074
56075 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56076
56077         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
56078         dimension.
56079
56080 2000-07-04  Jim Meyering  <meyering@lucent.com>
56081
56082         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
56083         of the deprecated AC_CHECKING.
56084
56085 2000-07-04  Jim Meyering  <meyering@lucent.com>
56086
56087         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
56088         Reported by Bruno Haible.
56089
56090 2000-07-04  Jim Meyering  <meyering@lucent.com>
56091
56092         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
56093         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
56094         lacks mbrtowc.
56095
56096 2000-07-03  Paul Eggert  <eggert@twinsun.com>
56097
56098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
56099         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
56100
56101 2000-07-03  Paul Eggert  <eggert@twinsun.com>
56102         and Bruno Haible  <haible@clisp.cons.org>
56103
56104         * lib/quotearg.c (mbrtowc):
56105         Assign to *pwc, and return 1 only if result is nonzero.
56106         (iswprint): Use ISPRINT when substituting our own mbrtowc.
56107
56108 2000-07-03  Jim Meyering  <meyering@lucent.com>
56109
56110         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
56111
56112 2000-07-03  Jim Meyering  <meyering@lucent.com>
56113
56114         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
56115         This is necessary to get a definition of e.g., UTMP_FILE on
56116         HP-UX 10.20.
56117         From Bob Proulx.
56118
56119 2000-07-02  Jim Meyering  <meyering@lucent.com>
56120
56121         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
56122
56123         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
56124         AC_LIBOBJ(function_name).
56125         * m4/chown.m4: Likewise.
56126         * m4/fnmatch.m4: Likewise.
56127         * m4/ftruncate.m4: Likewise.
56128         * m4/getgroups.m4: Likewise.
56129         * m4/getline.m4: Likewise.
56130         * m4/group-member.m4: Likewise.
56131         * m4/jm-macros.m4: Likewise.
56132         * m4/lstat.m4: Likewise.
56133         * m4/malloc.m4: Likewise.
56134         * m4/memcmp.m4: Likewise.
56135         * m4/nanosleep.m4: Likewise.
56136         * m4/putenv.m4: Likewise.
56137         * m4/realloc.m4: Likewise.
56138         * m4/regex.m4: Likewise.
56139         * m4/stat.m4: Likewise.
56140         * m4/strftime.m4: Likewise.
56141
56142 2000-07-02  Jim Meyering  <meyering@lucent.com>
56143
56144         * lib/quotearg.c (mbstate_t): Don't define here.
56145
56146 2000-07-02  Jim Meyering  <meyering@lucent.com>
56147
56148         * lib/nanosleep.c (SIGCONT): Define if not already defined.
56149
56150 2000-07-01  Jim Meyering  <meyering@lucent.com>
56151
56152         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
56153
56154 2000-07-01  Jim Meyering  <meyering@lucent.com>
56155
56156         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
56157         problem.
56158
56159 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
56160
56161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
56162         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
56163
56164 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
56165
56166         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
56167         per change in ../m4/ls-mntd-fs.m4.
56168         (read_filesystem_list): Ignore symbolic links.
56169
56170 2000-06-29  Jim Meyering  <meyering@lucent.com>
56171
56172         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
56173         for declaration of strcmp.
56174
56175         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
56176
56177         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
56178         Avoid warning by casting result to `char *' to remove `const'.
56179
56180 2000-06-28  Jim Meyering  <meyering@lucent.com>
56181
56182         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
56183         included by quotearg.c, for which we perform this test.  From
56184         Bruno Haible.
56185
56186 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
56187
56188         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
56189         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
56190         <utmpx.h> exists, put readutmp.o into LIBOBJS.
56191
56192 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
56193
56194         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
56195
56196 2000-06-26  Paul Eggert  <eggert@twinsun.com>
56197
56198         savedir now sets errno on failure and invokes xmalloc to get memory.
56199         Fix a couple of other minor bugs while we're at it.
56200
56201         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
56202         (NAMLEN): Remove macro.
56203         (malloc, realloc): Remove decls.
56204         (stpcpy): Likewise.
56205         ("xalloc.h"): Include.
56206         (NAME_SIZE_DEFAULT): New macro.
56207         (savedir): Use xmalloc / xrealloc to allocate memory.
56208         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
56209         Skip "" directory entries.
56210         Use strlen to calculate directory entry length, since the old method
56211         is rarely used these days and isn't worth supporting.
56212         Don't use a pointer after freeing it.
56213         Check for integer overflow when calculating allocation size.
56214         Use memcpy to copy entries, instead of stpcpy.
56215         Set errno properly when returning NULL.
56216         Check for readdir error.
56217
56218 2000-06-26  Jim Meyering  <meyering@lucent.com>
56219
56220         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
56221
56222 2000-06-25  Jim Meyering  <meyering@lucent.com>
56223
56224         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
56225         Linux header bug when _XOPEN_SOURCE is defined to 500.
56226
56227 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
56228
56229         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
56230         deficiency.
56231
56232 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
56233
56234         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
56235         Include xalloc.h.
56236         Don't include <stdlib.h>.  Don't declare malloc, realloc.
56237
56238 2000-06-24  Jim Meyering  <meyering@lucent.com>
56239
56240         * m4/strerror_r.m4: Revive this file -- to try out an experimental
56241         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
56242         for which strerror does return char*, but which lacks a conveniently
56243         accessible declaration of the function.  If the compile-test says
56244         strerror_r doesn't work, then resort to a `run'-test that works on
56245         BeOS and segfaults on DEC Unix.
56246
56247 2000-06-24  Jim Meyering  <meyering@lucent.com>
56248
56249         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
56250
56251 2000-06-23  Paul Eggert  <eggert@twinsun.com>
56252
56253         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
56254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
56255
56256 2000-06-23  Paul Eggert  <eggert@twinsun.com>
56257
56258         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
56259         (mbrtowc, mbstate_t): Define substitutes if
56260         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
56261         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
56262         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
56263
56264 2000-06-23  Jim Meyering  <meyering@lucent.com>
56265
56266         * m4/afs.m4: Add missing AC_MSG_RESULT.
56267         Reported by Bruno Haible.
56268
56269         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
56270         Suggestion from Bruno Haible.
56271
56272 2000-06-23  Jim Meyering  <meyering@lucent.com>
56273
56274         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
56275
56276 2000-06-21  Jim Meyering  <meyering@lucent.com>
56277
56278         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
56279
56280 2000-06-21  Jim Meyering  <meyering@lucent.com>
56281
56282         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
56283         (noinst_HEADERS): Add getstr.h.
56284
56285         * lib/getline.c (getstr): Move into a separate file.
56286         * lib/getstr.c (getstr): New file, extracted from getline.c, with
56287         the following changes: new parameter, delim2; both delim[12]
56288         parameters have type `int', not `char'.  The latter would lose
56289         with 8-bit delimiters.
56290         * lib/getstr.h: New file.
56291
56292 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
56293
56294         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
56295         than 1024, return a memory chunk of least possible size, instead
56296         of size PATH_MAX + 2. In the loop, increment the size proportionally.
56297         Use free/xmalloc instead of xrealloc to avoid copying for very long
56298         paths.
56299
56300 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
56301
56302         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
56303         the empty string.
56304
56305 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
56306
56307         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
56308         address, not strdup.  Include <stdlib.h> and don't declare free().
56309
56310 2000-06-19  Jim Meyering  <meyering@lucent.com>
56311
56312         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
56313
56314 2000-06-18  Jim Meyering  <meyering@lucent.com>
56315
56316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
56317
56318         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
56319         `checking whether...' message to be consistent with that of the
56320         lstat test.
56321
56322 2000-06-18  Jim Meyering  <meyering@lucent.com>
56323
56324         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
56325         Besides, these days every porting target provides a mkdir function.
56326
56327         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
56328         needed. (this snippet comes from src/system.h).
56329
56330 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
56331
56332         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
56333
56334 2000-06-15  Paul Eggert  <eggert@twinsun.com>
56335
56336         * lib/human.c (adjust_value): New function.
56337         (human_readable_inexact): Apply rounding style even when
56338         printing approximate values.
56339
56340 2000-06-14  Paul Eggert  <eggert@twinsun.com>
56341
56342         * lib/human.c (human_readable_inexact): Allow an input block
56343         size that is not a multiple of the output block size, and vice versa.
56344         Reported by Piergiorgio Sartor.
56345
56346 2000-06-14  Paul Eggert  <eggert@twinsun.com>
56347
56348         * lib/getdate.y (get_date): Apply relative times after time
56349         zone indicator, not before.  Reported by Todd A. Jacobs.
56350
56351 2000-06-13  Jim Meyering  <meyering@lucent.com>
56352
56353         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
56354
56355         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
56356
56357 2000-06-12  Paul Eggert  <eggert@twinsun.com>
56358
56359         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
56360
56361 2000-06-12  Jim Meyering  <meyering@lucent.com>
56362
56363         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
56364         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
56365         optional argument.
56366         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
56367         the optional argument, `lib'.
56368
56369 2000-06-08  Jim Meyering  <meyering@lucent.com>
56370
56371         * m4/largefile.m4: Remove file (now that it's part of autoconf).
56372
56373 2000-06-04  Paul Eggert  <eggert@twinsun.com>
56374
56375         Rewrite largefile configuration so that we don't need to run
56376         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
56377         AC_CANONICAL_HOST in configure.in -- jmm]
56378
56379         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
56380         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
56381         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
56382         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
56383         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
56384         All uses changed.
56385         Instead of inspecting the output of getconf, try to compile the
56386         test program without and with the macro definition.
56387         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
56388         for getconf.  Instead, check for the needed flags by compiling
56389         test programs.
56390
56391 2000-06-04  Paul Eggert  <eggert@twinsun.com>
56392
56393         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
56394
56395 2000-06-04  Jim Meyering  <meyering@lucent.com>
56396
56397         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
56398         SunOS 4.1.4 for which gid_t is an unsigned type.
56399
56400 2000-06-03  Jim Meyering  <meyering@lucent.com>
56401
56402         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
56403         now that autoconf requires that.
56404
56405         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
56406         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
56407         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
56408
56409 2000-06-03  Jim Meyering  <meyering@lucent.com>
56410
56411         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
56412
56413 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
56414
56415         * m4/glibc21.m4: New file.
56416         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
56417
56418 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
56419
56420         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
56421         newer, don't install charset.alias.
56422         * lib/config.charset: Change the Linux/glibc rules so they become empty
56423         on glibc-2.1 or newer.
56424
56425 2000-06-02  Jim Meyering  <meyering@lucent.com>
56426
56427         * lib/mountlist.c: Back out last change.  Instead, do this...
56428         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
56429         me_dummy member using the same `ignore'-testing code.
56430         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
56431         fs_type strings.
56432         From Mark D. Roth.
56433
56434 2000-05-29  Jim Meyering  <meyering@lucent.com>
56435
56436         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
56437         mounts with the `ignore' attribute.  Based on a patch from
56438         Mark D. Roth.
56439
56440 2000-05-28  Jim Meyering  <meyering@lucent.com>
56441
56442         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
56443         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56444         * m4/stat.m4: Likewise.
56445         * m4/lstat.m4: Likewise.
56446         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
56447
56448         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
56449         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
56450
56451 2000-05-26  Jim Meyering  <meyering@lucent.com>
56452
56453         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
56454
56455 2000-05-24  Jim Meyering  <meyering@lucent.com>
56456
56457         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
56458         autoconf requires that.
56459         * m4/lib-check.m4: Likewise.
56460         * m4/jm-macros.m4: Likewise.
56461         * m4/strftime.m4: Likewise.
56462
56463         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
56464         AC_CHECK_DECLS, now that autoconf requires that.
56465
56466 2000-05-22  Jim Meyering  <meyering@lucent.com>
56467
56468         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56469         * m4/lstat.m4: Likewise.
56470
56471 2000-05-22  Jim Meyering  <meyering@lucent.com>
56472
56473         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
56474
56475 2000-05-20  Jim Meyering  <meyering@lucent.com>
56476
56477         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
56478         (jm_PREREQ): Use it.
56479
56480 2000-05-18  Jim Meyering  <meyering@lucent.com>
56481
56482         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
56483         back, too, since it may have been modified by allocate_entry.
56484         (hash_delete): Rewrite to use neither the assignment operator
56485         nor the comma operator in an if-expression.
56486
56487 2000-05-15  Paul Eggert  <eggert@twinsun.com>
56488
56489         * lib/closeout.c:
56490         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
56491         Remove; no longer needed.
56492         "quotearg.h": Add include.
56493         (file_name): Do not bother to explicitly initialize to NULL; it's less
56494         efficient on some hosts.
56495         (close_stdout_status): Remove test as to whether stdout was already
56496         closed; it breaks for the case "echo x | sort >&-".
56497         Quote file name colons.
56498         Do not assume that _("write error") lacks format strings.
56499
56500 2000-05-15  Jim Meyering  <meyering@lucent.com>
56501
56502         * lib/version-etc.c (version_etc_copyright): Update the copyright
56503         string used in all --version output.
56504
56505 2000-05-14  Jim Meyering  <meyering@lucent.com>
56506
56507         * lib/closeout.c (close_stdout_set_file_name): New function.
56508         (close_stdout_status): Use new file-scoped global.
56509         Return right away if fstat says the stdout file descriptor is invalid.
56510         * lib/closeout.h (close_stdout_set_file_name): Declare.
56511
56512 2000-05-10  Jim Meyering  <meyering@lucent.com>
56513
56514         * lib/closeout.c [default_exit_status]: New file-scoped variable.
56515         (close_stdout_set_status): New function.
56516         * lib/closeout.h (close_stdout_set_status): Declare.
56517
56518 2000-05-09  Jim Meyering  <meyering@lucent.com>
56519
56520         * m4/gettext.m4: Rename this...
56521         * m4/libintl.m4: ...to this.
56522
56523 2000-05-08  Jim Meyering  <meyering@lucent.com>
56524
56525         * lib/long-options.c: Don't include closeout.h.
56526         (parse_long_options): Don't call close_stdout for --version.
56527
56528 2000-05-06  Paul Eggert  <eggert@twinsun.com>
56529
56530         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
56531         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
56532         2.1.3 bug.  This avoids a clash when files like regex.c define
56533         _GNU_SOURCE.
56534
56535 2000-05-06  Jim Meyering  <meyering@lucent.com>
56536
56537         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
56538         (AC_REPLACE_FUNCS): Add strnlen.
56539
56540         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
56541         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
56542
56543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
56544         AC_SEARCH_LIBS call for nanosleep.
56545         (LIB_NANOSLEEP): Set and AC_SUBST.
56546
56547 2000-05-06  Jim Meyering  <meyering@lucent.com>
56548
56549         * lib/strnlen.c: Undefine __strnlen and strnlen.
56550         [!weak_alias]: Define __strnlen to strnlen.
56551
56552         * lib/atexit.c: New file, from libiberty.
56553
56554 2000-05-06  Jim Meyering  <meyering@lucent.com>
56555
56556         * lib/closeout.c (close_stdout_status): Also check for errors on the
56557         stderr stream.
56558
56559 2000-05-05  Jim Meyering  <meyering@lucent.com>
56560
56561         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
56562         AC_SEARCH_LIBS call for clock_gettime.
56563         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
56564
56565         * m4/search-libs.m4: Update from autoconf.
56566
56567         su doesn't work on Solaris 2.6.
56568         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
56569         <shadow.h>.  Reported by Dragos Harabor.
56570
56571 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
56572
56573         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
56574         memcpy instead of xmalloc, xrealloc, path_concat.
56575         (locale_charset): Treat empty environment variables as absent.
56576         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
56577
56578 2000-05-04  Jim Meyering  <meyering@lucent.com>
56579
56580         * lib/getopt.c: Update from glibc.
56581         * lib/obstack.c: Likewise.
56582         * lib/obstack.h: Likewise.
56583         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
56584         file
56585
56586         * lib/regex.h: Likewise.
56587         * lib/strndup.c: Likewise.
56588         * lib/strnlen.c: New file, from glibc.
56589
56590 2000-05-03  Jim Meyering  <meyering@lucent.com>
56591
56592         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
56593
56594 2000-05-02  Paul Eggert  <eggert@twinsun.com>
56595
56596         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
56597         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
56598         compile-time test, rather than inspecting host and OS, to
56599         decide whether to define _LARGEFILE_SOURCE.
56600
56601 2000-05-01  Jim Meyering  <meyering@lucent.com>
56602
56603         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
56604
56605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
56606         Based on a patch from Bruno Haible.
56607
56608 2000-05-01  Jim Meyering  <meyering@lucent.com>
56609
56610         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
56611
56612 2000-04-29  Jim Meyering  <meyering@lucent.com>
56613
56614         * lib/path-concat.c: Declare strdup only if it's not defined.
56615         * lib/canon-host.c: Likewise.
56616
56617 2000-04-28  Jim Meyering  <meyering@lucent.com>
56618
56619         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
56620         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
56621         is included first, then limits.h is included by locale.h by libintl.h.
56622         From John David Anglin.
56623
56624 2000-04-25  Jim Meyering  <meyering@lucent.com>
56625
56626         * lib/makepath.c (S_IRWXUGO): Define.
56627         (make_path): Always perform explicit chmod if MODE specifies any
56628         of the `special' permission bits.  Prompted by a bug report against
56629         install from Mate Wierdl and Joost van Baal.
56630
56631 2000-04-18  Jim Meyering  <meyering@lucent.com>
56632
56633         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
56634         (jm_PREREQ): Use it.
56635
56636 2000-04-18  Jim Meyering  <meyering@lucent.com>
56637
56638         * lib/README: New file.
56639
56640         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
56641         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
56642
56643 2000-04-17  Jim Meyering  <meyering@lucent.com>
56644
56645         Get it right :-)
56646         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
56647         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
56648         Suggestion from Akim Demaille.
56649
56650 2000-04-17  Jim Meyering  <meyering@lucent.com>
56651
56652         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
56653         the definition of it to rpl_strftime also defined-away the system's
56654         declaration.
56655
56656 2000-04-15  Jim Meyering  <meyering@lucent.com>
56657
56658         Use `C' to denote so-called `contiguous' files, the same way
56659         that tar does.
56660         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
56661         (ftypelet): Use S_ISCTG.
56662         From Michael Deutschmann.
56663
56664 2000-04-14  Jim Meyering  <meyering@lucent.com>
56665
56666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
56667         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
56668         clobbered.
56669
56670 2000-04-14  Jim Meyering  <meyering@lucent.com>
56671
56672         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
56673
56674 2000-04-13  Jim Meyering  <meyering@lucent.com>
56675
56676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
56677         AH_VERBATIM to insert required #ifndef into config.h.in.
56678         Suggestion from Akim Demaille.
56679
56680 2000-04-12  Jim Meyering  <meyering@lucent.com>
56681
56682         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
56683         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
56684         Christian Krackowizer.
56685
56686         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
56687         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
56688         (AC_SYS_LARGEFILE): Require.
56689         (AM_C_PROTOTYPES): Require.
56690
56691 2000-04-08  Jim Meyering  <meyering@lucent.com>
56692
56693         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
56694         names don't conflict.  Reported by Eli Zaretskii.
56695
56696 2000-04-07  Jim Meyering  <meyering@lucent.com>
56697
56698         * lib/putenv.c: Move inclusion of errno.h so it follows that of
56699         sys/types.h, to work around system header problems on AIX 3.2.5.
56700         From Bruno Haible.
56701
56702 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
56703
56704         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
56705         bug.  Deal with the different error behavior of Irix iconv.
56706
56707 2000-04-05  Paul Eggert  <eggert@twinsun.com>
56708
56709         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
56710         IRIX if the installer said otherwise.
56711
56712 2000-04-05  Jim Meyering  <meyering@lucent.com>
56713
56714         Portability tweaks required for ultrix4.3.
56715         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
56716         (jm_CHECK_DECLS): Add getutent to the list of functions.
56717         (_jm_DECL_HEADERS): Add utmpx.h.
56718         From John David Anglin.
56719
56720         * m4/strftime.m4: Back out the 2000-04-02 change.
56721         Instead of that change, simply undefine putenv in the test program.
56722
56723 2000-04-05  Jim Meyering  <meyering@lucent.com>
56724
56725         Portability tweaks required for ultrix4.3.
56726         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
56727         getutent.
56728         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
56729         * lib/canon-host.c: Declare strdup.
56730         * lib/path-concat.c: Likewise.
56731         From John David Anglin.
56732
56733 2000-04-04  Jim Meyering  <meyering@lucent.com>
56734
56735         Be more DOS 8.3-friendly.
56736         * lib/ref-add.sin: Renamed from ref-add.sed.in.
56737         * lib/ref-del.sin: Renamed from ref-del.sed.in.
56738         * lib/Makefile.am: Reflect renaming.
56739         Reported by Eli Zaretskii.
56740
56741         Use a temporary file name that won't clash with `charset.alias'
56742         in the DOS 8.3 name space.
56743         * lib/Makefile.am (charset_tmp): Define.
56744         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
56745         (uninstall-local): Likewise.
56746         Reported by Eli Zaretskii.
56747
56748 2000-04-03  Jim Meyering  <meyering@lucent.com>
56749
56750         * m4/gettext.m4: Fix typo in comment.
56751
56752         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
56753         textutils/configure.in).  Suggestion from Paul Eggert.
56754         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
56755
56756 2000-04-02  Paul Eggert  <eggert@twinsun.com>
56757
56758         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
56759         variable in the shell rather than using putenv, which isn't
56760         portable.  This avoids the configure-time inter-test dependency
56761         on the potentially-renamed putenv function.
56762
56763 2000-03-30  Paul Eggert  <eggert@twinsun.com>
56764
56765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
56766         before checking struct stat.st_blksize, so that
56767         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
56768
56769 2000-03-29  Paul Eggert  <eggert@twinsun.com>
56770
56771         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
56772         since strftime.c uses HAVE_STRFTIME to decide whether to use
56773         the underlying strftime.
56774
56775 2000-03-29  Paul Eggert  <eggert@twinsun.com>
56776
56777         * lib/time/strftime.c (my_strftime): Make sure we call the system
56778         strftime, not ourselves, when invoking the underlying strftime.
56779
56780 2000-03-24  Jim Meyering  <meyering@lucent.com>
56781
56782         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
56783         (charset_alias): Define.
56784         (install-exec-local): Factor out common code.
56785         (uninstall-local): Split lines longer than 80.
56786         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
56787         (SUFFIXES): Define.
56788         (.sed.in.sed): New rule.  Don't redirect directly to $@.
56789         (CLEANFILES): Add ref-add.sed and ref-del.sed.
56790
56791 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
56792
56793         * lib/config.charset: Output a line containing "Packages using this
56794         file".
56795         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
56796         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
56797         ref-del.sed): New rules.
56798
56799 2000-03-17  Jim Meyering  <meyering@lucent.com>
56800
56801         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
56802         Otherwise, include <strings.h>
56803
56804 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
56805
56806         * lib/unicodeio.c (utf8_wctomb): New function.
56807         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
56808         format instead of in UCS-4 with platform dependent endianness.
56809
56810 2000-03-10  Jim Meyering  <meyering@lucent.com>
56811
56812         * m4/lib-check.m4: Look for getspnam in -lgen, too.
56813         From Marco Franzen.
56814
56815 2000-03-07  Paul Eggert  <eggert@twinsun.com>
56816
56817         * lib/savedir.c (savedir): Work even if directory size is
56818         negative; this can happen with some screwy NFS configurations.
56819
56820 2000-03-06  Jim Meyering  <meyering@lucent.com>
56821
56822         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
56823         if it's NULL (because we ran out of memory).  From Bruno Haible.
56824
56825 2000-03-05  Jim Meyering  <meyering@lucent.com>
56826
56827         * lib/localcharset.c ("path-concat.h"): Include.
56828         (get_charset_aliases): Use path_concat instead of ANSI string
56829         concatenation.
56830
56831         * lib/unicodeio.h (PARAMS): Define.
56832         Use it to guard prototype.
56833
56834 2000-03-04  Jim Meyering  <meyering@lucent.com>
56835
56836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
56837         for lib/localcharset.c.
56838
56839 2000-03-04  Jim Meyering  <meyering@lucent.com>
56840
56841         * lib/Makefile.am (install-exec-local): Create $(libdir) before
56842         installing into it.
56843         (uninstall-local): Uncomment this rule so `make distcheck' works
56844         once again.
56845
56846         * lib/unicodeio.c (<errno.h>): Include it.
56847         (errno): Declare if not defined.
56848
56849         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
56850
56851         * lib/config.charset: New version, incorporating remarks from a linux
56852         i18n mailing list.  From Bruno Haible.
56853
56854 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
56855
56856         * m4/codeset.m4: New file.
56857         * m4/iconv.m4: New file.
56858         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
56859
56860 2000-03-03  Jim Meyering  <meyering@lucent.com>
56861
56862         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
56863
56864 2000-03-02  Jim Meyering  <meyering@lucent.com>
56865
56866         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
56867         the messages come out on separate lines.
56868
56869         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
56870         rather than jm_CHECK_DECLARATIONS.
56871         * m4/decl.m4: Remove now-unused file.
56872
56873         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
56874         geteuid.
56875
56876 2000-03-02  Jim Meyering  <meyering@lucent.com>
56877
56878         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
56879
56880 2000-03-01  Jim Meyering  <meyering@lucent.com>
56881
56882         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
56883         * lib/unicodeio.c: Likewise.
56884
56885 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
56886
56887         * lib/config.charset: New file.
56888         * lib/localcharset.c: New file.
56889         * lib/unicodeio.h, lib/unicodeio.c: New files.
56890         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
56891         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
56892         (noinst_HEADERS): Add unicodeio.h.
56893         (all-local, install-exec-local, charset.alias): New targets.
56894
56895 2000-02-28  Paul Eggert  <eggert@twinsun.com>
56896
56897         * lib/quotearg.c (ALERT_CHAR): New macro.
56898         (quotearg_buffer_restyled): Use it.
56899
56900 2000-02-27  Jim Meyering  <meyering@lucent.com>
56901
56902         * m4/check-decl.m4: Add getenv to the list.
56903
56904 2000-02-27  Jim Meyering  <meyering@lucent.com>
56905
56906         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
56907         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
56908
56909         * lib/backupfile.c: Guard inclusion of stdlib.h with
56910         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
56911         Declare malloc if needed.
56912
56913         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
56914         `#ifndef HAVE_DECL..'
56915         now that autoconf always defines the HAVE_DECL_ symbols.
56916         * lib/human.c: Likewise.
56917         * lib/same.c: Likewise.
56918         * lib/strtoumax.c: Likewise.
56919
56920         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
56921         declaration check was not run.
56922         * lib/hash.c: Likewise.
56923         * lib/human.c: Likewise.
56924         * lib/same.c: Likewise.
56925         * lib/strtoumax.c: Likewise.
56926
56927         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
56928         `.', then first look up the entire `.'-containing string as a login
56929         name.
56930
56931 2000-02-23  Jim Meyering  <meyering@lucent.com>
56932
56933         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
56934         in place of my hack.
56935
56936 2000-02-18  Paul Eggert  <eggert@twinsun.com>
56937
56938         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
56939         (textint): New typedef.
56940         (parser_control): Member year changed from int to textint.
56941         All uses changed.
56942         (YYSTYPE): Removed; replaced by %union with int and textint members.
56943         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
56944         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
56945         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
56946         (tSNUMBER, tUNUMBER): Now of type <textintval>.
56947         (date, number, to_year): Use width of number in digits, not its value,
56948         to determine whether it's a 2-digit year, or a 2-digit time.
56949         (yylex): Store number of digits of numeric tokens.
56950         Reported by John Kendall.
56951
56952         (parser_control): Changed from struct parser_control to typedef (for
56953         consistency).  All uses changed.
56954
56955         (tID): Removed; not used.
56956         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
56957
56958 2000-02-14  Paul Eggert  <eggert@twinsun.com>
56959
56960         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
56961         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
56962
56963 2000-02-12  Jim Meyering  <meyering@lucent.com>
56964
56965         * lib/userspec.c (ISDIGIT): Define it.
56966         (isdigit): Remove definition.
56967         (is_number): Use ISDIGIT, not isdigit.
56968         <libintl.h>: Include.
56969         (_ and N_): Define.
56970         (parse_user_spec): Mark translatable strings.
56971
56972 2000-02-10  Jim Meyering  <meyering@lucent.com>
56973
56974         With these changes, nanosleep.[ch] are finally enough like the other
56975         lib/* replacement files to compile on a few more losing systems.
56976
56977         * lib/nanosleep.h: Don't include config.h.
56978         Remove prototype from declaration of nanosleep.
56979         (PARAMS): Remove now-unneeded definition.
56980         * lib/nanosleep.c: #undef nanosleep.
56981         (rpl_nanosleep): Rename from nanosleep.
56982
56983 2000-02-10  Jim Meyering  <meyering@lucent.com>
56984
56985         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
56986         gnu_nanosleep to rpl_nanosleep.
56987
56988 2000-02-09  Jim Meyering  <meyering@lucent.com>
56989
56990         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
56991         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
56992
56993 2000-02-08  Akim Demaille  <akim@epita.fr>
56994
56995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
56996         `[' and `]' and remove uses of `changequote'.
56997         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
56998         (AC_SYS_LARGEFILE): Likewise.
56999         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57000         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
57001         of changequote.
57002         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
57003         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
57004         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
57005         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
57006
57007 2000-02-05  Jim Meyering  <meyering@lucent.com>
57008
57009         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
57010         Remove explicit use of AC_HEADER_TIME.  It is required by
57011         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
57012         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
57013         in autoconf whereby the expansion of the latter ended up preceding
57014         the expansion of its prerequisite, AC_HEADER_TIME.
57015         Reported by Volker Borchert.
57016
57017 2000-02-03  Jim Meyering  <meyering@lucent.com>
57018
57019         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
57020
57021 2000-02-03  Jim Meyering  <meyering@lucent.com>
57022
57023         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
57024         rather than with `#if HAVE_UTMPNAME'.
57025
57026 2000-02-02  Jim Meyering  <meyering@lucent.com>
57027
57028         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
57029         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
57030         Reported by Eli Zaretskii.
57031
57032 2000-02-01  Jim Meyering  <meyering@lucent.com>
57033
57034         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
57035
57036 2000-01-31  Jim Meyering  <meyering@lucent.com>
57037
57038         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
57039         functions.  Add the time.h and sys/time.h headers along with the
57040         AC_REQUIRE'ment of AC_HEADER_TIME.
57041
57042 2000-01-31  Jim Meyering  <meyering@lucent.com>
57043
57044         * lib/nanosleep.h (nanosleep): Guard declaration with
57045         `#if ! HAVE_DECL_NANOSLEEP'.
57046         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
57047         the declaration in that vendor's sys/timers.h.
57048         Reported by Christian Krackowizer.
57049
57050         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
57051         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
57052         (ISPRINT): Likewise.
57053         Reported by Tom Tromey.
57054
57055 2000-01-30  Jim Meyering  <meyering@lucent.com>
57056
57057         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
57058
57059         * m4/prereq.m4 (utmp_includes): Define.
57060         Check for ut_user and ut_name members in both struct utmpx
57061         and struct utmp.
57062
57063 2000-01-30  Jim Meyering  <meyering@lucent.com>
57064
57065         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
57066         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
57067         header files where only utmpx.ut_user is declared.
57068
57069         * lib/readutmp.h (UT_USER): Define.
57070
57071 2000-01-29  Jim Meyering  <meyering@lucent.com>
57072
57073         * m4/lib-check.m4: New file containing library-related checks from
57074         fileutils and sh-utils (textutils had none).
57075
57076 2000-01-28  Jim Meyering  <meyering@lucent.com>
57077
57078         * m4/perl.m4: Change format of warning message to look more like that
57079         from the missing script.  Suggestion from François Pinard.
57080
57081 2000-01-25  Jim Meyering  <meyering@lucent.com>
57082
57083         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
57084         well as time.h in the compile check.
57085         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
57086         Fix typo in cross-compiling case: s/yes/no/.
57087
57088 2000-01-23  Jim Meyering  <meyering@lucent.com>
57089
57090         * m4/jm-macros.m4: Move df-related tests here from
57091         fileutils/configure.in
57092
57093         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
57094         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
57095
57096         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
57097         s/space/ac_fsusage_space/.
57098         (jm_FILE_SYSTEM_USAGE): Take two parameters.
57099
57100         * m4/ftruncate.m4: New file (derived from part of
57101         fileutils/configure.in).
57102         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
57103         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
57104
57105         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
57106         AC_SUBST these here, rather than just in sh-util/configure.in, so
57107         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
57108         all the same.
57109         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
57110         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
57111         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
57112         (AC_SUBST(POW_LIBM)): Likewise.
57113         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
57114
57115 2000-01-23  Jim Meyering  <meyering@lucent.com>
57116
57117         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
57118         obstack.c.
57119
57120 2000-01-22  Jim Meyering  <meyering@lucent.com>
57121
57122         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
57123
57124         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
57125
57126         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
57127         configure.in
57128         (AC_CHECK_HEADERS): Likewise for sh-utils.
57129         (AC_CHECK_HEADERS): Likewise for textutils.
57130         Merge the three lists of headers.
57131
57132         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
57133         from fileutils' configure.in.
57134
57135         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
57136         code. Moved tests into their own function (_jm_DECL_HEADERS) in
57137         check-decl.m4.
57138
57139         * m4/check-decl.m4: Use #if rather than #ifdef.
57140         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
57141         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
57142         (_jm_DECL_HEADERS): Define new function.
57143         (jm_CHECK_DECLARATIONS): Require it.
57144
57145 2000-01-22  Jim Meyering  <meyering@lucent.com>
57146
57147         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
57148         [! HAVE_DECL_STRTOULL]: Declare strtoull.
57149         Required for some AIX systems.  Reported by Christian Krackowizer.
57150         [TESTING] (main): New function.
57151
57152         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
57153         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
57154         letters.
57155
57156         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
57157         iswprint.
57158
57159         * lib/strverscmp.c (ISDIGIT): Define.
57160         (strverscmp): Use ISDIGIT, not isdigit.
57161
57162 2000-01-19  Jim Meyering  <meyering@lucent.com>
57163
57164         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
57165         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
57166         defines `struct timespec' in <sys/time.h>
57167
57168         * m4/c-bs-a.m4: Remove uses of changequote altogether.
57169         Thanks to Akim for explaining.
57170
57171 2000-01-17  Paul Eggert  <eggert@twinsun.com>
57172
57173         * lib/nanosleep.c (nanosleep):
57174         Don't use SA_INTERRUPT to decide whether to call sigaction, as
57175         POSIX.1 doesn't require SA_INTERRUPT and some systems
57176         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
57177         it's been part of POSIX.1 since day 1 (in 1988).
57178
57179 2000-01-17  Jim Meyering  <meyering@lucent.com>
57180
57181         * lib/interlock: Remove unused file.  Reported by François Pinard.
57182
57183 2000-01-16  Paul Eggert  <eggert@twinsun.com>
57184
57185         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
57186         alert, backslash, formfeed, and vertical tab unnecessarily in
57187         shell quoting style.
57188
57189 2000-01-16  Jim Meyering  <meyering@lucent.com>
57190
57191         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
57192         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
57193         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
57194         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
57195
57196 2000-01-16  Jim Meyering  <meyering@lucent.com>
57197
57198         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
57199         because the latter didn't work.
57200
57201 2000-01-15  Jim Meyering  <meyering@lucent.com>
57202
57203         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
57204         (AC_REPLACE_FUNCS): Add memcpy and memset.
57205         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
57206         Add strpbrk.
57207         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
57208
57209 2000-01-12  Jim Meyering  <meyering@lucent.com>
57210
57211         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
57212         (jm_PREREQ): Use it.
57213         (jm_PREREQ_READUTMP): New macro.
57214         (jm_PREREQ): Use it.
57215
57216 2000-01-11  Paul Eggert  <eggert@twinsun.com>
57217
57218         Quote multibyte characters correctly.
57219         * m4/c-bs-a.m4: New file.
57220         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
57221         (jm_PREREQ): Use it.
57222
57223 2000-01-11  Paul Eggert  <eggert@twinsun.com>
57224
57225         * m4/uintmax_t.m4: Port to autoconf 2.13.
57226
57227 2000-01-08  Jim Meyering  <meyering@ascend.com>
57228
57229         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
57230         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
57231
57232 2000-01-04  Jim Meyering  <meyering@ascend.com>
57233
57234         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
57235         jm_STRUCT_DIRENT_D_TYPE.
57236         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
57237         jm_STRUCT_DIRENT_D_INO.
57238         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
57239         jm_STRUCT_UTIMBUF.
57240         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
57241         renamings.
57242         * m4/utime.m4: Likewise.
57243
57244         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
57245         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
57246
57247 2000-01-03  Paul Eggert  <eggert@twinsun.com>
57248
57249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
57250         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
57251
57252 2000-01-02  Jim Meyering  <meyering@ascend.com>
57253
57254         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
57255         remember if this is necessary.
57256
57257 1999-12-26  Jim Meyering  <meyering@ascend.com>
57258
57259         * m4/jm-macros.m4: Use it here.
57260         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
57261
57262 1999-12-23  Jim Meyering  <meyering@ascend.com>
57263
57264         * m4/jm-macros.m4: Check for clock_gettime (moved from
57265         fileutils/configure.in)
57266         Check for gettimeofday.
57267
57268 1999-12-20  Jim Meyering  <meyering@ascend.com>
57269
57270         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
57271         autoconf-2.14a-1999-12-20.
57272
57273 1999-12-19  Jim Meyering  <meyering@ascend.com>
57274
57275         * m4/lstat-slash.m4: New file.
57276         * m4/jm-macros.m4: Use the new macro:
57277         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57278
57279 1999-12-07  Jim Meyering  <meyering@ascend.com>
57280
57281         * m4/perl.m4: Require that File::Compare be available, too.
57282         Too many systems seem to lack it.
57283
57284         * m4/strftime.m4: Add checks for most of the cpp macros tested in
57285         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
57286
57287 1999-11-18  Paul Eggert  <eggert@twinsun.com>
57288
57289         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
57290         problem with the QNX 4.25 shell, which doesn't propagate exit
57291         status of failed commands inside shell assignments.
57292
57293 1999-11-17  Jim Meyering  <meyering@ascend.com>
57294
57295         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
57296
57297 1999-11-07  Jim Meyering  <meyering@ascend.com>
57298
57299         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
57300
57301 1999-11-06  Jim Meyering  <meyering@ascend.com>
57302
57303         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
57304         * m4/jm-macros.m4 (jm_MACROS): Use it here.
57305
57306 1999-11-05  Jim Meyering  <meyering@ascend.com>
57307
57308         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
57309         configure.in of textutils, fileutils, and sh-utils into this one
57310         (shared between those packages) file.
57311         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
57312         AC_STRUCT_ST_BLKSIZE.
57313
57314 1999-11-03  Jim Meyering  <meyering@ascend.com>
57315
57316         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
57317         of AC_CHECK_TYPE checks includes unistd.h.
57318         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
57319         Suggestion from Akim Demaille.
57320
57321 1999-10-30  Jim Meyering  <meyering@ascend.com>
57322
57323         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
57324         m4-quoted string.
57325         * m4/ls-mntd-fs.m4: Likewise.
57326         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
57327         * m4/jm-winsz1.m4: Likewise.
57328
57329         * m4/const.m4: Remove file, since the fix made it into the experimental
57330         version of autoconf.
57331         * m4/mktime.m4: Likewise.
57332
57333         * m4/check-type.m4: Remove file, now that the latest version of
57334         AC_CHECK_TYPE takes a third arg to specify additional #includes.
57335
57336         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
57337         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
57338         AC_CHECK_TYPE.
57339
57340 1999-10-04  Jim Meyering  <meyering@ascend.com>
57341
57342         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
57343
57344 1999-09-22  Paul Eggert  <eggert@twinsun.com>
57345
57346         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
57347         2.95.1 bug with HP-UX 10.20.
57348
57349 1999-09-17  Jim Meyering  <meyering@ascend.com>
57350
57351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
57352         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
57353         due to missing strdup (against sh-utils-2.0).
57354
57355 1999-08-29  Jim Meyering  <meyering@ascend.com>
57356
57357         * m4/jm-macros.m4: Require jm_BISON.
57358         * m4/bison.m4: New file.
57359
57360 1999-08-17  Paul Eggert  <eggert@twinsun.com>
57361
57362         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
57363         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
57364
57365 1999-08-05  Jim Meyering  <meyering@ascend.com>
57366
57367         * m4/getline.m4: Rename test file from conftestdata to conftest.data
57368         to avoid conflicts with `conftest' on 8+3 filesystems.
57369         Suggestion from Eli Zaretskii.
57370
57371 1999-08-04  Jim Meyering  <meyering@ascend.com>
57372
57373         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
57374         fileutils and sh-utils (textutils's getline test was inadequate).
57375         (AM_FUNC_GETLINE): Run this test.
57376         (AC_CHECK_FUNCS): Check for getdelim.
57377         Reported by Bob Proulx.
57378
57379 1999-08-02  Jim Meyering  <meyering@ascend.com>
57380
57381         * m4/jm-macros.m4: Add a comment.
57382
57383 1999-08-01  Paul Eggert  <eggert@twinsun.com>
57384
57385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
57386         <inttypes.h> defines strtoumax as a macro (and not as a
57387         function).
57388
57389 1999-08-01  Paul Eggert  <eggert@twinsun.com>
57390
57391         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
57392         that we can shift, multiply and divide unsigned long long
57393         values; Ultrix cc can't do it.
57394
57395 1999-08-01  Paul Eggert  <eggert@twinsun.com>
57396
57397         * m4/mktime.m4: New file, which is a preview of what should appear
57398         in the next public autoconf release.
57399
57400 1999-08-01  Paul Eggert  <eggert@twinsun.com>
57401
57402         * m4/lfs.m4: Remove this file.
57403         * m4/largefile.m4: New file.  It contains the old contents of
57404         lfs.m4, except that all names with prefix AC_LFS have been
57405         changed to use the prefix AC_SYS_LARGEFILE instead, to be
57406         compatible with future autoconf versions.  Also, some minor m4
57407         quoting problems have been fixed.
57408
57409 1999-08-01  Paul Eggert  <eggert@twinsun.com>
57410
57411         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
57412         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
57413         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
57414         and simplify the shell code.
57415
57416 1999-08-01  Jim Meyering  <meyering@ascend.com>
57417
57418         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
57419         m4.
57420
57421 1999-07-20  Jim Meyering  <meyering@ascend.com>
57422
57423         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
57424
57425 1999-07-15  Jim Meyering  <meyering@ascend.com>
57426
57427         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
57428
57429 1999-05-22  Jim Meyering  <meyering@ascend.com>
57430
57431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
57432
57433 1999-05-20  Jim Meyering  <meyering@ascend.com>
57434
57435         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
57436         Add a colon after each `then' in case $4 is empty.
57437
57438 1999-05-16  Jim Meyering  <meyering@ascend.com>
57439
57440         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
57441
57442 1999-05-10  Jim Meyering  <meyering@ascend.com>
57443
57444         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
57445
57446         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
57447         AC_FUNC_MKTIME.
57448
57449 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
57450
57451         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
57452
57453 1999-05-04  Paul Eggert  <eggert@twinsun.com>
57454
57455         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
57456         not CPPFLAGS, so that linking works correctly in IRIX.
57457
57458 1999-04-30  Paul Eggert  <eggert@twinsun.com>
57459
57460         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
57461
57462 1999-04-20  Paul Eggert  <eggert@twinsun.com>
57463
57464         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
57465         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
57466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
57467         jm_AC_TYPE_UNSIGNED_LONG_LONG.
57468         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
57469
57470         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
57471
57472 1999-04-20  Jim Meyering  <meyering@ascend.com>
57473
57474         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
57475         AC_REPLACE xstroull if necessary.  From Paul Eggert.
57476         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
57477
57478 1999-04-18  Jim Meyering  <meyering@ascend.com>
57479
57480         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
57481         * m4/jm-macros.m4: Use it.
57482
57483 1999-04-06  Jim Meyering  <meyering@ascend.com>
57484
57485         * m4/strftime.m4: Remove test for %f.
57486
57487 1999-03-29  Jim Meyering  <meyering@ascend.com>
57488
57489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
57490         superset of the AC_TYPE_* checks in the textutils, fileutils,
57491         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
57492         AC_TYPE_PID_T.
57493
57494 1999-03-28  Jim Meyering  <meyering@ascend.com>
57495
57496         * m4/jm-macros.m4: Define GNU_PACKAGE here.
57497         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
57498         replaced e.g., in the *.sh files of the sh-utils.
57499
57500 1999-03-20  Jim Meyering  <meyering@ascend.com>
57501
57502         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
57503         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
57504         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
57505
57506 1999-03-19  Jim Meyering  <meyering@ascend.com>
57507
57508         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
57509
57510 1999-03-12  Jim Meyering  <meyering@ascend.com>
57511
57512         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
57513
57514 1999-03-07  Jim Meyering  <meyering@ascend.com>
57515
57516         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
57517         declared.
57518
57519 1999-02-17  Jim Meyering  <meyering@ascend.com>
57520
57521         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
57522         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
57523
57524 1999-02-07  Jim Meyering  <meyering@ascend.com>
57525
57526         * m4/group-member.m4: New file -- extracted from sh-utils'
57527         configure.in.
57528
57529         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
57530         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
57531
57532 1999-02-06  Jim Meyering  <meyering@ascend.com>
57533
57534         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
57535         * m4/fnmatch.m4: Likewise.
57536         * m4/getgroups.m4: Likewise.
57537         * m4/lstat.m4: Likewise.
57538         * m4/malloc.m4: Likewise.
57539         * m4/putenv.m4: Likewise.
57540         * m4/realloc.m4: Likewise.
57541         * m4/regex.m4: Likewise.
57542         * m4/stat.m4: Likewise.
57543         * m4/strftime.m4: Likewise.
57544         Suggestion from Alain Magloire.
57545
57546         * m4/chown.m4: Use `.$ac_objext', not `.o'.
57547         * m4/fnmatch.m4: Likewise.
57548         * m4/getgroups.m4: Likewise.
57549         * m4/getline.m4: Likewise.
57550         * m4/lstat.m4: Likewise.
57551         * m4/malloc.m4: Likewise.
57552         * m4/memcmp.m4: Likewise.
57553         * m4/putenv.m4: Likewise.
57554         * m4/realloc.m4: Likewise.
57555         * m4/regex.m4: Likewise.
57556         * m4/stat.m4: Likewise.
57557         * m4/strftime.m4: Likewise.
57558         Suggestion from Alain Magloire.
57559
57560         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
57561         an argument.
57562
57563         * m4/regex.m4: Add a run-time Test for proper operation of
57564         re_compile_pattern.
57565
57566 1999-01-31  Jim Meyering  <meyering@ascend.com>
57567
57568         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
57569
57570 1999-01-30  Jim Meyering  <meyering@ascend.com>
57571
57572         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
57573
57574         * m4/jm-mktime.m4: Make this a wrapper around the official
57575         AM_FUNC_MKTIME rather than my private copy, now that the official one
57576         is up to date.
57577         * m4/mktime.m4: Remove file.
57578
57579         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
57580         * m4/uptime.m4: Likewise.
57581         * m4/uintmax_t.m4: Likewise.
57582
57583 1999-01-28  Jim Meyering  <meyering@ascend.com>
57584
57585         * m4/jm-macros.m4: Use jm_AFS.
57586         * m4/afs.m4: New file (from fileutils' configure.in).
57587
57588         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
57589         * m4/chown.m4: Likewise.
57590         * m4/d-ino.m4: Likewise.
57591         * m4/d-type.m4: Likewise.
57592         * m4/fnmatch.m4: Likewise.
57593         * m4/getgroups.m4: Likewise.
57594         * m4/gettext.m4: Likewise.
57595         * m4/jm-mktime.m4: Likewise.
57596         * m4/jm-winsz2.m4: Likewise.
57597         * m4/lcmessage.m4: Likewise.
57598         * m4/ls-mntd-fs.m4: Likewise.
57599         * m4/malloc.m4: Likewise.
57600         * m4/memcmp.m4: Likewise.
57601         * m4/putenv.m4: Likewise.
57602         * m4/realloc.m4: Likewise.
57603         * m4/st_mtim.m4: Likewise.
57604         * m4/strftime.m4: Likewise.
57605
57606 1999-01-16  Jim Meyering  <meyering@ascend.com>
57607
57608         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
57609         (ARGMATCH_DIE_DECL): Define.
57610
57611 1999-01-12  Jim Meyering  <meyering@ascend.com>
57612
57613         * m4/Makefile.am.in: Rewrite to avoid using fmt.
57614         Reported by Lars Hecking.
57615
57616 1999-01-10  Jim Meyering  <meyering@ascend.com>
57617
57618         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
57619         gross kludge.
57620         * m4/inttypes_h.m4: Likewise.
57621         * m4/lstat.m4: Likewise.
57622         * m4/malloc.m4: Likewise.
57623         * m4/readdir.m4: Likewise.
57624         * m4/realloc.m4: Likewise.
57625         * m4/st_dm_mode.m4: Likewise.
57626         * m4/stat.m4: Likewise.
57627         * m4/utimbuf.m4: Likewise.
57628         * m4/utimes.m4: Likewise.
57629
57630         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
57631         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
57632         comments in config.h.in are meaningful.
57633
57634         * m4/jm-macros.m4: Require autoconf-2.13 here.
57635
57636         * m4/regex.m4: By default, don't use the included regex.c on systems
57637         with glibc 2.  Suggestion from Uli Drepper.
57638
57639 1999-01-02  Jim Meyering  <meyering@ascend.com>
57640
57641         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
57642
57643 1998-12-18  Jim Meyering  <meyering@ascend.com>
57644
57645         * m4/Makefile.am.in (Makefile.am): Simplify rule.
57646         Based on a suggestion from Lars Hecking.
57647
57648 1998-11-16  Paul Eggert  <eggert@twinsun.com>
57649
57650         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
57651
57652 1998-11-16  Jim Meyering  <meyering@ascend.com>
57653
57654         * m4/lfs.m4: Double-quote the `uname...` expression.
57655
57656 1998-11-14  Jim Meyering  <meyering@ascend.com>
57657
57658         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
57659         * m4/stat.m4: Likewise.
57660
57661 1998-11-03  Jim Meyering  <meyering@ascend.com>
57662
57663         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
57664         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
57665
57666 1998-10-18  Jim Meyering  <meyering@ascend.com>
57667
57668         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
57669
57670 1998-10-17  Jim Meyering  <meyering@ascend.com>
57671
57672         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
57673         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
57674         calls for those previously hard-coded headers.  Instead, take a new
57675         parameter.
57676         (jm_CHECK_DECLARATIONS): Reflect interface change.
57677         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
57678         (jm_CHECK_DECL_LOCALTIME_R): New macro.
57679
57680         * m4/mktime.m4: Test for spring-forward gap before long-running test.
57681
57682 1998-10-14  Jim Meyering  <meyering@ascend.com>
57683
57684         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
57685         instead of "TZ=America/Vancouver".  From Paul Eggert.
57686
57687 1998-10-11  Jim Meyering  <meyering@ascend.com>
57688
57689         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
57690         This adds a test for a recently added compatibility fix for mktime.c.
57691         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
57692
57693 1998-09-27  Jim Meyering  <meyering@ascend.com>
57694
57695         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
57696
57697         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
57698         ../configure.in, including a change from Gordon Matzigkeit to allow
57699         cross-compiling for the Hurd.
57700
57701         * m4/glibc.m4: New file/macro to test for the GNU C Library
57702         versions 1 and 2.  From Gordon Matzigkeit.
57703         Indent.
57704
57705 1998-09-21  Jim Meyering  <meyering@ascend.com>
57706
57707         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
57708
57709 1998-08-18  Paul Eggert  <eggert@twinsun.com>
57710
57711         Port nanosecond-resolution times to UnixWare 2.1.2 and
57712         pedantic Solaris 2.6.
57713
57714         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
57715         AC_STRUCT_ST_MTIM.
57716         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
57717         Generate name of ns member, instead of just 1 or undef.
57718         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
57719
57720 1998-08-15  Jim Meyering  <meyering@ascend.com>
57721
57722         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
57723         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
57724         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
57725         instead of jm_TYPE_SSIZE_T.
57726
57727 1998-08-12  Jim Meyering  <meyering@ascend.com>
57728
57729         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
57730
57731 1998-08-02  Jim Meyering  <meyering@ascend.com>
57732
57733         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
57734         in acconfig.h manually.
57735
57736 1998-07-31  Paul Eggert  <eggert@twinsun.com>
57737
57738         * m4/st_mtim.m4: New file.
57739
57740 1998-07-28  Jim Meyering  <meyering@ascend.com>
57741
57742         * m4/utimes.m4: Undef stat.
57743
57744 1998-07-25  Jim Meyering  <meyering@ascend.com>
57745
57746         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
57747         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
57748
57749 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
57750
57751         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
57752         uid and gid actually remain unchanged.
57753
57754 1998-07-07  Jim Meyering  <meyering@ascend.com>
57755
57756         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
57757
57758 1998-07-04  Jim Meyering  <meyering@ascend.com>
57759
57760         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
57761         to prove that this macro can be used in packages without regex.c.
57762
57763 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
57764
57765         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
57766         is to be used.
57767
57768 1998-07-03  Jim Meyering  <meyering@ascend.com>
57769
57770         * m4/gettext.m4: Add -lintl if it's found to be necessary.
57771
57772         * m4/gettext.m4: New file -- from gettext-0.10.35.
57773         * m4/lcmessage.m4: Likewise.
57774         * m4/progtest.m4: Likewise.
57775
57776         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
57777         * m4/jm-macros.m4: Require the new macro.
57778
57779 1998-06-29  Jim Meyering  <meyering@ascend.com>
57780
57781         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
57782         for the definition of NGROUPS (used in a system header included
57783         by sys/mount.h).
57784
57785 1998-06-28  Jim Meyering  <meyering@ascend.com>
57786
57787         * m4/ls-mntd-fs.m4: New file.
57788         * m4/fstypename.m4: New file.
57789
57790         * m4/jm-macros.m4: Require the new macro.
57791         * m4/jm-glibc-io.m4: New file.
57792
57793 1998-05-19  Jim Meyering  <meyering@ascend.com>
57794
57795         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
57796         * m4/lchown.m4: New file.
57797
57798         * m4/Makefile.am.in: New file.
57799         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
57800
57801 1998-05-14  Jim Meyering  <meyering@ascend.com>
57802
57803         * m4/Makefile.am (EXTRA_DIST): Add them.
57804         * m4/jm-macros.m4: New file.
57805         * m4/utimbuf.m4: New file.
57806
57807 1998-05-12  Jim Meyering  <meyering@ascend.com>
57808
57809         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
57810
57811 1998-05-11  Jim Meyering  <meyering@ascend.com>
57812
57813         * m4/isc-posix.m4: New file.
57814
57815 1998-05-10  Jim Meyering  <meyering@ascend.com>
57816
57817         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
57818
57819 1998-05-09  Jim Meyering  <meyering@ascend.com>
57820
57821         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
57822         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
57823         with automake.
57824
57825         * m4/ssize_t.m4: New file.
57826         * m4/mktime.m4: Remove file -- the new automake has this now.
57827
57828 1998-04-26  Jim Meyering  <meyering@ascend.com>
57829
57830         * m4/assert.m4: New file.
57831         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
57832
57833 1998-04-05  Jim Meyering  <meyering@ascend.com>
57834
57835         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
57836         (jm_PREREQ): Use it here.
57837
57838 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
57839
57840         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
57841         in acconfig.h.
57842
57843 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
57844
57845         * m4/prereq.m4: New file.
57846         * m4/error.m4: New file.
57847         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
57848
57849 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
57850
57851         * m4/getline.m4: Don't set am_cv_func_working_getline before the
57852         cache-check for the same variable -- that defeated the purpose of
57853         the test; the test program was never run.  This was a problem only
57854         on systems with losing getline functions -- HP-UX 10.20 is one.
57855         Reported by Bjorn Helgaas.
57856
57857 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
57858
57859         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
57860
57861 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
57862
57863         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
57864
57865         * m4/const.m4: New file.  Use an initializer in this declaration
57866         typedef int charset[2]; const charset x;
57867         Reported by Bob Glickstein.
57868
57869 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
57870
57871         * m4/chown.m4: Fix reversed types on -1 args to chown.
57872         From Kaveh Ghazi.
57873
57874 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
57875
57876         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
57877         Add lseek and memchr.
57878
57879         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
57880         T.E.Dickey <dickey@clark.net> said that some older preprocessors
57881         have a 20-character limit on names.
57882
57883 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
57884
57885         * m4/inttypes_h.m4: New file.
57886         * m4/uintmax_t.m4: New file.
57887         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
57888
57889
57890         -----
57891
57892         Local Variables:
57893         coding: utf-8
57894         End:
57895
57896         Copyright (C) 1997-2009 Free Software Foundation, Inc.
57897
57898         Copying and distribution of this file, with or without
57899         modification, are permitted provided the copyright notice
57900         and this notice are preserved.