imaxdiv: Avoid link error on OSF/1 with DTK cc.
[gnulib.git] / ChangeLog
1 2011-09-01  Bruno Haible  <bruno@clisp.org>
2
3         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5         as a function.
6         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7         whether it is declared.
8
9 2011-09-01  Bruno Haible  <bruno@clisp.org>
10
11         imaxabs: Avoid link error on OSF/1 with DTK cc.
12         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13         as a function.
14         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15         whether it is declared.
16
17 2011-09-01  Bruno Haible  <bruno@clisp.org>
18
19         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
20         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
21         pthread_create.
22
23 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24
25         openat: work around AIX 7.1 fstatat issue
26         This should fix the problem that was not properly fixed
27         in the previous change, dated 2011-08-30.
28         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
29         __need_system_stat_h defined.
30         (orig_fstatat) [HAVE_FSTATAT]: New function.
31         (rpl_fstatat): Go back to the old way of doing things,
32         except call orig_fstatat instead of fstatat.
33         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
34         Remove unnecessary check whether fstatat fills in st_size etc.
35
36 2011-09-01  Bruno Haible  <bruno@clisp.org>
37
38         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
39         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
40         just include the system's header.
41
42 2011-08-31  Jim Meyering  <meyering@redhat.com>
43
44         tests: avoid spurious assertion failure in test-float.c on ppc64
45         * tests/test-float.c (test_long_double): Comment out an assertion,
46         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
47         with gcc-4.4.4.
48
49 2011-08-31  Bruno Haible  <bruno@clisp.org>
50
51         freopen: Documentation.
52         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
53         name.
54         Reported by Claudio Bley <claudio.bley@gmail.com>.
55
56 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
57
58         freopen: Don't crash if the filename argument is NULL.
59         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
60         NULL.
61
62 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
63
64         openat: work around AIX 7.1 fstatat bug
65         Problem reported by Kevin Brott for GNU tar, in the thread containing
66         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
67         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
68         FSTATAT_ST_SIZE_ETC_BROKEN.
69         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
70         rpl_fstatat.
71         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
72         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
73         AC_CHECK_FUNCS_ONCE for fstatat.
74         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
75         fchmodat, mkdirat, openat and unlinkat.
76
77 2011-08-30  Bruno Haible  <bruno@clisp.org>
78
79         Avoid endless recursions if config.h includes some header files.
80         * lib/fopen.c (__need_FILE): Define already before including config.h.
81         * lib/freopen.c (__need_FILE): Likewise.
82         * lib/open.c (__need_system_fcntl_h): Likewise.
83         * lib/stat.c (__need_system_sys_stat_h): Likewise.
84         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
85         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
86
87 2011-08-25  Karl Berry  <karl@gnu.org>
88
89         * config/srclist.txt (ylwrap): new try.
90         * build-aux/ylwrap: new file.
91
92 2011-08-23  Bruno Haible  <bruno@clisp.org>
93
94         tmpdir: Use a good default directory on native Windows.
95         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
96         (P_tmpdir): Default to _P_tmpdir on native Windows.
97         (path_search): On native Windows, try the value returned by GetTempPath
98         before trying P_tmpdir.
99         * modules/tmpdir (Depends-on): Add pathmax.
100         Suggested by John Darrington <john@darrington.wattle.id.au>.
101
102 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
103
104         doc: fix typo in README-release
105         * top/README-release: Capitalize first word of a sentence.
106
107 2011-08-19  Jim Meyering  <meyering@redhat.com>
108
109         fts: do not exhaust memory when processing million-entry directories
110         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
111         directory would require about 256*N bytes of memory.  Thus, it was
112         easy to construct a directory too large to be processed by any of
113         those tools.  With this change, fts' maximum memory utilization is
114         now limited to around 30MB.
115         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
116         (fts_read): When we've processed the final entry (i.e., when
117         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
118         using the parent entry to read any remaining entries.  Dispatch
119         depending on what fts_build returns:
120         - NULL+stop, aka failure: stop
121         - NULL otherwise: move up in the dir hierarchy
122         - non-NULL: handle this new entry
123         (fts_build): Declare and use new local, continue_readdir.
124         Prepare to be called from fts_read, when the entries
125         from a partially-read directory have just been exhausted.
126         In that case, we'll skip the opendir and instead use the parent's
127         fts_dirp and derive dir_fd from that.
128         Finally, in the readdir loop, if we read max_entries entries,
129         exit the loop ensuring *not* to call closedir.  This is required
130         so that fts_dirp can be reused on a subsequent call.
131         Prompted by Ben England's report of memory exhaustion in find
132         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
133
134         maint: fts: move decl of `dp' down into while loop; split a long line
135         * lib/fts.c (fts_build): No semantic change.
136
137         fts: add/use new struct member, fts_dirp
138         We are about to use this to manage any directory with
139         too many entries to read all of them into memory at once.
140         To do that, we'll need to save the DIR* pointer in each
141         affected FTSENT struct.
142         * lib/fts_.h: Include <dirent.h>.
143         (struct FTSENT) [fts_dirp]: New member.
144         * lib/fts.c (closedir_and_clear): Define.
145         Use it in place of closedir so that we are sure to
146         clear the new fts_dirp member when done with it.
147         (fts_alloc): Initialize the new member.
148         (fts_lfree): Free, if needed.
149
150         maint: fts: give __opendir2 a new parameter and rename
151         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
152         than surreptitiously using sole caller's "dir_fd".
153         (fts_opendir): Rename from __opendir2.
154
155         maint: fts.c: remove __opendir2's now-unused parameter, oflag
156         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
157
158         maint: fts.c: correct off-by-one indentation
159         * lib/fts.c (fts_build): Correct indentation, change style
160         of a couple of block comments, and bracing style.
161
162         maint: fts.c: move __opendir2 #define "up" out of function body
163         * lib/fts.c (__opendir2): Move "up".  No semantic change.
164
165         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
166         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
167         out for a long time and besides was useful only on BSD systems.
168
169 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
170
171         regex: port to Stratus OpenVOS
172         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
173         define to empty, rather than attempting nonportable optimizations.
174         Problem reported by Paul Green in:
175         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
176         and fix suggested by Eric Blake in:
177         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
178
179 2011-08-17  Eric Blake  <eblake@redhat.com>
180
181         getcwd: fix test failures on mingw
182         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
183         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
184         test if long directory cannot be created, and allow mingw errno.
185
186         getcwd-lgpl: fix m4 to match relaxed test for BSD
187         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
188         (gl_FUNC_GETCWD_SIGNATURE): New macro.
189         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
190         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
191         signature problem.
192
193         getcwd: fix compilation on mingw64
194         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
195         getcwd.
196         Reported by Marc-AndrĂ© Lureau.
197
198         pipe2: silence compiler warning
199         * lib/pipe2.c (pipe2): Hide label if it is not used.
200
201 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
202
203         relocatable-prog: fix link error
204         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
205         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
206         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
207         into modules/relocatable-lib without noticing that
208         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
209         also needs to build relocatable.c.
210
211 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
212
213         getaddrinfo: fix sh typo in gai_strerrorA decl checking
214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
215         shell code: it contained a 'break' that was not in a loop.
216         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
217         via a shell-language loop; this may have been true in old Autoconf
218         versions, but it's not true in Autoconf 2.68.  I found this bug
219         when testing coreutils git on Solaris 8, whose shell complains
220         about the syntax error.
221
222 2011-08-12  Simon Josefsson  <simon@josefsson.org>
223
224         * lib/base64.c: Fix comment to reference RFC 4648.
225         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
226         <gvtulder@gmail.com>.
227
228 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
229
230         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
231
232         po/Makefile.in.in: fix make -q problem
233         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
234         rule, since there's no file named 'check-macro-version' and its
235         use as a file breaks make -q.
236         (all): Don't depend on check-macro-version.
237         (CHECK_MACRO_VERSION): New macro.
238         (stamp-po): Use it.
239
240         configmake: fix make -q problem
241         * modules/configmake (configmake.h): Update configmake.h's time stamp
242         even if the file does not change.  Otherwise, 'make -q' fails.
243         Problem reported by Simon Josefsson in
244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
245
246 2011-08-11  Jim Meyering  <meyering@redhat.com>
247
248         git-version-gen: correct the advice in a comment
249         * build-aux/git-version-gen: Correct comment.
250         Don't recommend to list .tarball-version in .gitignore.
251
252 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
253
254         base64: fix off-by-one buffer size bug
255         Problem and (trivial) fix reported by Gijs van Tulder in
256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
257         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
258         * tests/test-base64.c (main): Catch the bug.
259
260 2011-08-10  Eric Blake  <eblake@redhat.com>
261
262         closein: correct comments
263         * lib/closein.c (close_stdin): Improve comments.
264
265 2011-08-09  Bruno Haible  <bruno@clisp.org>
266
267         More tests for 'fseeko'.
268         * tests/test-fseeko3.c: New file, from Eric Blake.
269         * tests/test-fseeko3.sh: New file.
270         * modules/fseeko-tests (Files): Add them.
271         (TESTS): Add test-fseeko3.sh.
272         (check_PROGRAMS): Add test-fseeko3.
273
274 2011-08-09  Eric Blake  <eblake@redhat.com>
275
276         fseeko: remove unneeded hack
277         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
278
279         fseeko: fix bug on glibc
280         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
281         Reported by John W. Eaton.
282
283 2011-08-08  Bruno Haible  <bruno@clisp.org>
284
285         unictype/base: Fix interoperability with preinstalled libunistring.
286         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
287         Reported by Simon Josefsson.
288
289 2011-08-08  Bruno Haible  <bruno@clisp.org>
290
291         iswblank: Detect declaration correctly.
292         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
293         AC_CHECK_DECLS invocation.
294
295 2011-08-08  Bruno Haible  <bruno@clisp.org>
296
297         tcgetsid: Detect declaration correctly.
298         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
299         AC_CHECK_DECLS invocation.
300         Reported by Simon Josefsson.
301
302 2011-08-08  Eric Blake  <eblake@redhat.com>
303
304         largefile: fix typo that regressed large file support
305         * modules/largefile (configure.ac-early): Fix section name.
306
307 2011-08-06  Karl Berry  <karl@gnu.org>
308
309         * MODULES.html.sh (func_all_files): _Noreturn is no longer
310         a separate module.
311
312 2011-08-05  Simon Josefsson  <simon@josefsson.org>
313
314         openat: Fix warnings and commens when building unlinkat.c on Hurd.
315         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
316         get prototype for free.
317
318 2011-08-04  Bruno Haible  <bruno@clisp.org>
319
320         Tests for module 'pathmax'.
321         * modules/pathmax-tests: New file.
322         * tests/test-pathmax.c: New file.
323
324         canonicalize-lgpl: Support larger filenames on the Hurd.
325         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
326         Reported by Paul Eggert.
327
328         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
329         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
330         * lib/chdir-long.h: Include pathmax.h.
331         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
332         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
333         (PATH_MAX): Remove code that is done by pathmax.h.
334         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
335         * lib/tmpfile.c: Add a comment.
336         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
337         * modules/chdir-long (Depends-on): Add pathmax.
338         * modules/getcwd (Depends-on): Add pathmax.
339         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
340         is not defined.
341         * doc/posix-headers/limits.texi: Mention the pathmax module.
342         * NEWS: Mention the change.
343
344 2011-08-02  Bruno Haible  <bruno@clisp.org>
345
346         pthread_sigmask: Actually use results of gl_THREADLIB.
347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
348         gl_THREADLIB, not gl_[]THREADLIB.
349         Reported by Eric Blake.
350
351 2011-08-02  Jim Meyering  <meyering@redhat.com>
352
353         maint.mk: relax the default _gl_TS_function_match regexp
354         * top/maint.mk (_gl_TS_function_match): Don't require at least one
355         space between function name and "(" in an "extern" declaration.
356         That would fail to match a decl with no space there: extern void foo();
357
358 2011-07-31  Iain Nicol  <iain@thenicols.net>
359
360         git-version-gen: document that EXTRA_DIST must include .version
361         * build-aux/git-version-gen: In the how-to-use comment, document
362         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
363         will fail when run from an unpacked distribution tarball.
364
365 2011-08-01  Bruno Haible  <bruno@clisp.org>
366
367         wctype-h: Fix last change.
368         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
369         REPLACE_TOWLOWER to 0.
370         Reported by Sam Steingold <sds@gnu.org>.
371
372 2011-07-31  Bruno Haible  <bruno@clisp.org>
373
374         frexpl: Update autoconf test.
375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
376         according to changes of 2011-06-20.
377
378 2011-07-31  Bruno Haible  <bruno@clisp.org>
379
380         sys_utsname: Add support for Minix.
381         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
382         <sys/utsname.h>.
383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
384         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
385
386 2011-07-31  Bruno Haible  <bruno@clisp.org>
387
388         strings: Add support for Minix.
389         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
390         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
391         * doc/posix-headers/strings.texi: Document the Minix problem.
392
393 2011-07-31  Bruno Haible  <bruno@clisp.org>
394
395         wctype-h: Add support for Minix.
396         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
397         REPLACE_TOWLOWER.
398         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
399         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
400         REPLACE_ISWCNTRL.
401
402 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
403
404         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
405         This is a performance improvement for 64-bit hosts: it causes the
406         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
407
408 2011-07-31  Bruno Haible  <bruno@clisp.org>
409
410         stdioext: Add support for Minix.
411         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
412         * lib/fpurge.c (fpurge): Likewise.
413         * lib/freadahead.c (freadahead): Likewise.
414         * lib/freadable.c (freadable): Likewise.
415         * lib/freading.c (freading): Likewise.
416         * lib/freadptr.c (freadptr): Likewise.
417         * lib/freadseek.c (freadptrinc): Likewise.
418         * lib/fseeko.c (rpl_fseeko): Likewise.
419         * lib/fseterr.c (fseterr): Likewise.
420         * lib/fwritable.c (fwritable): Likewise.
421         * lib/fwriting.c (fwriting): Likewise.
422         * lib/fflush.c (clear_ungetc_buffer): Update comment.
423         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
424
425 2011-07-31  Bruno Haible  <bruno@clisp.org>
426
427         errno: Port to Minix.
428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
429         ECONNABORTED are defined.
430         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
431         GNULIB_defined_ECONNABORTED): New macros.
432         * lib/strerror-override.h (strerror_override): Test also
433         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
434         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
435         ECONNABORTED.
436         * doc/posix-headers/errno.texi: Mention the Minix problem.
437
438 2011-07-31  Bruno Haible  <bruno@clisp.org>
439
440         Work around declaration collisions on Minix.
441         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
442         defined, set REPLACE_MBSINIT.
443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
444         defined, set REPLACE_MBRTOWC.
445         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
446         set REPLACE_MBRLEN.
447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
448         defined, set REPLACE_MBSRTOWCS.
449         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
450         defined, set REPLACE_WCRTOMB.
451         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
452         defined, set REPLACE_WCSRTOMBS.
453
454 2011-07-31  Bruno Haible  <bruno@clisp.org>
455
456         Add support for Minix with ACK compiler.
457         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
458         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
459         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
460
461 2011-07-31  Bruno Haible  <bruno@clisp.org>
462
463         Documentation about Minix.
464         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
465         * doc/glibc-headers/*.texi: Likewise.
466         * doc/posix-functions/*.texi: Likewise.
467         * doc/glibc-functions/*.texi: Likewise.
468
469 2011-07-31  Bruno Haible  <bruno@clisp.org>
470
471         snippet/warn-on-use: Fix indentation.
472         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
473
474 2011-07-25  Jim Meyering  <meyering@redhat.com>
475
476         tests: test-update-copyright.sh: remove unnecessary "rm" commands
477         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
478         commands.
479
480 2011-07-27  Jim Meyering  <meyering@redhat.com>
481
482         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
483         * top/maint.mk (gl_extract_significant_defines_): Now that
484         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
485         gnulib/lib/signal.in.h, and now that we recommend to
486         define-if-undefined those two symbols in application code,
487         we must filter them out of the "significant" list.
488         This avoids a "make syntax-check" failure in coreutils.
489
490 2011-07-26  Eric Blake  <eblake@redhat.com>
491
492         warnings: add comments about previous patch
493         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
494         * m4/include_next.m4: Likewise.
495         * m4/warn-on-use.m4: Likewise.
496         * m4/warnings.m4: Likewise, and simplify use.
497         Suggested by Stefano Lattarini.
498
499         include-next, warnings: support older autoconf
500         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
501         AS_VAR_PUSHDEF in a way that works with older autoconf.
502         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
503         Reported by Daniel P. Berrange.
504
505 2011-07-25  Bruno Haible  <bruno@clisp.org>
506
507         fseek, ftell: Fix doc.
508         * doc/posix-functions/fseek.texi: Reword statement about
509         AC_SYS_LARGEFILE.
510         * doc/posix-functions/ftell.texi: Likewise.
511
512 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
513             Bruno Haible  <bruno@clisp.org>
514
515         Add dependencies to the 'largefile' module.
516         * modules/fopen (Depends-on): Add 'largefile'.
517         * modules/freopen (Depends-on): Likewise.
518         * modules/fseeko (Depends-on): Likewise.
519         * modules/ftello (Depends-on): Likewise.
520         * modules/glob (Depends-on): Likewise.
521         * modules/lseek (Depends-on): Likewise.
522         * modules/lstat (Depends-on): Likewise.
523         * modules/mkostemp (Depends-on): Likewise.
524         * modules/mkostemps (Depends-on): Likewise.
525         * modules/mkstemp (Depends-on): Likewise.
526         * modules/mkstemps (Depends-on): Likewise.
527         * modules/open (Depends-on): Likewise.
528         * modules/openat (Depends-on): Likewise.
529         * modules/pread (Depends-on): Likewise.
530         * modules/pwrite (Depends-on): Likewise.
531         * modules/scandir (Depends-on): Likewise.
532         * modules/stat (Depends-on): Likewise.
533         * modules/tmpfile (Depends-on): Likewise.
534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
535         since the containing module now depends on the largefile module.
536         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
537         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
538         off_t is fixed by gnulib.
539         * doc/posix-functions/freopen.texi: Likewise.
540         * doc/posix-functions/fseeko.texi: Likewise.
541         * doc/posix-functions/fstatat.texi: Likewise.
542         * doc/posix-functions/ftello.texi: Likewise.
543         * doc/posix-functions/glob.texi: Likewise.
544         * doc/posix-functions/lseek.texi: Likewise.
545         * doc/posix-functions/lstat.texi: Likewise.
546         * doc/posix-functions/mkstemp.texi: Likewise.
547         * doc/posix-functions/open.texi: Likewise.
548         * doc/posix-functions/openat.texi: Likewise.
549         * doc/posix-functions/pread.texi: Likewise.
550         * doc/posix-functions/pwrite.texi: Likewise.
551         * doc/posix-functions/scandir.texi: Likewise.
552         * doc/posix-functions/stat.texi: Likewise.
553         * doc/posix-functions/tmpfile.texi: Likewise.
554         * doc/glibc-functions/mkostemp.texi: Likewise.
555         * doc/glibc-functions/mkostemps.texi: Likewise.
556         * doc/glibc-functions/mkstemps.texi: Likewise.
557
558 2011-07-25  Bruno Haible  <bruno@clisp.org>
559
560         fcntl: Move AC_LIBOBJ invocation to module description.
561         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
562         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
563
564         fcntl: Remove call-in from fchdir.m4.
565         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
567
568         dup3: Remove potential call-in from fchdir.m4.
569         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
571
572         dup2: Move AC_LIBOBJ invocation to module description.
573         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
574         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
575         Don't invoke AC_LIBOBJ.
576         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
577
578         dup2: Remove call-in from fchdir.m4.
579         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
581
582         fclose: Move AC_LIBOBJ invocation to module description.
583         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
584         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
585         to 1.
586         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
587
588         fclose: Remove call-in from close.m4.
589         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
590         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
591
592         close: Move AC_LIBOBJ invocation to module description.
593         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
594         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
595         1.
596         * modules/close (configure.ac): Invoke AC_LIBOBJ.
597
598         close: Remove call-in from fchdir.m4.
599         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
601
602         open: Move AC_LIBOBJ invocation to module description.
603         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
604         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
605         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
606
607         open: Remove call-in from fchdir.m4.
608         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
610
611         fchdir: Start to remove gl_REPLACE_* idiom.
612         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
613         (gl_FUNC_FCHDIR): Invoke it.
614
615 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
616
617         * lib/ftell.c (ftell): Comment out cast.
618
619         close: use gl_REPLACE_FCLOSE only if defined
620         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
621         is defined.  The close module doesn't depend on the fclose module
622         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
624         I reproduced the problem with "./gnulib-tool --test close sys_socket".
625
626 2011-07-24  Jim Meyering  <meyering@redhat.com>
627
628         test-select.h: avoid warning when using gcc's -Wmissing-declarations
629         * tests/test-select.h (test_function): Declare as "static".
630
631 2011-07-24  Bruno Haible  <bruno@clisp.org>
632
633         doc: Mention the effects of AC_SYS_LARGEFILE.
634         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
635         on this function.
636         * doc/posix-functions/aio_error.texi: Likewise.
637         * doc/posix-functions/aio_fsync.texi: Likewise.
638         * doc/posix-functions/aio_read.texi: Likewise.
639         * doc/posix-functions/aio_return.texi: Likewise.
640         * doc/posix-functions/aio_suspend.texi: Likewise.
641         * doc/posix-functions/aio_write.texi: Likewise.
642         * doc/posix-functions/fgetpos.texi: Likewise.
643         * doc/posix-functions/fopen.texi: Likewise.
644         * doc/posix-functions/freopen.texi: Likewise.
645         * doc/posix-functions/fsetpos.texi: Likewise.
646         * doc/posix-functions/fstatvfs.texi: Likewise.
647         * doc/posix-functions/ftruncate.texi: Likewise.
648         * doc/posix-functions/ftw.texi: Likewise.
649         * doc/posix-functions/getrlimit.texi: Likewise.
650         * doc/posix-functions/glob.texi: Likewise.
651         * doc/posix-functions/lio_listio.texi: Likewise.
652         * doc/posix-functions/lockf.texi: Likewise.
653         * doc/posix-functions/mkstemp.texi: Likewise.
654         * doc/posix-functions/mmap.texi: Likewise.
655         * doc/posix-functions/nftw.texi: Likewise.
656         * doc/posix-functions/openat.texi: Likewise.
657         * doc/posix-functions/opendir.texi: Likewise.
658         * doc/posix-functions/posix_fadvise.texi: Likewise.
659         * doc/posix-functions/posix_fallocate.texi: Likewise.
660         * doc/posix-functions/pread.texi: Likewise.
661         * doc/posix-functions/pwrite.texi: Likewise.
662         * doc/posix-functions/readdir.texi: Likewise.
663         * doc/posix-functions/readdir_r.texi: Likewise.
664         * doc/posix-functions/rewinddir.texi: Likewise.
665         * doc/posix-functions/scandir.texi: Likewise.
666         * doc/posix-functions/seekdir.texi: Likewise.
667         * doc/posix-functions/setrlimit.texi: Likewise.
668         * doc/posix-functions/statvfs.texi: Likewise.
669         * doc/posix-functions/telldir.texi: Likewise.
670         * doc/posix-functions/tmpfile.texi: Likewise.
671         * doc/posix-functions/truncate.texi: Likewise.
672         * doc/glibc-functions/fallocate.texi: Likewise.
673         * doc/glibc-functions/fstatfs.texi: Likewise.
674         * doc/glibc-functions/fts_children.texi: Likewise.
675         * doc/glibc-functions/fts_read.texi: Likewise.
676         * doc/glibc-functions/getdirentries.texi: Likewise.
677         * doc/glibc-functions/mkostemp.texi: Likewise.
678         * doc/glibc-functions/mkostemps.texi: Likewise.
679         * doc/glibc-functions/mkstemps.texi: Likewise.
680         * doc/glibc-functions/preadv.texi: Likewise.
681         * doc/glibc-functions/pwritev.texi: Likewise.
682         * doc/glibc-functions/sendfile.texi: Likewise.
683         * doc/glibc-functions/statfs.texi: Likewise.
684
685 2011-07-24  Bruno Haible  <bruno@clisp.org>
686
687         doc: Fix typo.
688         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
689
690 2011-07-24  Bruno Haible  <bruno@clisp.org>
691
692         doc: Mention fsusage.
693         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
694
695 2011-07-24  Bruno Haible  <bruno@clisp.org>
696
697         doc: Mention new glibc headers and functions.
698         * doc/glibc-headers/gshadow.texi: New file.
699         * doc/glibc-functions/endsgent.texi: New file.
700         * doc/glibc-functions/fgetsgent.texi: New file.
701         * doc/glibc-functions/fgetsgent_r.texi: New file.
702         * doc/glibc-functions/getsgent.texi: New file.
703         * doc/glibc-functions/getsgent_r.texi: New file.
704         * doc/glibc-functions/getsgnam.texi: New file.
705         * doc/glibc-functions/getsgnam_r.texi: New file.
706         * doc/glibc-functions/putsgent.texi: New file.
707         * doc/glibc-functions/setsgent.texi: New file.
708         * doc/glibc-functions/sgetsgent.texi: New file.
709         * doc/glibc-functions/sgetsgent_r.texi: New file.
710         * doc/glibc-functions/malloc_info.texi: New file.
711         * doc/glibc-functions/preadv.texi: New file.
712         * doc/glibc-functions/pwritev.texi: New file.
713         * doc/glibc-functions/register_printf_modifier.texi: New file.
714         * doc/glibc-functions/register_printf_specifier.texi: New file.
715         * doc/glibc-functions/register_printf_type.texi: New file.
716         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
717         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
718         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
719         * doc/glibc-functions/pthread_getname_np.texi: New file.
720         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
721         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
722         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
723         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
724         * doc/glibc-functions/pthread_setname_np.texi: New file.
725         * doc/glibc-functions/pthread_sigqueue.texi: New file.
726         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
727         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
728         * doc/glibc-functions/qsort_r.texi: New file.
729         * doc/glibc-functions/quick_exit.texi: New file.
730         * doc/glibc-functions/syncfs.texi: New file.
731         * doc/gnulib.texi: Include them.
732         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
733         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
734         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
735         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
736         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
737         * doc/glibc-functions/execvpe.texi: Likewise.
738
739 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
740
741         ftell: don't include <unistd.h>
742         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
743         guaranteed to define off_t, and the ftell module depends on the
744         stdio module.
745
746         ftell: do not assume wraparound signed arithmetic
747         * lib/ftell.c: Include <limits.h>.
748         (ftell): Don't assume wraparound signed arithmetic.
749
750 2011-07-24  Bruno Haible  <bruno@clisp.org>
751
752         close: No longer depend on module 'fclose'.
753         * modules/close (Depends-on): Remove fclose.
754         * NEWS: Mention the change.
755         Suggested by Sam Steingold <sds@gnu.org>.
756
757 2011-07-24  Bruno Haible  <bruno@clisp.org>
758
759         fsusage: Enable large volume support on AIX >= 5.2.
760         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
761         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
762         instead of STAT_STATVFS.
763         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
764
765         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
766         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
767         f_blocks field only on MacOS X.
768
769         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
771         * modules/fsusage (Depends-on): Add largefile.
772
773 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
774
775         * README: Modernize discussion of signed integers.
776         Assuming overflow wraparound is no longer safe.
777         Mention ones' complement and signed magnitude.
778
779 2011-07-22  Bruno Haible  <bruno@clisp.org>
780
781         select tests, pselect tests: Refactor.
782         * tests/test-select.h: New file, extracted from tests/test-select.c.
783         (select_fn): New type.
784         (test, do_select, do_select_nowait, do_select_wait, test_tty,
785         test_connect_first, test_accept_first, test_pair, test_socket_pair,
786         test_pipe): Add my_select argument.
787         (test_function): Renamed from main. Add my_select argument.
788         * tests/test-select.c: Move most code to tests/test-select.h. Include
789         test-select.h.
790         * modules/select-tests (Files): Add tests/test-select.h.
791         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
792         (my_select, main): New functions.
793         * modules/pselect-tests (Files): Add tests/test-select.h,
794         tests/macros.h, tests/signature.h.
795         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
796         (configure.ac): Check for <sys/wait.h>.
797
798 2011-07-22  Bruno Haible  <bruno@clisp.org>
799
800         sys_select tests: Check the signature of FD_*.
801         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
802         signature tests from here...
803         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
804         here.
805         * modules/sys_select-tests (Files): Add tests/signature.h.
806
807 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
808
809         largefile: new module, replacing large-inode
810         PĂ¡draig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
811         * MODULES.html.sh: Add largefile, remove large-inode.
812         * modules/largefile, m4/largefile.m4: New files.
813         * modules/large-inode, m4/large-inode.m4: Remove.
814
815         fsusage: port to MacOS X 10.7 with 4 TiB file systems
816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
817         implementations that use only 32 bits to count blocks.
818         On typical hosts with 1024-byte blocks, this fails with file
819         systems as small as 4 TiB.  Problem reported by Herb Wartens
820         <http://debbugs.gnu.org/9140> and this should also fix a similar
821         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
822
823         large-inode: New module
824         * MODULES.html.sh: Add it.
825         * modules/large-inode, m4/large-inode.m4: New files.
826
827         extensions: Enable extensions on MacOS X 10.5 and later.
828         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
829
830 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
831
832         file-has-acl: use acl_extended_file_nofollow if available
833         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
834         (acl_extended_file): New macro.
835         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
836         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
837
838 2011-07-21  Bruno Haible  <bruno@clisp.org>
839
840         Declare system functions in a way that works with C++.
841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
842         declare fdopendir as extern "C".
843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
844         declare frexpl as extern "C".
845         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
846         declare gai_strerror as extern "C".
847         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
848         programs, declare gai_strerror as extern "C".
849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
850         declare getlogin_r as extern "C".
851         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
852         as extern "C".
853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
854         declare ldexpl as extern "C".
855         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
856         as extern "C".
857         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
858         program, declare getmntinfo as extern "C".
859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
860         stpncpy as extern "C".
861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
862         program, declare __xpg_strerror_r as extern "C".
863         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
864         strndup as extern "C".
865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
866         declare memset and bzero as extern "C".
867         Reported by Sam Steingold <sds@gnu.org>.
868
869 2011-07-12  Jim Meyering  <meyering@redhat.com>
870
871         maint.mk: prohibit inclusion of "verify.h" without use
872         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
873
874 2011-07-19  PĂ¡draig Brady  <P@draigBrady.com>
875
876         timer-time: A new module to check for timer_settime()
877         * m4/timer_time.m4: Check for the posix function.
878         * modules/timer-time: Add the new module.
879         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
880         Mention it.
881
882 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
883             Bruno Haible  <bruno@clisp.org>
884
885         pthread_sigmask: assume POSIX threads if --avoid=threadlib
886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
887         not defined, assume POSIX threads and look for pthread_sigmask in
888         $LIBS, without changing $CPPFLAGS.
889
890 2011-07-19  Bruno Haible  <bruno@clisp.org>
891
892         strstr: Update cross-compilation guess.
893         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
894         CPUs, guess no, in view of glibc
895         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
896         Suggested by Eric Blake. Reported by Reuben Thomas.
897
898 2011-07-19  PĂ¡draig Brady  <P@draigBrady.com>
899
900         getopt-gnu: suppress core dumps from detection code
901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
902         to suppress core dumps that may well occur on glibc systems.
903         * modules/getopt-gnu: Depend on nocrash.
904
905 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
906
907         pthread_sigmask: ensure usleep is declared
908         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
909         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
910
911 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
912
913         doc: Document NonStop portability issues.
914         * doc/posix-functions/sigaction.texi (sigaction):
915         * doc/posix-headers/signal.texi (signal.h):
916         Document NonStop.  See Joachim Schmitz in
917         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
918
919 2011-07-15  Bruno Haible  <bruno@clisp.org>
920
921         ffsl, ffsll: Avoid unportable behaviour.
922         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
923
924 2011-07-15  Bruno Haible  <bruno@clisp.org>
925
926         ffs: More tests.
927         * tests/test-ffs.c (NBITS): New macro.
928         (main): Add more tests.
929         * tests/test-ffsl.c (NBITS): New macro.
930         (main): Add more tests.
931         * tests/test-ffsll.c (NBITS): New macro.
932         (main): Add more tests.
933
934 2011-07-15  Eric Blake  <eblake@redhat.com>
935
936         ffsl, ffsll: new modules
937         * modules/ffsl: New file.
938         * modules/ffsll: Likewise.
939         * m4/ffsl.m4: Likewise.
940         * m4/ffsll.m4: Likewise.
941         * lib/ffsl.c: Likewise.
942         * lib/ffsl.h: Likewise.
943         * lib/ffsll.c: Likewise.
944         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
945         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
946         * modules/string (Makefile.am): Substitute witnesses.
947         * lib/strings.in.h (ffsl, ffsll): Declare.
948         * modules/ffsl-tests: New test file.
949         * modules/ffsll-tests: Likewise.
950         * tests/test-ffsl.c: Likewise.
951         * tests/test-ffsll.c: Likewise.
952         * MODULES.html.sh (Integer arithmetic functions): Mention it.
953         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
954         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
955
956         ffs: fix m4 prerequisite
957         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
958
959         ffs: avoid undefined behavior
960         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
961         * tests/test-ffs.c (naive, main): Avoid signed shifts.
962         Reported by Bruno Haible.
963
964 2011-07-12  Bruno Haible  <bruno@clisp.org>
965
966         pthread_sigmask: Rely on module 'threadlib'.
967         * modules/pthread_sigmask (Depends-on): Add threadlib.
968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
969         is defined.
970
971 2011-07-12  Bruno Haible  <bruno@clisp.org>
972
973         regex: Depend on module 'strcase'.
974         * modules/regex (Depends-on): Add strcase, for strcasecmp().
975
976 2011-07-12  Jim Meyering  <meyering@redhat.com>
977
978         warn-on-use: fix typo in file name
979         * modules/snippet/warn-on-use (Files): Correct file name:
980         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
981
982 2011-07-12  Bruno Haible  <bruno@clisp.org>
983
984         strings: Document module.
985         * doc/posix-headers/strings.texi: Mention module 'strings'.
986
987 2011-07-12  Bruno Haible  <bruno@clisp.org>
988
989         Rename module '_Noreturn' to 'snippet/_Noreturn'.
990         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
991         (Files, Makefile.am): Update.
992         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
993         * modules/stdlib (Depends-on): Update.
994
995 2011-07-12  Bruno Haible  <bruno@clisp.org>
996
997         * NEWS: Mention the changes.
998
999         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1000         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1001         (Files, Makefile.am): Update.
1002         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1003         * modules/arpa_inet (Depends-on): Update.
1004         * modules/ctype (Depends-on): Update.
1005         * modules/dirent (Depends-on): Update.
1006         * modules/fcntl-h (Depends-on): Update.
1007         * modules/glob (Depends-on): Update.
1008         * modules/iconv-h (Depends-on): Update.
1009         * modules/inttypes-incomplete (Depends-on): Update.
1010         * modules/langinfo (Depends-on): Update.
1011         * modules/locale (Depends-on): Update.
1012         * modules/math (Depends-on): Update.
1013         * modules/netdb (Depends-on): Update.
1014         * modules/poll-h (Depends-on): Update.
1015         * modules/pty (Depends-on): Update.
1016         * modules/search (Depends-on): Update.
1017         * modules/signal (Depends-on): Update.
1018         * modules/spawn (Depends-on): Update.
1019         * modules/stdio (Depends-on): Update.
1020         * modules/stdlib (Depends-on): Update.
1021         * modules/string (Depends-on): Update.
1022         * modules/strings (Depends-on): Update.
1023         * modules/sys_file (Depends-on): Update.
1024         * modules/sys_ioctl (Depends-on): Update.
1025         * modules/sys_select (Depends-on): Update.
1026         * modules/sys_socket (Depends-on): Update.
1027         * modules/sys_stat (Depends-on): Update.
1028         * modules/sys_time (Depends-on): Update.
1029         * modules/sys_times (Depends-on): Update.
1030         * modules/sys_utsname (Depends-on): Update.
1031         * modules/sys_wait (Depends-on): Update.
1032         * modules/termios (Depends-on): Update.
1033         * modules/time (Depends-on): Update.
1034         * modules/unistd (Depends-on): Update.
1035         * modules/wchar (Depends-on): Update.
1036         * modules/wctype-h (Depends-on): Update.
1037         * MODULES.html.sh (Support for building libraries and executables):
1038         Update.
1039
1040         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1041         * modules/snippet/unused-parameter: Renamed from
1042         modules/unused-parameter.
1043         (Files, Makefile.am): Update.
1044         * build-aux/snippet/unused-parameter.h: Renamed from
1045         build-aux/unused-parameter.h.
1046         * modules/selinux-h (Depends-on): Update.
1047         * modules/unistr/base (Depends-on): Update.
1048         * MODULES.html.sh (Core language properties): Update.
1049
1050         Rename module 'link-warning' to 'snippet/link-warning'.
1051         * modules/snippet/link-warning: Renamed from modules/link-warning.
1052         (Files, Makefile.am): Update.
1053         * build-aux/snippet/link-warning.h: Renamed from
1054         build-aux/link-warning.h.
1055         * MODULES.html.sh (Support for building libraries and executables):
1056         Update.
1057
1058         Rename module 'c++defs' to 'snippet/c++defs'.
1059         * modules/snippet/c++defs: Renamed from modules/c++defs.
1060         (Files, Makefile.am): Update.
1061         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1062         * modules/arpa_inet (Depends-on): Update.
1063         * modules/ctype (Depends-on): Update.
1064         * modules/dirent (Depends-on): Update.
1065         * modules/fcntl-h (Depends-on): Update.
1066         * modules/glob (Depends-on): Update.
1067         * modules/iconv-h (Depends-on): Update.
1068         * modules/langinfo (Depends-on): Update.
1069         * modules/locale (Depends-on): Update.
1070         * modules/math (Depends-on): Update.
1071         * modules/netdb (Depends-on): Update.
1072         * modules/poll-h (Depends-on): Update.
1073         * modules/pty (Depends-on): Update.
1074         * modules/search (Depends-on): Update.
1075         * modules/signal (Depends-on): Update.
1076         * modules/spawn (Depends-on): Update.
1077         * modules/stdio (Depends-on): Update.
1078         * modules/stdlib (Depends-on): Update.
1079         * modules/string (Depends-on): Update.
1080         * modules/strings (Depends-on): Update.
1081         * modules/sys_ioctl (Depends-on): Update.
1082         * modules/sys_select (Depends-on): Update.
1083         * modules/sys_socket (Depends-on): Update.
1084         * modules/sys_stat (Depends-on): Update.
1085         * modules/sys_time (Depends-on): Update.
1086         * modules/sys_wait (Depends-on): Update.
1087         * modules/termios (Depends-on): Update.
1088         * modules/time (Depends-on): Update.
1089         * modules/unistd (Depends-on): Update.
1090         * modules/wchar (Depends-on): Update.
1091         * modules/wctype-h (Depends-on): Update.
1092
1093         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1094         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1095         (Files, Makefile.am): Update.
1096         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1097         * modules/argv-iter (Depends-on): Update.
1098         * modules/arpa_inet (Depends-on): Update.
1099         * modules/dirent (Depends-on): Update.
1100         * modules/fcntl-h (Depends-on): Update.
1101         * modules/fnmatch (Depends-on): Update.
1102         * modules/getopt-posix (Depends-on): Update.
1103         * modules/glob (Depends-on): Update.
1104         * modules/iconv-h (Depends-on): Update.
1105         * modules/inttypes-incomplete (Depends-on): Update.
1106         * modules/locale (Depends-on): Update.
1107         * modules/math (Depends-on): Update.
1108         * modules/netdb (Depends-on): Update.
1109         * modules/search (Depends-on): Update.
1110         * modules/signal (Depends-on): Update.
1111         * modules/spawn (Depends-on): Update.
1112         * modules/stdio (Depends-on): Update.
1113         * modules/stdlib (Depends-on): Update.
1114         * modules/string (Depends-on): Update.
1115         * modules/strings (Depends-on): Update.
1116         * modules/sys_socket (Depends-on): Update.
1117         * modules/sys_stat (Depends-on): Update.
1118         * modules/sys_time (Depends-on): Update.
1119         * modules/sys_times (Depends-on): Update.
1120         * modules/sys_utsname (Depends-on): Update.
1121         * modules/time (Depends-on): Update.
1122         * modules/unistd (Depends-on): Update.
1123         * modules/wchar (Depends-on): Update.
1124         * MODULES.html.sh (Support for building libraries and executables):
1125         Update.
1126
1127 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1128
1129         Improvements on _Noreturn and related modules.
1130
1131         modules/_Exit-tests: test _Noreturn too
1132         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1133         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1134         (main): Use them.
1135
1136         stdnoreturn, stdnoreturn-tests: remove modules
1137         They're not needed here and a bit premature for use elsewhere.  See
1138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1139         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1140         * tests/test-stdnoreturn.c: Remove files.
1141         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1142         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1143         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1144         and using noreturn.
1145         * modules/openat, modules/sigpipe-die, modules/xalloc:
1146         * modules/xmemdup0, modules/xstrtol:
1147         Remove dependency on stdnoreturn.
1148
1149         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1150         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1151         Reparenthesize to avoid GCC warning.
1152         Support Microsoft's syntax.
1153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1154
1155         _Noreturn-tests: remove module
1156         * modules/_Noreturn-tests: Remove.
1157         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1158         * tests/test-_Noreturn.c: Remove.
1159         * tests/test-stdnoreturn.c: Merge from the old
1160         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1161
1162 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         _Noreturn, stdnoreturn, and related modules.
1165
1166         * top/maint.mk: Adjust to new noreturn support.
1167         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1168         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1169
1170         xalloc: use stdnoreturn.h
1171         * lib/xalloc.h: Include <stdnoreturn.h>.
1172         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1173         * modules/xalloc (Depends-on): Add stdnoreturn.
1174
1175         xstrtol: use stdnoreturn.h
1176         * lib/xstrtol.h: Include <stdnoreturn.h>.
1177         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1178         * modules/xstrtol (Depends-on): Add stdnoreturn.
1179
1180         xmemdup0: use stdnoreturn.h
1181         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1182         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1183         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1184
1185         sigpipe-die: use stdnoreturn.h
1186         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1187         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1188         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1189
1190         openat: use stdnoreturn.h
1191         * lib/openat.h: Include <stdnoreturn.h>.
1192         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1193         * modules/openat (Depends-on): Add stdnoreturn.
1194
1195         * lib/openat-die.c (openat_save_fail): Modernize comment.
1196
1197         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1198
1199         * lib/glthread/thread.h: Modernize comment.
1200
1201         obstack: use _Noreturn
1202         * lib/obstack.c (__attribute__): Remove macro.
1203         (print_and_abort): Use _Noreturn.
1204
1205         c-stack: use _Noreturn
1206         * lib/c-stack.c (die, overflow_handler, segv_handler):
1207         Use _Noreturn rather than __attribute__((noreturn)).
1208
1209         argmatch-tests, exclude_tests: use _Noreturn
1210         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1211         Remove.
1212         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1213
1214         stdlib: use _Noreturn
1215         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1216         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1217         * modules/stdlib (Depends-on): Add _Noreturn.
1218         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1219
1220         stdnoreturn-tests: new module
1221         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1222
1223         stdnoreturn: new module
1224         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1225         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1226
1227         _Noreturn-tests: new module
1228         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1229
1230         _Noreturn: new module
1231         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1232         New section, mentioning it.
1233         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1234
1235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1236
1237 2011-07-11  Eric Blake  <eblake@redhat.com>
1238
1239         ffs: new module
1240         * modules/ffs: New file.
1241         * m4/ffs.m4: Likewise.
1242         * lib/ffs.c: Likewise.
1243         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1244         * modules/strings (Makefile.am): Substitute witness.
1245         (Depends-on): Add c++defs.
1246         * lib/strings.in.h (ffs): Declare.
1247         * modules/ffs-tests: New test file.
1248         * tests/test-ffs.c: Test new module.
1249         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1250         * doc/posix-functions/ffs.texi (ffs): Likewise.
1251
1252         regex: avoid compiler warning
1253         * lib/regex.c (includes): Include <strings.h>, for use of
1254         strcasecmp in regcomp.c.
1255         Reported by Joachim Schmitz.
1256
1257 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         stdint: respect system's intmax_t if INTMAX_MAX
1260         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1261         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1262         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1263         long but int64_t is long long, and where we will clash with the
1264         system intmax_t if we override it.  See
1265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1266         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1267         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1268         similarly for UINTMAX_C.
1269
1270 2011-07-08  Bruno Haible  <bruno@clisp.org>
1271
1272         pthread_sigmask tests: Avoid a compiler warning.
1273         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1274         non-zero.
1275
1276         sigprocmask tests: A better way to avoid a compiler warning.
1277         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1278         (main): Complain if system() returns non-zero.
1279         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1280
1281 2011-07-08  Bruno Haible  <bruno@clisp.org>
1282
1283         pthread_sigmask: Work around IRIX bug.
1284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1285         bug.
1286         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1287         there may be unblocked pending signals.
1288         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1289
1290 2011-07-08  Bruno Haible  <bruno@clisp.org>
1291
1292         pthread_sigmask: Work around Cygwin bug.
1293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1294         bug.
1295         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1296         the system's pthread_sigmask function.
1297         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1298
1299 2011-07-08  Bruno Haible  <bruno@clisp.org>
1300
1301         pthread_sigmask: Work around bug in single-threaded implementation.
1302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1303         FreeBSD, HP-UX, Solaris bug.
1304         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1305         * lib/pthread_sigmask.c: Include <stddef.h>.
1306         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1307         the system's pthread_sigmask function.
1308         * modules/pthread_sigmask (configure.ac): Invoke
1309         gl_PREREQ_PTHREAD_SIGMASK.
1310         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1311         HP-UX, Solaris.
1312
1313 2011-07-08  Eric Blake  <eblake@redhat.com>
1314
1315         test-sigprocmask: avoid compiler warning
1316         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1317         * tests/test-sigprocmask.c (main): Use it to silence warning.
1318         Reported by Jim Meyering.
1319
1320         test-snprintf: avoid compiler warning
1321         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1322         * tests/test-vsnprintf.c (main): Likewise.
1323         Reported by Jim Meyering.
1324
1325 2011-07-08  Bruno Haible  <bruno@clisp.org>
1326
1327         Tests for module 'pthread_sigmask'.
1328         * modules/pthread_sigmask-tests: New file.
1329         * tests/test-pthread_sigmask1.c: New file, based on
1330         tests/test-sigprocmask.c.
1331         * tests/test-pthread_sigmask2.c: New file.
1332
1333 2011-07-08  Jim Meyering  <meyering@redhat.com>
1334
1335         test-getopt.h: avoid warning about an unused variable
1336         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1337
1338 2011-07-07  Jim Meyering  <meyering@redhat.com>
1339
1340         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1341         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1342         now that it no longer contains leading TABs.
1343         Remove unused "url=FIXME" statement.
1344
1345 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1346
1347         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1349         When gl_THREADLIB is not in use, assume that the POSIX sematics
1350         are desired.  This is better for Emacs, which uses POSIX semantics
1351         on GNUish and/or POSIXish platforms, and does not use threads at
1352         all otherwise.
1353
1354         pthread_sigmask: fix typo when testing for libraries
1355         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1356         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1357
1358 2011-07-08  Eric Blake  <eblake@redhat.com>
1359
1360         fts: introduce FTS_NOATIME
1361         * lib/fts_.h (FTS_NOATIME): New bit flag.
1362         (FTS_OPTIONMASK): Adjust.
1363         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1364         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1365
1366 2011-07-08  Bruno Haible  <bruno@clisp.org>
1367
1368         Tests for module 'thread'.
1369         * modules/thread-tests: New file.
1370         * tests/test-thread_self.c: New file.
1371         * tests/test-thread_create.cc: New file.
1372
1373 2011-07-08  Bruno Haible  <bruno@clisp.org>
1374
1375         thread: Avoid gcc warnings when using gl_thread_self().
1376         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1377         'void *'.
1378         (gl_thread_self_pointer): Update.
1379
1380 2011-07-07  Bruno Haible  <bruno@clisp.org>
1381
1382         signal-c++-tests: Check declaration of pthread_sigmask.
1383         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1384         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1385         $(LIB_PTHREAD_SIGMASK).
1386
1387 2011-07-07  Bruno Haible  <bruno@clisp.org>
1388
1389         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1390         * lib/signal.in.h (pthread_sigmask): Override if
1391         REPLACE_PTHREAD_SIGMASK is 1.
1392         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1393         REPLACE_PTHREAD_SIGMASK.
1394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1395         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1396         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1397         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1398         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1399
1400 2011-07-07  Bruno Haible  <bruno@clisp.org>
1401
1402         pthread_sigmask: Ensure declaration in <signal.h>.
1403         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1404         include <pthread.h>.
1405         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1406         problem.
1407
1408 2011-07-07  Bruno Haible  <bruno@clisp.org>
1409
1410         pthread_sigmask: Document the module.
1411         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1412
1413 2011-07-07  Bruno Haible  <bruno@clisp.org>
1414
1415         pthread_sigmask: Follow gnulib conventions.
1416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1417         gl_PTHREAD_SIGMASK.
1418         * modules/pthread_sigmask (configure.ac): Update.
1419
1420 2011-07-07  Bruno Haible  <bruno@clisp.org>
1421
1422         pthread_sigmask: Make declaration C++ safe.
1423         * lib/signal.in.h: In two special conditions, just do an #include_next.
1424         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1425         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1426         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1427         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1428         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1429         not REPLACE_PTHREAD_MASK.
1430         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1431         not REPLACE_PTHREAD_MASK.
1432         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1433
1434 2011-07-07  Bruno Haible  <bruno@clisp.org>
1435
1436         pthread_sigmask: Fix return value.
1437         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1438         * lib/pthread_sigmask.c: New file.
1439         * modules/pthread_sigmask (Files): Add it.
1440         (configure.ac): Invoke AC_LIBOBJ.
1441
1442 2011-07-07  Eric Blake  <eblake@redhat.com>
1443
1444         getopt: more portable argv creation
1445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1446         const, use char arrays rather than strings.
1447         Suggested by Paul Eggert.
1448
1449 2011-07-07  Bruno Haible  <bruno@clisp.org>
1450
1451         Tests for module 'sigprocmask'.
1452         * modules/sigprocmask-tests: New file.
1453         * tests/test-sigprocmask.c: New file.
1454
1455 2011-07-07  Bruno Haible  <bruno@clisp.org>
1456
1457         float tests: Tweak.
1458         * tests/test-float.c (main): Tweak skip message.
1459
1460 2011-07-07  Eric Blake  <eblake@redhat.com>
1461
1462         getopt: avoid compiler warning during configure
1463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1464         assigning string literals to non-const pointer.
1465
1466         getopt-gnu: avoid crash in glibc getopt
1467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1468         * tests/test-getopt.h (test_getopt): Enhance test.
1469         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1470         * doc/posix-functions/getopt.texi (getopt): Document it.
1471         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
1472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1473         Likewise.
1474
1475 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1476
1477         getopt: handle W; without long options in getopt [BZ #12922]
1478         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
1479         but no long options are defined, just return 'W'.
1480
1481 2011-07-07  Bruno Haible  <bruno@clisp.org>
1482
1483         Avoid literal tabs.
1484         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
1485         variable containing a tab instead of a literal tab.
1486         Reported by Jim Meyering.
1487
1488 2011-07-07  Bruno Haible  <bruno@clisp.org>
1489
1490         Comments.
1491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
1492
1493 2011-07-06  Bruno Haible  <bruno@clisp.org>
1494
1495         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
1496         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
1497         <winsock2.h>.
1498         (rpl_fd_isset, FD_ISSET): New definitions, copied from
1499         lib/sys_socket.in.h.
1500         (close, gethostname): Hide declarations from <winsock2.h>.
1501         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
1503         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
1504         (select): Don't override if gnulib's <sys/select.h> was already
1505         included.
1506         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1507         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1508         setsockopt, shutdown, select): Tweak indentation.
1509
1510 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1511
1512         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
1513         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
1514         in an application that does not use the sys_select module.
1515
1516 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
1517
1518         poll: do not return 0 on timeout=-1
1519         * lib/poll.c: Loop with yield if no events occured
1520
1521 2011-07-06  Eric Blake  <eblake@redhat.com>
1522
1523         pthread_sigmask: always replace when not using pthread
1524         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
1525         replacement when using some threading other than pthread.  Fix
1526         logic bug.
1527
1528 2011-07-06  Bruno Haible  <bruno@clisp.org>
1529
1530         Comments.
1531         * m4/printf.m4: Update comments about mingw.
1532
1533 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         sys_select: define sigset_t more portably
1536         * lib/sys_select.in.h: Always include <sys/types.h>, since
1537         we now need sigset_t and mingw defines it there.
1538         Include <signal.h> before split inclusion guard, to avoid
1539         mishaps on Solaris, whose <signal.h> eventually includes us.
1540         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
1541         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
1542         which come from ...
1543         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1544         gl_CHECK_TYPE_SIGSET_T.
1545         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
1546         does the real work.
1547         * modules/sys_select (Depends-on): Add 'signal'.
1548
1549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
1550         Suggested by Bruno Haible.
1551
1552         pselect: Use pthread_sigmask, not sigprocmask.
1553         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
1554         multithreaded apps better than sigprocmask does.
1555         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
1556         sigprocmask directly.
1557
1558 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         * lib/pselect.c (pselect): Use plain name, without "rpl_".
1561         Don't #undef,  since we don't need any underlying pselect.
1562         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
1563         (Depends-on): Add select.
1564         (Link): Add $(LIBSOCKET).
1565         These changes suggested by Bruno Haible.
1566
1567         pselect: document better
1568         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1569         * doc/posix-functions/pselect.texi (pselect): Document new module.
1570
1571         pthread_sigmask: new module
1572         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
1573         * doc/posix-functions/pthread_sigmask.texi: Document new module.
1574         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
1575         This is done only as a macro; I don't know how well that'll
1576         work for C++.  Move <sys/types.h> include before the include_next,
1577         to avoid mishap on Solaris.
1578         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
1579         * modules/signal (Makefile.am): Substitute the check's results.
1580         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
1581
1582         test-pselect: new module
1583         * modules/pselect-tests, tests/test-pselect.c: New files.
1584         * tests/test-select.c, tests/test-sys_select-c++.cc:
1585         If TEST_PSELECT is defined, test pselect instead of testing select.
1586
1587         * tests/test-sys_select.c (sigset_t): Test for it, too.
1588         Suggested by Bruno Haible.
1589
1590 2011-07-05  Eric Blake  <eblake@redhat.com>
1591
1592         snprintf: guarantee %1$d, for libintl
1593         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
1594         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1595         * doc/posix-functions/snprintf.texi (snprintf): Update.
1596         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1597         * tests/test-snprintf.c (main): Enhance test.
1598         * tests/test-vsnprintf.c (main): Likewise.
1599
1600 2011-07-05  Jim Meyering  <meyering@redhat.com>
1601
1602         maint: exempt stdio-read.c and stdio-write.c from the cppi check
1603         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
1604         per Bruno's request, to accommodate this idiom (no space after "#")
1605         even when the function is inside an #if block:
1606         char *
1607         gets (char *s)
1608         #undef gets
1609         {
1610           ...
1611         }
1612
1613 2011-07-04  Jim Meyering  <meyering@redhat.com>
1614
1615         maint: indent with spaces, not TABs, and add a rule to check this
1616         * tests/test-userspec.c: Indent with spaces, not TABs.
1617         * tests/test-argp.c: Likewise.
1618         * tests/test-c-stack2.sh: Likewise.
1619         * tests/test-parse-duration.sh: Likewise
1620         * m4/strtod.m4: Likewise.
1621         * m4/alloca.m4: Likewise.
1622         * m4/pselect.m4: Likewise.
1623         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
1624
1625 2011-07-03  Jim Meyering  <meyering@redhat.com>
1626
1627         maint.mk: correct omissions in prohibit_argmatch_without_use check
1628         This rule would mistakenly report that argmatch.h is included without
1629         use even when both the argmatch and invalid_arg macro were used.
1630         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
1631         of argmatch and invalid_arg.
1632
1633 2011-07-03  Bruno Haible  <bruno@clisp.org>
1634
1635         Comments about EINTR.
1636         * lib/safe-read.h: Explain the purpose of this module.
1637         * lib/safe-write.h: Likewise.
1638         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
1639         module.
1640         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
1641         module.
1642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1643
1644 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
1645
1646         xnanosleep: Rewrite to use new dtotimespec module.
1647         It has the conversion code that used to be in xnanosleep.
1648         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
1649         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
1650         (TIME_T_MAX): Remove.
1651         (xnanosleep): Rewrite in terms of dtotimespec.
1652         * modules/xnanosleep (Depends-on): Add dtotimespec.
1653         Remove intprops, stdbool.
1654
1655         timespec-add, timespec-sub: new modules
1656         * lib/timespec.h (timespec_add, timespec_sub): New decls.
1657         * lib/timespec-add.c, lib/timespec-sub.c:
1658         * modules/timespec-add, modules/timespec-sub: New files.
1659
1660         dtotimespec: new module
1661         * lib/timespec.h (dtotimespec): New decl.
1662         * lib/dtotimespec.c, modules/dtotimespec: New files.
1663
1664         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
1665
1666         pselect: new module
1667         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
1668         (pselect): New decls.
1669         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
1670         since the standard pselect decl uses 'restrict'.
1671         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
1672         HAVE_PSELECT, REPLACE_PSELECT.
1673         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
1674         HAVE_PSELECT, REPLACE_PSELECT.
1675         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
1676
1677         sys_select: don't depend on sys_socket
1678         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
1679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
1680         This fix works on GNU and GNU-like platforms, but has not been tested
1681         on native Windows.
1682         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
1683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
1684         gl_HEADER_SYS_SOCKET.
1685         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
1686         gl_PREREQ_SYS_H_WINSOCK2.
1687
1688 2011-06-29  Eric Blake  <eblake@redhat.com>
1689
1690         pipe2: fix C89 compile problem
1691         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
1692         Reported by Bruno Haible.
1693
1694         pipe, pipe2: don't corrupt fd on error
1695         * lib/pipe.c (pipe): Leave fd unchanged on error.
1696         * lib/pipe2.c (pipe2): Likewise.
1697         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
1698         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1699
1700 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
1701
1702         mmap-anon: do not use regular expressions inadvertently
1703         * m4/mmap-anon.m4: Remove trailing period from strings sought
1704         in the output.
1705
1706 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         nanosleep: fix integer overflow problem
1709         * lib/nanosleep.c (my_usleep): Don't assume signed integer
1710         arithmetic wraps around on overflow.
1711
1712         nanosleep: simplify carrying
1713         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
1714         first call to the underyling nanosleep, not for the last one.
1715         This doesn't fix any bugs, but it simplifies the computation of
1716         the remaining delay.  Found while auditing integer overflow issues.
1717
1718         dup2: remove test for existence of fcntl
1719         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
1720         "#if HAVE_FCNTL", in the configure-time test program.
1721         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
1722         and therefore speeds up "configure" a bit.  Found while
1723         adding the dup2 module to Emacs.
1724
1725 2011-06-24  Eric Blake  <eblake@redhat.com>
1726
1727         maint.mk: enhance useless header checks
1728         * top/maint.mk (_sc_header_without_use): Check both include
1729         styles.
1730         (sc_prohibit_assert_without_use)
1731         (sc_prohibit_close_stream_without_use)
1732         (sc_prohibit_getopt_without_use)
1733         (sc_prohibit_quotearg_without_use)
1734         (sc_prohibit_quote_without_use)
1735         (sc_prohibit_long_options_without_use)
1736         (sc_prohibit_inttostr_without_use)
1737         (sc_prohibit_ignore_value_without_use)
1738         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
1739         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
1740         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
1741         (sc_prohibit_hash_pjw_without_use)
1742         (sc_prohibit_safe_read_without_use)
1743         (sc_prohibit_argmatch_without_use)
1744         (sc_prohibit_canonicalize_without_use)
1745         (sc_prohibit_root_dev_ino_without_use)
1746         (sc_prohibit_openat_without_use)
1747         (sc_prohibit_c_ctype_without_use)
1748         (sc_prohibit_signal_without_use)
1749         (sc_prohibit_stdio--_without_use)
1750         (sc_prohibit_stdio-safer_without_use)
1751         (sc_prohibit_strings_without_use)
1752         (sc_prohibit_intprops_without_use)
1753         (sc_prohibit_stddef_without_use)
1754         (sc_prohibit_xfreopen_without_use): Update clients.
1755
1756 2011-06-24  Jim Meyering  <meyering@redhat.com>
1757
1758         syntax-check: keep one maint.mk rule in sync with its header
1759         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
1760         of the bug Eric has just fixed, with today's commit 25e4c2ec.
1761         I prefer to avoid temporary files here, so use <(...), but that
1762         is not supported by /bin/sh, so...
1763         (SHELL): Define to /bin/bash.
1764
1765 2011-06-24  Eric Blake  <eblake@redhat.com>
1766
1767         maint.mk: update sc_prohibit_intprops_without_use
1768         * top/maint.mk (_intprops_names): Match recent changes.
1769
1770 2011-06-24  Bruno Haible  <bruno@clisp.org>
1771
1772         strerror-override: No-op tweak.
1773         * lib/strerror-override.h (strerror_override): Reorder conditions,
1774         for consistency with lib/strerror-override.c.
1775
1776 2011-06-23  Eric Blake  <eblake@redhat.com>
1777
1778         maint.mk: test further PATH_MAX issues
1779         * top/maint.mk (sc_prohibit_path_max_array): Rename...
1780         (sc_prohibit_path_max_allocation): ...and also test alloca.
1781         Suggested by Jim Meyering.
1782
1783 2011-06-22  Eric Blake  <eblake@redhat.com>
1784
1785         maint.mk: add syntax-check to avoid char[PATH_MAX]
1786         * top/maint.mk (sc_prohibit_path_max_array): New rule.
1787
1788         stat: be robust to PATH_MAX definition
1789         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
1790         * modules/stat (Depends-on): Add verify.
1791
1792         link: work around IRIX bug
1793         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
1794         * lib/link.c (rpl_link): Work around it.
1795         * tests/test-link.h (test_link): Enhance test.
1796         * doc/posix-functions/link.texi (link): Document the bug.
1797
1798         getopt: silence clang warning
1799         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
1800         dereference.
1801         Reported by Gustavo Martin Domato.
1802
1803 2011-06-22  Jim Meyering  <meyering@redhat.com>
1804
1805         bootstrap: do not insert a blank line into each .gitignore file
1806         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
1807
1808 2011-06-21  Eric Blake  <eblake@redhat.com>
1809
1810         perror: test for output mismatch
1811         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
1812         perror on IRIX.
1813
1814         strerror_r: fix OpenBSD behavior on out-of-range
1815         * lib/strerror_r.c (strerror_r): Always use maximal string.
1816         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1817
1818         strerror_r: fix OpenBSD behavior on 0
1819         * lib/strerror-override.c (strerror_override): Also override 0
1820         when needed.
1821         * lib/strerror-override.h (strerror_override): Likewise.
1822         * lib/strerror.c (strerror): Simplify, now that 0 override is done
1823         earlier.
1824         * lib/strerror_r.c (strerror_r): Likewise.
1825         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
1826         behavior...
1827         (gl_FUNC_STRERROR_0): ...into new macro.
1828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
1829         is overridden.
1830         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
1831         * modules/strerror-override (Files): Add strerror.m4.
1832         (configure.ac): Also provide override for 0 when needed.
1833         * doc/posix-functions/strerror.texi (strerror): Document this.
1834         * doc/posix-functions/perror.texi (perror): Likewise.
1835
1836         perror: adjust array size
1837         * modules/perror (Depends-on): Add strerror-override.
1838         * lib/perror.c (perror): Use it to avoid magic number.
1839
1840         strerror-override: reduce size
1841         * lib/strerror-override.c (strerror_override): Use fewer lines.
1842
1843 2011-06-20  Bruno Haible  <bruno@clisp.org>
1844
1845         pathmax: Ensure correct value for PATH_MAX on HP-UX.
1846         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
1847
1848 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1849
1850         alloca: port to compilers that can optimize like GCC 4.6.0
1851         * lib/alloca.c (find_stack_direction): New signature, taken from
1852         Autoconf git.  This works with GCC 4.6.0.  This code should never
1853         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
1854         be used with other compilers that optimize as well as GCC 4.6.0 does.
1855         (alloca): Adjust to new signature.
1856         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
1857         New macro, which patches Autoconf in a similar way.
1858
1859         c-stack: stop worrying about stack direction
1860         * lib/c-stack.c (find_stack_direction): Remove.
1861         (segv_handler): Don't worry about stack direction growth, as it's
1862         too much of a pain to configure this correctly, given how compilers
1863         are optimizing-away our stack-growth detection code.  Instead, assume
1864         that any access to just before or just after the stack is OK.
1865         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
1866         Don't require AC_FUNC_ALLOCA; no longer needed.
1867
1868 2011-06-20  Eric Blake  <eblake@redhat.com>
1869
1870         test-stat: don't allocate PATH_MAX bytes
1871         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
1872         PATH_MAX-sized buffer.
1873         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
1874         * modules/stat-tests (Depends-on): Likewise.
1875         * tests/test-fstatat.c (includes): Drop pathmax.h.
1876         * tests/test-stat.c (includes): Likewise.
1877         Reported by Bruno Haible.
1878
1879 2011-06-20  Bruno Haible  <bruno@clisp.org>
1880
1881         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
1882         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
1883         * lib/float.c: New file.
1884         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
1885         REPLACE_FLOAT_LDBL.
1886         * modules/float (Files): Add lib/float.c.
1887         (configure.ac): Invoke AC_LIBOBJ.
1888         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
1889
1890 2011-06-20  Bruno Haible  <bruno@clisp.org>
1891
1892         Tests for module 'float'.
1893         * modules/float-tests: New file.
1894         * tests/test-float.c: New file.
1895
1896 2011-06-19  Bruno Haible  <bruno@clisp.org>
1897
1898         isinf: Coding style.
1899         * lib/isinf.c: Use GNU coding style.
1900
1901 2011-06-19  Bruno Haible  <bruno@clisp.org>
1902
1903         linkat test: Avoid test failure on AIX 7.1.
1904         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
1905         * tests/test-link.h (test_link): Likewise.
1906
1907 2011-06-19  Bruno Haible  <bruno@clisp.org>
1908
1909         pread test: Avoid test failure on OpenBSD 4.9.
1910         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
1911
1912 2011-06-19  Bruno Haible  <bruno@clisp.org>
1913
1914         sprintf-posix: Fix test failure on AIX 7.1.
1915         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
1916         * doc/posix-functions/dprintf.texi: Mention limited precision problem
1917         on AIX.
1918         * doc/posix-functions/fprintf.texi: Likewise.
1919         * doc/posix-functions/printf.texi: Likewise.
1920         * doc/posix-functions/snprintf.texi: Likewise.
1921         * doc/posix-functions/sprintf.texi: Likewise.
1922         * doc/posix-functions/vdprintf.texi: Likewise.
1923         * doc/posix-functions/vfprintf.texi: Likewise.
1924         * doc/posix-functions/vprintf.texi: Likewise.
1925         * doc/posix-functions/vsnprintf.texi: Likewise.
1926         * doc/posix-functions/vsprintf.texi: Likewise.
1927
1928 2011-06-19  Bruno Haible  <bruno@clisp.org>
1929
1930         roundl-ieee: Fix test failure on AIX 7.1.
1931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
1932         * doc/posix-functions/roundl.texi: Mention problem with negative
1933         arguments.
1934
1935 2011-06-19  Bruno Haible  <bruno@clisp.org>
1936
1937         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1938         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
1939         * doc/posix-functions/round.texi: Mention problem with negative
1940         arguments.
1941         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
1942
1943 2011-06-19  Bruno Haible  <bruno@clisp.org>
1944
1945         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
1946         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
1947         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
1948         * doc/posix-functions/roundf.texi: Mention problem with negative
1949         arguments.
1950         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
1951
1952 2011-06-19  Bruno Haible  <bruno@clisp.org>
1953
1954         ceilf-ieee: Work around bug on MacOS X 10.5.
1955         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
1956
1957         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
1958         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
1959         IEEE compliant, avoid compiler optimizations.
1960         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1961         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1962         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1963         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1964         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1965         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1968         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1969         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1970
1971 2011-06-19  Bruno Haible  <bruno@clisp.org>
1972
1973         ceilf-ieee: Work around bug on AIX 7.1.
1974         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
1975         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
1976
1977 2011-06-19  Bruno Haible  <bruno@clisp.org>
1978
1979         ceil-ieee: Work around bug on AIX 7.1.
1980         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
1981         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
1982
1983 2011-06-18  Bruno Haible  <bruno@clisp.org>
1984
1985         fsync test: Avoid test failure on MacOS X and AIX.
1986         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
1987         EINVAL.
1988
1989 2011-06-18  Bruno Haible  <bruno@clisp.org>
1990
1991         openat, fdopendir tests: Fix link errors.
1992         * modules/openat-tests (Depends-on): Add progname.
1993         * modules/fdopendir-tests (Depends-on): Likewise.
1994         * tests/test-fchownat.c: Include progname.h.
1995         (main): Call set_program_name.
1996         * tests/test-fstatat.c: Include progname.h.
1997         (main): Call set_program_name.
1998         * tests/test-mkdirat.c: Include progname.h.
1999         (main): Call set_program_name.
2000         * tests/test-openat.c: Include progname.h.
2001         (main): Call set_program_name.
2002         * tests/test-unlinkat.c: Include progname.h.
2003         (main): Call set_program_name.
2004         * tests/test-fdopendir.c: Include progname.h.
2005         (main): Call set_program_name.
2006
2007 2011-06-18  Bruno Haible  <bruno@clisp.org>
2008
2009         Doc update.
2010         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2011         HP-UX.
2012         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2013
2014 2011-06-18  Bruno Haible  <bruno@clisp.org>
2015
2016         getcwd tests: Avoid compilation error on HP-UX 11.31.
2017         * modules/getcwd-tests (Depends-on): Add pathmax.
2018         * tests/test-getcwd.c: Include pathmax.h.
2019
2020 2011-06-18  Bruno Haible  <bruno@clisp.org>
2021
2022         isfinite, isinf: Fix link error on AIX 6 and 7.
2023         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2024         needed, also test the macro with a 'float' argument.
2025         * m4/isinf.m4 (gl_ISINF): Likewise.
2026
2027 2011-06-18  Bruno Haible  <bruno@clisp.org>
2028
2029         getloadavg: Don't clobber LIBS. Regression from previous commit.
2030         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2031         AC_CHECK_LIB from here...
2032         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2033         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2034         gl_func_getloadavg_done.
2035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2036
2037 2011-06-18  Bruno Haible  <bruno@clisp.org>
2038
2039         clean-temp: Improve documentation.
2040         * lib/clean-temp.h: Explain better how to use this module.
2041         Reported by John Darrington <john@darrington.wattle.id.au>.
2042
2043 2011-06-17  Bruno Haible  <bruno@clisp.org>
2044
2045         pread, pwrite: Avoid cc warning on AIX.
2046         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2047         (pwrite): Likewise.
2048
2049 2011-06-17  Bruno Haible  <bruno@clisp.org>
2050
2051         spawn-pipe tests: Fix link error.
2052         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2054
2055 2011-06-17  Bruno Haible  <bruno@clisp.org>
2056
2057         Tests: Remove unnecessary dependency.
2058         * modules/canonicalize-tests (Depends-on): Remove progname.
2059         * modules/chown-tests (Depends-on): Likewise.
2060         * modules/dirname-tests (Depends-on): Likewise.
2061         * modules/fdopendir-tests (Depends-on): Likewise.
2062         * modules/fdutimensat-tests (Depends-on): Likewise.
2063         * modules/hash-tests (Depends-on): Likewise.
2064         * modules/lchown-tests (Depends-on): Likewise.
2065         * modules/linkat-tests (Depends-on): Likewise.
2066         * modules/renameat-tests (Depends-on): Likewise.
2067         * modules/spawn-pipe-tests (Depends-on): Likewise.
2068         * modules/utimensat-tests (Depends-on): Likewise.
2069
2070 2011-06-17  Bruno Haible  <bruno@clisp.org>
2071
2072         spawn-pipe tests: Fix link error.
2073         * tests/test-spawn-pipe-child.c: Undefine fflush.
2074
2075 2011-06-17  Bruno Haible  <bruno@clisp.org>
2076
2077         Fix tests link errors.
2078         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2079         * modules/chown-tests (Makefile.am): Don't link test-chown with
2080         LIBINTL.
2081         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2082         LIBINTL.
2083         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2084         LIBINTL.
2085         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2086         LIBINTL.
2087
2088 2011-06-16  Bruno Haible  <bruno@clisp.org>
2089
2090         crypto/gc-sha1: Fix recent regression.
2091         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2092         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2093
2094         crypto/gc-md5: Fix recent regression.
2095         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2096
2097         crypto/gc-md4: Fix recent regression.
2098         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2099         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2100
2101         crypto/gc-arctwo: Fix recent regression.
2102         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2103         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2104
2105         crypto/gc-rijndael: Fix recent regression.
2106         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2107         (configure.ac): Invoke AC_LIBOBJ here.
2108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2109         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2110
2111         crypto/gc-hmac-sha1: Fix recent regression.
2112         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2113         (configure.ac): Invoke AC_LIBOBJ here.
2114         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2116
2117         crypto/gc-hmac-md5: Fix recent regression.
2118         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2119         (configure.ac): Invoke AC_LIBOBJ here.
2120         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2122
2123         crypto/gc-des: Fix recent regression.
2124         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2125         (configure.ac): Invoke AC_LIBOBJ here.
2126         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2128
2129         crypto/gc-arcfour: Fix recent regression.
2130         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2131         (configure.ac): Invoke AC_LIBOBJ here.
2132         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2134
2135 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2136
2137         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2138         After the 2011-05-21 change, this macro requires
2139         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2141
2142 2011-06-16  Bruno Haible  <bruno@clisp.org>
2143
2144         fprintftime: Move AC_LIBOBJ invocations to module description.
2145         * m4/fprintftime.m4: Remove file.
2146         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2147         (configure.ac): Remove gl_FPRINTFTIME call.
2148         (Makefile.am): Augment lib_SOURCES.
2149         Reported by Jim Meyering.
2150
2151 2011-06-16  Bruno Haible  <bruno@clisp.org>
2152
2153         tmpfile-safer: Finish 2011-05-23 commit.
2154         * m4/stdio-safer.m4: Really remove file.
2155         Reported by Jim Meyering.
2156
2157 2011-06-16  Bruno Haible  <bruno@clisp.org>
2158
2159         syntax-check: Fix typo.
2160         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2161         printf-posix.m4.
2162         Reported by Jim Meyering.
2163
2164 2011-06-13  Jim Meyering  <meyering@redhat.com>
2165
2166         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2167         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2168
2169 2011-05-23  Bruno Haible  <bruno@clisp.org>
2170
2171         yesno: Move AC_LIBOBJ invocations to module description.
2172         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2173         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2174
2175 2011-05-23  Bruno Haible  <bruno@clisp.org>
2176
2177         xstrtol: Move AC_LIBOBJ invocations to module description.
2178         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2179         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2180
2181 2011-05-23  Bruno Haible  <bruno@clisp.org>
2182
2183         xstrtold: Move AC_LIBOBJ invocations to module description.
2184         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2185         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2186
2187 2011-05-23  Bruno Haible  <bruno@clisp.org>
2188
2189         xstrtod: Move AC_LIBOBJ invocations to module description.
2190         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2191         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2192
2193 2011-05-23  Bruno Haible  <bruno@clisp.org>
2194
2195         xnanosleep: Move AC_LIBOBJ invocations to module description.
2196         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2197         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2198
2199 2011-05-23  Bruno Haible  <bruno@clisp.org>
2200
2201         xgetcwd: Move AC_LIBOBJ invocations to module description.
2202         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2203         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2204
2205 2011-05-23  Bruno Haible  <bruno@clisp.org>
2206
2207         xalloc: Move AC_LIBOBJ invocations to module description.
2208         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2209         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2210
2211 2011-05-23  Bruno Haible  <bruno@clisp.org>
2212
2213         write-any-file: Move AC_LIBOBJ invocations to module description.
2214         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2215         invocation.
2216         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2217
2218 2011-05-23  Bruno Haible  <bruno@clisp.org>
2219
2220         utimens: Move AC_LIBOBJ invocations to module description.
2221         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2222         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2223
2224 2011-05-23  Bruno Haible  <bruno@clisp.org>
2225
2226         utimecmp: Move AC_LIBOBJ invocations to module description.
2227         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2228         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2229
2230 2011-05-23  Bruno Haible  <bruno@clisp.org>
2231
2232         userspec: Move AC_LIBOBJ invocations to module description.
2233         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2234         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2235
2236 2011-05-23  Bruno Haible  <bruno@clisp.org>
2237
2238         unlinkdir: Move AC_LIBOBJ invocations to module description.
2239         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2240         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2241
2242 2011-05-23  Bruno Haible  <bruno@clisp.org>
2243
2244         unistd-safer: Move AC_LIBOBJ invocations to module description.
2245         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2246         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2247
2248 2011-05-23  Bruno Haible  <bruno@clisp.org>
2249
2250         tempname: Move AC_LIBOBJ invocations to module description.
2251         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2252         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2253
2254 2011-05-23  Bruno Haible  <bruno@clisp.org>
2255
2256         strftime: Move AC_LIBOBJ invocations to module description.
2257         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2258         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2259
2260 2011-05-23  Bruno Haible  <bruno@clisp.org>
2261
2262         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2263         * m4/stdlib-safer.m4: Remove file.
2264         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2265         (configure.ac): Remove gl_STDLIB_SAFER call.
2266         (Makefile.am): Augment lib_SOURCES.
2267
2268 2011-05-23  Bruno Haible  <bruno@clisp.org>
2269
2270         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2271         * m4/stdio-safer.m4: Remove file.
2272         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2273         (configure.ac): Remove gl_TMPFILE_SAFER call.
2274         (Makefile.am): Augment lib_SOURCES.
2275
2276 2011-05-23  Bruno Haible  <bruno@clisp.org>
2277
2278         popen-safer: Move AC_LIBOBJ invocations to module description.
2279         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2280         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2281         (configure.ac): Remove gl_POPEN_SAFER call.
2282         (Makefile.am): Augment lib_SOURCES.
2283
2284 2011-05-23  Bruno Haible  <bruno@clisp.org>
2285
2286         freopen-safer: Move AC_LIBOBJ invocations to module description.
2287         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2288         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2289         (configure.ac): Remove gl_FREOPEN_SAFER call.
2290         (Makefile.am): Augment lib_SOURCES.
2291
2292 2011-05-23  Bruno Haible  <bruno@clisp.org>
2293
2294         fopen-safer: Move AC_LIBOBJ invocations to module description.
2295         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2296         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2297         (configure.ac): Remove gl_FOPEN_SAFER call.
2298         (Makefile.am): Augment lib_SOURCES.
2299
2300 2011-05-23  Bruno Haible  <bruno@clisp.org>
2301
2302         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2303         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2304         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2305
2306 2011-05-23  Bruno Haible  <bruno@clisp.org>
2307
2308         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2309         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2310         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2311
2312 2011-05-23  Bruno Haible  <bruno@clisp.org>
2313
2314         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2315         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2316         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2317
2318 2011-05-23  Bruno Haible  <bruno@clisp.org>
2319
2320         settime: Move AC_LIBOBJ invocations to module description.
2321         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2322         * modules/settime (Makefile.am): Augment lib_SOURCES.
2323
2324 2011-05-23  Bruno Haible  <bruno@clisp.org>
2325
2326         savedir: Move AC_LIBOBJ invocations to module description.
2327         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2328         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2329
2330 2011-05-23  Bruno Haible  <bruno@clisp.org>
2331
2332         save-cwd: Move AC_LIBOBJ invocations to module description.
2333         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2334         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2335
2336 2011-05-23  Bruno Haible  <bruno@clisp.org>
2337
2338         same: Move AC_LIBOBJ invocations to module description.
2339         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2340         * modules/same (Makefile.am): Augment lib_SOURCES.
2341
2342 2011-05-23  Bruno Haible  <bruno@clisp.org>
2343
2344         safe-write: Move AC_LIBOBJ invocations to module description.
2345         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2346         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2347         instead of gl_SAFE_WRITE.
2348         (Makefile.am): Augment lib_SOURCES.
2349
2350 2011-05-23  Bruno Haible  <bruno@clisp.org>
2351
2352         safe-read: Move AC_LIBOBJ invocations to module description.
2353         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2354         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2355         of gl_SAFE_READ.
2356         (Makefile.am): Augment lib_SOURCES.
2357
2358 2011-05-23  Bruno Haible  <bruno@clisp.org>
2359
2360         safe-alloc: Move AC_LIBOBJ invocations to module description.
2361         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2362         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2363
2364 2011-05-23  Bruno Haible  <bruno@clisp.org>
2365
2366         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2367         * m4/rijndael.m4: Remove file.
2368         * modules/crypto/rijndael (Files): Remove it.
2369         (configure.ac): Remove gl_RIJNDAEL call.
2370         (Makefile.am): Augment lib_SOURCES.
2371
2372 2011-05-23  Bruno Haible  <bruno@clisp.org>
2373
2374         readtokens: Move AC_LIBOBJ invocations to module description.
2375         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2376         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2377
2378 2011-05-23  Bruno Haible  <bruno@clisp.org>
2379
2380         read-file: Move AC_LIBOBJ invocations to module description.
2381         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2382         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2383         of gl_FUNC_READ_FILE.
2384         (Makefile.am): Augment lib_SOURCES.
2385
2386 2011-05-23  Bruno Haible  <bruno@clisp.org>
2387
2388         quotearg: Move AC_LIBOBJ invocations to module description.
2389         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2390         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2391
2392 2011-05-23  Bruno Haible  <bruno@clisp.org>
2393
2394         quote: Move AC_LIBOBJ invocations to module description.
2395         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2396         * modules/quote (Makefile.am): Augment lib_SOURCES.
2397
2398 2011-05-23  Bruno Haible  <bruno@clisp.org>
2399
2400         posixver: Move AC_LIBOBJ invocations to module description.
2401         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2402         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2403
2404 2011-05-23  Bruno Haible  <bruno@clisp.org>
2405
2406         posixtm: Move AC_LIBOBJ invocations to module description.
2407         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2408         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2409
2410 2011-05-23  Bruno Haible  <bruno@clisp.org>
2411
2412         physmem: Move AC_LIBOBJ invocations to module description.
2413         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2414         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2415
2416 2011-05-23  Bruno Haible  <bruno@clisp.org>
2417
2418         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2419         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2420         invocation.
2421         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2422
2423 2011-05-23  Bruno Haible  <bruno@clisp.org>
2424
2425         mpsort: Move AC_LIBOBJ invocations to module description.
2426         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2427         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2428
2429 2011-05-23  Bruno Haible  <bruno@clisp.org>
2430
2431         modechange: Move AC_LIBOBJ invocations to module description.
2432         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2433         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2434
2435 2011-05-23  Bruno Haible  <bruno@clisp.org>
2436
2437         mkdir-p: Move AC_LIBOBJ invocations to module description.
2438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2439         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2440
2441 2011-05-23  Bruno Haible  <bruno@clisp.org>
2442
2443         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2444         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2445         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2446
2447 2011-05-23  Bruno Haible  <bruno@clisp.org>
2448
2449         mgetgroups: Move AC_LIBOBJ invocations to module description.
2450         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2451         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2452
2453 2011-05-23  Bruno Haible  <bruno@clisp.org>
2454
2455         memxor: Move AC_LIBOBJ invocations to module description.
2456         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2457         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2458
2459 2011-05-23  Bruno Haible  <bruno@clisp.org>
2460
2461         memcoll: Move AC_LIBOBJ invocations to module description.
2462         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2463         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2464
2465 2011-05-23  Bruno Haible  <bruno@clisp.org>
2466
2467         memcasecmp: Move AC_LIBOBJ invocations to module description.
2468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
2469         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
2470
2471 2011-05-23  Bruno Haible  <bruno@clisp.org>
2472
2473         crypto/md5: Move AC_LIBOBJ invocations to module description.
2474         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
2475         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
2476
2477 2011-05-23  Bruno Haible  <bruno@clisp.org>
2478
2479         crypto/md4: Move AC_LIBOBJ invocations to module description.
2480         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
2481         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
2482
2483 2011-05-23  Bruno Haible  <bruno@clisp.org>
2484
2485         crypto/md2: Move AC_LIBOBJ invocations to module description.
2486         * m4/md2.m4: Remove file.
2487         * modules/crypto/md2 (Files): Remove it.
2488         (configure.ac): Remove gl_MD2 call.
2489         (Makefile.am): Augment lib_SOURCES.
2490
2491 2011-05-23  Bruno Haible  <bruno@clisp.org>
2492
2493         long-options: Move AC_LIBOBJ invocations to module description.
2494         * m4/long-options.m4: Remove file.
2495         * modules/long-options (Files): Remove it.
2496         (configure.ac): Remove gl_LONG_OPTIONS call.
2497         (Makefile.am): Augment lib_SOURCES.
2498
2499 2011-05-23  Bruno Haible  <bruno@clisp.org>
2500
2501         i-ring: Move AC_LIBOBJ invocations to module description.
2502         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
2503         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
2504
2505 2011-05-23  Bruno Haible  <bruno@clisp.org>
2506
2507         idcache: Move AC_LIBOBJ invocations to module description.
2508         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
2509         * modules/idcache (Makefile.am): Augment lib_SOURCES.
2510
2511 2011-05-23  Bruno Haible  <bruno@clisp.org>
2512
2513         human: Move AC_LIBOBJ invocations to module description.
2514         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
2515         * modules/human (Makefile.am): Augment lib_SOURCES.
2516
2517 2011-05-23  Bruno Haible  <bruno@clisp.org>
2518
2519         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
2520         * m4/hmac-sha1.m4: Remove file.
2521         * modules/crypto/hmac-sha1 (Files): Remove it.
2522         (configure.ac): Remove gl_HMAC_SHA1 call.
2523         (Makefile.am): Augment lib_SOURCES.
2524
2525 2011-05-23  Bruno Haible  <bruno@clisp.org>
2526
2527         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
2528         * m4/hmac-md5.m4: Remove file.
2529         * modules/crypto/hmac-md5 (Files): Remove it.
2530         (configure.ac): Remove gl_HMAC_MD5 call.
2531         (Makefile.am): Augment lib_SOURCES.
2532
2533 2011-05-23  Bruno Haible  <bruno@clisp.org>
2534
2535         hash: Move AC_LIBOBJ invocations to module description.
2536         * m4/hash.m4: Remove file.
2537         * modules/hash (Files): Remove it.
2538         (configure.ac): Remove gl_HASH call.
2539         (Makefile.am): Augment lib_SOURCES.
2540
2541 2011-05-23  Bruno Haible  <bruno@clisp.org>
2542
2543         hard-locale: Move AC_LIBOBJ invocations to module description.
2544         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
2545         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
2546
2547 2011-05-23  Bruno Haible  <bruno@clisp.org>
2548
2549         getugroups: Move AC_LIBOBJ invocations to module description.
2550         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
2551         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
2552
2553 2011-05-23  Bruno Haible  <bruno@clisp.org>
2554
2555         gettime: Move AC_LIBOBJ invocations to module description.
2556         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
2557         * modules/gettime (Makefile.am): Augment lib_SOURCES.
2558
2559 2011-05-23  Bruno Haible  <bruno@clisp.org>
2560
2561         getndelim2: Move AC_LIBOBJ invocations to module description.
2562         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
2563         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
2564
2565 2011-05-23  Bruno Haible  <bruno@clisp.org>
2566
2567         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
2568         * m4/gc-pbkdf2-sha1.m4: Remove file.
2569         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
2570         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
2571         (Makefile.am): Augment lib_SOURCES.
2572
2573 2011-05-23  Bruno Haible  <bruno@clisp.org>
2574
2575         fts: Move AC_LIBOBJ invocations to module description.
2576         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
2577         * modules/fts (configure.ac): ... to here.
2578
2579 2011-05-23  Bruno Haible  <bruno@clisp.org>
2580
2581         file-type: Move AC_LIBOBJ invocations to module description.
2582         * m4/file-type.m4: Remove file.
2583         * modules/file-type (Files): Remove it.
2584         (configure.ac): Remove gl_FILE_TYPE call.
2585         (Makefile.am): Augment lib_SOURCES.
2586
2587 2011-05-23  Bruno Haible  <bruno@clisp.org>
2588
2589         filenamecat*: Respect rules for use of AC_LIBOBJ.
2590         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
2591         Remove AC_LIBOBJ invocation.
2592         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
2593         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
2594
2595 2011-05-23  Bruno Haible  <bruno@clisp.org>
2596
2597         filemode: Move AC_LIBOBJ invocations to module description.
2598         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
2599         * modules/filemode (Makefile.am): Augment lib_SOURCES.
2600
2601 2011-05-23  Bruno Haible  <bruno@clisp.org>
2602
2603         openat-safer: Move AC_LIBOBJ invocations to module description.
2604         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
2605         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
2606
2607 2011-05-23  Bruno Haible  <bruno@clisp.org>
2608
2609         fcntl-safer: Move AC_LIBOBJ invocations to module description.
2610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
2611         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
2612
2613 2011-05-23  Bruno Haible  <bruno@clisp.org>
2614
2615         exclude: Move AC_LIBOBJ invocations to module description.
2616         * m4/exclude.m4: Remove file.
2617         * modules/exclude (Files): Remove it.
2618         (configure.ac): Remove gl_EXCLUDE call.
2619         (Makefile.am): Augment lib_SOURCES.
2620
2621 2011-05-23  Bruno Haible  <bruno@clisp.org>
2622
2623         dirname*: Respect rules for use of AC_LIBOBJ.
2624         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
2625         invocations.
2626         * modules/dirname (Makefile.am): Augment lib_SOURCES.
2627         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
2628
2629 2011-05-23  Bruno Haible  <bruno@clisp.org>
2630
2631         dirent-safer: Move AC_LIBOBJ invocations to module description.
2632         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
2633         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
2634
2635 2011-05-23  Bruno Haible  <bruno@clisp.org>
2636
2637         crypto/des: Move AC_LIBOBJ invocations to module description.
2638         * m4/des.m4: Remove file.
2639         * modules/crypto/des (Files): Remove it.
2640         (configure.ac): Remove gl_DES call.
2641         (Makefile.am): Augment lib_SOURCES.
2642
2643 2011-05-23  Bruno Haible  <bruno@clisp.org>
2644
2645         cycle-check: Move AC_LIBOBJ invocations to module description.
2646         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
2647         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
2648
2649 2011-05-23  Bruno Haible  <bruno@clisp.org>
2650
2651         c-strtold: Move AC_LIBOBJ invocations to module description.
2652         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
2653         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
2654
2655 2011-05-23  Bruno Haible  <bruno@clisp.org>
2656
2657         c-strtod: Move AC_LIBOBJ invocations to module description.
2658         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
2659         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
2660
2661 2011-05-23  Bruno Haible  <bruno@clisp.org>
2662
2663         crc: Move AC_LIBOBJ invocations to module description.
2664         * m4/crc.m4: Remove file.
2665         * modules/crc (Files): Remove it.
2666         (configure.ac): Remove gl_CRC call.
2667         (Makefile.am): Augment lib_SOURCES.
2668
2669 2011-05-23  Bruno Haible  <bruno@clisp.org>
2670
2671         close-stream: Move AC_LIBOBJ invocations to module description.
2672         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
2673         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
2674
2675 2011-05-23  Bruno Haible  <bruno@clisp.org>
2676
2677         closeout: Move AC_LIBOBJ invocations to module description.
2678         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
2679         * modules/closeout (Makefile.am): Augment lib_SOURCES.
2680
2681 2011-05-23  Bruno Haible  <bruno@clisp.org>
2682
2683         closein: Move AC_LIBOBJ invocations to module description.
2684         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
2685         * modules/closein (Makefile.am): Augment lib_SOURCES.
2686
2687 2011-05-23  Bruno Haible  <bruno@clisp.org>
2688
2689         cloexec: Move AC_LIBOBJ invocations to module description.
2690         * m4/cloexec.m4: Remove file.
2691         * modules/cloexec (Files): Remove it.
2692         (configure.ac): Remove gl_CLOEXEC call.
2693         (Makefile.am): Augment lib_SOURCES.
2694
2695 2011-05-23  Bruno Haible  <bruno@clisp.org>
2696
2697         check-version: Move AC_LIBOBJ invocations to module description.
2698         * m4/check-version.m4: Remove file.
2699         * modules/check-version (Files): Remove it.
2700         (configure.ac): Remove gl_CHECK_VERSION call.
2701         (Makefile.am): Augment lib_SOURCES.
2702
2703 2011-05-23  Bruno Haible  <bruno@clisp.org>
2704
2705         chdir-safer: Move AC_LIBOBJ invocations to module description.
2706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
2707         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
2708
2709 2011-05-23  Bruno Haible  <bruno@clisp.org>
2710
2711         canonicalize: Move AC_LIBOBJ invocations to module description.
2712         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
2713         AC_LIBOBJ invocation.
2714         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
2715
2716 2011-05-23  Bruno Haible  <bruno@clisp.org>
2717
2718         canon-host: Move AC_LIBOBJ invocations to module description.
2719         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
2720         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
2721         instead of gl_CANON_HOST.
2722         (Makefile.am): Augment lib_SOURCES.
2723
2724 2011-05-23  Bruno Haible  <bruno@clisp.org>
2725
2726         backupfile: Move AC_LIBOBJ invocations to module description.
2727         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
2728         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
2729
2730 2011-05-23  Bruno Haible  <bruno@clisp.org>
2731
2732         argmatch: Move AC_LIBOBJ invocations to module description.
2733         * m4/argmatch.m4: Remove file.
2734         * modules/argmatch (Files): Remove it.
2735         (configure.ac): Remove gl_ARGMATCH call.
2736         (Makefile.am): Augment lib_SOURCES.
2737
2738 2011-05-23  Bruno Haible  <bruno@clisp.org>
2739
2740         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
2741         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
2742         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
2743
2744 2011-05-23  Bruno Haible  <bruno@clisp.org>
2745
2746         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
2747         * m4/arcfour.m4: Remove file.
2748         * modules/crypto/arcfour (Files): Remove it.
2749         (configure.ac): Remove gl_ARCFOUR call.
2750         (Makefile.am): Augment lib_SOURCES.
2751
2752 2011-05-22  Bruno Haible  <bruno@clisp.org>
2753
2754         write: Move AC_LIBOBJ invocations to module description.
2755         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
2756         * modules/write (configure.ac): ... to here.
2757
2758 2011-05-22  Bruno Haible  <bruno@clisp.org>
2759
2760         wmemset: Move AC_LIBOBJ invocations to module description.
2761         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
2762         here...
2763         * modules/wmemset (configure.ac): ... to here.
2764
2765 2011-05-22  Bruno Haible  <bruno@clisp.org>
2766
2767         wmemmove: Move AC_LIBOBJ invocations to module description.
2768         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
2769         here...
2770         * modules/wmemmove (configure.ac): ... to here.
2771
2772 2011-05-22  Bruno Haible  <bruno@clisp.org>
2773
2774         wmemcpy: Move AC_LIBOBJ invocations to module description.
2775         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
2776         here...
2777         * modules/wmemcpy (configure.ac): ... to here.
2778
2779 2011-05-22  Bruno Haible  <bruno@clisp.org>
2780
2781         wmemcmp: Move AC_LIBOBJ invocations to module description.
2782         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
2783         here...
2784         * modules/wmemcmp (configure.ac): ... to here.
2785
2786 2011-05-22  Bruno Haible  <bruno@clisp.org>
2787
2788         wmemchr: Move AC_LIBOBJ invocations to module description.
2789         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
2790         here...
2791         * modules/wmemchr (configure.ac): ... to here.
2792
2793 2011-05-22  Bruno Haible  <bruno@clisp.org>
2794
2795         wcswidth: Move AC_LIBOBJ invocations to module description.
2796         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
2797         here...
2798         * modules/wcswidth (configure.ac): ... to here.
2799
2800 2011-05-22  Bruno Haible  <bruno@clisp.org>
2801
2802         wcwidth: Respect rules for use of AC_LIBOBJ.
2803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
2804         invocation from here...
2805         * modules/wcwidth (configure.ac): ... to here.
2806         (Depends-on): Update conditions.
2807
2808 2011-05-22  Bruno Haible  <bruno@clisp.org>
2809
2810         wctype: Move AC_LIBOBJ invocations to module description.
2811         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
2812         invocation from here...
2813         * modules/wctype (configure.ac): ... to here.
2814         (Depends-on): Update conditions.
2815
2816 2011-05-22  Bruno Haible  <bruno@clisp.org>
2817
2818         wctrans: Move AC_LIBOBJ invocations to module description.
2819         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
2820         invocation from here...
2821         * modules/wctrans (configure.ac): ... to here.
2822
2823 2011-05-22  Bruno Haible  <bruno@clisp.org>
2824
2825         wctomb: Move AC_LIBOBJ invocations to module description.
2826         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
2827         invocations from here...
2828         * modules/wctomb (configure.ac): ... to here.
2829
2830 2011-05-22  Bruno Haible  <bruno@clisp.org>
2831
2832         wctob: Move AC_LIBOBJ invocations to module description.
2833         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
2834         gl_PREREQ_WCTOB invocations from here...
2835         * modules/wctob (configure.ac): ... to here.
2836         (Depends-on): Update conditions.
2837
2838 2011-05-22  Bruno Haible  <bruno@clisp.org>
2839
2840         wcsxfrm: Move AC_LIBOBJ invocations to module description.
2841         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
2842         here...
2843         * modules/wcsxfrm (configure.ac): ... to here.
2844
2845 2011-05-22  Bruno Haible  <bruno@clisp.org>
2846
2847         wcstok: Move AC_LIBOBJ invocations to module description.
2848         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
2849         * modules/wcstok (configure.ac): ... to here.
2850
2851 2011-05-22  Bruno Haible  <bruno@clisp.org>
2852
2853         wcsstr: Move AC_LIBOBJ invocations to module description.
2854         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
2855         * modules/wcsstr (configure.ac): ... to here.
2856
2857 2011-05-22  Bruno Haible  <bruno@clisp.org>
2858
2859         wcsspn: Move AC_LIBOBJ invocations to module description.
2860         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
2861         * modules/wcsspn (configure.ac): ... to here.
2862
2863 2011-05-22  Bruno Haible  <bruno@clisp.org>
2864
2865         wcsrtombs: Move AC_LIBOBJ invocations to module description.
2866         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
2867         gl_PREREQ_WCSRTOMBS invocations from here...
2868         * modules/wcsrtombs (configure.ac): ... to here.
2869
2870 2011-05-22  Bruno Haible  <bruno@clisp.org>
2871
2872         wcsrchr: Move AC_LIBOBJ invocations to module description.
2873         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
2874         here...
2875         * modules/wcsrchr (configure.ac): ... to here.
2876
2877 2011-05-22  Bruno Haible  <bruno@clisp.org>
2878
2879         wcspbrk: Move AC_LIBOBJ invocations to module description.
2880         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
2881         here...
2882         * modules/wcspbrk (configure.ac): ... to here.
2883
2884 2011-05-22  Bruno Haible  <bruno@clisp.org>
2885
2886         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
2887         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
2888         gl_PREREQ_WCSNRTOMBS invocations from here...
2889         * modules/wcsnrtombs (configure.ac): ... to here.
2890
2891 2011-05-22  Bruno Haible  <bruno@clisp.org>
2892
2893         wcsnlen: Move AC_LIBOBJ invocations to module description.
2894         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
2895         here...
2896         * modules/wcsnlen (configure.ac): ... to here.
2897
2898 2011-05-22  Bruno Haible  <bruno@clisp.org>
2899
2900         wcsncpy: Move AC_LIBOBJ invocations to module description.
2901         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
2902         here...
2903         * modules/wcsncpy (configure.ac): ... to here.
2904
2905 2011-05-22  Bruno Haible  <bruno@clisp.org>
2906
2907         wcsncmp: Move AC_LIBOBJ invocations to module description.
2908         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
2909         here...
2910         * modules/wcsncmp (configure.ac): ... to here.
2911
2912 2011-05-22  Bruno Haible  <bruno@clisp.org>
2913
2914         wcsncat: Move AC_LIBOBJ invocations to module description.
2915         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
2916         here...
2917         * modules/wcsncat (configure.ac): ... to here.
2918
2919 2011-05-22  Bruno Haible  <bruno@clisp.org>
2920
2921         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
2922         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
2923         from here...
2924         * modules/wcsncasecmp (configure.ac): ... to here.
2925
2926 2011-05-22  Bruno Haible  <bruno@clisp.org>
2927
2928         wcslen: Move AC_LIBOBJ invocations to module description.
2929         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
2930         * modules/wcslen (configure.ac): ... to here.
2931
2932 2011-05-22  Bruno Haible  <bruno@clisp.org>
2933
2934         wcsdup: Move AC_LIBOBJ invocations to module description.
2935         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
2936         * modules/wcsdup (configure.ac): ... to here.
2937
2938 2011-05-22  Bruno Haible  <bruno@clisp.org>
2939
2940         wcscspn: Move AC_LIBOBJ invocations to module description.
2941         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
2942         here...
2943         * modules/wcscspn (configure.ac): ... to here.
2944
2945 2011-05-22  Bruno Haible  <bruno@clisp.org>
2946
2947         wcscpy: Move AC_LIBOBJ invocations to module description.
2948         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
2949         * modules/wcscpy (configure.ac): ... to here.
2950
2951 2011-05-22  Bruno Haible  <bruno@clisp.org>
2952
2953         wcscoll: Move AC_LIBOBJ invocations to module description.
2954         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
2955         here...
2956         * modules/wcscoll (configure.ac): ... to here.
2957
2958 2011-05-22  Bruno Haible  <bruno@clisp.org>
2959
2960         wcscmp: Move AC_LIBOBJ invocations to module description.
2961         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
2962         * modules/wcscmp (configure.ac): ... to here.
2963
2964 2011-05-22  Bruno Haible  <bruno@clisp.org>
2965
2966         wcschr: Move AC_LIBOBJ invocations to module description.
2967         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
2968         * modules/wcschr (configure.ac): ... to here.
2969
2970 2011-05-22  Bruno Haible  <bruno@clisp.org>
2971
2972         wcscat: Move AC_LIBOBJ invocations to module description.
2973         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
2974         * modules/wcscat (configure.ac): ... to here.
2975
2976 2011-05-22  Bruno Haible  <bruno@clisp.org>
2977
2978         wcscasecmp: Move AC_LIBOBJ invocations to module description.
2979         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
2980         here...
2981         * modules/wcscasecmp (configure.ac): ... to here.
2982
2983 2011-05-22  Bruno Haible  <bruno@clisp.org>
2984
2985         wcrtomb: Move AC_LIBOBJ invocations to module description.
2986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
2987         invocations from here...
2988         * modules/wcrtomb (configure.ac): ... to here.
2989
2990 2011-05-22  Bruno Haible  <bruno@clisp.org>
2991
2992         wcpncpy: Move AC_LIBOBJ invocations to module description.
2993         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
2994         here...
2995         * modules/wcpncpy (configure.ac): ... to here.
2996
2997 2011-05-22  Bruno Haible  <bruno@clisp.org>
2998
2999         wcpcpy: Move AC_LIBOBJ invocations to module description.
3000         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3001         * modules/wcpcpy (configure.ac): ... to here.
3002
3003 2011-05-22  Bruno Haible  <bruno@clisp.org>
3004
3005         waitpid: Move AC_LIBOBJ invocations to module description.
3006         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3007         invocation from here...
3008         * modules/waitpid (configure.ac): ... to here.
3009
3010 2011-05-22  Bruno Haible  <bruno@clisp.org>
3011
3012         utimensat: Move AC_LIBOBJ invocations to module description.
3013         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3014         here...
3015         * modules/utimensat (configure.ac): ... to here.
3016
3017 2011-05-22  Bruno Haible  <bruno@clisp.org>
3018
3019         usleep: Move AC_LIBOBJ invocations to module description.
3020         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3021         here...
3022         * modules/usleep (configure.ac): ... to here.
3023
3024 2011-05-22  Bruno Haible  <bruno@clisp.org>
3025
3026         unlockpt: Move AC_LIBOBJ invocations to module description.
3027         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3028         gl_PREREQ_UNLOCKPT invocations from here...
3029         * modules/unlockpt (configure.ac): ... to here.
3030
3031 2011-05-22  Bruno Haible  <bruno@clisp.org>
3032
3033         unlink: Respect rules for use of AC_LIBOBJ.
3034         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3035         * modules/unlink (configure.ac): ... to here.
3036
3037 2011-05-22  Bruno Haible  <bruno@clisp.org>
3038
3039         uname: Move AC_LIBOBJ invocations to module description.
3040         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3042         here...
3043         * modules/uname (configure.ac): ... to here.
3044
3045 2011-05-22  Bruno Haible  <bruno@clisp.org>
3046
3047         ttyname_r: Move AC_LIBOBJ invocations to module description.
3048         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3049         gl_PREREQ_TTYNAME_R invocations from here...
3050         * modules/ttyname_r (configure.ac): ... to here.
3051
3052 2011-05-22  Bruno Haible  <bruno@clisp.org>
3053
3054         tsearch: Move AC_LIBOBJ invocations to module description.
3055         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3056         invocations from here...
3057         * modules/tsearch (configure.ac): ... to here.
3058
3059 2011-05-22  Bruno Haible  <bruno@clisp.org>
3060
3061         towctrans: Move AC_LIBOBJ invocations to module description.
3062         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3063         AC_LIBOBJ invocation from here...
3064         * modules/towctrans (configure.ac): ... to here.
3065
3066 2011-05-22  Bruno Haible  <bruno@clisp.org>
3067
3068         tmpfile: Move AC_LIBOBJ invocations to module description.
3069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3070         invocations from here...
3071         * modules/tmpfile (configure.ac): ... to here.
3072
3073 2011-05-22  Bruno Haible  <bruno@clisp.org>
3074
3075         times: Move AC_LIBOBJ invocations to module description.
3076         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3077         * modules/times (configure.ac): ... to here.
3078
3079 2011-05-22  Bruno Haible  <bruno@clisp.org>
3080
3081         time_r: Move AC_LIBOBJ invocations to module description.
3082         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3083         invocations from here...
3084         * modules/time_r (configure.ac): ... to here.
3085
3086 2011-05-22  Bruno Haible  <bruno@clisp.org>
3087
3088         timegm: Move AC_LIBOBJ invocations to module description.
3089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3090         invocations from here...
3091         * modules/timegm (configure.ac): ... to here.
3092
3093 2011-05-22  Bruno Haible  <bruno@clisp.org>
3094
3095         tcgetsid: Move AC_LIBOBJ invocations to module description.
3096         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3097         and gl_PREREQ_TCGETSID invocations from here...
3098         * modules/tcgetsid (configure.ac): ... to here.
3099         (Depends-on): Update conditions.
3100
3101 2011-05-22  Bruno Haible  <bruno@clisp.org>
3102
3103         symlinkat: Move AC_LIBOBJ invocations to module description.
3104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3105         here...
3106         * modules/symlinkat (configure.ac): ... to here.
3107
3108 2011-05-22  Bruno Haible  <bruno@clisp.org>
3109
3110         symlink: Move AC_LIBOBJ invocations to module description.
3111         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3112         here...
3113         * modules/symlink (configure.ac): ... to here.
3114
3115 2011-05-22  Bruno Haible  <bruno@clisp.org>
3116
3117         strverscmp: Move AC_LIBOBJ invocations to module description.
3118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3120         from here...
3121         * modules/strverscmp (configure.ac): ... to here.
3122
3123 2011-05-22  Bruno Haible  <bruno@clisp.org>
3124
3125         strtok_r: Move AC_LIBOBJ invocations to module description.
3126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3127         and gl_PREREQ_STRTOK_R invocations from here...
3128         * modules/strtok_r (configure.ac): ... to here.
3129         (Depends-on): Update conditions.
3130
3131 2011-05-22  Bruno Haible  <bruno@clisp.org>
3132
3133         strtoumax: Move AC_LIBOBJ invocations to module description.
3134         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3136         from here...
3137         * modules/strtoumax (configure.ac): ... to here.
3138
3139 2011-05-22  Bruno Haible  <bruno@clisp.org>
3140
3141         strtoimax: Move AC_LIBOBJ invocations to module description.
3142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3144         from here...
3145         * modules/strtoimax (configure.ac): ... to here.
3146
3147 2011-05-22  Bruno Haible  <bruno@clisp.org>
3148
3149         strtoull: Move AC_LIBOBJ invocations to module description.
3150         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3152         from here...
3153         * modules/strtoull (configure.ac): ... to here.
3154
3155 2011-05-22  Bruno Haible  <bruno@clisp.org>
3156
3157         strtoll: Move AC_LIBOBJ invocations to module description.
3158         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3160         here...
3161         * modules/strtoll (configure.ac): ... to here.
3162
3163 2011-05-22  Bruno Haible  <bruno@clisp.org>
3164
3165         strtoul: Move AC_LIBOBJ invocations to module description.
3166         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3167         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3168         * modules/strtoul (configure.ac): ... to here.
3169
3170 2011-05-22  Bruno Haible  <bruno@clisp.org>
3171
3172         strtol: Move AC_LIBOBJ invocations to module description.
3173         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3174         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3175         * modules/strtol (configure.ac): ... to here.
3176
3177 2011-05-22  Bruno Haible  <bruno@clisp.org>
3178
3179         strtod: Move AC_LIBOBJ invocations to module description.
3180         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3181         invocations from here...
3182         * modules/strtod (configure.ac): ... to here.
3183
3184 2011-05-22  Bruno Haible  <bruno@clisp.org>
3185
3186         strstr*: Move AC_LIBOBJ invocations to module description.
3187         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3188         invocations from here...
3189         * modules/strstr-simple (configure.ac): ... to here.
3190         * modules/strstr (configure.ac): ... and here.
3191
3192 2011-05-22  Bruno Haible  <bruno@clisp.org>
3193
3194         strsignal: Move AC_LIBOBJ invocations to module description.
3195         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3196         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3197         * modules/strsignal (configure.ac): ... to here.
3198         (Depends-on): Update conditions.
3199
3200 2011-05-22  Bruno Haible  <bruno@clisp.org>
3201
3202         strsep: Move AC_LIBOBJ invocations to module description.
3203         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3205         here...
3206         * modules/strsep (configure.ac): ... to here.
3207
3208 2011-05-22  Bruno Haible  <bruno@clisp.org>
3209
3210         strptime: Move AC_LIBOBJ invocations to module description.
3211         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3212         gl_PREREQ_STRPTIME invocations from here...
3213         * modules/strptime (configure.ac): ... to here.
3214
3215 2011-05-22  Bruno Haible  <bruno@clisp.org>
3216
3217         strpbrk: Move AC_LIBOBJ invocations to module description.
3218         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3220         here...
3221         * modules/strpbrk (configure.ac): ... to here.
3222
3223 2011-05-22  Bruno Haible  <bruno@clisp.org>
3224
3225         strnlen: Move AC_LIBOBJ invocations to module description.
3226         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3227         invocations from here...
3228         * modules/strnlen (configure.ac): ... to here.
3229
3230 2011-05-22  Bruno Haible  <bruno@clisp.org>
3231
3232         strndup: Move AC_LIBOBJ invocations to module description.
3233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3234         invocations from here...
3235         * modules/strndup (configure.ac): ... to here.
3236         (Depends-on): Update conditions.
3237
3238 2011-05-22  Bruno Haible  <bruno@clisp.org>
3239
3240         strncat: Move AC_LIBOBJ invocations to module description.
3241         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3242         invocations from here...
3243         * modules/strncat (configure.ac): ... to here.
3244
3245 2011-05-22  Bruno Haible  <bruno@clisp.org>
3246
3247         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3248         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3249         invocations from here...
3250         * modules/strdup (configure.ac): ... to here.
3251         * modules/strdup-posix (configure.ac): ... and here.
3252
3253 2011-05-22  Bruno Haible  <bruno@clisp.org>
3254
3255         strcspn: Move AC_LIBOBJ invocations to module description.
3256         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3258         here...
3259         * modules/strcspn (configure.ac): ... to here.
3260
3261 2011-05-22  Bruno Haible  <bruno@clisp.org>
3262
3263         strchrnul: Move AC_LIBOBJ invocations to module description.
3264         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3265         gl_PREREQ_STRCHRNUL invocations from here...
3266         * modules/strchrnul (configure.ac): ... to here.
3267
3268 2011-05-22  Bruno Haible  <bruno@clisp.org>
3269
3270         strcasestr*: Move AC_LIBOBJ invocations to module description.
3271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3272         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3273         * modules/strcasestr-simple (configure.ac): ... to here.
3274         * modules/strcasestr (configure.ac): ... and here.
3275
3276 2011-05-22  Bruno Haible  <bruno@clisp.org>
3277
3278         strcase: Move AC_LIBOBJ invocations to module description.
3279         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3280         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3281         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3282         gl_PREREQ_STRNCASECMP invocations from here...
3283         * modules/strcase (configure.ac): ... to here.
3284
3285 2011-05-22  Bruno Haible  <bruno@clisp.org>
3286
3287         stpncpy: Move AC_LIBOBJ invocations to module description.
3288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3289         here...
3290         * modules/stpncpy (configure.ac): ... to here.
3291
3292 2011-05-22  Bruno Haible  <bruno@clisp.org>
3293
3294         stpcpy: Move AC_LIBOBJ invocations to module description.
3295         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3297         here...
3298         * modules/stpcpy (configure.ac): ... to here.
3299
3300 2011-05-21  Bruno Haible  <bruno@clisp.org>
3301
3302         stat: Move AC_LIBOBJ invocations to module description.
3303         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3304         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3305         here...
3306         * modules/stat (configure.ac): ... to here.
3307
3308 2011-05-21  Bruno Haible  <bruno@clisp.org>
3309
3310         sleep: Move AC_LIBOBJ invocations to module description.
3311         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3312         * modules/sleep (configure.ac): ... to here.
3313
3314 2011-05-21  Bruno Haible  <bruno@clisp.org>
3315
3316         signbit: Move AC_LIBOBJ invocations to module description.
3317         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3318         * modules/signbit (configure.ac): ... to here.
3319
3320 2011-05-21  Bruno Haible  <bruno@clisp.org>
3321
3322         sigprocmask: Move AC_LIBOBJ invocations to module description.
3323         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3324         gl_PREREQ_SIGPROMASK invocations from here...
3325         * modules/sigprocmask (configure.ac): ... to here.
3326
3327 2011-05-21  Bruno Haible  <bruno@clisp.org>
3328
3329         sigaction: Move AC_LIBOBJ invocations to module description.
3330         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3331         gl_PREREQ_SIGACTION invocations from here...
3332         * modules/sigaction (configure.ac): ... to here.
3333
3334 2011-05-21  Bruno Haible  <bruno@clisp.org>
3335
3336         sig2str: Move AC_LIBOBJ invocations to module description.
3337         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3338         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3339         here...
3340         * modules/sig2str (configure.ac): ... to here.
3341
3342 2011-05-21  Bruno Haible  <bruno@clisp.org>
3343
3344         setlocale: Move AC_LIBOBJ invocations to module description.
3345         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3346         gl_PREREQ_SETLOCALE invocations from here...
3347         * modules/setlocale (configure.ac): ... to here.
3348
3349 2011-05-21  Bruno Haible  <bruno@clisp.org>
3350
3351         unsetenv: Move AC_LIBOBJ invocations to module description.
3352         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3353         and gl_PREREQ_UNSETENV invocations from here...
3354         * modules/unsetenv (configure.ac): ... to here.
3355         (Depends-on): Update.
3356
3357 2011-05-21  Bruno Haible  <bruno@clisp.org>
3358
3359         setenv: Move AC_LIBOBJ invocations to module description.
3360         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3361         here...
3362         * modules/setenv (configure.ac): ... to here.
3363
3364 2011-05-21  Bruno Haible  <bruno@clisp.org>
3365
3366         selinux-h: Move AC_LIBOBJ invocations to module description.
3367         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3368         AC_LIBOBJ invocation from here...
3369         * modules/selinux-h (configure.ac): ... to here.
3370
3371 2011-05-21  Bruno Haible  <bruno@clisp.org>
3372
3373         select: Respect rules for use of AC_LIBOBJ.
3374         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3375         here...
3376         * modules/select (configure.ac): ... to here.
3377
3378 2011-05-21  Bruno Haible  <bruno@clisp.org>
3379
3380         scandir: Move AC_LIBOBJ invocations to module description.
3381         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3382         invocations from here...
3383         * modules/scandir (configure.ac): ... to here.
3384
3385 2011-05-21  Bruno Haible  <bruno@clisp.org>
3386
3387         rpmatch: Move AC_LIBOBJ invocations to module description.
3388         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3390         here...
3391         * modules/rpmatch (configure.ac): ... to here.
3392
3393 2011-05-21  Bruno Haible  <bruno@clisp.org>
3394
3395         rmdir: Respect rules for use of AC_LIBOBJ.
3396         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3397         * modules/rmdir (configure.ac): ... to here.
3398
3399 2011-05-21  Bruno Haible  <bruno@clisp.org>
3400
3401         renameat: Move AC_LIBOBJ invocations to module description.
3402         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3403         here...
3404         * modules/renameat (configure.ac): ... to here.
3405
3406 2011-05-21  Bruno Haible  <bruno@clisp.org>
3407
3408         rename: Respect rules for use of AC_LIBOBJ.
3409         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3410         here...
3411         * modules/rename (configure.ac): ... to here.
3412
3413 2011-05-21  Bruno Haible  <bruno@clisp.org>
3414
3415         remove: Move AC_LIBOBJ invocations to module description.
3416         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3417         here...
3418         * modules/remove (configure.ac): ... to here.
3419
3420 2011-05-21  Bruno Haible  <bruno@clisp.org>
3421
3422         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3424         macro.
3425         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3426         * modules/relocatable-lib (configure.ac): ... to here.
3427         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3428         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3429
3430 2011-05-21  Bruno Haible  <bruno@clisp.org>
3431
3432         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3433         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3434         here...
3435         * modules/relocatable-prog (configure.ac): ... to here.
3436
3437 2011-05-21  Bruno Haible  <bruno@clisp.org>
3438
3439         regex: Move AC_LIBOBJ invocations to module description.
3440         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3441         invocations from here...
3442         * modules/regex (configure.ac): ... to here.
3443
3444 2011-05-21  Bruno Haible  <bruno@clisp.org>
3445
3446         realloc-*: Move AC_LIBOBJ invocations to module description.
3447         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3448         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3449         AC_LIBOBJ invocations from here...
3450         * modules/realloc-gnu (configure.ac): ... to here.
3451         * modules/realloc-posix (configure.ac): ... and here.
3452
3453 2011-05-21  Bruno Haible  <bruno@clisp.org>
3454
3455         readutmp: Move AC_LIBOBJ invocations to module description.
3456         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3457         * modules/readutmp (configure.ac): ... to here.
3458
3459 2011-05-21  Bruno Haible  <bruno@clisp.org>
3460
3461         readlinkat: Move AC_LIBOBJ invocations to module description.
3462         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3463         here...
3464         * modules/readlinkat (configure.ac): ... to here.
3465
3466 2011-05-21  Bruno Haible  <bruno@clisp.org>
3467
3468         readlink: Move AC_LIBOBJ invocations to module description.
3469         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
3470         gl_PREREQ_READLINK invocations from here...
3471         * modules/readlink (configure.ac): ... to here.
3472
3473 2011-05-21  Bruno Haible  <bruno@clisp.org>
3474
3475         readline: Move AC_LIBOBJ invocations to module description.
3476         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
3477         gl_PREREQ_READLINE invocations from here...
3478         * modules/readline (configure.ac): ... to here.
3479
3480 2011-05-21  Bruno Haible  <bruno@clisp.org>
3481
3482         read: Move AC_LIBOBJ invocations to module description.
3483         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
3484         * modules/read (configure.ac): ... to here.
3485
3486 2011-05-21  Bruno Haible  <bruno@clisp.org>
3487
3488         rawmemchr: Move AC_LIBOBJ invocations to module description.
3489         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
3490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
3491         from here...
3492         * modules/rawmemchr (configure.ac): ... to here.
3493
3494 2011-05-21  Bruno Haible  <bruno@clisp.org>
3495
3496         random_r: Move AC_LIBOBJ invocations to module description.
3497         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
3498         gl_PREREQ_RANDOM_R invocations from here...
3499         * modules/random_r (configure.ac): ... to here.
3500
3501 2011-05-21  Bruno Haible  <bruno@clisp.org>
3502
3503         pwrite: Move AC_LIBOBJ invocations to module description.
3504         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
3505         * modules/pwrite (configure.ac): ... to here.
3506
3507 2011-05-21  Bruno Haible  <bruno@clisp.org>
3508
3509         putenv: Move AC_LIBOBJ invocations to module description.
3510         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
3511         * modules/putenv (configure.ac): ... to here.
3512
3513 2011-05-21  Bruno Haible  <bruno@clisp.org>
3514
3515         login_tty: Move AC_LIBOBJ invocations to module description.
3516         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
3517         * modules/login_tty (configure.ac): ... to here.
3518
3519 2011-05-21  Bruno Haible  <bruno@clisp.org>
3520
3521         openpty: Move AC_LIBOBJ invocations to module description.
3522         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
3523         * modules/openpty (configure.ac): ... to here.
3524
3525 2011-05-21  Bruno Haible  <bruno@clisp.org>
3526
3527         forkpty: Move AC_LIBOBJ invocations to module description.
3528         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
3529         * modules/forkpty (configure.ac): ... to here.
3530
3531 2011-05-21  Bruno Haible  <bruno@clisp.org>
3532
3533         ptsname: Move AC_LIBOBJ invocations to module description.
3534         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
3535         invocations from here...
3536         * modules/ptsname (configure.ac): ... to here.
3537
3538 2011-05-21  Bruno Haible  <bruno@clisp.org>
3539
3540         pread: Move AC_LIBOBJ invocations to module description.
3541         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
3542         * modules/pread (configure.ac): ... to here.
3543
3544 2011-05-21  Bruno Haible  <bruno@clisp.org>
3545
3546         posix_spawn*: Move AC_LIBOBJ invocations to module description.
3547         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
3548         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
3549         * modules/posix_spawn (configure.ac): ... to here.
3550         * modules/posix_spawnp (configure.ac): ... and here.
3551
3552 2011-05-21  Bruno Haible  <bruno@clisp.org>
3553
3554         popen: Move AC_LIBOBJ invocations to module description.
3555         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
3556         invocations from here...
3557         * modules/popen (configure.ac): ... to here.
3558
3559 2011-05-21  Bruno Haible  <bruno@clisp.org>
3560
3561         poll: Move AC_LIBOBJ invocations to module description.
3562         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
3563         invocations from here...
3564         * modules/poll (configure.ac): ... to here.
3565
3566 2011-05-21  Bruno Haible  <bruno@clisp.org>
3567
3568         pipe-posix: Move AC_LIBOBJ invocations to module description.
3569         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
3570         * modules/pipe-posix (configure.ac): ... to here.
3571
3572 2011-05-21  Bruno Haible  <bruno@clisp.org>
3573
3574         openat: Respect rules for use of AC_LIBOBJ.
3575         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
3576         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3577         * modules/openat (configure.ac): ... to here.
3578
3579 2011-05-21  Bruno Haible  <bruno@clisp.org>
3580
3581         obstack-printf*: Move AC_LIBOBJ invocations to module description.
3582         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
3583         invocation from here...
3584         * modules/obstack-printf (configure.ac): ... to here.
3585         * modules/obstack-printf-posix (configure.ac): ... and here.
3586
3587 2011-05-21  Bruno Haible  <bruno@clisp.org>
3588
3589         nl_langinfo: Move AC_LIBOBJ invocations to module description.
3590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
3591         from here...
3592         * modules/nl_langinfo (configure.ac): ... to here.
3593
3594 2011-05-21  Bruno Haible  <bruno@clisp.org>
3595
3596         nanosleep: Move AC_LIBOBJ invocations to module description.
3597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
3598         gl_PREREQ_NANOSLEEP invocations from here...
3599         * modules/nanosleep (configure.ac): ... to here.
3600
3601 2011-05-21  Bruno Haible  <bruno@clisp.org>
3602
3603         mountlist: Move AC_LIBOBJ invocations to module description.
3604         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
3605         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
3606         * modules/mountlist (configure.ac): ... to here.
3607
3608 2011-05-21  Bruno Haible  <bruno@clisp.org>
3609
3610         mktime: Respect rules for use of AC_LIBOBJ.
3611         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
3612         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
3613         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
3614         (gl_FUNC_MKTIME_INTERNAL): ... and here...
3615         * modules/mktime (configure.ac): ... to here.
3616         * modules/mktime-internal (configure.ac): ... and here.
3617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
3618
3619 2011-05-21  Bruno Haible  <bruno@clisp.org>
3620
3621         mkstemps: Move AC_LIBOBJ invocations to module description.
3622         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
3623         here...
3624         * modules/mkstemps (configure.ac): ... to here.
3625
3626 2011-05-21  Bruno Haible  <bruno@clisp.org>
3627
3628         mkstemp: Move AC_LIBOBJ invocations to module description.
3629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
3630         gl_PREREQ_MKSTEMP invocations from here...
3631         * modules/mkstemp (configure.ac): ... to here.
3632
3633 2011-05-21  Bruno Haible  <bruno@clisp.org>
3634
3635         mkostemps: Move AC_LIBOBJ invocations to module description.
3636         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
3637         here...
3638         * modules/mkostemps (configure.ac): ... to here.
3639
3640 2011-05-21  Bruno Haible  <bruno@clisp.org>
3641
3642         mkostemp: Move AC_LIBOBJ invocations to module description.
3643         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
3644         gl_PREREQ_MKOSTEMP invocations from here...
3645         * modules/mkostemp (configure.ac): ... to here.
3646
3647 2011-05-21  Bruno Haible  <bruno@clisp.org>
3648
3649         mknod: Move AC_LIBOBJ invocations to module description.
3650         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
3651         * modules/mknod (configure.ac): ... to here.
3652
3653 2011-05-21  Bruno Haible  <bruno@clisp.org>
3654
3655         mkfifoat: Move AC_LIBOBJ invocations to module description.
3656         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
3657         here...
3658         * modules/mkfifoat (configure.ac): ... to here.
3659
3660 2011-05-21  Bruno Haible  <bruno@clisp.org>
3661
3662         mkfifo: Respect rules for use of AC_LIBOBJ.
3663         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
3664         here...
3665         * modules/mkfifo (configure.ac): ... to here.
3666
3667 2011-05-21  Bruno Haible  <bruno@clisp.org>
3668
3669         mkdtemp: Move AC_LIBOBJ invocations to module description.
3670         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
3671         invocations from here...
3672         * modules/mkdtemp (configure.ac): ... to here.
3673
3674 2011-05-21  Bruno Haible  <bruno@clisp.org>
3675
3676         mkdir: Move AC_LIBOBJ invocations to module description.
3677         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
3678         * modules/mkdir (configure.ac): ... to here.
3679
3680 2011-05-21  Bruno Haible  <bruno@clisp.org>
3681
3682         memset: Move AC_LIBOBJ invocations to module description.
3683         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
3684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
3685         here...
3686         * modules/memset (configure.ac): ... to here.
3687
3688 2011-05-21  Bruno Haible  <bruno@clisp.org>
3689
3690         memrchr: Move AC_LIBOBJ invocations to module description.
3691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
3692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
3693         here...
3694         * modules/memrchr (configure.ac): ... to here.
3695
3696 2011-05-21  Bruno Haible  <bruno@clisp.org>
3697
3698         mempcpy: Move AC_LIBOBJ invocations to module description.
3699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
3700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
3701         here...
3702         * modules/mempcpy (configure.ac): ... to here.
3703
3704 2011-05-21  Bruno Haible  <bruno@clisp.org>
3705
3706         memmove: Move AC_LIBOBJ invocations to module description.
3707         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
3708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
3709         here...
3710         * modules/memmove (configure.ac): ... to here.
3711
3712 2011-05-21  Bruno Haible  <bruno@clisp.org>
3713
3714         memmem*: Move AC_LIBOBJ invocations to module description.
3715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
3716         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
3717         here...
3718         (gl_FUNC_MEMMEM): ... and here...
3719         * modules/memmem-simple (configure.ac): ... to here.
3720         * modules/memmem (configure.ac): ... and here.
3721
3722 2011-05-21  Bruno Haible  <bruno@clisp.org>
3723
3724         memcpy: Move AC_LIBOBJ invocations to module description.
3725         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
3726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
3727         here...
3728         * modules/memcpy (configure.ac): ... to here.
3729
3730 2011-05-21  Bruno Haible  <bruno@clisp.org>
3731
3732         memcmp: Simplify autoconf macro.
3733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
3734         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
3735         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
3736
3737 2011-05-21  Bruno Haible  <bruno@clisp.org>
3738
3739         memcmp: Move AC_LIBOBJ invocations to module description.
3740         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
3741         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
3742         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
3743         * modules/memcmp (configure.ac): ... to here.
3744         (Depends-on): Update conditions.
3745
3746 2011-05-21  Bruno Haible  <bruno@clisp.org>
3747
3748         memchr: Respect rules for use of AC_LIBOBJ.
3749         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
3750         invocations from here...
3751         * modules/memchr (configure.ac): ... to here.
3752
3753 2011-05-21  Bruno Haible  <bruno@clisp.org>
3754
3755         mbtowc: Move AC_LIBOBJ invocations to module description.
3756         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
3757         invocations from here...
3758         * modules/mbtowc (configure.ac): ... to here.
3759
3760 2011-05-21  Bruno Haible  <bruno@clisp.org>
3761
3762         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
3763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
3764         gl_PREREQ_MBSRTOWCS invocations from here...
3765         * modules/mbsrtowcs (configure.ac): ... to here.
3766
3767 2011-05-21  Bruno Haible  <bruno@clisp.org>
3768
3769         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
3770         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
3771         gl_PREREQ_MBSNRTOWCS invocations from here...
3772         * modules/mbsnrtowcs (configure.ac): ... to here.
3773
3774 2011-05-21  Bruno Haible  <bruno@clisp.org>
3775
3776         mbsinit: Move AC_LIBOBJ invocations to module description.
3777         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
3778         invocations from here...
3779         * modules/mbsinit (configure.ac): ... to here.
3780
3781 2011-05-21  Bruno Haible  <bruno@clisp.org>
3782
3783         mbrlen: Move AC_LIBOBJ invocations to module description.
3784         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
3785         invocations from here...
3786         * modules/mbrlen (configure.ac): ... to here.
3787
3788 2011-05-21  Bruno Haible  <bruno@clisp.org>
3789
3790         mbrtowc: Respect rules for use of AC_LIBOBJ.
3791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
3792         invocations from here...
3793         * modules/mbrtowc (configure.ac): ... to here.
3794
3795 2011-05-21  Bruno Haible  <bruno@clisp.org>
3796
3797         malloc-*: Move AC_LIBOBJ invocations to module description.
3798         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
3799         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
3800         AC_LIBOBJ invocations from here...
3801         * modules/malloc-gnu (configure.ac): ... to here.
3802         * modules/malloc-posix (configure.ac): ... and here.
3803
3804 2011-05-21  Bruno Haible  <bruno@clisp.org>
3805
3806         lstat, openat: Respect rules for use of AC_LIBOBJ.
3807         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
3808         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
3809         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
3810         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
3811         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
3812         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
3813         here.
3814         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3815
3816 2011-05-21  Bruno Haible  <bruno@clisp.org>
3817
3818         lseek: Move AC_LIBOBJ invocations to module description.
3819         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
3820         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3821         * modules/lseek (configure.ac): ... to here.
3822
3823 2011-05-21  Bruno Haible  <bruno@clisp.org>
3824
3825         linkat: Move AC_LIBOBJ invocations to module description.
3826         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
3827         here...
3828         * modules/linkat (configure.ac): ... to here.
3829
3830 2011-05-21  Bruno Haible  <bruno@clisp.org>
3831
3832         link: Respect rules for use of AC_LIBOBJ.
3833         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
3834         * modules/link (configure.ac): ... to here.
3835
3836 2011-05-21  Bruno Haible  <bruno@clisp.org>
3837
3838         lchown: Move AC_LIBOBJ invocations to module description.
3839         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3840         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
3841         * modules/lchown (configure.ac): ... to here.
3842
3843 2011-05-21  Bruno Haible  <bruno@clisp.org>
3844
3845         iswctype: Move AC_LIBOBJ invocations to module description.
3846         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
3847         here...
3848         * modules/iswctype (configure.ac): ... to here.
3849
3850 2011-05-21  Bruno Haible  <bruno@clisp.org>
3851
3852         iswblank: Move AC_LIBOBJ invocations to module description.
3853         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
3854         here...
3855         * modules/iswblank (configure.ac): ... to here.
3856
3857 2011-05-21  Bruno Haible  <bruno@clisp.org>
3858
3859         atanl: Move AC_LIBOBJ invocations to module description.
3860         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
3861         * modules/atanl (configure.ac): ... to here.
3862
3863 2011-05-21  Bruno Haible  <bruno@clisp.org>
3864
3865         acosl: Move AC_LIBOBJ invocations to module description.
3866         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
3867         * modules/acosl (configure.ac): ... to here.
3868
3869 2011-05-21  Bruno Haible  <bruno@clisp.org>
3870
3871         asinl: Respect rules for use of AC_LIBOBJ.
3872         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
3873         * modules/asinl (configure.ac): ... to here.
3874
3875 2011-05-21  Bruno Haible  <bruno@clisp.org>
3876
3877         tanl: Move AC_LIBOBJ invocations to module description.
3878         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
3879         * modules/tanl (configure.ac): ... to here.
3880
3881 2011-05-21  Bruno Haible  <bruno@clisp.org>
3882
3883         cosl: Move AC_LIBOBJ invocations to module description.
3884         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
3885         * modules/cosl (configure.ac): ... to here.
3886
3887 2011-05-21  Bruno Haible  <bruno@clisp.org>
3888
3889         sinl: Move AC_LIBOBJ invocations to module description.
3890         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
3891         * modules/sinl (configure.ac): ... to here.
3892
3893 2011-05-21  Bruno Haible  <bruno@clisp.org>
3894
3895         logl: Move AC_LIBOBJ invocations to module description.
3896         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
3897         * modules/logl (configure.ac): ... to here.
3898
3899 2011-05-21  Bruno Haible  <bruno@clisp.org>
3900
3901         expl: Move AC_LIBOBJ invocations to module description.
3902         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
3903         * modules/expl (configure.ac): ... to here.
3904
3905 2011-05-21  Bruno Haible  <bruno@clisp.org>
3906
3907         roundl: Move AC_LIBOBJ invocations to module description.
3908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
3909         * modules/roundl (configure.ac): ... to here.
3910
3911 2011-05-21  Bruno Haible  <bruno@clisp.org>
3912
3913         round: Move AC_LIBOBJ invocations to module description.
3914         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
3915         * modules/round (configure.ac): ... to here.
3916
3917 2011-05-21  Bruno Haible  <bruno@clisp.org>
3918
3919         roundf: Move AC_LIBOBJ invocations to module description.
3920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
3921         * modules/roundf (configure.ac): ... to here.
3922
3923 2011-05-21  Bruno Haible  <bruno@clisp.org>
3924
3925         truncl: Move AC_LIBOBJ invocations to module description.
3926         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
3927         * modules/truncl (configure.ac): ... to here.
3928
3929 2011-05-21  Bruno Haible  <bruno@clisp.org>
3930
3931         trunc: Move AC_LIBOBJ invocations to module description.
3932         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
3933         * modules/trunc (configure.ac): ... to here.
3934
3935 2011-05-21  Bruno Haible  <bruno@clisp.org>
3936
3937         truncf: Move AC_LIBOBJ invocations to module description.
3938         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
3939         * modules/truncf (configure.ac): ... to here.
3940
3941 2011-05-21  Bruno Haible  <bruno@clisp.org>
3942
3943         ceill: Move AC_LIBOBJ invocations to module description.
3944         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
3945         * modules/ceill (configure.ac): ... to here.
3946
3947 2011-05-21  Bruno Haible  <bruno@clisp.org>
3948
3949         ceil: Move AC_LIBOBJ invocations to module description.
3950         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
3951         * modules/ceil (configure.ac): ... to here.
3952
3953 2011-05-21  Bruno Haible  <bruno@clisp.org>
3954
3955         ceilf: Move AC_LIBOBJ invocations to module description.
3956         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
3957         * modules/ceilf (configure.ac): ... to here.
3958
3959 2011-05-21  Bruno Haible  <bruno@clisp.org>
3960
3961         floorl: Respect rules for use of AC_LIBOBJ.
3962         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
3963         * modules/floorl (configure.ac): ... to here.
3964
3965 2011-05-21  Bruno Haible  <bruno@clisp.org>
3966
3967         floor: Respect rules for use of AC_LIBOBJ.
3968         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
3969         * modules/floor (configure.ac): ... to here.
3970
3971 2011-05-21  Bruno Haible  <bruno@clisp.org>
3972
3973         floorf: Move AC_LIBOBJ invocations to module description.
3974         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
3975         * modules/floorf (configure.ac): ... to here.
3976
3977 2011-05-20  Bruno Haible  <bruno@clisp.org>
3978
3979         sqrtl: Respect rules for use of AC_LIBOBJ.
3980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
3981         * modules/sqrtl (configure.ac): ... to here.
3982
3983 2011-05-20  Bruno Haible  <bruno@clisp.org>
3984
3985         ldexpl: Respect rules for use of AC_LIBOBJ.
3986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
3987         * modules/ldexpl (configure.ac): ... to here.
3988
3989 2011-05-20  Bruno Haible  <bruno@clisp.org>
3990
3991         frexpl*: Respect rules for use of AC_LIBOBJ.
3992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
3993         invocation from here...
3994         * modules/frexpl (configure.ac): ... to here.
3995         * modules/frexpl-nolibm (configure.ac): ... and here.
3996
3997 2011-05-20  Bruno Haible  <bruno@clisp.org>
3998
3999         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4000         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4001         invocation from here...
4002         * modules/frexp (configure.ac): ... to here.
4003         * modules/frexp-nolibm (configure.ac): ... and here.
4004
4005 2011-05-20  Bruno Haible  <bruno@clisp.org>
4006
4007         isnan: Respect rules for use of AC_LIBOBJ.
4008         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4009         invocations here.
4010         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4011         REPLACE_ISNAN.
4012         * modules/isnand (configure.ac): Likewise.
4013         * modules/isnanl (configure.ac): Likewise.
4014
4015 2011-05-20  Bruno Haible  <bruno@clisp.org>
4016
4017         isnanl*: Respect rules for use of AC_LIBOBJ.
4018         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4019         invocation from here...
4020         * modules/isnanl (configure.ac): ... to here.
4021         * modules/isnanl-nolibm (configure.ac): ... and here.
4022
4023 2011-05-20  Bruno Haible  <bruno@clisp.org>
4024
4025         isnand*: Move AC_LIBOBJ invocations to module description.
4026         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4027         invocation from here...
4028         * modules/isnand (configure.ac): ... to here.
4029         * modules/isnand-nolibm (configure.ac): ... and here.
4030
4031 2011-05-20  Bruno Haible  <bruno@clisp.org>
4032
4033         isnanf*: Move AC_LIBOBJ invocations to module description.
4034         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4035         invocation from here...
4036         * modules/isnanf (configure.ac): ... to here.
4037         * modules/isnanf-nolibm (configure.ac): ... and here.
4038
4039 2011-05-20  Bruno Haible  <bruno@clisp.org>
4040
4041         isnan*: Separate the AC_LIBOBJ invocations.
4042         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4043         AC_LIBOBJ invocation.
4044         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4045         here.
4046         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4047         AC_LIBOBJ invocation.
4048         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4049         here.
4050         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4051         AC_LIBOBJ invocation.
4052         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4053         here.
4054         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4055
4056 2011-05-08  Bruno Haible  <bruno@clisp.org>
4057
4058         isinf: Move AC_LIBOBJ invocations to module description.
4059         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4060         * modules/isinf (configure.ac): ... to here.
4061
4062 2011-05-08  Bruno Haible  <bruno@clisp.org>
4063
4064         isfinite: Move AC_LIBOBJ invocations to module description.
4065         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4066         * modules/isfinite (configure.ac): ... to here.
4067
4068 2011-05-08  Bruno Haible  <bruno@clisp.org>
4069
4070         isblank: Move AC_LIBOBJ invocations to module description.
4071         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4072         here...
4073         * modules/isblank (configure.ac): ... to here.
4074
4075 2011-05-08  Bruno Haible  <bruno@clisp.org>
4076
4077         isapipe: Move AC_LIBOBJ invocations to module description.
4078         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4079         gl_PREREQ_ISAPIPE invocations from here...
4080         * modules/isapipe (configure.ac): ... to here.
4081         (Depends-on): Update condition.
4082
4083 2011-05-08  Bruno Haible  <bruno@clisp.org>
4084
4085         ioctl: Move AC_LIBOBJ invocations to module description.
4086         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4087         invocations from here...
4088         * modules/ioctl (configure.ac): ... to here.
4089         (Depends-on): Update condition.
4090
4091 2011-05-08  Bruno Haible  <bruno@clisp.org>
4092
4093         imaxdiv: Move AC_LIBOBJ invocations to module description.
4094         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4095         invocations from here...
4096         * modules/imaxdiv (configure.ac): ... to here.
4097
4098 2011-05-08  Bruno Haible  <bruno@clisp.org>
4099
4100         imaxabs: Move AC_LIBOBJ invocations to module description.
4101         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4102         invocations from here...
4103         * modules/imaxabs (configure.ac): ... to here.
4104
4105 2011-05-08  Bruno Haible  <bruno@clisp.org>
4106
4107         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4109         AC_LIBOBJ invocations from here...
4110         * modules/getaddrinfo (configure.ac): ... to here.
4111         (Depends-on): Add conditions.
4112
4113 2011-05-08  Bruno Haible  <bruno@clisp.org>
4114
4115         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4116         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4117         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4118         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4119         (gl_PREREQ_INET_PTON): ... from here.
4120         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4121         gl_PREREQ_INET_PTON here.
4122         (Depends-on): Update condition.
4123
4124 2011-05-08  Bruno Haible  <bruno@clisp.org>
4125
4126         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4129         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4130         (gl_PREREQ_INET_NTOP): ... from here.
4131         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4132         gl_PREREQ_INET_NTOP here.
4133         (Depends-on): Update condition.
4134
4135 2011-05-08  Bruno Haible  <bruno@clisp.org>
4136
4137         iconv_open: Move AC_LIBOBJ invocations to module description.
4138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4139         AC_LIBOBJ invocations from here...
4140         * modules/iconv_open (configure.ac): ... to here.
4141
4142 2011-05-08  Bruno Haible  <bruno@clisp.org>
4143
4144         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4145         If module 'iconv_open' is among the main modules and module
4146         'iconv_open-utf' is among the tests dependencies, then
4147         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4148         return the special iconv_t values. Therefore iconv() and iconv_close()
4149         must support these special iconv_t values, already in lib, not only in
4150         tests.
4151         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4153         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4154         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4155         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4156         (Depends-on): Add the dependencies of iconv_open-utf.
4157         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4158         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4159         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4160
4161 2011-05-08  Bruno Haible  <bruno@clisp.org>
4162
4163         group-member: Move AC_LIBOBJ invocations to module description.
4164         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4165         gl_PREREQ_GROUP_MEMBER invocations from here...
4166         * modules/group-member (configure.ac): ... to here.
4167
4168 2011-05-08  Bruno Haible  <bruno@clisp.org>
4169
4170         grantpt: Move AC_LIBOBJ invocations to module description.
4171         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4172         invocations from here...
4173         * modules/grantpt (configure.ac): ... to here.
4174
4175 2011-05-08  Bruno Haible  <bruno@clisp.org>
4176
4177         glob: Move AC_LIBOBJ invocations to module description.
4178         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4179         from here...
4180         * modules/glob (configure.ac): ... to here.
4181
4182 2011-05-08  Bruno Haible  <bruno@clisp.org>
4183
4184         getusershell: Move AC_LIBOBJ invocations to module description.
4185         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4186         Move AC_LIBOBJ invocation from here...
4187         * modules/getusershell (configure.ac): ... to here.
4188         (Depends-on): Update condition.
4189
4190 2011-05-08  Bruno Haible  <bruno@clisp.org>
4191
4192         gettimeofday: Move AC_LIBOBJ invocations to module description.
4193         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4194         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4195         gl_PREREQ_GETTIMEOFDAY invocations from here...
4196         * modules/gettimeofday (configure.ac): ... to here.
4197
4198 2011-05-08  Bruno Haible  <bruno@clisp.org>
4199
4200         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4201         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4202         just gl_FUNC_TZSET.
4203         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4204         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4206         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4207
4208 2011-05-08  Bruno Haible  <bruno@clisp.org>
4209
4210         getsubopt: Move AC_LIBOBJ invocations to module description.
4211         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4212         gl_PREREQ_GETSUBOPT invocations from here...
4213         * modules/getsubopt (configure.ac): ... to here.
4214
4215 2011-05-08  Bruno Haible  <bruno@clisp.org>
4216
4217         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4218         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4219         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4220         * modules/getpass-gnu (configure.ac): ... to here.
4221
4222 2011-05-08  Bruno Haible  <bruno@clisp.org>
4223
4224         getpass: Move AC_LIBOBJ invocations to module description.
4225         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4226         gl_PREREQ_GETPASS invocations from here...
4227         * modules/getpass (configure.ac): ... to here.
4228
4229 2011-05-08  Bruno Haible  <bruno@clisp.org>
4230
4231         getpagesize: Move AC_LIBOBJ invocations to module description.
4232         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4233         from here...
4234         * modules/getpagesize (configure.ac): ... to here.
4235
4236 2011-05-08  Bruno Haible  <bruno@clisp.org>
4237
4238         getopt: Move AC_LIBOBJ invocations to module description.
4239         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4240         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4241         invocations from here...
4242         * modules/getopt-gnu (configure.ac): ... to here.
4243         * modules/getopt-posix (configure.ac): ... and here.
4244         (Depends-on): Update condition.
4245
4246 2011-05-08  Bruno Haible  <bruno@clisp.org>
4247
4248         getopt, argp: Respect rules for use of AC_LIBOBJ.
4249         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4250         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4251         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4252         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4253
4254 2011-05-08  Bruno Haible  <bruno@clisp.org>
4255
4256         getlogin_r: Move AC_LIBOBJ invocations to module description.
4257         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4258         gl_PREREQ_GETLOGIN_R invocations from here...
4259         * modules/getlogin_r (configure.ac): ... to here.
4260
4261 2011-05-08  Bruno Haible  <bruno@clisp.org>
4262
4263         getlogin: Move AC_LIBOBJ invocations to module description.
4264         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4265         here...
4266         * modules/getlogin (configure.ac): ... to here.
4267
4268 2011-05-08  Bruno Haible  <bruno@clisp.org>
4269
4270         getloadavg: Move AC_LIBOBJ invocations to module description.
4271         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4272         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4273         * modules/getloadavg (configure.ac): ... to here.
4274
4275 2011-05-08  Bruno Haible  <bruno@clisp.org>
4276
4277         gethrxtime: Move AC_LIBOBJ invocations to module description.
4278         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4279         LIB_GETHRXTIME from here...
4280         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4281         invocations from here...
4282         * modules/gethrxtime (configure.ac): ... to here.
4283
4284 2011-05-08  Bruno Haible  <bruno@clisp.org>
4285
4286         gethostname: Move AC_LIBOBJ invocations to module description.
4287         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4288         gl_PREREQ_GETHOSTNAME invocations from here...
4289         * modules/gethostname (configure.ac): ... to here.
4290
4291 2011-05-08  Bruno Haible  <bruno@clisp.org>
4292
4293         getgroups: Move AC_LIBOBJ invocations to module description.
4294         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4295         here...
4296         * modules/getgroups (configure.ac): ... to here.
4297
4298 2011-05-08  Bruno Haible  <bruno@clisp.org>
4299
4300         getdtablesize: Move AC_LIBOBJ invocations to module description.
4301         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4302         invocation from here...
4303         * modules/getdtablesize (configure.ac): ... to here.
4304
4305 2011-05-08  Bruno Haible  <bruno@clisp.org>
4306
4307         getdomainname: Move AC_LIBOBJ invocations to module description.
4308         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4309         gl_PREREQ_GETDOMAINNAME invocations from here...
4310         * modules/getdomainname (configure.ac): ... to here.
4311
4312 2011-05-08  Bruno Haible  <bruno@clisp.org>
4313
4314         getline: Move AC_LIBOBJ invocations to module description.
4315         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4316         invocations from here...
4317         * modules/getline (configure.ac): ... to here.
4318
4319 2011-05-08  Bruno Haible  <bruno@clisp.org>
4320
4321         getline: Simplify.
4322         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4323         It's already handled through the module dependency.
4324
4325 2011-05-08  Bruno Haible  <bruno@clisp.org>
4326
4327         getdelim: Move AC_LIBOBJ invocations to module description.
4328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4329         and gl_PREREQ_GETDELIM invocations from here...
4330         * modules/getdelim (configure.ac): ... to here.
4331         (Depends-on): Fix condition.
4332
4333 2011-05-08  Bruno Haible  <bruno@clisp.org>
4334
4335         getcwd: Move AC_LIBOBJ invocations to module description.
4336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4337         invocations from here...
4338         * modules/getcwd (configure.ac): ... to here.
4339
4340 2011-05-08  Bruno Haible  <bruno@clisp.org>
4341
4342         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4343         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4344         here...
4345         * modules/getcwd-lgpl (configure.ac): ... to here.
4346
4347 2011-05-07  Bruno Haible  <bruno@clisp.org>
4348
4349         crypto/gc: Move AC_LIBOBJ invocations to module description.
4350         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4351         * modules/crypto/gc (configure.ac): ... to here.
4352
4353 2011-05-07  Bruno Haible  <bruno@clisp.org>
4354
4355         fwriting: Move AC_LIBOBJ invocations to module description.
4356         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4357         here...
4358         * modules/fwriting (configure.ac): ... to here.
4359
4360 2011-05-07  Bruno Haible  <bruno@clisp.org>
4361
4362         fwritable: Move AC_LIBOBJ invocations to module description.
4363         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4364         here...
4365         * modules/fwritable (configure.ac): ... to here.
4366
4367 2011-05-07  Bruno Haible  <bruno@clisp.org>
4368
4369         futimens: Move AC_LIBOBJ invocations to module description.
4370         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4371         here...
4372         * modules/futimens (configure.ac): ... to here.
4373
4374 2011-05-07  Bruno Haible  <bruno@clisp.org>
4375
4376         ftruncate: Move AC_LIBOBJ invocations to module description.
4377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4378         gl_PREREQ_FTRUNCATE invocations from here...
4379         * modules/ftruncate (configure.ac): ... to here.
4380
4381 2011-05-07  Bruno Haible  <bruno@clisp.org>
4382
4383         fsync: Move AC_LIBOBJ invocations to module description.
4384         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4385         invocations from here...
4386         * modules/fsync (configure.ac): ... to here.
4387
4388 2011-05-07  Bruno Haible  <bruno@clisp.org>
4389
4390         fsusage: Move AC_LIBOBJ invocations to module description.
4391         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4392         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4393         * modules/fsusage (configure.ac): ... to here.
4394
4395 2011-05-07  Bruno Haible  <bruno@clisp.org>
4396
4397         freopen: Move AC_LIBOBJ invocations to module description.
4398         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4399         invocations from here...
4400         * modules/freopen (configure.ac): ... to here.
4401
4402 2011-05-07  Bruno Haible  <bruno@clisp.org>
4403
4404         free: Move AC_LIBOBJ invocations to module description.
4405         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4406         invocations from here...
4407         * modules/free (configure.ac): ... to here.
4408
4409 2011-05-07  Bruno Haible  <bruno@clisp.org>
4410
4411         freadable: Move AC_LIBOBJ invocations to module description.
4412         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4413         here...
4414         * modules/freadable (configure.ac): ... to here.
4415
4416 2011-05-07  Bruno Haible  <bruno@clisp.org>
4417
4418         fpurge: Move AC_LIBOBJ invocations to module description.
4419         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4420         invocations from here...
4421         * modules/fpurge (configure.ac): ... to here.
4422
4423 2011-05-07  Bruno Haible  <bruno@clisp.org>
4424
4425         fpending: Move AC_LIBOBJ invocations to module description.
4426         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4427         gl_FUNC_FPENDING.
4428         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4429         invocations from here...
4430         * modules/fpending (configure.ac): ... to here.
4431
4432 2011-05-07  Bruno Haible  <bruno@clisp.org>
4433
4434         fopen: Move AC_LIBOBJ invocations to module description.
4435         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4436         invocations from here...
4437         * modules/fopen (configure.ac): ... to here.
4438
4439 2011-05-07  Bruno Haible  <bruno@clisp.org>
4440
4441         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4442         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4443         gl_FUNC_FNMATCH_POSIX.
4444         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4445         invocations from here...
4446         * modules/fnmatch (configure.ac): ... to here.
4447         * modules/fnmatch-gnu (configure.ac): ... and here.
4448
4449 2011-05-07  Bruno Haible  <bruno@clisp.org>
4450
4451         flock: Move AC_LIBOBJ invocations to module description.
4452         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4453         invocations from here...
4454         * modules/flock (configure.ac): ... to here.
4455
4456 2011-05-07  Bruno Haible  <bruno@clisp.org>
4457
4458         fileblocks: Move AC_LIBOBJ invocations to module description.
4459         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4460         gl_PREREQ_FILEBLOCKS invocations from here...
4461         * modules/fileblocks (configure.ac): ... to here.
4462
4463 2011-05-06  Bruno Haible  <bruno@clisp.org>
4464
4465         fflush: Move AC_LIBOBJ invocations to module description.
4466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4467         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4468         invocations from here...
4469         * modules/fflush (configure.ac): ... to here.
4470
4471 2011-05-06  Bruno Haible  <bruno@clisp.org>
4472
4473         fdopendir: Move AC_LIBOBJ invocations to module description.
4474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
4475         here...
4476         * modules/fdopendir (configure.ac): ... to here.
4477         (Depends-on): Improve conditions.
4478
4479 2011-05-06  Bruno Haible  <bruno@clisp.org>
4480
4481         _Exit: Move AC_LIBOBJ invocations to module description.
4482         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
4483         invocations from here...
4484         * modules/_Exit (configure.ac): ... to here.
4485
4486 2011-05-21  Bruno Haible  <bruno@clisp.org>
4487
4488         euidaccess: Respect rules for use of AC_LIBOBJ.
4489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
4491         from here...
4492         * modules/euidaccess (configure.ac): ... to here.
4493
4494 2011-05-06  Bruno Haible  <bruno@clisp.org>
4495
4496         error: Move AC_LIBOBJ invocations to module description.
4497         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
4498         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
4499         invocations from here...
4500         * modules/error (configure.ac): ... to here.
4501
4502 2011-05-06  Bruno Haible  <bruno@clisp.org>
4503
4504         duplocale: Move AC_LIBOBJ invocations to module description.
4505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
4506         gl_PREREQ_DUPLOCALE invocations from here...
4507         * modules/duplocale (configure.ac): ... to here.
4508
4509 2011-05-05  Bruno Haible  <bruno@clisp.org>
4510
4511         dirfd: Move AC_LIBOBJ invocations to module description.
4512         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
4513         gl_FUNC_DIRFD.
4514         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
4515         here...
4516         * modules/dirfd (configure.ac): ... to here.
4517         (Depends-on): Fix condition.
4518
4519 2011-05-05  Bruno Haible  <bruno@clisp.org>
4520
4521         chown: Respect rules for use of AC_LIBOBJ.
4522         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
4523         * modules/chown (configure.ac): ... to here.
4524
4525 2011-05-05  Bruno Haible  <bruno@clisp.org>
4526
4527         chdir-long: Move AC_LIBOBJ invocations to module description.
4528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
4529         gl_PREREQ_CHDIR_LONG invocations from here...
4530         * modules/chdir-long (configure.ac): ... to here.
4531
4532 2011-05-05  Bruno Haible  <bruno@clisp.org>
4533
4534         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
4535         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
4536         from here...
4537         * modules/canonicalize-lgpl (configure.ac): ... to here.
4538
4539 2011-05-05  Bruno Haible  <bruno@clisp.org>
4540
4541         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
4542         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
4543         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
4544         REPLACE_CALLOC.
4545         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
4546         * modules/calloc-gnu (configure.ac): Likewise.
4547
4548 2011-05-05  Bruno Haible  <bruno@clisp.org>
4549
4550         btowc: Move AC_LIBOBJ invocations to module description.
4551         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
4552         invocations from here...
4553         * modules/btowc (configure.ac): ... to here.
4554
4555 2011-05-21  Bruno Haible  <bruno@clisp.org>
4556
4557         atexit: Move AC_LIBOBJ invocations to module description.
4558         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
4559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
4560         here...
4561         * modules/atexit (configure.ac): ... to here.
4562
4563 2011-05-05  Bruno Haible  <bruno@clisp.org>
4564
4565         atoll: Move AC_LIBOBJ invocations to module description.
4566         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
4567         invocations from here...
4568         * modules/atoll (configure.ac): ... to here.
4569
4570 2011-05-05  Bruno Haible  <bruno@clisp.org>
4571
4572         argz: Move AC_LIBOBJ invocations to module description.
4573         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
4574         * modules/argz (configure.ac): ... to here.
4575
4576 2011-05-05  Bruno Haible  <bruno@clisp.org>
4577
4578         alphasort: Move AC_LIBOBJ invocations to module description.
4579         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
4580         gl_PREREQ_ALPHASORT invocations from here...
4581         * modules/alphasort (configure.ac): ... to here.
4582
4583 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4584
4585         verify: new macro verify_expr; verify_true deprecated
4586         * NEWS: Mention this.
4587         * doc/verify.texi (Compile-time Assertions): Document this.
4588         * lib/verify.h (verify_true): Deprecate.
4589         (verify_expr): New macro.
4590         * tests/test-verify.c (function): Test verify_expr.
4591
4592 2011-06-14  Jim Meyering  <meyering@redhat.com>
4593
4594         init.sh: give more portable redirection-related advice in a comment
4595         * tests/init.sh (stderr_fileno_): Update the advice in comments.
4596         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
4597         for lots of discussion.  Stefano Lattarini suggested the solution
4598         of putting "9>&2" after the command.  Reported by Bruno Haible.
4599
4600 2011-06-13  Bruno Haible  <bruno@clisp.org>
4601
4602         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
4603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
4604         'none'.
4605
4606 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4607
4608         ftoastr: use strtof only if HAVE_STRTOF
4609         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
4610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
4611         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
4612         * modules/ftoastr (configure.ac): Check for strtof.
4613
4614 2011-06-13  Bruno Haible  <bruno@clisp.org>
4615
4616         gnulib-tool: Addendum to 2011-06-08 commit.
4617         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
4618         and --witness-c-macro have been given, augment AM_CPPFLAGS.
4619
4620 2011-06-13  Bruno Haible  <bruno@clisp.org>
4621
4622         fseeko: Provide a non-inline replacement of fseek().
4623         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
4624         * modules/fseeko (Depends-on): Add fseek.
4625         * modules/fseek (License): Change to LGPLv2+.
4626
4627 2011-06-13  Bruno Haible  <bruno@clisp.org>
4628
4629         ftello: Provide a non-inline replacement of ftell().
4630         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
4631         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
4632         not have ftello() (such as on mingw).
4633         * modules/ftello (Depends-on): Add ftell.
4634         * modules/ftell (License): Change to LGPLv2+.
4635
4636 2011-05-07  Bruno Haible  <bruno@clisp.org>
4637
4638         ftell: Move AC_LIBOBJ invocations to module description.
4639         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
4640         * modules/ftell (configure.ac): ... to here.
4641
4642 2011-05-07  Bruno Haible  <bruno@clisp.org>
4643
4644         ftello: Respect rules for use of AC_LIBOBJ.
4645         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
4646         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
4647         here...
4648         * modules/ftello (configure.ac): ... to here.
4649
4650 2011-05-07  Bruno Haible  <bruno@clisp.org>
4651
4652         fseeko: Simplify.
4653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
4654         (gl_FUNC_FSEEKO): Inline it here.
4655
4656 2011-05-07  Bruno Haible  <bruno@clisp.org>
4657
4658         fseek: Move AC_LIBOBJ invocations to module description.
4659         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
4660         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4661         * modules/fseek (configure.ac): ... to here.
4662
4663 2011-05-07  Bruno Haible  <bruno@clisp.org>
4664
4665         fseek: Respect rules for use of AC_LIBOBJ.
4666         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
4667         here...
4668         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
4669
4670 2011-05-07  Bruno Haible  <bruno@clisp.org>
4671
4672         fseeko: Respect rules for use of AC_LIBOBJ.
4673         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
4674         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
4675         here...
4676         * modules/fseeko (configure.ac): ... to here.
4677
4678 2011-06-13  Bruno Haible  <bruno@clisp.org>
4679
4680         gnulib-tool: Allow comments in the 'Depends-on' section.
4681         * doc/gnulib.texi (Module description): Mention comment syntax in the
4682         Depends-on section.
4683         * gnulib-tool (func_get_dependencies): Filter out comment lines.
4684
4685 2011-06-13  Bruno Haible  <bruno@clisp.org>
4686
4687         file-set.h: guard __attibute__ use, now that it's not always defined
4688         * lib/file-set.h (record_file): Use __attribute__ only with compiler
4689         versions that support it.  This fixes a coreutils build failure with
4690         the vendor cc on HP-UX 11.31.
4691
4692 2011-06-12  Bruno Haible  <bruno@clisp.org>
4693
4694         acl: Add support for HP-UX >= 11.11 JFS ACLs.
4695         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
4696         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
4697         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
4698         (acl, aclsort): New declarations.
4699         (aclv_nontrivial): New declaration.
4700         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
4701         (file_has_acl): Read also the second kind of HP-UX ACLs.
4702         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
4703         kind of HP-UX ACLs if the first kind fails.
4704         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
4705         second kind of HP-UX ACLs.
4706         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
4707         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
4708         agree.
4709         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4710         hpuxjfs.
4711         Handle hpuxjfs.
4712         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
4713         hpuxjfs.
4714         Handle hpuxjfs.
4715         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4716         (func_test_same_acls): Use both lsacl and getacl.
4717         Handle hpuxjfs.
4718         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
4719         (func_test_same_acls): Use both lsacl and getacl.
4720         Handle hpuxjfs.
4721
4722 2011-06-12  Bruno Haible  <bruno@clisp.org>
4723
4724         acl: Complete the 2010-08-10 fix.
4725         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
4726         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
4727         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
4728         explicitly.
4729         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
4730         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
4731
4732 2011-06-12  Bruno Haible  <bruno@clisp.org>
4733
4734         spawn-pipe tests: Comments.
4735         * tests/test-spawn-pipe-child.c (main): Update comment.
4736         Reported by James Youngman <jay@gnu.org>.
4737
4738 2011-06-11  James Youngman  <jay@gnu.org>
4739
4740         New module 'stat-size'.
4741         * modules/stat-size: New module.  Provides macros for accessing
4742         file size information in instances of struct stat.  Depends on the
4743         fileblocks module because it calls st_blocks.
4744         * lib/stat-size.h: New file, adapted from coreutils' system.h.
4745         * doc/gnulib.texi: Include stat-size.texi.
4746         * doc/stat-size.texi: Documentation for this module.
4747         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
4748         * m4/fileblocks.m4: Mention that stat-size depends on the call to
4749         AC_STRUCT_ST_BLOCKS.
4750
4751 2011-06-09  Bruno Haible  <bruno@clisp.org>
4752
4753         thread: Support pthreads-win32.
4754         * lib/glthread/thread.h (gl_thread_self): Define differently on
4755         pthreads-win32.
4756         (gl_null_thread): New declaration.
4757         (gl_thread_self_pointer): New macro.
4758         * lib/glthread/thread.c (gl_null_thread): New constant.
4759         * tests/test-lock.c: Use gl_thread_self_pointer instead of
4760         gl_thread_self.
4761         * tests/test-tls.c: Likewise.
4762         Suggested by Paul Eggert. Reported by Eric Blake.
4763
4764 2011-06-09  Bruno Haible  <bruno@clisp.org>
4765
4766         thread: Fix confusion between NULL and 0.
4767         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
4768         Reported by Paul Eggert.
4769
4770 2011-06-09  Bruno Haible  <bruno@clisp.org>
4771
4772         spawn-pipe tests: Avoid test failure on HP-UX 11.
4773         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
4774         is closed.
4775
4776 2011-06-09  Bruno Haible  <bruno@clisp.org>
4777
4778         acl tests: Fix compilation error on HP-UX 11.
4779         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
4780
4781 2011-06-09  Bruno Haible  <bruno@clisp.org>
4782
4783         rmdir: Avoid test failure on HP-UX 10.20.
4784         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
4785         EEXIST.
4786
4787 2011-06-08  Eric Blake  <eblake@redhat.com>
4788
4789         perror: fix test on mingw
4790         * modules/perror-tests (Depends-on): Add dup2.
4791
4792         strerror_r-posix: fix on MacOS
4793         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
4794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
4795         logic bug.
4796         * lib/strerror_r.c (strerror_r): Fix the bug.
4797         * lib/strerror.c (strerror): Likewise.
4798         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4799         problem.
4800         * doc/posix-functions/strerror.texi (strerror): Likewise.
4801         * doc/posix-functions/perror.texi (perror): Likewise.
4802         * tests/test-strerror.c (main): Enhance test.
4803         * tests/test-strerror_r.c (main): Likewise.
4804
4805 2011-06-08  Bruno Haible  <bruno@clisp.org>
4806
4807         gnulib-tool: Better isolation between different gnulib-tool invocations.
4808         * gnulib-tool: New option --witness-c-macro.
4809         (witness_c_macro): New variable.
4810         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
4811         AM_CPPFLAGS define it as a C macro.
4812         (func_emit_tests_Makefile_am): Likewise.
4813         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
4814         read it from there.
4815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
4816         m4_define, not AC_DEFUN.
4817         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
4818         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
4819         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
4820         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
4821         s|...|...|, to substitute the values of the GNULIB_* module indicator
4822         variables.
4823         * modules/dirent (Makefile.am): Likewise.
4824         * modules/fcntl-h (Makefile.am): Likewise.
4825         * modules/iconv-h (Makefile.am): Likewise.
4826         * modules/langinfo (Makefile.am): Likewise.
4827         * modules/locale (Makefile.am): Likewise.
4828         * modules/math (Makefile.am): Likewise.
4829         * modules/netdb (Makefile.am): Likewise.
4830         * modules/poll-h (Makefile.am): Likewise.
4831         * modules/pty (Makefile.am): Likewise.
4832         * modules/search (Makefile.am): Likewise.
4833         * modules/signal (Makefile.am): Likewise.
4834         * modules/spawn (Makefile.am): Likewise.
4835         * modules/stdio (Makefile.am): Likewise.
4836         * modules/stdlib (Makefile.am): Likewise.
4837         * modules/string (Makefile.am): Likewise.
4838         * modules/sys_ioctl (Makefile.am): Likewise.
4839         * modules/sys_select (Makefile.am): Likewise.
4840         * modules/sys_socket (Makefile.am): Likewise.
4841         * modules/sys_stat (Makefile.am): Likewise.
4842         * modules/sys_times (Makefile.am): Likewise.
4843         * modules/sys_utsname (Makefile.am): Likewise.
4844         * modules/sys_wait (Makefile.am): Likewise.
4845         * modules/termios (Makefile.am): Likewise.
4846         * modules/time (Makefile.am): Likewise.
4847         * modules/unistd (Makefile.am): Likewise.
4848         * modules/wchar (Makefile.am): Likewise.
4849
4850 2011-06-08  Eric Blake  <eblake@redhat.com>
4851
4852         strerror: simplify replacement
4853         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
4854         * modules/strerror (configure.ac): No prereqs needed here...
4855         * modules/strerror-override (configure.ac): ...but this needs it.
4856         (Files): Add file for needed prereq macro.
4857
4858 2011-06-08  Bruno Haible  <bruno@clisp.org>
4859
4860         strerror_r-posix: Tweaks.
4861         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
4862         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
4863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
4864         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
4865         (gl_FUNC_STRERROR_R): ... to here.
4866         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
4867
4868 2011-06-07  Eric Blake  <eblake@redhat.com>
4869
4870         perror: document fixed bugs
4871         * doc/posix-functions/perror.texi (perror): Document recent
4872         patches.
4873
4874 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
4875
4876         stat-time: get_stat_birthtime failure is better-defined
4877         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
4878         return a timestamp whose tv_sec and tv_nsec values are both -1.
4879         Previously, the spec said only that the tv_nsec value was negative.
4880         This upward-compatible change simplifies GNU tar a bit.
4881
4882 2011-06-07  Eric Blake  <eblake@redhat.com>
4883
4884         strerror_r-posix: work around cygwin 1.7.9
4885         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
4886         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
4887         bug without replacing strerror_r.
4888         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
4889         strerror_r is buggy, but without requiring strerror_r compilation.
4890         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
4891
4892         test-perror: relax test to ignore cygwin bug
4893         * tests/test-perror2.c (main): Relax test on requiring detection
4894         of stream errors, and use unbuffered stream.
4895         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
4896         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
4897         * doc/posix-functions/fputc.texi (fputc): Likewise.
4898         * doc/posix-functions/fputs.texi (fputs): Likewise.
4899         * doc/posix-functions/fputws.texi (fputws): Likewise.
4900         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
4901         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
4902         * doc/posix-functions/getopt.texi (getopt): Likewise.
4903         * doc/posix-functions/perror.texi (perror): Likewise.
4904         * doc/posix-functions/printf.texi (printf): Likewise.
4905         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
4906         * doc/posix-functions/psignal.texi (psignal): Likewise.
4907         * doc/posix-functions/putc.texi (putc): Likewise.
4908         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
4909         Likewise.
4910         * doc/posix-functions/putchar.texi (putchar): Likewise.
4911         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
4912         Likewise.
4913         * doc/posix-functions/puts.texi (puts): Likewise.
4914         * doc/posix-functions/putwc.texi (putwc): Likewise.
4915         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
4916         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
4917         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4918         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
4919         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4920         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
4921         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
4922         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
4923
4924 2011-05-22  Bruno Haible  <bruno@clisp.org>
4925
4926         strerror: Move AC_LIBOBJ invocations to module description.
4927         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
4928         gl_PREREQ_STRERROR invocations from here...
4929         * modules/strerror (configure.ac): ... to here.
4930
4931 2011-05-21  Bruno Haible  <bruno@clisp.org>
4932
4933         perror: Use common idiom.
4934         * modules/perror (configure.ac): Reorder statements.
4935
4936 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4937
4938         tests: fix usage message in 'mktempd_'
4939         * tests/init.sh (mktempd_): In the usage message, use literal
4940         'mktempd_', not '$ME' (which is even undefined), as the name of
4941         the subroutine.
4942
4943 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
4944
4945         tests init: new function 'fatal_', for hard errors
4946         Before this patch, the only way offered by tests/init.sh to
4947         properly signal a hard error was the `framework_failure_'
4948         function.  But the error message issued by that function,
4949         as its name would suggest, refers to a set-up failure in the
4950         testsuite, while hard errors can obviously also be due to
4951         other reasons.  The best way to fix this inconsistency is to
4952         introduce a new function with a more general error message.
4953         * tests/init.sh (fatal_): New function.
4954
4955 2011-06-06  Eric Blake  <eblake@redhat.com>
4956
4957         canonicalize-lgpl: use common idiom
4958         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
4959         over newer POSIX -Rf.
4960         Reported by Bruno Haible.
4961
4962         canonicalize-lgpl: work around AIX realpath bug
4963         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
4964         * doc/posix-functions/realpath.texi (realpath): Document it.
4965         Reported by Bruno Haible.
4966
4967         strerror: work around FreeBSD bug
4968         * lib/strerror.c (strerror): Special case 0.
4969         Reported by Bruno Haible.
4970
4971         strerror-override: avoid bloating errno module
4972         * modules/errno (Files, configure.ac): Move replacement strings...
4973         * modules/strerror-override: ...to new module.
4974         * modules/strerror (Depends-on): Add strerror-override.
4975         * modules/strerror_r-posix (Depends-on): Likewise.
4976         * MODULES.html.sh: Document new module.
4977         Reported by Bruno Haible.
4978
4979 2011-06-06  Bruno Haible  <bruno@clisp.org>
4980
4981         spawn-pipe tests: Rename program.
4982         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
4983         * tests/test-spawn-pipe-child.c: Update comment.
4984         * tests/test-spawn-pipe.sh: Update.
4985         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
4986
4987         spawn-pipe tests: Link the child program only against libc.
4988         * tests/test-spawn-pipe-child.c: New file, extracted from
4989         tests/test-spawn-pipe.c.
4990         (main): Expect only one argument.
4991         (is_open): New function, copied from tests/test-pipe.c.
4992         * tests/test-spawn-pipe.c: Don't include <errno.h>.
4993         (child_main): Remove function.
4994         (test_pipe): Pass only one argument to the child program.
4995         (main): Remove child process code. Expect the child program's name as
4996         first argument.
4997         * tests/test-spawn-pipe.sh: Pass the child program's name as first
4998         argument.
4999         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5000         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5001         test-spawn-pipe-child against no libraries.
5002
5003 2011-06-06  Bruno Haible  <bruno@clisp.org>
5004
5005         careadlinkat: Avoid mismatch between ssize_t and int.
5006         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5007         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5008
5009 2011-06-06  Jim Meyering  <meyering@redhat.com>
5010
5011         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5012         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5013         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5014
5015 2011-06-05  Bruno Haible  <bruno@clisp.org>
5016
5017         ansi-c++-opt: Interoperability with libtool.
5018         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5019         set the variable to "no", not to ":".
5020         * NEWS: Mention the change.
5021
5022 2011-06-05  Bruno Haible  <bruno@clisp.org>
5023
5024         acl: Fix test failure on AIX 7.
5025         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5026         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5027
5028 2011-06-05  Bruno Haible  <bruno@clisp.org>
5029
5030         pipe-filter-ii: Fix test failure on AIX and IRIX.
5031         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5032         with EAGAIN, retry with a smaller buffer size.
5033
5034 2011-06-05  Bruno Haible  <bruno@clisp.org>
5035
5036         localename: Fix link dependencies.
5037         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5038         * modules/localename-tests (Makefile.am): Link test-localename with
5039         $(LIBTHREAD).
5040
5041 2011-06-05  Bruno Haible  <bruno@clisp.org>
5042
5043         error: Avoid gcc warning.
5044         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5045
5046 2011-06-05  Bruno Haible  <bruno@clisp.org>
5047
5048         unsetenv: Avoid gcc warning.
5049         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5050
5051 2011-06-05  Bruno Haible  <bruno@clisp.org>
5052
5053         setenv: Avoid gcc warning.
5054         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5055
5056 2011-06-05  Bruno Haible  <bruno@clisp.org>
5057
5058         sys_select: Ensure memset is declared also on AIX 7.
5059         * lib/sys_select.in.h: Include <string.h> also on AIX.
5060         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5061         self-contained also on AIX 7.1.
5062
5063 2011-06-04  Jim Meyering  <meyering@redhat.com>
5064
5065         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5066         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5067         function name, "error".
5068         (_gl_translatable_diag_func_re): New configurable variable.
5069
5070 2011-06-04  Bruno Haible  <bruno@clisp.org>
5071
5072         getopt: Avoid gcc warning.
5073         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5074
5075 2011-06-04  Bruno Haible  <bruno@clisp.org>
5076
5077         strerror_r: Fix comments.
5078         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5079         commit.
5080
5081 2011-06-04  Bruno Haible  <bruno@clisp.org>
5082
5083         perror: Fix compilation error.
5084         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5085         Undefine fprintf, not sprintf.
5086         * modules/perror (Depends-on): Remove intprops, verify.
5087
5088 2011-06-04  Bruno Haible  <bruno@clisp.org>
5089
5090         setlocale: Enable replacement on Cygwin 1.5.
5091         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5092         Cygwin 1.5.x.
5093         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5094         LC_CTYPE category also exists on Cygwin 1.5.x.
5095
5096 2011-06-04  Bruno Haible  <bruno@clisp.org>
5097
5098         strerror-override: Don't disable symbol renamings.
5099         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5100         * lib/strerror-override.c: Include config.h.
5101         (strerror_override): Don't undefine.
5102
5103 2011-06-03  Bruno Haible  <bruno@clisp.org>
5104
5105         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5106         * lib/localename.h: Update copyright header.
5107         * lib/localename.c: Likewise.
5108         * lib/relocatable.h: Likewise.
5109         * lib/relocatable.c: Likewise.
5110
5111 2011-06-02  Bruno Haible  <bruno@clisp.org>
5112
5113         doc: Fix a module name.
5114         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5115
5116 2011-06-02  Bruno Haible  <bruno@clisp.org>
5117
5118         pipe2: Remove dependency on 'nonblocking' module.
5119         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5120         O_NONBLOCK is defined by gnulib.
5121         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5122         is zero.
5123         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5124         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5125         defined by gnulib.
5126         (get_nonblocking_flag): New function.
5127         (main): Test O_NONBLOCK flag only if it is nonzero.
5128         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5129
5130 2011-06-03  Jim Meyering  <meyering@redhat.com>
5131
5132         maint: three new prohibit-header-without-use rules
5133         Prohibit use of cloexec.h, posixver.h, same.h without use.
5134         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5135         (sc_prohibit_posixver_without_use): Likewise.
5136         (sc_prohibit_same_without_use): Likewise.
5137
5138 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5139
5140         allocator: 'die' routine is now given requested size
5141         * lib/allocator.h (struct allocator.die): New size arg.
5142         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5143         If the actual problem is an ssize_t limitation, not a size_t or
5144         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5145
5146 2011-06-01  Eric Blake  <eblake@redhat.com>
5147
5148         strerror: drop strerror_r dependency
5149         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5150         * lib/strerror-override.c (strerror_override): ...to new file.
5151         * lib/strerror-override.h: Add prototype.
5152         * lib/strerror-impl.h: Delete.
5153         * lib/strerror.c (strerror): New implementation.
5154         * modules/errno (Files): Add new files.
5155         (configure.ac): Compile new file as appropriate.
5156         * modules/strerror (Files): Drop unused file.
5157         (Depends-on): Drop strerror_r-posix.
5158         * MODULES.html.sh: Document strerror_r-posix.
5159         Requested by Sam Steingold.
5160
5161         perror: call strerror_r directly
5162         * modules/perror (Files): Drop strerror-impl.h.
5163         * lib/perror.c (perror): Use our own stack buffer, rather than
5164         calling a wrapper that uses static storage.
5165         * doc/posix-functions/perror.texi (perror): Document a limitation
5166         of our replacement.
5167
5168         strerror_r: fix includes for FreeBSD
5169         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5170         since we use abort on some platforms.
5171         Reported by Matthias Bolte.
5172
5173 2011-05-31  Bruno Haible  <bruno@clisp.org>
5174
5175         Fix link errors in tests: openat-die uses gettext-h.
5176         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5177         against $(LIBINTL).
5178         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5179         against $(LIBINTL).
5180         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5181         $(LIBINTL).
5182         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5183         against $(LIBINTL).
5184         * modules/linkat-tests (Makefile.am): Link test-linkat against
5185         $(LIBINTL).
5186         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5187         $(LIBINTL).
5188         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5189         against $(LIBINTL).
5190         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5191         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5192         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5193         $(LIBINTL).
5194         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5195         $(LIBINTL).
5196         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5197         $(LIBINTL).
5198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5199
5200 2011-05-31  Bruno Haible  <bruno@clisp.org>
5201
5202         Fix link errors in tests: wait-process uses gettext-h.
5203         * modules/nonblocking-pipe-tests (Makefile.am): Set
5204         test_nonblocking_pipe_main_LDADD.
5205         * modules/nonblocking-socket-tests (Makefile.am): Link
5206         test-nonblocking-socket-main against $(LIBINTL).
5207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5208
5209 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         assert-h: work around 'verify' incompatibility
5212         * lib/verify.h: Use @...@ directives, not ifdef.
5213         * modules/assert-h (assert.h): Implement the directives.
5214         (assert.h): Substitute the symbol-prefix more consistently.
5215
5216 2011-05-29  Jim Meyering  <meyering@redhat.com>
5217
5218         trim: remove three superfluous assignments
5219         * lib/trim.c (trim2): Remove three superfluous assignments
5220         and correct brace positioning.
5221
5222 2011-05-29  Bruno Haible  <bruno@clisp.org>
5223
5224         wctype-h: Avoid namespace pollution on Solaris 2.6.
5225         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5226         identifiers.
5227         * doc/posix-headers/wctype.texi: Mention the problem.
5228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5229
5230 2011-05-28  Jim Meyering  <meyering@redhat.com>
5231
5232         parse-datetime.y: accommodate -Wstrict-overflow
5233         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5234         placate -Wstrict-overflow.
5235
5236         trim: avoid a warning from -O2 -Wstrict-overflow
5237         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5238
5239 2011-05-29  Bruno Haible  <bruno@clisp.org>
5240
5241         gnulib-tool: Fix bug in yesterday's commit.
5242         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5243         twice.
5244
5245 2011-05-29  Bruno Haible  <bruno@clisp.org>
5246
5247         Allow multiple gnulib generated include files to be combined.
5248         * gnulib-tool (func_compute_include_guard_prefix): New function.
5249         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5250         ${gl_include_guard_prefix} references.
5251         (func_import, func_create_testdir): Invoke
5252         func_compute_include_guard_prefix.
5253         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5254         * lib/ctype.in.h: Likewise.
5255         * lib/dirent.in.h: Likewise.
5256         * lib/errno.in.h: Likewise.
5257         * lib/fcntl.in.h: Likewise.
5258         * lib/float.in.h: Likewise.
5259         * lib/getopt.in.h: Likewise.
5260         * lib/iconv.in.h: Likewise.
5261         * lib/langinfo.in.h: Likewise.
5262         * lib/locale.in.h: Likewise.
5263         * lib/math.in.h: Likewise.
5264         * lib/netdb.in.h: Likewise.
5265         * lib/netinet_in.in.h: Likewise.
5266         * lib/poll.in.h: Likewise.
5267         * lib/pthread.in.h: Likewise.
5268         * lib/pty.in.h: Likewise.
5269         * lib/sched.in.h: Likewise.
5270         * lib/se-selinux.in.h: Likewise.
5271         * lib/search.in.h: Likewise.
5272         * lib/signal.in.h: Likewise.
5273         * lib/spawn.in.h: Likewise.
5274         * lib/stdarg.in.h: Likewise.
5275         * lib/stddef.in.h: Likewise.
5276         * lib/stdint.in.h: Likewise.
5277         * lib/stdio.in.h: Likewise.
5278         * lib/stdlib.in.h: Likewise.
5279         * lib/string.in.h: Likewise.
5280         * lib/strings.in.h: Likewise.
5281         * lib/sys_file.in.h: Likewise.
5282         * lib/sys_ioctl.in.h: Likewise.
5283         * lib/sys_select.in.h: Likewise.
5284         * lib/sys_socket.in.h: Likewise.
5285         * lib/sys_stat.in.h: Likewise.
5286         * lib/sys_time.in.h: Likewise.
5287         * lib/sys_times.in.h: Likewise.
5288         * lib/sys_uio.in.h: Likewise.
5289         * lib/sys_utsname.in.h: Likewise.
5290         * lib/sys_wait.in.h: Likewise.
5291         * lib/sysexits.in.h: Likewise.
5292         * lib/termios.in.h: Likewise.
5293         * lib/time.in.h: Likewise.
5294         * lib/unistd.in.h: Likewise.
5295         * lib/wchar.in.h: Likewise.
5296         * lib/wctype.in.h: Likewise.
5297         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5298         * modules/ctype (Makefile.am): Likewise.
5299         * modules/dirent (Makefile.am): Likewise.
5300         * modules/errno (Makefile.am): Likewise.
5301         * modules/fcntl-h (Makefile.am): Likewise.
5302         * modules/float (Makefile.am): Likewise.
5303         * modules/getopt-posix (Makefile.am): Likewise.
5304         * modules/iconv-h (Makefile.am): Likewise.
5305         * modules/langinfo (Makefile.am): Likewise.
5306         * modules/locale (Makefile.am): Likewise.
5307         * modules/math (Makefile.am): Likewise.
5308         * modules/netdb (Makefile.am): Likewise.
5309         * modules/netinet_in (Makefile.am): Likewise.
5310         * modules/poll-h (Makefile.am): Likewise.
5311         * modules/pthread (Makefile.am): Likewise.
5312         * modules/pty (Makefile.am): Likewise.
5313         * modules/sched (Makefile.am): Likewise.
5314         * modules/search (Makefile.am): Likewise.
5315         * modules/selinux-h (Makefile.am): Likewise.
5316         * modules/signal (Makefile.am): Likewise.
5317         * modules/spawn (Makefile.am): Likewise.
5318         * modules/stdarg (Makefile.am): Likewise.
5319         * modules/stddef (Makefile.am): Likewise.
5320         * modules/stdint (Makefile.am): Likewise.
5321         * modules/stdio (Makefile.am): Likewise.
5322         * modules/stdlib (Makefile.am): Likewise.
5323         * modules/string (Makefile.am): Likewise.
5324         * modules/strings (Makefile.am): Likewise.
5325         * modules/sys_file (Makefile.am): Likewise.
5326         * modules/sys_ioctl (Makefile.am): Likewise.
5327         * modules/sys_select (Makefile.am): Likewise.
5328         * modules/sys_socket (Makefile.am): Likewise.
5329         * modules/sys_stat (Makefile.am): Likewise.
5330         * modules/sys_time (Makefile.am): Likewise.
5331         * modules/sys_times (Makefile.am): Likewise.
5332         * modules/sys_uio (Makefile.am): Likewise.
5333         * modules/sys_utsname (Makefile.am): Likewise.
5334         * modules/sys_wait (Makefile.am): Likewise.
5335         * modules/sysexits (Makefile.am): Likewise.
5336         * modules/termios (Makefile.am): Likewise.
5337         * modules/time (Makefile.am): Likewise.
5338         * modules/unistd (Makefile.am): Likewise.
5339         * modules/wchar (Makefile.am): Likewise.
5340         * modules/wctype-h (Makefile.am): Likewise.
5341         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5342
5343 2011-05-29  Bruno Haible  <bruno@clisp.org>
5344
5345         assert-h: Allow multiple gnulib generated replacements to coexist.
5346         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5347
5348 2011-05-29  Bruno Haible  <bruno@clisp.org>
5349
5350         argp: Allow coexistence with strerror_r-posix module.
5351         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5352         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5353         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5354         not the glibc signature.
5355
5356 2011-05-28  Bruno Haible  <bruno@clisp.org>
5357
5358         gnulib-tool: Alternative structure of testdirs, similar to --import.
5359         * gnulib-tool: New option --single-configure.
5360         (func_usage): Document it.
5361         (single_configure): New variable.
5362         (func_modules_transitive_closure_separately,
5363         func_modules_transitive_closure_separately,
5364         func_determine_use_libtests, func_modules_add_dummy_separately,
5365         func_modules_to_filelist_separately): New functions, extracted from
5366         func_import.
5367         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5368         (func_import): Use the new functions.
5369         (func_create_testdir): Set final_modules. Handle $single_configure =
5370         true case.
5371
5372 2011-05-28  Bruno Haible  <bruno@clisp.org>
5373
5374         getloadavg: Remove an unreliable safety check.
5375         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5376         getloadavg.c is in place.
5377         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5378         Reported by Sam Steingold <sds@gnu.org>.
5379
5380 2011-05-28  Bruno Haible  <bruno@clisp.org>
5381
5382         doc: Cleanup yet another file produced by texinfo.tex.
5383         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5384
5385 2011-05-28  Bruno Haible  <bruno@clisp.org>
5386
5387         Finish the conditional dependencies mechanism.
5388         * gnulib-tool: New option --no-conditional-dependencies.
5389         (func_usage): Document it. Don't mark --conditional-dependencies as
5390         experimental.
5391         (cond_dependencies): The possible values can now be true, false, empty.
5392         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5393         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5394         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5395
5396 2011-05-28  Bruno Haible  <bruno@clisp.org>
5397
5398         doc: Use a recent texinfo.tex.
5399         * doc/Makefile (tex_opts): New variable.
5400         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5401
5402 2011-05-28  Jim Meyering  <meyering@redhat.com>
5403
5404         intprops.h: adjust comment to match code change
5405         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5406         only once, it *may* have side effects.  Also fix an unrelated typo.
5407         (_GL_INT_SIGNED): Likewise.
5408
5409 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5410
5411         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5412
5413 2011-05-26  Bruno Haible  <bruno@clisp.org>
5414
5415         mbsrchr: Avoid collision with system function on Interix.
5416         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5417         Reported by Markus Duft <mduft@gentoo.org>.
5418
5419 2011-05-15  James Youngman  <jay@gnu.org>
5420
5421         getopt: for ambiguous options, enumerate the possibilities.
5422         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5423         the ambiguous options when an ambiguous prefix is given. This was
5424         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5425         glibc change was
5426         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5427
5428 2011-05-25  Eric Blake  <eblake@redhat.com>
5429
5430         getcwd: work around mingw bug
5431         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5432         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5433         Reported by Matthias Bolte.
5434
5435 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         test-intprops: disable -Wtype-limits diagnostics
5438         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5439         diagnostics.  Otherwise, the integer overflow macros generate many
5440         diagnostics.  Reported by Jim Meyering in
5441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5442
5443         intprops: shorten, to pacify gcc -Woverlength-strings
5444         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5445         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5446         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5447         likely to run afoul of C compiler limits for string constant lengths.
5448         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5449
5450 2011-05-24  Eric Blake  <eblake@redhat.com>
5451
5452         docs: document recently fixed glibc printf bug
5453         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5454         * doc/posix-functions/printf.texi (printf): Likewise.
5455         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5456         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5457
5458         closein-tests: convert to init.sh
5459         * modules/closein-tests (Files): Add init.sh
5460         * tests/test-closein.sh Use it.
5461
5462         yesno-tests: convert to init.sh
5463         * modules/yesno-tests (Files): Add init.sh.
5464         * tests/test-yesno.sh: Use it.
5465
5466         atexit-tests: ensure reliable exit status
5467         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5468         Reported by Bruno Haible.
5469
5470 2011-05-24  Bruno Haible  <bruno@clisp.org>
5471
5472         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
5473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
5474         gl_PREREQ_STRERROR_R invocations from here...
5475         * modules/strerror_r-posix (configure.ac): ... to here.
5476
5477 2011-05-24  Eric Blake  <eblake@redhat.com>
5478
5479         strerror_r: fix missing header
5480         * lib/strerror_r.c: Avoid compiler warning about snprintf.
5481
5482         strerror_r: fix AIX test failures
5483         * lib/strerror_r.c (strerror_r): Convert silent truncation to
5484         ERANGE failure.
5485
5486         strerror_r: fix Solaris test failures
5487         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
5488         failures.
5489         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5490
5491         strerror_r: enforce POSIX recommendations
5492         * lib/strerror_r.c (safe_copy): New helper method.
5493         (strerror_r): Guarantee a non-empty string.
5494         * tests/test-strerror_r.c (main): Enhance tests to incorporate
5495         recent POSIX rulings and to match our strerror guarantees.
5496         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
5497
5498 2011-05-24  Jim Meyering  <meyering@redhat.com>
5499
5500         test-perror2.c: avoid warning about unused variable
5501         * tests/test-perror2.c (main): Remove declaration of unused "fp".
5502
5503 2011-05-24  Eric Blake  <eblake@redhat.com>
5504
5505         perror: avoid spurious test failure on HP-UX
5506         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
5507
5508         tests: fix logic bug in init.sh
5509         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
5510         shell.
5511
5512 2011-05-24  Jim Meyering  <meyering@redhat.com>
5513
5514         utimensat: do not reference an out-of-scope buffer
5515         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
5516         declared in an inner scope, yet "times" would be dereferenced outside
5517         the scope in which "ts" was valid.
5518         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
5519         of ts[2] "out/up", so that the use of aliased "times" (via
5520         "times = ts;") does not end up referencing an out-of-scope "ts"
5521
5522         opendir-safer.c: don't clobber errno; don't close negative FD
5523         * lib/opendir-safer.c (opendir_safer):
5524         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
5525         file descriptor, and more importantly, don't clobber the
5526         offending errno value with EINVAL.  Before, upon failure
5527         of dup_safer, we would pass the negative file descriptor to
5528         fdopendir, which would clobber errno.
5529
5530 2011-05-23  Bruno Haible  <bruno@clisp.org>
5531
5532         idcache: Fix module description.
5533         * modules/idcache (Include): Set to "idcache.h".
5534
5535 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5536
5537         gnulib-tool: fix portability problem with MacOS sed
5538         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
5539         before the "}".  Problem reported by Leo in
5540         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
5541         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
5542         sed_extract_condition1, sed_extract_condition2.
5543
5544 2011-05-23  Bruno Haible  <bruno@clisp.org>
5545
5546         hash: Simplify autoconf macro.
5547         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
5548
5549 2011-05-23  Bruno Haible  <bruno@clisp.org>
5550
5551         getugroups: Fix module description.
5552         * modules/getugroups (Include): Set to "getugroups.h".
5553
5554 2011-05-23  Bruno Haible  <bruno@clisp.org>
5555
5556         linkat: Simplify autoconf macro.
5557         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
5558
5559 2011-05-23  Bruno Haible  <bruno@clisp.org>
5560             Eric Blake  <eblake@redhat.com>
5561
5562         linkat, renameat: Update dependencies.
5563         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
5564         * modules/linkat (Depends-on): Likewise. Remove also readlink,
5565         symlinkat.
5566
5567 2011-05-23  Jim Meyering  <meyering@redhat.com>
5568
5569         maint.mk: more tight_scope improvements
5570         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
5571         (_gl_TS_headers): Define only in if-0'd block.
5572         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
5573         sometimes we must *not* use it.  Adjust uses accordingly.
5574         (sc_tight_scope): Use much simpler grep-based test to determine
5575         whether we skip this rule.
5576
5577         maint.mk: generalize/improve the tight-scope rule
5578         * top/maint.mk: Emit a warning when the test is skipped.
5579         (_gl_TS_dir): Add $(srcdir)/ prefix.
5580         (_gl_TS_function_match): Simplify, rather than trying
5581         to enumerate common types.  Otherwise, it would fail to match an
5582         "extern unsigned char const *" declaration in idutils.
5583         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
5584         a way to support use of that type of macro.
5585         (_gl_TS_var_match): Simplify regexp.
5586         (_gl_TS_obj_files): New configurable variable.
5587         (_gl_TS_headers): Likewise.
5588
5589 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5590
5591         verify: fix bug when gnulib <assert.h> is also included
5592         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
5593         is defined, not if _GL_STATIC_ASSERT_H is not defined.
5594         Perhaps there's a better way, but this fixes the immediate problem.
5595         Problem reported by Bruno Haible in
5596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
5597
5598 2011-05-22  Bruno Haible  <bruno@clisp.org>
5599
5600         xgetcwd: Simplify autoconf macro.
5601         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
5602
5603 2011-05-22  Bruno Haible  <bruno@clisp.org>
5604
5605         New module 'mktime-internal'.
5606         * modules/mktime-internal: New file.
5607         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
5608         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
5609         mktime_internal as a C macro if libc has __mktime_internal.
5610         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
5611         conditions.
5612         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
5613
5614 2011-05-22  Bruno Haible  <bruno@clisp.org>
5615
5616         timegm: Correct mktime replacement statements.
5617         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
5618         defining mktime as a C macro. This completes a 2009-07-28 commit.
5619
5620 2011-05-22  Bruno Haible  <bruno@clisp.org>
5621
5622         timegm: Simplify autoconf macro.
5623         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
5624
5625 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         clock-time: change to LGPLv2+.
5628         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
5629         BSD-like but we have no mark for that; this is good enough for now.
5630
5631 2011-05-21  Bruno Haible  <bruno@clisp.org>
5632
5633         strerror_r: Fix comments.
5634         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
5635
5636 2011-05-21  Bruno Haible  <bruno@clisp.org>
5637
5638         relocatable-prog-wrapper: Fix possible link error.
5639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
5640         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
5641         (gl_FUNC_SETENV): ... to here.
5642         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
5643         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
5644
5645 2011-05-21  Bruno Haible  <bruno@clisp.org>
5646
5647         relocatable-prog-wrapper: Assume strerror() exists.
5648         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
5649         m4/strerror.m4.
5650         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
5651         * lib/relocwrapper.c: Remove mention of strerror module.
5652         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
5653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
5654         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
5655         C macro.
5656
5657 2011-05-21  Bruno Haible  <bruno@clisp.org>
5658
5659         select: Simplify replacement idiom.
5660         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
5661         Win32 platforms.
5662         * lib/sys_select.in.h (select): Simplify accordingly.
5663         * modules/select (Depends-on): Likewise.
5664
5665 2011-05-21  Bruno Haible  <bruno@clisp.org>
5666
5667         mkdir-p: Simplify autoconf macro.
5668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
5669         gl_FUNC_LCHOWN.
5670
5671 2011-05-21  Eric Blake  <eblake@redhat.com>
5672
5673         strerror_r: avoid clobbering strerror on cygwin
5674         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
5675         fall back instead to sys_errlist.
5676         * modules/strerror (configure.ac): Add witness.
5677         * tests/test-strerror_r.c (main): Enhance test.
5678         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5679         * tests/test-perror2.c (main): Free memory before exit.
5680
5681 2011-05-21  Bruno Haible  <bruno@clisp.org>
5682
5683         mkdtemp: Use gnulib naming conventions.
5684         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5685         * modules/mkdtemp (configure.ac): Update.
5686
5687 2011-05-20  Eric Blake  <eblake@redhat.com>
5688
5689         strerror_r: avoid corrupting errno on Solaris
5690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
5691         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5692
5693         strerror_r: avoid compiler warning
5694         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
5695
5696         strerror_r: simplify AIX code
5697         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
5698
5699         test-perror: avoid spurious failure on FreeBSD
5700         * modules/perror-tests (Depends-on): Add strerror, now that
5701         strerror_r no longer pulls it in.
5702
5703 2011-05-20  Bruno Haible  <bruno@clisp.org>
5704
5705         strerror_r-posix: Remove unused dependencies.
5706         * modules/strerror_r-posix (Depends-on): Remove strerror.
5707         Reported by Eric Blake.
5708
5709 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
5710
5711         intprops: remove assumption about A|B representation
5712         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
5713         is a valid integer if both A and B are.  Although this is true for
5714         all known practical hosts, the C standard doesn't guarantee it,
5715         and the code need not assume it.  Also, this change may work around
5716         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
5717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
5718
5719 2011-05-20  Eric Blake  <eblake@redhat.com>
5720
5721         perror: work around FreeBSD bug
5722         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
5723         is broken.  Move AC_LIBOBJ...
5724         * modules/perror (configure.ac): Here.
5725         * doc/posix-functions/perror.texi (perror): Document this.
5726         * tests/test-perror2.c (main): Enhance test.
5727
5728         test-perror: check for strerror interactions
5729         * tests/macros.h (STREQ): Add macro.
5730         * modules/perror-tests (Files): Add second test.
5731         * tests/test-perror2.c (main): New file.
5732         * doc/posix-functions/perror.texi (perror): Document glibc bug.
5733
5734         test-perror: rewrite to use init script
5735         * modules/perror-tests (Files): Add init.sh.
5736         * tests/test-perror.sh: Use temporary directory.
5737
5738 2011-05-20  Jim Meyering  <meyering@redhat.com>
5739
5740         maint: replace misused "a" with "an"
5741         * doc/intprops.texi: "a integer"
5742         * doc/regex.texi: "a explanation"
5743         * lib/alignof.h: "a object"
5744         * lib/argmatch.h: "a explanation"
5745         * lib/argp-help.c: "a option" and "a OPTION_DOC"
5746         * lib/stdint.in.h: "a integer"
5747         * lib/userspec.c: "a owner"
5748         * doc/gnulib.texi: Fix "a idea", and reword.
5749
5750 2011-05-19  Jim Meyering  <meyering@redhat.com>
5751
5752         maint: correct misuse of "a" and "an"
5753         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
5754         * lib/argp-help.c: "an docum...": s/an/a/
5755         * lib/argp-parse.c: "An vector": s/An/A/
5756         * lib/execute.c: "an native": s/an/a/
5757         * lib/spawn-pipe.c: Likewise.
5758         * lib/gc.h: "an Gc_rc": s/an/a/
5759         * lib/unigbrk.in.h: "an grapheme": s/an/a/
5760         * lib/fts.c: "an stat.st_dev": s/an/a/
5761
5762 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5763
5764         intprops-tests: work around HP-UX 11.23 cc bug with constants
5765         * tests/test-intprops.c (VERIFY): New macro.
5766         (main): Use it, instead of verify, to work around the compiler bug; see
5767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5768
5769         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
5770         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
5771         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
5772         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
5773         (_GL_REMAINDER_OVERFLOW): Use it.
5774
5775         intprops-tests: revert unsigned part of previous change
5776         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
5777         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
5778         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
5779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
5780
5781 2011-05-19  Bruno Haible  <bruno@clisp.org>
5782
5783         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
5784         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
5785         strerror_r() returned without filling the buffer.
5786         Reported by Eric Blake.
5787
5788 2011-05-19  Eric Blake  <eblake@redhat.com>
5789
5790         strerror_r: guarantee unchanged errno
5791         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
5792         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
5793         failure.
5794         * tests/test-strerror_r.c (main): Enhance test.
5795
5796 2011-05-19  Bruno Haible  <bruno@clisp.org>
5797
5798         strerror_r: Reorder #if blocks.
5799         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
5800         for consistency with the previous commit.
5801
5802 2011-05-19  Bruno Haible  <bruno@clisp.org>
5803
5804         perror: Avoid clobbering the strerror buffer when possible.
5805         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
5806         * lib/strerror.c: Include it.
5807         * modules/strerror (Files): Add lib/strerror-impl.h.
5808         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
5809         (my_strerror): New function, defined through lib/strerror-impl.h.
5810         (perror): Use it instead of strerror.
5811         * modules/perror (Files): Add lib/strerror-impl.h.
5812         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
5813
5814 2011-05-19  Eric Blake  <eblake@redhat.com>
5815
5816         strerror_r: fix on newer cygwin
5817         * lib/strerror_r.c (strerror_r): Cygwin now has
5818         __xpg_strerror_r, use it.
5819
5820 2011-05-19  Bruno Haible  <bruno@clisp.org>
5821
5822         strerror_r: Avoid clobbering the strerror buffer when possible.
5823         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
5824         (sys_nerr, sys_errlist): New declarations.
5825         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
5826         HP-UX, native Win32, IRIX, and 32-bit Solaris.
5827         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
5828
5829 2011-05-19  Bruno Haible  <bruno@clisp.org>
5830
5831         strerror_r: Fix test failure on mingw.
5832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
5833         EXTEND_STRERROR_R.
5834         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
5835         macros from errno.in.h instead.
5836
5837 2011-05-19  Eric Blake  <eblake@redhat.com>
5838
5839         strerror: relax test for Solaris
5840         * tests/test-strerror.c (main): Permit Solaris behavior.
5841         * tests/test-strerror_r.c (main): Likewise.
5842
5843         strerror: enforce POSIX ruling on strerror(0)
5844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
5845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
5846         * lib/strerror_r.c (rpl_strerror_r): Work around it.
5847         * doc/posix-functions/strerror.texi (strerror): Document it.
5848         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
5849         * tests/test-strerror.c (main): Strengthen test.
5850         * tests/test-strerror_r.c (main): Likewise.
5851
5852 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5853
5854         intprop-tests: port to older and more-pedantic compilers
5855         * modules/intprops-tests (Files): Add tests/macros.h.
5856         * tests/test-intprops.c: Include macros.h.
5857         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
5858         it's no longer documented to expand to an integer constant expression.
5859         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
5860         argument is floating point, as it's no longer documented to expand
5861         to an integer constant expression in that case.
5862         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
5863         compiler bugs reported by Bruno Haible.  See
5864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5865         (U0, U1): New constants, to work around the same bugs.  Also,
5866         in tests, use e.g., "(unsigned int) 39" rather than "39u".
5867
5868         intprops: work around C compiler bugs
5869         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
5870         bug in Sun C 5.11 2010/08/13 and other compilers; see
5871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
5872
5873         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
5874         * doc/intprops.texi (Integer Type Determination): Fix
5875         documentation for TYPE_IS_INTEGER: it returns an constant
5876         expression, not an integer constant expression.  Fix doc for
5877         TYPE_SIGNED: it returns an integer constant expression only if its
5878         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
5879         hardly worth documented that way....)
5880
5881 2011-05-18  Bruno Haible  <bruno@clisp.org>
5882
5883         strerror_r: Avoid clobbering the strerror buffer when possible.
5884         * lib/strerror_r.c (strerror_r): Merge the three implementations.
5885         Handle gnulib defined errno values here. When strerror() returns NULL
5886         or an empty string, return EINVAL.
5887         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
5888         gnulib defined errno values here.
5889         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
5890
5891 2011-05-18  Eric Blake  <eblake@redhat.com>
5892
5893         fnmatch: avoid compiler warning
5894         * lib/fnmatch_loop.c (FCT): Use correct type.
5895         Reported by Matthias Bolte.
5896
5897 2011-05-13  Jim Meyering  <meyering@redhat.com>
5898
5899         maint.mk: three new prohibit_<HDR>_without_use rules
5900         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
5901         (sc_prohibit_stdio-safer_without_use): Likewise.
5902         (sc_prohibit_xfreopen_without_use): Likewise.
5903
5904 2011-05-17  Jim Meyering  <meyering@redhat.com>
5905
5906         announce-gen: fail if the NEWS delta is empty
5907         If there's nothing noteworthy in NEWS, then either you forgot
5908         or you shouldn't be releasing.
5909         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
5910
5911 2011-05-17  PĂ¡draig Brady <P@draigBrady.com>
5912
5913         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
5914         reserved symbols starting with double underscore from the check.
5915
5916 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         intprops: add doc
5919         * doc/intprops.texi: New file, documenting intprops.
5920         * doc/gnulib.texi (Particular Modules): Include it.
5921
5922         verify: add doc to gnulib manual and fix example
5923         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
5924         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
5925         (Compile-time Assertions): Fix example so it can't overflow.
5926
5927 2011-05-17  Jim Meyering  <meyering@redhat.com>
5928
5929         warnings.m4: don't usurp save_CPPFLAGS variable name
5930         * m4/warnings.m4: Prefix local temporary variable name with gl_.
5931
5932         doc: fix typo
5933         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
5934
5935 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5936             Bruno Haible  <bruno@clisp.org>
5937
5938         doc: Tweak recent change.
5939         * README (Portability guidelines): Tweak new text.
5940         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
5941         Interix 6.1.
5942
5943 2011-05-16  Eric Blake  <eblake@redhat.com>
5944
5945         inttypes: avoid autoconf warning
5946         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
5947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5948
5949 2011-05-16  Sam Steingold <sds@gnu.org>
5950         and Eric Blake  <eblake@redhat.com>
5951
5952         vc-list-files: accept multiple directory operands
5953         * build-aux/vc-list-files: Iterate over all remaining operands.
5954
5955 2011-05-16  Bruno Haible  <bruno@clisp.org>
5956
5957         Fix confusion regarding deprecated modules.
5958         * modules/calloc (Status, Notice): Mark module as deprecated, not
5959         obsolete.
5960         * modules/fnmatch-posix (Status, Notice): Likewise.
5961         * modules/getdate (Status, Notice): Likewise.
5962         * modules/getopt (Status, Notice): Likewise.
5963         * modules/malloc (Status, Notice): Likewise.
5964         * modules/pipe (Status, Notice): Likewise.
5965         * modules/realloc (Status, Notice): Likewise.
5966         * modules/rename-dest-slash (Status, Notice): Likewise.
5967         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
5968         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
5969         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
5970         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
5971         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
5972
5973 2011-05-16  Bruno Haible  <bruno@clisp.org>
5974
5975         doc: List the target platforms.
5976         * doc/gnulib-intro.texi (Target Platforms): New section.
5977         * doc/gnulib.texi (Introduction): Update menu.
5978         * README (Portability guidelines): Refer to the new section. Update
5979         statement about oldest supported environment. Remove rationale why
5980         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
5981         unportable C89 function.
5982         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
5983         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
5984
5985 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
5988
5989 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         intprops-tests: new module
5992         * modules/intprops-tests, tests/test-intprops.c: New files.
5993
5994         intprops: add safe, portable integer overflow checking
5995         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
5996         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
5997         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
5998         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
5999         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6000         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6001         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6002         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6003         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6004         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6005         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6006
6007 2011-05-12  James Youngman  <jay@gnu.org>
6008
6009         Add a test for glibc's Bugzilla bug #12378.
6010         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6011         doesn't allow the literal matching of a lone "[" (which is
6012         required by POSIX).
6013         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6014
6015 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6016
6017         Sync glibc change fixing Bugzilla bug #12378.
6018         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6019         beginning and fall back to matching as normal character if the
6020         string ends before the matching ']' is found.  This is what POSIX
6021         requires.
6022
6023 2011-05-13  Eric Blake  <eblake@redhat.com>
6024
6025         getcwd-lgpl: relax test for FreeBSD
6026         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6027         issue.
6028         * tests/test-getcwd-lgpl.c (main): Relax test.
6029         Reported by Matthias Bolte.
6030
6031 2011-05-11  Eric Blake  <eblake@redhat.com>
6032
6033         test-fflush: silence compiler warning
6034         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6035
6036 2011-05-11  Bruno Haible  <bruno@clisp.org>
6037
6038         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6039         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6040         * modules/canonicalize (Depends-on): Add 'nocrash'.
6041         * modules/canonicalize-lgpl (Depends-on): Likewise.
6042         * doc/posix-functions/realpath.texi: Update platforms list.
6043         Reported by Ryan Schmidt <ryandesign@macports.org>.
6044
6045 2011-05-11  Bruno Haible  <bruno@clisp.org>
6046
6047         group-member: Declare function in <unistd.h>.
6048         * lib/unistd.in.h (group_member): New declaration.
6049         * lib/group-member.h: Remove file.
6050         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6051         * tests/test-unistd-c++.cc: Check signature of group_member.
6052         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6053         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6054         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6056         HAVE_GROUP_MEMBER.
6057         * modules/group-member (Files): Remove lib/group-member.h.
6058         (Depends-on): Add unistd. Specify conditions.
6059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6060         (Include): Change to <unistd.h>.
6061         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6062         HAVE_GROUP_MEMBER.
6063         * NEWS: Mention the change.
6064         * lib/euidaccess.c: Don't include group-member.h.
6065
6066 2011-05-11  Bruno Haible  <bruno@clisp.org>
6067
6068         group-member: Document module.
6069         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6070         module.
6071
6072 2011-05-11  Bruno Haible  <bruno@clisp.org>
6073
6074         fclose: Fix mistake earlier today.
6075         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6076
6077 2011-05-11  Eric Blake  <eblake@redhat.com>
6078
6079         fclose: preserve fflush errors
6080         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6081         Reported by Jim Meyering.
6082
6083         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6084         * build-aux/bootstrap (check_versions): When no specific version
6085         is required, merely check that the app produces an exit status
6086         that indicates its existence.
6087
6088         maint.mk: drop redundant check
6089         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6090         the same but better.
6091
6092 2011-05-11  Bruno Haible  <bruno@clisp.org>
6093
6094         fclose: Fix possible link error.
6095         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6096         unregister_shadow_fd. Improve comments.
6097         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6098         Eric Blake.
6099
6100 2011-05-11  Jim Meyering  <meyering@redhat.com>
6101
6102         maint.mk: improve "can not" detection and generalize rule name
6103         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6104         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6105         Use the same technique as in sc_prohibit_doubled_word, so that
6106         we recognize "can not" also when the words are separated by a newline.
6107         Suggested by Eric Blake.
6108         (perl_filename_lineno_text_): Define.  Factored out of...
6109         (prohibit_doubled_word_): ...here.  Use the new definition.
6110         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6111         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6112         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6113
6114 2011-05-10  Eric Blake  <eblake@redhat.com>
6115
6116         fclose: avoid double close race when possible
6117         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6118         all but WINDOWS_SOCKETS.
6119
6120 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6121
6122         openat: correct new comment
6123         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6124
6125 2011-05-10  Jim Meyering  <meyering@redhat.com>
6126
6127         openat: add comments
6128         * lib/openat-proc.c (openat_proc_name): Add comments,
6129         mostly from Eric Blake.
6130
6131 2011-05-09  Eric Blake  <eblake@redhat.com>
6132
6133         openat: reduce syscalls in first probe of /proc
6134         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6135         be a directory.  Simplify the probe for .. bugs.
6136         * modules/openat (Depends-on): Drop same-inode.
6137         Reported by Bastien ROUCARIES.
6138
6139 2011-05-09  Jim Meyering  <meyering@redhat.com>
6140
6141         maint.mk: change semantics/name of tight_scope variables
6142         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6143         Rename variables to align with semantics that make them more useful.
6144
6145         maint.mk: tweak new rule's name not to impinge
6146         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6147         (sc_tight_scope): Use new rule name rather than $@-0.
6148
6149         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6150         * top/maint.mk (sc_tight_scope): New rule.
6151         (sc_tight_scope-0): New rule, ifdef'd out.
6152         (_gl_TS_dir): Default.
6153         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6154         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6155
6156 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6157
6158         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6159         Haible <bruno@clisp.org>.
6160
6161 2011-05-08  Bruno Haible  <bruno@clisp.org>
6162
6163         Comments.
6164         * m4/isnanf.m4: Add comment.
6165         * m4/isnanl.m4: Likewise.
6166
6167 2011-05-08  Bruno Haible  <bruno@clisp.org>
6168
6169         glob: Remove obsolete macro.
6170         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6171
6172 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6173
6174         intprops: Sun C 5.11 supports __typeof__
6175         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6176         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6177         which is new.
6178         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6179
6180         intprops: switch to usual gnulib indenting and naming
6181         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6182         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6183
6184         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6185
6186 2011-05-08  Jim Meyering  <meyering@redhat.com>
6187
6188         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6189         * top/maint.mk (release-prep): Use make's --no-print-directory
6190         option when generating the announcement.  This eliminates the
6191         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6192         generated announcement template.
6193
6194 2011-05-08  Bruno Haible  <bruno@clisp.org>
6195
6196         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6197         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6198         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6199
6200 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6201
6202         ignore-value, verify: Omit include files from lib_SOURCES.
6203         * modules/ignore-value, modules/verify (Makefile.am):
6204         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6205         that leads Automake to duplicate use of am__objects_... variables
6206         in Makefile.in.  See
6207         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6208
6209 2011-05-07  Bruno Haible  <bruno@clisp.org>
6210
6211         fclose: Simplify autoconf macro.
6212         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6213         defined.
6214
6215 2011-05-07  Bruno Haible  <bruno@clisp.org>
6216
6217         canonicalize-lgpl: Fix autoconf macro ordering bug.
6218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6219         gl_STDLIB_H_DEFAULTS.
6220
6221 2011-05-06  Eric Blake  <eblake@redhat.com>
6222
6223         maintainer-makefile: make sc_po_check easier to tune
6224         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6225         to probe for strings, such as an alternate location for gnulib.
6226
6227         fclose: guarantee behavior on seekable stdin
6228         * modules/fclose (Depends-on): Add fflush.
6229         * doc/posix-functions/fclose.texi (fclose): Document this.
6230         * tests/test-fclose.c (main): Make test for this unconditional.
6231
6232 2011-05-06  Bruno Haible  <bruno@clisp.org>
6233
6234         fflush, fpurge: Relicense under LGPLv2+.
6235         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6236         * modules/fpurge (License): Likewise.
6237         With permission from Eric Blake and Jim Meyering.
6238         Suggested by Eric Blake.
6239
6240 2011-05-06  Karl Berry  <karl@gnu.org>
6241
6242         * MODULES.html.sh (func_all_modules): remove exit.
6243
6244 2011-05-06  Jim Meyering  <meyering@redhat.com>
6245
6246         maint.mk: use info-gnu@ as the default only for a stable release
6247         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6248         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6249         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6250         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6251
6252 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6253
6254         assert-h: new module, which supports C1X-style static_assert
6255         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6256         * lib/verify.h: Revamp so that this can be copied into assert.h,
6257         while retaining the ability to use it standalone as before.
6258         Rename private identifiers so as not to encroach on the
6259         standard C namespace, since this is now used by assert.h.
6260         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6261         the old verify_true.
6262         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6263         the old verify_true.  Use _GL_VERIFY_TYPE.
6264         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6265         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6266         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6267         defined when this file is copied into the replacement assert.h.
6268         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6269         and _Static_assert is not built in.
6270         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6271         defined, and use the new macros mentioned above.
6272         * doc/posix-headers/assert.texi: Document this.
6273
6274 2011-05-05  Bruno Haible  <bruno@clisp.org>
6275
6276         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6277         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6278         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6279         gl_REPLACE_FCLOSE here.
6280         * modules/fflush (Depends-on): Remove fclose.
6281         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6282         combination with module 'fclose'.
6283
6284 2011-05-05  Bruno Haible  <bruno@clisp.org>
6285
6286         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6287         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6288         gl_FUNC_FFLUSH.
6289         (gl_FUNC_FFLUSH): Use it.
6290         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6292         gl_REPLACE_FSEEKO here.
6293
6294 2011-05-05  Bruno Haible  <bruno@clisp.org>
6295
6296         tzset: Relicense under LGPL.
6297         * modules/tzset (License): Change to LGPL.
6298         No agreement needed; it's a no-op.
6299
6300         strtoimax, strtoumax: Relicense under LGPL.
6301         * modules/strtoimax (License): Change to LGPL.
6302         * modules/strtoumax (License): Likewise.
6303         With permission from Jim Meyering, Paul Eggert:
6304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6306
6307         getgroups: Relicense under LGPL.
6308         * modules/getgroups (License): Change to LGPL.
6309         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6313
6314         nanosleep: Relicense under LGPL.
6315         * modules/nanosleep (License): Change to LGPL.
6316         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6317         Haible:
6318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6322
6323         futimens: Relicense under LGPL.
6324         * modules/futimens (License): Change to LGPL.
6325         With permission from Eric Blake:
6326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6327
6328         fflush: Relicense under LGPL.
6329         * modules/fflush (License): Change to LGPL.
6330         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6334
6335         tmpfile: Relicense under LGPL.
6336         * modules/tmpfile (License): Change to LGPL.
6337         With permission from Ben Pfaff:
6338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6339
6340         isfinite: Relicense under LGPL.
6341         * modules/isfinite (License): Change to LGPL.
6342         With permission from Ben Pfaff, Bruno Haible:
6343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6345
6346         acosl..tanl: Relicense under LGPL.
6347         * modules/acosl (License): Change to LGPL.
6348         * modules/asinl (License): Likewise.
6349         * modules/atanl (License): Likewise.
6350         * modules/cosl (License): Likewise.
6351         * modules/expl (License): Likewise.
6352         * modules/logl (License): Likewise.
6353         * modules/sinl (License): Likewise.
6354         * modules/sqrtl (License): Likewise.
6355         * modules/tanl (License): Likewise.
6356         Source code originally from glibc and Paolo Bonzini. Agreements:
6357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6359
6360 2011-05-05  Bruno Haible  <bruno@clisp.org>
6361
6362         signal: Define sighandler_t.
6363         * lib/signal.in.h (sighandler_t): New type.
6364         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6365         whether sighandler_t is defined.
6366         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6367         * modules/signal (Depends-on): Add extensions.
6368         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6369         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6370         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6371
6372 2011-05-05  Eric Blake  <eblake@redhat.com>
6373
6374         maint: remove useless REPLACE_*_H macros
6375         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6376         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6377         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6378         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6379         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6380         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6381         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6382         * m4/btowc.m4: Update callers.
6383         * m4/dirfd.m4: Likewise.
6384         * m4/duplocale.m4: Likewise.
6385         * m4/fchdir.m4: Likewise.
6386         * m4/fdopendir.m4: Likewise.
6387         * m4/inet_ntop.m4: Likewise.
6388         * m4/inet_pton.m4: Likewise.
6389         * m4/ioctl.m4: Likewise.
6390         * m4/mbrlen.m4: Likewise.
6391         * m4/mbrtowc.m4: Likewise.
6392         * m4/mbsinit.m4: Likewise.
6393         * m4/mbsnrtowcs.m4: Likewise.
6394         * m4/mbsrtowcs.m4: Likewise.
6395         * m4/poll.m4: Likewise.
6396         * m4/setlocale.m4: Likewise.
6397         * m4/wcrtomb.m4: Likewise.
6398         * m4/wcsnrtombs.m4: Likewise.
6399         * m4/wcsrtombs.m4: Likewise.
6400         * m4/wctob.m4: Likewise.
6401         * m4/wcwidth.m4: Likewise.
6402         * modules/posix_spawn: Likewise.
6403         * modules/posix_spawn_file_actions_addclose: Likewise.
6404         * modules/posix_spawn_file_actions_adddup2: Likewise.
6405         * modules/posix_spawn_file_actions_addopen: Likewise.
6406         * modules/posix_spawn_file_actions_destroy: Likewise.
6407         * modules/posix_spawn_file_actions_init: Likewise.
6408         * modules/posix_spawnattr_destroy: Likewise.
6409         * modules/posix_spawnattr_getflags: Likewise.
6410         * modules/posix_spawnattr_getpgroup: Likewise.
6411         * modules/posix_spawnattr_getschedparam: Likewise.
6412         * modules/posix_spawnattr_getschedpolicy: Likewise.
6413         * modules/posix_spawnattr_getsigdefault: Likewise.
6414         * modules/posix_spawnattr_getsigmask: Likewise.
6415         * modules/posix_spawnattr_init: Likewise.
6416         * modules/posix_spawnattr_setflags: Likewise.
6417         * modules/posix_spawnattr_setpgroup: Likewise.
6418         * modules/posix_spawnattr_setschedparam: Likewise.
6419         * modules/posix_spawnattr_setschedpolicy: Likewise.
6420         * modules/posix_spawnattr_setsigdefault: Likewise.
6421         * modules/posix_spawnattr_setsigmask: Likewise.
6422         * modules/posix_spawnp: Likewise.
6423
6424 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6425
6426         Add option to do-release-commit-and-tag to specify branch.
6427         * build-aux/do-release-commit-and-tag: Add --branch.
6428
6429 2011-05-03  Bruno Haible  <bruno@clisp.org>
6430
6431         Avoid unnecessary compilation units, through conditional dependencies.
6432         * modules/accept (Depends-on): Add conditions to the dependencies.
6433         * modules/acosl (Depends-on): Likewise.
6434         * modules/argz (Depends-on): Likewise.
6435         * modules/asinl (Depends-on): Likewise.
6436         * modules/atanl (Depends-on): Likewise.
6437         * modules/atoll (Depends-on): Likewise.
6438         * modules/bind (Depends-on): Likewise.
6439         * modules/btowc (Depends-on): Likewise.
6440         * modules/canonicalize-lgpl (Depends-on): Likewise.
6441         * modules/ceil (Depends-on): Likewise.
6442         * modules/ceilf (Depends-on): Likewise.
6443         * modules/ceill (Depends-on): Likewise.
6444         * modules/chdir-long (Depends-on): Likewise.
6445         * modules/chown (Depends-on): Likewise.
6446         * modules/close (Depends-on): Likewise.
6447         * modules/connect (Depends-on): Likewise.
6448         * modules/cosl (Depends-on): Likewise.
6449         * modules/dirfd (Depends-on): Likewise.
6450         * modules/dprintf (Depends-on): Likewise.
6451         * modules/dprintf-posix (Depends-on): Likewise.
6452         * modules/error (Depends-on): Likewise.
6453         * modules/euidaccess (Depends-on): Likewise.
6454         * modules/expl (Depends-on): Likewise.
6455         * modules/faccessat (Depends-on): Likewise.
6456         * modules/fchdir (Depends-on): Likewise.
6457         * modules/fclose (Depends-on): Likewise.
6458         * modules/fcntl (Depends-on): Likewise.
6459         * modules/fdopendir (Depends-on): Likewise.
6460         * modules/fflush (Depends-on): Likewise.
6461         * modules/floor (Depends-on): Likewise.
6462         * modules/floorf (Depends-on): Likewise.
6463         * modules/floorl (Depends-on): Likewise.
6464         * modules/fnmatch (Depends-on): Likewise.
6465         * modules/fopen (Depends-on): Likewise.
6466         * modules/fprintf-posix (Depends-on): Likewise.
6467         * modules/frexp (Depends-on): Likewise.
6468         * modules/frexp-nolibm (Depends-on): Likewise.
6469         * modules/frexpl (Depends-on): Likewise.
6470         * modules/frexpl-nolibm (Depends-on): Likewise.
6471         * modules/fseek (Depends-on): Likewise.
6472         * modules/fsusage (Depends-on): Likewise.
6473         * modules/ftell (Depends-on): Likewise.
6474         * modules/ftello (Depends-on): Likewise.
6475         * modules/futimens (Depends-on): Likewise.
6476         * modules/getcwd (Depends-on): Likewise.
6477         * modules/getcwd-lgpl (Depends-on): Likewise.
6478         * modules/getdelim (Depends-on): Likewise.
6479         * modules/getdomainname (Depends-on): Likewise.
6480         * modules/getgroups (Depends-on): Likewise.
6481         * modules/gethostname (Depends-on): Likewise.
6482         * modules/getline (Depends-on): Likewise.
6483         * modules/getlogin_r (Depends-on): Likewise.
6484         * modules/getopt-posix (Depends-on): Likewise.
6485         * modules/getpeername (Depends-on): Likewise.
6486         * modules/getsockname (Depends-on): Likewise.
6487         * modules/getsockopt (Depends-on): Likewise.
6488         * modules/getsubopt (Depends-on): Likewise.
6489         * modules/getusershell (Depends-on): Likewise.
6490         * modules/glob (Depends-on): Likewise.
6491         * modules/grantpt (Depends-on): Likewise.
6492         * modules/iconv_open (Depends-on): Likewise.
6493         * modules/iconv_open-utf (Depends-on): Likewise.
6494         * modules/inet_ntop (Depends-on): Likewise.
6495         * modules/inet_pton (Depends-on): Likewise.
6496         * modules/ioctl (Depends-on): Likewise.
6497         * modules/isapipe (Depends-on): Likewise.
6498         * modules/isfinite (Depends-on): Likewise.
6499         * modules/isinf (Depends-on): Likewise.
6500         * modules/lchown (Depends-on): Likewise.
6501         * modules/ldexpl (Depends-on): Likewise.
6502         * modules/link (Depends-on): Likewise.
6503         * modules/linkat (Depends-on): Likewise.
6504         * modules/listen (Depends-on): Likewise.
6505         * modules/logl (Depends-on): Likewise.
6506         * modules/lstat (Depends-on): Likewise.
6507         * modules/mbrlen (Depends-on): Likewise.
6508         * modules/mbrtowc (Depends-on): Likewise.
6509         * modules/mbsinit (Depends-on): Likewise.
6510         * modules/mbsnrtowcs (Depends-on): Likewise.
6511         * modules/mbsrtowcs (Depends-on): Likewise.
6512         * modules/mbtowc (Depends-on): Likewise.
6513         * modules/memcmp (Depends-on): Likewise.
6514         * modules/mkdir (Depends-on): Likewise.
6515         * modules/mkdtemp (Depends-on): Likewise.
6516         * modules/mkfifo (Depends-on): Likewise.
6517         * modules/mkfifoat (Depends-on): Likewise.
6518         * modules/mknod (Depends-on): Likewise.
6519         * modules/mkostemp (Depends-on): Likewise.
6520         * modules/mkostemps (Depends-on): Likewise.
6521         * modules/mkstemp (Depends-on): Likewise.
6522         * modules/mkstemps (Depends-on): Likewise.
6523         * modules/mktime (Depends-on): Likewise.
6524         * modules/nanosleep (Depends-on): Likewise.
6525         * modules/open (Depends-on): Likewise.
6526         * modules/openat (Depends-on): Likewise.
6527         * modules/perror (Depends-on): Likewise.
6528         * modules/poll (Depends-on): Likewise.
6529         * modules/popen (Depends-on): Likewise.
6530         * modules/posix_spawn (Depends-on): Likewise.
6531         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
6532         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6533         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6534         * modules/posix_spawnp (Depends-on): Likewise.
6535         * modules/pread (Depends-on): Likewise.
6536         * modules/printf-posix (Depends-on): Likewise.
6537         * modules/ptsname (Depends-on): Likewise.
6538         * modules/putenv (Depends-on): Likewise.
6539         * modules/pwrite (Depends-on): Likewise.
6540         * modules/readline (Depends-on): Likewise.
6541         * modules/readlink (Depends-on): Likewise.
6542         * modules/readlinkat (Depends-on): Likewise.
6543         * modules/recv (Depends-on): Likewise.
6544         * modules/recvfrom (Depends-on): Likewise.
6545         * modules/regex (Depends-on): Likewise.
6546         * modules/remove (Depends-on): Likewise.
6547         * modules/rename (Depends-on): Likewise.
6548         * modules/renameat (Depends-on): Likewise.
6549         * modules/rmdir (Depends-on): Likewise.
6550         * modules/round (Depends-on): Likewise.
6551         * modules/roundf (Depends-on): Likewise.
6552         * modules/roundl (Depends-on): Likewise.
6553         * modules/rpmatch (Depends-on): Likewise.
6554         * modules/select (Depends-on): Likewise.
6555         * modules/send (Depends-on): Likewise.
6556         * modules/sendto (Depends-on): Likewise.
6557         * modules/setenv (Depends-on): Likewise.
6558         * modules/setlocale (Depends-on): Likewise.
6559         * modules/setsockopt (Depends-on): Likewise.
6560         * modules/shutdown (Depends-on): Likewise.
6561         * modules/sigaction (Depends-on): Likewise.
6562         * modules/signbit (Depends-on): Likewise.
6563         * modules/sigprocmask (Depends-on): Likewise.
6564         * modules/sinl (Depends-on): Likewise.
6565         * modules/sleep (Depends-on): Likewise.
6566         * modules/snprintf (Depends-on): Likewise.
6567         * modules/snprintf-posix (Depends-on): Likewise.
6568         * modules/socket (Depends-on): Likewise.
6569         * modules/sprintf-posix (Depends-on): Likewise.
6570         * modules/sqrtl (Depends-on): Likewise.
6571         * modules/stat (Depends-on): Likewise.
6572         * modules/strchrnul (Depends-on): Likewise.
6573         * modules/strdup-posix (Depends-on): Likewise.
6574         * modules/strerror (Depends-on): Likewise.
6575         * modules/strerror_r-posix (Depends-on): Likewise.
6576         * modules/strndup (Depends-on): Likewise.
6577         * modules/strnlen (Depends-on): Likewise.
6578         * modules/strptime (Depends-on): Likewise.
6579         * modules/strsep (Depends-on): Likewise.
6580         * modules/strsignal (Depends-on): Likewise.
6581         * modules/strstr-simple (Depends-on): Likewise.
6582         * modules/strtod (Depends-on): Likewise.
6583         * modules/strtoimax (Depends-on): Likewise.
6584         * modules/strtok_r (Depends-on): Likewise.
6585         * modules/strtoumax (Depends-on): Likewise.
6586         * modules/symlink (Depends-on): Likewise.
6587         * modules/symlinkat (Depends-on): Likewise.
6588         * modules/tanl (Depends-on): Likewise.
6589         * modules/tcgetsid (Depends-on): Likewise.
6590         * modules/tmpfile (Depends-on): Likewise.
6591         * modules/trunc (Depends-on): Likewise.
6592         * modules/truncf (Depends-on): Likewise.
6593         * modules/truncl (Depends-on): Likewise.
6594         * modules/uname (Depends-on): Likewise.
6595         * modules/unlink (Depends-on): Likewise.
6596         * modules/unlockpt (Depends-on): Likewise.
6597         * modules/unsetenv (Depends-on): Likewise.
6598         * modules/usleep (Depends-on): Likewise.
6599         * modules/utimensat (Depends-on): Likewise.
6600         * modules/vasprintf (Depends-on): Likewise.
6601         * modules/vdprintf (Depends-on): Likewise.
6602         * modules/vdprintf-posix (Depends-on): Likewise.
6603         * modules/vfprintf-posix (Depends-on): Likewise.
6604         * modules/vprintf-posix (Depends-on): Likewise.
6605         * modules/vsnprintf (Depends-on): Likewise.
6606         * modules/vsnprintf-posix (Depends-on): Likewise.
6607         * modules/vsprintf-posix (Depends-on): Likewise.
6608         * modules/wcrtomb (Depends-on): Likewise.
6609         * modules/wcscasecmp (Depends-on): Likewise.
6610         * modules/wcscspn (Depends-on): Likewise.
6611         * modules/wcsdup (Depends-on): Likewise.
6612         * modules/wcsncasecmp (Depends-on): Likewise.
6613         * modules/wcsnrtombs (Depends-on): Likewise.
6614         * modules/wcspbrk (Depends-on): Likewise.
6615         * modules/wcsrtombs (Depends-on): Likewise.
6616         * modules/wcsspn (Depends-on): Likewise.
6617         * modules/wcsstr (Depends-on): Likewise.
6618         * modules/wcstok (Depends-on): Likewise.
6619         * modules/wcswidth (Depends-on): Likewise.
6620         * modules/wctob (Depends-on): Likewise.
6621         * modules/wctomb (Depends-on): Likewise.
6622         * modules/wctype (Depends-on): Likewise.
6623         * modules/wcwidth (Depends-on): Likewise.
6624         * modules/write (Depends-on): Likewise.
6625
6626 2011-05-03  Bruno Haible  <bruno@clisp.org>
6627
6628         Support for conditional dependencies.
6629         * doc/gnulib.texi (Module description): Document the syntax of
6630         conditional dependencies.
6631         * gnulib-tool: New option --conditional-dependencies.
6632         (func_usage): Document it.
6633         (cond_dependencies): New variable.
6634         (func_get_automake_snippet_conditional,
6635         func_get_automake_snippet_unconditional): New functions, extracted from
6636         func_get_automake_snippet.
6637         (func_get_automake_snippet): Use them.
6638         (sed_first_32_chars): New variable.
6639         (func_module_shellfunc_name): New function.
6640         (func_module_shellvar_name): New function.
6641         (func_module_conditional_name): New function.
6642         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
6643         func_cond_module_condition): New functions.
6644         (func_modules_transitive_closure): Add support for conditional
6645         dependencies.
6646         (func_emit_lib_Makefile_am): For a conditional module, enclose the
6647         conditional automake snippet in an automake conditional.
6648         (func_emit_autoconf_snippets): Emit shell functions that contain the
6649         code for conditional modules.
6650         (func_import, func_create_testdir): Update specification.
6651
6652 2011-05-03  Eric Blake  <eblake@redhat.com>
6653
6654         test-getaddrinfo: report error information
6655         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
6656
6657 2011-05-03  Jim Meyering  <meyering@redhat.com>
6658
6659         bootstrap: avoid build failure when $GZIP is set
6660         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
6661         program name.  If defined at all, it is supposed to list gzip options.
6662         Reported by Alan Curry in http://debbugs.gnu.org/8609
6663
6664 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
6665
6666         readme-release: new module with release instructions
6667         * modules/readme-release: New module.
6668         * top/README-release: New file, from coreutils, grep, diffutils.
6669         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6670
6671 2011-05-02  Eric Blake  <eblake@redhat.com>
6672
6673         fflush: also replace fclose when fixing fflush
6674         * modules/fflush (Depends-on): Add fclose.
6675         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
6676         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
6677         memstreams with no backing fd.
6678         * doc/posix-functions/fclose.texi (fclose): Document the use of
6679         fflush module to fix the bug.
6680         * tests/test-fclose.c (main): Relax test when fclose is used in
6681         isolation.
6682
6683         fclose: add some tests
6684         * modules/fclose-tests: New test module.
6685         * tests/test-fclose.c: New file.
6686         * doc/posix-functions/fclose.texi (fclose): Document the bug.
6687
6688         fclose: reduced dependencies
6689         * modules/fclose (Depends-on): Switch from fflush/fseeko to
6690         simpler lseek.
6691         * lib/fclose.c (rpl_fclose): Likewise.
6692         Reported by Simon Josefsson.
6693
6694         exit: drop remaining clients
6695         * modules/argmatch (Depends-on): Replace exit with stdlib.
6696         * modules/copy-file (Depends-on): Likewise.
6697         * modules/execute (Depends-on): Likewise.
6698         * modules/exitfail (Depends-on): Likewise.
6699         * modules/obstack (Depends-on): Likewise.
6700         * modules/pagealign_alloc (Depends-on): Likewise.
6701         * modules/pipe-filter-gi (Depends-on): Likewise.
6702         * modules/pipe-filter-ii (Depends-on): Likewise.
6703         * modules/savewd (Depends-on): Likewise.
6704         * modules/spawn-pipe (Depends-on): Likewise.
6705         * modules/wait-process (Depends-on): Likewise.
6706         * modules/xsetenv (Depends-on): Likewise.
6707         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
6708         * modules/git-merge-changelog (Depends-on): Likewise.
6709         * modules/long-options (Depends-on): Likewise.
6710         * modules/pt_chown (Depends-on): Likewise.
6711         * modules/sysexits (Depends-on): Likewise.
6712
6713         freading: relax license from LGPLv3+ to LGPLv2+
6714         * modules/freading (License): Relax LGPL version.
6715
6716 2011-05-02  Bruno Haible  <bruno@clisp.org>
6717
6718         fchdir: Remove unused dependencies.
6719         * modules/fchdir (Depends-on): Remove include_next.
6720
6721 2011-05-02  Bruno Haible  <bruno@clisp.org>
6722
6723         gnulib-tool: Refactor.
6724         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
6725         from func_emit_autoconf_snippets.
6726         (func_emit_autoconf_snippets): Use it.
6727
6728 2011-05-02  Simon Josefsson  <simon@josefsson.org>
6729
6730         * NEWS: Document removal of 'exit'.
6731         * modules/exit: Remove file.
6732
6733 2011-05-01  Bruno Haible  <bruno@clisp.org>
6734
6735         Update DEPENDENCIES.
6736         * DEPENDENCIES (gettext): Recommend the newest release.
6737         Reported by Simon Josefsson.
6738
6739 2011-05-01  Bruno Haible  <bruno@clisp.org>
6740
6741         gnulib-tool: Reduce code duplication.
6742         * gnulib-tool (func_emit_autoconf_snippets): New function.
6743         (func_import, func_create_testdir): Use it.
6744
6745 2011-04-30  Eric Blake  <eblake@redhat.com>
6746
6747         fclose: don't fail on non-seekable input stream
6748         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
6749         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
6750         since fflush is allowed to fail in that case.
6751
6752 2011-04-30  Bruno Haible  <bruno@clisp.org>
6753
6754         dup3: cleanup
6755         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
6756
6757 2011-04-30  Bruno Haible  <bruno@clisp.org>
6758
6759         netdb: Make it work in C++ mode.
6760         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
6761         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
6762         module.
6763         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
6764         gl_MODULE_INDICATOR_FOR_TESTS.
6765         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
6766         * modules/netdb-c++-tests: New file.
6767         * tests/test-netdb-c++.cc: New file.
6768
6769 2011-04-30  Bruno Haible  <bruno@clisp.org>
6770
6771         New modules 'vfscanf', 'vscanf'.
6772         * modules/vfscanf: New file.
6773         * modules/vscanf: New file.
6774         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
6775         here.
6776         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
6777         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
6778
6779 2011-04-30  Bruno Haible  <bruno@clisp.org>
6780
6781         passfd: Add comments.
6782         * lib/passfd.c: Add comments about platforms.
6783
6784 2011-04-30  Bruno Haible  <bruno@clisp.org>
6785
6786         sys_uio: Make <sys/uio.h> self-contained.
6787         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
6788         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
6789
6790 2011-04-30  Bruno Haible  <bruno@clisp.org>
6791
6792         sys_socket: Ensure 'struct iovec' definition.
6793         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
6794         <sys/socket.h>.
6795         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
6796
6797 2011-04-30  Bruno Haible  <bruno@clisp.org>
6798
6799         sys_uio: Protect definition of 'struct iovec'.
6800         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
6801         it as a C struct.
6802
6803 2011-04-30  Bruno Haible  <bruno@clisp.org>
6804
6805         manywarnings: fix indentation
6806         * m4/manywarnings.m4: Indent by 2 spaces consistently.
6807
6808 2011-04-30  PĂ¡draig Brady <P@draigBrady.com>
6809
6810         manywarnings: add -Wno-missing-field-initializers if needed.
6811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
6812         option if it's needed to allow initialization with { 0, }
6813
6814 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
6815
6816         announce-gen: cosmetic improvement
6817         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
6818
6819 2011-04-29  Jim Meyering  <meyering@redhat.com>
6820
6821         vc-list-files: indent with spaces, not TABs
6822         * build-aux/vc-list-files: Convert leading TABs to spaces,
6823         to match the style of most other files in gnulib.
6824
6825         announce-gen: indent with spaces, not TABs
6826         * build-aux/announce-gen: Convert all TABs to spaces, to match
6827         the style of most other files in gnulib.
6828
6829 2011-04-29  Eric Blake  <eblake@redhat.com>
6830
6831         quotearg: avoid uninitialized variable use
6832         * lib/quotearg.c (quoting_options_from_style): Initialize
6833         remaining fields, and ensure that custom styles are only used via
6834         quoting_options rather than quoting_style.
6835
6836 2011-04-29  Jim Meyering  <meyering@redhat.com>
6837
6838         maint.mk: remove unused VC-tag variable
6839         * top/maint.mk (VC-tag): Remove unused variable.
6840
6841 2011-04-29  Bruno Haible  <bruno@clisp.org>
6842
6843         netdb: fix gai_strerror replacements
6844         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
6845         * modules/netdb: Substitute it.
6846
6847 2011-04-29  Jim Meyering  <meyering@redhat.com>
6848
6849         test-getcwd.c: avoid new set-but-not-used warning
6850         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
6851         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
6852         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
6853         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
6854
6855         test-hash.c: avoid a new shadowing warning
6856         * tests/test-hash.c (main): Don't shadow "dup".
6857
6858 2011-04-28  Eric Blake  <eblake@redhat.com>
6859
6860         getaddrinfo: fix gai_strerror signature
6861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
6862         and work around mingw with UNICODE defined.
6863         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
6864         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
6865         * modules/netdb (Makefile.am): Substitute it.
6866         * lib/netdb.in.h (gai_strerror): Declare replacement.
6867         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
6868         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
6869         the fix.
6870
6871         getsockopt: avoid compiler warning
6872         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
6873         Reported by Matthias Bolte.
6874
6875         tests: drop unused link dependency
6876         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
6877         * modules/dirent-safer-tests (Makefile.am): Likewise.
6878         * modules/fdopendir-tests (Makefile.am): Likewise.
6879         * modules/mkfifoat-tests (Makefile.am): Likewise.
6880         * modules/openat-safer-tests (Makefile.am): Likewise.
6881         * modules/openat-tests (Makefile.am): Likewise.
6882         * modules/readlinkat-tests (Makefile.am): Likewise.
6883         * modules/symlinkat-tests (Makefile.am): Likewise.
6884         * modules/linkat-tests (Makefile.am): Likewise.
6885         (Depends-on): Switch to filenamecat-lgpl.
6886         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
6887         LIBINTL.
6888         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
6889         * tests/test-linkat.c (main): Don't require xalloc.
6890
6891         hash, mgetgroups: drop xalloc dependency
6892         * lib/hash.c (includes): Adjust includes.
6893         * lib/mgetgroups.c (includes): Likewise.
6894         (xgetgroups): Move...
6895         * lib/xgetgroups.c: ...to new file.
6896         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
6897         * modules/xgetgroups: New file, split from...
6898         * modules/mgetgroups: ...here.
6899         (Depends-on): Add xalloc-oversized.
6900         * modules/hash (Depends-on): Likewise.
6901         * modules/hash-tests (Depends-on): Drop xalloc.
6902         (test_hash_LDADD): Drop unused library.
6903         * tests/test-hash.c (main): Break xalloc dependency.
6904         (includes): Drop unused include.
6905
6906         xalloc-oversized: new module
6907         * modules/xalloc-oversized: New module.
6908         * modules/xalloc (Depends-on): Add it.
6909         * lib/xalloc.h (xalloc_oversized): Move...
6910         * lib/xalloc-oversized.h: ...into new file.
6911
6912         utimecmp: drop dependency on xmalloc
6913         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
6914         due to memory pressure.
6915         * modules/utimecmp (Depends-on): Drop xalloc.
6916
6917 2011-04-27  Eric Blake  <eblake@redhat.com>
6918
6919         getcwd: fix mingw bugs
6920         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
6921         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
6922         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
6923
6924 2011-04-27  Bruno Haible  <bruno@clisp.org>
6925
6926         mkstemps: Ensure declaration on MacOS X 10.5.
6927         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
6928         * doc/glibc-functions/mkstemps.texi: Document header file problem on
6929         MacOS X.
6930
6931 2011-04-27  Bruno Haible  <bruno@clisp.org>
6932
6933         mkstemp: More documentation.
6934         * doc/posix-functions/mkstemp.texi: Document header file problem on
6935         MacOS X.
6936
6937 2011-04-27  Bruno Haible  <bruno@clisp.org>
6938
6939         mkstemp: Tweak configure message when cross-compiling.
6940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
6941         result as a guess.
6942
6943 2011-04-27  Bruno Haible  <bruno@clisp.org>
6944
6945         clean-temp: Clarify what it does.
6946         * lib/clean-temp.h: Add more comments.
6947         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
6948         module.
6949         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
6950         * doc/glibc-functions/mkstemps.texi: Likewise.
6951         * doc/glibc-functions/mkostemps.texi: Likewise.
6952
6953 2011-04-27  Eric Blake  <eblake@redhat.com>
6954
6955         fchdir: avoid extra chdir and fix test
6956         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
6957         getcwd-lgpl.
6958         * lib/fchdir.c (get_name): Any absolute name will do; it does not
6959         have to be canonical.
6960         (canonicalize_file_name): Drop unused macro.
6961         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
6962
6963         filenamecat-lgpl: fix licence
6964         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
6965         when it was first created.
6966
6967         linkat, renameat: add missing dependency
6968         * modules/linkat (Depends-on): Require getcwd-lgpl.
6969         * modules/renameat (Depends-on): Likewise.
6970
6971         tests: reduce dependencies
6972         * tests/test-linkat.c (main): Use lighter-weight getcwd.
6973         * tests/test-renameat.c (main): Likewise.
6974         * modules/linkat-tests (Depends-on): Relax dependency.
6975         * modules/renameat-tests (Depends-on): Likewise.
6976         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
6977         dependency explicit.
6978
6979         save-cwd: reduce default dependency
6980         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
6981         * lib/save-cwd.c: Update comments.
6982         * NEWS: Document the semantic change.
6983
6984         getcwd: enhance tests
6985         * tests/test-getcwd-lgpl.c: New file, taken from...
6986         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
6987         repeat long path stress tests from m4 probe.
6988         * modules/getcwd-lgpl-tests: New module.
6989         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
6990         * m4/getcwd-abort-bug.m4: Update comment.
6991         * m4/getcwd-path-max.m4: Likewise.
6992
6993         getcwd-lgpl: new module
6994         * modules/getcwd-lgpl: New module.
6995         * lib/getcwd-lgpl.c: New file.
6996         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6997         * MODULES.html.sh (lacking POSIX:2008): Likewise.
6998         * modules/getcwd (configure.ac): Set C witness.
6999         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7000
7001         getcwd: tweak comments
7002         * m4/getcwd-abort-bug.m4: Fix comments.
7003         * m4/getcwd-path-max.m4: Likewise.
7004         * m4/getcwd.m4: Likewise.
7005
7006 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7007         and Eric Blake  <eblake@redhat.com>
7008
7009         mkstemp: replace if system version uses wrong permissions
7010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7011         read/write mode bits set in file created by mkstemp.
7012         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7013
7014 2011-04-27  Eric Blake  <eblake@redhat.com>
7015
7016         passfd: avoid compiler warning
7017         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7018         Reported by Laine Stump.
7019
7020 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7021
7022         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7023         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7024
7025 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7026         and Eric Blake  <eblake@redhat.com>
7027
7028         mkstemp: mention clean-temp module
7029         * lib/mkstemp.c: Add comment.
7030         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7031
7032 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7033
7034         inttypes: also provide default values for 32-bit tests
7035         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7036         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7037
7038 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7039
7040         strtoumax: remove dependency on strtoimax
7041         This is like the strtoull change of yesterday.
7042         * modules/strtoumax (Files): Add lib/strtoimax.c.
7043         (Depends-on): Remove strtoimax and add verify.
7044
7045         inttypes-incomplete: new module
7046         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7047         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7048         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7049         of gl_INTTYPES_H.
7050         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7051         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7052         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7053         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7054         * modules/strtoumax, modules/xstrtol (Depends-on):
7055         Depend on inttypes-incomplete, not inttypes.
7056         * modules/inttypes-incomplete: New module, containing the contents
7057         of the old modules/inttypes module, except that the Files: section
7058         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7059         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7060         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7061         (Depends-on): Depend only on inttypes-incomplete.
7062         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7063
7064         inttypes: omit now-redundant strtoimax and strtoumax work
7065         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7066         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7067
7068         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7069         This supports apps that need pointers to strtoimax and strtoumax,
7070         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7071         nonexistent functions.  See
7072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7073         et seq.
7074         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7076         a macro.
7077         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7078
7079 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7080
7081         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7082
7083 2011-04-25  Bruno Haible  <bruno@clisp.org>
7084
7085         strtol, strtoul: Mark modules as obsolete.
7086         * modules/strtol (Status, Notice): New sections.
7087         * modules/strtoul (Status, Notice): New sections.
7088
7089 2011-04-25  Bruno Haible  <bruno@clisp.org>
7090
7091         strtod: Remove check for strtod, unless supporting old platforms.
7092         * modules/strtod-obsolete: New file.
7093         * m4/strtod-obsolete.m4: New file.
7094         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7095         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7096         * modules/strtod (Depends-on): Add strtod-obsolete.
7097         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7098
7099 2011-04-25  Bruno Haible  <bruno@clisp.org>
7100
7101         strcase: Make module obsolete.
7102         * modules/strcase (Status, Notice): New sections.
7103
7104 2011-04-25  Bruno Haible  <bruno@clisp.org>
7105
7106         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7107         * modules/dup2-obsolete: New file.
7108         * m4/dup2-obsolete.m4: New file.
7109         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7110         gl_FUNC_DUP2_OBSOLETE is not also defined.
7111         * modules/dup2 (Depends-on): Add dup2-obsolete.
7112         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7113
7114 2011-04-25  Bruno Haible  <bruno@clisp.org>
7115
7116         strnlen: Avoid memchr related link error on old obsolete platforms.
7117         * modules/memchr-obsolete: New file.
7118         * m4/memchr-obsolete.m4: New file.
7119         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7120         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7121         * modules/memchr (Depends-on): Add memchr-obsolete.
7122         * modules/strnlen (Depends-on): Likewise.
7123         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7124
7125 2011-04-25  Jim Meyering  <meyering@redhat.com>
7126
7127         maint.mk: makefile_at_at_check extend and clean up
7128         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7129         in addition to */Makefile.am.
7130         Exempt legitimate uses of @VAR@ notation, e.g.,
7131         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7132         Remove obsolete coreutils-specific comment.
7133         Prompted by discussion here:
7134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7135
7136 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7137
7138         strtoul: remove dependency on strtol
7139         This is so that 'configure' need not check for strtol merely because
7140         the application needs strtoul.
7141         * modules/strtoul (Files): Add lib/strtol.c.
7142         (Depends-on): Remove strtol.
7143
7144         strtoull: remove dependency on strtoul
7145         This is like the strtoll change.
7146         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7147         (Depends-on): Remove strtoul.
7148
7149         strtoll: remove dependency on strtol
7150         This is so that 'configure' need not check for strtol merely because
7151         the application needs strtoll.
7152         * modules/strtoll (Files): Add lib/strtol.c.
7153         (Depends-on): Remove strtol.
7154
7155 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7156
7157         inttypes: Move some configure check to module 'imaxdiv'.
7158         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7159         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7160         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7161
7162 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7163
7164         inttypes: Move some configure check to module 'imaxabs'.
7165         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7166         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7167         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7168
7169 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7170
7171         inttypes: Remove configure tests that are not needed since 2009-12-31.
7172         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7173         gl_cv_header_working_inttypes_h.
7174
7175 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7176
7177         * modules/strnlen (Depends-on): Remove memchr.
7178         The strnlen implementation doesn't need the memchr module's fixes; see
7179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7180
7181         strtol: remove dependency on wchar
7182         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7183         * modules/strtol (Depends-on): Remove wchar.
7184
7185 2011-04-21  Eric Blake  <eblake@redhat.com>
7186
7187         passfd: fix test regression on Linux
7188         * modules/passfd-tests (configure.ac): Correct socketpair check.
7189
7190         passfd: speed up configure and drop unused code
7191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7192         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7193         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7194         Instead of probing at configure for unix_scm_rights_bsd44_way,
7195         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7196         check to a struct member probe.
7197         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7198         (sendfd, recvfd): Update preprocessor checks.
7199         * modules/passfd (Files): Reflect rename, and drop unused file.
7200         (Depends-on): Drop unused dependency.
7201
7202         passfd: allow compilation on mingw
7203         * modules/sys_socket (Depends-on): Add sys_uio.
7204         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7205         iovec and a minimal struct msghdr.
7206         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7207         * tests/test-sys_socket.c (main): Enhance test.
7208         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7209         guaranteed to provide what we need.
7210         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7211         * modules/passfd-tests (Depends-on): Add sys_wait.
7212         * tests/test-passfd.c (main): Skip test on mingw, for now.
7213         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7214         partial 'struct msghdr' implementation.
7215
7216         sys_uio: new module
7217         * modules/sys_uio: New module.
7218         * modules/sys_uio-tests: Likewise.
7219         * lib/sys_uio.in.h: New file.
7220         * m4/sys_uio_h.m4: Likewise.
7221         * tests/test-sys_uio.c: Likewise.
7222         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7223         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7224
7225 2011-04-20  Jim Meyering  <meyering@redhat.com>
7226
7227         useless-if-before-free: avoid false-positive
7228         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7229         disjunct so that it too requires a terminating ";".  Without that,
7230         this script would identify as useless one statement from gcc that
7231         was not:
7232           if (aligned_ptr)
7233             free (((void **) aligned_ptr) [-1]);
7234
7235 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7236
7237         doc: update users.txt.
7238         * users.txt: Add barcode.
7239
7240 2011-04-19  Bruno Haible  <bruno@clisp.org>
7241
7242         ioctl: Remove link dependency on native Windows.
7243         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7244         (gl_close_fn, gl_ioctl_fn): New types.
7245         (struct fd_hook): Renamed from struct close_hook. Change type of
7246         private_close_fn field. Add private_ioctl_fn field.
7247         (close_hook_fn): Add parameter for primary close method.
7248         (execute_close_hooks, execute_all_close_hooks): Likewise.
7249         (ioctl_hook_fn): New type.
7250         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7251         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7252         argument.
7253         (unregister_fd_hook): Renamed from unregister_close_hook.
7254         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7255         Don't include <unistd.h>.
7256         (close): Remove undef.
7257         (anchor): Update.
7258         (execute_close_hooks): Add argument for primary close method.
7259         (execute_all_close_hooks): Likewise.
7260         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7261         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7262         argument. Allow each argument to be NULL.
7263         (unregister_fd_hook): Renamed from unregister_close_hook.
7264         * lib/close.c (rpl_close): Pass 'close' function pointer to
7265         execute_all_close_hooks.
7266         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7267         (primary_ioctl): New function.
7268         (ioctl): Don't call ioctlsocket here. Instead, call
7269         execute_all_ioctl_hooks.
7270         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7271         close method.
7272         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7273         (fd_sockets_hook): Renamed from close_sockets_hook.
7274         (gl_sockets_startup, gl_sockets_cleanup): Update.
7275         * modules/fd-hook: Renamed from modules/close-hook. Update.
7276         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7277         * modules/sockets (Depends-on): Likewise.
7278         * modules/ioctl (Depends-on): Add fd-hook.
7279         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7280         GNULIB_SOCKET.
7281
7282 2011-04-19  Bruno Haible  <bruno@clisp.org>
7283
7284         Move the support of O_NONBLOCK in open() to the 'open' module.
7285         * modules/nonblocking (Depends-on): Remove 'open'.
7286         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7287         gl_cv_have_open_O_NONBLOCK.
7288         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7289         O_NONBLOCK support.
7290         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7291
7292 2011-04-17  Bruno Haible  <bruno@clisp.org>
7293
7294         pipe2: Simplify code.
7295         * lib/pipe2.c (pipe2): Reduce code duplication.
7296
7297 2011-04-17  Bruno Haible  <bruno@clisp.org>
7298
7299         nonblocking: Add comment.
7300         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7301
7302 2011-04-17  Bruno Haible  <bruno@clisp.org>
7303
7304         nonblocking: Add tests for sockets.
7305         * tests/test-nonblocking-socket.sh: New file.
7306         * tests/test-nonblocking-socket-main.c: New file.
7307         * tests/test-nonblocking-socket-child.c: New file.
7308         * tests/test-nonblocking-socket.h: New file.
7309         * tests/socket-server.h: New file.
7310         * tests/socket-client.h: New file.
7311         * modules/nonblocking-socket-tests: New file.
7312         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7313
7314 2011-04-17  Bruno Haible  <bruno@clisp.org>
7315
7316         nonblocking: Add tests for pipes.
7317         * tests/test-nonblocking-pipe.sh: New file.
7318         * tests/test-nonblocking-pipe-main.c: New file.
7319         * tests/test-nonblocking-pipe-child.c: New file.
7320         * tests/test-nonblocking-pipe.h: New file.
7321         * tests/test-nonblocking-writer.h: New file.
7322         * tests/test-nonblocking-reader.h: New file.
7323         * tests/test-nonblocking-misc.h: New file.
7324         * modules/nonblocking-pipe-tests: New file.
7325         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7326
7327 2011-04-16  Bruno Haible  <bruno@clisp.org>
7328
7329         gettext: Clarify the needed programmer actions.
7330         * modules/gettext (Notice): New field.
7331         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7332
7333 2011-04-16  Bruno Haible  <bruno@clisp.org>
7334
7335         strchrnul: Tweak last commit.
7336         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7337         bug.
7338         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7339         as in _GL_FUNCDECL_SYS.
7340         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7341         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7342
7343 2011-04-15  Eric Blake  <eblake@redhat.com>
7344
7345         strchrnul: work around cygwin bug
7346         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7349         * modules/string (Makefile.am): Substitute it.
7350         * lib/string.in.h (strchrnul): Use it.
7351
7352 2011-04-15  Bruno Haible  <bruno@clisp.org>
7353
7354         Don't require lib/stdio-write.c when only module 'stdio' is used.
7355         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7356         invocation.
7357         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7358
7359 2011-04-14  Bruno Haible  <bruno@clisp.org>
7360
7361         Support non-blocking pipe I/O in read() on native Windows.
7362         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7363         (read): New declaration.
7364         * lib/read.c: New file.
7365         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7366         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7367         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7368         vscanf): New declarations.
7369         * lib/stdio-read.c: New file.
7370         * m4/read.m4: New file.
7371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7372         REPLACE_READ.
7373         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7374         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7375         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7376         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7377         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7378         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7379         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7380         * modules/read: New file.
7381         * modules/nonblocking (Files): Add lib/stdio-read.c.
7382         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7383         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7384         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7385         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7386         * modules/pread (Depends-on): Add read.
7387         * modules/safe-read (Depends-on): Likewise.
7388         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7389         gets, scanf, vfscanf, vscanf): Verify signatures.
7390         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7391         problem with non-blocking pipes.
7392         * doc/posix-functions/fgetc.texi: Likewise.
7393         * doc/posix-functions/fgets.texi: Likewise.
7394         * doc/posix-functions/fread.texi: Likewise.
7395         * doc/posix-functions/fscanf.texi: Likewise.
7396         * doc/posix-functions/getc.texi: Likewise.
7397         * doc/posix-functions/getchar.texi: Likewise.
7398         * doc/posix-functions/gets.texi: Likewise.
7399         * doc/posix-functions/scanf.texi: Likewise.
7400         * doc/posix-functions/vfscanf.texi: Likewise.
7401         * doc/posix-functions/vscanf.texi: Likewise.
7402
7403 2011-04-14  Bruno Haible  <bruno@clisp.org>
7404
7405         Support non-blocking pipe I/O in write() on native Windows.
7406         * lib/write.c (rpl_write): Split a write request that failed merely
7407         because the byte count was larger than the pipe buffer's size.
7408         * doc/posix-functions/write.texi: Mention the problem with large byte
7409         counts.
7410
7411 2011-04-14  Bruno Haible  <bruno@clisp.org>
7412
7413         wchar: Ensure that wchar_t gets defined on uClibc.
7414         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7415         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7416
7417 2011-04-13  Bruno Haible  <bruno@clisp.org>
7418
7419         safe-write, full-read: Avoid unnecessary compilation units.
7420         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7421         (Depends-on): Remove safe-read. Add ssize_t.
7422         * modules/full-read (Files): Add lib/full-write.c.
7423         (Depends-on): Add full-write.
7424
7425 2011-04-13  Bruno Haible  <bruno@clisp.org>
7426
7427         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7428         * modules/pwrite (Depends-on): Add 'write'.
7429
7430 2011-04-13  Bruno Haible  <bruno@clisp.org>
7431
7432         Support non-blocking pipe I/O in write() on native Windows.
7433         * lib/unistd.in.h (write): Enable replacement also if
7434         GNULIB_UNISTD_H_NONBLOCKING is 1.
7435         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7436         (rpl_write): When failing to write on a non-blocking pipe, change
7437         errno from ENOSPC to EAGAIN.
7438         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7439         putchar, puts, vfprintf, vprintf): Enable replacement also if
7440         GNULIB_STDIO_H_NONBLOCKING is 1.
7441         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7442         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7443         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7444         CALL_WITH_SIGPIPE_EMULATION.
7445         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7446         * m4/nonblocking.m4: New file.
7447         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7448         for non-blocking I/O support.
7449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7450         GNULIB_UNISTD_H_NONBLOCKING.
7451         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7452         required for non-blocking I/O support.
7453         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7454         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7455         lib/stdio-write.c, m4/asm-underscore.m4.
7456         (Depends-on): Add stdio, unistd.
7457         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7458         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7459         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7460         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7461         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7462         problem with non-blocking pipes.
7463         * doc/posix-functions/fputc.texi: Likewise.
7464         * doc/posix-functions/fputs.texi: Likewise.
7465         * doc/posix-functions/fwrite.texi: Likewise.
7466         * doc/posix-functions/printf.texi: Likewise.
7467         * doc/posix-functions/putc.texi: Likewise.
7468         * doc/posix-functions/putchar.texi: Likewise.
7469         * doc/posix-functions/puts.texi: Likewise.
7470         * doc/posix-functions/vfprintf.texi: Likewise.
7471         * doc/posix-functions/vprintf.texi: Likewise.
7472         * doc/posix-functions/write.texi: Likewise.
7473
7474 2011-04-10  Jim Meyering  <meyering@redhat.com>
7475
7476         maint.mk: prohibit doubled words
7477         Detect them also when they're separated by a newline.
7478         There are 3 ways to customize it:
7479           - disable the test on a per file basis, as usual with rules using
7480             $(VC_LIST_EXCEPT)
7481           - replace the default doubled-word-selecting regexp (affects all files)
7482           - ignore a particular file-vs-doubled-word match
7483         I nearly used that last one to ignore the "is is" match in
7484         coreutils' NEWS file, since the text was "ls -is is ..."
7485         To do that, I would have added this line to cfg.mk:
7486           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
7487         but it would have ignored any "is is" match in NEWS.
7488         Low probability, but still...
7489         Instead, I changed the text, slightly:
7490           -  ls -is is now consistent with ls -lis in ignoring values returned
7491           +  "ls -is" is now consistent with ls -lis in ignoring values returned
7492         * top/maint.mk (prohibit_double_word_RE_): Provide default.
7493         (prohibit_doubled_word_): Define.
7494         (sc_prohibit_doubled_word): New rule.
7495         (sc_prohibit_the_the): Remove.  Subsumed by the above.
7496
7497 2011-04-10  Jim Meyering  <meyering@redhat.com>
7498
7499         maint: fix doubled-word typo in comment
7500         * m4/gethostname.m4: s/is is/it is/
7501         * m4/getdomainname.m4: Likewise.
7502
7503 2011-04-10  Jim Meyering  <meyering@redhat.com>
7504
7505         maint: remove doubled word: s/it it/it/
7506         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
7507
7508 2011-04-10  Jim Meyering  <meyering@redhat.com>
7509
7510         maint.mk: remove useless semicolon and backslash
7511         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
7512         semicolon and backslash.
7513
7514 2011-04-10  Bruno Haible  <bruno@clisp.org>
7515
7516         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
7517         * modules/stdint-tests (Depends-on): Add wchar.
7518
7519 2011-04-10  Jim Meyering  <meyering@redhat.com>
7520
7521         maint: remove doubled words in comments, e.g., s/a a/a/
7522         * lib/strptime.c (day_of_the_week): s/the the/the/
7523         * tests/test-chown.h (test_chown): s/a a/a/
7524
7525         test-chown.h: correct a cast
7526         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
7527         when the destination is a stat.st_gid.
7528
7529 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
7530
7531         getaddrinfo: Fix test for sa_len member.
7532         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
7533         include <sys/types.h> before <sys/socket.h>.
7534
7535 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
7536
7537         maint: change "can not" to "cannot"
7538         * doc/posix-functions/iconv.texi (iconv): This one crossed line
7539         boundaries.
7540
7541 2011-04-09  Jim Meyering  <meyering@redhat.com>
7542
7543         maint: change "a a" to "a"
7544         * tests/test-lchown.h (test_lchown): s/a a/a/
7545
7546         maint.mk: prohibit \<the the\>
7547         * top/maint.mk (sc_prohibit_the_the): New rule.
7548
7549         maint: fix "the the" in comment
7550         * lib/count-one-bits.h: s/the the/the/
7551
7552         maint: change "can not" to "cannot"
7553         But do not change the occurrences in maintain.texi or in
7554         build-aux/po/Makefile.in.in, which I presume comes from gettext.
7555         * doc/gnulib-tool.texi: s/can not/cannot/
7556         * doc/posix-functions/accept.texi (accept): Likewise.
7557         * doc/posix-functions/socket.texi (socket): Likewise.
7558         * lib/mbrtowc.c: Likewise.
7559
7560         maint.mk: prohibit use of "can not"
7561         * top/maint.mk (sc_prohibit_can_not): New rule.
7562         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
7563
7564 2011-04-09  Bruno Haible  <bruno@clisp.org>
7565
7566         careadlinkat: Guard against misuse of careadlinkatcwd.
7567         * lib/careadlinkat.c: Include <stdlib.h>.
7568         (careadlinkatcwd): Check that the fd argument is as expected.
7569
7570 2011-04-09  Bruno Haible  <bruno@clisp.org>
7571
7572         careadlinkat: Use common coding style.
7573         * lib/careadlinkat.c: Move gnulib includes after system includes.
7574
7575 2011-04-09  Bruno Haible  <bruno@clisp.org>
7576
7577         careadlinkat: Clarify specification.
7578         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
7579         (careadlinkatcwd): Add comment.
7580         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
7581
7582 2011-04-09  Bruno Haible  <bruno@clisp.org>
7583
7584         areadlinkat: Avoid link error on many platforms.
7585         * modules/areadlinkat (Depends-on): Add areadlink.
7586
7587 2011-04-09  Bruno Haible  <bruno@clisp.org>
7588
7589         allocator, careadlinkat: Fix double-inclusion guard.
7590         * lib/allocator.h: Fix double-inclusion guard.
7591         * lib/careadlinkat.h: Likewise.
7592
7593 2011-04-09  Bruno Haible  <bruno@clisp.org>
7594
7595         relocatable-prog-wrapper: Update after module 'areadlink' changed.
7596         * lib/relocwrapper.c: Update dependencies hierarchy.
7597         * build-aux/install-reloc: Update list of files to be compiled.
7598         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
7599         lib/allocator.[hc].
7600
7601 2011-04-08  Eric Blake  <eblake@redhat.com>
7602
7603         strftime: silence gnulib-tool warning
7604         * modules/strftime-tests (Depends-on): Drop automatic dependency.
7605
7606 2011-04-08  Bruno Haible  <bruno@clisp.org>
7607
7608         verify: Fix syntax error with GCC 4.6 in C++ mode.
7609         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
7610         (HAVE_STATIC_ASSERT): New macro.
7611         (verify_true, verify): Use 'static_assert' if it is supported and
7612         '_Static_assert' is not supported.
7613
7614 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
7615
7616         allocator: New module.
7617         * modules/allocator, lib/allocator.c: New files.
7618         * lib/allocator.h (stdlib_allocator): New decl.
7619         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
7620         Remove.  Do not include <stdlib.h>.
7621         (careadlinkat): Use stdlib_allocator instead of rolling our own.
7622         * modules/careadlinkat (Files): Remove lib/allocator.h.
7623         (Depends-on): Add allocator.
7624
7625         stdlib: let modules use system malloc, realloc
7626         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
7627         if !_GL_USE_STDLIB_ALLOC.
7628         (malloc, realloc): Limit this change to a smaller scope.
7629
7630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
7631         (malloc, realloc): Don't #undef; no longer needed.
7632         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7633         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7634         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7635         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7636         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7637         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7638         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
7639         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
7640
7641         careadlinkat: rename members to avoid problem
7642         * lib/allocator.h (struct allocator): Rename members from
7643         malloc/realloc to allocate/reallocate, to avoid problems if malloc
7644         and realloc are #define'd.  Reported by Eric Blake in
7645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
7646         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
7647
7648 2011-04-08  Eric Blake  <eblake@redhat.com>
7649
7650         nonblocking: reduce dependency
7651         * tests/test-nonblocking.c: Only test sockets when in use.
7652         * modules/nonblocking-tests (Depends-on): Drop socket.
7653         (Makefile.am): Link even if sockets are not present.
7654         * modules/pipe2-tests (Makefile.am): Likewise.
7655         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
7656
7657         pipe2: fix O_NONBLOCK support on mingw
7658         * modules/pipe2 (Depends-on): Add nonblocking.
7659         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
7660         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
7661         * tests/test-nonblocking.c (main): Likewise.
7662         * modules/pipe2-tests (Makefile.am): Avoid link failure.
7663
7664         fcntl-h: fix O_ACCMODE on cygwin
7665         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
7666         * lib/fcntl.in.h (O_ACCMODE): Fix it.
7667
7668         pipe-filter: drop O_NONBLOCK workarounds
7669         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
7670         * modules/pipe-filter-ii (Depends-on): Likewise.
7671         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
7672
7673         nonblocking: provide O_NONBLOCK for mingw
7674         * modules/nonblocking (Depends-on): Add open.
7675         (configure.ac): Set new witness macro.
7676         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
7677         * modules/fcntl-h (Makefile.am): Substitute it.
7678         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
7679         nonblocking module is in use.
7680         * lib/nonblocking.c: Adjust portability test.
7681         * lib/open.c (open): Don't let native open see gnulib flag.
7682         * tests/test-fcntl-h.c (main): Enhance test.
7683         * tests/test-open.h (test_open): Likewise.
7684         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
7685
7686         careadlinkat: fix compilation error on mingw
7687         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
7688         within struct allocator.
7689
7690 2011-04-06  Eric Blake  <eblake@redhat.com>
7691
7692         binary-io: relicense under LGPLv2+
7693         * modules/binary-io (License): Relax to LGPLv2+.
7694         Requested for libvirt, and required by pipe2.
7695
7696 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
7697
7698         verify: use _Static_assert if available
7699         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
7700         (verify_true, verify): Use it if available.  This generates better
7701         diagnostics with GCC 4.6.0 and later.
7702
7703 2011-04-05  Bruno Haible  <bruno@clisp.org>
7704
7705         Remove leftover generated .h files after config.status changed.
7706
7707         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
7708         GL_GENERATE_ALLOCA_H.
7709         * modules/alloca-opt (Makefile.am): Remove alloca.h if
7710         GL_GENERATE_ALLOCA_H evaluates to false.
7711
7712         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
7713         GL_GENERATE_ARGZ_H.
7714         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
7715         evaluates to false.
7716
7717         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
7718         GL_GENERATE_BYTESWAP_H.
7719         * modules/byteswap (Makefile.am): Remove byteswap.h if
7720         GL_GENERATE_BYTESWAP_H evaluates to false.
7721
7722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
7723         GL_GENERATE_ERRNO_H.
7724         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
7725         evaluates to false.
7726
7727         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
7728         GL_GENERATE_FLOAT_H.
7729         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
7730         evaluates to false.
7731
7732         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
7733         GL_GENERATE_FNMATCH_H.
7734         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
7735         GL_GENERATE_FNMATCH_H evaluates to false.
7736
7737         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
7738         GL_GENERATE_GLOB_H.
7739         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
7740         evaluates to false.
7741
7742         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
7743         automake conditional GL_GENERATE_ICONV_H.
7744         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
7745         evaluates to false.
7746
7747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
7748         GL_GENERATE_NETINET_IN_H.
7749         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
7750         GL_GENERATE_NETINET_IN_H evaluates to false.
7751
7752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
7753         conditional GL_GENERATE_PTHREAD_H.
7754         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
7755         * modules/pthread (Makefile.am): Remove pthread.h if
7756         GL_GENERATE_PTHREAD_H evaluates to false.
7757
7758         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
7759         GL_GENERATE_SCHED_H.
7760         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
7761         evaluates to false.
7762
7763         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
7764         conditional GL_GENERATE_SELINUX_CONTEXT_H.
7765         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
7766         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
7767
7768         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
7769         GL_GENERATE_STDARG_H.
7770         * modules/stdarg (Makefile.am): Remove stdarg.h if
7771         GL_GENERATE_STDARG_H evaluates to false.
7772
7773         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
7774         GL_GENERATE_STDBOOL_H.
7775         * modules/stdbool (Makefile.am): Remove stdbool.h if
7776         GL_GENERATE_STDBOOL_H evaluates to false.
7777
7778         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
7779         conditional GL_GENERATE_STDDEF_H.
7780         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
7781         * modules/stddef (Makefile.am): Remove stddef.h if
7782         GL_GENERATE_STDDEF_H evaluates to false.
7783
7784         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
7785         GL_GENERATE_STDINT_H.
7786         * modules/stdint (Makefile.am): Remove stdint.h if
7787         GL_GENERATE_STDINT_H evaluates to false.
7788
7789         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
7790         GL_GENERATE_SYSEXITS_H.
7791         * modules/sysexits (Makefile.am): Remove sysexits.h if
7792         GL_GENERATE_SYSEXITS_H evaluates to false.
7793
7794         Reported by Karl Berry and Ralf Wildenhues.
7795
7796 2011-04-05  Bruno Haible  <bruno@clisp.org>
7797
7798         Ensure to rebuild generated .h files when config.status has changed.
7799         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
7800         config.status.
7801         * modules/ctype (Makefile.am): Likewise.
7802         * modules/dirent (Makefile.am): Likewise.
7803         * modules/errno (Makefile.am): Likewise.
7804         * modules/fcntl-h (Makefile.am): Likewise.
7805         * modules/float (Makefile.am): Likewise.
7806         * modules/getopt-posix (Makefile.am): Likewise.
7807         * modules/glob (Makefile.am): Likewise.
7808         * modules/iconv-h (Makefile.am): Likewise.
7809         * modules/inttypes (Makefile.am): Likewise.
7810         * modules/langinfo (Makefile.am): Likewise.
7811         * modules/locale (Makefile.am): Likewise.
7812         * modules/math (Makefile.am): Likewise.
7813         * modules/netdb (Makefile.am): Likewise.
7814         * modules/netinet_in (Makefile.am): Likewise.
7815         * modules/poll-h (Makefile.am): Likewise.
7816         * modules/pthread (Makefile.am): Likewise.
7817         * modules/pty (Makefile.am): Likewise.
7818         * modules/sched (Makefile.am): Likewise.
7819         * modules/search (Makefile.am): Likewise.
7820         * modules/selinux-h (Makefile.am): Likewise.
7821         * modules/signal (Makefile.am): Likewise.
7822         * modules/spawn (Makefile.am): Likewise.
7823         * modules/stdarg (Makefile.am): Likewise.
7824         * modules/stdbool (Makefile.am): Likewise.
7825         * modules/stddef (Makefile.am): Likewise.
7826         * modules/stdint (Makefile.am): Likewise.
7827         * modules/stdio (Makefile.am): Likewise.
7828         * modules/stdlib (Makefile.am): Likewise.
7829         * modules/string (Makefile.am): Likewise.
7830         * modules/strings (Makefile.am): Likewise.
7831         * modules/sys_file (Makefile.am): Likewise.
7832         * modules/sys_ioctl (Makefile.am): Likewise.
7833         * modules/sys_select (Makefile.am): Likewise.
7834         * modules/sys_socket (Makefile.am): Likewise.
7835         * modules/sys_stat (Makefile.am): Likewise.
7836         * modules/sys_time (Makefile.am): Likewise.
7837         * modules/sys_times (Makefile.am): Likewise.
7838         * modules/sys_utsname (Makefile.am): Likewise.
7839         * modules/sys_wait (Makefile.am): Likewise.
7840         * modules/sysexits (Makefile.am): Likewise.
7841         * modules/termios (Makefile.am): Likewise.
7842         * modules/time (Makefile.am): Likewise.
7843         * modules/unistd (Makefile.am): Likewise.
7844         * modules/wchar (Makefile.am): Likewise.
7845         * modules/wctype-h (Makefile.am): Likewise.
7846         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
7847
7848 2011-04-05  Bruno Haible  <bruno@clisp.org>
7849
7850         pipe2: Relicense under LGPLv2+.
7851         * modules/pipe2 (License): Change to LGPLv2+.
7852         Requested by Eric Blake, for libvirt.
7853
7854 2011-04-05  Bruce Korb  <bkorb@gnu.org>
7855
7856         bootstrap: compute gnulib_extra_files after updating build_aux
7857         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
7858         change build_aux or also supply gnulib_extra_files.  Handle correctly.
7859
7860 2011-04-05  Eric Blake  <eblake@redhat.com>
7861
7862         bootstrap: preserve git whitelist item sorting
7863         * build-aux/bootstrap (sort_patterns): New function.
7864         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
7865
7866 2011-04-05  Simon Josefsson  <simon@josefsson.org>
7867
7868         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
7869         sc_space_tab check.
7870
7871 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
7872
7873         areadlink, areadlinkat: rewrite in terms of careadlinkat
7874         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
7875         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
7876         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
7877         (malloc, realloc): Remove #undefs.
7878         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
7879         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
7880         readlink, ssize_t, stdint, unistd.
7881         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
7882         areadlink, stdint.
7883
7884         careadlinkat: new module
7885         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
7886         * modules/careadlinkat: New files, written by me with
7887         a review and feedback from Ben Pfaff in
7888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
7889
7890 2011-04-01  Bruno Haible  <bruno@clisp.org>
7891
7892         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
7893         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
7894         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
7895         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
7896         Reported by Bruce Korb <bruce.korb@gmail.com>.
7897
7898 2011-04-01  Bruno Haible  <bruno@clisp.org>
7899
7900         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
7901         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
7902         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
7903         * modules/wcpcpy (Depends-on): Add extensions.
7904         * modules/wcpncpy (Depends-on): Likewise.
7905         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
7906         systems.
7907         * doc/posix-functions/wcpncpy.texi: Likewise.
7908         * doc/posix-functions/wcwidth.texi: Likewise.
7909
7910 2011-03-31  Eric Blake  <eblake@redhat.com>
7911
7912         nonblocking: fix mingw test failures
7913         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
7914         non-blocking flag on regular file.
7915         (get_nonblocking_flag): Set errno on invalid fd.
7916         * tests/test-nonblocking.c (main): Avoid test failure on
7917         directories if fchdir is not active.
7918         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
7919
7920 2011-03-31  Bruno Haible  <bruno@clisp.org>
7921
7922         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
7923         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
7924         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
7925         Reported by Simon Josefsson <simon@josefsson.org>.
7926
7927 2011-03-31  Bruno Haible  <bruno@clisp.org>
7928         and Eric Blake  <eblake@redhat.com>
7929
7930         nonblocking: new module
7931         * modules/nonblocking: New module.
7932         * modules/nonblocking-tests: Likewise.
7933         * lib/nonblocking.h: New file.
7934         * lib/nonblocking.c: Likewise.
7935         * tests/test-nonblocking.c: New test.
7936         * lib/ioctl.c (ioctl) [mingw]: Update comment.
7937
7938 2011-03-30  Bruno Haible  <bruno@clisp.org>
7939
7940         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
7941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
7942         instead of 'printf' format for GCC >= 4.4.
7943         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
7944         (fprintf, printf, vfprintf, vprintf): Declare with
7945         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
7946         the system's vfprintf() function.
7947         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
7948
7949 2011-03-30  Eric Blake  <eblake@redhat.com>
7950
7951         passfd: fix scoping bug
7952         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
7953         before sendmsg/recvmsg.
7954
7955         passfd: standardize coding conventions
7956         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
7957         can be learned at compile time.
7958         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
7959         ifdefs.
7960         (sendfd, recvfd): Follow gnulib code conventions.
7961
7962         passfd: fix incorrect sendmsg arguments
7963         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
7964         incorrect msg_controllen value.
7965         * modules/passfd-tests (Depends-on): Check for alarm.
7966         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
7967         Reported by Bastien ROUCARIES.
7968
7969 2011-03-30  Bruno Haible  <bruno@clisp.org>
7970
7971         c-strcasestr: Relicense under LGPLv2+.
7972         * modules/c-strcasestr (License): Change to LGPLv2+.
7973         Requested by Eric Blake, for libvirt.
7974
7975 2011-03-30  Simon Josefsson  <simon@josefsson.org>
7976
7977         * users.txt: Add libidn2.  Fix libtasn1 link.
7978
7979 2011-03-30  Jim Meyering  <meyering@redhat.com>
7980
7981         tests: readlink* ("",... fails with EINVAL on newer kernels
7982         readlink and readlinkat have typically failed with ENOENT for
7983         the invalid, empty file name,  "".  However, with the advent
7984         of linux-2.6.39, they fail with EINVAL.
7985         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
7986         when operating on the empty file name.
7987         * tests/test-readlink.h (test_readlink): Likewise.
7988
7989 2011-03-29  Bruno Haible  <bruno@clisp.org>
7990
7991         Relicense some modules under LGPLv2+, for libidn2.
7992         * modules/array-mergesort (License): Change to LGPLv2+.
7993         * modules/c-strcaseeq (License): Likewise.
7994         * modules/striconveh (License): Likewise.
7995         * modules/striconveha (License): Likewise.
7996         * modules/uniconv/base (License): Likewise.
7997         * modules/uniconv/u8-conv-from-enc (License): Likewise.
7998         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
7999         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8000         * modules/unictype/base (License): Likewise.
8001         * modules/unictype/bidiclass-of (License): Likewise.
8002         * modules/unictype/category-M (License): Likewise.
8003         * modules/unictype/category-none (License): Likewise.
8004         * modules/unictype/category-of (License): Likewise.
8005         * modules/unictype/category-test (License): Likewise.
8006         * modules/unictype/category-test-withtable (License): Likewise.
8007         * modules/unictype/combining-class (License): Likewise.
8008         * modules/unictype/joiningtype-of (License): Likewise.
8009         * modules/unictype/scripts (License): Likewise.
8010         * modules/uninorm/base (License): Likewise.
8011         * modules/uninorm/canonical-decomposition (License): Likewise.
8012         * modules/uninorm/composition (License): Likewise.
8013         * modules/uninorm/decompose-internal (License): Likewise.
8014         * modules/uninorm/decomposition-table (License): Likewise.
8015         * modules/uninorm/nfc (License): Likewise.
8016         * modules/uninorm/nfd (License): Likewise.
8017         * modules/uninorm/u32-normalize (License): Likewise.
8018         * modules/unistr/base (License): Likewise.
8019         * modules/unistr/u32-cpy (License): Likewise.
8020         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8021         * modules/unistr/u32-to-u8 (License): Likewise.
8022         * modules/unistr/u32-uctomb (License): Likewise.
8023         * modules/unistr/u8-check (License): Likewise.
8024         * modules/unistr/u8-mblen (License): Likewise.
8025         * modules/unistr/u8-mbtouc (License): Likewise.
8026         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8027         * modules/unistr/u8-mbtoucr (License): Likewise.
8028         * modules/unistr/u8-prev (License): Likewise.
8029         * modules/unistr/u8-strlen (License): Likewise.
8030         * modules/unistr/u8-to-u32 (License): Likewise.
8031         * modules/unistr/u8-uctomb (License): Likewise.
8032         * modules/unitypes (License): Likewise.
8033         Requested by Simon Josefsson.
8034
8035 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8036
8037         lib-symbol-visibility: Add a notice.
8038         * modules/lib-symbol-visibility (Notice): New field.
8039
8040 2011-03-29  Bruno Haible  <bruno@clisp.org>
8041
8042         getaddrinfo: Doc fix.
8043         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8044         section "fixed in Gnulib".
8045
8046 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8047
8048         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8049         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8050
8051 2011-03-26  Bruno Haible  <bruno@clisp.org>
8052
8053         unictype/property-byname: Reduce the number of load-time relocations.
8054         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8055         (UC_PROPERTY_INDEX_*): New enumeration values.
8056         (uc_property_byname): Convert an index from the lookup table to an
8057         uc_property_t.
8058         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8059         values.
8060
8061 2011-03-26  Bruno Haible  <bruno@clisp.org>
8062
8063         unictype/property-byname: Allow omitted word separators and aliases.
8064         * lib/unictype/pr_byname.gperf: Add property names without word
8065         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8066         for 'space'.
8067
8068 2011-03-26  Bruno Haible  <bruno@clisp.org>
8069
8070         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8071         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8072         also hyphens to space.
8073         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8074         without spaces.
8075         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8076
8077 2011-03-26  Bruno Haible  <bruno@clisp.org>
8078
8079         unictype/joiningtype-byname: Recognize long names as well.
8080         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8081         a long name.
8082         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8083         unictype/joiningtype_byname.h.
8084         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8085         * lib/unictype/joiningtype_byname.gperf: New file.
8086         * modules/unictype/joiningtype-byname (Files): Add
8087         lib/unictype/joiningtype_byname.gperf.
8088         (Depends-on): Add gperf.
8089         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8090         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8091         long names.
8092
8093         Tests for module 'unictype/joiningtype-longname'.
8094         * modules/unictype/joiningtype-longname-tests: New file.
8095         * tests/unictype/test-joiningtype_longname.c: New file.
8096
8097         New module 'unictype/joiningtype-longname'.
8098         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8099         * lib/unictype/joiningtype_longname.c: New file.
8100         * modules/unictype/joiningtype-longname: New file.
8101         * modules/unictype/joiningtype-all (Depends-on): Add
8102         unictype/joiningtype-longname.
8103
8104 2011-03-26  Bruno Haible  <bruno@clisp.org>
8105
8106         unictype/bidiclass-byname: Recognize long names as well.
8107         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8108         name.
8109         * lib/unictype/bidi_byname.c: Include <string.h>,
8110         unictype/bidi_byname.h.
8111         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8112         * lib/unictype/bidi_byname.gperf: New file.
8113         * modules/unictype/bidiclass-byname (Files): Add
8114         lib/unictype/bidi_byname.gperf.
8115         (Depends-on): Add gperf.
8116         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8117         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8118         long names.
8119
8120         Tests for module 'unictype/bidiclass-longname'.
8121         * modules/unictype/bidiclass-longname-tests: New file.
8122         * tests/unictype/test-bidi_longname.c: New file.
8123
8124         New module 'unictype/bidiclass-longname'.
8125         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8126         * lib/unictype/bidi_longname.c: New file.
8127         * modules/unictype/bidiclass-longname: New file.
8128         * modules/unictype/bidiclass-all (Depends-on): Add
8129         unictype/bidiclass-longname.
8130
8131 2011-03-26  Bruno Haible  <bruno@clisp.org>
8132
8133         unictype/bidi*: Rename modules.
8134         * modules/unictype/bidiclass-all: Renamed from
8135         modules/unictype/bidicategory-all.
8136         * modules/unictype/bidiclass-name: Renamed from
8137         modules/unictype/bidiclass-name.
8138         (Description): Update.
8139         * modules/unictype/bidiclass-name-tests: Renamed from
8140         modules/unictype/bidicategory-name-tests.
8141         * modules/unictype/bidiclass-byname: Renamed from
8142         modules/unictype/bidicategory-byname.
8143         (Description): Update.
8144         * modules/unictype/bidiclass-byname-tests: Renamed from
8145         modules/unictype/bidicategory-byname-tests.
8146         * modules/unictype/bidiclass-of: Renamed from
8147         modules/unictype/bidicategory-of.
8148         (Description): Update.
8149         * modules/unictype/bidiclass-of-tests: Renamed from
8150         modules/unictype/bidicategory-of-tests.
8151         * modules/unictype/bidiclass-test: Renamed from
8152         modules/unictype/bidicategory-test.
8153         (Description): Update.
8154         * modules/unictype/bidiclass-test-tests: Renamed from
8155         modules/unictype/bidicategory-test-tests.
8156         * modules/unictype/bidicategory-all: New file, a simple redirection.
8157         * modules/unictype/bidicategory-name: Likewise.
8158         * modules/unictype/bidicategory-byname: Likewise.
8159         * modules/unictype/bidicategory-of: Likewise.
8160         * modules/unictype/bidicategory-test: Likewise.
8161         * modules/unictype/property-bidi-* (Dependencies): Update.
8162         * lib/unictype/bidi_*.c: Update comment.
8163
8164 2011-03-26  Bruno Haible  <bruno@clisp.org>
8165
8166         unictype/bidi*: Rename functions, part 2.
8167         * modules/unictype/bidicategory-name (configure.ac): Update required
8168         libunistring version.
8169         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8170
8171 2011-03-25  Bruno Haible  <bruno@clisp.org>
8172
8173         New module 'unictype/combining-class-all'.
8174         * modules/unictype/combining-class-all: New file.
8175
8176         Tests for module 'unictype/combining-class-byname'.
8177         * modules/unictype/combining-class-byname-tests: New file.
8178         * tests/unictype/test-combiningclass_byname.c: New file.
8179
8180         New module 'unictype/combining-class-byname'.
8181         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8182         * lib/unictype/combiningclass_byname.c: New file.
8183         * lib/unictype/combiningclass_byname.gperf: New file.
8184         * modules/unictype/combining-class-byname: New file.
8185
8186         Tests for module 'unictype/combining-class-longname'.
8187         * modules/unictype/combining-class-longname-tests: New file.
8188         * tests/unictype/test-combiningclass_longname.c: New file.
8189
8190         New module 'unictype/combining-class-longname'.
8191         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8192         * lib/unictype/combiningclass_longname.c: New file.
8193         * modules/unictype/combining-class-longname: New file.
8194
8195         Tests for module 'unictype/combining-class-name'.
8196         * modules/unictype/combining-class-name-tests: New file.
8197         * tests/unictype/test-combiningclass_name.c: New file.
8198
8199         New module 'unictype/combining-class-name'.
8200         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8201         * lib/unictype/combiningclass_name.c: New file.
8202         * modules/unictype/combining-class-name: New file.
8203
8204 2011-03-25  Bruno Haible  <bruno@clisp.org>
8205
8206         unictype/combining-class: Rename source files.
8207         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8208         of unictype/combining.h.
8209         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8210         Update.
8211         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8212         * modules/unictype/combining-class (Description): Fix.
8213         (Files, Makefile.am): Update.
8214         * tests/unictype/test-combiningclass.c: Renamed from
8215         tests/unictype/test-combining.c.
8216         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8217
8218 2011-03-25  Bruno Haible  <bruno@clisp.org>
8219
8220         unictype: Update list of canonical combining classes.
8221         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8222
8223 2011-03-25  Bruno Haible  <bruno@clisp.org>
8224
8225         unictype/category-byname: Recognize long names as well.
8226         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8227         a long name.
8228         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8229         unictype/categ_byname.h.
8230         (UC_CATEGORY_INDEX_*): New enumeration values.
8231         (uc_general_category_byname): Use uc_general_category_lookup and
8232         convert from index to value.
8233         * lib/unictype/categ_byname.gperf: New file.
8234         * modules/unictype/category-byname (Files): Add
8235         lib/unictype/categ_byname.gperf.
8236         (Depends-on): Add gperf.
8237         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8238         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8239         long names.
8240
8241         Tests for module 'unictype/category-longname'.
8242         * modules/unictype/category-longname-tests: New file.
8243         * tests/unictype/test-categ_longname.c: New file.
8244
8245         New module 'unictype/category-longname'.
8246         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8247         * lib/unictype/categ_longname.c: New file.
8248         * modules/unictype/category-longname: New file.
8249         * modules/unictype/category-all (Depends-on): Add it.
8250
8251 2011-03-25  Bruno Haible  <bruno@clisp.org>
8252
8253         Tests for module 'unictype/category-LC'.
8254         * modules/unictype/category-LC-tests: New file.
8255         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8256
8257         New module 'unictype/category-LC'.
8258         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8259         (UC_CATEGORY_LC): New declaration.
8260         (UC_CASED_LETTER): New macro.
8261         * lib/gen-uni-tables.c (is_category_LC): New function.
8262         (output_categories): Also handle category LC.
8263         (UC_CATEGORY_MASK_LC): New enumeration value.
8264         (general_category_byname): Also handle category LC.
8265         * lib/unictype/categ_LC.c: New file.
8266         * lib/unictype/categ_LC.h: New file, automatically generated.
8267         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8268         category LC.
8269         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8270         * modules/unictype/category-LC: New file.
8271         * modules/unictype/category-byname (Depends-on): Add
8272         unictype/category-LC.
8273         * modules/unictype/category-all (Depends-on): Likewise.
8274
8275 2011-03-25  Eric Blake  <eblake@redhat.com>
8276
8277         xmalloc: revert yesterday's regression
8278         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8279         realloc's underlying behavior (allowing allocation of zero-size
8280         objects, especially if malloc-gnu is also in use).
8281
8282 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8283
8284         maint.mk: add missing version to VC-tag
8285         * top/maint.mk: git tag was missing actual tag name; add it.
8286
8287         valgrind: do leak checking, and exit with code 1 on error (not 0)
8288         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8289         to VALGRIND.
8290
8291 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8292
8293         posix-modules: say what it does.
8294         * posix-modules: Add a line to the --help output saying what it does.
8295
8296 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8297
8298         xmalloc: Do not leak if underlying realloc is C99 compatible.
8299         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8300         This avoids a leak on C99-based systems.  See
8301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8302
8303 2011-03-24  Eric Blake  <eblake@redhat.com>
8304
8305         realloc: document portability problem
8306         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8307         passing 0 size to realloc.
8308
8309 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8310
8311         doc: update users.txt
8312         * users.txt: Add cvsps, tmpwatch
8313
8314 2011-03-23  Matt Rice  <ratmice@gmail.com>
8315
8316         doc: update users.txt
8317         * users.txt: Add gdb.
8318
8319 2011-03-23  Jim Meyering  <meyering@redhat.com>
8320
8321         doc: update users.txt
8322         Looking through matches up to the following URL (there are still
8323         several more pages), I found several projects that use gnulib:
8324         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8325         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8326         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8327
8328 2011-03-22  Bruno Haible  <bruno@clisp.org>
8329
8330         unictype/bidi*: Rename functions.
8331         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8332         uc_bidi_class, uc_is_bidi_class): New declarations.
8333         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8334         uc_bidi_category_byname.
8335         (uc_bidi_category_byname): New function.
8336         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8337         u_bidi_category_name.
8338         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8339         (uc_bidi_category_name): New function.
8340         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8341         uc_bidi_category.
8342         (uc_bidi_category): New function.
8343         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8344         uc_is_bidi_category. Invoke uc_bidi_class.
8345         (uc_is_bidi_category): New function.
8346         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8347         instead of uc_bidi_category_byname.
8348         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8349         instead of uc_bidi_category_name.
8350         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8351         uc_bidi_category.
8352         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8353         instead of uc_is_bidi_category.
8354
8355 2011-03-21  Bruno Haible  <bruno@clisp.org>
8356
8357         New module 'unictype/joininggroup-all'.
8358         * modules/unictype/joininggroup-all: New file.
8359
8360         Tests for module 'unictype/joininggroup-of'.
8361         * modules/unictype/joininggroup-of-tests: New file.
8362         * tests/unictype/test-joininggroup_of.c: New file.
8363         * tests/unictype/test-joininggroup_of.h: New file, automatically
8364         generated by gen-uni-tables.
8365
8366         New module 'unictype/joininggroup-of'.
8367         * modules/unictype/joininggroup-of: New file.
8368         * lib/unictype/joininggroup_of.c: New file.
8369         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8370         gen-uni-tables.
8371
8372         Tests for module 'unictype/joininggroup-byname'.
8373         * modules/unictype/joininggroup-byname-tests: New file.
8374         * tests/unictype/test-joininggroup_byname.c: New file.
8375
8376         New module 'unictype/joininggroup-byname'.
8377         * modules/unictype/joininggroup-byname: New file.
8378         * lib/unictype/joininggroup_byname.c: New file.
8379         * lib/unictype/joininggroup_byname.gperf: New file.
8380
8381         Tests for module 'unictype/joininggroup-name'.
8382         * modules/unictype/joininggroup-name-tests: New file.
8383         * tests/unictype/test-joininggroup_name.c: New file.
8384
8385         New module 'unictype/joininggroup-name'.
8386         * modules/unictype/joininggroup-name: New file.
8387         * lib/unictype/joininggroup_name.c: New file.
8388         * lib/unictype/joininggroup_name.h: New file.
8389
8390         New module 'unictype/joiningtype-all'.
8391         * modules/unictype/joiningtype-all: New file.
8392
8393         Tests for module 'unictype/joiningtype-of'.
8394         * modules/unictype/joiningtype-of-tests: New file.
8395         * tests/unictype/test-joiningtype_of.c: New file.
8396         * tests/unictype/test-joiningtype_of.h: New file, automatically
8397         generated by gen-uni-tables.
8398
8399         New module 'unictype/joiningtype-of'.
8400         * modules/unictype/joiningtype-of: New file.
8401         * lib/unictype/joiningtype_of.c: New file.
8402         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8403         gen-uni-tables.
8404
8405         Tests for module 'unictype/joiningtype-byname'.
8406         * modules/unictype/joiningtype-byname-tests: New file.
8407         * tests/unictype/test-joiningtype_byname.c: New file.
8408
8409         New module 'unictype/joiningtype-byname'.
8410         * modules/unictype/joiningtype-byname: New file.
8411         * lib/unictype/joiningtype_byname.c: New file.
8412
8413         Tests for module 'unictype/joiningtype-name'.
8414         * modules/unictype/joiningtype-name-tests: New file.
8415         * tests/unictype/test-joiningtype_name.c: New file.
8416
8417         New module 'unictype/joiningtype-name'.
8418         * modules/unictype/joiningtype-name: New file.
8419         * lib/unictype/joiningtype_name.c: New file.
8420
8421         unictype: Add support for Arabic shaping properties.
8422         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8423         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8424         declarations.
8425         (UC_JOINING_GROUP_*): New enumeration values.
8426         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8427         declarations.
8428         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8429         (unicode_joining_type): New variable.
8430         (UC_JOINING_GROUP_*): New enumeration values.
8431         (unicode_joining_group): New variable.
8432         (fill_arabicshaping, joining_type_as_c_identifier,
8433         output_joining_type_test, output_joining_type,
8434         joining_group_as_c_identifier, output_joining_group_test,
8435         output_joining_group): New functions.
8436         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8437         fill_arabicshaping and output_joining_type_test, output_joining_type,
8438         output_joining_group_test, output_joining_group.
8439         Reported by Simon Josefsson.
8440
8441 2011-03-21  Jim Meyering  <meyering@redhat.com>
8442
8443         strftime: fix a bug in yesterday's change
8444         * lib/strftime.c (add): Accommodate width's initial value of -1.
8445         Otherwise, nstrftime would copy uninitialized data into
8446         the result buffer.
8447
8448 2011-03-21  Jim Meyering  <meyering@redhat.com>
8449
8450         tests: add strftime-tests module
8451         * tests/test-strftime.c: New file.
8452         * modules/strftime-tests: New module.
8453
8454 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8455
8456         strftime: don't assume a byte count fits in 'int'
8457         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8458         found this problem by static analysis, using gcc -Wstrict-overflow
8459         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8460         on an integer overflow having undefined behavior, but it turns out
8461         that the argument is a size, which might not fit in 'int' anyway,
8462
8463 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8464
8465         stdio: don't require ignore_value around fwrite
8466
8467         This patch works around libc bug 11959
8468         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
8469         Without this patch, applications must often write
8470         ignore_value (fwrite (...)) even though the ignore_value is
8471         not helpful here.  It's common to write many objects, using
8472         fwrite/printf/etc., and then use ferror to detect output error.
8473
8474         I considered making this patch optional, but decided against it,
8475         because libc is obviously being inconsistent here: there is no
8476         reason libc should insist that user code must inspect fwrite
8477         return's value without also insisting that it inspect printf's,
8478         putchar's, etc.  If user code wants to have a strict style where
8479         all these functions' values are checked (so that ferror need not
8480         be checked), we could add support for that style in a new gnulib
8481         module, but in the meantime it's better to be consistent and to
8482         support common usage.
8483
8484         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
8485         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
8486         that we are compiling in checking mode, and if not C++, and
8487         if not already wrapping fwrite for some other reason.
8488         (fwrite): #define to rpl_fwrite if the latter is defined.
8489
8490 2011-03-20  Bruno Haible  <bruno@clisp.org>
8491
8492         verror: Fix compilation error introduced on 2011-02-13.
8493         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
8494         instead of __attribute__.
8495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8496
8497 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8498             Bruno Haible  <bruno@clisp.org>
8499
8500         socklen: do not depend on sys_socket
8501         While trying to modify Emacs to use gnulib's socklen module,
8502         I discovered a circular dependency: socklen depends on sys_socket
8503         and vice versa.  Emacs can use socklen, but it does not need
8504         sys_socket because it has its own substitute for sys/socket.h.
8505         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
8506         gl_TYPE_SOCKLEN_T.
8507         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
8508         gl_PREREQ_SYS_H_SOCKET.
8509         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
8510         gl_PREREQ_SYS_H_SOCKET.
8511         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
8512         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
8513         * modules/socklen (Depends-on): Do not depend on sys_socket.
8514         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
8515
8516 2011-03-20  Jim Meyering  <meyering@redhat.com>
8517
8518         maint.mk: sort file names *after* new transformation
8519         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
8520         prefix would have led to an unwarranted failure in GNU parted.
8521         Sort after that transformation.
8522
8523 2011-03-19  Jim Meyering  <meyering@redhat.com>
8524
8525         maint.mk: fix po-file syntax-check rule
8526         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
8527         Patch by Bruno Haible.
8528
8529 2011-03-19  Bruno Haible  <bruno@clisp.org>
8530
8531         socklen: Update comment.
8532         * m4/socklen.m4: Update comment about platforms.
8533
8534 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8535             Bruno Haible  <bruno@clisp.org>
8536
8537         inet_ntop, inet_pton: Simplify.
8538         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
8539         documented to provide socklen_t and we already depend on sys_socket.
8540         * modules/inet_pton (Depends-on): Likewise.
8541         * lib/arpa_inet.in.h: Adjust comment.
8542
8543 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8544             Bruno Haible  <bruno@clisp.org>
8545
8546         netdb: Simplify.
8547         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
8548         documented to provide socklen_t and we already depend on sys_socket.
8549         * lib/netdb.in.h: Adjust comment.
8550
8551 2011-03-19  Bruno Haible  <bruno@clisp.org>
8552
8553         sys_socket, netdb: Document problem with socklen_t.
8554         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
8555         platforms.
8556         * doc/posix-headers/netdb.texi: Likewise.
8557
8558 2011-03-18  Eric Blake  <eblake@redhat.com>
8559
8560         maint.mk: let po check work in VPATH build
8561         * top/maint.mk (po_file): Allow cfg.mk override.
8562         (sc_po_check): Allow VPATH use.
8563         Reported by Jiri Denemark.
8564
8565 2011-03-16  Jim Meyering  <meyering@redhat.com>
8566
8567         maint.mk: allow fine-grained syntax-check exclusion via Make variables
8568         Before, you would have had to create one .x-sc_ file per rule in order
8569         to exempt offending files.  Now, you may instead use a Make variable --
8570         usually defined in cfg.mk -- whose name identifies the affected rule.
8571         * top/maint.mk (_sc_excl): Define.
8572         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
8573         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
8574
8575 2011-03-13  Bruno Haible  <bruno@clisp.org>
8576
8577         ignore-value tests: Avoid warnings.
8578         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
8579         empty for gcc < 3.4.
8580
8581 2011-03-13  Bruno Haible  <bruno@clisp.org>
8582
8583         passfd: Fix link error on Solaris.
8584         * modules/passfd (Description): Correct.
8585         (Depends-on): Add socketlib.
8586         (Link): New section.
8587         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
8588
8589 2011-03-13  Bruno Haible  <bruno@clisp.org>
8590
8591         passfd: Fix link error on AIX 5.2.
8592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
8593
8594 2011-03-13  Bruno Haible  <bruno@clisp.org>
8595
8596         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
8597         * lib/sys_socket.in.h: Include <stddef.h>.
8598         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
8599         CMSG_FIRSTHDR. Remove unused variable.
8600
8601 2011-03-13  Bruno Haible  <bruno@clisp.org>
8602
8603         passfd: Fix compilation error on OpenBSD.
8604         * lib/passfd.c: Include <sys/uio.h>.
8605
8606 2011-03-13  Bruno Haible  <bruno@clisp.org>
8607
8608         passfd test: Fix warnings.
8609         * tests/test-passfd.c: Include <sys/wait.h>.
8610         (main): Fix typo.
8611
8612 2011-03-13  Bruno Haible  <bruno@clisp.org>
8613
8614         passfd module, part 4, tweaks.
8615         * tests/test-passfd.c: Reorder includes.
8616         (main): Fix perror and printf calls.
8617
8618 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8619
8620         passfd module, part 4.
8621         * modules/passfd-tests: New file.
8622         * tests/test-passfd.c: New file.
8623
8624 2011-03-13  Jim Meyering  <meyering@redhat.com>
8625
8626         Makefile: rely on GNU make; derive syntax-check rule names
8627         Rather than requiring that each sc_ rule be listed as a dependent
8628         of "check", use features of GNU make to derive the list.
8629         * Makefile (syntax-check-rules): Define.
8630         (check): Depend on the new variable, not the hard-coded list.
8631
8632 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
8633             Bruno Haible  <bruno@clisp.org>
8634
8635         passfd module, part 3.
8636         * lib/passfd.h (recvfd): Add a flags argument.
8637         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
8638         (recvfd): Add a flags argument.
8639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
8640         exists.
8641         * modules/passfd (Depends-on): Add cloexec.
8642         Suggested by Eric Blake.
8643
8644 2011-03-13  Bruno Haible  <bruno@clisp.org>
8645
8646         passfd module, part 2, tweaks.
8647         * modules/passfd (Files): Reorder.
8648         (Depends-on): Remove errno.
8649         (Include): Remove <sys/socket.h>, <sys/un.h>.
8650         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
8651         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
8652         specification header. Include <sys/socket.h> always. Don't include
8653         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
8654         (sendfd): Clarify that it sets errno when it fails.
8655         (recvfd): Fix specification.
8656
8657 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8658
8659         passfd module, part 2.
8660         * modules/passfd: New file.
8661         * lib/passfd.h: New file.
8662         * lib/passfd.c: New file.
8663
8664 2011-03-12  Bruno Haible  <bruno@clisp.org>
8665
8666         wcswidth, mbswidth: Avoid integer overflow.
8667         * lib/wcswidth.c: Include <limits.h>.
8668         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
8669         * lib/mbswidth.c: Include <limits.h>.
8670         (mbsnwidth): Avoid 'int' overflow.
8671         Reported by Jim Meyering.
8672
8673 2011-03-12  Bruno Haible  <bruno@clisp.org>
8674
8675         futimens, utimensat: Avoid endless recursion on Solaris 10.
8676         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
8677         Solaris.
8678         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
8679         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
8680
8681 2011-03-11  Jim Meyering  <meyering@redhat.com>
8682
8683         maint.mk: relax a regexp to accommodate other formatting styles
8684         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
8685         between "ngettext" and the following "(".
8686
8687 2011-03-11  PĂ¡draig Brady <P@draigBrady.com>
8688
8689         maint.mk: suppress a false positive warning
8690         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
8691         diagnostics are marked with ngettext.
8692
8693 2011-03-10  Eric Blake  <eblake@redhat.com>
8694
8695         wchar: add explicit dependencies, for Tru64
8696         * modules/mbmemcasecoll (Depends-on): Add wchar.
8697         * modules/mbtowc (Depends-on): Likewise.
8698         * modules/vasnprintf (Depends-on): Likewise.
8699         * modules/unistdio/u-printf-args (Depends-on): Likewise.
8700         * modules/wctomb (Depends-on): Likewise.
8701         Reported by Peter O'Gorman.
8702
8703 2011-03-08  Bruno Haible  <bruno@clisp.org>
8704
8705         passfd module, part 1, tweaks.
8706         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
8707         Improve indentation. Improve AC_MSG_CHECKING messages.
8708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
8709         gl_SOCKET_FAMILIES.
8710
8711 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
8712
8713         passfd module, part 1.
8714         * m4/afunix.m4: New file.
8715         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
8716         sockets.
8717
8718 2011-03-08  Bruno Haible  <bruno@clisp.org>
8719
8720         regex-quote: New API.
8721         * lib/regex-quote.h: Include <stdbool.h>.
8722         (struct regex_quote_spec): New type.
8723         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8724         New declarations.
8725         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8726         'const struct regex_quote_spec *' argument.
8727         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
8728         (pcre_special): New constant.
8729         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
8730         New functions.
8731         (regex_quote_length, regex_quote_copy, regex_quote): Take a
8732         'const struct regex_quote_spec *' argument.
8733         * modules/regex-quote (Depends-on): Add stdbool.
8734         * tests/test-regex-quote.c (check): Update for new API. Add test for
8735         anchored results.
8736         * NEWS: Mention the API change.
8737         Reported by Reuben Thomas and Eric Blake.
8738
8739 2011-03-06  Bruno Haible  <bruno@clisp.org>
8740
8741         regex-quote: Fix creation of POSIX extended regular expressions.
8742         * lib/regex-quote.c (ere_special): Add grouping and alternation
8743         operators.
8744
8745 2011-03-05  Bruno Haible  <bruno@clisp.org>
8746
8747         doc: Improve doc regarding autopoint vs. gnulib.
8748         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
8749         disable autopoint while running autoreconf.
8750         Suggested by Ralf Wildenhues.
8751
8752 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8753
8754         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
8755         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
8756
8757 2011-03-03  Bruce Korb  <bkorb@gnu.org>
8758
8759         parse-duration: remove xalloc.h dependency
8760         * lib/parse-duration.c (parse_period): handle NULL return from
8761         strdup instead of calling xstrdup().
8762         * modules/parse-duration: remove "xalloc" dependency
8763
8764 2011-03-03  Matthew Booth  <mbooth@redhat.com>
8765
8766         bootstrap: honor m4_base when running aclocal
8767         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
8768
8769 2011-03-02  Jim Meyering  <meyering@redhat.com>
8770
8771         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
8772         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
8773         on request from Matt Booth.
8774
8775 2011-03-01  Eric Blake  <eblake@redhat.com>
8776
8777         test-link: work on Hurd
8778         * tests/test-link.h (test_link): Hurd rejects linking directories
8779         with EISDIR instead of the POSIX-mandated EPERM.
8780
8781 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
8782
8783         stdio: simplify by moving files to printf-posix, sigpipe
8784         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
8785         since this symbol is needed only if printf is replaced.
8786         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
8787         Require gl_ASM_SYMBOL_PREFIX.
8788         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
8789         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
8790         (Depends-on): Add 'raise'.
8791         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
8792         * modules/stdio (Files): Remove lib/stdio-write.c,
8793         m4/asm-underscore.m4.
8794         (Depends-on): Remove 'raise'.
8795
8796         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
8797         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
8798         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
8799         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
8800
8801 2011-02-28  Bruno Haible  <bruno@clisp.org>
8802
8803         localcharset: Assume ANSI C behaviour of free().
8804         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
8805         calling free().
8806         Suggested by Simon Josefsson <simon@josefsson.org>.
8807
8808 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
8809             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
8810             Bruno Haible  <bruno@clisp.org>  (tiny change)
8811
8812         On Cygwin, use /proc file system instead of win32 API.
8813         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
8814         Win32 file names.
8815         (DllMain): Simplify by removing Cygwin specific code.
8816         (find_shared_library_fullname): Use Linux specific implementation also
8817         for Cygwin.
8818         (get_shared_library_fullname): Update accordingly.
8819         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
8820         Win32 file names.
8821         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
8822         Cygwin specific code.
8823
8824 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
8825             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
8826
8827         Fix OpenMP flag detection for various Fortran compilers.
8828         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
8829         OpenMP-conditional compilation construct, to force compile
8830         failure with missing OpenMP flag.
8831         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
8832
8833 2011-02-25  Eric Blake  <eblake@redhat.com>
8834
8835         strstr: expand test coverage
8836         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
8837         compilation.
8838         * tests/test-memmem.c (main): Duplicate tests.
8839         * tests/test-strcasestr.c (main): Likewise.
8840         * tests/test-c-strcasestr.c (main): Likewise.
8841
8842 2011-02-25  Jim Meyering  <meyering@redhat.com>
8843
8844         maint.mk: detect missing-NL-at-EOF, too
8845         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
8846         it also detects when a file lacks a newline at EOF.
8847         (require_exactly_one_NL_at_EOF_): Renamed from
8848         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
8849         since people may well have .x-sc_... file names tied to the
8850         existing name.  Suggested by Eric Blake.
8851
8852 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8853
8854         dirname: move m4/dos.m4 functionality into lib/dosname.h
8855
8856         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
8857         extracts symbols from it, puts them into config.h; but it's much
8858         easier to use the symbols directly.  filename.h already does this,
8859         but it disagrees with dos.m4 in some respects.  This patch
8860         introduces a different include file dosname.h that packages up
8861         dos.m4, and then later we can work on merging filename.h and
8862         dosname.h.  Applications that need only the easy-to-configure
8863         symbols should consider including dosname.h rather than dirname.h.
8864         * NEWS: Mention incompatible changes.
8865         * m4/dos.m4: Remove.
8866         * lib/dosname.h, modules/dosname: New files.
8867         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
8868         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
8869         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
8870         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
8871         Include dosname.h, not dirname.h.
8872         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
8873         Include dosname.h, for definitions of symbols like ISSLASH
8874         that used to be in config.h.
8875         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
8876         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8877         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8878         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8879         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
8880         * modules/rmdir (Files): Likewise.
8881         * modules/stat (Files): Likewise.
8882         * modules/unlink (Files): Likewise.
8883         * modules/dirname-lgpl (Depends-on): Add dosname.
8884         * modules/lstat (Depends-on): Likewise.
8885         * modules/openat (Depends-on): Likewise.
8886         * modules/rmdir (Depends-on): Likewise.
8887         * modules/savewd (Depends-on): Likewise.
8888         * modules/stat (Depends-on): Likewise.
8889         * modules/unlink (Depends-on): Likewise.
8890         * modules/openat (Depends-on): Remove dirname-lgpl.
8891         * modules/savewd (Depends-on): Likewise.
8892         * tests/test-dirname.c: Do not use removed symbols like
8893         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
8894         the remaining symbols, e.g., ISSLASH ('\\').
8895
8896 2011-02-25  Eric Blake  <eblake@redhat.com>
8897
8898         strstr: revert patches that introduced bug and pessimization
8899         * lib/str-two-way.h: Add another reference.
8900         (two_way_short_needle, two_way_long_needle): Revert changes from
8901         2011-02-24; they pessimize search speed.
8902         (critical_factorization): Partially revert changes from
8903         2010-06-22; they violate the requirement that the left half of the
8904         needle be smaller than the period of the needle.
8905
8906 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8907
8908         filenamecat: remove unnecessary dependency on dirname-lgpl
8909         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
8910         is no direct dependency, just an indirect one via filenamecat-lgpl.
8911
8912         remove: remove unnecessary use of m4/dos.m4
8913         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
8914         * modules/remove (FILES): Remove m4/dos.m4.
8915
8916         * lib/openat-proc.c: Don't include dirname.h; not needed.
8917
8918         backupfile: remove unnecessary use of m4/dos.m4
8919         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
8920         of its symbols are used by the backupfile code.  backupfile.c does
8921         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
8922         for the rare case of programs that want all their backup file
8923         names to live within 8+3 limits, and dos.m4 doesn't address that.
8924         * modules/backupfile (Files): Remove m4/dos.m4.
8925
8926 2011-02-24  Jim Meyering  <meyering@redhat.com>
8927
8928         strstr: fix a bug whereby strstr would mistakenly return NULL
8929         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
8930         in period calculation.
8931         (two_way_long_needle): Likewise.
8932         The original problem was reported by Mike Stump in
8933         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
8934         Ralf Wildenhues provided the short needle and haystack.
8935         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
8936         Add a more involved test to trigger the bug in two_way_long_needle.
8937
8938 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
8939
8940         gnulib-tool: remove use of bold display in help screen
8941         * gnulib-tool (func_usage): Do not use bold display anymore in the
8942         help screen.  That was just meant to be a temporary emphasis for a
8943         backward-incompatible change.
8944
8945 2011-02-23  Bruno Haible  <bruno@clisp.org>
8946
8947         Fix misindentation of preprocessor directives.
8948         * lib/argp-namefrob.h: Reindent preprocessor directives.
8949         * lib/getopt_int.h (struct _getopt_data): Likewise.
8950         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
8951         * lib/vasnprintf.c (decode_long_double): Likewise.
8952         * tests/test-argmatch.c: Insert blank lines, for clarity.
8953         * tests/test-exclude.c: Likewise.
8954
8955 2011-02-22  Bruno Haible  <bruno@clisp.org>
8956
8957         ioctl: Fix for MacOS X in 64-bit mode.
8958         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
8959         value.
8960         Suggested by Eric Blake.
8961         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
8962
8963 2011-02-22  Jim Meyering  <meyering@redhat.com>
8964
8965         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
8966         * Makefile (sc_cpp_indent_check): Don't limit the check to files
8967         in lib/.
8968
8969 2011-02-22  Eric Blake  <eblake@redhat.com>
8970
8971         maint: avoid any CDPATH issue
8972         * Makefile (sc_cpp_indent_check): Anchor cd argument.
8973
8974         maint: adjust cpp indentation for my modules, as well
8975         * Makefile (sc_cpp_indent_check): Add my name.
8976         * lib/fbufmode.c: Filter through cppi.
8977         * lib/fpurge.c: Likewise.
8978         * lib/freadable.c: Likewise.
8979         * lib/freading.c: Likewise.
8980         * lib/fwritable.c: Likewise.
8981         * lib/fwriting.c: Likewise.
8982         * lib/sigaction.c: Likewise.
8983
8984 2011-02-22  Jim Meyering  <meyering@redhat.com>
8985
8986         maint: adjust cpp indentation to reflect nesting depth
8987         I.e., in a block of code that begins with an unnested "#if",
8988         put one space between the "#" in column 1 and following token.
8989         For example,
8990         -#include <sys/vfs.h>
8991         +# include <sys/vfs.h>
8992         Do this only in .c files that are part of a module I maintain.
8993         * lib/linkat.c: Filter through cppi.
8994         * lib/nanosleep.c: Likewise.
8995         * lib/openat.c: Likewise.
8996         * lib/openat-die.c: Likewise.
8997         * lib/dup3.c: Likewise.
8998         * lib/fchownat.c: Likewise.
8999         * lib/flock.c: Likewise.
9000         * lib/fsync.c: Likewise.
9001         * lib/fts.c: Likewise.
9002         * lib/getpass.c: Likewise.
9003         * lib/gettimeofday.c: Likewise.
9004         * lib/userspec.c: Likewise.
9005         * Makefile (sc_cpp_indent_check): New rule, to check this.
9006
9007 2011-02-22  Bruno Haible  <bruno@clisp.org>
9008
9009         New module 'wctomb'.
9010         * lib/stdlib.in.h (wctomb): New declaration.
9011         * lib/wctomb.c: New file.
9012         * lib/wctomb-impl.h: New file.
9013         * m4/wctomb.m4: New file.
9014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9015         REPLACE_WCTOMB.
9016         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9017         REPLACE_WCTOMB.
9018         * modules/wctomb: New file.
9019         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9020         * doc/posix-functions/wctomb.texi: Mention the new module.
9021         * modules/wctob (Depends-on): Add wctomb.
9022
9023 2011-02-22  Bruno Haible  <bruno@clisp.org>
9024
9025         New module 'mbtowc'.
9026         * lib/stdlib.in.h (mbtowc): New declaration.
9027         * lib/mbtowc.c: New file.
9028         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9029         * m4/mbtowc.m4: New file.
9030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9031         REPLACE_MBTOWC.
9032         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9033         REPLACE_MBTOWC.
9034         * modules/mbtowc: New file.
9035         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9036         * doc/posix-functions/mbtowc.texi: Mention the new module.
9037         * modules/btowc (Depends-on): Add mbtowc.
9038
9039 2011-02-22  Bruno Haible  <bruno@clisp.org>
9040
9041         wcrtomb: Add more tests for native Windows platforms.
9042         * tests/test-wcrtomb-w32-1.sh: New file.
9043         * tests/test-wcrtomb-w32-2.sh: New file.
9044         * tests/test-wcrtomb-w32-3.sh: New file.
9045         * tests/test-wcrtomb-w32-4.sh: New file.
9046         * tests/test-wcrtomb-w32-5.sh: New file.
9047         * tests/test-wcrtomb-w32.c: New file.
9048         * modules/wcrtomb-tests (Files): Add them.
9049         (Makefile.am): Arrange to run these tests.
9050         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9051         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9052
9053 2011-02-20  Bruno Haible  <bruno@clisp.org>
9054
9055         wcrtomb: Enhance test.
9056         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9057
9058 2011-02-20  Bruno Haible  <bruno@clisp.org>
9059
9060         mbrtowc: Tiny optimization.
9061         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9062
9063 2011-02-20  Jim Meyering  <meyering@redhat.com>
9064
9065         test-exclude.c: remove unmatched #endif
9066         * tests/test-exclude.c: Remove stray #endif, left over from
9067         the change of a week ago.
9068
9069 2011-02-19  Jim Meyering  <meyering@redhat.com>
9070
9071         git-version-gen: skip "-dirty" check when appropriate
9072         * build-aux/git-version-gen: Don't run any git commands when the
9073         version string comes from .tarball-version.  Prior to this, we
9074         would run git update-index --refresh even from a just-unpacked
9075         tarball directory, and that could affect a .git/ directory in a
9076         parent of the build directory.  Reported by Mike Frysinger.
9077
9078 2011-02-19  Bruno Haible  <bruno@clisp.org>
9079
9080         unictype/property-byname: Reduce the size of the 'data' segment.
9081         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9082
9083 2011-02-19  Bruno Haible  <bruno@clisp.org>
9084
9085         unictype/scripts: Reduce the size of the 'data' segment.
9086         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9087         '%pic'.
9088         * lib/unictype/scripts_byname.gperf: Regenerated.
9089
9090 2011-02-19  Bruno Haible  <bruno@clisp.org>
9091
9092         stdint: Update documentation.
9093         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9094
9095 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9096
9097         stdint: omit redundant check for wchar.h
9098         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9099         always tests whether wchar.h exists, so remove the now-redundant test.
9100
9101 2011-02-18  Bruno Haible  <bruno@clisp.org>
9102
9103         stdint: Cut dependency to module 'wchar'.
9104         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9105         include the necessary prerequisites.
9106         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9107         * modules/stdint (Depends-on): Remove wchar.
9108         (Makefile.am): Substitute HAVE_WCHAR_H.
9109         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9110
9111 2011-02-18  Eric Blake  <eblake@redhat.com>
9112
9113         longlong: skip, rather than fail, on cross-compilation
9114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9115         when cross-compiling; regression from 2011-02-16.
9116
9117 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9118
9119         * NEWS: Mention 2011-02-08 change to stdlib.
9120
9121 2011-02-17  Bruno Haible  <bruno@clisp.org>
9122
9123         getloadavg: Add comments about platforms.
9124         * m4/getloadavg.m4: Add comment.
9125         * lib/getloadavg.c: Likewise.
9126
9127 2011-02-17  Bruno Haible  <bruno@clisp.org>
9128
9129         getloadavg: Fix link error on Solaris 2.6.
9130         * modules/getloadavg (Link): New section.
9131         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9132         linking test-getloadavg.
9133         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9134         getloadavg.
9135
9136 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9137
9138         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9139         It was 'int', but this doesn't match the IRIX 6.5 manual.
9140         Suggested by Bruno Haible in
9141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9142
9143 2011-02-17  Bruno Haible  <bruno@clisp.org>
9144
9145         havelib: Fix comments.
9146         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9147         change.
9148
9149 2011-02-17  Bruno Haible  <bruno@clisp.org>
9150
9151         havelib: Update config.rpath.
9152         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9153
9154 2011-02-17  Bruno Haible  <bruno@clisp.org>
9155
9156         getloadavg test: Add some plausibility checks.
9157         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9158         is improbable.
9159
9160 2011-02-16  Eric Blake  <eblake@redhat.com>
9161
9162         maintainer-makefile: make syntax-check a no-op from tarballs
9163         * top/maint.mk (no-vc-detected): New rule.
9164         (local-checks-available): Use it to avoid hanging if someone tries
9165         'make syntax-check' from a tarball.  Also append to any non-syntax
9166         checks already defined in cfg.mk.
9167
9168 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9169
9170         longlong: tune, particularly for common case of c99
9171
9172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9173         or running anything if c99, or if unsigned long long int does not
9174         work.  In either case, we know the answer without further tests.
9175         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9176         it at most once, and use its results for both long long int and
9177         unsigned long long int.  This is more likely to be efficient in
9178         the common case where the program wants to check for both long
9179         long int and unsigned long long int.
9180         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9181         since the answer is already known.
9182
9183 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         getloadavg: set errno
9186         * lib/getloadavg.c: Set errno when returning -1.  If no other
9187         error number looks appropriate, set it to ENOSYS if the getloadavg
9188         looks like it can't possibly ever work, ENOTSUP otherwise.
9189         Suggested by Bruno Haible in
9190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9191
9192         getloadavg: trim unused parts and speed up 'configure'
9193         * NEWS: Document this.
9194         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9195         always compiled if getloadavg is absent.
9196         Move test code to ...
9197         * tests/test-getloadavg.c: New file, containing previous
9198         contents of test from lib/getloadavg.c.  It also contains
9199         suggestions by Bruno Haible in
9200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9201         * modules/getloadavg-tests: New file.
9202         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9203         Do tests in the same order as they're needed for getloadavg.c.
9204         Omit setgid-related tests that generate symbols KMEM_GROUP,
9205         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9206         Do only the tests that are needed to see whether the system has
9207         getloadavg, moving the other tests into ...
9208         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9209         NLIST_NAME_UNION; nobody should be using it.  Do not define
9210         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9211         relevant, as the user of this module shouldn't care how getloadavg
9212         is implemented.
9213
9214         getloadavg: omit unused var
9215         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9216
9217 2011-02-15  Jim Meyering  <meyering@redhat.com>
9218
9219         doc: update users.txt
9220         * users.txt: Update iwhd's URL.
9221
9222 2011-02-13  Bruno Haible  <bruno@clisp.org>
9223
9224         Consistent macro naming for macros that use GCC __attribute__.
9225         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9226         _ATTRIBUTE_NONNULL_.
9227         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9228         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9229         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9230         ATTRIBUTE_DEPRECATED.
9231         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9232         ATTRIBUTE_NORETURN.
9233         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9234         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9235         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9236         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9237         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9238         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9239         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9240         ATTRIBUTE_SENTINEL.
9241         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9242         ATTRIBUTE_RETURN_CHECK.
9243         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9244         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9245         ATTRIBUTE_NORETURN.
9246         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9247         Reported by Paul Eggert.
9248
9249 2011-02-13  Bruno Haible  <bruno@clisp.org>
9250
9251         Don't interfere with a program's definition of __attribute__.
9252         * lib/argp.h (__attribute__): Remove definition.
9253         (_GL_ATTRIBUTE_FORMAT): New macro.
9254         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9255         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9256         (_GL_ATTRIBUTE_FORMAT): New macro.
9257         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9258         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9259         GCC 3 or newer.
9260         * lib/error.h (__attribute__): Remove definition.
9261         (_GL_ATTRIBUTE_FORMAT): New macro.
9262         (error, error_at_line): Use it.
9263         * lib/hash.h (__attribute__): Remove definition.
9264         (ATTRIBUTE_WUR): Update definition. Define always.
9265         * lib/openat.h (__attribute__): Remove definition.
9266         (ATTRIBUTE_NORETURN): Update definition. Define always.
9267         * lib/sigpipe-die.h (__attribute__): Remove definition.
9268         (ATTRIBUTE_NORETURN): Update definition. Define always.
9269         * lib/vasnprintf.h (__attribute__): Remove definition.
9270         (_GL_ATTRIBUTE_FORMAT): New macro.
9271         (asnprintf, vasnprintf): Use it.
9272         * lib/xalloc.h (__attribute__): Remove definition.
9273         (ATTRIBUTE_NORETURN): Update definition. Define always.
9274         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9275         * lib/xmemdup0.h (__attribute__): Remove definition.
9276         (ATTRIBUTE_NORETURN): Update definition. Define always.
9277         * lib/xprintf.h (__attribute__): Remove definition.
9278         (_GL_ATTRIBUTE_FORMAT): New macro.
9279         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9280         * lib/xstrtol.h (__attribute__): Remove definition.
9281         (ATTRIBUTE_NORETURN): Update definition. Define always.
9282         * lib/xvasprintf.h (__attribute__): Remove definition.
9283         (_GL_ATTRIBUTE_FORMAT): New macro.
9284         (xasprintf, xvasprintf): Use it.
9285         * tests/test-argmatch.c (__attribute__): Remove definition.
9286         (ATTRIBUTE_NORETURN): Update definition. Define always.
9287         * tests/test-exclude.c (__attribute__): Remove definition.
9288         (ATTRIBUTE_NORETURN): Update definition. Define always.
9289         Reported by Paul Eggert.
9290
9291 2011-02-13  Bruno Haible  <bruno@clisp.org>
9292
9293         mbrtowc: Add more tests for native Windows platforms.
9294         * tests/test-mbrtowc-w32-1.sh: New file.
9295         * tests/test-mbrtowc-w32-2.sh: New file.
9296         * tests/test-mbrtowc-w32-3.sh: New file.
9297         * tests/test-mbrtowc-w32-4.sh: New file.
9298         * tests/test-mbrtowc-w32-5.sh: New file.
9299         * tests/test-mbrtowc-w32.c: New file.
9300         * modules/mbrtowc-tests (Files): Add them.
9301         (Makefile.am): Arrange to run these tests.
9302         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9303         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9304
9305 2011-02-13  Bruno Haible  <bruno@clisp.org>
9306
9307         mbrtowc: Work around native Windows bug.
9308         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9309         guess when no suitable locale for testing was found.
9310         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9311
9312 2011-02-13  Bruno Haible  <bruno@clisp.org>
9313
9314         mbsinit: Work around mingw bug.
9315         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9316         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9317         Windows.
9318         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9319
9320 2011-02-13  Bruno Haible  <bruno@clisp.org>
9321
9322         mbsinit: Don't crash for a NULL argument.
9323         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9324         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9325
9326 2011-02-13  Bruno Haible  <bruno@clisp.org>
9327
9328         Don't interfere with a program's definition of __attribute__.
9329         * lib/stdio.in.h (__attribute__): Remove definition.
9330         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9331         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9332         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9333         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9334         * lib/string.in.h (__attribute__): Remove definition.
9335         Reported by Paul Eggert.
9336
9337 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9338
9339         stdlib: don't get in the way of non-GCC __attribute__
9340         See thread starting at
9341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9342         Revert previous stdlib change, installing the following instead:
9343         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9344         to get in the way of a non-GCC compiler that supports __attribute__.
9345         (_GL_ATTRIBUTE_RETURN): New macro.
9346         (_Exit): Use it instead of __attribute__.
9347
9348 2011-02-12  Bruno Haible  <bruno@clisp.org>
9349
9350         quotearg test: Avoid test failure on mingw.
9351         * tests/test-quotearg.sh: Convert the locale identifier from native
9352         Windows syntax to Unix syntax.
9353
9354 2011-02-12  Bruno Haible  <bruno@clisp.org>
9355
9356         setlocale: Prefer gnulib's override over libintl's override.
9357         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9358         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9359         GNULIB_defined_setlocale is set.
9360
9361 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9362
9363         stdlib: support non-GCC __attribute__
9364
9365         Fix a serious and tricky problem encountered when attempting to
9366         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9367         5.5, but it crashed due to memory corruption on Solaris 10 with
9368         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9369         bits that are otherwise zero.  This tagging is optional inside
9370         Emacs but is preferred and is used when __attribute__ ((__aligned
9371         (8))) works, as it does with both recent-enough GCC and with Sun C
9372         5.11.  However, Sun C 5.11 is not GCC and does not #define
9373         __GNUC__ and __GNUC_MINOR__.
9374
9375         When I added the getloadavg module to Emacs, it brought in
9376         stdlib.in.h, which contained this fragment:
9377
9378            #ifndef __attribute__
9379            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9380            #  define __attribute__(Spec)   /* empty */
9381            # endif
9382            #endif
9383
9384         When files that include <stdlib.h> were compiled with Sun C 5.11,
9385         the above code disabled __attribute__ ((__aligned (8))), which
9386         caused variables to not be properly aligned, which eventually led
9387         to the pointer corruption mentioned above.  (This was a bit hard
9388         to diagnose, unfortunately.)
9389
9390         Several "#define __attribute__(X) /* empty */" code snippets need
9391         to be eradicated from Gnulib to work with non-GCC compilers that
9392         support __attribute__.  The Autoconf way to do this is to test for
9393         each kind of attribute that we want support for, and selectively
9394         enable that in source code.
9395
9396         Fix this problem just for stdlib.h, by adding a test for the
9397         __noreturn__ attribute, and change stdlib.in.h to use that test
9398         when needed.  This technique can be easily generalized to the
9399         other *.in.h files and attributes, and a similar technique can be
9400         used for *.h and *.c files.  This patch is enough to solve the
9401         problem for Emacs + getloadavg, and I thought I'd publish it for
9402         feedback before undertaking further, similar fixes in other
9403         modules.
9404
9405         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9406         because it's not needed for stdlib.h.  It merely substitutes the
9407         value directly into stdlib.h.  We may well need to #define it, or
9408         similar symbols, for other modules, but it's nice to also have an
9409         option to not #define it for applications like Emacs that do not
9410         need it.
9411
9412         * lib/stdlib.in.h (__attribute__): Do not #define.
9413         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9414         be defined only if the _Exit module is also used.
9415         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9417         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9418         platforms.
9419         * modules/_Exit (Files): Add m4/attribute.m4.
9420         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9421         * m4/attribute.m4: New file.
9422
9423 2011-02-12  Bruno Haible  <bruno@clisp.org>
9424
9425         wcsrtombs: Work around bug on native Windows.
9426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9427         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9428         instead of len.
9429         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9430
9431 2011-02-12  Bruno Haible  <bruno@clisp.org>
9432
9433         mbsrtowcs: Work around bug on native Windows.
9434         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9435         against mingw bug.
9436         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9437
9438 2011-02-12  Bruno Haible  <bruno@clisp.org>
9439
9440         Avoid setlocale bugs in tests.
9441         * modules/btowc (Dependencies): Add setlocale.
9442         * modules/c-strcase (Dependencies): Likewise.
9443         * modules/mbmemcasecmp (Dependencies): Likewise.
9444         * modules/mbmemcasecoll (Dependencies): Likewise.
9445         * modules/mbrtowc (Dependencies): Likewise.
9446         * modules/mbscasecmp (Dependencies): Likewise.
9447         * modules/mbscasestr (Dependencies): Likewise.
9448         * modules/mbschr (Dependencies): Likewise.
9449         * modules/mbscspn (Dependencies): Likewise.
9450         * modules/mbsinit (Dependencies): Likewise.
9451         * modules/mbsncasecmp (Dependencies): Likewise.
9452         * modules/mbsnrtowcs (Dependencies): Likewise.
9453         * modules/mbspbrk (Dependencies): Likewise.
9454         * modules/mbspcasecmp (Dependencies): Likewise.
9455         * modules/mbsrchr (Dependencies): Likewise.
9456         * modules/mbsrtowcs (Dependencies): Likewise.
9457         * modules/mbsspn (Dependencies): Likewise.
9458         * modules/mbsstr (Dependencies): Likewise.
9459         * modules/nl_langinfo (Dependencies): Likewise.
9460         * modules/quotearg (Dependencies): Likewise.
9461         * modules/unicase/locale-language (Dependencies): Likewise.
9462         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9463         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9464         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9465         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9466         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9467         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9468         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
9469         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
9470         * modules/vasnprintf-posix (Dependencies): Likewise.
9471         * modules/wcrtomb (Dependencies): Likewise.
9472         * modules/wcsnrtombs (Dependencies): Likewise.
9473         * modules/wcsrtombs (Dependencies): Likewise.
9474
9475 2011-02-12  Bruno Haible  <bruno@clisp.org>
9476
9477         setlocale: Workaround native Windows bug.
9478         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
9479         succeeds but sets LC_CTYPE to "C", report a failure.
9480         * tests/test-setlocale2.sh: New file.
9481         * tests/test-setlocale2.c: New file.
9482         * modules/setlocale-tests (Files): Add the new files.
9483         (Makefile.am): Enable test-setlocale2.sh test.
9484         * doc/posix-functions/setlocale.texi: Mention workaround.
9485
9486 2011-02-11  Bruno Haible  <bruno@clisp.org>
9487
9488         Tests for module 'setlocale'.
9489         * modules/setlocale-tests: New file.
9490         * tests/test-setlocale1.sh: New file.
9491         * tests/test-setlocale1.c: New file.
9492
9493         New module 'setlocale'.
9494         * lib/locale.in.h (setlocale): New declaration.
9495         * lib/setlocale.c: New file, based on
9496         gettext/gettext-runtime/intl/setlocale.c.
9497         * m4/setlocale.m4: New file.
9498         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
9499         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
9500         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
9501         REPLACE_SETLOCALE.
9502         * modules/setlocale: New file.
9503         * tests/test-locale-c++.cc: Test the declaration of setlocale.
9504         * doc/posix-functions/setlocale.texi: Mention the new module.
9505
9506 2011-02-11  Bruno Haible  <bruno@clisp.org>
9507
9508         Prepare for locale dependent tests on mingw.
9509         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
9510         because it has the wrong locale encoding.
9511         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
9512         French_France.1252 instead of "fr".
9513         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
9514         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
9515         because it has the wrong locale encoding.
9516         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
9517         native Windows, try Turkish_Turkey.65001.
9518         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
9519         Chinese_China.54936.
9520
9521         Prepare for locale dependent tests on mingw.
9522         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
9523         differently.
9524         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9525         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9527         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9528
9529 2011-02-11  Eric Blake  <eblake@redhat.com>
9530
9531         strptime: avoid compiler warnings
9532         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
9533         compiler warnings about dead code.
9534         Reported by Daniel P. Berrange.
9535
9536 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
9537
9538         doc: update users.txt
9539         * users.txt: Add rcs.
9540
9541 2011-02-10  John W. Eaton  <jwe@gnu.org>
9542
9543         doc: update users.txt
9544         * users.txt: Add octave.
9545
9546 2011-02-10  Jim Meyering  <meyering@redhat.com>
9547
9548         doc: update users.txt
9549         * users.txt: Add iwhd.
9550
9551 2011-02-09  Bruno Haible  <bruno@clisp.org>
9552
9553         gnulib-tool: Make copyright notice adjustment more robust.
9554         * gnulib-tool (func_import): In sed_transform_main_lib_file,
9555         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
9556         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
9557         License".
9558         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
9559
9560 2011-02-06  Bruno Haible  <bruno@clisp.org>
9561
9562         New module 'towctrans'.
9563         * modules/towctrans: New file.
9564         * lib/wctype.in.h (towctrans): New declaration.
9565         * lib/towctrans.c: New file.
9566         * lib/towctrans-impl.h: New file.
9567         * m4/towctrans.m4: New file.
9568         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
9569         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
9570         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
9571         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
9572         * doc/posix-functions/towctrans.texi: Mention the new module.
9573
9574 2011-02-06  Bruno Haible  <bruno@clisp.org>
9575
9576         New module 'wctrans'.
9577         * modules/wctrans: New file.
9578         * lib/wctype.in.h (wctrans): New declaration.
9579         * lib/wctrans.c: New file.
9580         * lib/wctrans-impl.h: New file.
9581         * m4/wctrans.m4: New file.
9582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
9583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
9584         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
9585         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
9586         * doc/posix-functions/wctrans.texi: Mention the new module.
9587
9588 2011-02-06  Bruno Haible  <bruno@clisp.org>
9589
9590         New module 'iswctype'.
9591         * modules/iswctype: New file.
9592         * lib/wctype.in.h (iswctype): New declaration.
9593         * lib/iswctype.c: New file.
9594         * lib/iswctype-impl.h: New file.
9595         * m4/iswctype.m4: New file.
9596         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
9597         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
9598         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
9599         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
9600         * doc/posix-functions/iswctype.texi: Mention the new module and the
9601         HP-UX 11.00 problem.
9602
9603 2011-02-06  Bruno Haible  <bruno@clisp.org>
9604
9605         New module 'wctype'.
9606         * modules/wctype: Change to represent the wctype() substitute.
9607         * lib/wctype.in.h (wctype): New declaration.
9608         * lib/wctype.c: New file.
9609         * lib/wctype-impl.h: New file.
9610         * m4/wctype.m4: New file.
9611         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
9612         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
9613         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
9614         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
9615         * doc/posix-functions/wctype.texi: Mention the new module and the
9616         HP-UX 11.00 problem.
9617
9618 2011-02-06  Bruno Haible  <bruno@clisp.org>
9619
9620         wctype-h: Ensure wctype_t and wctrans_t are defined.
9621         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
9622         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9623         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
9624         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
9625         HAVE_WCTRANS_T.
9626         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
9627
9628 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         flock: fix license typo
9631
9632         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
9633         omitted.
9634
9635 2011-02-08  Bruno Haible  <bruno@clisp.org>
9636
9637         Split large sed scripts, for HP-UX sed.
9638         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
9639         to avoid HP-UX limit of 99 commands, in the near future.
9640         * modules/stdlib (Makefile.am): Likewise.
9641         * modules/unistd (Makefile.am): Likewise.
9642         * modules/wchar (Makefile.am): Likewise.
9643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9644         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
9645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
9646
9647 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9648             Bruno Haible  <bruno@clisp.org>
9649
9650         stdlib: improve random_r modularization
9651         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
9652         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
9653         you also need the random_r module to get this material right.
9654         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
9655         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
9656         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
9657
9658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9659
9660         stdlib: don't depend on stdint
9661         * lib/stdlib.in.h: Don't include <stdint.h> merely because
9662         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
9663         be independent of whether stdint.h is needed.
9664         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
9665         here, instead of ...
9666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
9667         struct random_data should be using the random_r module, not just
9668         the stdlib module (which wouldn't make sense: what package needs
9669         just struct random_data without also needing random_r?).
9670         * modules/stdlib (Depends-on): Remove stdint.
9671
9672         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
9673         See the thread rooted at
9674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
9675         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
9676         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
9677         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
9678         __VMS)); previously it was always included (via fcntl--.h).
9679         (getloadavg): Do not use c_strtod.  Instead, approximate it by
9680         hand; this is good enough for load averages.  Also, do not use
9681         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
9682         flags directly if available and don't bother otherwise.  (Packages
9683         that need the extra reliability should use the modules that define
9684         these flags on older platforms that lack them.)
9685         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
9686         fcntl-safer.
9687
9688 2011-02-08  Jim Meyering  <meyering@redhat.com>
9689
9690         di-set.h, ino-map.h: add multiple-inclusion guard
9691         Technically, the guard is required only for ino-map.h, due to its
9692         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
9693         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
9694         * lib/ino-map.h: Likewise.
9695
9696 2011-02-06  Bruno Haible  <bruno@clisp.org>
9697
9698         iswblank: Ensure declaration on glibc systems.
9699         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
9700         * modules/iswblank (Dependencies): Add 'extensions'.
9701         * doc/posix-functions/iswblank.texi: Document the glibc problem.
9702
9703 2011-02-06  Bruno Haible  <bruno@clisp.org>
9704
9705         New module 'iswblank'.
9706         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
9707         * modules/iswblank: New file.
9708         * modules/wctype-h (Files): Remove lib/iswblank.c.
9709         (Makefile.am): Substitute GNULIB_ISWBLANK.
9710         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
9711         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
9712         (gl_WCTYPE_H_DEFAULTS): New macro.
9713         (gl_WCTYPE_H): Require it. Remove iswblank related code.
9714         * modules/iswblank-tests: New file.
9715         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
9716         * tests/test-wctype-h.c (main): Remove iswblank tests.
9717         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
9718         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
9719         of 'wctype-h'.
9720         * NEWS: Mention the change.
9721         * modules/mbchar (Depends-on): Add iswblank.
9722
9723 2011-02-08  Bruno Haible  <bruno@clisp.org>
9724
9725         di-set tests: Refactor.
9726         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
9727         unnecessary includes.
9728         (ASSERT): Remove macro.
9729         (main): Make C90 compliant by avoiding variable declaration after
9730         statement.
9731         * modules/di-set-tests (Files): Add tests/macros.h.
9732
9733 2011-02-08  Bruno Haible  <bruno@clisp.org>
9734
9735         ino-map tests: Refactor.
9736         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
9737         unnecessary includes.
9738         (ASSERT): Remove macro.
9739         (main): Make C90 compliant by avoiding variable declaration after
9740         statement.
9741         * modules/ino-map-tests (Files): Add tests/macros.h.
9742
9743 2011-02-08  Jim Meyering  <meyering@redhat.com>
9744
9745         di-set: add "const" to a cast
9746         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
9747         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
9748
9749 2011-02-06  Bruno Haible  <bruno@clisp.org>
9750
9751         Rename module 'wctype' to 'wctype-h'.
9752         * modules/wctype-h: Renamed from modules/wctype.
9753         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
9754         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
9755         (Files, Depends-on, Makefile.am): Update.
9756         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
9757         (Files, Makefile.am): Update.
9758         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
9759         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
9760         * doc/posix-headers/wctype.texi: Update.
9761         * doc/posix-functions/iswalnum.texi: Update.
9762         * doc/posix-functions/iswalpha.texi: Update.
9763         * doc/posix-functions/iswblank.texi: Update.
9764         * doc/posix-functions/iswcntrl.texi: Update.
9765         * doc/posix-functions/iswdigit.texi: Update.
9766         * doc/posix-functions/iswgraph.texi: Update.
9767         * doc/posix-functions/iswlower.texi: Update.
9768         * doc/posix-functions/iswprint.texi: Update.
9769         * doc/posix-functions/iswpunct.texi: Update.
9770         * doc/posix-functions/iswspace.texi: Update.
9771         * doc/posix-functions/iswupper.texi: Update.
9772         * doc/posix-functions/iswxdigit.texi: Update.
9773         * doc/posix-functions/towlower.texi: Update.
9774         * doc/posix-functions/towupper.texi: Update.
9775         * NEWS: Mention the change.
9776         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
9777         * modules/mbchar (Dependencies): Likewise.
9778         * modules/mbswidth (Dependencies): Likewise.
9779         * modules/quotearg (Dependencies): Likewise.
9780         * modules/regex (Dependencies): Likewise.
9781         * modules/wcscasecmp (Dependencies): Likewise.
9782         * modules/wcsncasecmp (Dependencies): Likewise.
9783         * modules/wcwidth (Dependencies): Likewise.
9784
9785 2011-02-06  Bruno Haible  <bruno@clisp.org>
9786
9787         New module 'wcswidth'.
9788         * modules/wcswidth: New file.
9789         * lib/wchar.in.h (wcswidth): New declaration.
9790         * lib/wcswidth.c: New file.
9791         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
9792         * m4/wcswidth.m4: New file.
9793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
9794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
9795         REPLACE_WCSWIDTH.
9796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
9797         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
9798         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
9799         * doc/posix-functions/wcswidth.texi: Mention the new module.
9800
9801 2011-02-06  Bruno Haible  <bruno@clisp.org>
9802
9803         New module 'wcstok'.
9804         * modules/wcstok: New file.
9805         * lib/wchar.in.h (wcstok): New declaration.
9806         * lib/wcstok.c: New file.
9807         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
9808         * m4/wcstok.m4: New file.
9809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
9810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
9811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
9812         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
9813         * doc/posix-functions/wcstok.texi: Mention the new module.
9814
9815 2011-02-06  Bruno Haible  <bruno@clisp.org>
9816
9817         New module 'wcsstr'.
9818         * modules/wcsstr: New file.
9819         * lib/wchar.in.h (wcsstr): New declaration.
9820         * lib/wcsstr.c: New file.
9821         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
9822         * m4/wcsstr.m4: New file.
9823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
9824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
9825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
9826         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
9827         * doc/posix-functions/wcsstr.texi: Mention the new module.
9828
9829 2011-02-06  Bruno Haible  <bruno@clisp.org>
9830
9831         New module 'wcspbrk'.
9832         * modules/wcspbrk: New file.
9833         * lib/wchar.in.h (wcspbrk): New declaration.
9834         * lib/wcspbrk.c: New file.
9835         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
9836         * m4/wcspbrk.m4: New file.
9837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
9838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
9839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
9840         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
9841         * doc/posix-functions/wcspbrk.texi: Mention the new module.
9842
9843 2011-02-06  Bruno Haible  <bruno@clisp.org>
9844
9845         New module 'wcsspn'.
9846         * modules/wcsspn: New file.
9847         * lib/wchar.in.h (wcsspn): New declaration.
9848         * lib/wcsspn.c: New file.
9849         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
9850         * m4/wcsspn.m4: New file.
9851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
9852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
9853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
9854         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
9855         * doc/posix-functions/wcsspn.texi: Mention the new module.
9856
9857 2011-02-06  Bruno Haible  <bruno@clisp.org>
9858
9859         New module 'wcscspn'.
9860         * modules/wcscspn: New file.
9861         * lib/wchar.in.h (wcscspn): New declaration.
9862         * lib/wcscspn.c: New file.
9863         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
9864         * m4/wcscspn.m4: New file.
9865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
9866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
9867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
9868         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
9869         * doc/posix-functions/wcscspn.texi: Mention the new module.
9870
9871 2011-02-06  Bruno Haible  <bruno@clisp.org>
9872
9873         New module 'wcsrchr'.
9874         * modules/wcsrchr: New file.
9875         * lib/wchar.in.h (wcsrchr): New declaration.
9876         * lib/wcsrchr.c: New file.
9877         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
9878         * m4/wcsrchr.m4: New file.
9879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
9880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
9881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
9882         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
9883         * doc/posix-functions/wcsrchr.texi: Mention the new module.
9884
9885 2011-02-06  Bruno Haible  <bruno@clisp.org>
9886
9887         New module 'wcschr'.
9888         * modules/wcschr: New file.
9889         * lib/wchar.in.h (wcschr): New declaration.
9890         * lib/wcschr.c: New file.
9891         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
9892         * m4/wcschr.m4: New file.
9893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
9894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
9895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
9896         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
9897         * doc/posix-functions/wcschr.texi: Mention the new module.
9898
9899 2011-02-06  Bruno Haible  <bruno@clisp.org>
9900
9901         New module 'wcsdup'.
9902         * modules/wcsdup: New file.
9903         * lib/wchar.in.h (wcsdup): New declaration.
9904         * lib/wcsdup.c: New file.
9905         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
9906         * m4/wcsdup.m4: New file.
9907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
9908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
9909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
9910         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
9911         * doc/posix-functions/wcsdup.texi: Mention the new module.
9912
9913 2011-02-06  Bruno Haible  <bruno@clisp.org>
9914
9915         New module 'wcsxfrm'.
9916         * modules/wcsxfrm: New file.
9917         * lib/wchar.in.h (wcsxfrm): New declaration.
9918         * lib/wcsxfrm.c: New file.
9919         * lib/wcsxfrm-impl.h: New file.
9920         * m4/wcsxfrm.m4: New file.
9921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
9922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
9923         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
9924         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
9925         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
9926
9927 2011-02-06  Bruno Haible  <bruno@clisp.org>
9928
9929         New module 'wcscoll'.
9930         * modules/wcscoll: New file.
9931         * lib/wchar.in.h (wcscoll): New declaration.
9932         * lib/wcscoll.c: New file.
9933         * lib/wcscoll-impl.h: New file.
9934         * m4/wcscoll.m4: New file.
9935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
9936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
9937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
9938         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
9939         * doc/posix-functions/wcscoll.texi: Mention the new module.
9940
9941 2011-02-06  Bruno Haible  <bruno@clisp.org>
9942
9943         New module 'wcsncasecmp'.
9944         * modules/wcsncasecmp: New file.
9945         * lib/wchar.in.h (wcsncasecmp): New declaration.
9946         * lib/wcsncasecmp.c: New file.
9947         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
9948         * m4/wcsncasecmp.m4: New file.
9949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
9950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
9951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
9952         HAVE_WCSNCASECMP.
9953         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
9954         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
9955
9956 2011-02-06  Bruno Haible  <bruno@clisp.org>
9957
9958         New module 'wcscasecmp'.
9959         * modules/wcscasecmp: New file.
9960         * lib/wchar.in.h (wcscasecmp): New declaration.
9961         * lib/wcscasecmp.c: New file.
9962         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
9963         * m4/wcscasecmp.m4: New file.
9964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
9965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
9966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
9967         HAVE_WCSCASECMP.
9968         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
9969         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
9970
9971 2011-02-05  Bruno Haible  <bruno@clisp.org>
9972
9973         New module 'wcsncmp'.
9974         * modules/wcsncmp: New file.
9975         * lib/wchar.in.h (wcsncmp): New declaration.
9976         * lib/wcsncmp.c: New file.
9977         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
9978         * m4/wcsncmp.m4: New file.
9979         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
9980         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
9981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
9982         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
9983         * doc/posix-functions/wcsncmp.texi: Mention the new module.
9984
9985 2011-02-05  Bruno Haible  <bruno@clisp.org>
9986
9987         New module 'wcscmp'.
9988         * modules/wcscmp: New file.
9989         * lib/wchar.in.h (wcscmp): New declaration.
9990         * lib/wcscmp.c: New file.
9991         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
9992         * m4/wcscmp.m4: New file.
9993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
9994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
9995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
9996         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
9997         * doc/posix-functions/wcscmp.texi: Mention the new module.
9998
9999 2011-02-05  Bruno Haible  <bruno@clisp.org>
10000
10001         New module 'wcsncat'.
10002         * modules/wcsncat: New file.
10003         * lib/wchar.in.h (wcsncat): New declaration.
10004         * lib/wcsncat.c: New file.
10005         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10006         * m4/wcsncat.m4: New file.
10007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10010         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10011         * doc/posix-functions/wcsncat.texi: Mention the new module.
10012
10013 2011-02-05  Bruno Haible  <bruno@clisp.org>
10014
10015         New module 'wcscat'.
10016         * modules/wcscat: New file.
10017         * lib/wchar.in.h (wcscat): New declaration.
10018         * lib/wcscat.c: New file.
10019         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10020         * m4/wcscat.m4: New file.
10021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10024         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10025         * doc/posix-functions/wcscat.texi: Mention the new module.
10026
10027 2011-02-05  Bruno Haible  <bruno@clisp.org>
10028
10029         New module 'wcpncpy'.
10030         * modules/wcpncpy: New file.
10031         * lib/wchar.in.h (wcpncpy): New declaration.
10032         * lib/wcpncpy.c: New file.
10033         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10034         * m4/wcpncpy.m4: New file.
10035         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10036         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10037         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10038         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10039         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10040
10041 2011-02-05  Bruno Haible  <bruno@clisp.org>
10042
10043         New module 'wcsncpy'.
10044         * modules/wcsncpy: New file.
10045         * lib/wchar.in.h (wcsncpy): New declaration.
10046         * lib/wcsncpy.c: New file.
10047         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10048         * m4/wcsncpy.m4: New file.
10049         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10050         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10052         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10053         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10054
10055 2011-02-05  Bruno Haible  <bruno@clisp.org>
10056
10057         New module 'wcpcpy'.
10058         * modules/wcpcpy: New file.
10059         * lib/wchar.in.h (wcpcpy): New declaration.
10060         * lib/wcpcpy.c: New file.
10061         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10062         * m4/wcpcpy.m4: New file.
10063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10065         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10066         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10067         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10068
10069 2011-02-05  Bruno Haible  <bruno@clisp.org>
10070
10071         New module 'wcscpy'.
10072         * modules/wcscpy: New file.
10073         * lib/wchar.in.h (wcscpy): New declaration.
10074         * lib/wcscpy.c: New file.
10075         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10076         * m4/wcscpy.m4: New file.
10077         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10078         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10079         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10080         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10081         * doc/posix-functions/wcscpy.texi: Mention the new module.
10082
10083 2011-02-05  Bruno Haible  <bruno@clisp.org>
10084
10085         New module 'wcsnlen'.
10086         * modules/wcsnlen: New file.
10087         * lib/wchar.in.h (wcsnlen): New declaration.
10088         * lib/wcsnlen.c: New file.
10089         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10090         * m4/wcsnlen.m4: New file.
10091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10093         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10094         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10095         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10096
10097 2011-02-05  Bruno Haible  <bruno@clisp.org>
10098
10099         New module 'wcslen'.
10100         * modules/wcslen: New file.
10101         * lib/wchar.in.h (wcslen): New declaration.
10102         * lib/wcslen.c: New file.
10103         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10104         * m4/wcslen.m4: New file.
10105         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10106         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10107         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10108         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10109         * doc/posix-functions/wcslen.texi: Mention the new module.
10110
10111 2011-02-05  Bruno Haible  <bruno@clisp.org>
10112
10113         New module 'wmemset'.
10114         * modules/wmemset: New file.
10115         * lib/wchar.in.h (wmemset): New declaration.
10116         * lib/wmemset.c: New file.
10117         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10118         * m4/wmemset.m4: New file.
10119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10122         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10123         * doc/posix-functions/wmemset.texi: Mention the new module.
10124
10125 2011-02-05  Bruno Haible  <bruno@clisp.org>
10126
10127         New module 'wmemmove'.
10128         * modules/wmemmove: New file.
10129         * lib/wchar.in.h (wmemmove): New declaration.
10130         * lib/wmemmove.c: New file.
10131         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10132         * m4/wmemmove.m4: New file.
10133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10136         HAVE_WMEMMOVE.
10137         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10138         * doc/posix-functions/wmemmove.texi: Mention the new module.
10139
10140 2011-02-05  Bruno Haible  <bruno@clisp.org>
10141
10142         New module 'wmemcpy'.
10143         * modules/wmemcpy: New file.
10144         * lib/wchar.in.h (wmemcpy): New declaration.
10145         * lib/wmemcpy.c: New file.
10146         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10147         * m4/wmemcpy.m4: New file.
10148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10150         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10151         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10152         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10153
10154 2011-02-05  Bruno Haible  <bruno@clisp.org>
10155
10156         New module 'wmemcmp'.
10157         * modules/wmemcmp: New file.
10158         * lib/wchar.in.h (wmemcmp): New declaration.
10159         * lib/wmemcmp.c: New file.
10160         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10161         * m4/wmemcmp.m4: New file.
10162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10164         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10165         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10166         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10167
10168 2011-02-07  Jim Meyering  <meyering@redhat.com>
10169
10170         di-set, ino-map: new modules, from coreutils
10171         * lib/di-set.c: New file.
10172         * lib/di-set.h: Likewise.
10173         * lib/ino-map.c: Likewise.
10174         * lib/ino-map.h: Likewise.
10175         * modules/di-set: Likewise.
10176         * modules/di-set-tests: Likewise.
10177         * modules/ino-map: Likewise.
10178         * modules/ino-map-tests: Likewise.
10179         * tests/test-di-set.c: Likewise.
10180         * tests/test-ino-map.c: Likewise.
10181
10182 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10183
10184         getloadavg: merge minor changes from Emacs
10185
10186         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10187         (getloadavg): Use memset, not bzero.
10188
10189         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10190         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10191         clash (bug#86).
10192
10193 2010-11-14  Bruno Haible  <bruno@clisp.org>
10194
10195         Allow multiple gnulib generated replacements to coexist.
10196         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10197         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10198         * lib/langinfo.in.h (nl_item): Likewise.
10199         * lib/math.in.h (_NaN, NAN): Likewise.
10200         * lib/netdb.in.h (struct addrinfo): Likewise.
10201         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10202         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10203         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10204         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10205         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10206         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10207         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10208         pthread_mutexattr_init, pthread_mutexattr_settype,
10209         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10210         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10211         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10212         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10213         * lib/sched.in.h (struct sched_param): Likewise.
10214         * lib/se-selinux.in.h (security_class_t, security_context_t,
10215         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10216         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10217         lsetfilecon, fsetfilecon, security_check_context,
10218         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10219         Likewise.
10220         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10221         Likewise.
10222         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10223         _gl_function_taking_int_returning_void_t, union sigval,
10224         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10225         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10226         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10227         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10228         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10229         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10230         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10231         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10232         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10233         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10234         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10235         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10236         socklen_t, rpl_fd_isset): Likewise.
10237         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10238         * lib/sys_time.in.h (struct timeval): Likewise.
10239         * lib/sys_times.in.h (struct tms): Likewise.
10240         * lib/sys_utsname.in.h (struct utsname):
10241         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10242         * lib/unistd.in.h (getpagesize): Likewise.
10243         * lib/wchar.in.h (mbstate_t): Likewise.
10244         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10246         towlower, towupper): Likewise.
10247         Reported by Sam Steingold <sds@gnu.org>.
10248
10249 2011-02-05  Eric Blake  <eblake@redhat.com>
10250
10251         unsetenv: work around Haiku issues
10252         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10253         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10254
10255 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10256
10257         libposix: avoid calling error() within libposix
10258         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10259         is defined.
10260
10261 2011-02-05  Eric Blake  <eblake@redhat.com>
10262
10263         strerror_r-posix: port to cygwin
10264         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10265         implementation.
10266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10267         * tests/test-strerror_r.c (main): Fix test.
10268         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10269         issue.
10270
10271 2011-02-05  Bruno Haible  <bruno@clisp.org>
10272
10273         New module 'wmemchr'.
10274         * modules/wmemchr: New file.
10275         * lib/wchar.in.h (wmemchr): New declaration.
10276         * lib/wmemchr.c: New file.
10277         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10278         * m4/wmemchr.m4: New file.
10279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10281         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10282         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10283         * doc/posix-functions/wmemchr.texi: Mention the new module.
10284
10285 2011-02-04  Eric Blake  <eblake@redhat.com>
10286
10287         fdopendir: detect FreeBSD bug
10288         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10289         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10290
10291 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10292
10293         stdbool: do not define HAVE_STDBOOL_H
10294         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10295         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10296         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10297         imported from the latest Autoconf git.  It was motivated by Emacs,
10298         which uses gnulib but does not need HAVE_STDBOOL_H.
10299
10300 2011-02-04  Bruno Haible  <bruno@clisp.org>
10301
10302         wcsnrtombs: Prepare for new module wwcsnrtombs.
10303         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10304         * lib/wcsnrtombs.c: Include it.
10305         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10306
10307         wcsrtombs: Prepare for new module wwcsrtombs.
10308         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10309         * lib/wcsrtombs.c: Include it.
10310         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10311
10312         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10313         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10314         * lib/mbsnrtowcs.c: Include it.
10315         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10316
10317         mbsrtowcs: Prepare for new module mbsrtowwcs.
10318         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10319         * lib/mbsrtowcs.c: Include it.
10320         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10321
10322 2011-02-04  Bruno Haible  <bruno@clisp.org>
10323
10324         vasnprintf: Reduce use of malloc for small format strings.
10325         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10326         (arguments): Add room for the first 7 arguments.
10327         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10328         (char_directives, u8_directives, u16_directives, u32_directives): Add
10329         room for the first 7 directives.
10330         * lib/printf-parse.c: Include <string.h>.
10331         (PRINTF_PARSE): Change memory handling code so that it uses the first
10332         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10333         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10334         Reported by PĂ¡draig Brady <P@draigbrady.com>.
10335
10336 2011-01-31  Eric Blake  <eblake@redhat.com>
10337
10338         dup2: work around Haiku bug
10339         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10340         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10341         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10342         * tests/test-dup2.c (main): Enhance test.
10343
10344 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10345
10346         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10347         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10348         declared by eglibc 2.11.2.
10349         * lib/stdio.in.h: Likewise.
10350
10351 2011-01-31  Eric Blake  <eblake@redhat.com>
10352
10353         ignore-value: add missing test dependency
10354         * tests/test-ignore-value.c: Revert previous change; stdio.h
10355         provides off_t.
10356         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10357
10358 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10359
10360         mktime: clarify long_int width checking
10361         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10362         the top level, to make it clearer that the assumption about
10363         long_int width is being checked.  See
10364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10365
10366 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10367
10368         ignore-value: Fix self-test.
10369         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10370
10371 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10372
10373         TYPE_MAXIMUM: avoid theoretically undefined behavior
10374         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10375         negative number, which the C Standard says has undefined behavior.
10376         In practice this is not a problem, but might as well do it by the book.
10377         Reported by Rich Felker and Eric Blake; see
10378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10379         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10380         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10382         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10383         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10384         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10385
10386         mktime: #undef mktime before #defining it
10387         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10388
10389         mktime: systematically normalize tm_isdst comparisons
10390         * lib/mktime.c (isdst_differ): New function.
10391         (__mktime_internal): Use it systematically for all isdst comparisons.
10392         This completes the fix for libc BZ #6723, and removes the need for
10393         normalizing tm_isdst.  See
10394         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10395         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10396
10397         mktime: fix some integer overflow issues and sidestep the rest
10398
10399         This was prompted by a bug report by Benjamin Lindner for MinGW
10400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10401         His bug is due to signed integer overflow (0 - INT_MIN), and I
10402         I scanned through mktime.c looking for other integer overflow
10403         problems, fixing all the bugs I found.
10404
10405         Although the C Standard says the resulting code is still not safe
10406         in the presence of integer overflow, in practice it should be good
10407         enough for all real-world two's-complement implementations, except
10408         for debugging environments that deliberately trap on integer
10409         overflow (e.g., gcc -ftrapv).
10410
10411         * lib/mktime.c (WRAPV): New macro.
10412         (SHR): Also check that long_int and time_t shift right in the
10413         usual way, before using the fast-but-unportable method.
10414         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10415         used.  The code already assumed two's complement, so there's
10416         no need to test for alternatives.  All uses removed.
10417         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10418         the C standard.  Problem reported by Rich Felker in
10419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10420         (twos_complement_arithmetic): Also check long_int and time_t.
10421         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10422         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10423         (__mktime_internal): Avoid integer overflow with unary subtraction
10424         in two instances where -1 - X is an adequate replacement for -X,
10425         since the calculations are approximate.
10426
10427 2011-01-29  Eric Blake  <eblake@redhat.com>
10428
10429         mktime: avoid infinite loop
10430         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10431         type; behavior is still undefined but portable to all known targets.
10432         Reported by Rich Felker.
10433
10434 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10435
10436         rename, unlink, same-inode: Relicense.
10437         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10438         * modules/unlink (License): Likewise.
10439         * modules/same-inode (License): Likewise.
10440
10441 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10442
10443         mktime: avoid problems on NetBSD 5 / i386
10444         * lib/mktime.c (long_int): New type.  This works around a problem
10445         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10446         but time_t is 64 bits, and where I expect the existing code is
10447         wrong in some cases.
10448         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10449         (ydhms_diff): Bring back the compile-time check for wide-enough
10450         year and yday.
10451
10452         mktime: fix misspelling in comment
10453         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10454         This merges all recent glibc changes of importance.
10455
10456 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10457
10458         move-if-change: cope with concurrent mv of identical file.
10459         * build-aux/move-if-change (CMPPROG): Accept environment
10460         variable as an override for `cmp'.
10461         (usage): Document CMPPROG.
10462         Adjust comparison to drop stdout.  Cope with failure of mv if
10463         the target file exists and is identical to the source, for
10464         parallel builds.
10465         Report from H.J. Lu against binutils in PR binutils/12283.
10466
10467 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10468
10469         * users.txt: Mention sharutils.
10470
10471 2011-01-28  Simon Josefsson  <simon@josefsson.org>
10472
10473         * users.txt: Mention OATH Toolkit.
10474
10475 2011-01-27  Bruno Haible  <bruno@clisp.org>
10476
10477         Prepare for supporting FreeBSD 10.
10478         * build-aux/config.libpath: Remove handling of freebsd1*.
10479
10480 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
10481
10482         Prepare for supporting FreeBSD 10.
10483         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
10484         match FreeBSD 10.0.
10485
10486 2011-01-27  Bruno Haible  <bruno@clisp.org>
10487
10488         vma-iter, get-rusage-as: Add OpenBSD support.
10489         * modules/vma-iter (configure.ac): Test for mquery.
10490         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
10491         * lib/vma-iter.c: Include <sys/mman.h>.
10492         (vma_iterate): Add an implementation based on mquery().
10493         * lib/resource-ext.h (get_rusage_as): Update comments.
10494         * lib/get-rusage-as.c: Likewise.
10495         * lib/get-rusage-data.c: Likewise.
10496
10497 2011-01-26  Karl Berry  <karl@gnu.org>
10498
10499         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
10500         variables to make it easier to override the makeinfo program used.
10501
10502 2011-01-26  Eric Blake  <eblake@redhat.com>
10503
10504         fcntl: work around Haiku F_DUPFD bugs
10505         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
10506         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
10507         cloexec bit on duplication.
10508         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
10509
10510 2011-01-26  Bruno Haible  <bruno@clisp.org>
10511
10512         Enable memory leak tests on AIX.
10513         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
10514         * tests/test-fprintf-posix3.c (main): Likewise.
10515
10516 2011-01-26  Bruno Haible  <bruno@clisp.org>
10517
10518         Tests for module 'get-rusage-data'.
10519         * modules/get-rusage-data-tests: New file.
10520         * tests/test-get-rusage-data.c: New file.
10521
10522         New module 'get-rusage-data'.
10523         * lib/resource-ext.h (get_rusage_data): New declaration.
10524         * lib/get-rusage-data.c: New file.
10525         * modules/get-rusage-data: New file.
10526
10527 2011-01-25  Bruno Haible  <bruno@clisp.org>
10528
10529         get-rusage-as: Allow for easier testing.
10530         * lib/resource-ext.h (get_rusage_as): Add comment.
10531         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
10532         (main): New function for interactive testing.
10533
10534 2011-01-25  Bruno Haible  <bruno@clisp.org>
10535
10536         vma-iter: Treat Haiku like BeOS.
10537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
10538         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
10539
10540 2011-01-25  Eric Blake  <eblake@redhat.com>
10541
10542         c-stack: fix regression on cygwin when libsigsegv is present
10543         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
10544
10545 2011-01-24  Bruno Haible  <bruno@clisp.org>
10546
10547         vma-iter: Avoid empty intervals.
10548         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
10549         on an empty interval.
10550
10551 2011-01-24  Jim Meyering  <meyering@redhat.com>
10552
10553         u64: remove unnecessary #include
10554         * lib/u64.h: Don't include <stddef.h>.  It was not used.
10555
10556 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10557
10558         Allow the user to avoid the HAVE_RAW_DECL_* macros.
10559         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
10560
10561 2011-01-23  Bruno Haible  <bruno@clisp.org>
10562
10563         New module 'vma-iter'.
10564         * lib/vma-iter.h: New file.
10565         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
10566         * modules/vma-iter: New file.
10567         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
10568         for get_rusage_as_via_iterator.
10569         (vma_iterate_callback): New function.
10570         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
10571         * modules/get-rusage-as (Depends-on): Add vma-iter.
10572
10573 2011-01-23  Bruno Haible  <bruno@clisp.org>
10574
10575         uninorm: Tweak includes.
10576         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
10577         Reported by Jim Meyering.
10578
10579 2011-01-23  Bruno Haible  <bruno@clisp.org>
10580
10581         get-rusage-as: Improve on NetBSD.
10582         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
10583         /proc, like on FreeBSD.
10584
10585 2011-01-23  Jim Meyering  <meyering@redhat.com>
10586
10587         xreadlink.h: remove unnecessary #include
10588         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
10589
10590         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
10591         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
10592
10593 2011-01-23  Bruno Haible  <bruno@clisp.org>
10594
10595         get-rusage-as: Fix bug.
10596         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
10597         original limit when aborting the first loop.
10598
10599 2011-01-23  Bruno Haible  <bruno@clisp.org>
10600
10601         wctype: Ensure valid C syntax.
10602         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
10603         unconditionally, instead of gl_NEXT_HEADERS conditionally.
10604
10605 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
10606
10607         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
10608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
10609         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
10610         as they are needed only for configure's test case.
10611         This removes two unnecessary symbols from config.h.
10612
10613         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
10614         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
10615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
10616         AC_CHECK_HEADERS_ONCE on a header that we also invoke
10617         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
10618         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
10619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
10620         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10621         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10622         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10623         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10625         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10627         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10628         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10629         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10630         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10631
10632 2011-01-21  Eric Blake  <eblake@redhat.com>
10633
10634         maintainer-makefile: work with older git for submodule check
10635         * top/maint.mk (public-submodule-commit): Rewrite to avoid
10636         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
10637         Reported by Matthias Bolte.
10638
10639         bootstrap: minor portability fixes
10640         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
10641         (usage): Omit leading capital and trailing . on help phrases, per
10642         GNU Coding Standards.
10643         (check_versions, top level): Prefix messages with script name.
10644
10645 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
10646
10647         bootstrap: support --no-git option
10648         * build-aux/bootstrap: Add --no-git option, to be used when
10649         --gnulib-srcdir points to the exact desired checkout.
10650
10651 2011-01-21  Eric Blake  <eblake@redhat.com>
10652
10653         strerror_r-posix: work with glibc 2.13
10654         * lib/strerror_r.c (strerror_r): Fix return type.
10655
10656 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
10657             Bruno Haible  <bruno@clisp.org>
10658
10659         uN_strstr: New unit tests.
10660         * modules/unistr/u8-strstr-tests: New file.
10661         * modules/unistr/u16-strstr-tests: New file.
10662         * modules/unistr/u32-strstr-tests: New file.
10663         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
10664         * tests/unistr/test-u8-strstr.c: New file.
10665         * tests/unistr/test-u16-strstr.c: New file.
10666         * tests/unistr/test-u32-strstr.c: New file.
10667
10668 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
10669             Bruno Haible  <bruno@clisp.org>
10670
10671         Make uN_strstr functions O(n) worst-case.
10672         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
10673         16-bit and 32-bit unit cases, use the unibyte algorithm from
10674         lib/mbsstr.c.
10675         * lib/unistr/u8-strstr.c: Include <string.h>.
10676         (UNIT_IS_UINT8_T): New macro.
10677         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
10678         (U_STRLEN, U_STRNLEN): New macros.
10679         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
10680         (U_STRLEN, U_STRNLEN): New macros.
10681         * modules/unistr/u8-strstr (Depends-on): Add strstr.
10682         (configure.ac): Update required libunistring version.
10683         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
10684         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
10685         malloca.
10686         (configure.ac): Update required libunistring version.
10687         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
10688         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
10689         malloca.
10690         (configure.ac): Update required libunistring version.
10691
10692 2011-01-21  PĂ¡draig Brady  <P@draigBrady.com>
10693             Bruno Haible  <bruno@clisp.org>
10694
10695         Prepare for faster uN_strstr functions.
10696         * lib/str-kmp.h: Support definable UNITs.
10697         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
10698         needle_len argument.
10699         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
10700         * lib/mbscasestr.c (mbscasestr): Likewise.
10701
10702 2011-01-21  PĂ¡draig Brady <P@draigBrady.com>
10703
10704         malloca-tests: make faster by unsetting MALLOC_PERTURB_
10705         * tests/test-malloca.c (main): Unset the environment variable
10706         to greatly speed up the test.
10707         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
10708         * modules/malloca-tests: Depend on unsetenv.
10709
10710 2011-01-21  PĂ¡draig Brady <P@draigBrady.com>
10711
10712         ignore-value: remove stdint dependency
10713         * lib/ignore-value.h: Remove <stdint.h>
10714         * modules/ignore-value: Remove stdint dependency.
10715
10716 2011-01-21  Jim Meyering  <meyering@redhat.com>
10717
10718         maint.mk: adjust variable name to be consistent with other gl_ vars
10719         * top/maint.mk (gl_public_submodule_commit): Rename the variable
10720         to be lower case.
10721
10722 2011-01-20  Jim Meyering  <meyering@redhat.com>
10723
10724         maint.mk: make "check" depend on public-submodule-commit by default
10725         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
10726
10727 2011-01-20  Bruno Haible  <bruno@clisp.org>
10728
10729         mbfile, mbiter: Complete change from 2008-12-21.
10730         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
10731         * m4/mbiter.m4 (gl_MBITER): Likewise.
10732
10733 2011-01-20  Jim Meyering  <meyering@redhat.com>
10734
10735         init.sh: insert space between each function name and "()"
10736         * tests/init.sh: Make it a little easier to see that a function's
10737         name is "warn_", and not "warn" when looking at the first part of
10738         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
10739
10740 2011-01-20  Jim Meyering  <meyering@redhat.com>
10741
10742         mountlist: clean up code formatting
10743         * lib/mountlist.c (read_file_system_list): Split a long line,
10744         correct bracing style, use NULL in place of "(struct statfs *)0",
10745         don't parenthesize return value, add spaces around "=" and after
10746         ";-in-for-stmt".
10747
10748 2011-01-14  Markus Duft <mduft@gentoo.org>
10749
10750         mountlist: add support for Interix
10751         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
10752         Apply statvfs to all entries of /dev/fs.
10753         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
10754         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
10755
10756 2011-01-20  Jim Meyering  <meyering@redhat.com>
10757
10758         maint.mk: improve the public-submodule-commit rule
10759         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
10760         to suppress printing of its commands... unless V=1.
10761         Add git submodule's --quiet option to suppress printing of e.g.,
10762         "Entering gnulib" output.
10763         "cd" into $(srcdir) before running git submodule.
10764
10765 2011-01-20  Bruno Haible  <bruno@clisp.org>
10766
10767         include_next: Fix bug introduced on 2011-01-18.
10768         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
10769         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
10770         ac_cv_header_... variable if the second argument is not 'check'.
10771         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
10772         gl_NEXT_HEADERS_INTERNAL.
10773
10774 2011-01-20  Bruno Haible  <bruno@clisp.org>
10775
10776         Allow the user to avoid the GNULIB_TEST_* macros.
10777         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
10778         Suggested by Paul Eggert.
10779
10780 2011-01-14  Jim Meyering  <meyering@redhat.com>
10781
10782         bootstrap: avoid failure when there is no .gitmodules file
10783         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
10784         has been assigned to, even when its value is the empty string.
10785         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
10786         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
10787         Reported by John W. Eaton <jwe@gnu.org>.
10788
10789 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         assume <ctype.h>, ..., <time.h> exist
10792         For years gnulib has been assuming the existence of the headers
10793         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
10794         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
10795         them, since they don't appear to be needed.
10796         * README (Portability guidelines): Document this.
10797         * lib/flock.c: Assume <fcntl.h> exists.
10798         * lib/regex_internal.h: Assume <locale.h> exists.
10799         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
10800         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
10801         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
10802         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
10803         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
10804         * m4/regex.m4 (gl_REGEX): Likewise.
10805         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
10806         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
10807         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
10808         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
10809         * tests/test-argp.c: Likewise.
10810         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
10811
10812         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
10813         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
10814         AA_APPLE_UNIVERSAL_BUILD.  See
10815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
10816         * NEWS: Document this.
10817
10818 2011-01-19  Eric Blake  <eblake@redhat.com>
10819
10820         c-stack: assume stack overflow if SA_SIGINFO unsupported
10821         * lib/c-stack.c (SIGACTION_WORKS): Rename...
10822         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
10823         sigaction will work.
10824         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
10825         behavior match Linux.
10826         * tests/test-c-stack.c (main): Prefer NULL for pointers.
10827
10828         stdbool-tests: accomodate Haiku
10829         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
10830
10831         binary-io: fix O_TEXT on Haiku
10832         * modules/binary-io (Depends-on): Add fcntl-h.
10833         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
10834         than blindly undefining O_TEXT.
10835         Reported by Scott McCreary.
10836
10837 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10838
10839         include_next: do not check for standard headers like stddef.h
10840
10841         I found this problem when modifying Emacs to use gnulib.
10842         I noticed that it added HAVE_STDDEF_H to config.h, even though
10843         gnulib always assumes <stddef.h> exists as per README and this
10844         symbol is unnecessary.
10845         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
10846         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
10847         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
10848         faster for headers like stddef.h that are known to exist.
10849         (gl_CHECK_NEXT_HEADERS): Use it.
10850         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
10851         rather than gl_CHECK_NEXT_HEADERS.
10852         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
10853         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
10854
10855 2011-01-18  Eric Blake  <eblake@redhat.com>
10856
10857         ansi-c++-opt: skip C++ dependency style if C++ is unused
10858         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
10859         tests when we know C++ compilation is not desired.
10860         Reported by Scott McCreary.
10861
10862 2011-01-18  Bruno Haible  <bruno@clisp.org>
10863
10864         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
10865         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
10866         (main): Perform test also when getrlimit and setrlimit don't exist or
10867         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
10868         limiting the address space size using setrlimit, compare the address
10869         space size before and after the the test.
10870         * tests/test-dprintf-posix2.c: Likewise.
10871         * tests/test-fprintf-posix3.sh: Update skip messages.
10872         * tests/test-dprintf-posix2.sh: Likewise.
10873         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
10874         * modules/dprintf-posix-tests (Depends-on): Likewise.
10875         Reported by Bruce Korb <bkorb@gnu.org> and
10876         Gary V. Vaughan <gary@gnu.org>.
10877
10878 2011-01-18  Bruno Haible  <bruno@clisp.org>
10879
10880         get-rusage-as: Improvement for Cygwin.
10881         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
10882         areas that are merely reserved.
10883
10884 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10885
10886         strftime: remove dependencies on multibyte modules
10887
10888         strftime depended on mbrlen, mbsinit, and wchar, but these modules
10889         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
10890         only if __osf__ is defined, and I suspect OSF doesn't need these
10891         other modules.  If my guess is wrong, we'll need to come up with a
10892         variant of strftime that doesn't need the multibyte modules.
10893
10894         I discovered this problem when attempting modify Emacs to use the
10895         strftime module.  With the previous gnulib, this caused Emacs to
10896         need 31 new files, ranging from lib/config.charset to
10897         m4/wint_t.m4.  This was overkill and I expect would be offputting
10898         to the Emacs maintainers.  After this change, only 6 new files are
10899         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
10900         stdbool.m4, and tm_gmtoff.m4.
10901
10902         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
10903         Suggested by Bruno Haible in
10904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
10905         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
10906         and do not check for wchar.h.
10907         * modules/strftime (Files): Remove m4/mbstate_t.m4.
10908         (Depends-on): Remove mbrlen, mbsinit, wchar.
10909
10910 2011-01-18  Bruno Haible  <bruno@clisp.org>
10911
10912         Tests for module 'get-rusage-as'.
10913         * modules/get-rusage-as-tests: New file.
10914         * tests/test-get-rusage-as.c: New file.
10915
10916         New module 'get-rusage-as'.
10917         * modules/get-rusage-as: New file.
10918         * lib/resource-ext.h: New file.
10919         * lib/get-rusage-as.c: New file.
10920
10921 2011-01-17  Eric Blake  <eblake@redhat.com>
10922
10923         sigaction: relax license from LGPLv3+ to LGPLv2+
10924         * modules/sigaction (License): Relax to LGPLv2+.
10925
10926 2011-01-14  Bruno Haible  <bruno@clisp.org>
10927
10928         filemode: Make function declarations usable in C++ mode.
10929         * lib/filemode.h: Enclose function declarations in extern "C" block.
10930         Reported by John W. Eaton <jwe@gnu.org>.
10931
10932 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
10933
10934         save-cwd: no longer include "xgetcwd.h"
10935         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
10936         This avoids a compilation failure in projects that use save-cwd
10937         without also using the xgetcwd module.
10938
10939 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10940
10941         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
10942         This is so that a program like Emacs, which needs only dtoastr,
10943         does not have to bother with distributing and compiling ftoastr
10944         and ldtoastr.
10945         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
10946         * modules/dtoastr, modules/ldtoastr: New files.
10947         * modules/ftoastr: Now works just for 'float'.
10948         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
10949         (Makefile.am): Remove ftoastr.h (not needed and no effect),
10950         dtoastr.c, ldtoastr.c.
10951
10952 2011-01-11  Jim Meyering  <meyering@redhat.com>
10953
10954         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
10955         There is no need to work around the lack of the fchdir function,
10956         since gnulib can now provide a replacement when required.
10957         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
10958         * modules/save-cwd (Depends-on): Add fchdir.
10959
10960 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         openat, save-cwd: avoid xmalloc
10963
10964         This removes a direct (but undocumented) dependency of openat on
10965         xalloc, along with an indirect dependency via save-cwd.  It also
10966         removes a dependency of save-cwd on xgetcwd, and thereby
10967         indirectly on xalloc.  This change causes the openat substitute
10968         to fall back on save_cwd when memory is tight, and for save_cwd to
10969         fail instead of dying when memory is tight, but that's good enough.
10970         Problem and initial idea for fix reported by Bastien Roucaries in
10971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
10972
10973         * lib/openat-proc.c: Include stdlib.h (for malloc), not
10974         xalloc.h (for xmalloc).
10975         (openat_proc_name): Use malloc, not xmalloc.
10976         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
10977         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
10978
10979         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
10980         This avoids heap allocation for file names whose lengths are in
10981         the range 512..1023, with the upper bound increasing to at most
10982         4031 depending on the platform's PATH_MAX.  (We do not want
10983         pathmax.h here as it might supply a non-constant PATH_MAX.)
10984         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
10985         Perhaps they should be moved to malloca.h?
10986         (OPENAT_BUFFER_SIZE): Use them.
10987
10988 2011-01-10  Bruno Haible  <bruno@clisp.org>
10989
10990         doc: Update users.txt.
10991         * users.txt: Add recutils.
10992
10993 2011-01-09  Karl Berry  <karl@gnu.org>
10994
10995         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
10996
10997         * doc/configmake.texi: New file.
10998         * doc/gnulib.texi: Include it.
10999         * modules/configmake: Move documentation from here.
11000
11001 2011-01-09  Bruno Haible  <bruno@clisp.org>
11002
11003         Update to Unicode 6.0.0.
11004         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11005         (get_lbp): Update for Unicode 6.0.0.
11006         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11007         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11008         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11009         U+11001, U+11038..U+11046. Remove U+06DE.
11010         (uc_width): Fix bounds of planes.
11011         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11012         lib/uniwidth/width.c.
11013         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11014         trailing whitespace removed.
11015         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11016         without comments, but with the original copyright notice.
11017         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11018         * lib/unicase/ignorable.h: Likewise.
11019         * lib/unicase/tocasefold.h: Likewise.
11020         * lib/unicase/tolower.h: Likewise.
11021         * lib/unicase/totitle.h: Likewise.
11022         * lib/unicase/toupper.h: Likewise.
11023         * lib/unictype/bidi_of.h: Likewise.
11024         * lib/unictype/blocks.h: Likewise.
11025         * lib/unictype/categ_C.h: Likewise.
11026         * lib/unictype/categ_Cn.h: Likewise.
11027         * lib/unictype/categ_L.h: Likewise.
11028         * lib/unictype/categ_Ll.h: Likewise.
11029         * lib/unictype/categ_Lm.h: Likewise.
11030         * lib/unictype/categ_Lo.h: Likewise.
11031         * lib/unictype/categ_Lu.h: Likewise.
11032         * lib/unictype/categ_M.h: Likewise.
11033         * lib/unictype/categ_Mc.h: Likewise.
11034         * lib/unictype/categ_Me.h: Likewise.
11035         * lib/unictype/categ_Mn.h: Likewise.
11036         * lib/unictype/categ_N.h: Likewise.
11037         * lib/unictype/categ_Nd.h: Likewise.
11038         * lib/unictype/categ_No.h: Likewise.
11039         * lib/unictype/categ_P.h: Likewise.
11040         * lib/unictype/categ_Po.h: Likewise.
11041         * lib/unictype/categ_S.h: Likewise.
11042         * lib/unictype/categ_Sc.h: Likewise.
11043         * lib/unictype/categ_Sk.h: Likewise.
11044         * lib/unictype/categ_Sm.h: Likewise.
11045         * lib/unictype/categ_So.h: Likewise.
11046         * lib/unictype/categ_of.h: Likewise.
11047         * lib/unictype/combining.h: Likewise.
11048         * lib/unictype/ctype_alnum.h: Likewise.
11049         * lib/unictype/ctype_alpha.h: Likewise.
11050         * lib/unictype/ctype_graph.h: Likewise.
11051         * lib/unictype/ctype_lower.h: Likewise.
11052         * lib/unictype/ctype_print.h: Likewise.
11053         * lib/unictype/ctype_punct.h: Likewise.
11054         * lib/unictype/ctype_upper.h: Likewise.
11055         * lib/unictype/decdigit.h: Likewise.
11056         * lib/unictype/digit.h: Likewise.
11057         * lib/unictype/numeric.h: Likewise.
11058         * lib/unictype/pr_alphabetic.h: Likewise.
11059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11061         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11062         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11063         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11064         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11065         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11066         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11067         * lib/unictype/pr_case_ignorable.h: Likewise.
11068         * lib/unictype/pr_cased.h: Likewise.
11069         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11070         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11071         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11072         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11073         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11074         * lib/unictype/pr_combining.h: Likewise.
11075         * lib/unictype/pr_composite.h: Likewise.
11076         * lib/unictype/pr_currency_symbol.h: Likewise.
11077         * lib/unictype/pr_decimal_digit.h: Likewise.
11078         * lib/unictype/pr_deprecated.h: Likewise.
11079         * lib/unictype/pr_format_control.h: Likewise.
11080         * lib/unictype/pr_grapheme_base.h: Likewise.
11081         * lib/unictype/pr_grapheme_extend.h: Likewise.
11082         * lib/unictype/pr_grapheme_link.h: Likewise.
11083         * lib/unictype/pr_id_continue.h: Likewise.
11084         * lib/unictype/pr_id_start.h: Likewise.
11085         * lib/unictype/pr_ideographic.h: Likewise.
11086         * lib/unictype/pr_lowercase.h: Likewise.
11087         * lib/unictype/pr_math.h: Likewise.
11088         * lib/unictype/pr_numeric.h: Likewise.
11089         * lib/unictype/pr_other_alphabetic.h: Likewise.
11090         * lib/unictype/pr_other_id_continue.h: Likewise.
11091         * lib/unictype/pr_other_math.h: Likewise.
11092         * lib/unictype/pr_punctuation.h: Likewise.
11093         * lib/unictype/pr_sentence_terminal.h: Likewise.
11094         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11095         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11096         * lib/unictype/pr_unified_ideograph.h: Likewise.
11097         * lib/unictype/pr_uppercase.h: Likewise.
11098         * lib/unictype/pr_xid_continue.h: Likewise.
11099         * lib/unictype/pr_xid_start.h: Likewise.
11100         * lib/unictype/scripts.h: Likewise.
11101         * lib/unictype/scripts_byname.gperf: Likewise.
11102         * lib/unictype/sy_java_ident.h: Likewise.
11103         * lib/unigbrk/gbrkprop.h: Likewise.
11104         * lib/unilbrk/lbrkprop1.h: Likewise.
11105         * lib/unilbrk/lbrkprop2.h: Likewise.
11106         * lib/uninorm/decomposition-table2.h: Likewise.
11107         * lib/uniwbrk/wbrkprop.h: Likewise.
11108         * tests/unicase/test-cased.c: Likewise.
11109         * tests/unicase/test-ignorable.c: Likewise.
11110         * tests/unicase/test-uc_tolower.c: Likewise.
11111         * tests/unicase/test-uc_totitle.c: Likewise.
11112         * tests/unicase/test-uc_toupper.c: Likewise.
11113         * tests/unictype/test-categ_C.c: Likewise.
11114         * tests/unictype/test-categ_Cn.c: Likewise.
11115         * tests/unictype/test-categ_L.c: Likewise.
11116         * tests/unictype/test-categ_Ll.c: Likewise.
11117         * tests/unictype/test-categ_Lm.c: Likewise.
11118         * tests/unictype/test-categ_Lo.c: Likewise.
11119         * tests/unictype/test-categ_Lu.c: Likewise.
11120         * tests/unictype/test-categ_M.c: Likewise.
11121         * tests/unictype/test-categ_Mc.c: Likewise.
11122         * tests/unictype/test-categ_Me.c: Likewise.
11123         * tests/unictype/test-categ_Mn.c: Likewise.
11124         * tests/unictype/test-categ_N.c: Likewise.
11125         * tests/unictype/test-categ_Nd.c: Likewise.
11126         * tests/unictype/test-categ_No.c: Likewise.
11127         * tests/unictype/test-categ_P.c: Likewise.
11128         * tests/unictype/test-categ_Po.c: Likewise.
11129         * tests/unictype/test-categ_S.c: Likewise.
11130         * tests/unictype/test-categ_Sc.c: Likewise.
11131         * tests/unictype/test-categ_Sk.c: Likewise.
11132         * tests/unictype/test-categ_Sm.c: Likewise.
11133         * tests/unictype/test-categ_So.c: Likewise.
11134         * tests/unictype/test-ctype_alnum.c: Likewise.
11135         * tests/unictype/test-ctype_alpha.c: Likewise.
11136         * tests/unictype/test-ctype_graph.c: Likewise.
11137         * tests/unictype/test-ctype_lower.c: Likewise.
11138         * tests/unictype/test-ctype_print.c: Likewise.
11139         * tests/unictype/test-ctype_punct.c: Likewise.
11140         * tests/unictype/test-ctype_upper.c: Likewise.
11141         * tests/unictype/test-decdigit.h: Likewise.
11142         * tests/unictype/test-digit.h: Likewise.
11143         * tests/unictype/test-numeric.h: Likewise.
11144         * tests/unictype/test-pr_alphabetic.c: Likewise.
11145         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11146         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11147         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11148         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11149         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11150         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11151         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11152         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11153         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11154         * tests/unictype/test-pr_cased.c: Likewise.
11155         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11156         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11157         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11158         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11159         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11160         * tests/unictype/test-pr_combining.c: Likewise.
11161         * tests/unictype/test-pr_composite.c: Likewise.
11162         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11163         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11164         * tests/unictype/test-pr_deprecated.c: Likewise.
11165         * tests/unictype/test-pr_format_control.c: Likewise.
11166         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11167         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11168         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11169         * tests/unictype/test-pr_id_continue.c: Likewise.
11170         * tests/unictype/test-pr_id_start.c: Likewise.
11171         * tests/unictype/test-pr_ideographic.c: Likewise.
11172         * tests/unictype/test-pr_lowercase.c: Likewise.
11173         * tests/unictype/test-pr_math.c: Likewise.
11174         * tests/unictype/test-pr_numeric.c: Likewise.
11175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11176         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11177         * tests/unictype/test-pr_other_math.c: Likewise.
11178         * tests/unictype/test-pr_punctuation.c: Likewise.
11179         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11180         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11181         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11182         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11183         * tests/unictype/test-pr_uppercase.c: Likewise.
11184         * tests/unictype/test-pr_xid_continue.c: Likewise.
11185         * tests/unictype/test-pr_xid_start.c: Likewise.
11186         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11187         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11188         changes.
11189         * lib/unictype/categ_Cc.h: Likewise.
11190         * lib/unictype/categ_Cf.h: Likewise.
11191         * lib/unictype/categ_Co.h: Likewise.
11192         * lib/unictype/categ_Cs.h: Likewise.
11193         * lib/unictype/categ_Lt.h: Likewise.
11194         * lib/unictype/categ_Nl.h: Likewise.
11195         * lib/unictype/categ_Pc.h: Likewise.
11196         * lib/unictype/categ_Pd.h: Likewise.
11197         * lib/unictype/categ_Pe.h: Likewise.
11198         * lib/unictype/categ_Pf.h: Likewise.
11199         * lib/unictype/categ_Pi.h: Likewise.
11200         * lib/unictype/categ_Ps.h: Likewise.
11201         * lib/unictype/categ_Z.h: Likewise.
11202         * lib/unictype/categ_Zl.h: Likewise.
11203         * lib/unictype/categ_Zp.h: Likewise.
11204         * lib/unictype/categ_Zs.h: Likewise.
11205         * lib/unictype/ctype_blank.h: Likewise.
11206         * lib/unictype/ctype_cntrl.h: Likewise.
11207         * lib/unictype/ctype_digit.h: Likewise.
11208         * lib/unictype/ctype_space.h: Likewise.
11209         * lib/unictype/ctype_xdigit.h: Likewise.
11210         * lib/unictype/mirror.h: Likewise.
11211         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11212         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11213         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11214         * lib/unictype/pr_bidi_control.h: Likewise.
11215         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11216         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11217         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11218         * lib/unictype/pr_bidi_pdf.h: Likewise.
11219         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11220         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11221         * lib/unictype/pr_dash.h: Likewise.
11222         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11223         * lib/unictype/pr_diacritic.h: Likewise.
11224         * lib/unictype/pr_extender.h: Likewise.
11225         * lib/unictype/pr_hex_digit.h: Likewise.
11226         * lib/unictype/pr_hyphen.h: Likewise.
11227         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11228         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11229         * lib/unictype/pr_ignorable_control.h: Likewise.
11230         * lib/unictype/pr_iso_control.h: Likewise.
11231         * lib/unictype/pr_join_control.h: Likewise.
11232         * lib/unictype/pr_left_of_pair.h: Likewise.
11233         * lib/unictype/pr_line_separator.h: Likewise.
11234         * lib/unictype/pr_logical_order_exception.h: Likewise.
11235         * lib/unictype/pr_non_break.h: Likewise.
11236         * lib/unictype/pr_not_a_character.h: Likewise.
11237         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11238         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11239         * lib/unictype/pr_other_id_start.h: Likewise.
11240         * lib/unictype/pr_other_lowercase.h: Likewise.
11241         * lib/unictype/pr_other_uppercase.h: Likewise.
11242         * lib/unictype/pr_paired_punctuation.h: Likewise.
11243         * lib/unictype/pr_paragraph_separator.h: Likewise.
11244         * lib/unictype/pr_pattern_syntax.h: Likewise.
11245         * lib/unictype/pr_pattern_white_space.h: Likewise.
11246         * lib/unictype/pr_private_use.h: Likewise.
11247         * lib/unictype/pr_quotation_mark.h: Likewise.
11248         * lib/unictype/pr_radical.h: Likewise.
11249         * lib/unictype/pr_soft_dotted.h: Likewise.
11250         * lib/unictype/pr_space.h: Likewise.
11251         * lib/unictype/pr_titlecase.h: Likewise.
11252         * lib/unictype/pr_variation_selector.h: Likewise.
11253         * lib/unictype/pr_white_space.h: Likewise.
11254         * lib/unictype/pr_zero_width.h: Likewise.
11255         * lib/unictype/sy_c_ident.h: Likewise.
11256         * lib/unictype/sy_c_whitespace.h: Likewise.
11257         * lib/unictype/sy_java_whitespace.h: Likewise.
11258         * lib/uninorm/composition-table.gperf: Likewise.
11259         * lib/uninorm/decomposition-table1.h: Likewise.
11260         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11261         LB8.
11262         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11263         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11264         * modules/unictype/*: Bump version number of expected libunistring
11265         version.
11266
11267 2011-01-09  Bruno Haible  <bruno@clisp.org>
11268
11269         Update to Unicode 5.2.0.
11270         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11271         trailing whitespace removed.
11272
11273 2011-01-09  Bruno Haible  <bruno@clisp.org>
11274
11275         New Unicode character properties, from Unicode 5.2.0.
11276         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11277         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11278         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11279         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11280         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11281         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11282         uc_is_property_cased, uc_is_property_case_ignorable,
11283         uc_is_property_changes_when_lowercased,
11284         uc_is_property_changes_when_uppercased,
11285         uc_is_property_changes_when_titlecased,
11286         uc_is_property_changes_when_casefolded,
11287         uc_is_property_changes_when_casemapped): New declarations.
11288         * lib/unictype/pr_byname.gperf: Add the new properties.
11289         * modules/unictype/property-byname (Depends-on): Depend on the new
11290         properties modules.
11291         * modules/unictype/property-all (Depends-on): Likewise.
11292         * MODULES.html.sh (Unicode string functions): Add
11293         unictype/property-case-ignorable, unictype/property-cased,
11294         unictype/property-changes-when-casefolded,
11295         unictype/property-changes-when-casemapped,
11296         unictype/property-changes-when-lowercased,
11297         unictype/property-changes-when-titlecased,
11298         unictype/property-changes-when-uppercased.
11299
11300         New module 'unictype/property-changes-when-casemapped'.
11301         * modules/unictype/property-changes-when-casemapped: New file.
11302         * lib/unictype/pr_changes_when_casemapped.c: New file.
11303         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11304         generated by gen-uni-tables.
11305         * modules/unictype/property-changes-when-casemapped-tests: New file.
11306         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11307         automatically generated by gen-uni-tables.
11308
11309         New module 'unictype/property-changes-when-casefolded'.
11310         * modules/unictype/property-changes-when-casefolded: New file.
11311         * lib/unictype/pr_changes_when_casefolded.c: New file.
11312         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11313         generated by gen-uni-tables.
11314         * modules/unictype/property-changes-when-casefolded-tests: New file.
11315         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11316         automatically generated by gen-uni-tables.
11317
11318         New module 'unictype/property-changes-when-titlecased'.
11319         * modules/unictype/property-changes-when-titlecased: New file.
11320         * lib/unictype/pr_changes_when_titlecased.c: New file.
11321         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11322         generated by gen-uni-tables.
11323         * modules/unictype/property-changes-when-titlecased-tests: New file.
11324         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11325         automatically generated by gen-uni-tables.
11326
11327         New module 'unictype/property-changes-when-uppercased'.
11328         * modules/unictype/property-changes-when-uppercased: New file.
11329         * lib/unictype/pr_changes_when_uppercased.c: New file.
11330         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11331         generated by gen-uni-tables.
11332         * modules/unictype/property-changes-when-uppercased-tests: New file.
11333         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11334         automatically generated by gen-uni-tables.
11335
11336         New module 'unictype/property-changes-when-lowercased'.
11337         * modules/unictype/property-changes-when-lowercased: New file.
11338         * lib/unictype/pr_changes_when_lowercased.c: New file.
11339         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11340         generated by gen-uni-tables.
11341         * modules/unictype/property-changes-when-lowercased-tests: New file.
11342         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11343         automatically generated by gen-uni-tables.
11344
11345         New module 'unictype/property-case-ignorable'.
11346         * modules/unictype/property-case-ignorable: New file.
11347         * lib/unictype/pr_case_ignorable.c: New file.
11348         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11349         by gen-uni-tables.
11350         * modules/unictype/property-case-ignorable-tests: New file.
11351         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11352         generated by gen-uni-tables.
11353
11354         New module 'unictype/property-cased'.
11355         * modules/unictype/property-cased: New file.
11356         * lib/unictype/pr_cased.c: New file.
11357         * lib/unictype/pr_cased.h: New file, automatically generated by
11358         gen-uni-tables.
11359         * modules/unictype/property-cased-tests: New file.
11360         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11361         gen-uni-tables.
11362
11363 2011-01-09  Bruno Haible  <bruno@clisp.org>
11364
11365         Update to Unicode 5.2.0.
11366         * lib/gen-uni-tables.c (output_predicate, output_category,
11367         output_combclass, output_bidi_category, output_decimal_digit_test,
11368         output_decimal_digit, output_digit_test, output_digit,
11369         output_numeric_test, output_numeric, output_mirror, output_scripts,
11370         output_scripts_byname, output_blocks, output_ident_category): Fix
11371         comment header.
11372         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11373         get_wbp.
11374         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11375         items.
11376         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11377         Changes_When_Lowercased, Changes_When_Uppercased,
11378         Changes_When_Titlecased, Changes_When_Casefolded,
11379         Changes_When_Casemapped.
11380         (is_property_alphabetic, is_property_default_ignorable_code_point):
11381         Update for Unicode 5.2.0.
11382         (is_property_cased, is_property_case_ignorable,
11383         is_property_changes_when_lowercased,
11384         is_property_changes_when_uppercased,
11385         is_property_changes_when_titlecased,
11386         is_property_changes_when_casefolded,
11387         is_property_changes_when_casemapped): New functions.
11388         (output_properties): Output also the properties cased, case_ignorable,
11389         changes_when_lowercased, changes_when_uppercased,
11390         changes_when_titlecased, changes_when_casefolded,
11391         changes_when_casemapped.
11392         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11393         Unicode TR#11 revision 17 -> 19.
11394         (LBP_CP): New enumeration value.
11395         (LBP_*): Adjust values accordingly.
11396         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11397         TR#14 revision 22 -> 24.
11398         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11399         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11400         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11401         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11402         is_WBP_MIDLETTER.
11403         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11404         the code1 and code2 of each composition rule.
11405         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11406         * lib/unicase/ignorable.h: Likewise.
11407         * lib/unicase/tocasefold.h: Likewise.
11408         * lib/unicase/tolower.h: Likewise.
11409         * lib/unicase/totitle.h: Likewise.
11410         * lib/unicase/toupper.h: Likewise.
11411         * lib/unictype/bidi_of.h: Likewise.
11412         * lib/unictype/blocks.h: Likewise.
11413         * lib/unictype/categ_C.h: Likewise.
11414         * lib/unictype/categ_Cf.h: Likewise.
11415         * lib/unictype/categ_Cn.h: Likewise.
11416         * lib/unictype/categ_L.h: Likewise.
11417         * lib/unictype/categ_Ll.h: Likewise.
11418         * lib/unictype/categ_Lm.h: Likewise.
11419         * lib/unictype/categ_Lo.h: Likewise.
11420         * lib/unictype/categ_Lu.h: Likewise.
11421         * lib/unictype/categ_M.h: Likewise.
11422         * lib/unictype/categ_Mc.h: Likewise.
11423         * lib/unictype/categ_Mn.h: Likewise.
11424         * lib/unictype/categ_N.h: Likewise.
11425         * lib/unictype/categ_Nd.h: Likewise.
11426         * lib/unictype/categ_Nl.h: Likewise.
11427         * lib/unictype/categ_No.h: Likewise.
11428         * lib/unictype/categ_P.h: Likewise.
11429         * lib/unictype/categ_Pd.h: Likewise.
11430         * lib/unictype/categ_Po.h: Likewise.
11431         * lib/unictype/categ_S.h: Likewise.
11432         * lib/unictype/categ_Sc.h: Likewise.
11433         * lib/unictype/categ_So.h: Likewise.
11434         * lib/unictype/categ_of.h: Likewise.
11435         * lib/unictype/combining.h: Likewise.
11436         * lib/unictype/ctype_alnum.h: Likewise.
11437         * lib/unictype/ctype_alpha.h: Likewise.
11438         * lib/unictype/ctype_graph.h: Likewise.
11439         * lib/unictype/ctype_lower.h: Likewise.
11440         * lib/unictype/ctype_print.h: Likewise.
11441         * lib/unictype/ctype_punct.h: Likewise.
11442         * lib/unictype/ctype_upper.h: Likewise.
11443         * lib/unictype/decdigit.h: Likewise.
11444         * lib/unictype/digit.h: Likewise.
11445         * lib/unictype/numeric.h: Likewise.
11446         * lib/unictype/pr_alphabetic.h: Likewise.
11447         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11448         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11449         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11450         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11451         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11452         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11453         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11454         * lib/unictype/pr_combining.h: Likewise.
11455         * lib/unictype/pr_composite.h: Likewise.
11456         * lib/unictype/pr_currency_symbol.h: Likewise.
11457         * lib/unictype/pr_dash.h: Likewise.
11458         * lib/unictype/pr_decimal_digit.h: Likewise.
11459         * lib/unictype/pr_deprecated.h: Likewise.
11460         * lib/unictype/pr_diacritic.h: Likewise.
11461         * lib/unictype/pr_extender.h: Likewise.
11462         * lib/unictype/pr_grapheme_base.h: Likewise.
11463         * lib/unictype/pr_grapheme_extend.h: Likewise.
11464         * lib/unictype/pr_grapheme_link.h: Likewise.
11465         * lib/unictype/pr_id_continue.h: Likewise.
11466         * lib/unictype/pr_id_start.h: Likewise.
11467         * lib/unictype/pr_ideographic.h: Likewise.
11468         * lib/unictype/pr_ignorable_control.h: Likewise.
11469         * lib/unictype/pr_logical_order_exception.h: Likewise.
11470         * lib/unictype/pr_lowercase.h: Likewise.
11471         * lib/unictype/pr_numeric.h: Likewise.
11472         * lib/unictype/pr_other_alphabetic.h: Likewise.
11473         * lib/unictype/pr_punctuation.h: Likewise.
11474         * lib/unictype/pr_sentence_terminal.h: Likewise.
11475         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11476         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11477         * lib/unictype/pr_unified_ideograph.h: Likewise.
11478         * lib/unictype/pr_uppercase.h: Likewise.
11479         * lib/unictype/pr_xid_continue.h: Likewise.
11480         * lib/unictype/pr_xid_start.h: Likewise.
11481         * lib/unictype/pr_zero_width.h: Likewise.
11482         * lib/unictype/scripts.h: Likewise.
11483         * lib/unictype/scripts_byname.gperf: Likewise.
11484         * lib/unictype/sy_java_ident.h: Likewise.
11485         * lib/unigbrk/gbrkprop.h: Likewise.
11486         * lib/unilbrk/lbrkprop1.h: Likewise.
11487         * lib/unilbrk/lbrkprop2.h: Likewise.
11488         * lib/unilbrk/lbrktables.h: Likewise.
11489         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
11490         LBP_CP. Implement rule LB30.
11491         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
11492         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
11493         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
11494         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
11495         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
11496         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
11497         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
11498         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
11499         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
11500         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
11501         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
11502         bits instead of 16 bits in the code1 and code2 of each composition
11503         rule.
11504         (uc_composition): Update for Unicode 5.2.0.
11505         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
11506         * lib/uninorm/decomposition-table2.h: Likewise.
11507         * lib/uniwbrk/wbrkprop.h: Likewise.
11508         * tests/unicase/test-cased.c: Likewise.
11509         * tests/unicase/test-ignorable.c: Likewise.
11510         * tests/unicase/test-uc_tolower.c: Likewise.
11511         * tests/unicase/test-uc_totitle.c: Likewise.
11512         * tests/unicase/test-uc_toupper.c: Likewise.
11513         * tests/unictype/test-categ_C.c: Likewise.
11514         * tests/unictype/test-categ_Cf.c: Likewise.
11515         * tests/unictype/test-categ_Cn.c: Likewise.
11516         * tests/unictype/test-categ_L.c: Likewise.
11517         * tests/unictype/test-categ_Ll.c: Likewise.
11518         * tests/unictype/test-categ_Lm.c: Likewise.
11519         * tests/unictype/test-categ_Lo.c: Likewise.
11520         * tests/unictype/test-categ_Lu.c: Likewise.
11521         * tests/unictype/test-categ_M.c: Likewise.
11522         * tests/unictype/test-categ_Mc.c: Likewise.
11523         * tests/unictype/test-categ_Mn.c: Likewise.
11524         * tests/unictype/test-categ_N.c: Likewise.
11525         * tests/unictype/test-categ_Nd.c: Likewise.
11526         * tests/unictype/test-categ_Nl.c: Likewise.
11527         * tests/unictype/test-categ_No.c: Likewise.
11528         * tests/unictype/test-categ_P.c: Likewise.
11529         * tests/unictype/test-categ_Pd.c: Likewise.
11530         * tests/unictype/test-categ_Po.c: Likewise.
11531         * tests/unictype/test-categ_S.c: Likewise.
11532         * tests/unictype/test-categ_Sc.c: Likewise.
11533         * tests/unictype/test-categ_So.c: Likewise.
11534         * tests/unictype/test-ctype_alnum.c: Likewise.
11535         * tests/unictype/test-ctype_alpha.c: Likewise.
11536         * tests/unictype/test-ctype_graph.c: Likewise.
11537         * tests/unictype/test-ctype_lower.c: Likewise.
11538         * tests/unictype/test-ctype_print.c: Likewise.
11539         * tests/unictype/test-ctype_punct.c: Likewise.
11540         * tests/unictype/test-ctype_upper.c: Likewise.
11541         * tests/unictype/test-decdigit.h: Likewise.
11542         * tests/unictype/test-digit.h: Likewise.
11543         * tests/unictype/test-numeric.h: Likewise.
11544         * tests/unictype/test-pr_alphabetic.c: Likewise.
11545         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11546         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11547         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
11548         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11549         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11551         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11552         * tests/unictype/test-pr_combining.c: Likewise.
11553         * tests/unictype/test-pr_composite.c: Likewise.
11554         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11555         * tests/unictype/test-pr_dash.c: Likewise.
11556         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11557         * tests/unictype/test-pr_deprecated.c: Likewise.
11558         * tests/unictype/test-pr_diacritic.c: Likewise.
11559         * tests/unictype/test-pr_extender.c: Likewise.
11560         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11561         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11562         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11563         * tests/unictype/test-pr_id_continue.c: Likewise.
11564         * tests/unictype/test-pr_id_start.c: Likewise.
11565         * tests/unictype/test-pr_ideographic.c: Likewise.
11566         * tests/unictype/test-pr_ignorable_control.c: Likewise.
11567         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
11568         * tests/unictype/test-pr_lowercase.c: Likewise.
11569         * tests/unictype/test-pr_numeric.c: Likewise.
11570         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11571         * tests/unictype/test-pr_punctuation.c: Likewise.
11572         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11573         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11574         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11575         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11576         * tests/unictype/test-pr_uppercase.c: Likewise.
11577         * tests/unictype/test-pr_xid_continue.c: Likewise.
11578         * tests/unictype/test-pr_xid_start.c: Likewise.
11579         * tests/unictype/test-pr_zero_width.c: Likewise.
11580         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11581         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
11582         changed behaviour: line breaking is now disallowed between a letter
11583         or '=' and '('.
11584         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11585         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11586         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
11587         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
11588         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11589         lib/uniwidth/width.c.
11590         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
11591         without comments, but with the original copyright notice.
11592         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11593         changes.
11594         * lib/unictype/categ_Cc.h: Likewise.
11595         * lib/unictype/categ_Co.h: Likewise.
11596         * lib/unictype/categ_Cs.h: Likewise.
11597         * lib/unictype/categ_Lt.h: Likewise.
11598         * lib/unictype/categ_Me.h: Likewise.
11599         * lib/unictype/categ_Pc.h: Likewise.
11600         * lib/unictype/categ_Pe.h: Likewise.
11601         * lib/unictype/categ_Pf.h: Likewise.
11602         * lib/unictype/categ_Pi.h: Likewise.
11603         * lib/unictype/categ_Ps.h: Likewise.
11604         * lib/unictype/categ_Sk.h: Likewise.
11605         * lib/unictype/categ_Sm.h: Likewise.
11606         * lib/unictype/categ_Z.h: Likewise.
11607         * lib/unictype/categ_Zl.h: Likewise.
11608         * lib/unictype/categ_Zp.h: Likewise.
11609         * lib/unictype/categ_Zs.h: Likewise.
11610         * lib/unictype/ctype_blank.h: Likewise.
11611         * lib/unictype/ctype_cntrl.h: Likewise.
11612         * lib/unictype/ctype_digit.h: Likewise.
11613         * lib/unictype/ctype_space.h: Likewise.
11614         * lib/unictype/ctype_xdigit.h: Likewise.
11615         * lib/unictype/mirror.h: Likewise.
11616         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11617         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11618         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11619         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11620         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11621         * lib/unictype/pr_bidi_control.h: Likewise.
11622         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11623         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11624         * lib/unictype/pr_bidi_pdf.h: Likewise.
11625         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11626         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11627         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11628         * lib/unictype/pr_format_control.h: Likewise.
11629         * lib/unictype/pr_hex_digit.h: Likewise.
11630         * lib/unictype/pr_hyphen.h: Likewise.
11631         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11632         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11633         * lib/unictype/pr_iso_control.h: Likewise.
11634         * lib/unictype/pr_join_control.h: Likewise.
11635         * lib/unictype/pr_left_of_pair.h: Likewise.
11636         * lib/unictype/pr_line_separator.h: Likewise.
11637         * lib/unictype/pr_math.h: Likewise.
11638         * lib/unictype/pr_non_break.h: Likewise.
11639         * lib/unictype/pr_not_a_character.h: Likewise.
11640         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11641         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11642         * lib/unictype/pr_other_id_continue.h: Likewise.
11643         * lib/unictype/pr_other_id_start.h: Likewise.
11644         * lib/unictype/pr_other_lowercase.h: Likewise.
11645         * lib/unictype/pr_other_math.h: Likewise.
11646         * lib/unictype/pr_other_uppercase.h: Likewise.
11647         * lib/unictype/pr_paired_punctuation.h: Likewise.
11648         * lib/unictype/pr_paragraph_separator.h: Likewise.
11649         * lib/unictype/pr_pattern_syntax.h: Likewise.
11650         * lib/unictype/pr_pattern_white_space.h: Likewise.
11651         * lib/unictype/pr_private_use.h: Likewise.
11652         * lib/unictype/pr_quotation_mark.h: Likewise.
11653         * lib/unictype/pr_radical.h: Likewise.
11654         * lib/unictype/pr_soft_dotted.h: Likewise.
11655         * lib/unictype/pr_space.h: Likewise.
11656         * lib/unictype/pr_titlecase.h: Likewise.
11657         * lib/unictype/pr_variation_selector.h: Likewise.
11658         * lib/unictype/pr_white_space.h: Likewise.
11659         * lib/unictype/sy_c_ident.h: Likewise.
11660         * lib/unictype/sy_c_whitespace.h: Likewise.
11661         * lib/unictype/sy_java_whitespace.h: Likewise.
11662         * modules/uni*/*: Bump version number of expected libunistring version.
11663         Reported by Simon Josefsson.
11664
11665 2011-01-09  Karl Heuer  <kwzh@gnu.org>
11666
11667         useless-if-before-free: fix typo in --help and make the internal,
11668         automatic version date update process work once again.
11669         --help output contained a NUL character instead of the
11670         backslash-zero that was intended.  Also, the "must lie within
11671         the first 8 lines" line is on line 9, and hence not getting
11672         automatically updated.
11673         * build-aux/useless-if-before-free: Fix the former by adding a
11674         backslash, and the latter by condensing the three lines of what-it-does
11675         to a single line, leaving one line of slack for the future.
11676
11677 2011-01-09  Bruno Haible  <bruno@clisp.org>
11678
11679         uniwidth/width: Fix width of U+1D173..U+1D17A.
11680         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
11681         symbolic_width, output_width_property_test): New functions.
11682         (main): Invoke output_nonspacing_property, output_width_property_test.
11683         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
11684         U+1D173..U+1D17A.
11685         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
11686         1.
11687         * modules/uniwidth/*: Bump version number of expected libunistring
11688         version.
11689         * modules/unilbrk/*: Likewise.
11690
11691 2011-01-08  Bruno Haible  <bruno@clisp.org>
11692
11693         uninorm tests: Preserve copyright of Unicode data file.
11694         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
11695         Mention modifications.
11696
11697 2011-01-08  Bruno Haible  <bruno@clisp.org>
11698
11699         gen-uni-tables: Prepare for Unicode 5.2.0.
11700         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
11701         (debug_output_lbp, output_lbp): Update.
11702
11703 2011-01-08  Bruno Haible  <bruno@clisp.org>
11704
11705         unilbrk: Clarify gen-uni-tables.c code.
11706         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
11707         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
11708         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
11709
11710 2011-01-07  Bruno Haible  <bruno@clisp.org>
11711
11712         strtod: Restore errno when successfully parsing Infinity or NaN.
11713         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
11714         restore the original errno.
11715
11716 2011-01-07  Bruno Haible  <bruno@clisp.org>
11717
11718         remove test: Avoid failure on HP-UX 11.
11719         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
11720
11721 2011-01-07  Bruno Haible  <bruno@clisp.org>
11722
11723         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
11724         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
11725         error code.
11726
11727 2011-01-07  PĂ¡draig Brady <P@draigBrady.com>
11728
11729         ignore-value: fixup comments, and add Eric Blake
11730         as an author since he rewrote the macros.
11731         * lib/ignore-value.h (ignore_value):  State that
11732         we now support aggregates.  Also specify exactly
11733         when the GCC warn_unused_result feature was added.
11734
11735 2011-01-06  Eric Blake  <eblake@redhat.com>
11736
11737         ignore-value: support aggregate types
11738         * lib/ignore-value.h (ignore_value): Provide separate gcc
11739         definition.
11740         * modules/ignore-value-tests: New test module.
11741         * tests/test-ignore-value.c: New test.
11742
11743         maint.mk: improve sc_prohibit_strcmp regex
11744         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
11745         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
11746         definition of STRNEQ.
11747
11748         signal: work around Haiku issue with SIGBUS
11749         * lib/siglist.h: Add comment.
11750         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
11751         strsignal's favoring of SIGSEGV.
11752         * tests/test-signal.c (main): Avoid test failure.
11753         * doc/posix-headers/signal.texi (signal.h): Document the issue.
11754         Reported by Scott McCreary.
11755
11756         maint.mk: add pre-release check to ensure submodule commits are public
11757         * top/maint.mk (public-submodule-commit): New rule.
11758         (submodule-checks): New variable.
11759         (alpha beta stable): Depend on the variable.
11760
11761 2011-01-05  PĂ¡draig Brady <P@draigBrady.com>
11762         and Jim Meyering  <meyering@redhat.com>
11763
11764         ignore-value: make ignore_value more generic; deprecate ignore_ptr
11765         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
11766         (ATTRIBUTE_DEPRECATED): Define.
11767         (_ignore_case): New function.
11768         (ignore_value): New macro, to replace the old function.
11769         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
11770         * modules/ignore-value (Depends-on): Add stdint.
11771
11772 2011-01-04  Eric Blake  <eblake@redhat.com>
11773
11774         doc: regenerate INSTALL
11775         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
11776         @firstparagraphindent support, now that autoconf dropped it.
11777         (INSTALL_PRELUDE): Reinstate old macro.
11778         * doc/install.texi: Resync from autoconf.
11779         * doc/INSTALL: Reflect recent autoconf update.
11780         * doc/INSTALL.ISO: Likewise.
11781         * doc/INSTALL.UTF-8: Likewise.
11782         Reported by Karl Berry.
11783
11784 2011-01-04  Bruce Korb  <address@hidden>
11785
11786         git-version-gen: avoid a sub-shell
11787         * build-aux/git-version-gen: Redirect stderr in `...` via
11788         "exec 2>...", rather than via an added sub-shell.
11789
11790 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
11791
11792         git-version-gen: use (...) rather than sh -c '...'
11793         * build-aux/git-version-gen: Rather than hard-coding a shell's name
11794         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
11795
11796 2011-01-03  Jim Meyering  <meyering@redhat.com>
11797
11798         git-version-gen: convert leading TABs to spaces
11799         * build-aux/git-version-gen: Expand leading TABs.
11800
11801         git-version-gen: handle failed "git rev-list"
11802         * build-aux/git-version-gen: Rather than leaking a "fatal" error
11803         from git and proceeding as if it had succeeded but printed no SHA1
11804         checksums, suppress the diagnostic and handle the failure.
11805         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
11806
11807         git-version-gen: include command name in one more diagnostic
11808         * build-aux/git-version-gen: When the required .tarball-version file
11809         was missing or unreadable, you might see the diagnostic from "cat",
11810         but no trace of the name of the invoking script.  Now, you still see
11811         the diagnostic from cat, but also get one from "git-version-gen: ".
11812         Inspired by a patch from Bruce Korb.
11813
11814         update-copyright: adjust test to match changed code
11815         * tests/test-update-copyright.sh: Change test's expected output
11816         to match new actual output.
11817
11818 2011-01-02  Bruno Haible  <bruno@clisp.org>
11819
11820         getlogin_r: Avoid test failure on HP-UX 11.
11821         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
11822         ERANGE when the second argument is zero.
11823         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
11824         portability problem.
11825
11826 2011-01-02  Bruce Korb  <bkorb@gnu.org>
11827
11828         * build-aux/update-copyright: doc Simon's changes
11829
11830 2011-01-02  Simon Josefsson  <simon@josefsson.org>
11831
11832         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
11833         environment variable.
11834
11835 2011-01-02  Bruno Haible  <bruno@clisp.org>
11836
11837         unigbrk: Avoid gcc warnings.
11838         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
11839         unused variable.
11840         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
11841         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
11842         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
11843         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
11844         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
11845         Change type of first argument to 'const char *'.
11846         (main): Remove unused variable.
11847         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
11848         type of first argument to 'const char *'.
11849         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
11850         Likewise.
11851         (main): Change type of variable 's'.
11852         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
11853         to 'int'.
11854
11855 2011-01-02  Bruno Haible  <bruno@clisp.org>
11856
11857         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
11858         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
11859         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
11860         bug.
11861         * lib/pwrite.c: Undo 2010-12-31 patch.
11862         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
11863
11864 2011-01-02  Bruno Haible  <bruno@clisp.org>
11865
11866         pread: Fix test whether it works.
11867         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
11868
11869 2011-01-02  Bruno Haible  <bruno@clisp.org>
11870
11871         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
11872         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
11873         ends in "6". Don't require a specific month name. Try also the locale
11874         names found on HP-UX 11 and Solaris 7.
11875
11876 2011-01-02  Bruno Haible  <bruno@clisp.org>
11877
11878         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
11879         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
11880         C linkage.
11881         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
11882
11883 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11884
11885         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11886         for consistency, since the "cluster" term is not used elsewhere.
11887         * lib/unigbrk.in.h: Update name.
11888         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
11889         * lib/unigbrk/u16-grapheme-next.c: Update name.
11890         * lib/unigbrk/u16-grapheme-prev.c: Update name.
11891         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
11892         * lib/unigbrk/u32-grapheme-next.c: Update name.
11893         * lib/unigbrk/u32-grapheme-prev.c: Update name.
11894         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
11895         * lib/unigbrk/u8-grapheme-next.c: Update name.
11896         * lib/unigbrk/u8-grapheme-prev.c: Update name.
11897         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
11898         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
11899         Suggested by Bruno Haible.
11900
11901 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11902
11903         Remove module 'u8-grapheme-len' as too redundant with
11904         'u8-grapheme-next'.
11905         * modules/unigbrk/u8-grapheme-len: Delete file.
11906         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
11907         * lib/unigbrk.in.h: Remove prototype for deleted function.
11908         * lib/unigbrk/u8-grapheme-len.c: Delete file.
11909         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
11910
11911         Remove module 'u16-grapheme-len' as too redundant with
11912         'u16-grapheme-next'.
11913         * modules/unigbrk/u16-grapheme-len: Delete file.
11914         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
11915         * lib/unigbrk.in.h: Remove prototype for deleted function.
11916         * lib/unigbrk/u16-grapheme-len.c: Delete file.
11917         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
11918
11919         Remove module 'u32-grapheme-len' as too redundant with
11920         'u32-grapheme-next'.
11921         * modules/unigbrk/u32-grapheme-len: Delete file.
11922         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
11923         * lib/unigbrk.in.h: Remove prototype for deleted function.
11924         * lib/unigbrk/u32-grapheme-len.c: Delete file.
11925         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
11926
11927         Suggested by Bruno Haible.
11928
11929 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
11930
11931         * unigbrk.in.h: Fix typo: "ben" => "been".
11932         Reported by Bruno Haible.
11933
11934 2011-01-01  Jim Meyering  <meyering@redhat.com>
11935
11936         maint: update almost all copyright ranges to include 2011
11937         Run the new "make update-copyright" rule.
11938
11939 2011-01-01  Jim Meyering  <meyering@redhat.com>
11940
11941         maint: update-copyright: exempt doc/INSTALL*
11942         * Makefile (update-copyright): Also exclude doc/INSTALL*,
11943         since they are generated.  Suggested by Bruno Haible.
11944
11945 2011-01-01  Jim Meyering  <meyering@redhat.com>
11946
11947         maint: refine the update-copyright rule
11948         * Makefile (update-copyright): Also exclude any file that includes
11949         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
11950         code that merely generates the comment.
11951
11952 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
11953
11954         New module 'u8-grapheme-len'.
11955         * modules/unigbrk/u8-grapheme-len: New file.
11956         * modules/unigbrk/u8-grapheme-len-tests: New file.
11957         * lib/unigbrk.in.h: Add prototype for new function.
11958         * lib/unigbrk/u8-grapheme-len.c: New file.
11959         * tests/unigbrk/test-u8-grapheme-len.c: New file.
11960
11961         New module 'u16-grapheme-len'.
11962         * modules/unigbrk/u16-grapheme-len: New file.
11963         * modules/unigbrk/u16-grapheme-len-tests: New file.
11964         * lib/unigbrk.in.h: Add prototype for new function.
11965         * lib/unigbrk/u16-grapheme-len.c: New file.
11966         * tests/unigbrk/test-u16-grapheme-len.c: New file.
11967
11968         New module 'u32-grapheme-len'.
11969         * modules/unigbrk/u32-grapheme-len: New file.
11970         * modules/unigbrk/u32-grapheme-len-tests: New file.
11971         * lib/unigbrk.in.h: Add prototype for new function.
11972         * lib/unigbrk/u32-grapheme-len.c: New file.
11973         * tests/unigbrk/test-u32-grapheme-len.c: New file.
11974
11975         New module 'u8-grapheme-next'.
11976         * modules/unigbrk/u8-grapheme-next: New file.
11977         * modules/unigbrk/u8-grapheme-next-tests: New file.
11978         * lib/unigbrk.in.h: Add prototype for new function.
11979         * lib/unigbrk/u8-grapheme-next.c: New file.
11980         * tests/unigbrk/test-u8-grapheme-next.c: New file.
11981
11982         New module 'u16-grapheme-next'.
11983         * modules/unigbrk/u16-grapheme-next: New file.
11984         * modules/unigbrk/u16-grapheme-next-tests: New file.
11985         * lib/unigbrk.in.h: Add prototype for new function.
11986         * lib/unigbrk/u16-grapheme-next.c: New file.
11987         * tests/unigbrk/test-u16-grapheme-next.c: New file.
11988
11989         New module 'u32-grapheme-next'.
11990         * modules/unigbrk/u32-grapheme-next: New file.
11991         * modules/unigbrk/u32-grapheme-next-tests: New file.
11992         * lib/unigbrk.in.h: Add prototype for new function.
11993         * lib/unigbrk/u32-grapheme-next.c: New file.
11994         * tests/unigbrk/test-u32-grapheme-next.c: New file.
11995
11996         New module 'u8-grapheme-prev'.
11997         * modules/unigbrk/u8-grapheme-prev: New file.
11998         * modules/unigbrk/u8-grapheme-prev-tests: New file.
11999         * lib/unigbrk.in.h: Add prototype for new function.
12000         * lib/unigbrk/u8-grapheme-prev.c: New file.
12001         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12002
12003         New module 'u16-grapheme-prev'.
12004         * modules/unigbrk/u16-grapheme-prev: New file.
12005         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12006         * lib/unigbrk.in.h: Add prototype for new function.
12007         * lib/unigbrk/u16-grapheme-prev.c: New file.
12008         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12009
12010         New module 'u32-grapheme-prev'.
12011         * modules/unigbrk/u32-grapheme-prev: New file.
12012         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12013         * lib/unigbrk.in.h: Add prototype for new function.
12014         * lib/unigbrk/u32-grapheme-prev.c: New file.
12015         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12016
12017         New module 'u8-grapheme-breaks'.
12018         * modules/unigbrk/u8-grapheme-breaks: New file.
12019         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12020         * lib/unigbrk.in.h: Add prototype for new function.
12021         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12022         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12023
12024         New module 'u16-grapheme-breaks'.
12025         * modules/unigbrk/u16-grapheme-breaks: New file.
12026         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12027         * lib/unigbrk.in.h: Add prototype for new function.
12028         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12029         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12030
12031         New module 'u32-grapheme-breaks'.
12032         * modules/unigbrk/u32-grapheme-breaks: New file.
12033         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12034         * lib/unigbrk.in.h: Add prototype for new function.
12035         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12036         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12037
12038         New module 'ulc-grapheme-breaks'.
12039         * modules/unigbrk/ulc-grapheme-breaks: New file.
12040         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12041         * m4/locale-ar.m4: New file.
12042         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12043         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12044         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12045
12046 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12047
12048         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12049         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12050         modified how this file was generated before I initially submitted
12051         the module, but failed to regenerate it.  This meant that several
12052         of the level2 entries were wrong.
12053         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12054         Remove the division-by-2 that is folded into the table now that
12055         gbrkprop.h has been regenerated properly.  Now -1 entries are
12056         handled correctly.
12057
12058         New module 'unigbrk/uc-gbrk-prop-tests'.
12059         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12060         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12061         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12062         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12063
12064 2011-01-01  Bruno Haible  <bruno@clisp.org>
12065
12066         Avoid use of hexadecimal escapes.
12067         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12068         instead of hexadecimal escapes.
12069
12070 2011-01-01  Jim Meyering  <meyering@redhat.com>
12071
12072         maint: new rule to update copyright year ranges
12073         * Makefile (update-copyright): New rule.
12074
12075         maint: indent with TABs in Makefile
12076         * Makefile: Expand leading sequences of spaces to TABs
12077
12078         version-etc: update the copyright year it reports
12079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12080
12081 2010-12-31  Bruno Haible  <bruno@clisp.org>
12082
12083         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12084         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12085         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12086         zero.
12087
12088 2010-12-31  Bruno Haible  <bruno@clisp.org>
12089
12090         pwrite: Work around HP-UX 11.11 bug.
12091         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12092         works and set REPLACE_PWRITE if not.
12093         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12094         function.
12095         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12096
12097 2010-12-31  Bruno Haible  <bruno@clisp.org>
12098
12099         pread: Work around HP-UX 11 bugs.
12100         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12101         and set REPLACE_PREAD if not.
12102         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12103
12104 2010-12-31  Eric Blake  <eblake@redhat.com>
12105
12106         nl_langinfo: fix YESEXPR on Irix 6.5
12107         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12108         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12109         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12110         it.
12111
12112 2010-12-31  Bruno Haible  <bruno@clisp.org>
12113
12114         iconv: Document HP-UX 11 bug.
12115         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12116
12117 2010-12-31  Bruno Haible  <bruno@clisp.org>
12118
12119         ldexpl: Fix link error on HP-UX 11.
12120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12121         LDEXPL_LIBM, using $ISNANL_LIBM.
12122
12123 2010-12-31  Eric Blake  <eblake@redhat.com>
12124
12125         ftello: avoid compilation failure with SunStudio c89
12126         * lib/ftello.c (ftello): Use lseek, not llseek.
12127
12128         tests: avoid failing coreutils tests on cygwin
12129         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12130         (create_exe_shims_): Return 0 when skipping.
12131
12132 2010-12-31  Bruno Haible  <bruno@clisp.org>
12133
12134         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12135         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12136
12137 2010-12-31  Bruno Haible  <bruno@clisp.org>
12138
12139         waitpid: Fix link error in C++ mode.
12140         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12141
12142 2010-12-31  Bruno Haible  <bruno@clisp.org>
12143
12144         isnan: Use GCC built-ins when possible.
12145         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12146         __builtin_isnan.
12147         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12148         (isnan): Define using GCC built-ins for GCC >= 4.0.
12149
12150 2010-12-31  Bruno Haible  <bruno@clisp.org>
12151
12152         isnand: Fix mistake.
12153         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12154         __builtin_isnand.
12155
12156 2010-12-31  Bruno Haible  <bruno@clisp.org>
12157
12158         open: Avoid C++ error on HP-UX 11.
12159         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12160
12161 2010-12-31  Bruno Haible  <bruno@clisp.org>
12162
12163         time_r: Add missing declarations on HP-UX 11.
12164         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12165         instead of HAVE_LOCALTIME_R.
12166         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12167         HAVE_LOCALTIME_R always.
12168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12169         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12170         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12171         HAVE_LOCALTIME_R.
12172         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12173         * doc/posix-functions/localtime_r.texi: Likewise.
12174
12175 2010-12-29  Eric Blake  <eblake@redhat.com>
12176
12177         mountlist: tweak previous commit
12178         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12179         Reported by Paul Eggert.
12180
12181         mountlist: fix local drive detection on cygwin
12182         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12183         that works for cygwin.
12184
12185 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12186
12187         ftoastr, snprintf: ftoastr + snprintf module
12188         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12189         since the snprintf module now should be good enough here.
12190         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12191         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12192         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12193         GNULIB_SNPRINTF only for the test directory, and the latter
12194         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12195         seems to suffice by itself.
12196
12197 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12198
12199         alloca: one step towards thread-safety
12200         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12201         need for a static variable.  All callers changed.  This does not
12202         make the alloca replacement thread-safe, but it's one step.
12203
12204         tests: minor indenting change
12205         * tests/init.sh: Sync from coreutils housekeeping patch
12206         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12207         to keep lines within 80 columns.
12208
12209 2010-12-28  Jim Meyering  <meyering@redhat.com>
12210
12211         regex: don't infloop on persistent failing calloc
12212         * lib/regexec.c (build_trtable): Return failure indication upon
12213         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12214         In glibc, this was fixed for version 2.13:
12215         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12216
12217 2010-12-28  Bruno Haible  <bruno@clisp.org>
12218             Paul Eggert <eggert@cs.ucla.edu>
12219
12220         linkat: Make implementation robust against system behaviour variations.
12221         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12222         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12223         way, and to -2 if it needs a generic runtime test.
12224         * lib/linkat.c (solaris_optimized_link_immediate,
12225         solaris_optimized_link_follow): New functions.
12226         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12227         (check_same_link): Use it.
12228
12229 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12230
12231         New module 'unigbrk/base'.
12232         * modules/unigbrk/base: New file.
12233         * lib/unigbrk.in.h: New file.
12234
12235         New module 'unigbrk/uc-gbrk-prop'.
12236         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12237         * modules/unigbrk/uc-gbrk-prop: New file.
12238         * lib/unigbrk/gbrkprop.h: New file.
12239         * lib/unigbrk/uc-gbrk-prop.c: New file.
12240
12241         New module 'unigbrk/uc-is-grapheme-break'.
12242         * modules/unigbrk/uc-is-grapheme-break: New file.
12243         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12244         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12245         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12246         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12247         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12248
12249         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12250
12251 2010-12-27  Bruno Haible  <bruno@clisp.org>
12252
12253         linkat test: Avoid failure on Solaris 11 2010-11.
12254         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12255
12256 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12257
12258         utimens: work around glibc rounding bug on more platforms
12259         * lib/utimens.c (fdutimens): Work around rounding bug even if
12260         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12262
12263 2010-12-27  Bruno Haible  <bruno@clisp.org>
12264
12265         select tests: Improve comments.
12266         * tests/test-select.c (do_select): Add comments.
12267
12268 2010-12-27  Bruno Haible  <bruno@clisp.org>
12269
12270         select tests: Safer way of handling timeout.
12271         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12272         at every invocation.
12273
12274 2010-12-27  Bruno Haible  <bruno@clisp.org>
12275
12276         select tests: Use 'bool' where appropriate.
12277         * tests/test-select.c (connect_to_socket): Change argument type to
12278         'bool'.
12279
12280 2010-12-27  Bruno Haible  <bruno@clisp.org>
12281
12282         select tests: Use existing modules.
12283         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12284         (configure.ac): Don't test for unistd.h.
12285         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12286         declared in <unistd.h>.
12287
12288 2010-12-27  Bruno Haible  <bruno@clisp.org>
12289
12290         mbrtowc: Work around a Solaris 7 bug.
12291         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12292         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12293         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12294         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12295         MBRTOWC_NULL_ARG1_BUG.
12296         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12297         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12298         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12299         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12300
12301 2010-12-27  Jim Meyering  <meyering@redhat.com>
12302
12303         read-file.c: tweak syntax
12304         * lib/read-file.c (fread_file): Remove space after "*" in function
12305         definitions.
12306
12307 2010-12-27  Bruno Haible  <bruno@clisp.org>
12308
12309         times test: Avoid gcc warnings on OSF/1.
12310         * tests/test-times.c (main): Cast printf arguments from clock_t to
12311         'long int'.
12312
12313 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12314
12315         utimens: work around glibc rounding bug on older Linux kernels
12316         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12317         on Linux with a glibc whose utimes might not work, then work
12318         around a longstanding glibc bug involving rounding rather than
12319         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12321
12322 2010-12-26  Bruno Haible  <bruno@clisp.org>
12323
12324         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12325         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12326         _GL_CXXALIAS_SYS.
12327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12328
12329 2010-12-26  Bruno Haible  <bruno@clisp.org>
12330
12331         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12332         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12334         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12335         looking for the declaration.
12336         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12337         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12338         problem.
12339         * doc/posix-functions/inet_pton.texi: Likewise.
12340
12341 2010-12-26  Bruno Haible  <bruno@clisp.org>
12342
12343         arpa_inet: Use the common idioms with C++ support.
12344         * lib/arpa_inet.in.h: Include c++defs.h.
12345         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12346         support.
12347         * modules/arpa_inet (Depends-on): Add c++defs.
12348         (Makefile.am): Substitute the contents of c++defs.h.
12349         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12350         * modules/arpa_inet-c++-tests: New file.
12351         * tests/test-arpa_inet-c++.cc: New file.
12352
12353 2010-12-25  Bruno Haible  <bruno@clisp.org>
12354
12355         Fix more C++ link errors on Solaris 8.
12356         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12357         $(LIB_EACCESS).
12358         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12359         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12360         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12361         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12362         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12363
12364 2010-12-25  Bruno Haible  <bruno@clisp.org>
12365
12366         printf-posix: Fix link error when a non-GCC compiler is used.
12367         * lib/stdio.in.h (printf): When not using GCC, override printf
12368         correctly.
12369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12370
12371 2010-12-25  Bruno Haible  <bruno@clisp.org>
12372
12373         strerror_r-posix: Update doc.
12374         * doc/posix-functions/strerror_r.texi: Update doc about the return
12375         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12376
12377 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12378
12379         utimens: simplify the logic of the previous change
12380         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12381         This should not affect whether the test succeeds or fails.
12382
12383         utimens: configure better on hosts with NFS clock skew
12384         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12385         uses the clock of the local host.  It might use the clock of the
12386         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12388
12389 2010-12-25  Bruno Haible  <bruno@clisp.org>
12390
12391         ptsname test: Avoid failure on Solaris.
12392         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12393         open a pseudo-terminal; don't use BSD-style ptys.
12394         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12395
12396 2010-12-25  Bruno Haible  <bruno@clisp.org>
12397
12398         ptsname: Avoid ERANGE failure on some systems.
12399         * lib/ptsname.c (buffer): Increase size.
12400
12401 2010-12-25  Bruno Haible  <bruno@clisp.org>
12402
12403         rename, renameat: Avoid test failures at NFS mounted locations.
12404         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12405         so that subsequent mkdir calls succeed.
12406
12407 2010-12-25  Bruno Haible  <bruno@clisp.org>
12408
12409         iswblank: Fix C++ link error on Solaris 8.
12410         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12411         _GL_FUNCDECL_SYS.
12412
12413 2010-12-25  Bruno Haible  <bruno@clisp.org>
12414
12415         unistd: Fix C++ link error on Solaris 8.
12416         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12417
12418 2010-12-25  Bruno Haible  <bruno@clisp.org>
12419
12420         readlink doc: Mention an old glibc bug.
12421         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12422
12423 2010-12-25  Bruno Haible  <bruno@clisp.org>
12424
12425         fcntl-h: Fix for use of C++ on glibc systems.
12426         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12427         also on glibc systems in C++ mode.
12428         Reported by Gary V. Vaughan <gary@gnu.org>.
12429
12430 2010-12-25  Bruno Haible  <bruno@clisp.org>
12431
12432         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12433         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12434
12435 2010-12-25  Bruno Haible  <bruno@clisp.org>
12436
12437         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12438         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12439         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12440         test whether truncl works according to ISO C 99 with IEC 60559.
12441         * m4/truncl-ieee.m4: New file.
12442         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12443         m4/signbit.m4.
12444         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12445
12446 2010-12-25  Bruno Haible  <bruno@clisp.org>
12447
12448         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12449         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12450         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12451         test whether ceill works according to ISO C 99 with IEC 60559.
12452         * m4/ceill-ieee.m4: New file.
12453         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12454         m4/signbit.m4.
12455         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12456
12457 2010-12-25  Bruno Haible  <bruno@clisp.org>
12458
12459         Ensure all prerequisites of <wchar.h> are included.
12460         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12461         before <wchar.h>.
12462         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12463         gl_MBRLEN_NUL_RETVAL): Likewise.
12464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12466         AC_FUNC_MBRTOWC): Likewise.
12467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12468         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
12469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12470         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12471         Likewise.
12472         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12473         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
12474         (gl_WCHAR_H): Improve comments.
12475         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12476
12477 2010-12-25  Bruno Haible  <bruno@clisp.org>
12478
12479         strtok_r: Fix C syntax error in autoconf macro.
12480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
12481         characters in test program.
12482
12483 2010-12-24  Bruno Haible  <bruno@clisp.org>
12484
12485         ceil, trunc, round: Fix gcc warnings.
12486         * lib/ceil.c (MIN): Undefine before redefining.
12487         * lib/trunc.c (MIN): Likewise.
12488         * lib/round.c (MIN): Likewise.
12489         Include <math.h> first.
12490
12491 2010-12-24  Bruno Haible  <bruno@clisp.org>
12492
12493         select tests: Avoid failures on OSF/1 5.1.
12494         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
12495         failure of closing the last socket; it may fail with ECONNRESET.
12496
12497 2010-12-24  Eric Blake  <eblake@redhat.com>
12498
12499         stdint: avoid HP-UX 10.20 preprocessor bug
12500         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
12501         than #if.
12502         * tests/test-floor2.c (main): Likewise.
12503         Reported by Peter O'Gorman.
12504
12505         pipe: make obsoletion transition easier
12506         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
12507         * modules/pipe (Files): Include revived file.
12508         (Include): Drop reference, to mirror getdate's behavior.
12509
12510 2010-12-24  Bruno Haible  <bruno@clisp.org>
12511
12512         sys_socket: Hide mismatch of declarations on NonStop Kernel.
12513         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
12514         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
12515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12516
12517 2010-12-24  Bruno Haible  <bruno@clisp.org>
12518
12519         gethostname: Ensure declaration on NonStop Kernel.
12520         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
12521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12522
12523 2010-12-24  Bruno Haible  <bruno@clisp.org>
12524
12525         sys_select: Ensure all necessary types on NonStop Kernel.
12526         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
12527         include <sys/time.h>.
12528         * doc/posix-headers/sys_select.texi: Mention that it's missing on
12529         NonStop Kernel.
12530         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12531
12532 2010-12-24  Bruno Haible  <bruno@clisp.org>
12533
12534         sys_select: Remove unneeded include.
12535         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
12536         have <sys/select.h>.
12537
12538 2010-12-24  Bruno Haible  <bruno@clisp.org>
12539
12540         gethostname: Provide a fallback for HOST_NAME_MAX.
12541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
12542         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
12543         instead.
12544         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12545
12546 2010-12-24  Bruno Haible  <bruno@clisp.org>
12547
12548         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
12549         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
12550         (SA_RESTART): Likewise.
12551         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12552
12553 2010-12-24  Bruno Haible  <bruno@clisp.org>
12554
12555         signal: Define NSIG.
12556         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
12557         * tests/test-signal.c (nsig): New variable.
12558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12559
12560 2010-12-24  Bruno Haible  <bruno@clisp.org>
12561
12562         rename, renameat: Avoid test failures on OSF/1 5.1.
12563         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
12564         alternative error codes.
12565         * tests/test-renameat.c (main): Likewise.
12566
12567 2010-12-24  Bruno Haible  <bruno@clisp.org>
12568
12569         *printf: Detect large precisions bug on Solaris 10/SPARC.
12570         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
12571         by Paul Eggert.
12572         * tests/test-snprintf-posix.h (test_function): Add this test code here
12573         too.
12574         * tests/test-sprintf-posix.h (test_function): Likewise.
12575         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12576         * tests/test-vasprintf-posix.c (test_function): Likewise.
12577         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
12578         around by gnulib.
12579         * doc/posix-functions/printf.texi: Likewise.
12580         * doc/posix-functions/snprintf.texi: Likewise.
12581         * doc/posix-functions/sprintf.texi: Likewise.
12582         * doc/posix-functions/vfprintf.texi: Likewise.
12583         * doc/posix-functions/vprintf.texi: Likewise.
12584         * doc/posix-functions/vsnprintf.texi: Likewise.
12585         * doc/posix-functions/vsprintf.texi: Likewise.
12586         * doc/posix-functions/dprintf.texi: Undo last commit.
12587         * doc/posix-functions/vdprintf.texi: Likewise.
12588
12589 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12590
12591         tests: port test-fdutimensat.c to Solaris 8
12592         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
12593         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
12594         On Solaris 8, it fails with errno == ENOSYS, because there is no
12595         futimens (so it can't use the fd), and there is no lutimens (so it
12596         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
12597
12598         vsnprintf: make more consistent with snprintf; doc fixes
12599
12600         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
12601         the byte count return problem was promoted from the snprintf-posix
12602         to the snprintf module.
12603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12604         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
12605         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
12606         * tests/test-snprintf.c (main): Check the byte count returned.
12607         * tests/test-vsnprintf.c (main): Likewise.
12608
12609 2010-12-23  Eric Blake  <eblake@redhat.com>
12610
12611         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
12612         * modules/sigpipe (License): Relax license.
12613
12614 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12615
12616         doc: document Solaris printf bug with large float precisions
12617         * doc/posix-functions/dprintf.texi (dprintf):
12618         * doc/posix-functions/fprintf.texi (fprintf):
12619         * doc/posix-functions/printf.texi (printf):
12620         * doc/posix-functions/snprintf.texi (snprintf):
12621         * doc/posix-functions/sprintf.texi (sprintf):
12622         * doc/posix-functions/vdprintf.texi (vdprintf):
12623         * doc/posix-functions/vfprintf.texi (vfprintf):
12624         * doc/posix-functions/vprintf.texi (vprintf):
12625         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12626         * doc/posix-functions/vsprintf.texi (vsprintf):
12627         Mention that these functions mishandle large floating point
12628         precisions on Solaris 10.  The same bug is also present in Solaris
12629         8, and I assume earlier.  This causes "cd gnulib-tests; make
12630         check" to fail on Solaris 8 (and I assume, later) when building
12631         the latest coreutils, in test-vasprintf-posix's call to
12632         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
12633         the wide flavors (e.g., wprintf) so this patch just updates the
12634         documentation for the narrow ones.
12635
12636         test-posixtm.c: add two tests
12637         * tests/test-posixtm.c: Add two tests, to highlight the
12638         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
12639         around this bug; this is merely to document it.
12640
12641 2010-12-22  Bruno Haible  <bruno@clisp.org>
12642
12643         getlogin_r: Work around portability problem on OSF/1.
12644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
12645         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
12646         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
12647         test for a truncated result.
12648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
12649         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
12650         * modules/getlogin_r (Depends-on): Add memchr.
12651         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
12652
12653 2010-12-22  Bruno Haible  <bruno@clisp.org>
12654
12655         ptsname: Avoid test failure on OSF/1 5.1.
12656         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
12657         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
12658         (same_slave): New function.
12659         (main): Use it to compare ptsname's result with the expected file name.
12660
12661 2010-12-22  Bruno Haible  <bruno@clisp.org>
12662
12663         Port extended stdio modules to HP NonStop Kernel.
12664         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
12665         macros.
12666         * lib/fbufmode.c: Update comments.
12667         * lib/fflush.c: Likewise.
12668         * lib/fpurge.c: Likewise.
12669         * lib/freadable.c: Likewise.
12670         * lib/freadahead.c: Likewise.
12671         * lib/freading.c: Likewise.
12672         * lib/freadptr.c: Likewise.
12673         * lib/freadseek.c: Likewise.
12674         * lib/fseeko.c: Likewise.
12675         * lib/fseterr.c: Likewise.
12676         * lib/fwritable.c: Likewise.
12677         * lib/fwriting.c: Likewise.
12678         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12679
12680 2010-12-22  Bruno Haible  <bruno@clisp.org>
12681
12682         ttyname_r: Work around bug on OSF/1 5.1.
12683         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
12684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
12685         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
12686         present.
12687         * lib/ttyname_r.c (ttyname_r): Update comments.
12688
12689 2010-12-22  Bruno Haible  <bruno@clisp.org>
12690
12691         round: Implement result sign according to IEEE 754.
12692         * lib/round.c (MIN, MINUS_ZERO): New macros.
12693         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
12694         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
12695         * tests/test-round-ieee.c (main): Likewise.
12696         * tests/test-roundl-ieee.c (main): Likewise.
12697
12698         trunc: Implement result sign according to IEEE 754.
12699         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
12700         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
12701         * tests/test-trunc2.c: Include minus-zero.h.
12702         (MINUS_ZERO): New macro.
12703         (trunc_reference): Keep in sync with lib/trunc.c.
12704         * tests/test-truncf2.c: Include minus-zero.h.
12705         (MINUS_ZERO): New macro.
12706         (truncf_reference): Keep in sync with lib/trunc.c.
12707         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
12708         * tests/test-trunc-ieee.c (main): Likewise.
12709         * tests/test-truncl-ieee.c (main): Likewise.
12710
12711         ceil: Implement result sign according to IEEE 754.
12712         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
12713         (FUNC): Return -0.0 for -1 < x < 0.
12714         * tests/test-ceil2.c: Include minus-zero.h.
12715         (MINUS_ZERO): New macro.
12716         (ceil_reference): Keep in sync with lib/ceil.c.
12717         * tests/test-ceilf2.c: Include minus-zero.h.
12718         (MINUS_ZERO): New macro.
12719         (ceilf_reference): Keep in sync with lib/ceil.c.
12720         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
12721         * tests/test-ceil-ieee.c (main): Likewise.
12722         * tests/test-ceill-ieee.c (main): Likewise.
12723
12724         floor: Implement result sign according to IEEE 754.
12725         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
12726         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
12727         * tests/test-floorf2.c (floorf_reference): Likewise.
12728         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
12729         * tests/test-floor-ieee.c (main): Likewise.
12730         * tests/test-floorl-ieee.c (main): Likewise.
12731
12732 2010-12-22  Bruno Haible  <bruno@clisp.org>
12733
12734         getaddrinfo: Update doc.
12735         * doc/posix-functions/gai_strerror.texi: Return type is also different
12736         on AIX and HP-UX.
12737
12738 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         getaddrinfo, inet_ntop: Update doc for Solaris.
12741         * doc/posix-functions/gai_strerror.texi: Return type is also an
12742         issue on Solaris 9 and earlier.
12743         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
12744         on Solaris 10 and earlier.
12745
12746 2010-12-21  Bruno Haible  <bruno@clisp.org>
12747
12748         New module 'roundl-ieee'.
12749         * modules/roundl-ieee: New file.
12750         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
12751         test whether roundl works according to ISO C 99 with IEC 60559.
12752         * m4/roundl-ieee.m4: New file.
12753         * modules/roundl-ieee-tests: New file.
12754         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
12755         * tests/test-roundl.c (main): Remove signbit tests.
12756         * modules/roundl-tests (Depends-on): Remove signbit.
12757         * doc/posix-functions/roundl.texi: Mention the new module.
12758
12759 2010-12-21  Bruno Haible  <bruno@clisp.org>
12760
12761         New module 'truncl-ieee'.
12762         * modules/truncl-ieee: New file.
12763         * modules/truncl-ieee-tests: New file.
12764         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
12765         * tests/test-truncl.c (main): Remove signbit tests.
12766         * modules/truncl-tests (Depends-on): Remove signbit.
12767         * doc/posix-functions/truncl.texi: Mention the new module.
12768
12769 2010-12-21  Bruno Haible  <bruno@clisp.org>
12770
12771         New module 'ceill-ieee'.
12772         * modules/ceill-ieee: New file.
12773         * modules/ceill-ieee-tests: New file.
12774         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
12775         * tests/test-ceill.c (main): Remove signbit tests.
12776         * modules/ceill-tests (Depends-on): Remove signbit.
12777         * doc/posix-functions/ceill.texi: Mention the new module.
12778
12779 2010-12-21  Bruno Haible  <bruno@clisp.org>
12780
12781         New module 'floorl-ieee'.
12782         * modules/floorl-ieee: New file.
12783         * modules/floorl-ieee-tests: New file.
12784         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
12785         * tests/test-floorl.c (main): Remove signbit tests.
12786         * modules/floorl-tests (Depends-on): Remove signbit.
12787         * doc/posix-functions/floorl.texi: Mention the new module.
12788
12789 2010-12-21  Bruno Haible  <bruno@clisp.org>
12790
12791         New module 'round-ieee'.
12792         * modules/round-ieee: New file.
12793         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
12794         whether round works according to ISO C 99 with IEC 60559.
12795         * m4/round-ieee.m4: New file.
12796         * modules/round-ieee-tests: New file.
12797         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
12798         * tests/test-round1.c (main): Remove signbit tests.
12799         * modules/round-tests (Depends-on): Remove 'signbit'.
12800         * doc/posix-functions/round.texi: Mention the new module.
12801
12802 2010-12-21  Bruno Haible  <bruno@clisp.org>
12803
12804         New module 'trunc-ieee'.
12805         * modules/trunc-ieee: New file.
12806         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
12807         whether trunc works according to ISO C 99 with IEC 60559.
12808         * m4/trunc-ieee.m4: New file.
12809         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
12810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
12811         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
12812         * modules/trunc-ieee-tests: New file.
12813         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
12814         * tests/test-trunc1.c (main): Remove signbit tests.
12815         * modules/trunc-tests (Depends-on): Remove 'signbit'.
12816         * doc/posix-functions/trunc.texi: Mention the new module.
12817
12818 2010-12-21  Bruno Haible  <bruno@clisp.org>
12819
12820         New module 'ceil-ieee'.
12821         * modules/ceil-ieee: New file.
12822         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
12823         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
12824         ISO C 99 with IEC 60559.
12825         * m4/ceil-ieee.m4: New file.
12826         * modules/ceil (Files): Add lib/ceil.c.
12827         (Depends-on): Add 'float'.
12828         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12829         * lib/math.in.h (ceil): New declaration.
12830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
12831         REPLACE_CEIL.
12832         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
12833         * modules/ceil-ieee-tests: New file.
12834         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
12835         * tests/test-math-c++.cc: Check the signature of 'ceil'.
12836         * doc/posix-functions/ceil.texi: Mention the new module.
12837
12838 2010-12-21  Bruno Haible  <bruno@clisp.org>
12839
12840         New module 'floor-ieee'.
12841         * modules/floor-ieee: New file.
12842         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
12843         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
12844         ISO C 99 with IEC 60559.
12845         * m4/floor-ieee.m4: New file.
12846         * modules/floor (Files): Add lib/floor.c.
12847         (Depends-on): Add 'float'.
12848         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
12849         * lib/math.in.h (floor): New declaration.
12850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
12851         REPLACE_FLOOR.
12852         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
12853         * modules/floor-ieee-tests: New file.
12854         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
12855         * tests/test-math-c++.cc: Check the signature of 'floor'.
12856         * doc/posix-functions/floor.texi: Mention the new module.
12857
12858 2010-12-21  Bruno Haible  <bruno@clisp.org>
12859
12860         New module 'roundf-ieee'.
12861         * modules/roundf-ieee: New file.
12862         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
12863         test whether roundf works according to ISO C 99 with IEC 60559.
12864         * m4/roundf-ieee.m4: New file.
12865         * modules/roundf-ieee-tests: New file.
12866         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
12867         * tests/test-roundf1.c (main): Remove signbit tests.
12868         * modules/roundf-tests (Depends-on): Remove 'signbit'.
12869         * doc/posix-functions/roundf.texi: Mention the new module.
12870
12871 2010-12-21  Bruno Haible  <bruno@clisp.org>
12872
12873         New module 'truncf-ieee'.
12874         * modules/truncf-ieee: New file.
12875         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
12876         test whether truncf works according to ISO C 99 with IEC 60559.
12877         * m4/truncf-ieee.m4: New file.
12878         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
12879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
12880         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
12881         * modules/truncf-ieee-tests: New file.
12882         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
12883         * tests/test-truncf1.c (main): Remove signbit tests.
12884         * modules/truncf-tests (Depends-on): Remove 'signbit'.
12885         * doc/posix-functions/truncf.texi: Mention the new module.
12886
12887 2010-12-21  Bruno Haible  <bruno@clisp.org>
12888
12889         New module 'ceilf-ieee'.
12890         * modules/ceilf-ieee: New file.
12891         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
12892         test whether ceilf works according to ISO C 99 with IEC 60559.
12893         * m4/ceilf-ieee.m4: New file.
12894         * modules/ceilf-ieee-tests: New file.
12895         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
12896         * tests/test-ceilf1.c (main): Remove signbit tests.
12897         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
12898         * doc/posix-functions/ceilf.texi: Mention the new module.
12899
12900 2010-12-21  Bruno Haible  <bruno@clisp.org>
12901
12902         New module 'floorf-ieee'.
12903         * modules/floorf-ieee: New file.
12904         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
12905         test whether floorf works according to ISO C 99 with IEC 60559.
12906         * m4/floorf-ieee.m4: New file.
12907         * modules/floorf-ieee-tests: New file.
12908         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
12909         * tests/test-floorf1.c (main): Remove signbit tests.
12910         * modules/floorf-tests (Depends-on): Remove 'signbit'.
12911         * doc/posix-functions/floorf.texi: Mention the new module.
12912
12913 2010-12-21  Bruno Haible  <bruno@clisp.org>
12914
12915         Support for minus zero in autoconf macros.
12916         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
12917         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
12918         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
12919         * tests/minus-zero.h: Update comments.
12920
12921 2010-12-21  Bruno Haible  <bruno@clisp.org>
12922
12923         Tests for module 'ceil'.
12924         * modules/ceil-tests: New file.
12925         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
12926         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
12927
12928 2010-12-21  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module 'floor'.
12931         * modules/floor-tests: New file.
12932         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
12933         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
12934
12935 2010-12-21  Bruno Haible  <bruno@clisp.org>
12936
12937         math: Fix indentation.
12938         * lib/math.in.h (floorf): Fix indentation.
12939
12940 2010-12-21  Bruno Haible  <bruno@clisp.org>
12941
12942         Fix cross-compilation guesses on Solaris.
12943         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
12944         not match "solaris2.10".
12945         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12946         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
12947         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
12948
12949 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12950
12951         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
12952         This fixes a problem observed with the latest coreutils snapshot
12953         that caused a test to fail on Solaris 8.  src/csplit.c's call
12954         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
12955         earlier, instead of returning the number of bytes that would have
12956         been generated; this causes csplit to incorrectly report memory
12957         exhaustion.
12958         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
12959         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
12960         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
12961         comments to match.
12962         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
12963         Fix typo in matching older versions of Solaris: "solaris2.10"
12964         is matched by the shell pattern "solaris2.[0-9]*".  This matters
12965         only for guessing while cross-compiling.
12966         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
12967
12968 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12969
12970         ftoastr: fix comment again
12971         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
12972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
12973         Also, simplify example a bit by using flags = 0.
12974
12975 2010-12-20  Bruno Haible  <bruno@clisp.org>
12976
12977         round*, trunc*: Update documentation regarding glibc.
12978         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
12979         * doc/posix-functions/round.texi: Likewise.
12980         * doc/posix-functions/roundl.texi: Likewise.
12981         * doc/posix-functions/truncf.texi: Likewise.
12982         * doc/posix-functions/trunc.texi: Likewise.
12983         * doc/posix-functions/truncl.texi: Likewise.
12984
12985 2010-12-20  Bruno Haible  <bruno@clisp.org>
12986
12987         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
12988         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
12989         * doc/posix-functions/round.texi: Likewise.
12990         * doc/posix-functions/roundl.texi: Likewise.
12991
12992 2010-12-20  Bruno Haible  <bruno@clisp.org>
12993
12994         ttyname_r: Add missing declaration on HP-UX 11.
12995         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
12996         HAVE_TTYNAME_R.
12997         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
12998         declared. Set HAVE_TTYNAME_R always.
12999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13000         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13001         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13002         HAVE_TTYNAME_R.
13003         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13004
13005 2010-12-20  Bruno Haible  <bruno@clisp.org>
13006
13007         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13008         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13009         * doc/posix-functions/getlogin_r.texi: Likewise.
13010         * tests/test-getlogin.c: Include <errno.h>.
13011         (main): Avoid test failure on HP-UX 11.11.
13012         * tests/test-getlogin_r.c (main): Likewise.
13013
13014 2010-12-20  Bruno Haible  <bruno@clisp.org>
13015
13016         getlogin_r: Add missing declaration on HP-UX 11.
13017         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13018         declared also when it exists as a function.
13019         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13020
13021 2010-12-20  Bruno Haible  <bruno@clisp.org>
13022
13023         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13024         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13025         through wcrtomb.
13026
13027 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13028
13029         ftoastr: fix comment
13030         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13031         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13032
13033 2010-12-19  Bruno Haible  <bruno@clisp.org>
13034
13035         isnan: Ensure it is a macro.
13036         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13037         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13038         Solaris.
13039
13040 2010-12-19  Bruno Haible  <bruno@clisp.org>
13041
13042         ldexpl test: Fix link error on OSF/1 5.1.
13043         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13044
13045 2010-12-19  Bruno Haible  <bruno@clisp.org>
13046
13047         wctype: Make it work in C++ mode on OSF/1 5.1.
13048         * lib/wctype.in.h (iswblank): Declare but not define here.
13049         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13050         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13051         * modules/wctype (Files): Add lib/iswblank.c.
13052
13053 2010-12-19  Bruno Haible  <bruno@clisp.org>
13054
13055         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13056         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13057         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13058
13059 2010-12-19  Bruno Haible  <bruno@clisp.org>
13060
13061         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13063         _POSIX_PII_SOCKET.
13064         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13065         * doc/posix-functions/recvfrom.texi: Likewise.
13066         * doc/posix-functions/send.texi: Likewise.
13067         * doc/posix-functions/sendto.texi: Likewise.
13068
13069 2010-12-19  Bruno Haible  <bruno@clisp.org>
13070
13071         tcgetsid: Add missing declaration on OSF/1 5.1.
13072         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13073         HAVE_TCGETSID.
13074         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13075         Don't set HAVE_TCGETSID.
13076         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13077         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13078         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13079         HAVE_TCGETSID.
13080         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13081
13082 2010-12-19  Bruno Haible  <bruno@clisp.org>
13083
13084         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13085         * lib/stdio.in.h: During the include_next statement, let recursive
13086         includes of this file include only the system header file.
13087
13088 2010-12-19  Bruno Haible  <bruno@clisp.org>
13089
13090         iconv_open: Fix regression from 2010-12-04.
13091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13092         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13093
13094 2010-12-19  Bruno Haible  <bruno@clisp.org>
13095
13096         stdbool test: Avoid a gcc warning.
13097         * tests/test-stdbool.c (main): Fail if e1 is false.
13098         Reported by Jim Meyering.
13099
13100 2010-12-19  Jim Meyering  <meyering@redhat.com>
13101
13102         setenv: restore to working order
13103         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13104         mistakenly removed.
13105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13106         HAVE_SETENV.
13107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13108         HAVE_SETENV.
13109
13110 2010-12-19  Bruno Haible  <bruno@clisp.org>
13111
13112         Document some different function declarations on OSF/1 5.1.
13113         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13114         * doc/posix-functions/inet_ntop.texi: Likewise.
13115         * doc/posix-functions/gethostname.texi: Likewise.
13116         * lib/unistd.in.h (gethostname): Update comment.
13117
13118 2010-12-19  Bruno Haible  <bruno@clisp.org>
13119
13120         doc: Mention vasprintf-posix module.
13121         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13122         the 'vasprintf-posix' module.
13123         * doc/glibc-functions/vasprintf.texi: Likewise.
13124
13125 2010-12-19  Bruno Haible  <bruno@clisp.org>
13126
13127         unsetenv: Add missing declaration on OSF/1 5.1.
13128         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13130         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13132         not HAVE_UNSETENV.
13133         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13134         HAVE_UNSETENV.
13135         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13136
13137 2010-12-19  Bruno Haible  <bruno@clisp.org>
13138
13139         setenv: Add missing declaration on OSF/1 5.1.
13140         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13142         declared. Don't set HAVE_SETENV.
13143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13144         not HAVE_SETENV.
13145         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13146         HAVE_SETENV.
13147         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13148
13149 2010-12-19  Bruno Haible  <bruno@clisp.org>
13150
13151         nl_langinfo tests: Avoid gcc warning.
13152         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13153
13154 2010-12-19  Bruno Haible  <bruno@clisp.org>
13155
13156         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13157         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13158         _GL_CXXALIAS_SYS.
13159
13160 2010-12-19  Bruno Haible  <bruno@clisp.org>
13161
13162         stdbool: Relax test.
13163         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13164         address to 'bool' work in static initializer, for compilers other than
13165         GCC.
13166
13167 2010-12-19  Bruno Haible  <bruno@clisp.org>
13168
13169         ftello: Add missing declaration on OSF/1 5.1.
13170         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13171         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13173         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13174         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13175
13176 2010-12-19  Bruno Haible  <bruno@clisp.org>
13177
13178         fseeko: Add missing declaration on OSF/1 5.1.
13179         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13180         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13182         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13183         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13184
13185 2010-12-19  Bruno Haible  <bruno@clisp.org>
13186
13187         fchdir: Add missing declaration on OSF/1 5.1.
13188         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13191         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13192         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13193
13194 2010-12-19  Bruno Haible  <bruno@clisp.org>
13195
13196         relocatable-prog-wrapper: Separate from relocatable-prog.
13197         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13198         uninstall-relocwrapper rule here.
13199         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13200         Reported by Ian Beckwith <ianb@erislabs.net>.
13201
13202 2010-12-19  Bruno Haible  <bruno@clisp.org>
13203
13204         unistr/u8-mbsnlen: Add missing dependency.
13205         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13206         Reported by Ian Beckwith <ianb@erislabs.net>.
13207
13208 2010-12-19  Bruno Haible  <bruno@clisp.org>
13209
13210         iconv: Make it possible again to use this module without 'iconv-h'.
13211         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13212         if it is not defined.
13213         Reported by Ian Beckwith <ianb@erislabs.net>.
13214
13215 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         acl: port to Solaris 8 when copying from tmpfs to ufs
13218         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13219         error number.  Problem observed on Solaris 8 with latest
13220         coreutils, with "mv A B", where A is on a tmpfs file system and B
13221         is on a ufs file system.  This caused coreutils' mv/part-symlink
13222         test to fail.
13223
13224         tests: set fail=0 at start
13225         * tests/init.sh (setup_): Move fail=0 initialization here ...
13226         (mktempd_): ... from here, so that tests can rely on fail being
13227         set to 0 initially.  This fixes a problem in coreutils; see:
13228         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13229
13230 2010-12-18  Bruno Haible  <bruno@clisp.org>
13231
13232         memmem-simple: Stylistic changes.
13233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13234         Fix preprocessor directive indentation.
13235
13236 2010-12-15  PĂ¡draig Brady <P@draigBrady.com>
13237
13238         memmem, memmem-simple: reorganize and expand empty needle check
13239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13240         functional checks to memmem-simple so that one has a fully functional
13241         memmem by using just this module.
13242         Restrict the performance only check to the memmem module.
13243         Also expand the empty needle check to ensure the correct
13244         pointer is returned, not just a non NULL pointer.
13245         * doc/glibc-functions/memmem.texi: Rearrange the portability
13246         documentation to correlate with the rearranged checks.
13247         Clarify exactly how the memmem and memmem-simple modules
13248         relate to each other.
13249
13250 2010-12-15  PĂ¡draig Brady <P@draigBrady.com>
13251             Bruno Haible  <bruno@clisp.org>
13252
13253         Improve cross-compilation guesses for uClibc.
13254         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13255         that uClibc does not have the glibc bug.
13256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13257         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13258
13259 2010-12-14  Eric Blake  <eblake@redhat.com>
13260
13261         configmake: provide fallbacks for oldest supported autotools
13262         * m4/configmake.m4: New file.
13263         * modules/configmake (Files): Ship it.
13264         (configure.ac): Use it to guarantee fallbacks.
13265
13266 2010-12-13  PĂ¡draig Brady <P@draigBrady.com>
13267
13268         read-file: Improve handling of large files
13269         * lib/read-file.c (fread_file): Minimize realloc()s
13270         for regular files, and better manage sizes around SIZE_MAX.
13271
13272 2010-12-13  Eric Blake  <eblake@redhat.com>
13273
13274         cloexec, fcntl: relax license
13275         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13276         consent from all contributors.
13277         * modules/fcntl (License): Likewise.
13278
13279 2010-12-10  Bruno Haible  <bruno@clisp.org>
13280
13281         Tests for module 'pipe-posix'.
13282         * modules/pipe-posix-tests: New file.
13283         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13284
13285 2010-12-10  Bruno Haible  <bruno@clisp.org>
13286
13287         pipe-posix: Make it work in C++ mode.
13288         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13289         (pipe): Use common idiom, not a macro definition.
13290         * lib/pipe.c: New file.
13291         * m4/pipe.m4: New file.
13292         * modules/pipe-posix (Description): Enhance.
13293         (Files): Add lib/pipe.c, m4/pipe.m4.
13294         (configure.ac): Invoke gl_FUNC_PIPE.
13295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13296         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13297         * tests/test-unistd-c++.cc: Check the signature of pipe.
13298
13299 2010-12-10  Bruno Haible  <bruno@clisp.org>
13300
13301         Rename module 'pipe' to 'spawn-pipe'.
13302         * modules/spawn-pipe: New file, renamed from modules/pipe.
13303         (Files, configure.ac, Makefile.am): Update.
13304         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13305         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13306         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13307         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13308         "spawn-pipe.h" instead of "pipe.h".
13309         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13310         to gl_SPAWN_PIPE.
13311         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13312         (Files, Makefile.am): Update.
13313         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13314         Update.
13315         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13316         Include "spawn-pipe.h" instead of "pipe.h".
13317         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13318         * lib/javacomp.c: Likewise.
13319         * lib/javaversion.c: Likewise.
13320         * lib/pipe-filter-gi.c: Likewise.
13321         * lib/pipe-filter-ii.c: Likewise.
13322         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13323         * modules/javacomp (Depends-on): Likewise.
13324         * modules/javaversion (Depends-on): Likewise.
13325         * modules/pipe-filter-gi (Depends-on): Likewise.
13326         * modules/pipe-filter-ii (Depends-on): Likewise.
13327         * MODULES.html.sh (Executing programs): Update.
13328         * NEWS: Mention the change.
13329
13330 2010-12-10  Eric Blake  <eblake@redhat.com>
13331
13332         pipe-posix: new module
13333         * modules/pipe-posix: New file.
13334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13335         (gl_UNISTD_H): Check for declaration.
13336         * modules/unistd (Makefile.am): Substitute it.
13337         * lib/unistd.in.h (pipe): Provide it for mingw.
13338         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13339         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13340
13341 2010-12-07  Bruno Haible  <bruno@clisp.org>
13342
13343         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13344         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13345         u8_strcmp_gnu.
13346         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13347
13348 2010-12-06  Bruno Haible  <bruno@clisp.org>
13349
13350         Update internal documentation.
13351         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13352
13353 2010-12-04  Bruno Haible  <bruno@clisp.org>
13354
13355         Put more information about failed tests into the test return codes.
13356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13357         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13358         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13361         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13363         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13364         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13367         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13368         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13369         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13370         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13371         returns a bit mask.
13372         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13373         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13374         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13375         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13377         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13380         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13382         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13383         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13384         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13385         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13386         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13387         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13388         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13389         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13391         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13393         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13395         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13396         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13397         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13398         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13399         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13400         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13401         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13402         gl_PRINTF_PRECISION): Likewise.
13403         * m4/regex.m4 (gl_REGEX): Likewise.
13404         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13407         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13411         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13412         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13413         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13414         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13417         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13418         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13420         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13421         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13423         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13424         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13425         enumerated value.
13426         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13427
13428 2010-12-04  Bruno Haible  <bruno@clisp.org>
13429
13430         Update for Solaris 11 2010-11.
13431         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13432         Express, released in November 2010.
13433
13434 2010-12-04  Bruno Haible  <bruno@clisp.org>
13435
13436         nproc: Relax license.
13437         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13438         and Paul Eggert.
13439         Requested by Ludovic Courtès <ludo@gnu.org>.
13440
13441 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13442
13443         utimecmp: fine-grained src to nearby coarse-grained dest
13444
13445         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13446         and the source is on a file system with higher-resolution time
13447         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13448         not work, and the time stamps are close together, the algorithm to
13449         determine the exact resolution from the read-back mtime was buggy:
13450         it had a "!=" where it should have had an "==".  This bug has been
13451         in the code ever since it was introduced to gnulib.
13452         Problem reported by Dan Jacobson in
13453         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13454
13455 2010-11-30  Bruno Haible  <bruno@clisp.org>
13456
13457         strerror_r-posix: Fix autoconf test.
13458         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13459
13460 2010-11-28  Bruno Haible  <bruno@clisp.org>
13461             Paul Eggert  <eggert@cs.ucla.edu>
13462
13463         Tests for module 'getdomainname'.
13464         * modules/getdomainname-tests: New file.
13465         * tests/test-getdomainname.c: New file, based on
13466         tests/test-gethostname.c.
13467
13468 2010-11-28  Bruno Haible  <bruno@clisp.org>
13469             Paul Eggert  <eggert@cs.ucla.edu>
13470
13471         getdomainname: Use the system function when possible.
13472         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
13473         (getdomainname): Replace if needed. Provide the declaration if it is
13474         missing. Don't use _GL_CXXALIAS_SYS_CAST.
13475         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
13476         (getdomainname): When the system has getdomainname, call the system
13477         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
13478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13479         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
13480         found in libnsl. Look for the declaration also in <netdb.h>. Replace
13481         the function if its second argument is of type 'int' or if it is found
13482         in libnsl.
13483         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
13484         <sys/systeminfo.h> and sysinfo().
13485         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
13486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13487         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
13488         HAVE_GETDOMAINNAME.
13489         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
13490         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
13491         * doc/glibc-functions/getdomainname.texi: Document the problems with
13492         the getdomainname declaration.
13493
13494 2010-11-28  Bruno Haible  <bruno@clisp.org>
13495
13496         sys_socket: Ensure ss_family field on AIX.
13497         * lib/sys_socket.in.h (ss_family): New macro definition.
13498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
13499         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
13500         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
13501         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13502         * modules/sys_socket (Makefile.am): Substitute
13503         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
13504         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
13505
13506 2010-11-27  Bruno Haible  <bruno@clisp.org>
13507
13508         readline: Improve configure output.
13509         * m4/readline.m4 (gl_FUNC_READLINE): Make the
13510         "checking for readline..." result understandable.
13511
13512 2010-11-27  Bruno Haible  <bruno@clisp.org>
13513
13514         *printf-posix: Detect a bug on Solaris 10/x86.
13515         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
13516         for floating-point output.
13517         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
13518         directive.
13519         * tests/test-snprintf-posix.h (test_function): Likewise.
13520         * tests/test-sprintf-posix.h (test_function): Likewise.
13521         * tests/test-vasprintf-posix.c (test_function): Likewise.
13522         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
13523         * doc/posix-functions/printf.texi: Likewise.
13524         * doc/posix-functions/snprintf.texi: Likewise.
13525         * doc/posix-functions/sprintf.texi: Likewise.
13526         * doc/posix-functions/vfprintf.texi: Likewise.
13527         * doc/posix-functions/vprintf.texi: Likewise.
13528         * doc/posix-functions/vsnprintf.texi: Likewise.
13529         * doc/posix-functions/vsprintf.texi: Likewise.
13530         * doc/glibc-functions/obstack_printf.texi: Likewise.
13531         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13532
13533 2010-11-27  Bruno Haible  <bruno@clisp.org>
13534
13535         Fix link error when module libunistring-optional is in use.
13536         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
13537         * modules/striconveha-tests (Makefile.am): Likewise.
13538
13539 2010-11-27  Bruno Haible  <bruno@clisp.org>
13540
13541         regex: Mention link dependencies.
13542         * modules/regex (Link): New section.
13543         * modules/rpmatch (Link): Likewise.
13544         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
13545
13546 2010-11-27  Bruno Haible  <bruno@clisp.org>
13547
13548         ftoastr: Fix compilation error on Solaris.
13549         * lib/ftoastr.c: Include <config.h>.
13550
13551 2010-11-27  Bruno Haible  <bruno@clisp.org>
13552
13553         getloadavg: Update documentation.
13554         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
13555
13556 2010-11-27  Bruno Haible  <bruno@clisp.org>
13557
13558         sys_socket: Fix test whether the functions are declared.
13559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
13560         not <sys/select.h>.
13561
13562 2010-11-27  Bruno Haible  <bruno@clisp.org>
13563
13564         getpass: Make sure to get system declaration on some platforms.
13565         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
13566         gl_USE_SYSTEM_EXTENSIONS.
13567         * modules/getpass (Depends-on): Add extensions.
13568
13569 2010-11-26  Bruno Haible  <bruno@clisp.org>
13570
13571         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
13572         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
13573         'iconv' module is present.
13574         (ICONV_CONST): New macro.
13575         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
13576         ICONV_CONST.
13577         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
13578         set ICONV_CONST.
13579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
13580         here.
13581         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
13582         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
13583         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
13584         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
13585         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
13586         present.
13587
13588 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13589
13590         ftoastr: comment fix
13591         * lib/ftoastr.c: "little" -> "little or no" in comment
13592
13593 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         stdint: port to GCC 4.3 + OSX + Octave
13596         On this platform, stdint.h is buggy and defines int64_t to long
13597         long int.  The replacement defined it to long int, causing
13598         problems with C++ style name mangling.  Instead, trust the system
13599         definition if INT64_MAX is defined, and likewise for the unsigned
13600         variant.   Problem reported by Jarno Rajahalme in
13601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
13602         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
13603         and don't mess with int64_t and INT64_MAX in this case.
13604         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
13605
13606 2010-11-24  Bruno Haible  <bruno@clisp.org>
13607
13608         doc: Corrections regarding MacOS X 10.4 and 10.5.
13609         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
13610         MacOS X.
13611         Reported by Simon Josefsson.
13612
13613 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
13614
13615         Uninstall ".bin" files installed by relocwrapper.
13616         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
13617         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
13618         unless it is already there.
13619
13620 2010-11-21  Bruno Haible  <bruno@clisp.org>
13621
13622         Update for NetBSD 5.0.
13623         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13624         NetBSD; the test fails on NetBSD 5.0.
13625         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13626         about NetBSD.
13627
13628 2010-11-21  Bruno Haible  <bruno@clisp.org>
13629
13630         Update for HP-UX 11.23 and HP-UX 11.31.
13631         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
13632         HP-UX.
13633
13634 2010-11-21  Bruno Haible  <bruno@clisp.org>
13635
13636         Update for MacOS X 10.5.
13637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
13638         MacOS X; the test fails on MacOS X 10.5.8.
13639         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
13640         about MacOS X.
13641
13642 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
13643
13644         bootstrap: add bootstrap_sync option.
13645         See discussion at
13646         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
13647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
13648         * build-aux/bootstrap: Accept --bootstrap-sync to update
13649         bootstrap if it is not identical to the local gnulib's
13650         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
13651         enable this by default.  Accept --no-bootstrap-sync to disable
13652         it.
13653
13654 2010-11-20  Bruno Haible  <bruno@clisp.org>
13655
13656         Ensure that <features.h> is included before __GLIBC__ is tested.
13657         * lib/printf-parse.h: Include <features.h>.
13658         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
13659         Reported by Mike Frysinger <vapier@gentoo.org>.
13660
13661         Ensure that <features.h> is included before __GLIBC__ is tested.
13662         * lib/wchar.in.h: Include <features.h>.
13663         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
13664         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
13665         Reported by Mike Frysinger <vapier@gentoo.org>.
13666
13667         Ensure that <features.h> is included before __GLIBC__ is tested.
13668         * lib/arpa_inet.in.h: Include <features.h>.
13669         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
13670         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
13671         Reported by Mike Frysinger <vapier@gentoo.org>.
13672
13673         Ensure that <features.h> is included before __GLIBC__ is tested.
13674         * build-aux/link-warning.h: Include <features.h>.
13675         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
13676         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
13677         Reported by Mike Frysinger <vapier@gentoo.org>.
13678
13679         Ensure that <features.h> is included before __GLIBC__ is tested.
13680         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
13681         Reported by Mike Frysinger <vapier@gentoo.org>.
13682
13683 2010-11-20  Bruno Haible  <bruno@clisp.org>
13684
13685         memmem: Fix autoconf test.
13686         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
13687
13688 2010-11-20  Bruno Haible  <bruno@clisp.org>
13689
13690         Port to uClibc.
13691         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
13692         * lib/fcntl.in.h: Likewise.
13693         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
13694         * lib/mbrtowc.c (mbrtowc): Likewise.
13695         * lib/relocatable.c (find_shared_library_fullname): Likewise.
13696         * lib/strerror_r.c: Likewise.
13697         * lib/unistr/u8-strnlen.c: Likewise.
13698         * lib/vasnprintf.c (decimal_point_char): Likewise.
13699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13700         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
13702         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13703         * tests/test-sigaction.c (handler, main): Likewise.
13704         * lib/freading.h: Treat uClibc like a non-glibc platform.
13705         * lib/freading.c: Likewise.
13706         * lib/gettext.h: Likewise.
13707         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
13708         Likewise.
13709         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
13710         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13711         * lib/propername.c (proper_name_utf8): Likewise.
13712         * lib/spawn.in.h: Likewise.
13713         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
13714         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
13715         mem_cd_iconveh_internal): Likewise.
13716         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
13717         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13718         strstr, strcasestr): Likewise.
13719         * lib/unicodeio.c (unicode_to_mb): Likewise.
13720         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
13721         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
13722         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
13723         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
13724         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
13725         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
13726         * lib/unistr/u8-stpncpy.c: Likewise.
13727         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13728         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
13729         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13730         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13731         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13732         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
13733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
13734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
13735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13736         Likewise.
13737         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13738         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13743         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13744         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13745         * tests/test-getopt.h (OPTIND_MIN): Likewise.
13746         * tests/test-striconveha.c (main): Likewise.
13747         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13748         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
13749         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
13750         * doc/posix-functions/getline.texi: Likewise.
13751         Reported by Mike Frysinger <vapier@gentoo.org>.
13752
13753 2010-11-20  Bruno Haible  <bruno@clisp.org>
13754
13755         nproc: Fix condition.
13756         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
13757         HAVE_PTHREAD_AFFINITY_NP.
13758
13759 2010-11-20  Bruno Haible  <bruno@clisp.org>
13760
13761         Fix a comment.
13762         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
13763
13764 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         ftoastr: don't assume snprintf
13767         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
13768         Implement a subset of snprintf here, by using sprintf safely.
13769         * modules/ftoastr (Depends-on): Remove snprintf.
13770
13771 2010-11-19  Jim Meyering  <meyering@redhat.com>
13772
13773         test-rename.h: fix compilation failure
13774         * tests/test-rename.h (test_rename): Add omitted "}".
13775
13776 2010-11-17  Jim Meyering  <meyering@redhat.com>
13777
13778         maint.mk: add a URL discussing the no-@acronym policy
13779         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
13780
13781 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
13782
13783         ftoastr: depend on snprintf, improve comments
13784         * lib/ftoastr.c: Also mention Loitsch's draft.
13785         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
13786         needed in the current implementation, but it might simplify
13787         speeding up the code later.
13788         * modules/ftoastr: Depend on snprintf; this improves portability.
13789         Suggested by Bruno Haible in the same email.
13790
13791         ftoastr: port to hosts lacking strtof and strtold
13792         Problem reported by Bruno Haible in
13793         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
13794         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
13795         environment and strtold (and presumably strtof) are not available.
13796         * modules/ftoastr (Files): Add m4/c-strtod.m4.
13797         (configure.ac): Require gl_C99_STRTOLD.
13798
13799 2010-11-18  Bruno Haible  <bruno@clisp.org>
13800
13801         c-strtold: Avoid link error on AIX 7.
13802         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
13803         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
13804         (gl_C_STRTOLD): Test whether strtold_l exists.
13805         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13806
13807 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
13808
13809         intprops: new macro INT_BITS_STRLEN_BOUND
13810         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
13811         ftoastr.h.  This exposes an internal of intprops.h that was formerly
13812         not exposed.  Also, it uses a slightly tighter bound than before;
13813         though this makes no practical difference, we might as well be as
13814         tight as we easily can.
13815
13816         ftoastr: new module, for lossless conversion of floats to short strings
13817         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
13818         * modules/ftoastr: New files.
13819
13820 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         bootstrap: port to Solaris sed
13823         * build-aux/bootstrap (get_version): Port to Solaris sed.
13824         See Ralf Wildenhues's note in
13825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
13826
13827 2010-11-14  Jim Meyering  <meyering@redhat.com>
13828
13829         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
13830         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
13831         and move definition closer to sole use.
13832
13833 2010-11-13  Jim Meyering  <meyering@redhat.com>
13834
13835         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
13836         Now we require at least autoconf-2.59, which means the work-around
13837         is no longer needed.
13838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
13839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
13841         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
13842         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13843
13844 2010-11-13  Bruno Haible  <bruno@clisp.org>
13845
13846         rename, renameat: Avoid test failures at NFS mounted locations.
13847         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
13848         functions.
13849         (test_rename): Use assert_nonexistent.
13850         * tests/test-rename.c: Include <dirent.h>.
13851         * tests/test-renameat.c: Likewise.
13852         Reported by Gary V. Vaughan <gary@gnu.org>.
13853
13854         rename, renameat: Document Linux bug with NFS
13855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
13856         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
13857         * doc/posix-functions/renameat.texi: Likewise.
13858         Suggested by Eric Blake.
13859
13860 2010-11-13  Bruno Haible  <bruno@clisp.org>
13861
13862         rename test: Add comments.
13863         * tests/test-rename.h (test_rename): Add structure and comments.
13864
13865 2010-11-13  Eric Blake  <eblake@redhat.com>
13866
13867         maintainer-makefile: cover a few more files
13868         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
13869         scripts generated within C files, for libvirt.
13870
13871 2010-11-13  Bruno Haible  <bruno@clisp.org>
13872
13873         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
13874         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
13875         character, return the number of bytes that belong together, not always
13876         1.
13877         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
13878         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
13879         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
13880         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
13881         number of bytes of an invalid character.
13882         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
13883         (main): Invoke it.
13884         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
13885         results.
13886         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
13887         malformed byte sequences.
13888         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
13889         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
13890         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
13891         Reported by Ben Pfaff and Paolo Bonzini.
13892
13893 2010-11-13  Bruno Haible  <bruno@clisp.org>
13894
13895         openat: Work around glibc bug with fchownat() and empty file names.
13896         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
13897         (gl_FUNC_FCHOWNAT): Invoke it.
13898         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
13899         * doc/posix-functions/fchownat.texi: Document the glibc bug.
13900         Reported by Gary V. Vaughan <gary@gnu.org>.
13901
13902 2010-11-13  Bruno Haible  <bruno@clisp.org>
13903
13904         openat: Ensure autoconf macro ordering.
13905         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
13906         gl_USE_SYSTEM_EXTENSIONS.
13907         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
13908
13909 2010-11-13  Bruno Haible  <bruno@clisp.org>
13910
13911         Update comments.
13912         * lib/unistr/u8-check.c: Update file name in comments.
13913         * lib/unistr/u8-mblen.c: Likewise.
13914         * lib/unistr/u8-prev.c: Likewise.
13915         * lib/unistr/u8-strmblen.c: Likewise.
13916         * lib/unistr/u8-strmbtouc.c: Likewise.
13917
13918 2010-11-13  Jim Meyering  <meyering@redhat.com>
13919
13920         tests: avoid test failure on Solaris 10 due to lack of PATH export
13921         * tests/test-update-copyright.sh: Don't forget to export PATH.
13922
13923         init.sh: ensure that IFS is defined, just in case...
13924         * tests/init.sh (setup_): Ensure that IFS is defined,
13925         so that saving and restoring it works as expected.  This
13926         appears to be useful at least for an old version of dash
13927         from a long time ago (RH 6).  See here for details:
13928         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
13929
13930         maint.mk: tighten "test a == b" check
13931         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
13932         test to files that contain something like #!/bin/sh.
13933         Without this, coreutils would get two false positives in
13934         the comments of C source files.
13935
13936 2010-11-12  Eric Blake  <eblake@redhat.com>
13937
13938         bootstrap: fix typo in previous attempt
13939         * build-aux/bootstrap (buildreq): Correct the grouping.
13940         Reported by Paul Eggert.
13941
13942         maintainer-makefile: prohibit test x == x
13943         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
13944         Based on a report by Matthias Bolte.
13945
13946         bootstrap: allow FreeBSD gzip
13947         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
13948         which has no '.' and goes to stderr.
13949         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
13950         Reported by Matthias Bolte.
13951
13952         maintainer-makefile: check for i18n setup
13953         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
13954         will likely work.
13955
13956 2010-11-12  Bruno Haible  <bruno@clisp.org>
13957
13958         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
13959         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
13960         * lib/nanosleep.c (nanosleep): Likewise.
13961
13962 2010-11-11  Bruno Haible  <bruno@clisp.org>
13963
13964         fcntl-h: Fix for use of C++ on glibc systems.
13965         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13966         also on glibc systems in C++ mode.
13967         Reported by Gary V. Vaughan <gary@gnu.org>.
13968
13969 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13970
13971         mknod: avoid false failure with dash
13972         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
13973
13974 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
13975
13976         unlink: Fix "is it should" typo in diagnostic.
13977         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
13978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
13979
13980 2010-11-11  Bruno Haible  <bruno@clisp.org>
13981
13982         Tests for module 'strerror_r-posix'.
13983         * modules/strerror_r-posix-tests: New file.
13984         * tests/test-strerror_r.c: New file.
13985         * tests/test-string-c++.cc: Check the signature of strerror_r.
13986
13987         New module 'strerror_r-posix'.
13988         * lib/string.in.h (strerror_r): New declaration.
13989         * lib/strerror_r.c: New file.
13990         * m4/strerror_r.m4: New file.
13991         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
13992         of strerror_r.
13993         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
13994         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13995         * modules/strerror_r-posix: New file.
13996         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
13997         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
13998         * doc/posix-functions/strerror_r.texi: Mention the new module and the
13999         portability problems.
14000
14001 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14002
14003         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14004         line is also considered for output. Quoted function name in shell
14005         command, so temporary files for functions like MyClass::operator()
14006         are removed correctly without errors.
14007
14008 2010-11-09  Bruno Haible  <bruno@clisp.org>
14009
14010         * doc/posix-functions/strerror.texi: List more failing platforms.
14011
14012         * doc/posix-functions/strerror.texi: Add a comment.
14013
14014 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14015
14016         fdopendir: fix bug on MacOS X when low on file descriptors
14017
14018         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14019         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14020         All callers changed.
14021         (fdopendir): Invoke save_cwd at the top level, not after using
14022         multiple dup() calls to use up file descriptors.  Then retry
14023         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14024         less than the maximum number of open file descriptors, because
14025         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14026         on Mac OS X 10.6.4 for tar 1.24
14027         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14028         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14029         and for tar 1.25
14030         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14031
14032 2010-11-07  Bruno Haible  <bruno@clisp.org>
14033
14034         vasnprintf: Support I flag on glibc systems.
14035         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14036         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14037         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14038         snprintf function.
14039         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14040         glibc systems.
14041         * tests/test-vasnprintf-posix3.c: New file.
14042         * modules/vasnprintf-posix-tests (Files): Add it.
14043         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14044
14045 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14046
14047         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14048         * MODULES.html.sh: For compiler warnings, use name
14049         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14050
14051 2010-11-05  Eric Blake  <eblake@redhat.com>
14052
14053         ceil, floor: avoid spurious failure with icc
14054         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14055         [denormals-as-zero] when optimizing without -mieee-fp option.
14056         * tests/test-floorf2.c (floorf_reference): Likewise.
14057         * tests/test-ceilf1.c (dummy): New function.
14058         (main): Use it to outsmart icc's optimization.
14059         * tests/test-floorf1.c (dummy, main): Likewise.
14060
14061         tests: require working signbit
14062         * modules/ceilf-tests (Depends-on): Add signbit.
14063         * modules/ceill-tests (Depends-on): Likewise.
14064         * modules/floorf-tests (Depends-on): Likewise.
14065         * modules/floorl-tests (Depends-on): Likewise.
14066         * modules/round-tests (Depends-on): Likewise.
14067         * modules/roundf-tests (Depends-on): Likewise.
14068         * modules/roundl-tests (Depends-on): Likewise.
14069         * modules/trunc-tests (Depends-on): Likewise.
14070         * modules/truncf-tests (Depends-on): Likewise.
14071         * modules/truncl-tests (Depends-on): Likewise.
14072
14073         strtod: work around icc bug
14074         * lib/strtod.c (minus_zero): Define to working value.
14075         (strtod): Use it to avoid icc bug.
14076
14077         copysign: enhance tests
14078         * modules/copysign-tests (Files): Add minus-zero.h.
14079         * tests/test-copysign.c (main): Also test zeros.
14080
14081 2010-11-04  Eric Blake  <eblake@redhat.com>
14082
14083         ceil, floor, round, trunc: enhance tests of -0
14084         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14085         * tests/test-ceill.c (main): Likewise.
14086         * tests/test-floorf1.c (main): Likewise.
14087         * tests/test-floorl.c (main): Likewise.
14088         * tests/test-round1.c (main): Likewise.
14089         * tests/test-roundf1.c (main): Likewise.
14090         * tests/test-roundl.c (main): Likewise.
14091         * tests/test-trunc1.c (main): Likewise.
14092         * tests/test-truncf1.c (main): Likewise.
14093         * tests/test-truncl.c (main): Likewise.
14094
14095 2010-11-04  Eric Blake  <eblake@redhat.com>
14096
14097         frexp, tests: work around ICC bug with -zero
14098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14099         works with more compilers.
14100         * tests/minus-zero.h: New file.
14101         * modules/ceilf-tests (Files): Include it.
14102         * modules/ceill-tests (Files): Likewise.
14103         * modules/floorf-tests (Files): Likewise.
14104         * modules/floorl-tests (Files): Likewise.
14105         * modules/frexp-nolibm-tests (Files): Likewise.
14106         * modules/frexp-tests (Files): Likewise.
14107         * modules/frexpl-nolibm-tests (Files): Likewise.
14108         * modules/frexpl-tests (Files): Likewise.
14109         * modules/isnan-tests (Files): Likewise.
14110         * modules/isnand-nolibm-tests (Files): Likewise.
14111         * modules/isnand-tests (Files): Likewise.
14112         * modules/isnanf-nolibm-tests (Files): Likewise.
14113         * modules/isnanf-tests (Files): Likewise.
14114         * modules/isnanl-nolibm-tests (Files): Likewise.
14115         * modules/isnanl-tests (Files): Likewise.
14116         * modules/round-tests (Files): Likewise.
14117         * modules/roundf-tests (Files): Likewise.
14118         * modules/roundl-tests (Files): Likewise.
14119         * modules/ldexpl-tests (Files): Likewise.
14120         * modules/signbit-tests (Files): Likewise.
14121         * modules/snprintf-posix-tests (Files): Likewise.
14122         * modules/sprintf-posix-tests (Files): Likewise.
14123         * modules/strtod-tests (Files): Likewise.
14124         * modules/trunc-tests (Files): Likewise.
14125         * modules/truncf-tests (Files): Likewise.
14126         * modules/truncl-tests (Files): Likewise.
14127         * modules/vsnprintf-posix-tests (Files): Likewise.
14128         * modules/vsprintf-posix-tests (Files): Likewise.
14129         * modules/vasnprintf-posix-tests (Files): Likewise.
14130         * modules/vasprintf-posix-tests (Files): Likewise.
14131         * tests/test-ceilf1.c (main): Use it.
14132         * tests/test-ceill.c (main): Likewise.
14133         * tests/test-floorf1.c (main): Likewise.
14134         * tests/test-floorl.c (main): Likewise.
14135         * tests/test-frexp.c (main): Likewise.
14136         * tests/test-frexpl.c (main): Likewise.
14137         * tests/test-isnan.c (main): Likewise.
14138         * tests/test-isnand.h (main): Likewise.
14139         * tests/test-isnanf.h (main): Likewise.
14140         * tests/test-isnanl.h (main): Likewise.
14141         * tests/test-ldexpl.c (main): Likewise.
14142         * tests/test-round.c (main): Likewise.
14143         * tests/test-roundf.c (main): Likewise.
14144         * tests/test-roundl.c (main): Likewise.
14145         * tests/test-signbit.c (test_signbitf, test_signbitd)
14146         (test_signbitl): Likewise.
14147         * tests/test-snprintf-posix.h (test_function): Likewise.
14148         * tests/test-sprintf-posix.h (test_function): Likewise.
14149         * tests/test-strtod.c (main): Likewise.
14150         * tests/test-trunc1.c (main): Likewise.
14151         * tests/test-truncf1.c (main): Likewise.
14152         * tests/test-truncl.c (main): Likewise.
14153
14154         isnanl: work around icc bug
14155         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14156
14157 2010-11-03  Eric Blake  <eblake@redhat.com>
14158
14159         tests: fix compiler warnings
14160         * tests/test-getopt.h (test_getopt): Fix condition.
14161         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14162         * tests/test-pipe2.c (main): Likewise.
14163         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14164
14165         utimens: fix broken m4 test
14166         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14167
14168 2010-10-28  Bruno Haible  <bruno@clisp.org>
14169
14170         posix_spawn*, getdtablesize: Relax license.
14171         * modules/posix_spawn (License): Change to LGPLv2+.
14172         * modules/posix_spawnp (License): Likewise.
14173         * modules/posix_spawn-internal (License): Likewise.
14174         * modules/posix_spawnattr_init (License): Likewise.
14175         * modules/posix_spawnattr_getflags (License): Likewise.
14176         * modules/posix_spawnattr_setflags (License): Likewise.
14177         * modules/posix_spawnattr_getpgroup (License): Likewise.
14178         * modules/posix_spawnattr_setpgroup (License): Likewise.
14179         * modules/posix_spawnattr_getschedparam (License): Likewise.
14180         * modules/posix_spawnattr_setschedparam (License): Likewise.
14181         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14182         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14183         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14184         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14185         * modules/posix_spawnattr_getsigmask (License): Likewise.
14186         * modules/posix_spawnattr_setsigmask (License): Likewise.
14187         * modules/posix_spawnattr_destroy (License): Likewise.
14188         * modules/posix_spawn_file_actions_init (License): Likewise.
14189         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14190         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14191         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14192         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14193         * modules/getdtablesize (License): Likewise.
14194         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14195
14196 2010-10-26  Bruno Haible  <bruno@clisp.org>
14197
14198         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14199         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14200         Cygwin and mingw.
14201         Suggested by Eric Blake.
14202
14203 2010-10-26  Bruno Haible  <bruno@clisp.org>
14204
14205         stdio: Work around compilation error due to renameat() on Solaris 10.
14206         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14207         * lib/renameat.c: Don't include <unistd.h> here.
14208         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14209         Reported by Paul Eggert and Eric Blake.
14210
14211 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         renameat: port to Solaris 10, which declares renameat in unistd.h
14214
14215         * lib/renameat.c: Include unistd.h before stdio.h, because
14216         Solaris 10 declares renameat in unistd.h.  Problem encountered
14217         when building GNU tar 1.24 on Solaris 10.
14218
14219 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14220
14221         fdopendir: fix C89 compilation
14222         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14223         compilers.
14224
14225 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         inttostr: simplify by removing unnecessary redundancy
14228         * lib/anytostr.c: Don't include verify.h.
14229         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14230         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14231         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14232         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14233         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14234         Likewise.
14235         * modules/inttostr (Depends-on): Remove 'verify'.
14236
14237 2010-10-23  Bruno Haible  <bruno@clisp.org>
14238
14239         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14240         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14241         Reported by Eric Blake.
14242
14243 2010-10-23  Bruno Haible  <bruno@clisp.org>
14244
14245         Tests: Fix LOCALE_JA on MirBSD 10.
14246         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14247         to an UTF-8 locale.
14248         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14250         Reported by Eric Blake.
14251
14252 2010-10-21  Bruno Haible  <bruno@clisp.org>
14253
14254         nl_langinfo test: Avoid test failure on NetBSD 5.
14255         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14256         Reported by Eric Blake.
14257
14258 2010-10-21  Eric Blake  <eblake@redhat.com>
14259
14260         c-stack: work around libsigsegv 2.8 bug
14261         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14262         overflow on at least PowerPC64.
14263
14264 2010-10-17  Bruno Haible  <bruno@clisp.org>
14265
14266         userspec: Drop redundant file.
14267         * modules/userspec (Files): Remove lib/inttostr.h.
14268
14269 2010-10-17  Bruno Haible  <bruno@clisp.org>
14270
14271         nl_langinfo tests: Silence some warnings.
14272         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14273         Reported by Jim Meyering.
14274
14275 2010-10-17  Bruno Haible  <bruno@clisp.org>
14276
14277         Make use of GCC's attribute __alloc_size__.
14278         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14279         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14280         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14281         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14282         __alloc_size__.
14283         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14284         Suggested by Jim Meyering.
14285
14286 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14287
14288         bootstrap: anchor .gitignore entries.
14289         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14290         with...
14291         (insert_vc_ignore): ... this new function, which prepends `/' to
14292         all .gitignore entries before passing them to
14293         insert_sorted_if_absent.
14294
14295 2010-10-16  Bruno Haible  <bruno@clisp.org>
14296
14297         nextafter: Fix configure check.
14298         * modules/nextafter (configure.ac): Correct expected prototype.
14299
14300 2010-10-16  Bruno Haible  <bruno@clisp.org>
14301
14302         termios: Update documentation.
14303         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14304
14305 2010-10-16  Bruno Haible  <bruno@clisp.org>
14306
14307         tests: Make them compile with TinyCC.
14308         * tests/test-strstr.c (main): Remove parentheses around array
14309         initializer.
14310
14311 2010-10-15  Eric Blake  <eblake@redhat.com>
14312
14313         ignore-value: make header idempotent
14314         * lib/ignore-value.h: Add double-inclusion guards.
14315         Reported by Stefan Berger.
14316
14317 2010-10-15  Jim Meyering  <meyering@redhat.com>
14318
14319         GNUmakefile: handle "stable" target, not "major"
14320         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14321         lists in maint.mk and announce-gen.  Without this, "make stable"
14322         would fail to ensure that $(VERSION) is up to date.
14323
14324 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14325
14326         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14327         & co.
14328
14329 2010-10-14  Bruno Haible  <bruno@clisp.org>
14330
14331         vasnprintf: Don't set errno to 0.
14332         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14333         block that sets it to 0.
14334         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14335
14336 2010-10-14  Bruno Haible  <bruno@clisp.org>
14337
14338         socketlib: Fix.
14339         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14340         gl_PREREQ_SYS_H_WINSOCK2.
14341         Reported by Ian Beckwith <ianb@erislabs.net>.
14342
14343 2010-10-13  Jim Meyering  <meyering@redhat.com>
14344
14345         test-select-stdin.c: avoid warn_unused_result warnings
14346         * tests/test-select-stdin.c: Include "macros.h".
14347         ASSERT that read and fflush succeed.
14348
14349 2010-10-13  Jim Meyering  <meyering@redhat.com>
14350
14351         git-version-gen: do require git-VC'd files in cwd
14352         * build-aux/git-version-gen: Reject a git version string
14353         if there are no commits associated with the current directory.
14354         This avoids an unlikely false-positive (unrelated dir whose parent
14355         repository also contains a tag matching v*), as pointed out
14356         by Giuseppe Scrivano in
14357         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14358
14359 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         argv-iter: omit nonconforming declaration
14362         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14363         enum arg_iter_err declaration, which doesn't conform to C99.
14364         Solaris 10 cc warns about this.
14365
14366 2010-10-13  Eric Blake  <eblake@redhat.com>
14367
14368         termios: fix compilation on mingw
14369         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14370         (gl_TERMIOS_H): Adjust it on mingw.
14371         * modules/termios (Makefile.am): Substitute new key.
14372         * lib/termios.in.h (includes): Make include_next conditional.
14373         * doc/posix-headers/termios.texi (termios.h): Update
14374         documentation.
14375         Reported by Daniel P. Berrange.
14376
14377 2010-10-13  Jim Meyering  <meyering@redhat.com>
14378
14379         git-version-gen: don't require that .git/ be in the current dir
14380         * build-aux/git-version-gen: Adjust this script so that it works
14381         when run from any working directory beneath the top-level .git/-
14382         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14384
14385         test-select: avoid warn_unused_result warnings
14386         * tests/test-select.c: Include "macros.h".
14387         ASSERT that each call to read, write, and pipe succeeds.
14388         While not technically required, also check each "close".
14389         * modules/select-tests (Files): Add tests/macros.h.
14390
14391         test-symlinkat: remove declaration of unused local
14392         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14393
14394         test-inttostr: avoid shadowing warnings
14395         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14396         and use malloc rather than the stack for the same reason as
14397         mentioned in the comment justifying the other allocation.
14398
14399 2010-10-11  Bruno Haible  <bruno@clisp.org>
14400
14401         stdlib: Allow multiple gnulib generated replacements to coexist.
14402         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14403         Reported by Sam Steingold <sds@gnu.org>.
14404
14405 2010-10-11  Jim Meyering  <meyering@redhat.com>
14406
14407         fix a documentation typo
14408         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14409
14410 2010-10-11  Eric Blake  <eblake@redhat.com>
14411
14412         futimens: work around Solaris 11 bug
14413         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14414         * tests/test-futimens.h (test_futimens): Enhance, rather than
14415         weaken test.
14416         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14417
14418 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14419
14420         Indentation.
14421         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14422         higher-level operators more to the left.
14423
14424 2010-10-11  Jim Meyering  <meyering@redhat.com>
14425
14426         test-futimens: avoid unwarranted test failure on Solaris 5.11
14427         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14428         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14429         because it tries to dereference the NULL name argument.
14430
14431 2010-10-11  Bruno Haible  <bruno@clisp.org>
14432
14433         Indentation.
14434         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14435         indentation.
14436
14437 2010-10-11  Jim Meyering  <meyering@redhat.com>
14438
14439         spawn.in.h: make indentation consistent with parentheses
14440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14441         Make indentation consistent with parentheses.
14442
14443 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14444
14445         Fix mismatched parens in previous commit
14446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14447         parens.
14448
14449 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14452
14453         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14454         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14455         * lib/malloca.c: Include "verify.h".
14456         (verify1): Remove, replacing with a verify call.
14457         * lib/relocwrapper.c (verify1): Likewise.
14458         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14459         Likewise.
14460         * modules/malloca (Depends-on): Add 'verify'.
14461         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14462         * modules/vasnprintf (Depends-on): Add 'verify'.
14463         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14464         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14466         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14467         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14470
14471         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
14472
14473         Formerly the style was sometimes 2*X - 1, because the C standard
14474         was wrongly thought to disallow ?: in integral constant expressions.
14475         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
14476         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
14477         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14478         * lib/stdint.in.h (_verify_intmax_size): Likewise.
14479         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
14480         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
14481         verify that time_t cannot be floating.
14482
14483 2010-10-08  Eric Blake  <eblake@redhat.com>
14484
14485         time: enforce recent POSIX ruling that time_t is integral
14486         * lib/time.in.h (__time_t_must_be_integral): Detect any
14487         problematic systems, allowing the rest of gnulib to assume POSIX.
14488
14489 2010-10-08  Jim Meyering  <meyering@redhat.com>
14490
14491         fdopendir: fix a bug on systems lacking openat and /proc support
14492         OpenBSD 4.7 is one such system.  The most noticeable effect was
14493         failure of any application making nontrivial use of fts: rm, du,
14494         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
14495           ./rm: traversal failed: `a': Bad file descriptor
14496         Debugging that, you see that even though FD 6 was closed just
14497         prior to the opendir call in fd_clone_opendir, its resulting
14498         dir->dd_fd was 8, rather than the expected value of 6:
14499
14500         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
14501         93                close (fd);
14502         (gdb) n
14503         94                dir = fd_clone_opendir (dupfd);
14504         (gdb) n
14505         95                saved_errno = errno;
14506         (gdb) p dir->dd_fd
14507         $11 = 8
14508
14509         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
14510         The problem is that on OpenBSD, fd_clone_opendir has to resort
14511         to using the old-style save/restore CWD mechanism, due to its
14512         lack of openat/proc support, and *that* would steal the FD (6)
14513         that opendir was supposed to use.
14514
14515         The fix is to squirrel away the desired FD so that save_cwd uses a
14516         different one, and then free the dest FD right before calling opendir.
14517         That guarantees opendir will use the required file descriptor.
14518
14519         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
14520
14521 2010-10-08  Bruno Haible  <bruno@clisp.org>
14522
14523         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
14524         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
14525
14526 2010-10-08  Bruno Haible  <bruno@clisp.org>
14527
14528         nanosleep: Make replacement POSIX compliant.
14529         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
14530         is out of range.
14531         Reported by Jim Meyering.
14532
14533 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         bootstrap: add hook for altering gnulib.mk, for Bison
14536         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
14537         the Bison bootstrapping process can rewrite file names and variables
14538         in this file before later parts of 'bootstrap' use the file.
14539         Bison wants to include lib/gnulib.mk from the top-level makefile,
14540         so it needs the file names in this file to be relative to the top
14541         level, not relative to lib; plus it needs variable names to be
14542         rewritten.
14543         (slurp): Use the new function.
14544
14545         bootstrap: reformat for readability
14546         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
14547
14548 2010-10-08  Eric Blake  <eblake@redhat.com>
14549
14550         docs: update cygwin progress
14551         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
14552         1.7.7.
14553         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
14554         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
14555         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
14556         * doc/posix-functions/carg.texi (carg): Likewise.
14557         * doc/posix-functions/cargf.texi (cargf): Likewise.
14558         * doc/posix-functions/casin.texi (casin): Likewise.
14559         * doc/posix-functions/casinf.texi (casinf): Likewise.
14560         * doc/posix-functions/casinh.texi (casinh): Likewise.
14561         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
14562         * doc/posix-functions/catan.texi (catan): Likewise.
14563         * doc/posix-functions/catanf.texi (catanf): Likewise.
14564         * doc/posix-functions/catanh.texi (catanh): Likewise.
14565         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
14566         * doc/posix-functions/ccos.texi (ccos): Likewise.
14567         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
14568         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
14569         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
14570         * doc/posix-functions/cexp.texi (cexp): Likewise.
14571         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
14572         * doc/posix-functions/cimag.texi (cimag): Likewise.
14573         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
14574         * doc/posix-functions/clog.texi (clog): Likewise.
14575         * doc/posix-functions/clogf.texi (clogf): Likewise.
14576         * doc/posix-functions/conj.texi (conj): Likewise.
14577         * doc/posix-functions/conjf.texi (conjf): Likewise.
14578         * doc/posix-functions/cpow.texi (cpow): Likewise.
14579         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
14580         * doc/posix-functions/cproj.texi (cproj): Likewise.
14581         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
14582         * doc/posix-functions/creal.texi (creal): Likewise.
14583         * doc/posix-functions/crealf.texi (crealf): Likewise.
14584         * doc/posix-functions/csin.texi (csin): Likewise.
14585         * doc/posix-functions/csinf.texi (csinf): Likewise.
14586         * doc/posix-functions/csinh.texi (csinh): Likewise.
14587         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
14588         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
14589         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
14590         * doc/posix-functions/ctan.texi (ctan): Likewise.
14591         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
14592         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
14593         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
14594         * doc/posix-headers/complex.texi (complex.h): Likewise.
14595
14596 2010-10-07  Jim Meyering  <meyering@redhat.com>
14597
14598         parse-datetime: avoid compilation failure on OpenBSD 4.7
14599         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
14600         This works around a compilation failure on OpenBSD 4.7:
14601         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
14602
14603 2010-10-07  Eric Blake  <eblake@redhat.com>
14604
14605         docs: update cygwin progress
14606         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
14607         1.7.6.
14608         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14609         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
14610         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
14611         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
14612         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
14613         Likewise.
14614         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
14615         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
14616         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
14617         Likewise.
14618         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
14619         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
14620         Likewise.
14621         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
14622         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
14623         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
14624         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
14625         Likewise.
14626         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
14627         Likewise.
14628         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
14629
14630         docs: update parse-datetime history
14631         * doc/parse-datetime.texi (Authors of parse_datetime): Better
14632         documentation of this function's history and alternatives.
14633
14634         cygwin: use more robust version check
14635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
14636         exclude an eventual cygwin 1.9.1.
14637         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14639         (gl_FUNC_STRCASESTR): Likewise.
14640         Reported by Bruno Haible.
14641
14642 2010-10-06  Bruno Haible  <bruno@clisp.org>
14643
14644         string, sys_select: Avoid #including large headers unless necessary.
14645         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
14646         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
14647         OSF/1, BeOS, Haiku.
14648         Reported by Jim Meyering.
14649
14650 2010-10-05  Eric Blake  <eblake@redhat.com>
14651
14652         memmem, strstr, strcasestr: fix bug with long periodic needle
14653         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
14654         periodic needle having false positive.
14655         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
14656         and cygwin 1.7.7.
14657         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
14658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
14659         (gl_FUNC_STRCASESTR): Likewise.
14660         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14661         * tests/test-memmem.c (main): Expose the bug.
14662         * tests/test-strcasestr.c (main): Likewise.
14663         * tests/test-strstr.c (main): Likewise.
14664         * tests/test-c-strcasestr.c (main): Likewise.
14665         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
14666         * doc/posix-functions/strstr.texi (strstr): Likewise.
14667         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14668         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
14669
14670 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         parse-datetime: do some more renaming
14673         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
14674         parse_datetime, not get_date.  Mention the renaming.
14675         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
14676         in comments.
14677         * m4/bison.m4: Likewise.
14678
14679 2010-10-05  Eric Blake  <eblake@redhat.com>
14680
14681         parse-datetime: better name than get_date
14682         * NEWS: Reword the deprecation notice.
14683         * modules/get_date: Rename to modules/parse-datetime.
14684         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
14685         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
14686         * lib/get_date.y: Rename to lib/parse-datetime.y.
14687         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
14688         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
14689         * doc/getdate.texi: Provide fallback wrapper.
14690         * lib/getdate.h: Move guts, and wrap...
14691         * lib/parse-datetime.h: ...new file.
14692         * lib/parse-datetime.y (get_date): Rename...
14693         (parse_datetime): ...to this.
14694         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
14695         (gl_PARSE_DATETIME): ...to this.
14696         * doc/posix-functions/getdate.texi (get_date): Provide fallback
14697         documentation.
14698         * modules/getdate (Files): Provide fallback docs and header.
14699         (Notice, Depends-on): Update references.
14700         * tests/test-parse-datetime.c: Likewise.
14701         * DEPENDENCIES: Likewise.
14702         * MODULES.html.sh (Date and time <time.h>): Likewise.
14703         * doc/parse-datetime.texi (Date input formats)
14704         (Authors of parse_datetime): Likewise.
14705         * modules/parse-datetime (Files, configure.ac, Makefile.am)
14706         (Include): Likewise.
14707         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
14708         * gnulib-tool: Likewise.
14709         * m4/bison.m4 (gl_BISON): Likewise.
14710         Suggested by Bruno Haible.
14711
14712 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14713
14714         more ports to Solaris tr, which needs [] around ranges
14715         * gnulib-tool: Solaris tr needs [] around ranges.
14716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14717         * tests/test-pipe-filter-gi1.c (main): Likewise.
14718         * tests/test-pipe-filter-ii1.c (main): Likewise.
14719
14720 2010-10-05  Eric Blake  <eblake@redhat.com>
14721
14722         bootstrap: fix Solaris regression
14723         * build-aux/bootstrap (check_versions): Solaris tr still needs []
14724         around ranges.
14725         Reported by PĂ¡draig Brady.
14726
14727         bootstrap: work with pkg-config
14728         * build-aux/bootstrap (check_versions): Also transliterate - in
14729         prerequisite name.
14730         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
14731         prerequisites that were already found, to avoid confusion.
14732         Reported by Justin Clift.
14733
14734         faccessat: remove unused wrappers
14735         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
14736         presence of these wrappers dragged in -lgen on Solaris.
14737         Reported by Clemens Brogi; fix suggested by Paul Eggert.
14738
14739 2010-10-05  Jim Meyering  <meyering@redhat.com>
14740
14741         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
14742         * Makefile (sc_pragma_columns): New syntax-check rule.
14743
14744 2010-10-04  Bruno Haible  <bruno@clisp.org>
14745
14746         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
14747         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
14748         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
14749         Reported by Bruce Korb and Eric Blake.
14750
14751 2010-10-04  Bruno Haible  <bruno@clisp.org>
14752
14753         threadlib: Make option --with-libpth-prefix work.
14754         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
14755         use $LIBPTH, not just -lpth.
14756
14757 2010-10-04  Bruno Haible  <bruno@clisp.org>
14758
14759         Avoid line length limitation from HP NonStop system header files.
14760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
14761         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
14762         * lib/ctype.in.h: Likewise.
14763         * lib/dirent.in.h: Likewise.
14764         * lib/errno.in.h: Likewise.
14765         * lib/fcntl.in.h: Likewise.
14766         * lib/float.in.h: Likewise.
14767         * lib/getopt.in.h: Likewise.
14768         * lib/iconv.in.h: Likewise.
14769         * lib/inttypes.in.h: Likewise.
14770         * lib/langinfo.in.h: Likewise.
14771         * lib/locale.in.h: Likewise.
14772         * lib/math.in.h: Likewise.
14773         * lib/netdb.in.h: Likewise.
14774         * lib/netinet_in.in.h: Likewise.
14775         * lib/poll.in.h: Likewise.
14776         * lib/pthread.in.h: Likewise.
14777         * lib/pty.in.h: Likewise.
14778         * lib/sched.in.h: Likewise.
14779         * lib/se-selinux.in.h: Likewise.
14780         * lib/search.in.h: Likewise.
14781         * lib/signal.in.h: Likewise.
14782         * lib/spawn.in.h: Likewise.
14783         * lib/stdarg.in.h: Likewise.
14784         * lib/stddef.in.h: Likewise.
14785         * lib/stdint.in.h: Likewise.
14786         * lib/stdio.in.h: Likewise.
14787         * lib/stdlib.in.h: Likewise.
14788         * lib/string.in.h: Likewise.
14789         * lib/strings.in.h: Likewise.
14790         * lib/sys_file.in.h: Likewise.
14791         * lib/sys_ioctl.in.h: Likewise.
14792         * lib/sys_select.in.h: Likewise.
14793         * lib/sys_socket.in.h: Likewise.
14794         * lib/sys_stat.in.h: Likewise.
14795         * lib/sys_time.in.h: Likewise.
14796         * lib/sys_times.in.h: Likewise.
14797         * lib/sys_utsname.in.h: Likewise.
14798         * lib/sys_wait.in.h: Likewise.
14799         * lib/sysexits.in.h: Likewise.
14800         * lib/termios.in.h: Likewise.
14801         * lib/time.in.h: Likewise.
14802         * lib/unistd.in.h: Likewise.
14803         * lib/wchar.in.h: Likewise.
14804         * lib/wctype.in.h: Likewise.
14805         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
14806         * modules/ctype (Makefile.am): Likewise.
14807         * modules/dirent (Makefile.am): Likewise.
14808         * modules/errno (Makefile.am): Likewise.
14809         * modules/fcntl-h (Makefile.am): Likewise.
14810         * modules/float (Makefile.am): Likewise.
14811         * modules/getopt-posix (Makefile.am): Likewise.
14812         * modules/iconv-h (Makefile.am): Likewise.
14813         * modules/inttypes (Makefile.am): Likewise.
14814         * modules/langinfo (Makefile.am): Likewise.
14815         * modules/locale (Makefile.am): Likewise.
14816         * modules/math (Makefile.am): Likewise.
14817         * modules/netdb (Makefile.am): Likewise.
14818         * modules/netinet_in (Makefile.am): Likewise.
14819         * modules/poll-h (Makefile.am): Likewise.
14820         * modules/pthread (Makefile.am): Likewise.
14821         * modules/pty (Makefile.am): Likewise.
14822         * modules/sched (Makefile.am): Likewise.
14823         * modules/search (Makefile.am): Likewise.
14824         * modules/selinux-h (Makefile.am): Likewise.
14825         * modules/signal (Makefile.am): Likewise.
14826         * modules/spawn (Makefile.am): Likewise.
14827         * modules/stdarg (Makefile.am): Likewise.
14828         * modules/stddef (Makefile.am): Likewise.
14829         * modules/stdint (Makefile.am): Likewise.
14830         * modules/stdio (Makefile.am): Likewise.
14831         * modules/stdlib (Makefile.am): Likewise.
14832         * modules/string (Makefile.am): Likewise.
14833         * modules/strings (Makefile.am): Likewise.
14834         * modules/sys_file (Makefile.am): Likewise.
14835         * modules/sys_ioctl (Makefile.am): Likewise.
14836         * modules/sys_select (Makefile.am): Likewise.
14837         * modules/sys_socket (Makefile.am): Likewise.
14838         * modules/sys_stat (Makefile.am): Likewise.
14839         * modules/sys_time (Makefile.am): Likewise.
14840         * modules/sys_times (Makefile.am): Likewise.
14841         * modules/sys_utsname (Makefile.am): Likewise.
14842         * modules/sys_wait (Makefile.am): Likewise.
14843         * modules/sysexits (Makefile.am): Likewise.
14844         * modules/termios (Makefile.am): Likewise.
14845         * modules/time (Makefile.am): Likewise.
14846         * modules/unistd (Makefile.am): Likewise.
14847         * modules/wchar (Makefile.am): Likewise.
14848         * modules/wctype (Makefile.am): Likewise.
14849
14850 2010-10-04  Bruno Haible  <bruno@clisp.org>
14851
14852         read-file tests: Avoid a test failure on NonStop Kernel.
14853         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
14854         a regular file.
14855         Reported by Joachim Schmitz <schmitz@hp.com>.
14856
14857 2010-10-03  Bruno Haible  <bruno@clisp.org>
14858
14859         gnulib-tool: Fixes for --create-testdir with --libtool.
14860         * gnulib-tool (func_get_automake_snippet): Don't augment
14861         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
14862         an executable.
14863         (func_create_testdir): Handle module 'alloca' like func_import.
14864         Reported by Bruce Korb <bruce.korb@gmail.com>.
14865
14866 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14867
14868         Avoid some lines longer than 80 characters.
14869         * lib/stdint.in.h: Break long comment lines.
14870         * lib/math.in.h: Likewise.
14871         (_GL_NUM_UINT_WORDS): New macro, for readability.
14872         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
14873         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
14874         * lib/stdlib.in.h: Likewise.
14875         * lib/spawn.in.h: Likewise.
14876         * lib/sys_socket.in.h: Update an URL.
14877         * lib/sys_stat.in.h: Break long line.
14878
14879 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
14880
14881         Improve pmccabe2html.
14882         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
14883         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
14884         when the sources change. Remove the line in the HTML about "Used
14885         ranges" (which implied that there might be other unused ranges),
14886         rename "Resume" to "Summary" (easier to understand for more users).
14887         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
14888         styles, and some unnecessary blank lines.
14889
14890 2010-10-03  Bruno Haible  <bruno@clisp.org>
14891             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14892
14893         acl: Add support for ACLs on NonStop Kernel.
14894         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
14895         Check whether the function aclsort() exists.
14896         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
14897         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
14898         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14899         (acl_nontrivial [HAVE_ACLSORT]: New function.
14900         (file_has_acl): Implement for NonStop Kernel.
14901         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14902         (qset_acl): Implement for NonStop Kernel.
14903         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
14904         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
14905         (main): Implement for NonStop Kernel.
14906         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
14907         Kernel. Handle this flavor.
14908         * tests/test-set-mode-acl.sh: Likewise.
14909         * tests/test-copy-acl.sh: Likewise.
14910         * tests/test-copy-file.sh: Likewise.
14911
14912 2010-10-03  Bruno Haible  <bruno@clisp.org>
14913
14914         Info about ACLs on NonStop Kernel.
14915         * doc/acl-resources.txt: Add info about NonStop Kernel.
14916         References by Joachim Schmitz <schmitz@hp.com>.
14917
14918 2010-10-02  Bruno Haible  <bruno@clisp.org>
14919
14920         Define missing EDQUOT on NonStop Kernel.
14921         * lib/errno.in.h (EDQUOT): Assign a value if missing.
14922         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
14923         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
14924         missing.
14925         * doc/posix-headers/errno.texi: Mention the NSK bug.
14926         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
14927         Reported by Joachim Schmitz <schmitz@hp.com>.
14928
14929 2010-10-02  Bruno Haible  <bruno@clisp.org>
14930
14931         Update doc for POSIX:2008.
14932         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
14933         Update URL of POSIX specification.
14934
14935 2010-10-02  Bruno Haible  <bruno@clisp.org>
14936
14937         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
14938         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
14939         from gnulib, not from Automake.
14940
14941 2010-10-02  Bruno Haible  <bruno@clisp.org>
14942
14943         New module 'system-posix'.
14944         * modules/system-posix: New file.
14945         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
14946         module is present.
14947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
14948         GNULIB_SYSTEM_POSIX.
14949         * modules/stdlib (Depends-on): Remove sys_wait.
14950         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
14951         * doc/posix-functions/system.texi: Mention the new module.
14952         * doc/posix-headers/stdlib.texi: Likewise.
14953         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
14954         define test_sys_wait_macros to a no-op.
14955         Reported by Sam Steingold <sds@gnu.org>.
14956
14957 2010-09-30  Bruno Haible  <bruno@clisp.org>
14958
14959         More renaming from 'getdate' to 'get_date'.
14960         * doc/get_date.texi: Renamed from doc/getdate.texi.
14961         * modules/get_date (Files): Update.
14962         * MODULES.html.sh (Date and time <time.h>): Update.
14963         * DEPENDENCIES: Update.
14964         * gnulib-tool: Update comment.
14965         * m4/bison.m4 (gl_BISON): Likewise.
14966         * m4/get_date.m4 (gl_GET_DATE): Likewise.
14967
14968 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
14969
14970         bootstrap: support ACLOCAL_FLAGS during aclocal
14971         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
14972         can add additional -I dir for third-party .m4 files.
14973
14974 2010-09-30  Eric Blake  <eblake@redhat.com>
14975
14976         bootstrap: use glibtoolize on MacOS
14977         * build-aux/bootstrap (check_versions): Convert libtool into
14978         libtoolize.
14979         (tool search): Move libtool check earlier, and look for
14980         glibtoolize for MacOS.
14981         (gnulib_tool_options): Auto-add --libtool when appropriate.
14982         Reported by Justin Clift.
14983
14984         poll: fix typo that broke test on MacOS
14985         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
14986         Reported by Justin Clift.
14987
14988         getdate: rename to get_date
14989         Note: getdate.h is not renamed, to minimize client impact.
14990         * modules/getdate: Mark obsolete.  Move old contents...
14991         * modules/get_date: ...to new module name.
14992         * modules/getdate-tests: Move...
14993         * modules/get_date-tests: ...here.
14994         * m4/getdate.m4: Move...
14995         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
14996         * lib/getdate.y: Move...
14997         * lib/get_date.y: ...here.
14998         * tests/test-getdate.c: Move...
14999         * tests/test-get_date.c: ...here.
15000         * doc/posix-functions/getdate.texi (getdate): Update name.
15001         * NEWS: Mention the change.
15002
15003 2010-09-29  Bruno Haible  <bruno@clisp.org>
15004
15005         Separate the module 'waitpid' from the module 'sys_wait'.
15006         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15007         present.
15008         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15009         gl_MODULE_INDICATOR_FOR_TESTS.
15010         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15011         * modules/sys_wait (Depends-on): Remove waitpid.
15012         (Makefile.am): Substitute GNULIB_WAITPID.
15013         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15014         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15015         signature only if the 'waitpid' module is present.
15016         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15017         * NEWS: Mention the change.
15018         * modules/grantpt (Depends-on): Add waitpid.
15019         * modules/wait-process (Depends-on): Likewise.
15020
15021 2010-09-29  Bruno Haible  <bruno@clisp.org>
15022
15023         More tests for module 'sys_wait'.
15024         * modules/sys_wait-c++-tests: New file.
15025         * tests/test-sys_wait-c++.cc: New file.
15026         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15027         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15028
15029 2010-09-29  Bruno Haible  <bruno@clisp.org>
15030
15031         New module 'waitpid'.
15032         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15033         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15034         Don't include <process.h>.
15035         (waitpid): Declare only, using modern idiom.
15036         * m4/waitpid.m4: New file.
15037         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15038         * modules/waitpid: New file.
15039         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15040         (Makefile.am): Update.
15041         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15042
15043 2010-09-28  Bruno Haible  <bruno@clisp.org>
15044
15045         poll: Assume ANSI C.
15046         * lib/poll.c (poll): Use an ANSI C declaration.
15047
15048 2010-09-28  Bruno Haible  <bruno@clisp.org>
15049
15050         poll-h: Create poll.h on all platforms.
15051         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15052         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15053         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15054         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15055         (gl_REPLACE_POLL_H): Don't set POLL_H.
15056         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15057         * modules/poll-h (Depends-on): Add include_next.
15058         (Makefile.am): Create poll.h unconditionally. Substitute also
15059         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15060
15061 2010-09-28  Bruno Haible  <bruno@clisp.org>
15062
15063         Tests for module 'poll-h'.
15064         * modules/poll-h-c++-tests: New file.
15065         * tests/test-poll-h-c++.cc: New file.
15066
15067         Tests for module 'poll-h'.
15068         * modules/poll-h-tests: New file.
15069         * tests/test-poll-h.c: New file.
15070
15071 2010-09-28  Bruno Haible  <bruno@clisp.org>
15072
15073         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15074         * modules/poll-h (Depends-on): Add 'extensions'.
15075
15076 2010-09-28  Bruno Haible  <bruno@clisp.org>
15077
15078         New module 'poll-h'.
15079         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15080         (poll): Use modern idiom.
15081         * modules/poll-h: New file.
15082         * modules/poll (Files): Remove lib/poll.in.h.
15083         (Depends-on): Add poll-h.
15084         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15085         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15086         * m4/poll_h.m4: New file.
15087         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15088         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15089         and invoke gl_REPLACE_POLL_H.
15090         * lib/poll.c: Use common idiom.
15091         * tests/test-poll.c: Likewise.
15092         * doc/posix-headers/poll.texi: Mention the poll-h module.
15093         Suggested by Eric Blake.
15094
15095 2010-09-26  Bruno Haible  <bruno@clisp.org>
15096
15097         sys_wait: Implement WSTOPSIG.
15098         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15099         Reported by Simon Josefsson.
15100
15101 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15102
15103         stdlib, sys_wait: Avoid compilation error on mingw.
15104         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15105
15106 2010-09-26  Bruno Haible  <bruno@clisp.org>
15107
15108         stdlib tests: Avoid code duplication.
15109         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15110         * modules/sys_wait-tests (Files): Likewise.
15111         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15112         * tests/test-stdlib.c: Include test-sys_wait.h.
15113         (main): Invoke test_sys_wait_macros.
15114         * tests/test-sys_wait.c: Include test-sys_wait.h.
15115         (main): Invoke test_sys_wait_macros.
15116
15117 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15118
15119         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15120         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15121         sure Windows sockets are working before calling getaddrinfo.
15122         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15123         * doc/gnulib.texi (Windows sockets): Fix typo.
15124
15125 2010-09-25  Bruno Haible  <bruno@clisp.org>
15126
15127         Tests for module 'regex-quote'.
15128         * modules/regex-quote-tests: New file.
15129         * tests/test-regex-quote.c: New file.
15130
15131         New module 'regex-quote'.
15132         * lib/regex-quote.h: New file.
15133         * lib/regex-quote.c: New file.
15134         * modules/regex-quote: New file.
15135         Suggested by Reuben Thomas <rrt@sc3d.org>.
15136
15137 2010-09-24  Bruno Haible  <bruno@clisp.org>
15138
15139         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15140         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15141
15142 2010-09-23  Bruno Haible  <bruno@clisp.org>
15143
15144         setenv: Relax license.
15145         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15146         Blake.
15147         Requested by Eric Blake.
15148
15149 2010-09-22  Bruno Haible  <bruno@clisp.org>
15150
15151         termios: Relax license.
15152         * modules/termios (License): Change to LGPLv2+.
15153         Requested by Eric Blake.
15154
15155 2010-09-22  Bruno Haible  <bruno@clisp.org>
15156
15157         threadlib: Allow the package to change the default to 'no'.
15158         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15159         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15160         Reported by Paul Eggert.
15161
15162 2010-09-22  PĂ¡draig Brady  <P@draigbrady.com>
15163             Bruno Haible  <bruno@clisp.org>
15164
15165         Fix endless loop in mbmemcasecoll.
15166         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15167         byte.
15168         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15169
15170 2010-09-22  Bruno Haible  <bruno@clisp.org>
15171
15172         Tests for module 'memcoll'.
15173         * modules/memcoll-tests: New file.
15174         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15175
15176         memcoll, xmemcoll: Clarify size vs. length.
15177         * modules/memcoll.c (memcoll0): Clarify specification.
15178         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15179         passed to collate_error.
15180
15181 2010-09-22  Bruno Haible  <bruno@clisp.org>
15182
15183         Tests for module 'memcasecmp'.
15184         * modules/memcasecmp-tests: New file.
15185         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15186
15187 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15188
15189         * lib/pthread.in.h: Add split double-inclusion guard, and include
15190         system <pthread.h> if there is one.  Use @@-style as in other
15191         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15192         pthread.h doesn't.
15193         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15194         (pthread_mutexattr_settype, pthread_mutex_trylock):
15195         New static inline functions, if there's no system <pthread.h>.
15196         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15197         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15198         Approximate with mutexes if the system lacks spinlocks, as in
15199         MacOS.
15200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15201         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15202         @@-style.  Check for spinlocks separately.
15203         (gl_PTHREAD_DEFAULTS): New macro.
15204         * modules/pthread: Redo to use a more typical style for in.h files.
15205
15206 2010-09-21  Eric Blake  <eblake@redhat.com>
15207
15208         net_if: enhance tests
15209         * tests/test-net_if.c (main): Move signature checks earlier.
15210         Print failures to stderr.
15211         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15212         Document the bug that we do not yet fix.
15213
15214 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15215
15216         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15217         about gnulib, not GSS.
15218
15219 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15220
15221         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15222         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15223         for Emacs.
15224         * build-aux/pmccabe2html: Make Makefile.am example code more
15225         cut-and-paste friendly.
15226
15227 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15228
15229         * tests/test-net_if.c: New file.
15230         * modules/net_if-tests: New file.
15231
15232 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15233
15234         pthread: add pthread_spin_destroy
15235         * lib/pthread.in.h (pthread_spin_destroy): New function.
15236
15237 2010-09-19  Bruno Haible  <bruno@clisp.org>
15238
15239         gnulib-tool: Fix --help output.
15240         * gnulib-tool (func_usage): Fix help message.
15241         Reported by Reuben Thomas <rrt@sc3d.org>.
15242
15243 2010-09-18  Jim Meyering  <meyering@redhat.com>
15244
15245         maint.mk: avoid unexpanded \n in two diagnostics
15246         * top/maint.mk (sc_prohibit_always_true_header_tests):
15247         Don't use a literal \n in a halt=... assignment.  It would not be
15248         expanded, and the two \n bytes would appear in the diagnostic output
15249         rather than the desired newline.  Use halt=$$(printf ... instead.
15250         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15251
15252 2010-09-18  Bruno Haible  <bruno@clisp.org>
15253
15254         netinet_in: Doc tweak.
15255         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15257
15258 2010-09-18  Jim Meyering  <meyering@redhat.com>
15259
15260         init.sh: correct an outdated comment
15261         * tests/init.sh (create_exe_shims_):  s/function/alias/
15262
15263         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15264         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15265         a file named "*.exe" is removed between the glob expansion and the
15266         processing of that oddly named file.
15267
15268 2010-09-17  Eric Blake  <eblake@redhat.com>
15269
15270         mirbsd: add some more support
15271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15272         in BSD family.
15273         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15274         devices as OpenBSD.
15275         * m4/host-os.m4 (mirbsd): Add MirBSD.
15276
15277         tests: fix unportable assumption on sys/wait.h
15278         * tests/test-sys_wait.c (main): Relax test.
15279         * tests/test-stdlib.c (main): Likewise.
15280
15281         init.sh: accomodate directory with no .exes
15282         * tests/init.sh: Accomodate directory containing only scripts.
15283
15284         tests: avoid compiler warning
15285         * tests/test-stdlib.c (main): Use the variable.
15286
15287         fdutimens, fdutimensat: update signature, again
15288         * lib/utimens.h (gl_futimens): Delete, and move signature...
15289         (fdutimens): ...here.
15290         (fdutimensat): Rearrange signature.
15291         (lutimensat): Rename variable for clarity.
15292         * lib/fdutimensat.c (fdutimensat): Update signature.
15293         * lib/utimens.c (fdutimens): Likewise.
15294         (gl_futimens): Delete.
15295         (utimens, lutimens): Update callers.
15296         * lib/futimens.c (futimens): Likewise.
15297         * tests/test-fdutimensat.c: Likewise.
15298         * tests/test-utimens.c: Likewise.
15299         * tests/test-futimens.h: Update comment.
15300         * NEWS: Mention this.
15301         Suggested by Paul Eggert.
15302
15303 2010-09-17  Bruno Haible  <bruno@clisp.org>
15304
15305         Take over the maintenance of some older macros from Autoconf.
15306         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15307         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15308         GNU Autoconf.
15309         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15310         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15311
15312 2010-09-17  Eric Blake  <eblake@redhat.com>
15313
15314         fdutimensat: drop atflag validation
15315         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15316         with valid fd, to close a race scenario where futimens is
15317         unsupported and FILE was replaced by a symlink.
15318         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15319         accordingly.
15320         Suggested by Paul Eggert.
15321
15322 2010-09-16  Bruno Haible  <bruno@clisp.org>
15323
15324         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15325         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15326
15327 2010-09-16  Bruno Haible  <bruno@clisp.org>
15328
15329         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15330         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15331         login_tty exists.
15332         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15333
15334 2010-09-16  Bruno Haible  <bruno@clisp.org>
15335
15336         login_tty: Make the replacement code work on BSD systems.
15337         * lib/login_tty.c: Include <sys/ioctl.h>.
15338         (login_tty): Use ioctl TIOCSCTTY when available.
15339         * modules/login_tty (Depends-on): Add sys_ioctl.
15340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15341
15342 2010-09-16  Bruno Haible  <bruno@clisp.org>
15343
15344         login_tty: Stricter unit test.
15345         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15346         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15347         and tcgetsid() after login_tty.
15348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15349
15350 2010-09-16  Bruno Haible  <bruno@clisp.org>
15351
15352         New module 'tcgetsid'.
15353         * lib/tcgetsid.c: New file.
15354         * m4/tcgetsid.m4: New file.
15355         * modules/tcgetsid: New file.
15356         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15357         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15358         GNULIB_TCGETSID, HAVE_TCGETSID.
15359         * lib/termios.in.h: Include <sys/types.h>.
15360         (tcgetsid): New declaration.
15361         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15362         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15363         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15364         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15365
15366 2010-09-16  Bruno Haible  <bruno@clisp.org>
15367
15368         Tests for module 'termios'.
15369         * modules/termios-c++-tests: New file.
15370         * modules/termios-tests: New file.
15371         * tests/test-termios-c++.cc: New file.
15372         * tests/test-termios.c: New file.
15373
15374         New module 'termios'.
15375         * modules/termios: New file.
15376         * lib/termios.in.h: New file.
15377         * m4/termios_h.m4: New file.
15378         * doc/posix-headers/termios.texi: Mention the new module.
15379
15380 2010-09-16  Eric Blake  <eblake@redhat.com>
15381
15382         fdutimensat: add an atflag parameter
15383         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15384         * lib/utimens.h (fdutimensat): Update prototype.
15385         * tests/test-fdutimensat.c: Adjust test to match.
15386         * NEWS: Document the change.
15387         Suggested by Paul Eggert.
15388
15389 2010-09-16  Bruno Haible  <bruno@clisp.org>
15390
15391         Fix typos in comments.
15392         * lib/striconveh.h: Fix typo in comment.
15393         * lib/login_tty.c (login_tty): Likewise.
15394
15395 2010-09-15  Bruno Haible  <bruno@clisp.org>
15396
15397         stdlib: clarify MirBSD WEXITSTATUS bug
15398         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15399         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15400
15401 2010-09-15  Eric Blake  <eblake@redhat.com>
15402
15403         stdlib: work around MirBSD WEXITSTATUS bug
15404         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15405         * modules/stdlib (Depends-on): Add sys_wait.
15406         * tests/test-sys_wait.c (main): Enhance test.
15407         * tests/test-stdlib.c (main): Likewise.
15408         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15409
15410         docs: mention MacOS issue with WEXITSTATUS(constant)
15411         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15412         issue.
15413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15414
15415         strnlen: add tests
15416         * modules/strnlen-tests: New file.
15417         * tests/test-strnlen.c: Likewise.
15418
15419 2010-09-14  Bruno Haible  <bruno@clisp.org>
15420
15421         unistr/base: Avoid link errors when module 'libunistring' is also used.
15422         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15423         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15424         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15425         Declare also when HAVE_LIBUNISTRING is set.
15426         Reported by PĂ¡draig Brady <P@draigbrady.com>.
15427
15428 2010-09-14  Eric Blake  <eblake@redhat.com>
15429
15430         test-rawmemchr: make more robust
15431         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15432         (Depends-on, configure.ac): Add needed prerequisites to use it.
15433         * modules/memchr-tests (Files, Depends-on, configure.ac):
15434         Likewise, to avoid implicit reliance on memchr module prereqs.
15435         * tests/test-memchr.c (main): Ensure proper masking.
15436         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15437         reads.
15438
15439         memchr: detect glibc Alpha bug
15440         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15442         Alpha.
15443         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15444         * tests/test-memchr.c (main): Enhance test.
15445         Reported by Nelson H. F. Beebe.
15446
15447 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15448
15449         fts, getcwd, glob: audit for dirfd returning -1
15450         * lib/fts.c (opendir): Remove #define; no longer used.
15451         (opendirat): New arg PDIR_FD.  All callers changed.
15452         (fts_build, _opendir2): Use new opendirat to avoid the need for
15453         dirfd, or for checking whether dirfd returns a negative value.
15454         Don't use opendir; always use openat followed by fdopendir.
15455         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15456         it.
15457         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15458         returns -1 here.
15459         * modules/fts (Depends-on): Remove dirfd.
15460         * modules/getcwd (Depends-on): Likewise.
15461
15462 2010-09-13  Eric Blake  <eblake@redhat.com>
15463
15464         float: fix broken MirBSD header
15465         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15466         * doc/posix-headers/float.texi (float.h): Document it.
15467
15468 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15469
15470         fts: use O_NOFOLLOW to avoid race condition when opening a directory
15471         * lib/fts.c (opendirat): New arg extra_flags.
15472         (__opendir2): Use it to avoid following symlinks when opening
15473         a directory, if symlinks are not supposed to be followed.  See
15474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
15475
15476         fdopendir: preserve argument fd before returning
15477         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
15478         (fdopendir_with_dup, fd_clone_opendir): New static functions.
15479         (fdopendir): Use them, arranging for FD to be open to the same
15480         directory that it was when it started.  (It might be temporarily
15481         closed while fdopendir is running, so this not thread- or
15482         signal-safe.)  Be careful to do the right thing even when file
15483         descriptors are scarce and dup fails with errno == EMFILE.  See
15484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
15485
15486 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
15487
15488         regex: Pass the system regex if its only problem is 32-bit regoff_t.
15489         * NEWS: Document change.
15490         * m4/regex.m4: Disable test for regoff_t size.
15491
15492 2010-09-13  Jim Meyering  <meyering@redhat.com>
15493
15494         fts: don't operate on an invalid file descriptor after failed dup
15495         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
15496         negative file descriptor.
15497
15498 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         savedir: add streamsavedir, deprecate fdsavedir
15501         * NEWS: Mention deprecation of fdsavedir.
15502         * lib/savedir.c (streamsavedir): New extern function, whose name
15503         ends in "savedir" to be consistent with the others.  This differs
15504         from savedirstream in that it doesn't close its argument.  The
15505         next version of GNU tar will use this instead of fdsavedir, to
15506         avoid some race conditions and conserve file descriptors.
15507         (savedirstream): Reimplement as a wrapper around streamsavedir.
15508         (fdsavedir): Add a comment deprecating this function.  As far as
15509         I know, only GNU tar used it, and GNU tar doesn't need it any more.
15510         * lib/savedir.h (streamsavedir): New decl.
15511         (fdsavedir): Add a comment deprecating this.
15512
15513 2010-09-10  Bruno Haible  <bruno@clisp.org>
15514
15515         langinfo: Fix last commit.
15516         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
15517         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
15518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15519
15520 2010-09-10  Bruno Haible  <bruno@clisp.org>
15521
15522         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
15523         * lib/progreloc.c (O_EXEC): Define fallback.
15524
15525 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15526
15527         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
15528         * NEWS: Document recent changes to fcntl-h.
15529         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
15530         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
15531         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
15532         Similarly for O_SEARCH; this last was already true, but not documented.
15533         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
15534         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
15535         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
15536         Likewise.
15537         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
15538         is zero, not whether it is defined.
15539         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
15540         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
15541         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
15542
15543 2010-09-10  Bruno Haible  <bruno@clisp.org>
15544
15545         langinfo, nl_langinfo: Fix for IRIX 5.3.
15546         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
15547         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
15548         HAVE_LANGINFO_YESEXPR.
15549         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
15550         HAVE_LANGINFO_YESEXPR.
15551         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
15552         HAVE_LANGINFO_T_FMT_AMPM is 0.
15553         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
15554         HAVE_LANGINFO_YESEXPR is 0.
15555         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
15556         NOEXPR.
15557         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
15558         * doc/posix-functions/nl_langinfo.texi: Likewise.
15559         Reported by Eric Blake.
15560
15561 2010-09-10  Bruno Haible  <bruno@clisp.org>
15562
15563         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
15564         * doc/glibc-functions/login_tty.texi: Mention the include file problem
15565         on FreeBSD 8.0 and OpenBSD 4.6.
15566         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
15567         * m4/pty_h.m4 (gl_PTY_H): Likewise.
15568         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
15569         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
15570         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
15571         ac_includes_default.
15572         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15573
15574 2010-09-09  Eric Blake  <eblake@redhat.com>
15575
15576         strsignal: work around NetBSD bug
15577         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
15578         * lib/string.in.h (includes): Likewise.
15579         * doc/posix-functions/strsignal.texi (strsignal): Document the
15580         bug.
15581         Reported by Nelson H. F. Beebe.
15582
15583         gnulib-tool: work with NetBSD /bin/sh
15584         * gnulib-tool (func_cache_var, func_cache_lookup_module)
15585         (func_get_description, func_get_comment, func_get_status)
15586         (func_get_notice, func_get_applicability, func_get_filelist)
15587         (func_get_dependencies, func_get_autoconf_early_snippet)
15588         (func_get_autoconf_snippet, func_get_automake_snippet)
15589         (func_get_include_directive, func_get_link_directive)
15590         (func_get_license, func_get_maintainer, func_import): Avoid
15591         shell syntax errors from parsing syntax extensions.
15592
15593 2010-09-09  Bruno Haible  <bruno@clisp.org>
15594
15595         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15596         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
15597         a reliable way to determine whether the 'alias' command works.
15598
15599 2010-09-08  Jim Meyering  <meyering@redhat.com>
15600
15601         init.sh: penalize a set-x-impaired shell; don't disqualify it
15602         * tests/init.sh: Too many shells corrupt application stderr when
15603         you set -x, so we can't afford to disqualify them, since at least
15604         on Irix-6.5, that would disqualify all bourne shells.
15605         Instead, use a two-pass approach.
15606         On the first pass, try to find a shell that meets the stricter
15607         condition that set -x does not corrupt stderr.
15608         If no shell meets the stricter condition, retest each candidate
15609         shell, but without that extra condition.  Finally, when
15610         VERBOSE=yes is requested and set -x might cause trouble, simply
15611         issue a warning and refrain from enabling debug output.
15612
15613 2010-09-08  Eric Blake  <eblake@redhat.com>
15614
15615         unsetenv: fix OpenBSD bug
15616         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
15617         * doc/posix-functions/unsetenv.texi (unsetenv): Update
15618         documentation.
15619         Reported by Jim Meyering.
15620
15621         strtod: work around IRIX 6.5 bug
15622         * lib/strtod.c (strtod): Reparse number on shorter string if
15623         exponent parse was invalid.
15624         * tests/test-strtod.c (main): Add check for "0x1p 2".
15625         Reported by Tom G. Christensen.
15626
15627         getopt: optimize previous patch
15628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
15629         empty variable.  Speed up awk script.
15630         Reported by Paolo Bonzini.
15631
15632 2010-09-08  Jim Meyering  <meyering@redhat.com>
15633
15634         test.sh: disqualify shells for which set -x corrupts stderr
15635         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
15636         and OpenBSD 4.7.  They make it so with "set -x", environment settings
15637         appear in stderr output.  For example, this command:
15638             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
15639         prints "P=1" on those two systems:
15640
15641 2010-09-08  Bruno Haible  <bruno@clisp.org>
15642
15643         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
15644         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
15645         commands, because some shells ignore redirections when there is an
15646         error in the command lookup.
15647         Reported by Eric Blake.
15648
15649 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
15650
15651         * lib/regex.h: Fix a mention of `regex_compile' (should be
15652         `re_compile_pattern').
15653         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
15654         (re_set_registers): Correct name of parameter in comment.
15655
15656         * doc/regex.texi: Add documentation for missing syntax flags.
15657         Remove commented-out documentation of defunct syntax option
15658         RE_NO_EMPTY_ALTS.
15659         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
15660         Add documentation of re_set_registers.
15661         Document trick to re-use a pattern buffer by setting fastmap manually.
15662         Update documentation of struct re_pattern_buffer per public members.
15663         Uncomment documentation of equivalence class operators and
15664         collating symbol operators, since they are now implemented,
15665         Explain leftmost-longest matching in relation to alternatives.
15666         Tidy documentation of substring matching.
15667         Remove POSIX documentation, which is done better in
15668         glibc, and refer the reader there. Keep BSD API documentation, as
15669         that is not readily available elsewhere.
15670
15671 2010-09-07  Eric Blake  <eblake@redhat.com>
15672
15673         getopt: handle POSIXLY_CORRECT set but not exported
15674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
15675         export state of POSIXLY_CORRECT, due to bash set -o posix.
15676         Reported by Dustin J. Mitchell.
15677
15678 2010-09-05  Bruno Haible  <bruno@clisp.org>
15679
15680         gnulib-tool: Highlight the changed options.
15681         * gnulib-tool (func_usage): Display the --import, --add-import,
15682         --remove-import explanations in bold font.
15683
15684 2010-09-06  Karl Berry  <karl@gnu.org>
15685
15686         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
15687
15688 2010-09-05  Bruno Haible  <bruno@clisp.org>
15689
15690         uniwidth/width: Update comment.
15691         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
15692         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
15693
15694 2010-09-05  Bruno Haible  <bruno@clisp.org>
15695
15696         isinf, isnan: Relax license.
15697         * modules/isinf (License): Change from GPL to LGPL, with consent from
15698         Ben Pfaff.
15699         * modules/isnan (License): Likewise.
15700         Requested by Ludovic Courtès.
15701
15702 2010-09-04  Bruno Haible  <bruno@clisp.org>
15703
15704         gnulib-tool: Help migration from --import to --add-import or --update.
15705         * gnulib-tool: Emit a verbose error message when --import is used
15706         without any module name.
15707
15708 2010-09-04  Bruno Haible  <bruno@clisp.org>
15709
15710         Update doc about gnulib-tool.
15711         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
15712         'gnulib-tool --update' in more detail.
15713         Reported by Eric Blake.
15714
15715 2010-09-04  Bruno Haible  <bruno@clisp.org>
15716
15717         gnulib-tool: Change --import. New options --add/remove-import.
15718         * gnulib-tool: New options --add-import, --remove-import.
15719         (func_usage): Document them.
15720         (have_associative): Define always.
15721         (func_import): In import mode, don't merge the specified settings with
15722         the cached settings. Implement remove-import mode.
15723         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
15724         Explain when to use them versus --import.
15725         (Simple update): Use --add-import instead of --import.
15726         * NEWS: Mention the change.
15727
15728 2010-09-04  Bruno Haible  <bruno@clisp.org>
15729
15730         * doc/gnulib-tool.texi (Initial import): Update paragraph about
15731         separate gnulib.mk.
15732
15733 2010-09-04  Bruno Haible  <bruno@clisp.org>
15734
15735         gnulib-tool: Don't talk about CVS any more.
15736         * gnulib-tool (func_usage, func_import): Write "version control"
15737         instead of CVS.
15738
15739 2010-09-04  Jim Meyering  <meyering@redhat.com>
15740
15741         maint.mk: avoid obscure sc_copyright_check failure in coreutils
15742         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
15743         false positives (whose names may be ill-chosen) when searching
15744         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
15745         would cause a false-positive.
15746
15747         avoid coreutils "make distcheck" failure
15748         Coreutils tests with an absolute build directory name that contains
15749         a space.  Not quoting this directory name caused a failure.
15750         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
15751         * tests/test-vc-list-files-cvs.sh: Likewise.
15752
15753 2010-09-04  Bruno Haible  <bruno@clisp.org>
15754
15755         gnulib-tool: Avoid error when run in a package without Makefile.am.
15756         * gnulib-tool: When collecting the m4dirs in a package that does not
15757         have a Makefile.am, eliminate those directories that contain no
15758         gnulib-cache.m4. Fix expression that counts these directories.
15759
15760 2010-09-04  Bruno Haible  <bruno@clisp.org>
15761
15762         update-copyright test: Improve output when perl is missing or too old.
15763         * tests/test-update-copyright.sh: Move test of Perl version down after
15764         the test whether Perl exists. Provide an explanation relating Perl's
15765         error message to Automake's SKIP: message.
15766
15767 2010-09-04  Bruno Haible  <bruno@clisp.org>
15768
15769         Don't augment PATH in TESTS_ENVIRONMENT.
15770         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
15771         set abs_aux_dir instead of augmenting PATH.
15772         * modules/vc-list-files-tests (Makefile.am): Likewise.
15773         * tests/test-update-copyright.sh: Augment PATH here.
15774         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
15775         path_prepend_.
15776         * tests/test-vc-list-files-git.sh: Likewise.
15777
15778 2010-09-04  Jim Meyering  <meyering@redhat.com>
15779
15780         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
15781         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
15782
15783 2010-09-04  Bruno Haible  <bruno@clisp.org>
15784
15785         strdup: Fix compilation error in C++ mode.
15786         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
15787         the macro.
15788
15789 2010-09-04  Bruno Haible  <bruno@clisp.org>
15790
15791         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
15792         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
15793         macro into a function.
15794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15795
15796 2010-09-04  Bruno Haible  <bruno@clisp.org>
15797
15798         Set PATH_SEPARATOR the same way autoconf does.
15799         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
15800         the value of PATH_SEPARATOR the same way autoconf-generated configure
15801         scripts do.
15802         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
15803         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15804
15805 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15806
15807         Set PATH_SEPARATOR the same way autoconf does.
15808         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
15809         the same way autoconf-generated configure scripts do.
15810         * posix-modules: Likewise.
15811
15812 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         hash: fix safe_hasher const typo
15815         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
15816         const; otherwise, there is a type error later.
15817
15818 2010-09-02  Jim Meyering  <meyering@redhat.com>
15819
15820         test-update-copyright.sh: require perl 5.8.0
15821         * tests/test-update-copyright.sh: Require 5.8.0,
15822         which Tom G. Christensen has confirmed is adequate,
15823         while 5.6.1 is not.
15824
15825 2010-09-02  Eric Blake  <eblake@redhat.com>
15826
15827         tests: init.sh improvements for re-exec'ing with zsh
15828         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
15829         -vx through shell re-exec.
15830         Reported by Tom G. Christensen.
15831
15832         wctype: fix typo in previous commit
15833         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
15834         Reported by Ludovic Courtès.
15835
15836 2010-09-02  Jim Meyering  <meyering@redhat.com>
15837
15838         test-update-copyright.sh: skip test if Perl is too old
15839         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
15840         Reported by Tom G. Christensen.
15841
15842 2010-09-02  Bruno Haible  <bruno@clisp.org>
15843
15844         wctype: Avoid compilation error on IRIX 6.5.30.
15845         * lib/wctype.in.h (iswblank): Declare with a replacement if
15846         REPLACE_ISWBLANK is set.
15847         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
15848         declared. Set REPLACE_ISWBLANK.
15849         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
15850         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
15851         * doc/posix-headers/wctype.texi: Likewise.
15852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15853
15854 2010-09-01  Bruno Haible  <bruno@clisp.org>
15855
15856         New module 'socketlib'.
15857         * modules/socketlib: New file.
15858         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
15859         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
15860         * modules/sockets (Depends-on): Add socketlib.
15861         Suggested by Sam Steingold <sds@gnu.org>.
15862
15863 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15864
15865         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
15866
15867         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
15868         when one needs search access to a directory but not read access.
15869         On systems where it is available, it works in some cases where
15870         O_RDONLY does not, namely on directories that are searchable but
15871         not readable, and which need only to be searchable.  If O_SEARCH
15872         is not available, fall back to the traditional method of using
15873         O_RDONLY.
15874
15875         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
15876         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
15877         when opening a directory that needs only to be searchable.
15878         * lib/chdir-safer.c (chdir_no_follow): Likewise.
15879         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
15880         * lib/openat-proc.c (openat_proc_name): Likewise.
15881         * lib/openat.c (openat_needs_fchdir): Likewise.
15882         * lib/save-cwd.c (save_cwd): Likewise.
15883         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
15884
15885 2010-08-28  Bruno Haible  <bruno@clisp.org>
15886
15887         New module 'host-cpu-c-abi'.
15888         * modules/host-cpu-c-abi: New file.
15889         * m4/host-cpu-c-abi.m4: New file, based on part of
15890         clisp/src/m4/general.m4.
15891         Requested by Sam Steingold <sds@gnu.org>.
15892
15893 2010-08-31  Eric Blake  <eblake@redhat.com>
15894         and Jim Meyering  <meyering@redhat.com>
15895
15896         hash: factor, and guard against misbehaving hasher function
15897         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
15898         of table->hasher's return value.  Also protect against a hash value
15899         so large that adding it to table->bucket results in a NULL pointer.
15900         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
15901         Use it in place of open-coded check-and-abort.
15902
15903 2010-08-30  Bruno Haible  <bruno@clisp.org>
15904
15905         hash: silence spurious clang warning
15906         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
15907         Reported by Eric Blake.
15908
15909 2010-08-30  Eric Blake  <eblake@redhat.com>
15910
15911         strstr, memmem, strcasestr: avoid leaked shell message
15912         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
15913         FreeBSD.
15914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15916
15917         tests: silence clang warning
15918         * tests/test-malloca.c (do_allocation): Avoid dead store.
15919
15920 2010-08-29  Bruno Haible  <bruno@clisp.org>
15921
15922         gettext: Fix recent mistake.
15923         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
15924
15925 2010-08-29  Bruno Haible  <bruno@clisp.org>
15926
15927         selinux-h: Offer a --without-selinux option.
15928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
15929         --without-selinux was specified, skip all tests and define
15930         HAVE_SELINUX_SELINUX_H to 0.
15931         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
15932         set LIB_SELINUX to empty.
15933         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
15934         gl_LIBSELINUX. If --without-selinux was specified, replace
15935         selinux/context.h.
15936         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
15937
15938 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15939             Bruno Haible  <bruno@clisp.org>
15940
15941         Make the module 'realloc-gnu' work again on AIX and OSF/1.
15942         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
15943         of HAVE_REALLOC.
15944         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
15945         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
15946         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
15947         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15948
15949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15950             Bruno Haible  <bruno@clisp.org>
15951
15952         Make the module 'calloc-gnu' work again on AIX and OSF/1.
15953         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
15954         HAVE_CALLOC.
15955         * lib/xmalloc.c: Update accordingly.
15956         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
15957         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
15958         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15959
15960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15961             Bruno Haible  <bruno@clisp.org>
15962
15963         Make the module 'malloc-gnu' work again on AIX and OSF/1.
15964         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
15965         HAVE_MALLOC.
15966         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
15967         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
15968         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
15969
15970 2010-08-29  Bruno Haible  <bruno@clisp.org>
15971
15972         Update modules list.
15973         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15974         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
15975         (String handling <string.h>): Add astrxfrm.
15976         (File system functions): Add readlinkat.
15977
15978 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15979
15980         Tests for module 'realloc-gnu'.
15981         * modules/realloc-gnu-tests: New file.
15982         * tests/test-realloc-gnu.c: New file.
15983
15984         Tests for module 'calloc-gnu'.
15985         * modules/calloc-gnu-tests: New file.
15986         * tests/test-calloc-gnu.c: New file.
15987
15988         Tests for module 'malloc-gnu'.
15989         * modules/malloc-gnu-tests: New file.
15990         * tests/test-malloc-gnu.c: New file.
15991
15992 2010-08-28  Bruno Haible  <bruno@clisp.org>
15993
15994         Rename module 'realloc' -> 'realloc-gnu'.
15995         * modules/realloc-gnu: New file, copied from modules/realloc.
15996         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
15997         obsolete.
15998         * modules/mgetgroups (Depends-on): Update.
15999         * doc/posix-functions/realloc.texi: Update.
16000         * NEWS: Mention the change.
16001
16002         Rename module 'calloc' -> 'calloc-gnu'.
16003         * modules/calloc-gnu: New file, copied from modules/calloc.
16004         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16005         obsolete.
16006         * doc/posix-functions/calloc.texi: Update.
16007         * NEWS: Mention the change.
16008
16009         Rename module 'malloc' -> 'malloc-gnu'.
16010         * modules/malloc-gnu: New file, copied from modules/malloc.
16011         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16012         obsolete.
16013         * modules/argp (Depends-on): Update.
16014         * modules/regex (Depends-on): Update.
16015         * doc/posix-functions/malloc.texi: Update.
16016         * NEWS: Mention the change.
16017
16018 2010-08-28  Eric Blake  <eblake@redhat.com>
16019
16020         pread, pwrite: add missing dependency
16021         * modules/pread (Depends-on): Add extensions.
16022         * modules/pwrite (Depends-on): Likewise.
16023
16024 2010-08-28  Bruno Haible  <bruno@clisp.org>
16025
16026         unistr/u*-strchr: Fix tests dependencies.
16027         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16028         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16029         Reported by Ian Beckwith <ianb@erislabs.net>.
16030
16031 2010-08-28  Bruno Haible  <bruno@clisp.org>
16032
16033         read-file: Don't occupy too much unused memory.
16034         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16035
16036 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16037             Eric Blake  <eblake@redhat.com>
16038             Bruno Haible  <bruno@clisp.org>
16039
16040         read-file: Avoid memory reallocations with regular files.
16041         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16042         (fread_file): With regular files, use the remaining length as the
16043         initial buffer size.  Check against overflow.
16044         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16045         sys_stat.
16046
16047 2010-08-28  Bruno Haible  <bruno@clisp.org>
16048
16049         ftello: Relax license.
16050         * modules/ftello (License): Relax to LGPLv2+.
16051         Reported by Eric Blake.
16052
16053 2010-08-28  Bruno Haible  <bruno@clisp.org>
16054
16055         Avoid relocwrapper link errors due to gnulib replacement functions.
16056         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16057         function.
16058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16059
16060 2010-08-28  Bruno Haible  <bruno@clisp.org>
16061
16062         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16063         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16064         defined.
16065         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16066         Suggested by Eric Blake.
16067
16068 2010-08-28  Bruno Haible  <bruno@clisp.org>
16069
16070         sys_socket, netdb: Ensure socklen_t gets defined.
16071         * modules/sys_socket (Depends-on): Add socklen.
16072         * modules/netdb (Depends-on): Likewise.
16073         * modules/getaddrinfo (Depends-on): Remove socklen.
16074         * modules/getsockopt (Depends-on): Likewise.
16075         * modules/setsockopt (Depends-on): Likewise.
16076         * tests/test-sys_socket.c: Check that socklen_t is defined.
16077         * tests/test-netdb.c: Likewise.
16078         * m4/socklen.m4: Update comments.
16079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16080
16081 2010-08-27  Eric Blake  <eblake@redhat.com>
16082
16083         login_tty: add missing dependency
16084         * modules/login_tty (Depends-on): Add pty.
16085
16086 2010-08-26  Eric Blake  <eblake@redhat.com>
16087
16088         lib-symbol-versions: fix m4 quoting
16089         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16090         format for AC_LINK_IFELSE.
16091
16092         glob: fix compile test
16093         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16094
16095         btowc: fix missing file
16096         * modules/btowc (Files): Also ship locale-fr.m4.
16097
16098         lseek: fix link test
16099         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16100         AC_LINK_IFELSE.
16101
16102         include_next: silence autoconf 2.68 warning
16103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16104         AC_COMPILE_IFELSE as special.
16105         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16106         autoconf < 2.68.
16107
16108         acl: fix compilation test
16109         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16110         AC_COMPILE_IFELSE.
16111
16112 2010-08-26  Bruno Haible  <bruno@clisp.org>
16113
16114         Modernize AC_TRY_RUN invocations.
16115         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16116         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16117         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16118         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16119         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16120         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16121         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16123         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16124         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16125         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16126         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16127         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16129         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16130         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16131         gl_MBRLEN_NUL_RETVAL): Likewise.
16132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16134         Likewise.
16135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16136         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16137         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16138         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16139         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16140         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16141         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16142         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16143         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16144         Likewise.
16145         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16146         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16148         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16150         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16151         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16152         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16153         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16155
16156 2010-08-26  Bruno Haible  <bruno@clisp.org>
16157
16158         Modernize AC_TRY_LINK invocations.
16159         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16160         AC_TRY_LINK.
16161         * m4/argp.m4 (gl_ARGP): Likewise.
16162         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16163         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16164         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16167         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16168         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16169         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16170         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16171         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16172         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16173         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16174         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16175         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16176         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16177         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16178         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16179         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16180         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16181         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16182         Likewise.
16183         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16184         Likewise.
16185         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16186         Likewise.
16187         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16189         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16190         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16191         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16192         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16193         * m4/servent.m4 (gl_SERVENT): Likewise.
16194         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16195         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16196         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16197         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16199         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16200         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16201         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16202         * modules/tsearch-tests (configure.ac): Likewise.
16203
16204 2010-08-26  Bruno Haible  <bruno@clisp.org>
16205
16206         Modernize AC_TRY_COMPILE invocations.
16207         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16208         AC_TRY_COMPILE.
16209         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16210         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16211         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16212         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16213         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16214         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16215         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16216         * m4/lock.m4 (gl_LOCK): Likewise.
16217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16219         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16221         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16222         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16223         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16225         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16226         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16227         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16228         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16229         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16230         extraneous semicolon.
16231
16232 2010-08-26  Jim Meyering  <meyering@redhat.com>
16233
16234         stat-time: relax license LGPL
16235         * modules/stat-time (License): Change from GPL to LGPL,
16236         with consent from all contributors, for use in libguile.
16237         Requested by Ludovic Courtès.
16238
16239 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16240
16241         poll: return immediately on POLLHUP.
16242         * lib/poll.c (poll): Always set timeout before wait_timeout is
16243         computed.
16244
16245 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16246
16247         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16248         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16249         rmdir ("dir/.//"), unlinkat.
16250
16251 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16252
16253         stdbool: avoid spurious failure with modern xlc
16254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16255
16256 2010-08-24  Bruno Haible  <bruno@clisp.org>
16257
16258         getloadavg: simplify code
16259         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16260         gl_have_func. Update comments.
16261
16262 2010-08-24  Eric Blake  <eblake@redhat.com>
16263
16264         getloadavg: don't define SVR4 on cygwin
16265         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16266         only define SVR4 when -lkvm is required.
16267         Reported by Yaakov Selkowitz.
16268
16269 2010-08-24  Bruno Haible  <bruno@clisp.org>
16270
16271         priv-set: fix comment
16272         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16273
16274 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         priv-set: fix comments
16277         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16278         to match code, as suggested by David Bartley in:
16279         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16280
16281 2010-08-23  Eric Blake  <eblake@redhat.com>
16282
16283         stdbool: avoid rejecting clang
16284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16285         * tests/test-stdbool.c: Enable more tests if using the system
16286         <stdbool.h> instead of the gnulib replacement.
16287         (main): Move xlc bug test to a runtime test for all compilers.
16288         Reported by Anders Kaseorg.
16289
16290         argz: fix shell quoting issue
16291         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16292         Reported by Charles Wilson.
16293
16294 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16295             Erik Faye-Lund <kusmabite@gmail.com>
16296
16297         poll, select: handle ERROR_BROKEN_PIPE.
16298         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16299         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16300         * lib/select.c (win32_compute_revents): Do not mark a pipe
16301         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16302
16303 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16304
16305         fts: allow compilation with C++
16306         * lib/fts_.h: Specify extern "C" linkage with C++.
16307
16308 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16309
16310         Fix gnulib-tool sed script de-commentation for AIX sed.
16311         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16312         sed.
16313
16314 2010-08-17  Eric Blake  <eblake@redhat.com>
16315
16316         test-stddef: test for (some) offsetof bugs
16317         * tests/test-stddef.c: Enhance test to ensure correct type of
16318         offsetof.
16319         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16320         that we are not fixing at this time.
16321
16322 2010-08-15  Bruno Haible  <bruno@clisp.org>
16323
16324         stpncpy: Allow stpncpy to be defined as a macro.
16325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16326         if it's already correctly declared.
16327         * lib/string.in.h (stpncpy): Undefine before redefining.
16328         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16329
16330 2010-08-14  Bruno Haible  <bruno@clisp.org>
16331
16332         Rename module 'memxfrm' to 'amemxfrm'.
16333         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16334         (amemxfrm): Renamed from memxfrm.
16335         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16336         (amemxfrm): Renamed from memxfrm.
16337         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16338         * NEWS: Mention the change.
16339         * MODULES.html.sh (String handling <string.h>): Update.
16340         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16341         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16342         * lib/unicase/u16-casexfrm.c: Likewise.
16343         * lib/unicase/u32-casexfrm.c: Likewise.
16344         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16345         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16346         * lib/uninorm/u16-normxfrm.c: Likewise.
16347         * lib/uninorm/u32-normxfrm.c: Likewise.
16348         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16349         memxfrm.
16350         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16351         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16352         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16353         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16354         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16355         Suggested by Paul Eggert.
16356
16357 2010-08-14  Bruno Haible  <bruno@clisp.org>
16358
16359         Tests for module 'astrxfrm'.
16360         * modules/astrxfrm-tests: New file.
16361         * tests/test-astrxfrm.c: New file.
16362
16363         New module 'astrxfrm'.
16364         * lib/astrxfrm.h: New file.
16365         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16366         * modules/astrxfrm: New file.
16367
16368 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16369
16370         regex: Tweak doc.
16371         * doc/regex.texi (Overview): Don't mention regex.c.
16372         (GNU Regular Expression Compiling): Likewise.
16373         (Match-end-of-line Operator): Mention 'not_eol'.
16374
16375 2010-08-14  Brian Gough  <bjg@gnu.org>
16376             Bruno Haible  <bruno@clisp.org>
16377
16378         git-merge-changelog: add doc relating to use with bzr and hg.
16379         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16380
16381 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16382
16383         pthread: fix pthread.h creation for srcdir != builddir
16384         * modules/pthread (Makefile.am): Fix the rule to work also in a
16385         non-srcdir build.
16386
16387 2010-08-13  Karl Berry  <karl@gnu.org>
16388
16389         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16390         * doc/posix-*/*: force line break before @url of POSIX
16391         specifications.
16392         Suggested by Werner Lemberg.
16393
16394 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16395
16396         strtod: fix const diagnostic
16397         * lib/strtod.c (strtod): Don't assign const char * to char *,
16398         as this elicits a warning from GCC when warnings are enabled.
16399
16400 2010-08-10  PĂ¡draig Brady <P@draigbrady.com>
16401         and Eric Blake  <eblake@redhat.com>
16402
16403         copy-acl: ignore ENOTSUP on HP-UX
16404         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16405         so that it is available for HP-UX.
16406         * lib/copy-acl.c (qcopy_acl): Use it.
16407         Reported by Patrick M. Callahan.
16408
16409 2010-08-10  Eric Blake  <eblake@redhat.com>
16410
16411         open, chown: relax license
16412         * modules/open (License): Change to LGPLv2+, with consent by all
16413         authors, for use in augeas.
16414         * modules/chown (License): Likewise.
16415         * modules/lchown (Likewise): Likewise.
16416         Requested by Adam Stokes.
16417
16418 2010-08-09  Karl Berry  <karl@gnu.org>
16419
16420         * build-aux/ar-lib: new file, import from Automake.
16421         * config/srclist.txt: autocheck for updates.
16422
16423 2010-08-09  Eric Blake  <eblake@redhat.com>
16424
16425         readlinkat: adjust client modules
16426         * modules/areadlinkat (Depends-on): Use readlinkat, not
16427         symlinkat.
16428         * modules/areadlinkat-with-size (Depends-on): Likewise.
16429
16430         mknod: be more vocal about danger of running tests as root
16431         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16432         root, since that is just asking for problems.
16433         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16434
16435         readlinkat: split into its own module
16436         * modules/symlinkat: Split readlinkat...
16437         * modules/readlinkat: ...into separate module.
16438         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16439         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16440         * lib/symlinkat.c (readlinkat): Move...
16441         * lib/readlinkat.c: ...into new file.
16442         * modules/symlinkat-tests: Split readlinkat test...
16443         * modules/readlinkat-tests: ...into separate module.
16444         * tests/test-symlinkat.c: Split...
16445         * tests/test-readlinkat.c: ...into new file.
16446         * NEWS: Document the split.
16447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16448         * lib/unistd.in.h (readlinkat): Likewise.
16449         Suggested by Bruno Haible.
16450
16451 2010-08-08  Bruno Haible  <bruno@clisp.org>
16452
16453         memxfrm: Speed up.
16454         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16455         that usually only one call to strxfrm is necessary for each string
16456         part.
16457         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16458
16459 2010-08-07  Karl Berry  <karl@gnu.org>
16460
16461         * doc/posix-headers/limits.texi,
16462         * doc/posix-functions/malloc.texi,
16463         * doc/posix-functions/strsignal.texi: missing @item.
16464         * doc/ld-version-script.texi: spurious leading i.
16465         * doc/regex.texi (Interval Operators): no commas inside @var.
16466
16467 2010-08-01  Bruno Haible  <bruno@clisp.org>
16468
16469         Integrate the regex documentation.
16470         * doc/gnulib.texi: Define 'cn' index.
16471         (Regular expressions): New a chapter that includes regex.texi and
16472         regexprops-generic.texi.
16473         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
16474         syntax.
16475
16476         Whitespace cleanup.
16477         * doc/regex.texi: Remove trailing spaces.
16478
16479         Add regex documentation.
16480         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
16481         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
16482         Written by Kathy A. Hargreaves and Karl Berry.
16483
16484 2010-08-01  Bruno Haible  <bruno@clisp.org>
16485
16486         link: Update documentation.
16487         * doc/posix-functions/link.texi: Update regarding Solaris.
16488
16489 2010-07-31  Bruno Haible  <bruno@clisp.org>
16490
16491         Update modules list.
16492         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
16493         (String handling <string.h>): Add memcmp2, memxfrm.
16494         (Container data structures): Add xlist, xsublist, xoset.
16495         (Core language properties): Add alignof, unused-parameter.
16496         (Process control, Numeric conversion functions <stdlib.h>): Renamed
16497         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
16498         (Unibyte characters <ctype.h>): New section.
16499         (String handling <string.h>): New section.
16500         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
16501         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
16502         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
16503         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
16504         tan, tanh, tanl, y0, y1, yn.
16505         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
16506         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
16507         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
16508         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
16509         unlockpt, vdprintf, vdprintf-posix.
16510         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
16511         (File system functions): Add concat-filename, sys_file, sys_ioctl,
16512         xconcat-filename.
16513         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
16514         getdtablesize, pipe2, pipe2-safer.
16515         (Security): New section.
16516         (Networking functions): Add accept4.
16517         (Signal handling): Add sigpipe.
16518         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
16519         mbmemcasecoll.
16520         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
16521         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
16522         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
16523         pipe-filter-ii.
16524         (Misc): Add argp-version-etc, login_tty, parse-duration.
16525
16526 2010-07-31  Bruno Haible  <bruno@clisp.org>
16527
16528         Improve doc in MODULES.html.
16529         * modules/linkat (Description): Add the word "function".
16530         * modules/mkfifo (Description): Likewise.
16531         * modules/mknod (Description): Likewise.
16532         * modules/remove (Description): Likewise.
16533         * modules/renameat (Description): Likewise.
16534         * modules/stat (Description): Likewise.
16535         * modules/symlink (Description): Likewise.
16536         * modules/unlink (Description): Likewise.
16537
16538 2010-07-31  Bruno Haible  <bruno@clisp.org>
16539
16540         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
16541         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
16542         option --enable/disable-c++ instead of --enable/disable-cxx.
16543         * NEWS: Mention the change.
16544
16545 2010-07-31  Bruno Haible  <bruno@clisp.org>
16546
16547         readlink, areadlink: Relax test a bit.
16548         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
16549         alternative to ENOTDIR.
16550         * tests/test-areadlink.h (test_areadlink): Likewise.
16551         Reported by Rainer Tammer.
16552
16553 2010-07-31  Bruno Haible  <bruno@clisp.org>
16554
16555         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
16556         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
16557         character, perform the search using U_STRCHR.
16558         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
16559         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
16560         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
16561         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
16562         Suggested by Paolo Bonzini.
16563
16564 2010-07-31  Bruno Haible  <bruno@clisp.org>
16565
16566         unistr/u*-strstr: Fix dependencies.
16567         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
16568         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
16569         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
16570
16571 2010-07-31  Bruno Haible  <bruno@clisp.org>
16572
16573         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
16574         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
16575         the beginning of the loop.
16576         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
16577         cases in 'switch' statement.
16578
16579         unistr/u8-strchr: Fix several bugs.
16580         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
16581         the string. When not found, return NULL, not a pointer near the end.
16582
16583         More tests for unistr/u8-strchr.
16584         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
16585         that the function does not read past the first occurrence of the byte
16586         being searched.
16587         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
16588         * tests/unistr/test-u16-strchr.c (main): New function.
16589         * tests/unistr/test-u32-strchr.c (main): New function.
16590
16591 2010-07-31  Bruno Haible  <bruno@clisp.org>
16592
16593         posix-modules: Ignore backup files of documentation files.
16594         * posix-modules: grep only through files named *.texi.
16595
16596 2010-07-31  Bruno Haible  <bruno@clisp.org>
16597
16598         symlinkat: Fix documentation.
16599         * doc/posix-functions/readlinkat.texi: Fix module name.
16600
16601 2010-07-31  Bruno Haible  <bruno@clisp.org>
16602
16603         fchownat: Replace also when chown has the trailing slash bug.
16604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
16605         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
16606         introduced on 2010-04-10.
16607         Reported by Rainer Tammer.
16608
16609 2010-07-31  Bruno Haible  <bruno@clisp.org>
16610
16611         linkat: Work around AIX 7.1 bug.
16612         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
16613         whether linkat handles trailing slash correctly. If not, replace linkat
16614         and define LINKAT_TRAILING_SLASH_BUG.
16615         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
16616         check whether (fd1,file1) points to a directory if file1 or file2 ends
16617         in a slash. Code taken from lib/link.c.
16618         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
16619         Reported by Rainer Tammer.
16620
16621 2010-07-31  Bruno Haible  <bruno@clisp.org>
16622
16623         Correctly determine whether pow is available in libc on AIX 7 with xlc.
16624         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
16625         This disables an xlc optimization that was causing wrong test results.
16626         Reported by Rainer Tammer.
16627
16628 2010-07-31  Bruno Haible  <bruno@clisp.org>
16629
16630         iconv: Work around AIX 6.1..7.1 bug.
16631         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
16632         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
16633         cross-compiling, guess no on all versions of AIX.
16634         Reported by Rainer Tammer.
16635
16636 2010-07-31  Bruno Haible  <bruno@clisp.org>
16637
16638         readlink: Relax test a bit.
16639         * tests/test-readlink.h (test_readlink): Allow different errno value
16640         when readlink is called with a file name that ends in / and refers to
16641         a file.
16642         Suggested by Eric Blake.
16643         Reported by Rainer Tammer.
16644
16645 2010-07-31  Bruno Haible  <bruno@clisp.org>
16646
16647         copysign: Does not require -lm on glibc systems.
16648         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
16649         gl_COMMON_DOUBLE_MATHFUNC.
16650         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
16651
16652 2010-07-31  Bruno Haible  <bruno@clisp.org>
16653
16654         duplocale: Work around AIX 7.1 bug.
16655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
16656         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
16657         * lib/duplocale.c (rpl_duplocale): Update comment.
16658         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
16659         Reported by Rainer Tammer.
16660
16661 2010-07-30  Bruno Haible  <bruno@clisp.org>
16662
16663         dirfd: Avoid link error on AIX 7.1.
16664         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
16665         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
16666         exist, set REPLACE_DIRFD.
16667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
16668         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
16669         * doc/posix-functions/dirfd.texi: Update.
16670         Reported by Rainer Tammer.
16671
16672 2010-07-30  Eric Blake  <eblake@redhat.com>
16673
16674         strtod: next round of AIX fixes
16675         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
16676         exponent.
16677         * tests/test-strtod.c (main): Enhance tests.
16678         * doc/posix-functions/strtod.texi (strtod): Document next bug.
16679         Reported by Rainer Tammer.
16680
16681         futimens: fix configure check
16682         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
16683         Reported by Bruno Haible.
16684
16685 2010-07-30  Bruno Haible  <bruno@clisp.org>
16686
16687         getline: Update regarding AIX.
16688         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
16689         Reported by Rainer Tammer.
16690
16691 2010-07-30  Bruno Haible  <bruno@clisp.org>
16692
16693         wcwidth: Drop replacement on AIX 7.
16694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
16695         AIX 7.
16696         Reported by Rainer Tammer.
16697
16698 2010-07-30  Bruno Haible  <bruno@clisp.org>
16699
16700         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
16701         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
16702         a 'char *'.
16703         Reported by Rainer Tammer.
16704
16705 2010-07-30  Bruno Haible  <bruno@clisp.org>
16706
16707         unlink: Update regarding AIX.
16708         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
16709         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
16710         Reported by Rainer Tammer.
16711
16712 2010-07-30  Bruno Haible  <bruno@clisp.org>
16713
16714         symlink: Update regarding AIX.
16715         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
16716         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
16717         Reported by Rainer Tammer.
16718
16719 2010-07-30  Bruno Haible  <bruno@clisp.org>
16720
16721         strndup: Update regarding AIX.
16722         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
16723         AIX 7.
16724         Reported by Rainer Tammer.
16725
16726 2010-07-30  Bruno Haible  <bruno@clisp.org>
16727
16728         stat: Update regarding AIX.
16729         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
16730         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
16731         Reported by Rainer Tammer.
16732
16733 2010-07-30  Bruno Haible  <bruno@clisp.org>
16734
16735         truncl: Fix autoconf test.
16736         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
16737         whether truncl works.
16738         Reported by Rainer Tammer.
16739
16740 2010-07-30  Bruno Haible  <bruno@clisp.org>
16741
16742         round: Update regarding AIX.
16743         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
16744         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
16745         Reported by Rainer Tammer.
16746
16747 2010-07-30  Bruno Haible  <bruno@clisp.org>
16748
16749         rename: Update regarding AIX.
16750         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
16751         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
16752         Reported by Rainer Tammer.
16753
16754 2010-07-30  Bruno Haible  <bruno@clisp.org>
16755
16756         printf.m4: Update regarding AIX.
16757         * m4/printf.m4: Update comments regarding AIX.
16758         Reported by Rainer Tammer.
16759
16760 2010-07-30  Bruno Haible  <bruno@clisp.org>
16761
16762         iconv: Update regarding AIX.
16763         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
16764         AIX 7.
16765         Reported by Rainer Tammer.
16766
16767 2010-07-30  Bruno Haible  <bruno@clisp.org>
16768
16769         getopt: Update regarding AIX.
16770         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
16771         no on AIX.
16772         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
16773         Reported by Rainer Tammer.
16774
16775 2010-07-30  Bruno Haible  <bruno@clisp.org>
16776
16777         ldexpl; Update regarding AIX.
16778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
16779         on AIX 7.
16780         Reported by Rainer Tammer.
16781
16782 2010-07-30  Bruno Haible  <bruno@clisp.org>
16783
16784         frexpl: Update regarding AIX.
16785         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
16786         on AIX 7.
16787         Reported by Rainer Tammer.
16788
16789 2010-07-30  Bruno Haible  <bruno@clisp.org>
16790
16791         open, fopen: Update regarding AIX.
16792         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
16793         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16794         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
16795         * doc/posix-functions/fopen.texi: Likewise.
16796         Reported by Rainer Tammer.
16797
16798 2010-07-30  Bruno Haible  <bruno@clisp.org>
16799
16800         chown: Update doc regarding AIX.
16801         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
16802         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
16803         Reported by Rainer Tammer.
16804
16805 2010-07-30  Eric Blake  <eblake@redhat.com>
16806
16807         strtod: fix bug in replacement function on AIX
16808         * lib/strtod.c (strtod): Special case broken "0x" parse in
16809         underlying strtod.
16810         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
16811         * doc/posix-functions/strtod.texi (strtod): Likewise.
16812         Reported by Rainer Tammer.
16813
16814 2010-07-30  Bruno Haible  <bruno@clisp.org>
16815
16816         mbrlen: Fix cross-compilation guess for AIX.
16817         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
16818         guess. Leftover from 2008-12-22.
16819
16820 2010-07-30  Bruno Haible  <bruno@clisp.org>
16821
16822         mbrtowc: Fix cross-compilation guess for AIX.
16823         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
16824         guess. Leftover from 2008-12-21.
16825
16826 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
16827
16828         init.sh: work around trap limitation of some shells
16829         * tests/init.sh (setup_): Move exit trap outside of shell function.
16830
16831 2010-07-29  Eric Blake  <eblake@redhat.com>
16832
16833         strtod: aid debugging
16834         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
16835         understanding why strtod is rejected.
16836
16837 2010-07-28  Bruno Haible  <bruno@clisp.org>
16838
16839         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
16840         * lib/unistr/u8-chr.c: Include <string.h>.
16841         * tests/unistr/test-u8-chr.c: Likewise.
16842         * tests/unistr/test-u16-chr.c: Likewise.
16843         * tests/unistr/test-u32-chr.c: Likewise.
16844         * tests/unistr/test-u8-strchr.c: Likewise.
16845         * tests/unistr/test-u16-strchr.c: Likewise.
16846         * tests/unistr/test-u32-strchr.c: Likewise.
16847         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
16848         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
16849         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
16850         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
16851
16852 2010-07-28  Bruno Haible  <bruno@clisp.org>
16853
16854         Use spaces for indentation, not tabs.
16855         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16856
16857 2010-07-27  Bruno Haible  <bruno@clisp.org>
16858
16859         mbspcasecmp: Fix function specification.
16860         * lib/string.in.h (mbspcasecmp): Fix specification comment.
16861         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
16862         Reported by Eric Blake <eblake@redhat.com>.
16863
16864 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
16865
16866         timespec: use cast and not conditional, as truncation isn't possible
16867         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
16868         instead of a conditional.  Comment about the situation in more detail.
16869         This undoes most of the 2009-10-29 patch.
16870
16871 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
16872
16873         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
16874         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
16875         * lib/unistr/u8-strchr.c: Likewise.
16876         * modules/unistr/u8-chr: Depend on memchr.
16877
16878         unistr/u*-strchr: add tests
16879         * modules/unistr/u8-strchr-tests: New file.
16880         * modules/unistr/u16-strchr-tests: New file.
16881         * modules/unistr/u32-strchr-tests: New file.
16882         * tests/unistr/test-strchr.h: New file.
16883         * tests/unistr/test-u8-strchr.c: New file.
16884         * tests/unistr/test-u16-strchr.c: New file.
16885         * tests/unistr/test-u32-strchr.c: New file.
16886
16887         unistr/u*-chr: test multibyte sequences more
16888         * tests/unistr/test-chr.h: Do complete testing of the characters in the
16889         test vector.
16890         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
16891         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
16892         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
16893
16894         unistr/u*-chr: test multibyte sequences
16895         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
16896
16897         unistr/u*-chr: prepare for multibyte tests
16898         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
16899         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
16900         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
16901         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
16902         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
16903         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
16904
16905 2010-07-18  Bruno Haible  <bruno@clisp.org>
16906
16907         unistr/u8-strchr: Optimize non-ASCII argument case.
16908         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
16909         because the first byte often matches anyway.
16910         Reported by PĂ¡draig Brady <P@draigbrady.com>.
16911
16912 2010-07-15  Karl Berry  <karl@gnu.org>
16913
16914         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
16915
16916 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
16917
16918         getcwd: on Solaris, work better if ancestors are inaccessible
16919         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
16920         buffer and size, try again with a large buffer.  This works better
16921         on Solaris, since its getcwd succeeds even if the path to the root
16922         is inaccessible, and this is helpful in common cases such as .zfs
16923         hidden directories.  Problem reported by J Chapman Flack in
16924         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
16925         Use system getcwd if it's declared, not merely if it's partly
16926         working; use the partly-working test only to avoid needless effort
16927         if the system getcwd fails.
16928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
16929         comment that was already obsolete and is now even more obsolete.
16930         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
16931         now might call strdup.
16932
16933 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
16934
16935         pthread: Add enough so that coreutils/src/sort.c compiles.
16936         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
16937         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
16938         gnulib. Include <sched.h> and <time.h>, as per POSIX.
16939         Include <sys/types.h>, in case it defines pthread_t.
16940         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
16941         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
16942         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
16943         (pthread_rwlockattr_t, pthread_spinlock_t):
16944         New typedefs, if HAVE_PTHREAD_T is not defined.
16945         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
16946         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
16947         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16948         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
16949         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
16950         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
16951         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
16952         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
16953         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
16954         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
16955         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
16956         New macros.
16957         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
16958         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
16959         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
16960         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
16961         (pthread_spin_unlock): New dummy functions.
16962         (pthread_create): Return EAGAIN; don't set errno.
16963         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
16964         require AC_C_INLINE.
16965         * modules/pthread (Depends-on): Add sched, time.
16966         (pthread.h): Use AM_V_GEN.
16967
16968 2010-07-13  Bruno Haible  <bruno@clisp.org>
16969
16970         striconveh: Don't malloc memory if the result buffer is sufficient.
16971         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
16972         buffer if its size is sufficient.
16973         Reported by Ludovic Courtès <ludo@gnu.org>.
16974
16975 2010-07-13  Bruno Haible  <bruno@clisp.org>
16976
16977         strtod: Add safety check.
16978         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
16979
16980 2010-07-12  Bruno Haible  <bruno@clisp.org>
16981
16982         Unify tests that set gl_cv_func_ldexpl_no_libm.
16983         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
16984         gl_FUNC_LDEXPL.
16985         (gl_FUNC_LDEXPL): Invoke it.
16986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
16987
16988 2010-07-12  Bruno Haible  <bruno@clisp.org>
16989
16990         Unify tests that set gl_cv_func_ldexp_no_libm.
16991         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
16992         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
16993         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
16994         (configure.ac): Simply invoke gl_FUNC_LDEXP.
16995         * modules/strtod (Files): Add m4/ldexp.m4.
16996
16997 2010-07-12  Bruno Haible  <bruno@clisp.org>
16998
16999         Unify tests that set gl_cv_func_frexpl_no_libm.
17000         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17001         gl_FUNC_FREXPL_NO_LIBM.
17002         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17004
17005 2010-07-12  Bruno Haible  <bruno@clisp.org>
17006
17007         Unify tests that set gl_cv_func_frexp_no_libm.
17008         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17009         gl_FUNC_FREXP_NO_LIBM.
17010         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17011         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17012
17013 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17014
17015         memcoll: clarify sizes versus lengths, document better, and tweak perf
17016         * lib/memcoll.c (strcoll_loop, memcoll0):
17017         Improve quality of descriptive comments.  Name variables
17018         consistently as to whether they are lengths (which do not include
17019         terminating null) versus sizes (which do).
17020         * lib/xmemcoll.c (xmemcoll0): Likewise.
17021         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17022         returned when s1size == 0; this is easier to compile and saves
17023         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17024
17025 2010-07-12  Bruno Haible  <bruno@clisp.org>
17026
17027         Tests for module '_Exit'.
17028         * modules/_Exit-tests: New file.
17029         * tests/test-_Exit.sh: New file.
17030         * tests/test-_Exit.c: New file.
17031
17032         New module '_Exit'.
17033         * lib/stdlib.in.h (__attribute__): New macro.
17034         (_Exit): New declaration.
17035         * lib/_Exit.c: New file.
17036         * m4/_Exit.m4: New file.
17037         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17039         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17040         * modules/_Exit: New file.
17041         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17042         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17043
17044 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17045
17046         strtod: make it more-accurate typically, and don't require libm
17047         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17048         Include limits.h.  Don't include string.h.
17049         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17050         (locale_isspace): New function, so that no casts are needed to
17051         check whether *s is a space.
17052         (ldexp): Provide an unused dummy if not available.
17053         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17054         (strtod): Use them.  This implementation prefers to use the
17055         underlying strtod if available, falling back on our own code
17056         only to fix known bugs.  This is more likely to produce an
17057         accurate result.  Also, it avoids the use of libm functions.
17058         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17059         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17060         was absent, but it caused a test failure with coreutils.
17061         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17062         with libm.
17063         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17064         * modules/strtod-tests (Makefile.am): Likewise.
17065
17066 2010-07-11  PĂ¡draig Brady  <P@draigBrady.com>
17067             Bruno Haible  <bruno@clisp.org>
17068
17069         unistr/u8-strchr: Optimize ASCII argument case.
17070         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17071
17072 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17073
17074         (x)memcoll: minor tweaks
17075         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17076         is after the type that it qualifies.
17077         (memcoll0): Likewise.
17078         * lib/memcoll.h (memcoll0): Likewise.
17079         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17080         * lib/xmemcoll.h (xmemcoll0): Likewise.
17081         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17082         differs from memcoll in that the NUL byte is part of the argument.
17083         Omit the abort-checks, as performance is a real issue here.  Plus,
17084         the checks were wrong anyway (an off-by-one error).  Omit local
17085         variable 'diff', as it's a bit clearer that way.
17086         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17087         no longer needed.
17088
17089 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17090
17091         (x)memcoll: speedup when input is known to be NUL delimited
17092         * lib/memcoll.c: Include stdlib.
17093         (memcoll0): New function.
17094         (strcoll_loop): New function, refactored for use in both memcoll
17095         and memcoll0.
17096         * lib/memcoll.h (memcoll0): Add prototype.
17097         * lib/xmemcoll.c (xmemcoll0): New function.
17098         (collate_error): New function, refactored for use in both xmemcoll
17099         and xmemcoll0.
17100         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17101         * m4/memcoll.m4: add inline invocation.
17102
17103 2010-07-06  PĂ¡draig Brady  <P@draigBrady.com>
17104
17105         * build-aux/bootstrap: Remove any local translations
17106         from the translation project synchronization directory,
17107         so that local only translations are not distributed.
17108
17109 2010-07-04  Bruno Haible  <bruno@clisp.org>
17110
17111         fsusage: Clarify which code applies to which platforms.
17112         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17113         platform.
17114         * lib/fsusage.c (get_fs_usage): Likewise.
17115
17116 2010-07-04  Bruno Haible  <bruno@clisp.org>
17117
17118         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17119         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17120         Reported by Martin Lambers <marlam@marlam.de>.
17121
17122 2010-07-04  Jim Meyering  <meyering@redhat.com>
17123
17124         hash: once again explicitly disallow insertion of NULL
17125         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17126         inserting a NULL pointer cannot work with these functions.
17127         Add a comment with details.
17128         This reverts part of the 2010-07-01 commit, 5bef1a35
17129         "hash: extend module to deal with non-pointer keys".
17130
17131 2010-07-01  Bruno Haible  <bruno@clisp.org>
17132
17133         stdbool: Update doc.
17134         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17135         Info from Christian Weisgerber <naddy@mips.inka.de>.
17136
17137 2010-07-01  Jim Meyering  <meyering@redhat.com>
17138
17139         hash: extend module to deal with non-pointer keys
17140         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17141         but that allows insertion of non-pointer entries.
17142         Do not disallow an ENTRY value of NULL.
17143         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17144         * lib/hash.h (hash_insert0): Declare.
17145
17146 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17147
17148         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17149         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17150         not present (i.e. with autoconf 2.59 and when using gettextize, not
17151         gnulib), require AC_GNU_SOURCE instead.
17152
17153 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17154
17155         idpriv-drop: Fix tests.
17156         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17157         not to the test-idpriv-droptemp program.
17158
17159 2010-06-29  Bruno Haible  <bruno@clisp.org>
17160
17161         string: Fix syntax error with g++ 2.96.
17162         * lib/string.in.h (__pure__): Remove definition.
17163         (_GL_ATTRIBUTE_PURE): New macro.
17164         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17165         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17166         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17167
17168 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17169
17170         unitypes: Fix bug introduced on 2010-05-18.
17171         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17172
17173 2010-06-22  Eric Blake  <eblake@redhat.com>
17174
17175         memmem: slight optimization
17176         * lib/str-two-way.h (critical_factorization): Update comments.
17177         Reduce work during factorization phase.
17178         Reported by Carlos Bueno <carlos@bueno.org>.
17179
17180 2010-06-21  Bruno Haible  <bruno@clisp.org>
17181
17182         Fix HAVE_CALLOC_POSIX misnomer.
17183         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17184         !HAVE_CALLOC_POSIX.
17185         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17186         HAVE_CALLOC_POSIX.
17187         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17188         instead of HAVE_CALLOC_POSIX.
17189         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17190         HAVE_CALLOC_POSIX.
17191
17192         Use modern idiom for calloc() replacement.
17193         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17194         AC_FUNC_CALLOC.
17195         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17196         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17197         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17198         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17199         (gl_REPLACE_CALLOC): New macro.
17200
17201 2010-06-21  Bruno Haible  <bruno@clisp.org>
17202
17203         Fix HAVE_REALLOC_POSIX misnomer.
17204         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17205         !HAVE_REALLOC_POSIX.
17206         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17207         HAVE_REALLOC_POSIX.
17208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17209         instead of HAVE_REALLOC_POSIX.
17210         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17211         HAVE_REALLOC_POSIX.
17212
17213         Use modern idiom for realloc() replacement.
17214         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17215         AC_FUNC_REALLOC.
17216         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17217         Autoconf's AC_FUNC_REALLOC.
17218         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17219         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17220         (gl_REPLACE_REALLOC): New macro.
17221         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17222
17223 2010-06-21  Bruno Haible  <bruno@clisp.org>
17224
17225         Fix HAVE_MALLOC_POSIX misnomer.
17226         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17227         !HAVE_MALLOC_POSIX.
17228         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17229         HAVE_MALLOC_POSIX.
17230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17231         instead of HAVE_MALLOC_POSIX.
17232         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17233         HAVE_MALLOC_POSIX.
17234
17235         Use modern idiom for malloc() replacement.
17236         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17237         AC_FUNC_MALLOC.
17238         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17239         Autoconf's AC_FUNC_MALLOC.
17240         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17241         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17242         (gl_REPLACE_MALLOC): New macro.
17243         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17244
17245 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17246
17247         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17248         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17249         This macro takes 3 arguments, not 4.
17250
17251 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17252
17253         ipv6: fix detection under mingw
17254         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17255         in6_addr.
17256
17257 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17258
17259         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17260         that strtod() works when cross-compiling to a glibc version known
17261         to work.
17262
17263 2010-06-15  Bruno Haible  <bruno@clisp.org>
17264
17265         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17266
17267 2010-06-15  RenĂ© Berber  <r.berber@computer.org>  (tiny change)
17268
17269         select: Correct timeout.
17270         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17271
17272 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17273
17274         git-version-gen: init shell var to avoid env var influence
17275         * build-aux/git-version-gen (v): Init shell var to empty.
17276
17277 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17278
17279         priv-set: Don't assume that priv.h exists merely because getppriv does.
17280         See Jan Andersen's bug report about AIX 5L in
17281         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17282         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17283         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17284         * lib/priv-set.h: Likewise.
17285         * tests/test-priv-set.c: Likewise.
17286
17287 2010-06-13  Bruno Haible  <bruno@clisp.org>
17288
17289         relocatable: Make it easier to test whether to install wrappers.
17290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17291         RELOCATABLE_VIA_WRAPPER.
17292
17293 2010-06-13  Bruno Haible  <bruno@clisp.org>
17294
17295         gnulib-tool: Display specified modules and dependencies differently.
17296         * gnulib-tool (func_show_module_list): New function.
17297         (func_import, func_create_testdir): Invoke it.
17298         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17299
17300 2010-06-13  Bruno Haible  <bruno@clisp.org>
17301
17302         gnulib-tool: Align code of func_import and func_create_testdir.
17303         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17304         specified_modules.
17305
17306 2010-06-12  Jim Meyering  <meyering@redhat.com>
17307
17308         test-inttostr: avoid spurious failure on Solaris 9
17309         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17310         to accept "%ju".  Reported by Bruno Haible.
17311
17312 2010-06-11  Jim Meyering  <meyering@redhat.com>
17313
17314         test-sys_socket: mark variables as used more readably
17315         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17316         as "used" explicitly via (void) statement casts.  This is more
17317         readable than using them in an artificial return expression.
17318         Suggestion from Bruno Haible.
17319
17320 2010-06-11  Bruno Haible  <bruno@clisp.org>
17321
17322         Avoid some more warnings from "gcc -Wwrite-strings".
17323         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17324         to 'const char *'.
17325         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17326         * tests/test-c-strcasestr.c (main): Likewise.
17327         * tests/test-mbscasestr1.c (main): Likewise.
17328         * tests/test-mbscasestr2.c (main): Likewise.
17329         * tests/test-memmem.c (main): Likewise.
17330         * tests/test-strstr.c (main): Likewise.
17331         * tests/test-strcasestr.c (main): Likewise.
17332
17333 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17334
17335         init.sh: change framework_failure_ to fail with status 99, not 1
17336         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17337         automake's parallel-tests rule that this is an unexpected failure,
17338         even if the test is listed in XFAIL_TESTS.
17339
17340 2010-06-11  Jim Meyering  <meyering@redhat.com>
17341
17342         test-inttostr: avoid warnings about 4-6KB literal strings
17343         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17344         Include "macros.h", for its definition of ASSERT.
17345         (CK): s/assert/ASSERT/
17346         * modules/inttostr-tests (Files): Add macros.h.
17347
17348         init.sh: don't use $ME_ or skip_ before they are defined
17349         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17350         their first uses.  Also hoist their companions: warn_, fail_,
17351         framework_failure_, $stderr_fileno.  Prompted by a patch from
17352         Stefano Lattarini.
17353
17354         test-sys_socket: avoid set-but-not-used warnings from gcc
17355         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17356         avoid warning about set-but-not-used variables.
17357
17358         test-xvasprintf: avoid 'const' discard warnings
17359         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17360         "const" when assigning from literal strings.
17361         (test_xasprintf): Add "void" in function argument list to placate
17362         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17363
17364         tests: avoid compilation warnings in argmatch and exclude tests...
17365         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17366         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17367         Since it always exits, declare with the "noreturn" attribute.
17368         * tests/test-argmatch.c: Likewise.
17369
17370         tests: avoid 'const' discard warnings in mbsstr tests
17371         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17372         * tests/test-mbsstr2.c (main): Likewise.
17373
17374         test-verify: avoid warning from gcc's -Wmissing-declarations
17375         * tests/test-verify.c (function): Declare to be static.
17376
17377         test-inttostr.c: include <string.h> for use of strcmp
17378         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17379
17380         test-linkat: avoid failed assertion on "other" architectures
17381         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17382         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17383         sparc: https://bugs.launchpad.net/bugs/591968
17384
17385 2010-06-11  Jim Meyering  <meyering@redhat.com>
17386
17387         printf.m4: avoid autoconf's "Expanded Before Required" warning
17388         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17389         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17390         autoconf warning.
17391
17392 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17393
17394         Replacement header templates are now named with ".in", not "_".
17395         * doc/gnulib-intro.texi: Correct.
17396
17397 2010-06-10  Jim Meyering  <meyering@redhat.com>
17398
17399         inttostr-tests: depend on snprintf, not snprintf-posix
17400         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17401         snprintf-posix, to avoid this aclocal failure:
17402           missing file gnulib-tests/vasnprintf.c
17403           configure.ac:45: error: expected source file, required through \
17404           AC_LIBSOURCES, not found
17405
17406 2010-06-10  Jim Meyering  <meyering@redhat.com>
17407
17408         inttostr: add a new function, inttostr, and tests
17409         The namesake function was not available.  The existence of the
17410         template file, inttostr.c makes its addition nontrivial.
17411         * lib/anytostr.c: Rename from inttostr.c.
17412         (anytostr): Rename from inttostr.
17413         * lib/inttostr.c: New file.
17414         * modules/inttostr (Files): Add anytostr.c.
17415         (Makefile.am): Set lib_SOURCES instead of ...
17416         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17417         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17418         * lib/offtostr.c: Likewise.
17419         * lib/uinttostr.c: Likewise.
17420         * lib/umaxtostr.c: Likewise.
17421         * modules/inttostr-tests: New file.
17422         * tests/test-inttostr.c: New file.  Test these functions.
17423
17424 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17425             Bruno Haible  <bruno@clisp.org>
17426
17427         Add "Extending Gnulib" chapter to manual.
17428         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17429         chapter.
17430         (Extending Gnulib): New chapter.
17431         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17432         chapter.
17433
17434 2010-06-09  Bruno Haible  <bruno@clisp.org>
17435
17436         Avoid relocwrapper link errors due to gnulib replacement functions.
17437         * lib/areadlink.c: Use the system's malloc, realloc functions.
17438         (areadlink): Set errno to ENOMEM explicitly.
17439         * modules/areadlink (Depends-on): Remove malloc-posix.
17440         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17441
17442 2010-06-09  Bruno Haible  <bruno@clisp.org>
17443
17444         Avoid relocwrapper link errors due to gnulib replacement functions.
17445         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17446         * lib/malloca.c: Likewise.
17447         * lib/relocatable.c: Likewise.
17448         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17449         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17450         * lib/setenv.c: Use the system's malloc, realloc functions.
17451         * lib/strerror.c: Use the system's sprintf function.
17452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17453
17454 2010-06-04  Bruno Haible  <bruno@clisp.org>
17455
17456         Prefer documented low-level autoconf macro names.
17457         * m4/lib-link.m4: Use m4_translit instead of translit.
17458         * m4/environ.m4: Likewise.
17459         * m4/mathfunc.m4: Likewise.
17460         * m4/onceonly.m4: Likewise.
17461         * m4/stdint.m4: Likewise.
17462         Suggested by Eric Blake.
17463
17464 2010-06-04  Martin Lambers  <marlam@marlam.de>
17465             Bruno Haible  <bruno@clisp.org>
17466
17467         havelib: Allow library names with '+' characters.
17468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17469         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
17470
17471 2010-06-09  Bruno Haible  <bruno@clisp.org>
17472
17473         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
17474         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
17475         realloc failed.
17476
17477 2010-06-08  Peter Simons  <simons@cryp.to>
17478
17479         maint.mk: make the news-check rule more configurable
17480         * top/maint.mk (news-check-lines-spec): New variable.
17481         (news-check): Use "sed -n 1,10p" in place of "head".
17482
17483 2010-06-07  Jim Meyering  <meyering@redhat.com>
17484
17485         do-release-commit-and-tag: fix typo in --help
17486         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
17487
17488         regex: avoid new dead-code warning with gcc-4.6.0
17489         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
17490         if-block containing a while-loop.  It's been unused for at least
17491         5 years.
17492
17493 2010-06-05  Bruno Haible  <bruno@clisp.org>
17494
17495         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
17496         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
17497
17498 2010-06-04  Bruno Haible  <bruno@clisp.org>
17499
17500         Update to GNU gettext 0.18.1.
17501         * modules/gettext (configure.ac): Require gettext infrastructure from
17502         version 0.18.1.
17503
17504 2010-06-03  Bruno Haible  <bruno@clisp.org>
17505
17506         Don't use AC_LIBOBJ with file names in subdirectories.
17507         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
17508         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
17509         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
17510         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
17511         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
17512         gl_LIBUNISTRING_LIBSOURCE.
17513         (Makefile.am): Augment lib_SOURCES here, conditionally.
17514         * NEWS: Drop requirement for Automake option 'subdir-objects'.
17515
17516 2010-06-03  Bruno Haible  <bruno@clisp.org>
17517
17518         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
17519         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
17520         expansion does not end with a newline.
17521         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
17522         unnecessary newline.
17523
17524 2010-06-03  Bruno Haible  <bruno@clisp.org>
17525
17526         Reduce dependencies.
17527         * tests/test-quotearg.h: New file, extracted from
17528         tests/test-quotearg.c.
17529         * tests/test-quotearg-simple.c: New file, extracted from
17530         tests/test-quotearg.c.
17531         * tests/test-quotearg.c: Don't include <ctype.h>.
17532         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
17533         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
17534         use_quote_double_quotes, use_quotearg_colon): Moved to
17535         tests/test-quotearg.h.
17536         (results_g, flag_results, custom_quotes, custom_results): Moved
17537         to tests/test-quotearg-simple.c.
17538         (main): Moved the part that does not depend on gettext to
17539         tests/test-quotearg-simple.c. Return 77 if the test cannot be
17540         performed.
17541         * modules/quotearg-simple: New file.
17542         * modules/quotearg-simple-tests: New file.
17543         * modules/quotearg (Depends-on): Add quotearg-simple.
17544         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
17545         (Files): Add tests/test-quotearg.h.
17546         Reported by Paolo Bonzini.
17547
17548 2010-06-03  Bruno Haible  <bruno@clisp.org>
17549
17550         Reduce dependencies.
17551         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
17552
17553 2010-06-03  Bruno Haible  <bruno@clisp.org>
17554
17555         time: Undefine more broken macros.
17556         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
17557         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
17558         Reported by Eric Blake.
17559
17560 2010-06-03  Bruno Haible  <bruno@clisp.org>
17561
17562         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
17563         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
17564         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
17565         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
17566         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
17567         Reported by Ludovic Courtès <ludo@gnu.org>.
17568
17569 2010-06-02  Eric Blake  <eblake@redhat.com>
17570
17571         time: work with mingw + pthreads-win32 library
17572         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
17573         if timespec is defined only in pthread.h.
17574         * modules/time (Makefile.am): Substitute it.
17575         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
17576         <pthread.h>, when needed.
17577         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
17578         from the library.
17579
17580 2010-05-31  Bruno Haible  <bruno@clisp.org>
17581
17582         Avoid expanding two macros in the wrong order.
17583         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
17584         gl_LIBUNISTRING if it is defined.
17585         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
17586         autoconf >= 2.64.
17587         Reported by Ludovic Courtès <ludo@gnu.org>.
17588
17589 2010-05-27  Jim Meyering  <meyering@redhat.com>
17590
17591         maint.mk: also prohibit "#undef" of always-defined symbols
17592         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
17593         Allow more than one space before the symbol name.
17594         (sc_prohibit_always-defined_macros): Use grep's -E, now that
17595         the regexp uses alternation.
17596
17597 2010-05-26  Eric Blake  <eblake@redhat.com>
17598
17599         maint.mk: avoid echo -e
17600         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
17601         Convert all uses of echo -* to printf.
17602         Reported by Matthias Bolte.
17603
17604 2010-05-25  Bruno Haible  <bruno@clisp.org>
17605
17606         Update to GNU gettext 0.18, part 2.
17607         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
17608         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
17609
17610 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17611
17612         Add missing include in test-pwrite.c.
17613         * tests/test-pwrite.c: Include string.h, for strcmp.
17614
17615 2010-05-24  Bruno Haible  <bruno@clisp.org>
17616
17617         * NEWS: Mention requirement for Automake option 'subdir-objects'.
17618
17619 2010-05-24  Bruno Haible  <bruno@clisp.org>
17620
17621         Don't use conversion with transliteration in u{8,16,32}_strcoll.
17622         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
17623         iconveh_error argument.
17624         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
17625         U_STRCONV_TO_LOCALE.
17626         * lib/unistr/u16-strcoll.c: Likewise.
17627         * lib/unistr/u32-strcoll.c: Likewise.
17628         * modules/unistr/u8-strcoll (Depends-on): Add
17629         uniconv/u8-strconv-to-enc, localcharset. Remove
17630         uniconv/u8-strconv-to-locale.
17631         (configure.ac): Bump version number.
17632         * modules/unistr/u16-strcoll (Depends-on): Add
17633         uniconv/u16-strconv-to-enc, localcharset. Remove
17634         uniconv/u16-strconv-to-locale.
17635         (configure.ac): Bump version number.
17636         * modules/unistr/u32-strcoll (Depends-on): Add
17637         uniconv/u32-strconv-to-enc, localcharset. Remove
17638         uniconv/u32-strconv-to-locale.
17639         (configure.ac): Bump version number.
17640
17641 2010-05-24  Bruno Haible  <bruno@clisp.org>
17642
17643         Avoid a test failure on NetBSD 5.0.
17644         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
17645         an iconv() bug.
17646
17647 2010-05-24  Bruno Haible  <bruno@clisp.org>
17648
17649         Adjust #include directive style.
17650         * modules/regex (Includes): Recommend to write <regex.h>.
17651
17652 2010-05-24  Bruno Haible  <bruno@clisp.org>
17653
17654         regex: Don't require alloca.
17655         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
17656         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
17657         only inside if (0).
17658
17659 2010-05-23  Jim Meyering  <meyering@redhat.com>
17660
17661         test-renameat.c: include <sys/stat.h>
17662         * tests/test-renameat.c: Include <sys/stat.h>; required for
17663         definition of S_IS* macros.
17664
17665 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
17666
17667         Update maintainer documentation for 'relocatable-prog' module.
17668         * doc/relocatable-maint.texi: Update.
17669         Comments by Bruno Haible.
17670
17671 2010-05-23  Bruno Haible  <bruno@clisp.org>
17672
17673         git-merge-changelog: Enable --split-merged-entry by default.
17674         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
17675         (usage): Don't mention this option any more.
17676         Reported by Ralf Wildenhues.
17677
17678 2010-05-23  Jim Meyering  <meyering@redhat.com>
17679
17680         test-pwrite: do not leave behind a test file named "out"
17681         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
17682         The trivial-looking use of init.sh is really necessary.
17683         It ensures that the temporary file, "out", is created in
17684         a temporary directory, and removed upon termination.
17685         * tests/test-pwrite.sh: Re-add file.
17686         * modules/pwrite-tests: Reference it.
17687
17688 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17689
17690         Fix output redirection buglet in init.sh.
17691         * tests/init.sh: Fix redirection of stderr.
17692
17693 2010-05-20  Simon Josefsson  <simon@josefsson.org>
17694
17695         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
17696
17697 2010-05-17  Simon Josefsson  <simon@josefsson.org>
17698
17699         * modules/valgrind-tests: New file.
17700         * m4/valgrind-tests.m4: New file.
17701         * doc/valgrind-tests.texi: New file.
17702         * doc/gnulib.texi (Running self-tests under valgrind): New
17703         section.
17704
17705 2010-05-19  Bruno Haible  <bruno@clisp.org>
17706
17707         Clean up dead code in recent commit.
17708         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
17709         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
17710         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
17711         Suggested by Paolo Bonzini.
17712
17713 2010-05-19  Bruno Haible  <bruno@clisp.org>
17714
17715         Avoid valgrind error reports from libunistring.
17716         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
17717         * modules/libunistring (Files): Add it.
17718         * modules/libunistring-optional (Files): Likewise.
17719
17720 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
17721             Bruno Haible  <bruno@clisp.org>
17722
17723         New module 'libunistring-optional'.
17724         * modules/libunistring-optional: New file.
17725         * m4/libunistring-base.m4: New file.
17726         * m4/libunistring-optional.m4: New file.
17727         * lib/unicase.in.h: Renamed from lib/unicase.h.
17728         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
17729         * lib/unictype.in.h: Renamed from lib/unictype.h.
17730         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
17731         * lib/uniname.in.h: Renamed from lib/uniname.h.
17732         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
17733         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
17734         * lib/unistr.in.h: Renamed from lib/unistr.h.
17735         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
17736         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
17737         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
17738         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
17739         gl_LIBUNISTRING. If the library was found, determine the installed
17740         version and set LIBUNISTRING_VERSION.
17741         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
17742         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
17743         handle a configuration option --with-included-libunistring.
17744         * modules/libunistring (Files): Add m4/absolute-header.m4.
17745         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
17746         Add m4/libunistring-base.m4.
17747         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17748         (Makefile.am): Build unicase.h from unicase.in.h.
17749         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
17750         Add m4/libunistring-base.m4.
17751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17752         (Makefile.am): Build uniconv.h from uniconv.in.h.
17753         * modules/unictype/base (Files): Use unictype.in.h instead of
17754         unictype.h. Add m4/libunistring-base.m4.
17755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17756         (Makefile.am): Build unictype.h from unictype.in.h.
17757         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
17758         Add m4/libunistring-base.m4.
17759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17760         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
17761         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
17762         Add m4/libunistring-base.m4.
17763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17764         (Makefile.am): Build uniname.h from uniname.in.h.
17765         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
17766         Add m4/libunistring-base.m4.
17767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17768         (Makefile.am): Build uninorm.h from uninorm.in.h.
17769         * modules/unistdio/base (Files): Use unistdio.in.h instead of
17770         unistdio.h. Add m4/libunistring-base.m4.
17771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17772         (Makefile.am): Build unistdio.h from unistdio.in.h.
17773         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
17774         Add m4/libunistring-base.m4.
17775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17776         (Makefile.am): Build unistr.h from unistr.in.h.
17777         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
17778         Add m4/libunistring-base.m4.
17779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17780         (Makefile.am): Build unitypes.h from unitypes.in.h.
17781         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
17782         Add m4/libunistring-base.m4.
17783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17784         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
17785         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
17786         uniwidth.h. Add m4/libunistring-base.m4.
17787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
17788         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
17789         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
17790         instead of augmenting lib_SOURCES.
17791         * modules/unicase/empty-suffix-context: Likewise.
17792         * modules/unicase/locale-language: Likewise.
17793         * modules/unicase/tolower: Likewise.
17794         * modules/unicase/totitle: Likewise.
17795         * modules/unicase/toupper: Likewise.
17796         * modules/unicase/u8-casecmp: Likewise.
17797         * modules/unicase/u8-casecoll: Likewise.
17798         * modules/unicase/u8-casefold: Likewise.
17799         * modules/unicase/u8-casexfrm: Likewise.
17800         * modules/unicase/u8-ct-casefold: Likewise.
17801         * modules/unicase/u8-ct-tolower: Likewise.
17802         * modules/unicase/u8-ct-totitle: Likewise.
17803         * modules/unicase/u8-ct-toupper: Likewise.
17804         * modules/unicase/u8-is-cased: Likewise.
17805         * modules/unicase/u8-is-casefolded: Likewise.
17806         * modules/unicase/u8-is-lowercase: Likewise.
17807         * modules/unicase/u8-is-titlecase: Likewise.
17808         * modules/unicase/u8-is-uppercase: Likewise.
17809         * modules/unicase/u8-prefix-context: Likewise.
17810         * modules/unicase/u8-suffix-context: Likewise.
17811         * modules/unicase/u8-tolower: Likewise.
17812         * modules/unicase/u8-totitle: Likewise.
17813         * modules/unicase/u8-toupper: Likewise.
17814         * modules/unicase/u16-casecmp: Likewise.
17815         * modules/unicase/u16-casecoll: Likewise.
17816         * modules/unicase/u16-casefold: Likewise.
17817         * modules/unicase/u16-casexfrm: Likewise.
17818         * modules/unicase/u16-ct-casefold: Likewise.
17819         * modules/unicase/u16-ct-tolower: Likewise.
17820         * modules/unicase/u16-ct-totitle: Likewise.
17821         * modules/unicase/u16-ct-toupper: Likewise.
17822         * modules/unicase/u16-is-cased: Likewise.
17823         * modules/unicase/u16-is-casefolded: Likewise.
17824         * modules/unicase/u16-is-lowercase: Likewise.
17825         * modules/unicase/u16-is-titlecase: Likewise.
17826         * modules/unicase/u16-is-uppercase: Likewise.
17827         * modules/unicase/u16-prefix-context: Likewise.
17828         * modules/unicase/u16-suffix-context: Likewise.
17829         * modules/unicase/u16-tolower: Likewise.
17830         * modules/unicase/u16-totitle: Likewise.
17831         * modules/unicase/u16-toupper: Likewise.
17832         * modules/unicase/u32-casecmp: Likewise.
17833         * modules/unicase/u32-casecoll: Likewise.
17834         * modules/unicase/u32-casefold: Likewise.
17835         * modules/unicase/u32-casexfrm: Likewise.
17836         * modules/unicase/u32-ct-casefold: Likewise.
17837         * modules/unicase/u32-ct-tolower: Likewise.
17838         * modules/unicase/u32-ct-totitle: Likewise.
17839         * modules/unicase/u32-ct-toupper: Likewise.
17840         * modules/unicase/u32-is-cased: Likewise.
17841         * modules/unicase/u32-is-casefolded: Likewise.
17842         * modules/unicase/u32-is-lowercase: Likewise.
17843         * modules/unicase/u32-is-titlecase: Likewise.
17844         * modules/unicase/u32-is-uppercase: Likewise.
17845         * modules/unicase/u32-prefix-context: Likewise.
17846         * modules/unicase/u32-suffix-context: Likewise.
17847         * modules/unicase/u32-tolower: Likewise.
17848         * modules/unicase/u32-totitle: Likewise.
17849         * modules/unicase/u32-toupper: Likewise.
17850         * modules/unicase/ulc-casecmp: Likewise.
17851         * modules/unicase/ulc-casecoll: Likewise.
17852         * modules/unicase/ulc-casexfrm: Likewise.
17853         * modules/uniconv/u8-conv-from-enc: Likewise.
17854         * modules/uniconv/u8-conv-to-enc: Likewise.
17855         * modules/uniconv/u8-strconv-from-enc: Likewise.
17856         * modules/uniconv/u8-strconv-from-locale: Likewise.
17857         * modules/uniconv/u8-strconv-to-enc: Likewise.
17858         * modules/uniconv/u8-strconv-to-locale: Likewise.
17859         * modules/uniconv/u16-conv-from-enc: Likewise.
17860         * modules/uniconv/u16-conv-to-enc: Likewise.
17861         * modules/uniconv/u16-strconv-from-enc: Likewise.
17862         * modules/uniconv/u16-strconv-from-locale: Likewise.
17863         * modules/uniconv/u16-strconv-to-enc: Likewise.
17864         * modules/uniconv/u16-strconv-to-locale: Likewise.
17865         * modules/uniconv/u32-conv-from-enc: Likewise.
17866         * modules/uniconv/u32-conv-to-enc: Likewise.
17867         * modules/uniconv/u32-strconv-from-enc: Likewise.
17868         * modules/uniconv/u32-strconv-from-locale: Likewise.
17869         * modules/uniconv/u32-strconv-to-enc: Likewise.
17870         * modules/uniconv/u32-strconv-to-locale: Likewise.
17871         * modules/unictype/bidicategory-byname: Likewise.
17872         * modules/unictype/bidicategory-name: Likewise.
17873         * modules/unictype/bidicategory-of: Likewise.
17874         * modules/unictype/bidicategory-test: Likewise.
17875         * modules/unictype/block-list: Likewise.
17876         * modules/unictype/block-test: Likewise.
17877         * modules/unictype/category-C: Likewise.
17878         * modules/unictype/category-Cc: Likewise.
17879         * modules/unictype/category-Cf: Likewise.
17880         * modules/unictype/category-Cn: Likewise.
17881         * modules/unictype/category-Co: Likewise.
17882         * modules/unictype/category-Cs: Likewise.
17883         * modules/unictype/category-L: Likewise.
17884         * modules/unictype/category-Ll: Likewise.
17885         * modules/unictype/category-Lm: Likewise.
17886         * modules/unictype/category-Lo: Likewise.
17887         * modules/unictype/category-Lt: Likewise.
17888         * modules/unictype/category-Lu: Likewise.
17889         * modules/unictype/category-M: Likewise.
17890         * modules/unictype/category-Mc: Likewise.
17891         * modules/unictype/category-Me: Likewise.
17892         * modules/unictype/category-Mn: Likewise.
17893         * modules/unictype/category-N: Likewise.
17894         * modules/unictype/category-Nd: Likewise.
17895         * modules/unictype/category-Nl: Likewise.
17896         * modules/unictype/category-No: Likewise.
17897         * modules/unictype/category-P: Likewise.
17898         * modules/unictype/category-Pc: Likewise.
17899         * modules/unictype/category-Pd: Likewise.
17900         * modules/unictype/category-Pe: Likewise.
17901         * modules/unictype/category-Pf: Likewise.
17902         * modules/unictype/category-Pi: Likewise.
17903         * modules/unictype/category-Po: Likewise.
17904         * modules/unictype/category-Ps: Likewise.
17905         * modules/unictype/category-S: Likewise.
17906         * modules/unictype/category-Sc: Likewise.
17907         * modules/unictype/category-Sk: Likewise.
17908         * modules/unictype/category-Sm: Likewise.
17909         * modules/unictype/category-So: Likewise.
17910         * modules/unictype/category-Z: Likewise.
17911         * modules/unictype/category-Zl: Likewise.
17912         * modules/unictype/category-Zp: Likewise.
17913         * modules/unictype/category-Zs: Likewise.
17914         * modules/unictype/category-and: Likewise.
17915         * modules/unictype/category-and-not: Likewise.
17916         * modules/unictype/category-byname: Likewise.
17917         * modules/unictype/category-name: Likewise.
17918         * modules/unictype/category-none: Likewise.
17919         * modules/unictype/category-of: Likewise.
17920         * modules/unictype/category-or: Likewise.
17921         * modules/unictype/category-test: Likewise.
17922         * modules/unictype/combining-class: Likewise.
17923         * modules/unictype/ctype-alnum: Likewise.
17924         * modules/unictype/ctype-alpha: Likewise.
17925         * modules/unictype/ctype-blank: Likewise.
17926         * modules/unictype/ctype-cntrl: Likewise.
17927         * modules/unictype/ctype-digit: Likewise.
17928         * modules/unictype/ctype-graph: Likewise.
17929         * modules/unictype/ctype-lower: Likewise.
17930         * modules/unictype/ctype-print: Likewise.
17931         * modules/unictype/ctype-punct: Likewise.
17932         * modules/unictype/ctype-space: Likewise.
17933         * modules/unictype/ctype-upper: Likewise.
17934         * modules/unictype/ctype-xdigit: Likewise.
17935         * modules/unictype/decimal-digit: Likewise.
17936         * modules/unictype/digit: Likewise.
17937         * modules/unictype/mirror: Likewise.
17938         * modules/unictype/numeric: Likewise.
17939         * modules/unictype/property-alphabetic: Likewise.
17940         * modules/unictype/property-ascii-hex-digit: Likewise.
17941         * modules/unictype/property-bidi-arabic-digit: Likewise.
17942         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
17943         * modules/unictype/property-bidi-block-separator: Likewise.
17944         * modules/unictype/property-bidi-boundary-neutral: Likewise.
17945         * modules/unictype/property-bidi-common-separator: Likewise.
17946         * modules/unictype/property-bidi-control: Likewise.
17947         * modules/unictype/property-bidi-embedding-or-override: Likewise.
17948         * modules/unictype/property-bidi-eur-num-separator: Likewise.
17949         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
17950         * modules/unictype/property-bidi-european-digit: Likewise.
17951         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
17952         * modules/unictype/property-bidi-left-to-right: Likewise.
17953         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
17954         * modules/unictype/property-bidi-other-neutral: Likewise.
17955         * modules/unictype/property-bidi-pdf: Likewise.
17956         * modules/unictype/property-bidi-segment-separator: Likewise.
17957         * modules/unictype/property-bidi-whitespace: Likewise.
17958         * modules/unictype/property-byname: Likewise.
17959         * modules/unictype/property-combining: Likewise.
17960         * modules/unictype/property-composite: Likewise.
17961         * modules/unictype/property-currency-symbol: Likewise.
17962         * modules/unictype/property-dash: Likewise.
17963         * modules/unictype/property-decimal-digit: Likewise.
17964         * modules/unictype/property-default-ignorable-code-point: Likewise.
17965         * modules/unictype/property-deprecated: Likewise.
17966         * modules/unictype/property-diacritic: Likewise.
17967         * modules/unictype/property-extender: Likewise.
17968         * modules/unictype/property-format-control: Likewise.
17969         * modules/unictype/property-grapheme-base: Likewise.
17970         * modules/unictype/property-grapheme-extend: Likewise.
17971         * modules/unictype/property-grapheme-link: Likewise.
17972         * modules/unictype/property-hex-digit: Likewise.
17973         * modules/unictype/property-hyphen: Likewise.
17974         * modules/unictype/property-id-continue: Likewise.
17975         * modules/unictype/property-id-start: Likewise.
17976         * modules/unictype/property-ideographic: Likewise.
17977         * modules/unictype/property-ids-binary-operator: Likewise.
17978         * modules/unictype/property-ids-trinary-operator: Likewise.
17979         * modules/unictype/property-ignorable-control: Likewise.
17980         * modules/unictype/property-iso-control: Likewise.
17981         * modules/unictype/property-join-control: Likewise.
17982         * modules/unictype/property-left-of-pair: Likewise.
17983         * modules/unictype/property-line-separator: Likewise.
17984         * modules/unictype/property-logical-order-exception: Likewise.
17985         * modules/unictype/property-lowercase: Likewise.
17986         * modules/unictype/property-math: Likewise.
17987         * modules/unictype/property-non-break: Likewise.
17988         * modules/unictype/property-not-a-character: Likewise.
17989         * modules/unictype/property-numeric: Likewise.
17990         * modules/unictype/property-other-alphabetic: Likewise.
17991         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
17992         * modules/unictype/property-other-grapheme-extend: Likewise.
17993         * modules/unictype/property-other-id-continue: Likewise.
17994         * modules/unictype/property-other-id-start: Likewise.
17995         * modules/unictype/property-other-lowercase: Likewise.
17996         * modules/unictype/property-other-math: Likewise.
17997         * modules/unictype/property-other-uppercase: Likewise.
17998         * modules/unictype/property-paired-punctuation: Likewise.
17999         * modules/unictype/property-paragraph-separator: Likewise.
18000         * modules/unictype/property-pattern-syntax: Likewise.
18001         * modules/unictype/property-pattern-white-space: Likewise.
18002         * modules/unictype/property-private-use: Likewise.
18003         * modules/unictype/property-punctuation: Likewise.
18004         * modules/unictype/property-quotation-mark: Likewise.
18005         * modules/unictype/property-radical: Likewise.
18006         * modules/unictype/property-sentence-terminal: Likewise.
18007         * modules/unictype/property-soft-dotted: Likewise.
18008         * modules/unictype/property-space: Likewise.
18009         * modules/unictype/property-terminal-punctuation: Likewise.
18010         * modules/unictype/property-test: Likewise.
18011         * modules/unictype/property-titlecase: Likewise.
18012         * modules/unictype/property-unassigned-code-value: Likewise.
18013         * modules/unictype/property-unified-ideograph: Likewise.
18014         * modules/unictype/property-uppercase: Likewise.
18015         * modules/unictype/property-variation-selector: Likewise.
18016         * modules/unictype/property-white-space: Likewise.
18017         * modules/unictype/property-xid-continue: Likewise.
18018         * modules/unictype/property-xid-start: Likewise.
18019         * modules/unictype/property-zero-width: Likewise.
18020         * modules/unictype/scripts: Likewise.
18021         * modules/unictype/syntax-c-ident: Likewise.
18022         * modules/unictype/syntax-c-whitespace: Likewise.
18023         * modules/unictype/syntax-java-ident: Likewise.
18024         * modules/unictype/syntax-java-whitespace: Likewise.
18025         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18026         * modules/unilbrk/u8-width-linebreaks: Likewise.
18027         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18028         * modules/unilbrk/u16-width-linebreaks: Likewise.
18029         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18030         * modules/unilbrk/u32-width-linebreaks: Likewise.
18031         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18032         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18033         * modules/uniname/uniname: Likewise.
18034         * modules/uninorm/canonical-decomposition: Likewise.
18035         * modules/uninorm/composition: Likewise.
18036         * modules/uninorm/decomposing-form: Likewise.
18037         * modules/uninorm/decomposition: Likewise.
18038         * modules/uninorm/filter: Likewise.
18039         * modules/uninorm/nfc: Likewise.
18040         * modules/uninorm/nfd: Likewise.
18041         * modules/uninorm/nfkc: Likewise.
18042         * modules/uninorm/nfkd: Likewise.
18043         * modules/uninorm/u8-normalize: Likewise.
18044         * modules/uninorm/u8-normcmp: Likewise.
18045         * modules/uninorm/u8-normcoll: Likewise.
18046         * modules/uninorm/u8-normxfrm: Likewise.
18047         * modules/uninorm/u16-normalize: Likewise.
18048         * modules/uninorm/u16-normcmp: Likewise.
18049         * modules/uninorm/u16-normcoll: Likewise.
18050         * modules/uninorm/u16-normxfrm: Likewise.
18051         * modules/uninorm/u32-normalize: Likewise.
18052         * modules/uninorm/u32-normcmp: Likewise.
18053         * modules/uninorm/u32-normcoll: Likewise.
18054         * modules/uninorm/u32-normxfrm: Likewise.
18055         * modules/unistdio/u8-asnprintf: Likewise.
18056         * modules/unistdio/u8-asprintf: Likewise.
18057         * modules/unistdio/u8-snprintf: Likewise.
18058         * modules/unistdio/u8-sprintf: Likewise.
18059         * modules/unistdio/u8-u8-asnprintf: Likewise.
18060         * modules/unistdio/u8-u8-asprintf: Likewise.
18061         * modules/unistdio/u8-u8-snprintf: Likewise.
18062         * modules/unistdio/u8-u8-sprintf: Likewise.
18063         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18064         * modules/unistdio/u8-u8-vasprintf: Likewise.
18065         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18066         * modules/unistdio/u8-u8-vsprintf: Likewise.
18067         * modules/unistdio/u8-vasnprintf: Likewise.
18068         * modules/unistdio/u8-vasprintf: Likewise.
18069         * modules/unistdio/u8-vsnprintf: Likewise.
18070         * modules/unistdio/u8-vsprintf: Likewise.
18071         * modules/unistdio/u16-asnprintf: Likewise.
18072         * modules/unistdio/u16-asprintf: Likewise.
18073         * modules/unistdio/u16-snprintf: Likewise.
18074         * modules/unistdio/u16-sprintf: Likewise.
18075         * modules/unistdio/u16-u16-asnprintf: Likewise.
18076         * modules/unistdio/u16-u16-asprintf: Likewise.
18077         * modules/unistdio/u16-u16-snprintf: Likewise.
18078         * modules/unistdio/u16-u16-sprintf: Likewise.
18079         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18080         * modules/unistdio/u16-u16-vasprintf: Likewise.
18081         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18082         * modules/unistdio/u16-u16-vsprintf: Likewise.
18083         * modules/unistdio/u16-vasnprintf: Likewise.
18084         * modules/unistdio/u16-vasprintf: Likewise.
18085         * modules/unistdio/u16-vsnprintf: Likewise.
18086         * modules/unistdio/u16-vsprintf: Likewise.
18087         * modules/unistdio/u32-asnprintf: Likewise.
18088         * modules/unistdio/u32-asprintf: Likewise.
18089         * modules/unistdio/u32-snprintf: Likewise.
18090         * modules/unistdio/u32-sprintf: Likewise.
18091         * modules/unistdio/u32-u32-asnprintf: Likewise.
18092         * modules/unistdio/u32-u32-asprintf: Likewise.
18093         * modules/unistdio/u32-u32-snprintf: Likewise.
18094         * modules/unistdio/u32-u32-sprintf: Likewise.
18095         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18096         * modules/unistdio/u32-u32-vasprintf: Likewise.
18097         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18098         * modules/unistdio/u32-u32-vsprintf: Likewise.
18099         * modules/unistdio/u32-vasnprintf: Likewise.
18100         * modules/unistdio/u32-vasprintf: Likewise.
18101         * modules/unistdio/u32-vsnprintf: Likewise.
18102         * modules/unistdio/u32-vsprintf: Likewise.
18103         * modules/unistdio/ulc-asnprintf: Likewise.
18104         * modules/unistdio/ulc-asprintf: Likewise.
18105         * modules/unistdio/ulc-fprintf: Likewise.
18106         * modules/unistdio/ulc-snprintf: Likewise.
18107         * modules/unistdio/ulc-sprintf: Likewise.
18108         * modules/unistdio/ulc-vasnprintf: Likewise.
18109         * modules/unistdio/ulc-vasprintf: Likewise.
18110         * modules/unistdio/ulc-vfprintf: Likewise.
18111         * modules/unistdio/ulc-vsnprintf: Likewise.
18112         * modules/unistdio/ulc-vsprintf: Likewise.
18113         * modules/unistr/u8-check: Likewise.
18114         * modules/unistr/u8-chr: Likewise.
18115         * modules/unistr/u8-cmp: Likewise.
18116         * modules/unistr/u8-cmp2: Likewise.
18117         * modules/unistr/u8-cpy: Likewise.
18118         * modules/unistr/u8-cpy-alloc: Likewise.
18119         * modules/unistr/u8-endswith: Likewise.
18120         * modules/unistr/u8-mblen: Likewise.
18121         * modules/unistr/u8-mbsnlen: Likewise.
18122         * modules/unistr/u8-mbtouc: Likewise.
18123         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18124         * modules/unistr/u8-mbtoucr: Likewise.
18125         * modules/unistr/u8-move: Likewise.
18126         * modules/unistr/u8-next: Likewise.
18127         * modules/unistr/u8-prev: Likewise.
18128         * modules/unistr/u8-set: Likewise.
18129         * modules/unistr/u8-startswith: Likewise.
18130         * modules/unistr/u8-stpcpy: Likewise.
18131         * modules/unistr/u8-stpncpy: Likewise.
18132         * modules/unistr/u8-strcat: Likewise.
18133         * modules/unistr/u8-strchr: Likewise.
18134         * modules/unistr/u8-strcmp: Likewise.
18135         * modules/unistr/u8-strcoll: Likewise.
18136         * modules/unistr/u8-strcpy: Likewise.
18137         * modules/unistr/u8-strcspn: Likewise.
18138         * modules/unistr/u8-strdup: Likewise.
18139         * modules/unistr/u8-strlen: Likewise.
18140         * modules/unistr/u8-strmblen: Likewise.
18141         * modules/unistr/u8-strmbtouc: Likewise.
18142         * modules/unistr/u8-strncat: Likewise.
18143         * modules/unistr/u8-strncmp: Likewise.
18144         * modules/unistr/u8-strncpy: Likewise.
18145         * modules/unistr/u8-strnlen: Likewise.
18146         * modules/unistr/u8-strpbrk: Likewise.
18147         * modules/unistr/u8-strrchr: Likewise.
18148         * modules/unistr/u8-strspn: Likewise.
18149         * modules/unistr/u8-strstr: Likewise.
18150         * modules/unistr/u8-strtok: Likewise.
18151         * modules/unistr/u8-to-u16: Likewise.
18152         * modules/unistr/u8-to-u32: Likewise.
18153         * modules/unistr/u8-uctomb: Likewise.
18154         * modules/unistr/u16-check: Likewise.
18155         * modules/unistr/u16-chr: Likewise.
18156         * modules/unistr/u16-cmp: Likewise.
18157         * modules/unistr/u16-cmp2: Likewise.
18158         * modules/unistr/u16-cpy: Likewise.
18159         * modules/unistr/u16-cpy-alloc: Likewise.
18160         * modules/unistr/u16-endswith: Likewise.
18161         * modules/unistr/u16-mblen: Likewise.
18162         * modules/unistr/u16-mbsnlen: Likewise.
18163         * modules/unistr/u16-mbtouc: Likewise.
18164         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18165         * modules/unistr/u16-mbtoucr: Likewise.
18166         * modules/unistr/u16-move: Likewise.
18167         * modules/unistr/u16-next: Likewise.
18168         * modules/unistr/u16-prev: Likewise.
18169         * modules/unistr/u16-set: Likewise.
18170         * modules/unistr/u16-startswith: Likewise.
18171         * modules/unistr/u16-stpcpy: Likewise.
18172         * modules/unistr/u16-stpncpy: Likewise.
18173         * modules/unistr/u16-strcat: Likewise.
18174         * modules/unistr/u16-strchr: Likewise.
18175         * modules/unistr/u16-strcmp: Likewise.
18176         * modules/unistr/u16-strcoll: Likewise.
18177         * modules/unistr/u16-strcpy: Likewise.
18178         * modules/unistr/u16-strcspn: Likewise.
18179         * modules/unistr/u16-strdup: Likewise.
18180         * modules/unistr/u16-strlen: Likewise.
18181         * modules/unistr/u16-strmblen: Likewise.
18182         * modules/unistr/u16-strmbtouc: Likewise.
18183         * modules/unistr/u16-strncat: Likewise.
18184         * modules/unistr/u16-strncmp: Likewise.
18185         * modules/unistr/u16-strncpy: Likewise.
18186         * modules/unistr/u16-strnlen: Likewise.
18187         * modules/unistr/u16-strpbrk: Likewise.
18188         * modules/unistr/u16-strrchr: Likewise.
18189         * modules/unistr/u16-strspn: Likewise.
18190         * modules/unistr/u16-strstr: Likewise.
18191         * modules/unistr/u16-strtok: Likewise.
18192         * modules/unistr/u16-to-u32: Likewise.
18193         * modules/unistr/u16-to-u8: Likewise.
18194         * modules/unistr/u16-uctomb: Likewise.
18195         * modules/unistr/u32-check: Likewise.
18196         * modules/unistr/u32-chr: Likewise.
18197         * modules/unistr/u32-cmp: Likewise.
18198         * modules/unistr/u32-cmp2: Likewise.
18199         * modules/unistr/u32-cpy: Likewise.
18200         * modules/unistr/u32-cpy-alloc: Likewise.
18201         * modules/unistr/u32-endswith: Likewise.
18202         * modules/unistr/u32-mblen: Likewise.
18203         * modules/unistr/u32-mbsnlen: Likewise.
18204         * modules/unistr/u32-mbtouc: Likewise.
18205         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18206         * modules/unistr/u32-mbtoucr: Likewise.
18207         * modules/unistr/u32-move: Likewise.
18208         * modules/unistr/u32-next: Likewise.
18209         * modules/unistr/u32-prev: Likewise.
18210         * modules/unistr/u32-set: Likewise.
18211         * modules/unistr/u32-startswith: Likewise.
18212         * modules/unistr/u32-stpcpy: Likewise.
18213         * modules/unistr/u32-stpncpy: Likewise.
18214         * modules/unistr/u32-strcat: Likewise.
18215         * modules/unistr/u32-strchr: Likewise.
18216         * modules/unistr/u32-strcmp: Likewise.
18217         * modules/unistr/u32-strcoll: Likewise.
18218         * modules/unistr/u32-strcpy: Likewise.
18219         * modules/unistr/u32-strcspn: Likewise.
18220         * modules/unistr/u32-strdup: Likewise.
18221         * modules/unistr/u32-strlen: Likewise.
18222         * modules/unistr/u32-strmblen: Likewise.
18223         * modules/unistr/u32-strmbtouc: Likewise.
18224         * modules/unistr/u32-strncat: Likewise.
18225         * modules/unistr/u32-strncmp: Likewise.
18226         * modules/unistr/u32-strncpy: Likewise.
18227         * modules/unistr/u32-strnlen: Likewise.
18228         * modules/unistr/u32-strpbrk: Likewise.
18229         * modules/unistr/u32-strrchr: Likewise.
18230         * modules/unistr/u32-strspn: Likewise.
18231         * modules/unistr/u32-strstr: Likewise.
18232         * modules/unistr/u32-strtok: Likewise.
18233         * modules/unistr/u32-to-u16: Likewise.
18234         * modules/unistr/u32-to-u8: Likewise.
18235         * modules/unistr/u32-uctomb: Likewise.
18236         * modules/uniwbrk/u8-wordbreaks: Likewise.
18237         * modules/uniwbrk/u16-wordbreaks: Likewise.
18238         * modules/uniwbrk/u32-wordbreaks: Likewise.
18239         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18240         * modules/uniwbrk/wordbreak-property: Likewise.
18241         * modules/uniwidth/u8-strwidth: Likewise.
18242         * modules/uniwidth/u8-width: Likewise.
18243         * modules/uniwidth/u16-strwidth: Likewise.
18244         * modules/uniwidth/u16-width: Likewise.
18245         * modules/uniwidth/u32-strwidth: Likewise.
18246         * modules/uniwidth/u32-width: Likewise.
18247         * modules/uniwidth/width: Likewise.
18248         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18249         with $(LIBUNISTRING).
18250         * modules/unicase/ignorable-tests: Likewise.
18251         * modules/unicase/locale-language-tests: Likewise.
18252         * modules/unicase/tolower-tests: Likewise.
18253         * modules/unicase/totitle-tests: Likewise.
18254         * modules/unicase/toupper-tests: Likewise.
18255         * modules/unicase/u8-casecmp-tests: Likewise.
18256         * modules/unicase/u8-casecoll-tests: Likewise.
18257         * modules/unicase/u8-casefold-tests: Likewise.
18258         * modules/unicase/u8-is-cased-tests: Likewise.
18259         * modules/unicase/u8-is-casefolded-tests: Likewise.
18260         * modules/unicase/u8-is-lowercase-tests: Likewise.
18261         * modules/unicase/u8-is-titlecase-tests: Likewise.
18262         * modules/unicase/u8-is-uppercase-tests: Likewise.
18263         * modules/unicase/u8-tolower-tests: Likewise.
18264         * modules/unicase/u8-totitle-tests: Likewise.
18265         * modules/unicase/u8-toupper-tests: Likewise.
18266         * modules/unicase/u16-casecmp-tests: Likewise.
18267         * modules/unicase/u16-casecoll-tests: Likewise.
18268         * modules/unicase/u16-casefold-tests: Likewise.
18269         * modules/unicase/u16-is-cased-tests: Likewise.
18270         * modules/unicase/u16-is-casefolded-tests: Likewise.
18271         * modules/unicase/u16-is-lowercase-tests: Likewise.
18272         * modules/unicase/u16-is-titlecase-tests: Likewise.
18273         * modules/unicase/u16-is-uppercase-tests: Likewise.
18274         * modules/unicase/u16-tolower-tests: Likewise.
18275         * modules/unicase/u16-totitle-tests: Likewise.
18276         * modules/unicase/u16-toupper-tests: Likewise.
18277         * modules/unicase/u32-casecmp-tests: Likewise.
18278         * modules/unicase/u32-casecoll-tests: Likewise.
18279         * modules/unicase/u32-casefold-tests: Likewise.
18280         * modules/unicase/u32-is-cased-tests: Likewise.
18281         * modules/unicase/u32-is-casefolded-tests: Likewise.
18282         * modules/unicase/u32-is-lowercase-tests: Likewise.
18283         * modules/unicase/u32-is-titlecase-tests: Likewise.
18284         * modules/unicase/u32-is-uppercase-tests: Likewise.
18285         * modules/unicase/u32-tolower-tests: Likewise.
18286         * modules/unicase/u32-totitle-tests: Likewise.
18287         * modules/unicase/u32-toupper-tests: Likewise.
18288         * modules/unicase/ulc-casecmp-tests: Likewise.
18289         * modules/unicase/ulc-casecoll-tests: Likewise.
18290         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18291         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18292         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18293         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18294         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18295         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18296         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18297         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18298         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18299         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18300         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18301         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18302         * modules/unictype/bidicategory-byname-tests: Likewise.
18303         * modules/unictype/bidicategory-name-tests: Likewise.
18304         * modules/unictype/bidicategory-of-tests: Likewise.
18305         * modules/unictype/bidicategory-test-tests: Likewise.
18306         * modules/unictype/block-list-tests: Likewise.
18307         * modules/unictype/block-of-tests: Likewise.
18308         * modules/unictype/block-test-tests: Likewise.
18309         * modules/unictype/category-C-tests: Likewise.
18310         * modules/unictype/category-Cc-tests: Likewise.
18311         * modules/unictype/category-Cf-tests: Likewise.
18312         * modules/unictype/category-Cn-tests: Likewise.
18313         * modules/unictype/category-Co-tests: Likewise.
18314         * modules/unictype/category-Cs-tests: Likewise.
18315         * modules/unictype/category-L-tests: Likewise.
18316         * modules/unictype/category-Ll-tests: Likewise.
18317         * modules/unictype/category-Lm-tests: Likewise.
18318         * modules/unictype/category-Lo-tests: Likewise.
18319         * modules/unictype/category-Lt-tests: Likewise.
18320         * modules/unictype/category-Lu-tests: Likewise.
18321         * modules/unictype/category-M-tests: Likewise.
18322         * modules/unictype/category-Mc-tests: Likewise.
18323         * modules/unictype/category-Me-tests: Likewise.
18324         * modules/unictype/category-Mn-tests: Likewise.
18325         * modules/unictype/category-N-tests: Likewise.
18326         * modules/unictype/category-Nd-tests: Likewise.
18327         * modules/unictype/category-Nl-tests: Likewise.
18328         * modules/unictype/category-No-tests: Likewise.
18329         * modules/unictype/category-P-tests: Likewise.
18330         * modules/unictype/category-Pc-tests: Likewise.
18331         * modules/unictype/category-Pd-tests: Likewise.
18332         * modules/unictype/category-Pe-tests: Likewise.
18333         * modules/unictype/category-Pf-tests: Likewise.
18334         * modules/unictype/category-Pi-tests: Likewise.
18335         * modules/unictype/category-Po-tests: Likewise.
18336         * modules/unictype/category-Ps-tests: Likewise.
18337         * modules/unictype/category-S-tests: Likewise.
18338         * modules/unictype/category-Sc-tests: Likewise.
18339         * modules/unictype/category-Sk-tests: Likewise.
18340         * modules/unictype/category-Sm-tests: Likewise.
18341         * modules/unictype/category-So-tests: Likewise.
18342         * modules/unictype/category-Z-tests: Likewise.
18343         * modules/unictype/category-Zl-tests: Likewise.
18344         * modules/unictype/category-Zp-tests: Likewise.
18345         * modules/unictype/category-Zs-tests: Likewise.
18346         * modules/unictype/category-and-not-tests: Likewise.
18347         * modules/unictype/category-and-tests: Likewise.
18348         * modules/unictype/category-byname-tests: Likewise.
18349         * modules/unictype/category-name-tests: Likewise.
18350         * modules/unictype/category-none-tests: Likewise.
18351         * modules/unictype/category-of-tests: Likewise.
18352         * modules/unictype/category-or-tests: Likewise.
18353         * modules/unictype/category-test-withtable-tests: Likewise.
18354         * modules/unictype/combining-class-tests: Likewise.
18355         * modules/unictype/ctype-alnum-tests: Likewise.
18356         * modules/unictype/ctype-alpha-tests: Likewise.
18357         * modules/unictype/ctype-blank-tests: Likewise.
18358         * modules/unictype/ctype-cntrl-tests: Likewise.
18359         * modules/unictype/ctype-digit-tests: Likewise.
18360         * modules/unictype/ctype-graph-tests: Likewise.
18361         * modules/unictype/ctype-lower-tests: Likewise.
18362         * modules/unictype/ctype-print-tests: Likewise.
18363         * modules/unictype/ctype-punct-tests: Likewise.
18364         * modules/unictype/ctype-space-tests: Likewise.
18365         * modules/unictype/ctype-upper-tests: Likewise.
18366         * modules/unictype/ctype-xdigit-tests: Likewise.
18367         * modules/unictype/decimal-digit-tests: Likewise.
18368         * modules/unictype/digit-tests: Likewise.
18369         * modules/unictype/mirror-tests: Likewise.
18370         * modules/unictype/numeric-tests: Likewise.
18371         * modules/unictype/property-alphabetic-tests: Likewise.
18372         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18373         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18374         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18375         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18376         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18377         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18378         * modules/unictype/property-bidi-control-tests: Likewise.
18379         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18380         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18381         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18382         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18383         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18384         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18385         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18386         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18387         * modules/unictype/property-bidi-pdf-tests: Likewise.
18388         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18389         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18390         * modules/unictype/property-byname-tests: Likewise.
18391         * modules/unictype/property-combining-tests: Likewise.
18392         * modules/unictype/property-composite-tests: Likewise.
18393         * modules/unictype/property-currency-symbol-tests: Likewise.
18394         * modules/unictype/property-dash-tests: Likewise.
18395         * modules/unictype/property-decimal-digit-tests: Likewise.
18396         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18397         * modules/unictype/property-deprecated-tests: Likewise.
18398         * modules/unictype/property-diacritic-tests: Likewise.
18399         * modules/unictype/property-extender-tests: Likewise.
18400         * modules/unictype/property-format-control-tests: Likewise.
18401         * modules/unictype/property-grapheme-base-tests: Likewise.
18402         * modules/unictype/property-grapheme-extend-tests: Likewise.
18403         * modules/unictype/property-grapheme-link-tests: Likewise.
18404         * modules/unictype/property-hex-digit-tests: Likewise.
18405         * modules/unictype/property-hyphen-tests: Likewise.
18406         * modules/unictype/property-id-continue-tests: Likewise.
18407         * modules/unictype/property-id-start-tests: Likewise.
18408         * modules/unictype/property-ideographic-tests: Likewise.
18409         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18410         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18411         * modules/unictype/property-ignorable-control-tests: Likewise.
18412         * modules/unictype/property-iso-control-tests: Likewise.
18413         * modules/unictype/property-join-control-tests: Likewise.
18414         * modules/unictype/property-left-of-pair-tests: Likewise.
18415         * modules/unictype/property-line-separator-tests: Likewise.
18416         * modules/unictype/property-logical-order-exception-tests: Likewise.
18417         * modules/unictype/property-lowercase-tests: Likewise.
18418         * modules/unictype/property-math-tests: Likewise.
18419         * modules/unictype/property-non-break-tests: Likewise.
18420         * modules/unictype/property-not-a-character-tests: Likewise.
18421         * modules/unictype/property-numeric-tests: Likewise.
18422         * modules/unictype/property-other-alphabetic-tests: Likewise.
18423         * modules/unictype/property-other-default-ignorable-code-point-tests:
18424         Likewise.
18425         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18426         * modules/unictype/property-other-id-continue-tests: Likewise.
18427         * modules/unictype/property-other-id-start-tests: Likewise.
18428         * modules/unictype/property-other-lowercase-tests: Likewise.
18429         * modules/unictype/property-other-math-tests: Likewise.
18430         * modules/unictype/property-other-uppercase-tests: Likewise.
18431         * modules/unictype/property-paired-punctuation-tests: Likewise.
18432         * modules/unictype/property-paragraph-separator-tests: Likewise.
18433         * modules/unictype/property-pattern-syntax-tests: Likewise.
18434         * modules/unictype/property-pattern-white-space-tests: Likewise.
18435         * modules/unictype/property-private-use-tests: Likewise.
18436         * modules/unictype/property-punctuation-tests: Likewise.
18437         * modules/unictype/property-quotation-mark-tests: Likewise.
18438         * modules/unictype/property-radical-tests: Likewise.
18439         * modules/unictype/property-sentence-terminal-tests: Likewise.
18440         * modules/unictype/property-soft-dotted-tests: Likewise.
18441         * modules/unictype/property-space-tests: Likewise.
18442         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18443         * modules/unictype/property-test-tests: Likewise.
18444         * modules/unictype/property-titlecase-tests: Likewise.
18445         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18446         * modules/unictype/property-unified-ideograph-tests: Likewise.
18447         * modules/unictype/property-uppercase-tests: Likewise.
18448         * modules/unictype/property-variation-selector-tests: Likewise.
18449         * modules/unictype/property-white-space-tests: Likewise.
18450         * modules/unictype/property-xid-continue-tests: Likewise.
18451         * modules/unictype/property-xid-start-tests: Likewise.
18452         * modules/unictype/property-zero-width-tests: Likewise.
18453         * modules/unictype/scripts-tests: Likewise.
18454         * modules/unictype/syntax-c-ident-tests: Likewise.
18455         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18456         * modules/unictype/syntax-java-ident-tests: Likewise.
18457         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18458         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18459         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18460         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18461         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18462         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18463         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18464         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18465         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18466         * modules/uniname/uniname-tests: Likewise.
18467         * modules/uninorm/canonical-decomposition-tests: Likewise.
18468         * modules/uninorm/compat-decomposition-tests: Likewise.
18469         * modules/uninorm/composition-tests: Likewise.
18470         * modules/uninorm/decomposing-form-tests: Likewise.
18471         * modules/uninorm/decomposition-tests: Likewise.
18472         * modules/uninorm/filter-tests: Likewise.
18473         * modules/uninorm/nfc-tests: Likewise.
18474         * modules/uninorm/nfd-tests: Likewise.
18475         * modules/uninorm/nfkc-tests: Likewise.
18476         * modules/uninorm/nfkd-tests: Likewise.
18477         * modules/uninorm/u8-normcmp-tests: Likewise.
18478         * modules/uninorm/u8-normcoll-tests: Likewise.
18479         * modules/uninorm/u16-normcmp-tests: Likewise.
18480         * modules/uninorm/u16-normcoll-tests: Likewise.
18481         * modules/uninorm/u32-normcmp-tests: Likewise.
18482         * modules/uninorm/u32-normcoll-tests: Likewise.
18483         * modules/unistdio/u8-asnprintf-tests: Likewise.
18484         * modules/unistdio/u8-vasnprintf-tests: Likewise.
18485         * modules/unistdio/u8-vasprintf-tests: Likewise.
18486         * modules/unistdio/u8-vsnprintf-tests: Likewise.
18487         * modules/unistdio/u8-vsprintf-tests: Likewise.
18488         * modules/unistdio/u16-asnprintf-tests: Likewise.
18489         * modules/unistdio/u16-vasnprintf-tests: Likewise.
18490         * modules/unistdio/u16-vasprintf-tests: Likewise.
18491         * modules/unistdio/u16-vsnprintf-tests: Likewise.
18492         * modules/unistdio/u16-vsprintf-tests: Likewise.
18493         * modules/unistdio/u32-asnprintf-tests: Likewise.
18494         * modules/unistdio/u32-vasnprintf-tests: Likewise.
18495         * modules/unistdio/u32-vasprintf-tests: Likewise.
18496         * modules/unistdio/u32-vsnprintf-tests: Likewise.
18497         * modules/unistdio/u32-vsprintf-tests: Likewise.
18498         * modules/unistdio/ulc-asnprintf-tests: Likewise.
18499         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
18500         * modules/unistdio/ulc-vasprintf-tests: Likewise.
18501         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
18502         * modules/unistdio/ulc-vsprintf-tests: Likewise.
18503         * modules/unistr/u8-check-tests: Likewise.
18504         * modules/unistr/u8-chr-tests: Likewise.
18505         * modules/unistr/u8-cmp-tests: Likewise.
18506         * modules/unistr/u8-cmp2-tests: Likewise.
18507         * modules/unistr/u8-cpy-alloc-tests: Likewise.
18508         * modules/unistr/u8-cpy-tests: Likewise.
18509         * modules/unistr/u8-mblen-tests: Likewise.
18510         * modules/unistr/u8-mbsnlen-tests: Likewise.
18511         * modules/unistr/u8-mbtouc-tests: Likewise.
18512         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
18513         * modules/unistr/u8-mbtoucr-tests: Likewise.
18514         * modules/unistr/u8-move-tests: Likewise.
18515         * modules/unistr/u8-next-tests: Likewise.
18516         * modules/unistr/u8-prev-tests: Likewise.
18517         * modules/unistr/u8-set-tests: Likewise.
18518         * modules/unistr/u8-stpcpy-tests: Likewise.
18519         * modules/unistr/u8-stpncpy-tests: Likewise.
18520         * modules/unistr/u8-strcat-tests: Likewise.
18521         * modules/unistr/u8-strcmp-tests: Likewise.
18522         * modules/unistr/u8-strcoll-tests: Likewise.
18523         * modules/unistr/u8-strcpy-tests: Likewise.
18524         * modules/unistr/u8-strdup-tests: Likewise.
18525         * modules/unistr/u8-strlen-tests: Likewise.
18526         * modules/unistr/u8-strmblen-tests: Likewise.
18527         * modules/unistr/u8-strmbtouc-tests: Likewise.
18528         * modules/unistr/u8-strncat-tests: Likewise.
18529         * modules/unistr/u8-strncmp-tests: Likewise.
18530         * modules/unistr/u8-strncpy-tests: Likewise.
18531         * modules/unistr/u8-strnlen-tests: Likewise.
18532         * modules/unistr/u8-to-u16-tests: Likewise.
18533         * modules/unistr/u8-to-u32-tests: Likewise.
18534         * modules/unistr/u8-uctomb-tests: Likewise.
18535         * modules/unistr/u16-check-tests: Likewise.
18536         * modules/unistr/u16-chr-tests: Likewise.
18537         * modules/unistr/u16-cmp-tests: Likewise.
18538         * modules/unistr/u16-cmp2-tests: Likewise.
18539         * modules/unistr/u16-cpy-alloc-tests: Likewise.
18540         * modules/unistr/u16-cpy-tests: Likewise.
18541         * modules/unistr/u16-mblen-tests: Likewise.
18542         * modules/unistr/u16-mbsnlen-tests: Likewise.
18543         * modules/unistr/u16-mbtouc-tests: Likewise.
18544         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
18545         * modules/unistr/u16-mbtoucr-tests: Likewise.
18546         * modules/unistr/u16-move-tests: Likewise.
18547         * modules/unistr/u16-next-tests: Likewise.
18548         * modules/unistr/u16-prev-tests: Likewise.
18549         * modules/unistr/u16-set-tests: Likewise.
18550         * modules/unistr/u16-stpcpy-tests: Likewise.
18551         * modules/unistr/u16-stpncpy-tests: Likewise.
18552         * modules/unistr/u16-strcat-tests: Likewise.
18553         * modules/unistr/u16-strcmp-tests: Likewise.
18554         * modules/unistr/u16-strcoll-tests: Likewise.
18555         * modules/unistr/u16-strcpy-tests: Likewise.
18556         * modules/unistr/u16-strdup-tests: Likewise.
18557         * modules/unistr/u16-strlen-tests: Likewise.
18558         * modules/unistr/u16-strmblen-tests: Likewise.
18559         * modules/unistr/u16-strmbtouc-tests: Likewise.
18560         * modules/unistr/u16-strncat-tests: Likewise.
18561         * modules/unistr/u16-strncmp-tests: Likewise.
18562         * modules/unistr/u16-strncpy-tests: Likewise.
18563         * modules/unistr/u16-strnlen-tests: Likewise.
18564         * modules/unistr/u16-to-u32-tests: Likewise.
18565         * modules/unistr/u16-to-u8-tests: Likewise.
18566         * modules/unistr/u16-uctomb-tests: Likewise.
18567         * modules/unistr/u32-check-tests: Likewise.
18568         * modules/unistr/u32-chr-tests: Likewise.
18569         * modules/unistr/u32-cmp-tests: Likewise.
18570         * modules/unistr/u32-cmp2-tests: Likewise.
18571         * modules/unistr/u32-cpy-alloc-tests: Likewise.
18572         * modules/unistr/u32-cpy-tests: Likewise.
18573         * modules/unistr/u32-mblen-tests: Likewise.
18574         * modules/unistr/u32-mbsnlen-tests: Likewise.
18575         * modules/unistr/u32-mbtouc-tests: Likewise.
18576         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
18577         * modules/unistr/u32-mbtoucr-tests: Likewise.
18578         * modules/unistr/u32-move-tests: Likewise.
18579         * modules/unistr/u32-next-tests: Likewise.
18580         * modules/unistr/u32-prev-tests: Likewise.
18581         * modules/unistr/u32-set-tests: Likewise.
18582         * modules/unistr/u32-stpcpy-tests: Likewise.
18583         * modules/unistr/u32-stpncpy-tests: Likewise.
18584         * modules/unistr/u32-strcat-tests: Likewise.
18585         * modules/unistr/u32-strcmp-tests: Likewise.
18586         * modules/unistr/u32-strcoll-tests: Likewise.
18587         * modules/unistr/u32-strcpy-tests: Likewise.
18588         * modules/unistr/u32-strdup-tests: Likewise.
18589         * modules/unistr/u32-strlen-tests: Likewise.
18590         * modules/unistr/u32-strmblen-tests: Likewise.
18591         * modules/unistr/u32-strmbtouc-tests: Likewise.
18592         * modules/unistr/u32-strncat-tests: Likewise.
18593         * modules/unistr/u32-strncmp-tests: Likewise.
18594         * modules/unistr/u32-strncpy-tests: Likewise.
18595         * modules/unistr/u32-strnlen-tests: Likewise.
18596         * modules/unistr/u32-to-u16-tests: Likewise.
18597         * modules/unistr/u32-to-u8-tests: Likewise.
18598         * modules/unistr/u32-uctomb-tests: Likewise.
18599         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
18600         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
18601         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
18602         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
18603         * modules/uniwidth/u8-strwidth-tests: Likewise.
18604         * modules/uniwidth/u8-width-tests: Likewise.
18605         * modules/uniwidth/u16-strwidth-tests: Likewise.
18606         * modules/uniwidth/u16-width-tests: Likewise.
18607         * modules/uniwidth/u32-strwidth-tests: Likewise.
18608         * modules/uniwidth/u32-width-tests: Likewise.
18609         * modules/uniwidth/width-tests: Likewise.
18610
18611 2010-05-18  Richard Jones  <rjones@redhat.com>
18612
18613         doc: users.txt: list hivex
18614         * users.txt: Add hivex.
18615
18616 2010-05-18  Richard Jones  <rjones@redhat.com>
18617
18618         doc: users.txt: list febootstrap
18619         * users.txt: Add febootstrap.
18620
18621 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
18622
18623         bootstrap: fix an error when gnulib is not used as a git submodule
18624         * build-aux/bootstrap (gnulib_path): If its length is zero then
18625         assign "gnulib" to it.
18626         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
18627
18628 2010-05-16  Bruno Haible  <bruno@clisp.org>
18629
18630         Avoid autoconf warnings about AM_ICONV.
18631         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
18632         2.64.
18633
18634 2010-05-16  Bruno Haible  <bruno@clisp.org>
18635
18636         absolute-header: Make the macro usable in more situations.
18637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
18638         from gl_ABSOLUTE_HEADER.
18639         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
18640
18641 2010-05-16  James Youngman  <jay@gnu.org>
18642
18643         doc: update users.txt
18644         * users.txt: Add CSSC.
18645
18646 2010-05-16  Jim Meyering  <meyering@redhat.com>
18647
18648         init.sh: fix an error in the previous change; add more comments
18649         * tests/init.sh: Compare exit code in loop against 9, not 2.
18650         Patch by Bruno Haible.
18651         Make the two tests more similar by adding an empty "then" clause.
18652         Add comments.
18653
18654         init.sh: avoid unnecessary shell re-exec
18655         * tests/init.sh: Improve the re-exec-required check to first test the
18656         current shell.  If it passes the test, do not search for a shell that
18657         does pass, and do not re-exec.  This test is particularly contorted to
18658         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
18659         of $(...) evokes a syntax error and causes immediate shell exit with
18660         status 2.  Bruno Haible reported that the re-exec made it impossible
18661         to single-step through any init.sh-using script.
18662
18663 2010-05-16  Bruno Haible  <bruno@clisp.org>
18664
18665         Fix collision between gnulib's and libintl's printf replacements.
18666         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
18667         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
18668         (printf): When using GNU C, map the __printf__ function to rpl_printf
18669         via __asm__. When not using GNU C, define rpl_printf instead of
18670         __printf__.
18671         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
18672         commit.
18673         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
18674         commit.
18675         * m4/asm-underscore.m4: New file.
18676         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
18677         * modules/stdio (Files): Add m4/asm-underscore.m4.
18678         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
18679         Reported by Ben Pfaff.
18680
18681 2010-05-16  Bruno Haible  <bruno@clisp.org>
18682
18683         verify: Avoid skipping the test on openSUSE 11.0.
18684         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
18685
18686 2010-05-13  Bruno Haible  <bruno@clisp.org>
18687
18688         Avoid useless warnings from G++.
18689         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
18690         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
18691         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18692
18693 2010-05-11  Jim Meyering  <meyering@redhat.com>
18694
18695         maint.mk: tweak preceding change
18696         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
18697         regexps tighter by anchoring at EOL, and make the new group "shy"
18698         for slightly decreased overhead.
18699
18700 2010-05-11  Eric Blake  <eblake@redhat.com>
18701
18702         maint.mk: gnulib doesn't guarantee NSIG
18703         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
18704
18705 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18706
18707         test-pwrite.c: Remove unused variable declaration.
18708         * tests/test-pwrite.c (main): Remove read_buf declaration.
18709
18710         Remove useless test-pwrite.sh file.
18711         * tests/test-pwrite.sh: Delete file.
18712         * modules/pwrite-tests: Remove references.
18713         Reported by Bruno Haible.
18714
18715 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
18716
18717         init.sh: fix a typo
18718         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
18719
18720 2010-05-10  Jim Meyering  <meyering@redhat.com>
18721
18722         maint.mk: avoid using a temporary file in the always-defined-macros check
18723         * top/maint.mk (.re-defmac): Remove rule.
18724         (gl_trap_): Remove definition.
18725         (sc_prohibit_always-defined_macros): Rewrite not to create and
18726         depend on a temporary file.  Instead, depend on GNU grep's ability
18727         to read a list of regular expressions from stdin when given "-f -".
18728
18729 2010-05-09  Bruno Haible  <bruno@clisp.org>
18730
18731         Update to GNU gettext 0.18, part 1.
18732         * m4/gettext.m4: Update to GNU gettext 0.18.
18733         * m4/intl.m4: Likewise.
18734         * m4/po.m4: Likewise.
18735         * modules/gettext (Files): Add m4/fcntl-o.m4.
18736         (configure.ac): Require gettext infrastructure from version 0.18.
18737
18738 2010-05-09  Jim Meyering  <meyering@redhat.com>
18739
18740         init.sh: enable MALLOC_PERTURB_
18741         * tests/init.sh: Enable glibc's malloc-perturbing option.
18742
18743         maint.mk: improve sc_cross_check_PATH_usage_in_tests
18744         With my recent change in init.sh from the two-line form:
18745             -#   : ${srcdir=.}
18746             -#   . "$srcdir/init.sh"; path_prepend_ .
18747             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
18748         I noticed that using the one-line form would cause this test
18749         to fail with a false-positive, or to stop working altogether,
18750         depending on whether help-version changed or all the tests did.
18751         * top/maint.mk (_hv_regex): Remove this definition.
18752         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
18753         (_hv_regex_strong): Use a stronger regex to check for conformance.
18754         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
18755         Give a separate diagnostic for lack of conforming use.
18756
18757         maint.mk: prohibit definition of symbols defined by gnulib
18758         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
18759         definition of symbols defined by gnulib.
18760
18761 2010-05-09  Bruno Haible  <bruno@clisp.org>
18762
18763         acl: Avoid test failure on Cygwin-hosted mingw.
18764         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
18765
18766 2010-05-09  Bruno Haible  <bruno@clisp.org>
18767
18768         error: Use system's fcntl function.
18769         * lib/error.c (fcntl): Undefine.
18770
18771 2010-05-09  Jim Meyering  <meyering@redhat.com>
18772
18773         verify: adjust formatting to be more consistent
18774         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
18775         argument-list '('s, and after one comma.
18776
18777 2010-05-09  Bruno Haible  <bruno@clisp.org>
18778
18779         error: More reliable output on mingw.
18780         * lib/error.c: Include <windows.h>.
18781         (is_open): New function.
18782         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
18783         defined.
18784
18785 2010-05-09  Bruno Haible  <bruno@clisp.org>
18786
18787         vasnprintf: Fix syntax errors in libintl build on mingw.
18788         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
18789         pad_ourselves and prec_ourselves after use.
18790
18791 2010-05-08  Bruno Haible  <bruno@clisp.org>
18792
18793         * lib/config.charset: Update comments for Cygwin 1.7.
18794         * lib/localcharset.c: Likewise.
18795
18796 2010-05-07  Jim Meyering  <meyering@redhat.com>
18797
18798         init.sh: improve comments
18799         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
18800         . "${srcdir=.}/init.sh"; path_prepend_ .
18801         Add a note about path_prepend_ and the alternative of using
18802         TESTS_ENVIRONMENT.
18803
18804 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18805
18806         exclude: Unescape hashed patterns in wildcard mode.
18807         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
18808         to the hash list.
18809         * tests/test-exclude8.sh: New test case.
18810         * modules/exclude-tests: Add new test.
18811
18812 2010-05-05  Eric Blake  <eblake@redhat.com>
18813
18814         verify: automate tests
18815         * modules/verify-tests: New module.
18816         * tests/test-verify.sh: New file.
18817         * tests/test-verify.c: Guard each negative test with a unique id.
18818         Also avoid warning about unused left hand of comma expressions.
18819
18820 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18821
18822         Further improvements to verify.h, suggested by Eric Blake.
18823         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
18824         the GL_* versions, to avoid collision with OpenGL.
18825         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
18826         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
18827         than testing merely whether it's defined.
18828
18829         Modify verify.h to pacify gcc -Wredundant_decls.
18830         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
18831         These use the prefix "GL_" since they're likely to be useful elsewhere.
18832         We may need to break them out into a different .h file.
18833         (__COUNTER__): Define to 0 if the compiler doesn't support it.
18834         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
18835         of verify_function__.
18836
18837 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18838
18839         Tests for module pwrite.
18840         * modules/pwrite-tests: New file.
18841         * tests/test-pwrite.sh: New file.
18842         * tests/test-pwrite.c: New file.
18843
18844         New module pwrite.
18845         * lib/unistd.in.h (pwrite): New declaration.
18846         * lib/pwrite.c: New file, from glibc with modifications.
18847         * m4/pwrite.m4: New file.
18848         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
18849         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
18850         REPLACE_PWRITE.
18851         * modules/pwrite: New file.
18852         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
18853         REPLACE_PWRITE.
18854         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
18855         * doc/posix-functions/pwrite.texi: Mention the new module.
18856
18857 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
18858
18859         pread: Update documentation.
18860         * doc/posix-functions/pread.texi: Mention the 'pread' module.
18861
18862 2010-05-04  Eric Blake  <eblake@redhat.com>
18863
18864         docs: update cygwin progress
18865         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
18866         this bug.
18867         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
18868         Added in cygwin 1.7.2.
18869         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
18870         Likewise.
18871         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
18872         Likewise.
18873         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18874         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
18875         * doc/glibc-functions/accept4.texi (accept4): Likewise.
18876         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
18877         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
18878         Mention nproc module.
18879         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
18880         bug in cygwin 1.7.5 addition.
18881         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
18882         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
18883         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
18884         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
18885         1.7.5.
18886         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
18887         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
18888         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
18889         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
18890         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
18891         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
18892         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
18893         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
18894         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
18895         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
18896         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
18897         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
18898         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
18899         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
18900         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
18901         Likewise.
18902         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
18903         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
18904         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
18905         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
18906         Likewise.
18907         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
18908         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
18909         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
18910         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
18911         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
18912         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
18913         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
18914         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
18915         Likewise.
18916         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
18917         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
18918         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
18919         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
18920         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
18921         Likewise.
18922         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
18923         Likewise.
18924         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
18925         Likewise.
18926         * doc/glibc-functions/xdrrec_endofrecord.texi
18927         (xdrrec_endofrecord): Likewise.
18928         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
18929         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
18930         Likewise.
18931         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
18932         Likewise.
18933
18934 2010-05-04  Jim Meyering  <meyering@redhat.com>
18935
18936         gendocs.sh: make its "-s FILE" option more useful
18937         * build-aux/gendocs.sh: When honoring the -s FILE option, update
18938         $PACKAGE to reflect the probably-different basename of "FILE".
18939
18940 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
18941
18942         bootstrap: don't ignore download_po_files failure
18943         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
18944         failure.
18945
18946 2010-05-03  Jim Meyering  <meyering@redhat.com>
18947
18948         maint.mk: allow to pass options to gendocs.sh
18949         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
18950         (gendocs_options_): New overridable variable.
18951
18952         gnu-web-doc-update: don't ignore configure or build failure
18953         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
18954
18955         announce-gen: backslash-escape '@'s in --help output
18956         * build-aux/announce-gen: Fix syntax errors.
18957
18958         maint.mk, announce-gen: allow project-specific announcement mail headers
18959         * top/maint.mk (translation_project_): Define default.
18960         (announcement_Cc_, announcement_mail_headers_): Likewise.
18961         (announcement): Invoke announce-gen with new --mail-headers option.
18962         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
18963
18964         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
18965         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
18966         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
18967         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
18968         line in the "err2" output file when running "make check" in verbose
18969         mode (i.e., with set -x enabled).
18970
18971 2010-05-03  Bruno Haible  <bruno@clisp.org>
18972
18973         wctob: Fix for weird platforms.
18974         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
18975         argument value.
18976
18977 2010-05-03  Jim Meyering  <meyering@redhat.com>
18978
18979         maint.mk: prohibit unwarranted use of <strings.h>
18980         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
18981         strings.h in a file that does not also use strcasecmp, strncasecmp,
18982         ffs or ffsll.
18983
18984         maint.mk: remove obsolete comments
18985         * top/maint.mk: Remove stale, commented-out rules.
18986
18987 2010-05-02  Bruno Haible  <bruno@clisp.org>
18988
18989         wcwidth: Declare also when it's aliased.
18990         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
18991         macro.
18992
18993 2010-05-02  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix regression from 2010-04-25.
18996         * gnulib-tool (func_modules_transitive_closure): Check the status of
18997         all modules, not only of the tests that are of the form foo-tests where
18998         foo is a module.
18999
19000 2010-05-02  Bruno Haible  <bruno@clisp.org>
19001
19002         wctob: Work around nasty Cygwin 1.7.2 bug.
19003         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19004         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19005
19006 2010-05-01  Bruno Haible  <bruno@clisp.org>
19007
19008         fpurge: Sharper test.
19009         * tests/test-fpurge.c (main): Add one more ftell check.
19010         * modules/fpurge-tests (Depends-on): Add ftell.
19011         Suggested by Eric Blake.
19012
19013 2010-05-01  Bruno Haible  <bruno@clisp.org>
19014
19015         ftello: Another test.
19016         * tests/test-ftello3.c: New file.
19017         * modules/ftello-tests (Files): Add it.
19018         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19019         MOSTLYCLEANFILES.
19020
19021         ftell: Another test.
19022         * tests/test-ftell3.c: New file.
19023         * modules/ftell-tests (Files): Add it.
19024         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19025         MOSTLYCLEANFILES.
19026
19027 2010-05-01  Bruno Haible  <bruno@clisp.org>
19028
19029         ftell, ftello: Work around Solaris bug.
19030         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19031         * lib/ftello.c: Include stdio-impl.h.
19032         (ftello): On Solaris, when _IOWRT is set, compute the result without
19033         looking at _IOREAD.
19034         * modules/ftello (Files): Add lib/stdio-impl.h.
19035         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19036         * doc/posix-functions/ftello.texi: Likewise.
19037         Reported by Eric Blake.
19038
19039 2010-05-01  Bruno Haible  <bruno@clisp.org>
19040
19041         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19042         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19043         the _IOWRT flag is also set.
19044
19045 2010-05-01  Bruno Haible  <bruno@clisp.org>
19046
19047         Fix doc about a HP-UX stdio bug.
19048         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19049         * doc/posix-functions/ftello.texi: Likewise.
19050
19051 2010-05-01  Bruno Haible  <bruno@clisp.org>
19052
19053         lseek test: Fix failure on Solaris.
19054         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19055         output.
19056
19057 2010-04-30  Jim Meyering  <meyering@redhat.com>
19058
19059         bootstrap: don't ignore failure to generate po*/Makevars
19060         * build-aux/bootstrap (with_gettext): Don't ignore failure
19061         to create po/Makevars or runtime-po/Makevars.
19062
19063 2010-04-29  Eric Blake  <eblake@redhat.com>
19064
19065         headers: relax license to LGPLv2+
19066         * modules/fcntl-h (License): Relax license.
19067         * modules/getopt-posix (License): Likewise.
19068         * modules/locale (License): Likewise.
19069         * modules/math (License): Likewise.
19070         * modules/pty (License): Likewise.
19071         * modules/sched (License): Likewise.
19072         * modules/search (License): Likewise.
19073         * modules/spawn (License): Likewise.
19074         * modules/stdarg (License): Likewise.
19075         * modules/sysexits (License): Likewise.
19076
19077 2010-04-29  Jim Meyering  <meyering@redhat.com>
19078
19079         inttypes: relax license to LGPLv2+
19080         * modules/inttypes (License): Relax license.
19081
19082 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19083
19084         * top/maint.mk (indent): Run twice to produce idempotent results.
19085
19086 2010-04-28  Bruno Haible  <bruno@clisp.org>
19087
19088         getdate: Generate getdate.c in the source directory.
19089         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19090         MOSTLYCLEANFILES.
19091         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19092
19093 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19094
19095         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19096         is not declared as a const *; avoid warnings in that case.
19097
19098 2010-04-28  Eric Blake  <eblake@redhat.com>
19099
19100         canonicalize-lgpl: avoid compiler warning
19101         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19102         declaration' / 'extraneous semicolon' warning with some compilers.
19103         Reported by Andreas Gruenbacher.
19104
19105 2010-04-28  Jim Meyering  <meyering@redhat.com>
19106
19107         init.sh: ensure a more reliable exit status when exiting via trap
19108         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19109         Inspired by patches from Dmitry V. Levin.
19110         Also trap on signal 3 (SIGQUIT).
19111
19112 2010-04-27  Bruno Haible  <bruno@clisp.org>
19113
19114         Update doc about utimes().
19115         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19116         'utimens' module.
19117         Reported by Andreas Gruenbacher <agruen@suse.de>.
19118
19119 2010-04-27  Eric Blake  <eblake@redhat.com>
19120
19121         full-read, full-write: relax license
19122         * modules/full-read (License): Drop to LGPLv2+.
19123         * modules/full-write (License): Likewise.
19124         * modules/safe-read (License): Likewise.
19125         * modules/safe-write (License): Likewise.
19126
19127         pthread: mention library for linking
19128         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19129
19130 2010-04-27  Jim Meyering  <meyering@redhat.com>
19131
19132         maint.mk: fix a bug introduced in last change
19133         * top/maint.mk (gl_assured_headers_): Now that all names are on
19134         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19135         is not anchored to end of word, it should be adequate.
19136
19137         maint.mk: avoid side-effect in latest syntax-check
19138         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19139         to run commands via $(shell...), and hence to incur cost only when
19140         the new rule is actually run.
19141
19142         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19143         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19144         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19145         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19146         (gl_assured_headers_, az_, AZ_): Define.
19147         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19148
19149 2010-04-26  Jim Meyering  <jim@meyering.net>
19150             Bruno Haible  <bruno@clisp.org>
19151
19152         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19153         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19154         Prompted by an exchange with Gilles Espinasse.
19155
19156 2010-04-26  Jim Meyering  <meyering@redhat.com>
19157
19158         git-version-gen: aesthetic tweak
19159         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19160         so that the command remains on a single line.
19161
19162 2010-04-26  Eric Blake  <eblake@redhat.com>
19163
19164         git-version-gen: allow use on EBCDIC hosts
19165         * build-aux/git-version-gen (dirty): Use literal rather than tying
19166         ourselves to ascii.
19167         Reported by Steve Goetze.
19168
19169 2010-04-25  Bruno Haible  <bruno@clisp.org>
19170
19171         netdb: Add support for GNULIB_POSIXCHECK.
19172         * lib/netdb.in.h: Include warn-on-use.h.
19173         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19174         functions are used when GNULIB_POSIXCHECK is defined and the
19175         getaddrinfo module is not in use.
19176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19177         freeaddrinfo, gai_strerror, getnameinfo are declared.
19178         * modules/netdb (Depends-on): Add warn-on-use.
19179         (Makefile.am): Include warn-on-use.h in netdb.h.
19180
19181 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19182
19183         build: avoid "make check" failure without .git/ directory
19184         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19185         there is no .git/ directory.
19186
19187 2010-04-25  Bruno Haible  <bruno@clisp.org>
19188
19189         ptsname: Fix misuse of ttyname_r.
19190         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19191         of errno.
19192
19193 2010-04-25  Bruno Haible  <bruno@clisp.org>
19194
19195         ttyname_r: Make it work on Solaris 10.
19196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19197         if the system function has the POSIX declaration. Test whether the
19198         function fails if the buffer is less than 128 bytes large.
19199         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19200         system's ttyname_r function. Provide a reasonably large buffer.
19201         * modules/ttyname_r (Depends-on): Add extensions.
19202         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19203
19204 2010-04-25  Bruno Haible  <bruno@clisp.org>
19205
19206         Use the 'extensions' module for some more functions on Solaris.
19207         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19208         module.
19209         * doc/posix-functions/ctime_r.texi: Likewise.
19210         * doc/posix-functions/getgrgid_r.texi: Likewise.
19211         * doc/posix-functions/getgrnam_r.texi: Likewise.
19212         * doc/posix-functions/getpwnam_r.texi: Likewise.
19213         * doc/posix-functions/getpwuid_r.texi: Likewise.
19214         * doc/posix-functions/readdir_r.texi: Likewise.
19215         * doc/posix-functions/sigwait.texi: Likewise.
19216         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19217         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19218
19219 2010-04-25  Bruno Haible  <bruno@clisp.org>
19220
19221         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19222         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19223         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19224         * lib/ttyname_r.c: Include <limits.h>.
19225         (ttyname_r): Define using the system's ttyname_r function, if it exists
19226         and not on Solaris.
19227         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19228         set.
19229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19230         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19231         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19232         Reported by Simon Josefsson.
19233
19234 2010-04-25  Bruno Haible  <bruno@clisp.org>
19235
19236         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19237         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19238         * doc/posix-functions/ctime_r.texi: Likewise.
19239         * doc/posix-functions/getgrgid_r.texi: Likewise.
19240         * doc/posix-functions/getgrnam_r.texi: Likewise.
19241         * doc/posix-functions/getlogin_r.texi: Likewise.
19242         * doc/posix-functions/getpwnam_r.texi: Likewise.
19243         * doc/posix-functions/getpwuid_r.texi: Likewise.
19244         * doc/posix-functions/readdir_r.texi: Likewise.
19245         * doc/posix-functions/sigwait.texi: Likewise.
19246         * doc/posix-functions/ttyname_r.texi: Likewise.
19247         Reported by Simon Josefsson.
19248
19249 2010-04-25  Bruno Haible  <bruno@clisp.org>
19250
19251         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19252         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19253         also to --create-testdir.
19254         (func_acceptable): Don't consider the status of *-tests modules here.
19255         (func_modules_transitive_closure): Consider it here, before including a
19256         test module.
19257         (func_import, func_create_testdir): Set inc_all_direct_tests,
19258         inc_all_indirect_tests.
19259         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19260         --create-testdir and --create-megatestdir.
19261
19262 2010-04-25  Bruno Haible  <bruno@clisp.org>
19263
19264         gnulib-tool: Add --without-*-tests options.
19265         * gnulib-tool (func_usage): Document the --without-*-tests options.
19266         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19267         excl_unportable_tests): New variables.
19268         Fail if they are specified with --import or --update.
19269         (func_acceptable): Respect the excl_*_tests variables.
19270         (func_import): Set the excl_*_tests variables to empty.
19271
19272 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19273             Bruno Haible  <bruno@clisp.org>
19274
19275         Work around a MacOS X 10.4 bug with openpty.
19276         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19277         * tests/test-openpty.c (main): Close the master side explicitly.
19278
19279 2010-04-25  Bruno Haible  <bruno@clisp.org>
19280
19281         strnlen: Fix a C++ test error on MacOS X and Solaris.
19282         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19283         the function is not declared.
19284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19285         Simon Josefsson.
19286
19287 2010-04-24  Bruno Haible  <bruno@clisp.org>
19288
19289         Avoid a gcc warning.
19290         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19291         of correct type for %08lx directive.
19292         Reported by Eric Blake.
19293
19294 2010-04-24  Bruno Haible  <bruno@clisp.org>
19295
19296         vasnprintf: Correct errno value in case of out-of-memory.
19297         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19298         or sprintf. Use the errno value from SNPRINTF or sprintf.
19299         Reported by Ian Beckwith <ianb@erislabs.net>.
19300
19301 2010-04-24  Bruno Haible  <bruno@clisp.org>
19302
19303         ansi-c++-opt: Find correct compiler when cross-compiling.
19304         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19305         AC_CHECK_PROGS.
19306         Reported by Simon Josefsson.
19307
19308 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19309
19310         vc-list-files: Add support for subversion
19311         * build-aux/vc-list-files: Use "svn list" to generate the list of
19312         files controlled by subversion.
19313
19314 2010-04-23  Jim Meyering  <meyering@redhat.com>
19315
19316         vc-list-files tests: convert to use init.sh
19317         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19318         path_prepend_.
19319         Use Exit, not exit.
19320         Use skip_ rather than open coding it.
19321         Remove trap set-up and compare definitions.
19322         * tests/test-vc-list-files-git.sh: Likewise.
19323         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19324
19325 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19326
19327         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19328         backup files.
19329
19330 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19331
19332         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19333
19334 2010-04-20  Eric Blake  <eblake@redhat.com>
19335
19336         tests: be robust to ignored SIGPIPE
19337         * tests/test-select-in.sh: Consume all output.
19338         * tests/test-lseek.sh: Check correct exit status, while avoiding
19339         EPIPE.
19340
19341 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19342             Bruno Haible  <bruno@clisp.org>
19343
19344         visibility: Don't use -fvisibility if it leads to a warning.
19345         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19346         yes, don't pretend that visibility works if it leads to a warning.
19347         Reported by Mike Gran <spk121@yahoo.com>.
19348
19349 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19350
19351         * build-aux/bootstrap: Use "git -h" for testing for supported options
19352         instead of "git --help".  The short-form option only shows a summary,
19353         and doesn't layout the full man page.  Grep for the full option name
19354         in the summary, too.
19355
19356 2010-04-19  Bruno Haible  <bruno@clisp.org>
19357
19358         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19359         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19360         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19361         mention of RELOCATABLE_STRIP.
19362         Reported by Sylvain Beucler <beuc@beuc.net>.
19363
19364 2010-04-19  Bruno Haible  <bruno@clisp.org>
19365
19366         * lib/diffseq.h: Fix typo in comment.
19367         Reported by Eric Blake.
19368
19369 2010-04-19  Bruno Haible  <bruno@clisp.org>
19370
19371         ioctl: Move autoconf macro to a .m4 file.
19372         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19373         * modules/ioctl (Files): Add it.
19374         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19375         Reported by Ian Beckwith <ianb@erislabs.net>.
19376
19377 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19378             Bruno Haible  <bruno@clisp.org>
19379
19380         diffseq: Accommodate use-case with abstract arrays.
19381         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19382         is not defined.
19383         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19384         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19385
19386 2010-04-18  Bruno Haible  <bruno@clisp.org>
19387
19388         * doc/posix-headers/stdbool.texi: More precise wording.
19389
19390 2010-04-17  Jim Meyering  <meyering@redhat.com>
19391
19392         maint.mk: use gnu-style indentation in an embedded perl script
19393         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19394         Rename variable: s/two/last_two_bytes/
19395
19396 2010-04-16  Eric Blake  <eblake@redhat.com>
19397
19398         test-stdbool: skip test that fails with Solaris CC
19399         * tests/test-stdbool.c (f): Skip test that causes compilation
19400         error under buggy C++ compiler.
19401         * lib/stdbool.in.h: Document the limitation.
19402         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19403
19404         setenv: allow compilation with C++
19405         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19406         register keyword.
19407
19408         stdint: allow test to pass with C++
19409         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19410
19411         getopt: allow compilation with C++
19412         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19413         struct.
19414         * lib/getopt.c (_getopt_internal_r): Use correct type.
19415         Reported by Dagobert Michelson, via Joel E. Denny.
19416
19417 2010-04-16  Bruno Haible  <bruno@clisp.org>
19418
19419         Override netdb.h always.
19420         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19421         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19422         Reported by Ludovic Courtès <ludo@gnu.org>.
19423
19424 2010-04-15  Bruno Haible  <bruno@clisp.org>
19425
19426         openpty: Fix mistake from 2010-03-21.
19427         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19428         Reported by Simon Josefsson.
19429
19430 2010-04-15  Eric Blake  <eblake@redhat.com>
19431
19432         test-forkpty: fix expected signature
19433         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19434         Reported by Simon Josefsson.
19435
19436 2010-04-15  Jim Meyering  <meyering@redhat.com>
19437
19438         maint.mk: texinfo_suffix_re_: correct the default regexp
19439         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19440
19441         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19442         make it configurable via texinfo_suffix_re_.
19443
19444 2010-04-14  Eric Blake  <eblake@redhat.com>
19445
19446         strtok_r: relax license to LGPLv2+
19447         * modules/strtok_r (License): Relax license.
19448         Reported by Matthias Bolte.
19449
19450 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19451
19452         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19453         version 1.4.4 by default instead of requiring the libgcrypt
19454         version used during build.  This makes it possible to use the
19455         application with older but still binary compatible libgcrypt
19456         versions.
19457
19458 2010-04-13  Eric Blake  <eblake@redhat.com>
19459
19460         getopt-gnu: match recent glibc fixes and posix ruling
19461         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19462         '+' handling, when requesting extensions.
19463         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19464         'W;' handling.
19465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19466         * doc/posix-functions/getopt.texi (getopt): Document this.
19467         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19468         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19469         Likewise.
19470
19471         getopt: merge bug fixes from glibc
19472         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
19473         diagnostics.  Honor '+:' correctly.  Reject ';'.
19474
19475         getopt-posix: detect MacOS bug
19476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
19477         optind when missing a required argument.
19478         * doc/posix-functions/getopt.texi (getopt): Document the bug.
19479         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19481         Likewise.
19482
19483         getopt-posix: avoid spurious failure on Solaris
19484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
19485         an indicator that setting optind=1 is sufficient for reset.
19486
19487         getopt-posix: avoid spurious failure on FreeBSD
19488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
19489         in POSIX mode, since the m4 test uses it.
19490
19491         gnulib-tool: silence warning on BSD sh
19492         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
19493
19494 2010-04-13  Jim Meyering  <meyering@redhat.com>
19495
19496         doc: users.txt: GNU patch now uses gnulib
19497         * users.txt: Add patch.
19498
19499 2010-04-12  Jim Meyering  <meyering@redhat.com>
19500
19501         maint.mk: generate more concise timing data for syntax-check rules
19502         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
19503         " done" from each line that reports a syntax-check test duration.
19504
19505 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
19506
19507         git-version-gen: use "git update-index..." rather than "git status"
19508         * build-aux/git-version-gen: Use git update-index --refresh, not
19509         "git status".  With some versions of git, "git status" would fail
19510         to update the index and result in an unwarranted "-dirty" suffix.
19511
19512 2010-04-11  Jim Meyering  <meyering@redhat.com>
19513
19514         openat: correct formatting (no semantic change)
19515         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
19516         Suggested by Bruno Haible.
19517
19518 2010-04-11  Bruno Haible  <bruno@clisp.org>
19519
19520         Stricter declaration checking in testdirs.
19521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19522         If for_tests is true, augment AM_CPPFLAGS to define
19523         GNULIB_STRICT_CHECKING.
19524         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
19525         GNULIB_STRICT_CHECKING is defined, verify that the function is
19526         declared.
19527
19528 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
19529             Bruno Haible  <bruno@clisp.org>
19530
19531         libunistring: Improve configure output.
19532         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
19533         Don't say "consider installing GNU libunistring" when checking again
19534         with libiconv.
19535
19536 2010-04-11  Bruno Haible  <bruno@clisp.org>
19537
19538         libunistring: Correct value of $LTLIBUNISTRING.
19539         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
19540         correct the value of $LTLIBUNISTRING.
19541
19542 2010-04-11  Bruno Haible  <bruno@clisp.org>
19543
19544         havelib: Add static libraries to LIBS in the right order.
19545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
19546         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
19547
19548 2010-04-11  Bruno Haible  <bruno@clisp.org>
19549
19550         libunistring: Detect libunistring also when it depends on libiconv.
19551         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
19552         the second AC_LIB_HAVE_LINKFLAGS invocation.
19553
19554 2010-04-11  James Youngman  <jay@gnu.org>
19555
19556         close-stream: declare local scalars to be "const"
19557         * lib/close-stream.c (close_stream): Make boolean variables const
19558         to document the fact that we set but do not change them.
19559
19560 2010-04-11  Bruno Haible  <bruno@clisp.org>
19561
19562         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
19563
19564 2010-04-11  Jim Meyering  <meyering@redhat.com>
19565
19566         maint.mk: don't include dist-check.mk
19567         * top/maint.mk: Remove bogus include directive.
19568
19569         maint.mk: improve empty-line-at-EOF check
19570         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
19571         solution, rather than tail+Perl-based one.  The latter would read
19572         a few kilobytes from the end of each file, and did not handle empty
19573         files properly.
19574
19575         maint.mk: print the elapsed time for each syntax-check rule
19576         * top/maint.mk (sc_m_rules_): Save start time in a file.
19577         (sc_z_rules_): New rules: remove temp file and print elapsed time.
19578         (local-check): Interpose the .z rules
19579
19580 2010-04-11  Jim Meyering  <meyering@redhat.com>
19581
19582         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
19583         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
19584         empty file with one that ends in an empty line.
19585
19586 2010-04-10  Bruno Haible  <bruno@clisp.org>
19587
19588         mkdir: Make it work on mingw64.
19589         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
19590         * lib/mkdir.c: Update comment.
19591         Reported by Roman Donchenko (Đ Đ¾Đ¼Đ°Đ½ Đ”Đ¾Đ½Ñ‡ĐµĐ½ĐºĐ¾) <dxdragon@yandex.ru>.
19592
19593 2010-04-10  Bruno Haible  <bruno@clisp.org>
19594
19595         Don't override improved macro from newer autoconf.
19596         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
19597         autoconf >= 2.62.
19598         Reported by Joel E. Denny <jdenny@clemson.edu>.
19599
19600 2010-04-10  Jim Meyering  <meyering@redhat.com>
19601
19602         maint.mk: new syntax-check rule: prohibit empty lines at end of file
19603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
19604
19605         maint.mk: correct a diagnostic
19606         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
19607         in diagnostic; now use $prohibit.
19608
19609 2010-04-10  Bruno Haible  <address@hidden>
19610
19611         fchownat: Fix a C++ test error on Solaris 8.
19612         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
19613         the function does not exist.
19614
19615 2010-04-10  Bruno Haible  <bruno@clisp.org>
19616
19617         vasnprintf: Add more tests.
19618         * tests/test-vasnprintf-posix.c: Include <errno.h>.
19619         (test_function): Test converting an invalid wide string.
19620
19621         vasnprintf: Correct handling of unconvertible wide string arguments.
19622         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
19623         VASNPRINTF.
19624         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
19625         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
19626         smaller than the expected maximum need for the directive. Set errno to
19627         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
19628         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
19629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
19630         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
19631         * modules/vasnprintf (Files): Add m4/printf.m4.
19632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19633
19634 2010-04-10  Bruno Haible  <bruno@clisp.org>
19635
19636         vasnprintf: Fix crash in %ls directive.
19637         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
19638         string is passed as argument to %ls, with no precision and no width.
19639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19640
19641 2010-04-10  Bruno Haible  <bruno@clisp.org>
19642
19643         vasnprintf: Fix multiple test failures on mingw.
19644         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
19645         _snprintf, or snwprintf, not _snwprintf.
19646
19647 2010-04-10  Bruno Haible  <bruno@clisp.org>
19648
19649         write: Fix a C++ test error on mingw.
19650         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
19651
19652 2010-04-10  Bruno Haible  <bruno@clisp.org>
19653
19654         vasnprintf test: Reduce code duplication.
19655         * tests/test-vasnprintf.c (test_function): New function, extracted from
19656         test_vasnprintf.
19657         (test_vasnprintf, test_asnprintf): Invoke it.
19658
19659 2010-04-10  Bruno Haible  <bruno@clisp.org>
19660
19661         strnlen: Fix warning in C++ mode on MacOS X.
19662         * lib/string.in.h (strnlen): Use the modern idiom.
19663         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
19664         defining strnlen as a macro already in <config.h>.
19665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19666         REPLACE_STRNLEN.
19667         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
19668         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19669
19670 2010-04-08  James Youngman  <jay@gnu.org>
19671
19672         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
19673         the example.
19674
19675 2010-04-09  Jim Meyering  <meyering@redhat.com>
19676
19677         maint.mk: print better diagnostic when there is no $(_hv_file)
19678         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
19679         announce that when $(_hv_file) (aka help-version) does not exist.
19680
19681         init.sh: run tr in the "C" locale to avoid multibyte interpretation
19682         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
19683         not try to interpret its random input bytes.  Jarno Rajahalme reported
19684         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
19685         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
19686         (mktempd_): Likewise, just in case.
19687
19688         ftruncate: add two years to projected module removal date: 2012
19689         * m4/ftruncate.m4: Adjust comments.
19690
19691         ftruncate: mark module as obsolete; even MinGW provides it, now
19692         * modules/ftruncate (Status): Obsolete.
19693         (Notice): Say that.
19694         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
19695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
19696
19697 2010-04-08  Bruno Haible  <bruno@clisp.org>
19698
19699         Fix side effects from tests-related modules.
19700         * modules/dprintf-posix (Comment): New section.
19701         * modules/fprintf-posix (Comment): Likewise.
19702         * modules/obstack-printf-posix (Comment): Likewise.
19703         * modules/printf-posix (Comment): Likewise.
19704         * modules/snprintf-posix (Comment): Likewise.
19705         * modules/sprintf-posix (Comment): Likewise.
19706         * modules/vasnprintf-posix (Comment): Likewise.
19707         * modules/vasprintf-posix (Comment): Likewise.
19708         * modules/vdprintf-posix (Comment): Likewise.
19709         * modules/vfprintf-posix (Comment): Likewise.
19710         * modules/vprintf-posix (Comment): Likewise.
19711         * modules/vsnprintf-posix (Comment): Likewise.
19712         * modules/vsprintf-posix (Comment): Likewise.
19713         * modules/xprintf-posix (Comment): Likewise.
19714         * modules/xvasprintf-posix (Comment): Likewise.
19715         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
19716         * modules/floorf-tests (Depends-on): Likewise.
19717         * modules/round-tests (Depends-on): Likewise.
19718         * modules/roundf-tests (Depends-on): Likewise.
19719         * modules/trunc-tests (Depends-on): Likewise.
19720         * modules/truncf-tests (Depends-on): Likewise.
19721         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
19722         'fprintf-posix' module is not present.
19723         * tests/test-floorf2.c (check): Likewise.
19724         * tests/test-trunc2.c (check): Likewise.
19725         * tests/test-truncf2.c (check): Likewise.
19726         * tests/test-round2.c (equal): Likewise.
19727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19728
19729 2010-04-07  Karl Berry  <karl@gnu.org>
19730
19731         * config/srclist.txt,
19732         * config/srclistvars.sh,
19733         * config/srclist-update: doc fixes.
19734
19735 2010-04-07  Jim Meyering  <meyering@redhat.com>
19736
19737         maint.mk: add a PATH crosschecking syntax-check rule
19738         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
19739         Useful if you use a test like the one in help-version (coreutils,
19740         diffutils, grep, gzip) that ensures $(VERSION) matches what is
19741         printed by prog --version.
19742
19743 2010-04-06  Bruno Haible  <bruno@clisp.org>
19744
19745         Fix link error on mingw.
19746         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
19747         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
19748
19749 2010-04-06  Bruno Haible  <bruno@clisp.org>
19750
19751         Assume rmdir exists.
19752         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
19753
19754 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
19755
19756         doc: update users.txt
19757         * users.txt: Add gcal.
19758
19759 2010-04-06  Jim Meyering  <meyering@redhat.com>
19760
19761         init.sh: simply unset TMPDIR rather than risking env -i
19762         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
19763         although it probably works fine on all Unix-based systems, some
19764         systems (Cygwin?) cannot tolerate a totally cleared environment.
19765         Suggestion from Eric Blake.
19766
19767 2010-04-06  Jim Meyering  <meyering@redhat.com>
19768
19769         init.sh: portability fix: use env's POSIX-specified -i option not -u
19770         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
19771         than unportable env -u.  Solaris 5.11's env lacks support for -u.
19772
19773 2010-04-05  Bruno Haible  <bruno@clisp.org>
19774
19775         btowc: Work around Cygwin 1.7.2 bug.
19776         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
19777         does not map NUL to 0.
19778         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
19779
19780 2010-04-05  Bruno Haible  <bruno@clisp.org>
19781
19782         Make the multithread modules work on Cygwin 1.7.2.
19783         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
19784         imported symbols can be declared weak, so that it returns "no" on
19785         Cygwin 1.7.2.
19786
19787 2010-04-05  Bruno Haible  <bruno@clisp.org>
19788
19789         Use the module 'strncat'.
19790         * modules/unistr/u8-strncat (Depends-on): Add strncat.
19791
19792         Tests for module 'strncat'.
19793         * modules/strncat-tests: New file.
19794         * tests/test-strncat.c: New file.
19795
19796         New module 'strncat'.
19797         * lib/string.in.h (strncat): New declaration.
19798         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
19799         * m4/strncat.m4: New file, based on m4/memchr.m4.
19800         * modules/strncat: New file.
19801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
19802         is declared.
19803         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
19804         REPLACE_STRNCAT.
19805         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
19806         REPLACE_STRNCAT.
19807         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
19808         module.
19809         * tests/test-string-c++.cc: Check signature of strncat.
19810
19811 2010-04-05  Jim Meyering  <meyering@redhat.com>
19812
19813         xstrtoumax-tests: convert to use init.sh
19814         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
19815         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19816         Use Exit, not exit.
19817         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19818
19819         xstrtoimax-tests: convert to use init.sh
19820         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
19821         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19822         Use Exit, not exit.
19823         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19824
19825 2010-04-05  Bruno Haible  <bruno@clisp.org>
19826
19827         sys_socket: Avoid #define replacements in C++ mode.
19828         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19829         warning to the function if possible, rather than #defining the symbol
19830         to a dysfunctional alias.
19831
19832 2010-04-05  Bruno Haible  <bruno@clisp.org>
19833
19834         fseeko: Fix C++ test error on mingw.
19835         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
19836         gl_FUNC_FSEEKO.
19837         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
19838         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
19839         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
19840         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
19841
19842 2010-04-05  Bruno Haible  <bruno@clisp.org>
19843
19844         duplocale: Improve test output.
19845         * tests/test-duplocale.c (main): Print reason for skipped test.
19846
19847 2010-04-05  Bruno Haible  <bruno@clisp.org>
19848
19849         Assume rmdir exists.
19850         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
19851         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
19852
19853 2010-04-05  Bruno Haible  <bruno@clisp.org>
19854
19855         Fix link error on Solaris 8 with cc.
19856         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
19857
19858 2010-04-05  Bruno Haible  <bruno@clisp.org>
19859
19860         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19861         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
19862
19863 2010-04-05  Bruno Haible  <bruno@clisp.org>
19864
19865         vasprintf: Update documentation.
19866         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
19867
19868 2010-04-05  Bruno Haible  <bruno@clisp.org>
19869
19870         ptsname: Improve test.
19871         * tests/test-ptsname.c (main): Also try the various master names of BSD
19872         systems.
19873
19874 2010-04-05  Bruno Haible  <bruno@clisp.org>
19875
19876         memchr: Avoid a possible C++ test error.
19877         * lib/string.in.h (memchr): Provide declaration if function is missing.
19878         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
19879         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
19880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
19881         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
19882
19883 2010-04-05  Bruno Haible  <bruno@clisp.org>
19884
19885         strtok_r: Improve idiom.
19886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
19887         AC_LIBOBJ is used.
19888
19889 2010-04-05  Bruno Haible  <bruno@clisp.org>
19890
19891         strdup: Improve idiom.
19892         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
19893         AC_LIBOBJ is used.
19894         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
19895         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
19896         when AC_LIBOBJ is used.
19897
19898 2010-04-05  Bruno Haible  <bruno@clisp.org>
19899
19900         mbsinit, mbrtowc, wcrtomb: Improve idioms.
19901         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
19902         don't set REPLACE_MBSINIT to 1.
19903         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
19904         don't set REPLACE_MBRTOWC to 1.
19905         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
19906         exist, don't set REPLACE_MBSRTOWCS to 1.
19907         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
19908         exist, don't set REPLACE_MBSNRTOWCS to 1.
19909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
19910         don't set REPLACE_WCRTOMB to 1.
19911         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
19912         exist, don't set REPLACE_WCSRTOMBS to 1.
19913         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
19914         exist, don't set REPLACE_WCSNRTOMBS to 1.
19915
19916 2010-04-05  Bruno Haible  <bruno@clisp.org>
19917
19918         ldexpl: Improve idiom.
19919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
19920         make sure to set HAVE_DECL_LDEXPL to 0.
19921
19922 2010-04-05  Jim Meyering  <meyering@redhat.com>
19923
19924         xstrtol-tests: convert to use init.sh
19925         * modules/xstrtol-tests (Files): Add tests/init.sh.
19926         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19927         Use Exit, not exit.
19928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19929
19930         atexit-tests: convert to use init.sh
19931         * modules/atexit-tests (Files): Add tests/init.sh.
19932         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
19933         Use Exit, not exit.
19934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
19935
19936         init.sh: fix typo
19937         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
19938
19939         init.sh: make it easier for a test script to write to the tty, ...
19940         when using automake's parallel-tests mode.
19941         * tests/init.sh (stderr_fileno_): Define overridable variable.
19942         (warn_): New function, to use it.
19943         (fail_, skip_, framework_failure_): Use warn_.
19944
19945 2010-04-04  Bruno Haible  <bruno@clisp.org>
19946
19947         btowc: Avoid warning.
19948         * lib/btowc.c: Include <stdlib.h>.
19949         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
19950
19951 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19952             Bruno Haible  <bruno@clisp.org>
19953
19954         wchar: Port to NetBSD 1.5.
19955         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
19956         * lib/wctype.in.h (WEOF): Likewise.
19957
19958 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19959             Bruno Haible  <bruno@clisp.org>
19960
19961         Port extended stdio to NetBSD 1.5.
19962         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
19963         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
19964         older.
19965
19966 2010-04-04  Bruno Haible  <bruno@clisp.org>
19967
19968         string: Remove unused substitution.
19969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19970         HAVE_DECL_STRERROR.
19971         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
19972
19973 2010-04-04  Bruno Haible  <bruno@clisp.org>
19974
19975         strtod: Avoid a possible C++ test error.
19976         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
19977         set REPLACE_STRTOD.
19978
19979 2010-04-04  Bruno Haible  <bruno@clisp.org>
19980
19981         strerror: Update documentation.
19982         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
19983
19984 2010-04-04  Bruno Haible  <bruno@clisp.org>
19985
19986         stdio: Fix some C++ test errors on Solaris 8 with GCC.
19987         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
19988         _GL_CXXALIAS_SYS_CAST.
19989
19990 2010-04-04  Bruno Haible  <bruno@clisp.org>
19991
19992         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
19993         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
19994         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
19995         REPLACE_FREXPL to 1.
19996         * doc/posix-functions/frexpl.texi: Update documentation.
19997
19998 2010-04-04  Bruno Haible  <bruno@clisp.org>
19999
20000         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20001         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20002
20003 2010-04-04  Bruno Haible  <bruno@clisp.org>
20004
20005         Implement nanosleep for native Windows.
20006         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20007
20008 2010-04-04  Bruno Haible  <bruno@clisp.org>
20009
20010         math: Fix some C++ test errors on Solaris 8.
20011         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20012
20013 2010-04-04  Bruno Haible  <bruno@clisp.org>
20014
20015         math: Fix some C++ test errors on Cygwin.
20016         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20017         truncl): Provide declaration if the system does not have it.
20018         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20019         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20020         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20021         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20022         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20023         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20024         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20025         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20026         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20027         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20028         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20029         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20030         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20031         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20032         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20033         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20035         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20036         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20037         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20038         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20039         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20040
20041 2010-04-04  Bruno Haible  <bruno@clisp.org>
20042
20043         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20044         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20045         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20046         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20047         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20048         * m4/isinf.m4 (gl_ISINF): Likewise.
20049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20050
20051 2010-04-04  Bruno Haible  <bruno@clisp.org>
20052
20053         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20054         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20055
20056 2010-04-04  Bruno Haible  <bruno@clisp.org>
20057
20058         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20059         * modules/tmpfile (configure.ac): Update.
20060
20061         tmpfile: Fix C++ test error on mingw.
20062         * lib/stdio.in.h (tmpfile): New declaration.
20063         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20064         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20065         * modules/tmpfile (Depends-on): Add stdio.
20066         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20067         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20068         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20069         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20070         REPLACE_TMPFILE.
20071         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20072
20073 2010-04-04  Bruno Haible  <bruno@clisp.org>
20074
20075         ioctl: Fix C++ test error on mingw.
20076         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20077         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20078         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20079
20080 2010-04-03  Bruno Haible  <bruno@clisp.org>
20081
20082         wcwidth: Fix C++ test error on mingw.
20083         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20085         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20086
20087 2010-04-03  Bruno Haible  <bruno@clisp.org>
20088
20089         nanosleep: Fix C++ test error on mingw.
20090         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20091         * lib/time.in.h (nanosleep): Use modern idiom.
20092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20093         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20094         REPLACE_NANOSLEEP to 1.
20095         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20096         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20097
20098 2010-04-03  Bruno Haible  <bruno@clisp.org>
20099
20100         strptime: Fix C++ test error on mingw.
20101         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20102         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20103         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20104         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20106         not REPLACE_STRPTIME.
20107         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20108         REPLACE_STRPTIME.
20109
20110 2010-04-03  Bruno Haible  <bruno@clisp.org>
20111
20112         timegm: Fix C++ test error on mingw.
20113         * lib/time.in.h (timegm): Use modern idiom.
20114         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20115         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20117         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20118
20119 2010-04-03  Bruno Haible  <bruno@clisp.org>
20120
20121         timegm: Assume declaration if function exists.
20122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20123         if it exists. Don't clobber ac_cv_func_timegm.
20124
20125 2010-04-03  Bruno Haible  <bruno@clisp.org>
20126
20127         time_r: Fix C++ test error on mingw.
20128         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20129         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20130         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20132         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20133
20134 2010-04-03  Bruno Haible  <bruno@clisp.org>
20135
20136         time_r: Minor updates.
20137         * modules/time_r (Description): Mention the provided functions.
20138         * lib/time_r.c: Don't include <string.h>.
20139         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20140         * doc/posix-functions/localtime_r.texi: Likewise.
20141
20142 2010-04-03  Bruno Haible  <bruno@clisp.org>
20143
20144         time: Fix regression introduced on 2010-03-08.
20145         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20146         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20147
20148 2010-04-03  Jim Meyering  <meyering@redhat.com>
20149
20150         maint.mk: don't silently disable project-specific syntax-check rules
20151         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20152         that they need to convert their project-specific syntax-check rules
20153         to use the new _sc_search_regexp.
20154
20155 2010-04-03  Bruno Haible  <bruno@clisp.org>
20156
20157         fchdir: Fix regression introduced on 2010-03-08.
20158         * lib/unistd.in.h (fchdir): Fix declaration.
20159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20161         REPLACE_FCHDIR.
20162         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20163         REPLACE_FCHDIR.
20164
20165 2010-04-03  Bruno Haible  <bruno@clisp.org>
20166
20167         getpagesize: Fix C++ test error on mingw.
20168         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20169         system does not declare the function.
20170         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20171         declared.
20172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20173         HAVE_DECL_GETPAGESIZE.
20174         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20175
20176 2010-04-03  Bruno Haible  <bruno@clisp.org>
20177
20178         stdio: Make C++ tests work on mingw.
20179         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20180         does not declare the function.
20181
20182 2010-04-03  Bruno Haible  <bruno@clisp.org>
20183
20184         ftello: Fix C++ test error on mingw.
20185         * lib/stdio.in.h (ftello): Use modern idiom.
20186         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20187         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20188         is missing and that it needs to be replaced.
20189         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20191         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20192
20193 2010-04-03  Bruno Haible  <bruno@clisp.org>
20194
20195         fseeko: Fix C++ test error on mingw.
20196         * lib/stdio.in.h (fseeko): Use modern idiom.
20197         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20199         is missing and that it needs to be replaced.
20200         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20202         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20203
20204 2010-04-03  Bruno Haible  <bruno@clisp.org>
20205
20206         mkstemp: Fix C++ test error on mingw.
20207         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20209         function is missing and that it needs to be replaced.
20210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20211         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20212
20213 2010-04-03  Bruno Haible  <bruno@clisp.org>
20214
20215         stpncpy: Fix C++ test error on mingw.
20216         * lib/string.in.h (stpncpy): Use modern idiom.
20217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20218         function is missing and that it needs to be replaced.
20219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20220         REPLACE_STPNCPY.
20221         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20222
20223 2010-04-03  Bruno Haible  <bruno@clisp.org>
20224
20225         sys_stat: Fix C++ test error on mingw.
20226         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20227         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20228
20229 2010-04-03  Bruno Haible  <bruno@clisp.org>
20230
20231         pty: Update doc.
20232         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20233
20234 2010-04-03  Bruno Haible  <bruno@clisp.org>
20235
20236         unistd: Fix C++ test error on mingw.
20237         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20238
20239 2010-04-03  Bruno Haible  <bruno@clisp.org>
20240
20241         Update doc regarding mingw.
20242         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20243         * doc/glibc-functions/login_tty.texi: Likewise.
20244         * doc/glibc-functions/forkpty.texi: Likewise.
20245
20246 2010-04-03  Bruno Haible  <bruno@clisp.org>
20247
20248         stdlib: Avoid compilation failure of c-strtold on mingw.
20249         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20250
20251 2010-04-03  Bruno Haible  <bruno@clisp.org>
20252
20253         locale: Make C++ tests work on Cygwin and mingw.
20254         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20255         cannot provide the function.
20256         Reported by Simon Josefsson.
20257
20258 2010-04-03  Bruno Haible  <bruno@clisp.org>
20259
20260         localename: Port to MacOS X 10.6.
20261         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20262         memory layout of the locales in MacOS X 10.6 as well.
20263         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20264
20265 2010-04-02  Bruno Haible  <bruno@clisp.org>
20266
20267         gnulib-tool: Ensure that long-running tests are executed last.
20268         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20269         running tests after the one for the other tests.
20270
20271 2010-04-02  Bruno Haible  <bruno@clisp.org>
20272
20273         gnulib-tool: Ensure the tests in the main directory are executed first.
20274         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20275         start with the current directory.
20276
20277 2010-04-02  Bruno Haible  <bruno@clisp.org>
20278
20279         Tests for module 'havelib', moved here from GNU gettext.
20280         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20281         modifications.
20282         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20283         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20284         with modifications.
20285         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20286         modifications.
20287         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20288         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20289         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20290         with modifications.
20291         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20292         with modifications.
20293         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20294         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20295         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20296         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20297         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20298         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20299         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20300         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20301         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20302         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20303         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20304         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20305         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20306         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20307         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20308         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20309         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20310         with modifications.
20311         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20312         with modifications.
20313         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20314         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20315         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20316         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20317         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20318         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20319         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20320         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20321         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20322         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20323         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20324         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20325         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20326         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20327         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20328         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20329         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20330         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20331         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20332         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20333         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20334         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20335         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20336         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20337         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20338         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20339         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20340         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20341         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20342         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20343         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20344         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20345         * tests/havelib/rpathx/rpathx.c: New file, from
20346         gettext/autoconf-lib-link.
20347         * tests/havelib/rpathx/Makefile.am: New file, from
20348         gettext/autoconf-lib-link.
20349         * tests/havelib/rpathx/configure.ac: New file, from
20350         gettext/autoconf-lib-link with modifications.
20351         * tests/havelib/rpathy/rpathy.c: New file, from
20352         gettext/autoconf-lib-link.
20353         * tests/havelib/rpathy/Makefile.am: New file, from
20354         gettext/autoconf-lib-link.
20355         * tests/havelib/rpathy/configure.ac: New file, from
20356         gettext/autoconf-lib-link with modifications.
20357         * tests/havelib/rpathz/rpathz.c: New file, from
20358         gettext/autoconf-lib-link.
20359         * tests/havelib/rpathz/Makefile.am: New file, from
20360         gettext/autoconf-lib-link.
20361         * tests/havelib/rpathz/configure.ac: New file, from
20362         gettext/autoconf-lib-link with modifications.
20363         * tests/havelib/rpathlx/usex.c: New file, from
20364         gettext/autoconf-lib-link.
20365         * tests/havelib/rpathlx/Makefile.am: New file, from
20366         gettext/autoconf-lib-link.
20367         * tests/havelib/rpathlx/configure.ac: New file, from
20368         gettext/autoconf-lib-link with modifications.
20369         * tests/havelib/rpathly/usey.c: New file, from
20370         gettext/autoconf-lib-link.
20371         * tests/havelib/rpathly/Makefile.am: New file, from
20372         gettext/autoconf-lib-link.
20373         * tests/havelib/rpathly/configure.ac: New file, from
20374         gettext/autoconf-lib-link with modifications.
20375         * tests/havelib/rpathlz/usez.c: New file, from
20376         gettext/autoconf-lib-link.
20377         * tests/havelib/rpathlz/Makefile.am: New file, from
20378         gettext/autoconf-lib-link.
20379         * tests/havelib/rpathlz/configure.ac: New file, from
20380         gettext/autoconf-lib-link with modifications.
20381         * tests/havelib/rpathlyx/usey.c: New file, from
20382         gettext/autoconf-lib-link.
20383         * tests/havelib/rpathlyx/Makefile.am: New file, from
20384         gettext/autoconf-lib-link.
20385         * tests/havelib/rpathlyx/configure.ac: New file, from
20386         gettext/autoconf-lib-link with modifications.
20387         * tests/havelib/rpathlzyx/usez.c: New file, from
20388         gettext/autoconf-lib-link.
20389         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20390         gettext/autoconf-lib-link.
20391         * tests/havelib/rpathlzyx/configure.ac: New file, from
20392         gettext/autoconf-lib-link with modifications.
20393         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20394         with modifications.
20395
20396 2010-04-02  Bruno Haible  <bruno@clisp.org>
20397
20398         gnulib-tool: Create distributed built sources also for the tests.
20399         * gnulib-tool (func_create_testdir): Also generate distributed built
20400         sources in the tests directory.
20401
20402 2010-04-02  Bruno Haible  <bruno@clisp.org>
20403
20404         gnulib-tool: Obey user's environment variables.
20405         * gnulib-tool (func_create_testdir): When creating built sources,
20406         respect the environment variables for autoconf, automake, etc. given by
20407         the user.
20408
20409 2010-04-02  Bruno Haible  <bruno@clisp.org>
20410
20411         gnulib-tool: Provide the value of --m4-base to modules.
20412         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20413         of gl_m4_base.
20414
20415 2010-04-02  Eric Blake  <eblake@redhat.com>
20416
20417         maint.mk: fix some fallout
20418         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20419         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20420
20421 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20422
20423         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20424         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20425         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20426         (sc_cast_of_x_alloc_return_value): Likewise.
20427         (sc_cast_of_alloca_return_value): Likewise.
20428         (sc_space_tab): Likewise.
20429         (sc_prohibit_atoi_atof): Likewise.
20430         (sc_prohibit_magic_number_exit): Likewise.
20431         (sc_error_exit_success): Likewise.
20432         (sc_file_system): Likewise.
20433         (sc_prohibit_have_config_h): Likewise.
20434         (sc_require_config_h): Likewise.
20435         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20436         (sc_obsolete_symbols): Likewise.
20437         (sc_changelog): Likewise.
20438         (sc_program_name): Likewise.
20439         (sc_the_the): Likewise.
20440         (sc_trailing_blank): Likewise.
20441         (sc_two_space_separator_in_usage): Likewise.
20442         (sc_useless_cpp_parens): Likewise.
20443         (sc_GPL_version): Likewise.
20444         (sc_GFDL_version): Likewise.
20445         (sc_texinfo_acronym): Likewise.
20446         (sc_prohibit_cvs_keyword): Likewise.
20447         (sc_prohibit_stat_st_blocks): Likewise.
20448         (sc_prohibit_S_IS_definition): Likewise.
20449         (sc_redundant_const): Likewise.
20450         (sc_makefile_TAB_only_indentation): Likewise.
20451         (sc_m4_quote_check): Likewise.
20452         (sc_makefile_path_separator_check): Likewise.
20453         (sc_copyright_check): Likewise.
20454         (sc_Wundef_boolean): Likewise.
20455         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20456
20457         maint.mk: match 0 or more whitespace-before-function-call '('
20458         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20459         that have zero or two-and-more spaces between the function name
20460         and the open parenthesis.
20461         (sc_error_message_warn_fatal): Likewise.
20462         (sc_error_message_uppercase): Likewise.
20463         (sc_error_message_period): Likewise.
20464
20465 2010-03-31  Eric Blake  <eblake@redhat.com>
20466
20467         maint.mk: check for [ as well as test
20468         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
20469         Based on a libvirt report by Matthias Bolte.
20470
20471         gnumakefile: don't squelch _version output
20472         * top/GNUmakefile (_version): Create one-shot dependency rather
20473         than using $(shell) when version must be regenerated.
20474         (_autoreconf): Run verbosely, by default.
20475
20476         sys_time: avoid compiler warnings
20477         * lib/sys_time.in.h (includes): Ensure gcc pragma is
20478         unconditional, fixing regression from 2010-03-29.
20479         Reported by Simon Josefsson.
20480
20481 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20482
20483         maint.mk: s/_header_without_use/_sc_header_without_use/
20484         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
20485         (sc_prohibit_assert_without_use): Use the new name.
20486         (sc_prohibit_close_stream_without_use): Likewise.
20487         (sc_prohibit_getopt_without_use): Likewise.
20488         (sc_prohibit_quotearg_without_use): Likewise.
20489         (sc_prohibit_quote_without_use): Likewise.
20490         (sc_prohibit_long_options_without_use): Likewise.
20491         (sc_prohibit_inttostr_without_use): Likewise.
20492         (sc_prohibit_ignore_value_without_use): Likewise.
20493         (sc_prohibit_error_without_use): Likewise.
20494         (sc_prohibit_xalloc_without_use): Likewise.
20495         (sc_prohibit_hash_without_use): Likewise.
20496         (sc_prohibit_hash_pjw_without_use): Likewise.
20497         (sc_prohibit_safe_read_without_use): Likewise.
20498         (sc_prohibit_argmatch_without_use): Likewise.
20499         (sc_prohibit_canonicalize_without_use): Likewise.
20500         (sc_prohibit_root_dev_ino_without_use): Likewise.
20501         (sc_prohibit_openat_without_use): Likewise.
20502         (sc_prohibit_c_ctype_without_use): Likewise.
20503         (sc_prohibit_signal_without_use): Likewise.
20504         (sc_prohibit_intprops_without_use): Likewise.
20505
20506 2010-03-30  Eric Blake  <eblake@redhat.com>
20507
20508         maint: improve module indicators
20509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
20510         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
20511         columns, and avoid extra macro expansion.
20512
20513         fdopendir: work around FreeBSD bug
20514         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
20516         * modules/dirent (Makefile.am): Substitute it.
20517         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
20518         declaration.
20519         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
20520         fix.
20521         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20522
20523 2010-03-29  Bruno Haible  <bruno@clisp.org>
20524
20525         Emit #pragma system_header after the inclusion guard, not before.
20526         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
20527         guard that spans the entire file, not before. This enables an
20528         optimization in GCC's preprocessor.
20529         * lib/ctype.in.h: Likewise.
20530         * lib/dirent.in.h: Likewise.
20531         * lib/errno.in.h: Likewise.
20532         * lib/float.in.h: Likewise.
20533         * lib/getopt.in.h: Likewise.
20534         * lib/iconv.in.h: Likewise.
20535         * lib/langinfo.in.h: Likewise.
20536         * lib/locale.in.h: Likewise.
20537         * lib/math.in.h: Likewise.
20538         * lib/netdb.in.h: Likewise.
20539         * lib/netinet_in.in.h: Likewise.
20540         * lib/pty.in.h: Likewise.
20541         * lib/sched.in.h: Likewise.
20542         * lib/se-selinux.in.h: Likewise.
20543         * lib/search.in.h: Likewise.
20544         * lib/spawn.in.h: Likewise.
20545         * lib/stdarg.in.h: Likewise.
20546         * lib/stdint.in.h: Likewise.
20547         * lib/string.in.h: Likewise.
20548         * lib/strings.in.h: Likewise.
20549         * lib/sys_file.in.h: Likewise.
20550         * lib/sys_ioctl.in.h: Likewise.
20551         * lib/sys_time.in.h: Likewise.
20552         * lib/sys_times.in.h: Likewise.
20553         * lib/sys_utsname.in.h: Likewise.
20554         * lib/sys_wait.in.h: Likewise.
20555         * lib/sysexits.in.h: Likewise.
20556         * lib/wctype.in.h: Likewise.
20557
20558 2010-03-28  James Youngman  <jay@gnu.org>
20559
20560         save-cwd: don't leak a file descriptor when the caller execs.
20561         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
20562         saved file descriptor.
20563         * modules/save-cwd (Depends-on): Depend on cloexec.
20564
20565 2010-03-29  Bruno Haible  <bruno@clisp.org>
20566
20567         Remove vestiges of fts-lgpl module.
20568         * lib/fts_.h: Assume GNULIB_FTS is 1.
20569         * lib/fts.c: Likewise.
20570         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20571
20572 2010-03-28  Bruno Haible  <bruno@clisp.org>
20573
20574         Fix definition of tests witness macro.
20575         * gnulib-tool (func_import): Fix definition of witness macro.
20576
20577 2010-03-28  Bruno Haible  <bruno@clisp.org>
20578
20579         Fix ioctl's protoype on glibc systems.
20580         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
20581         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
20582         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
20583         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20584         signature. If not, arrange to replace the ioctl function.
20585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20586         REPLACE_IOCTL.
20587         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
20588         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
20589         Reported by Ludovic Courtès <ludo@gnu.org>.
20590
20591 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
20592
20593         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
20594         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
20595         made it so grep -r --include=GLOB* ... did not work.
20596
20597 2010-03-26  Jim Meyering  <meyering@redhat.com>
20598             Eric Blake  <eblake@redhat.com>
20599
20600         maint.mk: prohibit use of test's -o and -a operators
20601         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
20602
20603 2010-03-28  Bruno Haible  <bruno@clisp.org>
20604
20605         Remove unused GNULIB_XYZ macro definitions.
20606         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
20607         invocation.
20608
20609 2010-03-28  Bruno Haible  <bruno@clisp.org>
20610
20611         Mark privileged tests modules.
20612         * modules/idpriv-drop-tests (Status): New section.
20613         * modules/idpriv-droptemp-tests (Status): New section.
20614
20615 2010-03-28  Bruno Haible  <bruno@clisp.org>
20616
20617         Split C++ tests into separate tests modules.
20618         * modules/dirent-c++-tests: New file, extracted from
20619         modules/dirent-tests.
20620         * modules/dirent-tests: Depend on it.
20621         * modules/fcntl-h-c++-tests: New file, extracted from
20622         modules/fcntl-h-tests.
20623         * modules/fcntl-h-tests: Depend on it.
20624         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
20625         * modules/glob-tests: Depend on it.
20626         * modules/iconv-h-c++-tests: New file, extracted from
20627         modules/iconv-h-tests.
20628         * modules/iconv-h-tests: Depend on it.
20629         * modules/langinfo-c++-tests: New file, extracted from
20630         modules/langinfo-tests.
20631         * modules/langinfo-tests: Depend on it.
20632         * modules/locale-c++-tests: New file, extracted from
20633         modules/locale-tests.
20634         * modules/locale-tests: Depend on it.
20635         * modules/math-c++-tests: New file, extracted from modules/math-tests.
20636         * modules/math-tests: Depend on it.
20637         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
20638         * modules/pty-tests: Depend on it.
20639         * modules/search-c++-tests: New file, extracted from
20640         modules/search-tests.
20641         * modules/search-tests: Depend on it.
20642         * modules/signal-c++-tests: New file, extracted from
20643         modules/signal-tests.
20644         * modules/signal-tests: Depend on it.
20645         * modules/spawn-c++-tests: New file, extracted from
20646         modules/spawn-tests.
20647         * modules/spawn-tests: Depend on it.
20648         * modules/stdio-c++-tests: New file, extracted from
20649         modules/stdio-tests.
20650         * modules/stdio-tests: Depend on it.
20651         * modules/stdlib-c++-tests: New file, extracted from
20652         modules/stdlib-tests.
20653         * modules/stdlib-tests: Depend on it.
20654         * modules/string-c++-tests: New file, extracted from
20655         modules/string-tests.
20656         * modules/string-tests: Depend on it.
20657         * modules/sys_ioctl-c++-tests: New file, extracted from
20658         modules/sys_ioctl-tests.
20659         * modules/sys_ioctl-tests: Depend on it.
20660         * modules/sys_select-c++-tests: New file, extracted from
20661         modules/sys_select-tests.
20662         * modules/sys_select-tests: Depend on it.
20663         * modules/sys_socket-c++-tests: New file, extracted from
20664         modules/sys_socket-tests.
20665         * modules/sys_socket-tests: Depend on it.
20666         * modules/sys_stat-c++-tests: New file, extracted from
20667         modules/sys_stat-tests.
20668         * modules/sys_stat-tests: Depend on it.
20669         * modules/sys_time-c++-tests: New file, extracted from
20670         modules/sys_time-tests.
20671         * modules/sys_time-tests: Depend on it.
20672         * modules/time-c++-tests: New file, extracted from modules/time-tests.
20673         * modules/time-tests: Depend on it.
20674         * modules/unistd-c++-tests: New file, extracted from
20675         modules/unistd-tests.
20676         * modules/unistd-tests: Depend on it.
20677         * modules/wchar-c++-tests: New file, extracted from
20678         modules/wchar-tests.
20679         * modules/wchar-tests: Depend on it.
20680         * modules/wctype-c++-tests: New file, extracted from
20681         modules/wctype-tests.
20682         * modules/wctype-tests: Depend on it.
20683         Reported by Simon Josefsson.
20684
20685 2010-03-28  Bruno Haible  <bruno@clisp.org>
20686
20687         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
20688         * gnulib-tool (func_exists_module): New function, extracted from
20689         func_verify_module.
20690         (func_verify_module): Use it.
20691         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
20692         'foo' only if 'foo' exists.
20693         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
20694         module.
20695
20696 2010-03-28  Bruno Haible  <bruno@clisp.org>
20697
20698         gnulib-tool: Add support for special categories of tests.
20699         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
20700         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
20701         (func_usage): Document them.
20702         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
20703         inc_unportable_tests, inc_all_tests): New variables.
20704         (func_acceptable): Consider these variables.
20705         (func_modules_transitive_closure): Make it work when the 'Status' field
20706         consists of multiple words.
20707         (func_import): Store and restore the values of inc_cxx_tests,
20708         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
20709         inc_all_tests in gnulib-comp.m4.
20710         (func_create_testdir): Set inc_all_tests to true.
20711         * doc/gnulib.texi (Extra tests modules): New section.
20712         Suggested by Jim Meyering.
20713
20714 2010-03-28  Bruno Haible  <bruno@clisp.org>
20715
20716         ansi-c++-opt: Allow turning off the C++ build by default.
20717         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
20718         gl_CXX_CHOICE_DEFAULT_NO is defined.
20719         Requested by Eric Blake.
20720
20721 2010-03-28  Bruno Haible  <bruno@clisp.org>
20722
20723         unistd: Avoid #define replacements in C++ mode.
20724         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
20725         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
20726         setsockopt, shutdown, select): In C++, attach a warning to the function
20727         if possible, rather than #defining the symbol to a dysfunctional alias.
20728         Reported by John W. Eaton <jwe@gnu.org>.
20729
20730 2010-03-28  Bruno Haible  <bruno@clisp.org>
20731
20732         Fix link errors on mingw.
20733         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
20734         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
20735         $(LIBSOCKET).
20736         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
20737         $(LIBSOCKET).
20738
20739 2010-03-28  Bruno Haible  <bruno@clisp.org>
20740             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20741
20742         lib-ignore: Determine different options for different compilers.
20743         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
20744         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
20745         Add comments.
20746         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
20747         * NEWS: Mention the change.
20748
20749 2010-03-27  Bruno Haible  <bruno@clisp.org>
20750
20751         Remove unused GNULIB_XYZ macro definitions.
20752         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
20753         * modules/fseek (configure.ac): Likewise.
20754         * modules/ioctl (configure.ac): Likewise.
20755         * modules/open (configure.ac): Likewise.
20756         * modules/stdlib-safer (configure.ac): Likewise.
20757
20758 2010-03-27  Bruno Haible  <bruno@clisp.org>
20759
20760         Add a remark about certain modules.
20761         * modules/malloc (Comment): New section.
20762         * modules/realloc (Comment): Likewise.
20763         * modules/sigpipe (Comment): Likewise.
20764
20765 2010-03-27  Bruno Haible  <bruno@clisp.org>
20766
20767         Resolve conflict between the two kinds of module indicators.
20768         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
20769         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
20770         * modules/canonicalize (configure.ac): Invoke
20771         gl_MODULE_INDICATOR_FOR_TESTS.
20772         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
20773         GNULIB_XYZ.
20774         * tests/test-dirent-c++.cc: Likewise.
20775         * tests/test-dirent-safer.c: Likewise.
20776         * tests/test-dup2.c: Likewise.
20777         * tests/test-fchdir.c: Likewise.
20778         * tests/test-fcntl-h-c++.cc: Likewise.
20779         * tests/test-getopt.c: Likewise.
20780         * tests/test-getopt.h: Likewise.
20781         * tests/test-langinfo-c++.cc: Likewise.
20782         * tests/test-locale-c++.cc: Likewise.
20783         * tests/test-math-c++.cc: Likewise.
20784         * tests/test-pty-c++.cc: Likewise.
20785         * tests/test-search-c++.cc: Likewise.
20786         * tests/test-signal-c++.cc: Likewise.
20787         * tests/test-spawn-c++.cc: Likewise.
20788         * tests/test-stdio-c++.cc: Likewise.
20789         * tests/test-stdlib-c++.cc: Likewise.
20790         * tests/test-string-c++.cc: Likewise.
20791         * tests/test-sys_ioctl-c++.cc: Likewise.
20792         * tests/test-sys_select-c++.cc: Likewise.
20793         * tests/test-sys_socket-c++.cc: Likewise.
20794         * tests/test-sys_stat-c++.cc: Likewise.
20795         * tests/test-sys_time-c++.cc: Likewise.
20796         * tests/test-time-c++.cc: Likewise.
20797         * tests/test-unistd-c++.cc: Likewise.
20798         * tests/test-wchar-c++.cc: Likewise.
20799         * tests/uninorm/test-u8-nfc.c: Likewise.
20800         * tests/uninorm/test-u8-nfd.c: Likewise.
20801         * tests/uninorm/test-u8-nfkc.c: Likewise.
20802         * tests/uninorm/test-u8-nfkd.c: Likewise.
20803         * tests/uninorm/test-u16-nfc.c: Likewise.
20804         * tests/uninorm/test-u16-nfd.c: Likewise.
20805         * tests/uninorm/test-u16-nfkc.c: Likewise.
20806         * tests/uninorm/test-u16-nfkd.c: Likewise.
20807         * tests/uninorm/test-u32-nfc.c: Likewise.
20808         * tests/uninorm/test-u32-nfc-big.c: Likewise.
20809         * tests/uninorm/test-u32-nfd.c: Likewise.
20810         * tests/uninorm/test-u32-nfd-big.c: Likewise.
20811         * tests/uninorm/test-u32-nfkc.c: Likewise.
20812         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
20813         * tests/uninorm/test-u32-nfkd.c: Likewise.
20814         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
20815         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20816
20817 2010-03-27  Bruno Haible  <bruno@clisp.org>
20818
20819         Distinguish two kinds of module indicators.
20820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
20821         gl_MODULE_INDICATOR.
20822         (gl_MODULE_INDICATOR): New macro.
20823         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20824         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
20825         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20826         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20827         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20828         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20829         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20830         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20831         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20832         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20833         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20834         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20837         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20838         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20839         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20840         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20842         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20843         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20844         * modules/cloexec (configure.ac): Likewise.
20845         * modules/getopt-gnu (configure.ac): Likewise.
20846         * modules/uninorm/u8-normalize (configure.ac): Likewise.
20847         * modules/uninorm/u16-normalize (configure.ac): Likewise.
20848         * modules/uninorm/u32-normalize (configure.ac): Likewise.
20849         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
20850
20851 2010-03-27  Bruno Haible  <bruno@clisp.org>
20852
20853         New module description field 'Comment'.
20854         * gnulib-tool: New option --extract-comment.
20855         (func_usage): Document it.
20856         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
20857         (func_get_comment): New function.
20858         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
20859
20860 2010-03-27  Bruno Haible  <bruno@clisp.org>
20861
20862         Addendum to 2010-02-07 commit.
20863         * gnulib-tool (func_usage): Document --extract-applicability option.
20864
20865 2010-03-27  Bruno Haible  <bruno@clisp.org>
20866
20867         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
20868         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
20869         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
20870         rather than link errors.
20871
20872 2010-03-27  Bruno Haible  <bruno@clisp.org>
20873
20874         Avoid side effects from tests-related modules on the compilation of lib.
20875         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
20876         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
20877         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
20878         parameter. Emit into AM_CPPFLAGS a definition of the designated C
20879         macro.
20880         (func_import): Define a witness macro. Assign it a value that depends
20881         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
20882         tests-related modules.
20883         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
20884         Reported by Jim Meyering.
20885
20886 2010-03-27  Bruno Haible  <bruno@clisp.org>
20887
20888         Factorize common .m4 code.
20889         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
20890         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20891         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
20892         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
20893         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
20894         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
20895         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
20896         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
20897         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
20898         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
20899         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
20900         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
20901         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
20902         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
20903         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
20904         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
20905         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
20906         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
20907         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
20908         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
20909         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
20910         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
20911         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
20912         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
20913         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
20914         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
20915         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
20916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
20917         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
20918         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
20919         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
20920         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
20921
20922 2010-03-27  Bruno Haible  <bruno@clisp.org>
20923
20924         Fix a compilation error on Cygwin with g++ >= 4.3.
20925         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
20926         if it is undefined or if we alias it to chmod.
20927         (lstat): Don't warn about the use of this function if it is undefined
20928         or if we alias it to stat.
20929         Reported by Simon Josefsson.
20930
20931 2010-03-27  Bruno Haible  <bruno@clisp.org>
20932
20933         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
20934         * modules/getlogin (configure.ac): Update.
20935
20936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
20937         * modules/getlogin_r (configure.ac): Update.
20938
20939         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
20940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
20941         * modules/inet_ntop (configure.ac): Update.
20942
20943         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
20944         * modules/inet_pton (configure.ac): Update.
20945
20946         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
20947         * modules/mbslen (configure.ac): Update.
20948
20949         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
20950         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
20951         * modules/forkpty (configure.ac): Update.
20952         * modules/openpty (configure.ac): Update.
20953
20954 2010-03-26  Simon Josefsson  <simon@josefsson.org>
20955
20956         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
20957         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
20958
20959 2010-03-25  Eric Blake  <eblake@redhat.com>
20960
20961         maint: use pragma consistently across replacement headers
20962         * lib/ctype.in.h (system_header): Hoist for consistent placement.
20963         * lib/dirent.in.h (system_header): Likewise.
20964         * lib/errno.in.h (system_header): Likewise.
20965         * lib/float.in.h (system_header): Likewise.
20966         * lib/getopt.in.h (system_header): Likewise.
20967         * lib/iconv.in.h (system_header): Likewise.
20968         * lib/inttypes.in.h (system_header): Likewise.
20969         * lib/langinfo.in.h (system_header): Likewise.
20970         * lib/locale.in.h (system_header): Likewise.
20971         * lib/math.in.h (system_header): Likewise.
20972         * lib/netdb.in.h (system_header): Likewise.
20973         * lib/netinet_in.in.h (system_header): Likewise.
20974         * lib/pty.in.h (system_header): Likewise.
20975         * lib/sched.in.h (system_header): Likewise.
20976         * lib/se-selinux.in.h (system_header): Likewise.
20977         * lib/search.in.h (system_header): Likewise.
20978         * lib/spawn.in.h (system_header): Likewise.
20979         * lib/stdarg.in.h (system_header): Likewise.
20980         * lib/stdint.in.h (system_header): Likewise.
20981         * lib/string.in.h (system_header): Likewise.
20982         * lib/strings.in.h (system_header): Likewise.
20983         * lib/sys_file.in.h (system_header): Likewise.
20984         * lib/sys_ioctl.in.h (system_header): Likewise.
20985         * lib/sys_socket.in.h (system_header): Likewise.
20986         * lib/sys_times.in.h (system_header): Likewise.
20987         * lib/sys_utsname.in.h (system_header): Likewise.
20988         * lib/sys_wait.in.h (system_header): Likewise.
20989         * lib/sysexits.in.h (system_header): Likewise.
20990         * lib/unistd.in.h (system_header): Likewise.
20991         * lib/wctype.in.h (system_header): Likewise.
20992
20993         arpa/inet: fix mingw compilation warning
20994         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
20995         Reported by Matthew Bolte.
20996
20997 2010-03-25  Bruno Haible  <bruno@clisp.org>
20998
20999         Avoid collision between gnulib wrapper and libintl wrapper.
21000         * lib/printf.c (printf): Don't define if a printf wrapper is already
21001         defined in intl/printf.c.
21002         Reported by Michel Boaventura <michel@michelboaventura.com>.
21003
21004 2010-03-25  Bruno Haible  <bruno@clisp.org>
21005
21006         Use ANSI C.
21007         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21008
21009 2010-03-25  Bruno Haible  <bruno@clisp.org>
21010
21011         Minor formatting changes.
21012         * lib/acosl.c: Insert space before function argument list.
21013         * lib/argz.c: Likewise.
21014         * lib/asinl.c: Likewise.
21015         * lib/expl.c: Likewise.
21016         * lib/gen-uni-tables.c: Likewise.
21017         * lib/gettext.h: Likewise.
21018         * lib/glthread/lock.h: Likewise.
21019         * lib/tanl.c: Likewise.
21020         * lib/uniname/uniname.c: Likewise.
21021         * tests/test-idpriv-drop.c: Likewise.
21022         * tests/test-idpriv-droptemp.c: Likewise.
21023         * tests/test-lock.c: Likewise.
21024         * tests/test-tls.c: Likewise.
21025         * lib/argp-help.c: Insert space before function-like macro argument
21026         list.
21027         * lib/memcmp.c: Likewise.
21028         * tests/test-base64.c: Likewise.
21029         * lib/localename.c: Insert space before sizeof's argument list.
21030         * lib/safe-alloc.h: Likewise.
21031         * lib/file-set.h: Insert space before macro argument list.
21032         * tests/test-argp.c: Likewise.
21033         * lib/argp-namefrob.h: Insert space before function parameter list.
21034         * lib/getaddrinfo.c: Likewise.
21035         * lib/netdb.in.h: Likewise.
21036         * lib/parse-duration.h: Likewise.
21037         * lib/parse-duration.c: Likewise.
21038         * lib/poll.c: Likewise.
21039         * lib/select.c: Likewise.
21040         * lib/trim.h: Likewise.
21041         * tests/test-usleep.c: Likewise.
21042         * lib/ldexpl.c: Insert space before function parameter list and before
21043         function argument list.
21044         * lib/logl.c: Likewise.
21045         * lib/sqrtl.c: Likewise.
21046         * lib/trim.c: Likewise.
21047         * lib/cosl.c: Use GNU style indentation. Insert space before function
21048         argument list.
21049         * lib/sinl.c: Likewise.
21050         * lib/tsearch.c: Insert space after 'for'.
21051         Reported by Jim Meyering.
21052
21053 2010-03-23  PĂ¡draig Brady  <P@draigBrady.com>  (tiny change)
21054
21055         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21056         config header before grepping, as it's not present before
21057         autoreconf/configure are run.  Reported by Simon Josefsson.
21058
21059 2010-03-23  Bruno Haible  <bruno@clisp.org>
21060
21061         pt_chown: Make it work with automake < 1.11.
21062         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21063         Reported by Simon Josefsson.
21064
21065 2010-03-23  Bruno Haible  <bruno@clisp.org>
21066
21067         pt_chown: Don't depend on GPLed modules.
21068         * lib/pt_chown.c: Don't include idpriv.h.
21069         (main): Don't drop privileges.
21070         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21071         Reported by Simon Josefsson.
21072
21073 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21074
21075         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21076         suggestions from karl@freefriends.org (Karl Berry).
21077
21078 2010-03-22  Eric Blake  <eblake@redhat.com>
21079
21080         gethostname: further tweaks
21081         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21082         are overriding gethostname.
21083         Suggested by Bruno Haible.
21084
21085 2010-03-21  Bruno Haible  <bruno@clisp.org>
21086
21087         Fix comments.
21088         * lib/forkpty.c (rpl_forkpty): Fix comment.
21089         * lib/openpty.c (rpl_openpty): Likewise.
21090         Reported by Eric Blake.
21091
21092 2010-03-22  Eric Blake  <eblake@redhat.com>
21093
21094         gethostname: fix build on mingw
21095         * lib/unistd.in.h (includes): Work around fact that mingw
21096         <winsock2.h> re-includes <unistd.h>, by avoiding any
21097         redeclarations if we are being included by <winsock2.h>.
21098         Reported by Matthias Bolte.
21099
21100 2010-03-21  Bruno Haible  <bruno@clisp.org>
21101
21102         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21103         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21104         modifications.
21105         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21106         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21107         provide the replacement.
21108         * modules/forkpty (Depends-on): Add openpty, login_tty.
21109         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21110         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21111         * doc/glibc-functions/forkpty.texi: More supported platforms.
21112         * config/srclist.txt: Add forkpty.c (commented).
21113
21114 2010-03-21  Bruno Haible  <bruno@clisp.org>
21115
21116         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21117         (Makefile.am): Verify that PTY_LIB is defined.
21118
21119         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21120
21121 2010-03-21  Bruno Haible  <bruno@clisp.org>
21122
21123         Tests for module 'login_tty'.
21124         * modules/login_tty-tests: New file.
21125         * tests/test-login_tty.c: New file.
21126
21127         New module 'login_tty'.
21128         * lib/login_tty.c: New file.
21129         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21130         * modules/login_tty: New file.
21131         * doc/glibc-functions/login_tty.texi: Mention the new module.
21132
21133 2010-03-21  Bruno Haible  <bruno@clisp.org>
21134
21135         login_tty: Documentation.
21136         * doc/glibc-functions/login_tty.texi: New file.
21137         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21138
21139 2010-03-21  Bruno Haible  <bruno@clisp.org>
21140
21141         pty: Consistent macro naming.
21142         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21143         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21144         * modules/pty (configure.ac): Update.
21145
21146 2010-03-21  Bruno Haible  <bruno@clisp.org>
21147
21148         Tests for openpty: Make stricter.
21149         * tests/test-openpty.c (main): Add test of canonical processing and
21150         erase.
21151         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21152
21153         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21154         * lib/openpty.c (openpty): New replacement function.
21155         * lib/pty.in.h: Include <termios.h>.
21156         (openpty): Update declaration. Add comments.
21157         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21158         is not declared, arrange to provide the replacement. Check for _getpty
21159         and posix_openpt.
21160         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21162         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21163         * modules/pty-tests (test_pty_c___LDADD): New variable.
21164         * doc/glibc-functions/openpty.texi: More supported platforms.
21165
21166 2010-03-21  Bruno Haible  <bruno@clisp.org>
21167
21168         setenv: Tweaks.
21169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21170         the test program.
21171         * doc/posix-functions/setenv.texi: Update platforms list.
21172
21173 2010-03-21  Bruno Haible  <bruno@clisp.org>
21174
21175         New module 'unlockpt'.
21176         * lib/unlockpt.c: New file, from glibc with modifications.
21177         * m4/unlockpt.m4: New file.
21178         * modules/unlockpt: New file.
21179         * lib/stdlib.in.h (unlockpt): New declaration.
21180         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21181         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21182         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21183         HAVE_UNLOCKPT.
21184         * doc/posix-functions/unlockpt.texi: Mention the new module.
21185         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21186         * config/srclist.txt: Add unlockpt.c (commented).
21187
21188 2010-03-21  Jim Meyering  <meyering@redhat.com>
21189
21190         maint.mk: prohibit inclusion of "intprops.h" without use
21191         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21192
21193 2010-03-21  Bruno Haible  <bruno@clisp.org>
21194
21195         New module 'grantpt'.
21196         * lib/grantpt.c: New file, from glibc with modifications.
21197         * m4/grantpt.m4: New file.
21198         * modules/grantpt: New file.
21199         * lib/stdlib.in.h (grantpt): New declaration.
21200         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21201         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21202         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21203         HAVE_GRANTPT.
21204         * doc/posix-functions/grantpt.texi: Mention the new module.
21205         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21206         * config/srclist.txt: Add grantpt.c (commented).
21207
21208 2010-03-21  Bruno Haible  <bruno@clisp.org>
21209
21210         New module 'pt_chown'.
21211         * lib/pt_chown.c: New file, from glibc with modifications.
21212         * lib/pty-private.h: New file, from glibc with modifications.
21213         * modules/pt_chown: New file.
21214         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21215
21216 2010-03-21  Bruno Haible  <bruno@clisp.org>
21217
21218         Tests for module 'ptsname'.
21219         * modules/ptsname-tests: New file.
21220         * tests/test-ptsname.c: New file.
21221
21222         New module 'ptsname'.
21223         * lib/ptsname.c: New file, from glibc with modifications.
21224         * m4/ptsname.m4: New file.
21225         * modules/ptsname: New file.
21226         * lib/stdlib.in.h (ptsname): New declaration.
21227         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21228         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21229         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21230         HAVE_PTSNAME.
21231         * doc/posix-functions/ptsname.texi: Mention the new module.
21232         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21233         * config/srclist.txt: Add ptsname.c (commented).
21234
21235 2010-03-21  Bruno Haible  <bruno@clisp.org>
21236
21237         Tests for module 'ttyname_r'.
21238         * modules/ttyname_r-tests: New file.
21239         * tests/test-ttyname_r.c: New file.
21240
21241         New module 'ttyname_r'.
21242         * lib/ttyname_r.c: New file.
21243         * m4/ttyname_r.m4: New file.
21244         * modules/ttyname_r: New file.
21245         * lib/unistd.in.h (ttyname_r): New declaration.
21246         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21247         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21248         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21249         HAVE_TTYNAME_R.
21250         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21251         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21252
21253 2010-03-20  Bruno Haible  <bruno@clisp.org>
21254
21255         signal: Undefine macro definitions in C++ mode.
21256         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21257         sigfillset): Undefine macro definitions from the system header in C++
21258         mode.
21259         Reported by John W. Eaton <jwe@gnu.org>.
21260
21261 2010-03-20  Bruno Haible  <bruno@clisp.org>
21262
21263         Ensure no #include statements inside extern "C" { ... }.
21264         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21265         contain #include statements.
21266         * lib/time.in.h: Likewise.
21267
21268 2010-03-20  Bruno Haible  <bruno@clisp.org>
21269
21270         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21271         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21272         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21273         Reported by John W. Eaton <jwe@gnu.org>.
21274
21275 2010-03-20  Bruno Haible  <bruno@clisp.org>
21276
21277         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21278         Reported by Jim Meyering.
21279
21280 2010-03-20  Bruno Haible  <bruno@clisp.org>
21281
21282         pipe: Set errno upon failure.
21283         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21284         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21285         errno value in error message.
21286
21287 2010-03-20  Bruno Haible  <bruno@clisp.org>
21288             Jim Meyering  <meyering@redhat.com>
21289
21290         lchown: Avoid "unused variable" warning.
21291         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21292
21293 2010-03-20  Bruno Haible  <bruno@clisp.org>
21294
21295         Work around unlink() bug on MacOS X 10.5.6.
21296         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21297         attempting to unlink a parent directory.
21298         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21299         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21300         activate for the replacement function.
21301         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21302
21303 2010-03-20  Bruno Haible  <bruno@clisp.org>
21304
21305         Fix link errors on Solaris 8.
21306         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21307         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21308
21309 2010-03-19  Jim Meyering  <meyering@redhat.com>
21310
21311         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21312         The _LIBC implementation of build_range_exp correctly honors the
21313         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21314         However, the non-_LIBC implementation would ignore that syntax-bit
21315         flag and return REG_ERANGE unconditionally.
21316         This change makes it honor that flag.
21317         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21318         Make two pointer parameters "const".
21319         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21320         (parse_bracket_exp): Update caller.
21321
21322         regex.m4: correct the reversed range endpoint ([b-a]) test
21323         * m4/regex.m4: When requiring that [b-a] evoke failure,
21324         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21325         test pass once again for x86-based systems.
21326
21327 2010-03-19  Bruno Haible  <bruno@clisp.org>
21328
21329         scandir: Fix link error on Solaris 8.
21330         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21331         macros.
21332
21333 2010-03-19  Bruno Haible  <bruno@clisp.org>
21334
21335         getusershell: Fix documentation.
21336         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21337         module.
21338         * doc/glibc-functions/setusershell.texi: Likewise.
21339
21340         getusershell: Provide declaration, missing on Solaris 9.
21341         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21342         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21343         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21344         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21346         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21348         HAVE_GETUSERSHELL.
21349         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21350
21351 2010-03-19  Bruno Haible  <bruno@clisp.org>
21352
21353         wctype: Provide iswblank function.
21354         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21355         exists and is fine.
21356         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21357         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21358         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21359         * doc/posix-functions/iswblank.texi: Update.
21360
21361 2010-03-19  Bruno Haible  <bruno@clisp.org>
21362
21363         Tests of module 'pty' in C++ mode.
21364         * modules/pty-tests: New file.
21365         * tests/test-pty-c++.cc: New file.
21366         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21367
21368 2010-03-19  Eric Blake  <eblake@redhat.com>
21369
21370         logb: fix documentation
21371         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21372         1.5 declaration bug.
21373
21374         forkpty, openpty: prefer glibc's const-safe prototype
21375         * lib/forkpty.c (rpl_forkpty): New file.
21376         * lib/openpty.c (rpl_openpty): Likewise.
21377         * modules/forkpty (Files): Distribute it.
21378         * modules/openpty (Files): Likewise.
21379         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21380         check...
21381         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21382         replacement for for non-const BSD signature.
21383         * modules/pty (Makefile.am): Substitute witnesses.
21384         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21385         * tests/test-forkpty.c: Update signature check.
21386         * tests/test-openpty.c: Likewise.
21387         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21388         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21389
21390         forkpty, openpty: split functions into new modules
21391         * modules/pty (Makefile.am): Substitute new witnesses.
21392         (Libraries): Move library detection...
21393         * modules/forkpty: ...into new module.
21394         * modules/openpty: Another new module.
21395         * modules/pty-tests: Rename and split...
21396         * modules/forkpty-tests: ...to this...
21397         * modules/openpty-tests: ...and this.
21398         * tests/test-pty.c: Rename and split...
21399         * tests/test-forkpty.c: ...to this...
21400         * tests/test-openpty.c: ...and this.
21401         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21402         (gl_PTY): Split library searching...
21403         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21404         (gl_FORKPTY, gl_OPENPTY): New macros.
21405         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21406         * NEWS: Mention the split.
21407         * MODULES.html.sh (Misc): Document the modules.
21408         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21409         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21410
21411         pty: improve replacement header
21412         * lib/pty.in.h: New file.
21413         * modules/pty (Files): Ship it.
21414         (Makefile.am): Always build replacement.
21415         * m4/pty.m4: Rename...
21416         * m4/pty_h.m4: ...to this.
21417         (gl_PTY): Modernize setting of witness macros; update check of
21418         forkpty to take proper advantage of cache.
21419         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21420
21421         getopt: avoid compiler warning
21422         * lib/getopt.c (attribute_hidden): Remove unused macro.
21423
21424 2010-03-18  Bruno Haible  <bruno@clisp.org>
21425
21426         Fix link errors on Solaris 8.
21427         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21428         * modules/search-tests (test_search_c___LDADD): Likewise.
21429         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21430         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21431         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21432         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21433         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21434         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21435         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21436
21437 2010-03-18  Bruno Haible  <bruno@clisp.org>
21438
21439         Fix bug introduced on 2010-03-14.
21440         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21441         (gl_SPAWN_H): Require it.
21442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21443         Reported by Simon Josefsson.
21444
21445 2010-03-18  Bruno Haible  <bruno@clisp.org>
21446
21447         Fix typo introduced on 2009-12-31.
21448         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21449         posix_spawn_file_actions_adddup2.
21450
21451 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21452         and Eric Blake  <eblake@redhat.com>
21453
21454         test-vc-list-files-git: make more robust
21455         * tests/test-vc-list-files-git.sh: Unset problematic environment
21456         variables.  Chain commands together.
21457
21458 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21459
21460         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21461         `AC_CHECK_DECL' invocation.
21462
21463 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21464
21465         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21466         appears before executable statements. Suggested by Petr Sumbera
21467         <Petr.Sumbera@Sun.COM>.
21468
21469 2010-03-14  Bruno Haible  <bruno@clisp.org>
21470
21471         * tests/test-flock.c (test_exclusive): Comment out a test that causes
21472         portability problems. Instead use a simpler test.
21473         (main): Check that invalid arguments are rejected only on Linux.
21474
21475 2010-03-14  Bruno Haible  <bruno@clisp.org>
21476
21477         Fix bug introduced on 2009-12-31.
21478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21479         gl_PREREQ_SYS_H_WINSOCK2 always.
21480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
21481         SYS_SOCKET_H variable.
21482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
21483         Update comments.
21484         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
21485         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21488         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
21489
21490 2010-03-14  Bruno Haible  <bruno@clisp.org>
21491
21492         Fix values returned by sinl, cosl.
21493         * lib/trigl.h: Add specification comments.
21494         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
21495         that combines the values from the precomputed table with the values of
21496         the Chebyshev polynomials.
21497
21498 2010-03-14  Bruno Haible  <bruno@clisp.org>
21499
21500         Fix compilation error when modules 'posix_spawn[p]' are not used.
21501         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
21502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
21503
21504 2010-03-14  Bruno Haible  <bruno@clisp.org>
21505
21506         Fix compilation error on mingw when module 'time_r' is not used.
21507         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
21508         is 1.
21509         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
21510         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21511         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
21512         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
21513
21514 2010-03-14  Bruno Haible  <bruno@clisp.org>
21515
21516         Fix compilation error with Sun C.
21517         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
21518         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
21519         instead of GCC specific ULONG_LONG_MAX.
21520         * lib/xstrtoll.c: Likewise.
21521         * lib/xstrtoull.c: Likewise.
21522
21523 2010-03-13  Bruno Haible  <bruno@clisp.org>
21524
21525         Allow the user to disable C++ code and tests.
21526         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
21527         (gl_PROG_ANSI_CXX): Require it.
21528
21529 2010-03-13  Bruno Haible  <bruno@clisp.org>
21530
21531         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
21532         cases.
21533
21534 2010-03-13  Bruno Haible  <bruno@clisp.org>
21535
21536         Test that gnulib does not break the standard C++ headers.
21537         * tests/test-locale-c++2.cc: New file.
21538         * modules/locale-tests (Files): Add it.
21539         (Makefile.am): Compile it for test-locale-c++.
21540         * tests/test-math-c++2.cc: New file.
21541         * modules/math-tests (Files): Add it.
21542         (Makefile.am): Compile it for test-math-c++.
21543         * tests/test-signal-c++2.cc: New file.
21544         * modules/signal-tests (Files): Add it.
21545         (Makefile.am): Compile it for test-signal-c++.
21546         * tests/test-stdio-c++2.cc: New file.
21547         * modules/stdio-tests (Files): Add it.
21548         (Makefile.am): Compile it for test-stdio-c++.
21549         * tests/test-stdlib-c++2.cc: New file.
21550         * modules/stdlib-tests (Files): Add it.
21551         (Makefile.am): Compile it for test-stdlib-c++.
21552         * tests/test-string-c++2.cc: New file.
21553         * modules/string-tests (Files): Add it.
21554         (Makefile.am): Compile it for test-string-c++.
21555         * tests/test-time-c++2.cc: New file.
21556         * modules/time-tests (Files): Add it.
21557         (Makefile.am): Compile it for test-time-c++.
21558         Reported by John W. Eaton <jwe@gnu.org>.
21559
21560 2010-03-13  Bruno Haible  <bruno@clisp.org>
21561
21562         * gnulib-tool (func_usage): Clarify which options are available for
21563         --create-testdir and --create-megatestdir.
21564
21565 2010-03-13  Bruno Haible  <bruno@clisp.org>
21566
21567         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
21568         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
21569         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
21570         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21571         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
21572         when appropriate.
21573         Reported by Jim Meyering.
21574
21575 2010-03-12  Simon Josefsson  <simon@josefsson.org>
21576
21577         * gnulib-tool (func_import): Explain origin of code.
21578
21579 2010-03-12  Bruno Haible  <bruno@clisp.org>
21580
21581         Fix problem with automake's definition of CXXLINK.
21582         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
21583         Reported by Simon Josefsson and Ludovic Courtès.
21584
21585 2010-03-12  Bruno Haible  <bruno@clisp.org>
21586
21587         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
21588         stable releases.
21589
21590 2010-03-11  Bruno Haible  <bruno@clisp.org>
21591
21592         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
21593         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
21594         whether the system provides one variant or multiple variants of the
21595         function.
21596         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
21597         C++ compilers.
21598         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
21599         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
21600         Reported by Jim Meyering.
21601
21602 2010-03-09  Simon Josefsson  <simon@josefsson.org>
21603
21604         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
21605
21606 2010-03-08  Bruno Haible  <bruno@clisp.org>
21607
21608         gnulib-tool: Add support for --libtool in --create-testdir.
21609         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
21610         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
21611
21612 2010-03-08  Eric Blake  <eblake@redhat.com>
21613
21614         gnulib-tool.texi: mention possibility of git submodule
21615         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
21616         submodules.
21617         * doc/.gitignore: Ignore another generated file.
21618
21619 2010-03-08  Karl Berry  <karl@gnu.org>
21620
21621         * doc/gnulib-tool.texi (VCS Issues): Mention third option
21622         of committing gnulib files while skipping others.
21623
21624 2010-03-07  Bruno Haible  <bruno@clisp.org>
21625
21626         Tests of module 'wctype' in C++ mode.
21627         * tests/test-wctype-c++.cc: New file.
21628         * modules/wctype-tests (Files): Add it and tests/signature.h.
21629         (Depends-on): Add ansi-c++-opt.
21630         (Makefile.am): Arrange to compile and run test-wctype-c++.
21631
21632         Tests of module 'wchar' in C++ mode.
21633         * tests/test-wchar-c++.cc: New file.
21634         * modules/wchar-tests (Files): Add it and tests/signature.h.
21635         (Depends-on): Add ansi-c++-opt.
21636         (Makefile.am): Arrange to compile and run test-wchar-c++.
21637         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
21638         gl_MODULE_INDICATOR.
21639
21640         Tests of module 'unistd' in C++ mode.
21641         * tests/test-unistd-c++.cc: New file.
21642         * modules/unistd-tests (Files): Add it and tests/signature.h.
21643         (Depends-on): Add ansi-c++-opt.
21644         (Makefile.am): Arrange to compile and run test-unistd-c++.
21645         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
21646         gl_MODULE_INDICATOR.
21647
21648         Tests of module 'time' in C++ mode.
21649         * tests/test-time-c++.cc: New file.
21650         * modules/time-tests (Files): Add it and tests/signature.h.
21651         (Depends-on): Add ansi-c++-opt.
21652         (Makefile.am): Arrange to compile and run test-time-c++.
21653         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21654
21655         Tests of module 'sys_time' in C++ mode.
21656         * tests/test-sys_time-c++.cc: New file.
21657         * modules/sys_time-tests (Files): Add it and tests/signature.h.
21658         (Depends-on): Add ansi-c++-opt.
21659         (Makefile.am): Arrange to compile and run test-sys_time-c++.
21660         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
21661         gl_MODULE_INDICATOR.
21662
21663         Tests of module 'sys_stat' in C++ mode.
21664         * tests/test-sys_stat-c++.cc: New file.
21665         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
21666         (Depends-on): Add ansi-c++-opt.
21667         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
21668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
21669         gl_MODULE_INDICATOR.
21670
21671         Tests of module 'sys_socket' in C++ mode.
21672         * tests/test-sys_socket-c++.cc: New file.
21673         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
21674         (Depends-on): Add ansi-c++-opt.
21675         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
21676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
21677         gl_MODULE_INDICATOR.
21678
21679         Tests of module 'sys_select' in C++ mode.
21680         * tests/test-sys_select-c++.cc: New file.
21681         * modules/sys_select-tests (Files): Add it and tests/signature.h.
21682         (Depends-on): Add ansi-c++-opt.
21683         (Makefile.am): Arrange to compile and run test-sys_select-c++.
21684         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
21685         gl_MODULE_INDICATOR.
21686
21687         Tests of module 'sys_ioctl' in C++ mode.
21688         * tests/test-sys_ioctl-c++.cc: New file.
21689         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
21690         (Depends-on): Add ansi-c++-opt.
21691         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
21692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
21693         gl_MODULE_INDICATOR.
21694
21695         Tests of module 'string' in C++ mode.
21696         * tests/test-string-c++.cc: New file.
21697         * modules/string-tests (Files): Add it and tests/signature.h.
21698         (Depends-on): Add ansi-c++-opt.
21699         (Makefile.am): Arrange to compile and run test-string-c++.
21700         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
21701         gl_MODULE_INDICATOR.
21702
21703         Tests of module 'stdlib' in C++ mode.
21704         * tests/test-stdlib-c++.cc: New file.
21705         * modules/stdlib-tests (Files): Add it and tests/signature.h.
21706         (Depends-on): Add ansi-c++-opt.
21707         (Makefile.am): Arrange to compile and run test-stdlib-c++.
21708         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
21709         gl_MODULE_INDICATOR.
21710
21711         Tests of module 'stdio' in C++ mode.
21712         * tests/test-stdio-c++.cc: New file.
21713         * modules/stdio-tests (Files): Add it and tests/signature.h.
21714         (Depends-on): Add ansi-c++-opt.
21715         (Makefile.am): Arrange to compile and run test-stdio-c++.
21716         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
21717         gl_MODULE_INDICATOR.
21718
21719         Tests of module 'spawn' in C++ mode.
21720         * tests/test-spawn-c++.cc: New file.
21721         * modules/spawn-tests (Files): Add it and tests/signature.h.
21722         (Depends-on): Add ansi-c++-opt.
21723         (Makefile.am): Arrange to compile and run test-spawn-c++.
21724         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
21725         gl_MODULE_INDICATOR.
21726
21727         Tests of module 'signal' in C++ mode.
21728         * tests/test-signal-c++.cc: New file.
21729         * modules/signal-tests (Files): Add it and tests/signature.h.
21730         (Depends-on): Add ansi-c++-opt.
21731         (Makefile.am): Arrange to compile and run test-signal-c++.
21732         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
21733         gl_MODULE_INDICATOR.
21734
21735         Tests of module 'search' in C++ mode.
21736         * tests/test-search-c++.cc: New file.
21737         * modules/search-tests (Files): Add it and tests/signature.h.
21738         (Depends-on): Add ansi-c++-opt.
21739         (Makefile.am): Arrange to compile and run test-search-c++.
21740         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
21741         gl_MODULE_INDICATOR.
21742
21743         Tests of module 'math' in C++ mode.
21744         * tests/test-math-c++.cc: New file.
21745         * modules/math-tests (Files): Add it and tests/signature.h.
21746         (Depends-on): Add ansi-c++-opt.
21747         (Makefile.am): Arrange to compile and run test-math-c++.
21748         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21749
21750         Tests of module 'locale' in C++ mode.
21751         * tests/test-locale-c++.cc: New file.
21752         * modules/locale-tests (Files): Add it and tests/signature.h.
21753         (Depends-on): Add ansi-c++-opt.
21754         (Makefile.am): Arrange to compile and run test-locale-c++.
21755         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
21756         gl_MODULE_INDICATOR.
21757
21758         Tests of module 'langinfo' in C++ mode.
21759         * tests/test-langinfo-c++.cc: New file.
21760         * modules/langinfo-tests (Files): Add it and tests/signature.h.
21761         (Depends-on): Add ansi-c++-opt.
21762         (Makefile.am): Arrange to compile and run test-langinfo-c++.
21763         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
21764         gl_MODULE_INDICATOR.
21765
21766         Tests of module 'iconv-h' in C++ mode.
21767         * tests/test-iconv-h-c++.cc: New file.
21768         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
21769         (Depends-on): Add ansi-c++-opt.
21770         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
21771
21772         Tests of module 'glob' in C++ mode.
21773         * tests/test-glob-c++.cc: New file.
21774         * modules/glob-tests (Files): Add it.
21775         (Depends-on): Add ansi-c++-opt.
21776         (Makefile.am): Arrange to compile and run test-glob-c++.
21777
21778         Tests of module 'fcntl-h' in C++ mode.
21779         * tests/test-fcntl-h-c++.cc: New file.
21780         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
21781         (Depends-on): Add ansi-c++-opt.
21782         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
21783         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
21784         gl_MODULE_INDICATOR.
21785
21786         Tests of module 'dirent' in C++ mode.
21787         * tests/test-dirent-c++.cc: New file.
21788         * modules/dirent-tests (Files): Add it and tests/signature.h.
21789         (Depends-on): Add ansi-c++-opt.
21790         (Makefile.am): Arrange to compile and run test-dirent-c++.
21791         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21792         gl_MODULE_INDICATOR.
21793
21794         New module 'ansi-c++-opt'.
21795         * modules/ansi-c++-opt: New file.
21796         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
21797
21798         Document C++ namespace mode.
21799         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
21800
21801         wctype: Avoid #define replacements in C++ mode.
21802         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
21803         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
21804         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
21805         In C++, define a namespaced alias symbol.
21806         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
21807         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
21808         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
21809         rule.
21810
21811         wchar: Avoid #define replacements in C++ mode.
21812         * lib/wchar.in.h: Include c++defs.h.
21813         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
21814         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
21815         symbol.
21816         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
21817         * modules/wchar (Depends-on): Add c++defs.
21818         (Makefile.am): Update wchar.h rule.
21819
21820         unistd: Avoid #define replacements in C++ mode.
21821         * lib/unistd.in.h: Include c++defs.h.
21822         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
21823         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
21824         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
21825         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
21826         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
21827         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
21828         symbol.
21829         (environ): Update.
21830         * modules/unistd (Depends-on): Add c++defs.
21831         (Makefile.am): Update unistd.h rule.
21832
21833         time: Avoid #define replacements in C++ mode.
21834         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
21835         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
21836         define a namespaced alias symbol.
21837         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
21838         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
21839         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
21840         * modules/time (Depends-on): Add c++defs, warn-on-use.
21841         (Makefile.am): Update time.h rule.
21842         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
21843         * modules/nanosleep (configure.ac): Likewise.
21844         * modules/strptime (configure.ac): Likewise.
21845         * modules/timegm (configure.ac): Likewise.
21846
21847         sys_time: Avoid #define replacements in C++ mode.
21848         * lib/sys_time.in.h: Include c++defs.h.
21849         (gettimeofday): In C++, define a namespaced alias symbol.
21850         * modules/sys_time (Depends-on): Add c++defs.
21851         (Makefile.am): Update sys/time.h rule.
21852
21853         sys_stat: Avoid #define replacements in C++ mode.
21854         * lib/sys_stat.in.h: Include c++defs.h.
21855         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
21856         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
21857         namespaced alias symbol.
21858         In C++, define a namespaced alias symbol.
21859         * modules/sys_stat (Depends-on): Add c++defs.
21860         (Makefile.am): Update sys/stat.h rule.
21861
21862         sys_socket: Avoid #define replacements in C++ mode.
21863         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
21864         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
21865         definitions also when the system has a <sys/socket.h>.
21866         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21867         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
21868         In C++, define a namespaced alias symbol.
21869         * modules/sys_socket (Depends-on): Add c++defs.
21870         (Makefile.am): Update sys/socket.h rule.
21871
21872         sys_select: Avoid #define replacements in C++ mode.
21873         * lib/sys_select.in.h: Include c++defs.h. Enable the function
21874         definitions also when the system has a <sys/select.h>.
21875         (select): In C++, define a namespaced alias symbol.
21876         * modules/sys_select (Depends-on): Add c++defs.
21877         (Makefile.am): Update sys/select.h rule.
21878
21879         sys_ioctl: Avoid #define replacements in C++ mode.
21880         * lib/sys_ioctl.in.h: Include c++defs.h.
21881         (ioctl): In C++, define a namespaced alias symbol.
21882         * modules/sys_ioctl (Depends-on): Add c++defs.
21883         (Makefile.am): Update sys/ioctl.h rule.
21884
21885         string: Avoid #define replacements in C++ mode.
21886         * lib/string.in.h: Include c++defs.h.
21887         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
21888         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21889         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21890         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
21891         strsignal, strverscmp): In C++, define a namespaced alias symbol.
21892         * modules/string (Depends-on): Add c++defs.
21893         (Makefile.am): Update string.h rule.
21894
21895         stdlib: Avoid #define replacements in C++ mode.
21896         * lib/stdlib.in.h: Include c++defs.h.
21897         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
21898         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
21899         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
21900         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
21901         symbol.
21902         * modules/stdlib (Depends-on): Add c++defs.
21903         (Makefile.am): Update stdlib.h rule.
21904
21905         stdio: Avoid #define replacements in C++ mode.
21906         * lib/stdio.in.h: Include c++defs.h.
21907         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
21908         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
21909         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
21910         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
21911         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
21912         namespaced alias symbol.
21913         * modules/stdio (Depends-on): Add c++defs.
21914         (Makefile.am): Update stdio.h rule.
21915
21916         spawn: Avoid #define replacements in C++ mode.
21917         * lib/spawn.in.h: Include c++defs.h.
21918         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21919         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21920         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21921         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21922         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21923         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21924         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21925         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21926         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21927         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21928         In C++, define a namespaced alias symbol.
21929         * modules/spawn (Depends-on): Add c++defs.
21930         (Makefile.am): Update spawn.h rule.
21931
21932         signal: Avoid #define replacements in C++ mode.
21933         * lib/signal.in.h: Include c++defs.h.
21934         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21935         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
21936         namespaced alias symbol.
21937         * modules/signal (Depends-on): Add c++defs.
21938         (Makefile.am): Update signal.h rule.
21939
21940         search: Avoid #define replacements in C++ mode.
21941         * lib/search.in.h: Include c++defs.h.
21942         (_gl_search_compar_fn, _gl_search_action_fn): New types.
21943         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
21944         symbol.
21945         * modules/search (Depends-on): Add c++defs.
21946         (Makefile.am): Update search.h rule.
21947
21948         math: Avoid #define replacements in C++ mode.
21949         * lib/math.in.h: Include c++defs.h.
21950         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
21951         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
21952         trunc, truncl): In C++, define a namespaced alias symbol.
21953         * modules/math (Depends-on): Add c++defs.
21954         (Makefile.am): Update math.h rule.
21955
21956         locale: Avoid #define replacements in C++ mode.
21957         * lib/locale.in.h: Include c++defs.h.
21958         (duplocale): In C++, define a namespaced alias symbol.
21959         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
21960         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
21961         * modules/locale (Depends-on): Add c++defs.
21962         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
21963
21964         langinfo: Avoid #define replacements in C++ mode.
21965         * lib/langinfo.in.h: Include c++defs.h.
21966         (nl_langinfo): In C++, define a namespaced alias symbol.
21967         * modules/langinfo (Depends-on): Add c++defs.
21968         (Makefile.am): Update langinfo.h rule.
21969
21970         iconv-h: Avoid #define replacements in C++ mode.
21971         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
21972         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
21973         symbol.
21974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21975         whenever iconv is present.
21976         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
21977         (Makefile.am): Update iconv.h rule.
21978
21979         glob: Avoid #define replacements in C++ mode.
21980         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
21981         (_gl_glob_errfunc_fn): New type.
21982         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
21983         symbol.
21984         * modules/glob (Depends-on): Add c++defs, warn-on-use.
21985         (Makefile.am): Update glob.h rule.
21986
21987         fcntl-h: Avoid #define replacements in C++ mode.
21988         * lib/fcntl.in.h: Include c++defs.h.
21989         (fcntl, open, openat): In C++, define a namespaced alias symbol.
21990         * modules/fcntl-h (Depends-on): Add c++defs.
21991         (Makefile.am): Update fcntl.h rule.
21992
21993         dirent: Avoid #define replacements in C++ mode.
21994         * lib/dirent.in.h: Include c++defs.h.
21995         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
21996         namespaced alias symbol.
21997         (dirfd): Update declaration.
21998         * modules/dirent (Depends-on): Add c++defs.
21999         (Makefile.am): Update dirent.h rule.
22000
22001         ctype: Make it usable in C++ code.
22002         * lib/ctype.in.h: Include c++defs.h.
22003         (isblank): Declare as extern "C".
22004         * modules/ctype (Depends-on): Add c++defs.
22005         (Makefile.am): Update ctype.h rule.
22006
22007         New module 'c++defs'.
22008         * modules/c++defs: New file.
22009         * build-aux/c++defs.h: New file.
22010         Reported by John W. Eaton <jwe@gnu.org>.
22011
22012 2010-03-07  Bruno Haible  <bruno@clisp.org>
22013
22014         logb: Provide missing declaration for Cygwin.
22015         * lib/math.in.h (logb): New declaration.
22016         * m4/logb.m4: New file.
22017         * modules/logb (Files): Add m4/logb.m4.
22018         (Depends-on): Add math.
22019         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22020         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22022         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22023         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22024
22025 2010-03-07  Bruno Haible  <bruno@clisp.org>
22026
22027         Fix test-cond link error.
22028         * tests/test-cond.c: Include <stdio.h>.
22029
22030 2010-03-07  Bruno Haible  <bruno@clisp.org>
22031
22032         Fix test-dirent-safer link error.
22033         * modules/dirent-safer-tests (Makefile.am): Define
22034         test_dirent_safer_LDADD.
22035
22036 2010-03-07  Bruno Haible  <bruno@clisp.org>
22037
22038         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22039         among default module list.
22040
22041 2010-03-07  Bruno Haible  <bruno@clisp.org>
22042
22043         Fix link error on platforms with GNU libiconv.
22044         * modules/unistr/u8-strcoll-tests (Makefile): Define
22045         test_u8_strcoll_LDADD.
22046         * modules/unistr/u16-strcoll-tests (Makefile): Define
22047         test_u16_strcoll_LDADD.
22048         * modules/unistr/u32-strcoll-tests (Makefile): Define
22049         test_u32_strcoll_LDADD.
22050
22051 2010-03-07  Bruno Haible  <bruno@clisp.org>
22052
22053         Use POSIX declarations for socket functions.
22054         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22055         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22056         rpl_sendto): Change declaration to match POSIX.
22057         * lib/connect.c (rpl_connect): Likewise.
22058         * lib/accept.c (rpl_accept): Likewise.
22059         * lib/bind.c (rpl_bind): Likewise.
22060         * lib/getpeername.c (rpl_getpeername): Likewise.
22061         * lib/getsockname.c (rpl_getsockname): Likewise.
22062         * lib/recv.c (rpl_recv): Likewise.
22063         * lib/send.c (rpl_send): Likewise.
22064         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22065         * lib/sendto.c (rpl_sendto): Likewise.
22066
22067 2010-03-06  Bruno Haible  <bruno@clisp.org>
22068
22069         Clarify access, euidaccess, faccessat.
22070         * doc/posix-functions/faccessat.texi: Mention security problem under
22071         "Other problems", not "Portability problems".
22072         * doc/posix-functions/access.texi: Likewise. Mention a related security
22073         problem.
22074         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22075         * lib/euidaccess.c: Add comments about platforms.
22076         * lib/unistd.in.h (access, euidaccess): Add warnings.
22077
22078 2010-03-07  Bruno Haible  <bruno@clisp.org>
22079
22080         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22081         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22082         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22083         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22084         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22085         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22086         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22087         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22088         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22090         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22091         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22092         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22093         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22094         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22095         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22096         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22097         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22098         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22099         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22100         Likewise.
22101         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22102         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22103         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22104         Likewise.
22105         * tests/test-spawn.c (main): Make it work when
22106         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22107
22108 2010-03-07  Bruno Haible  <bruno@clisp.org>
22109
22110         Fix incorrect Makefile.am generation in German locale.
22111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22112         Execute sed command with character range in C locale.
22113
22114 2010-03-06  Bruno Haible  <bruno@clisp.org>
22115
22116         Tests for module 'iconv-h'.
22117         * modules/iconv-h-tests: New file.
22118         * tests/test-iconv-h.c: New file.
22119
22120         New module 'iconv-h'.
22121         * modules/iconv-h: New file.
22122         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22123         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22124         (configure.ac): Remove gl_ICONV_H.
22125         (Makefile.am): Remove rule for iconv.h.
22126
22127 2010-03-06  Bruno Haible  <bruno@clisp.org>
22128
22129         More consistent naming of *.m4 files.
22130         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22131         * modules/wctype (Files): Update.
22132
22133         More consistent naming of *.m4 files.
22134         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22135         * modules/wchar (Files): Update.
22136
22137 2010-03-06  Jim Meyering  <meyering@redhat.com>
22138
22139         euidaccess: relax license to LGPLv2+
22140         * modules/euidaccess (License): Relax to LGPLv2+.
22141
22142 2010-03-06  Bruno Haible  <bruno@clisp.org>
22143
22144         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22145         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22146         (Makefile.am): Augment lib_SOURCES instead.
22147
22148 2010-03-04  Jim Meyering  <meyering@redhat.com>
22149
22150         utime: remove obsolete module
22151         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22152         unnecessary for years, and has been marked as obsolete for 10 months.
22153         * modules/utime: Remove file.
22154         * lib/utime.c: Remove file.
22155         * m4/utime.m4: Remove file.
22156         * m4/utimes-null.m4: Remove file.
22157         * doc/posix-functions/utime.texi (utime): Remove reference to
22158         the module.  Move the sole "fixed by gnulib" item into the
22159         "problems not fixed by Gnulib" list.
22160         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22161
22162 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22163
22164         * modules/exit (License): Relax license to LGPLv2+.
22165         (Status): Mark as obsolete.
22166         * NEWS: Mention deprecated 'exit' module.
22167         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22168         of now obsolete 'exit'.
22169
22170 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22171
22172         fts-lgpl: remove unused module
22173         * modules/fts-lgpl: Remove.
22174         * MODULES.html.sh (func_all_modules): Adjust.
22175         * check-module (find_included_lib_files): Adjust.
22176         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22177
22178 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22179
22180         copy-acl: enhance Solaris ACL error handling
22181         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22182         * lib/set-mode-acl.c (qset_acl): Likewise.
22183
22184 2010-03-02  Bruno Haible  <bruno@clisp.org>
22185
22186         spawn: Don't override the system defined values on FreeBSD 8.
22187         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22188         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22189         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22190         if HAVE_POSIX_SPAWN is 1.
22191         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22192
22193 2010-03-01  Bruno Haible  <bruno@clisp.org>
22194
22195         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22196         regarding Automake.
22197
22198 2010-02-25  Bruno Haible  <bruno@clisp.org>
22199
22200         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22201         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22202         setting, not afterwards.
22203         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22204
22205 2010-02-24  Eric Blake  <eblake@redhat.com>
22206
22207         bootstrap, git-version-gen: use timestamp
22208         * build-aux/git-version-gen (scriptversion): Force UTC.
22209         * build-aux/bootstrap (scriptversion): New variable.
22210
22211         bootstrap: allow older git
22212         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22213         older than 1.6.4.  Requested by the libvirt project.
22214
22215 2010-02-23  Eric Blake  <eblake@redhat.com>
22216
22217         warn-on-use: work with old autoconf
22218         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22219         AS_VAR semantics of autoconf 2.60.
22220         Reported by Bruno Haible.
22221
22222         bootstrap: improve some comments
22223         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22224         clarification comments.
22225
22226         gettimeofday: provide correct function
22227         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22228         when replacement is declared, otherwise provide gettimeofday.
22229         Reported by Michael Goffioul.
22230
22231 2010-02-23  Jim Meyering  <meyering@redhat.com>
22232
22233         lib-ignore: relax license to "unlimited", not LGPLv2+
22234         * modules/lib-ignore (License): Relax to "unlimited".
22235
22236 2010-02-23  Jim Meyering  <meyering@redhat.com>
22237
22238         lib-ignore: relax license to LGPLv2+
22239         * modules/lib-ignore (License): Relax to LGPLv2+.
22240
22241 2010-02-22  Eric Blake  <eblake@redhat.com>
22242
22243         lseek: avoid bash 3.2 broken pipe bug
22244         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22245         warning from bash 3.2.
22246         Reported by Ben Pfaff, with analysis from Bruno Haible.
22247
22248         bootstrap: support non-FSF copyright holder
22249         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22250         bootstrap.conf override of COPYRIGHT_HOLDER.
22251         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22252
22253         bootstrap: interoperate with gettext 0.14.1
22254         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22255
22256         bootstrap: allow for alternate submodule location
22257         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22258         hardcoding submodule location.
22259         (gnulib_mk): Allow direct use of Makefile.am.
22260
22261         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22262         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22263         rather than reconfiguring where the submodule points.
22264
22265         gettimeofday: restore support for platforms that lack function
22266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22267         replacement if function is missing.
22268         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22269         * modules/sys_time (Makefile.am): Substitute it.
22270         * lib/sys_time.in.h (gettimeofday): Check it.
22271         Reported by Michael Goffioul.
22272
22273 2010-02-21  Bruno Haible  <bruno@clisp.org>
22274
22275         * lib/stdio.in.h (obstack_printf): Fix typo.
22276
22277 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22278
22279         vc-list-files: use bzr ls's -R option
22280         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22281         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22282
22283 2010-02-21  Jim Meyering  <meyering@redhat.com>
22284
22285         init.sh: fix EXEEXT shims to work also for names like test-prog
22286         * tests/init.sh: Re-exec a better shell, when needed.
22287         If the current shell lacks support for posix $(...), an init.sh-using
22288         test will now try to find a shell that supports that.  If EXEEXT is
22289         nonempty, we also require support for hyphen-in-alias-name and shell
22290         substitutions like ${var#glob}.  Failure to find such a shell results
22291         in a skipped test.
22292
22293 2010-02-21  Bruno Haible  <bruno@clisp.org>
22294
22295         Really work around around "broken pipe" error message from bash 3.2.
22296         * gnulib-tool (func_reset_sigpipe): Remove function.
22297         (echo): In bash 3.2, define to a function that uses printf.
22298         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22299
22300 2010-02-20  Bruno Haible  <bruno@clisp.org>
22301
22302         Restore support for automake 1.9.6 with autoconf 2.61.
22303         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22304         Reported by James Youngman <jay@gnu.org>.
22305
22306 2010-02-20  Bruno Haible  <bruno@clisp.org>
22307
22308         Improve *printf warning condition.
22309         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22310         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22311         and the function is overridden due to SIGPIPE emulation.
22312
22313 2010-02-20  Bruno Haible  <bruno@clisp.org>
22314
22315         * lib/stdio.in.h: Tweak comments.
22316
22317 2010-02-19  Bruno Haible  <bruno@clisp.org>
22318
22319         Make it easier to find modules. New gnulib-tool option '--find'.
22320         * gnulib-tool: New option --find.
22321         (func_usage): Document it.
22322         (func_sanitize_modulelist): New function, extracted from
22323         func_all_modules.
22324         (func_all_modules): Invoke it.
22325         * doc/gnulib-tool.texi (Which modules?): New node.
22326
22327 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22328
22329         * lib/sys_select.in.h: Provide select replacement even if
22330         sys/select.h exists on a system, for Interix.
22331
22332 2010-02-18  Jim Meyering  <meyering@redhat.com>
22333
22334         init.sh: don't use $(...) just yet
22335         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22336         to accommodate e.g., Solaris' /bin/sh.
22337
22338 2010-02-17  Bruno Haible  <bruno@clisp.org>
22339
22340         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22341         Reported by Ludovic Courtès <ludo@gnu.org>.
22342
22343 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22344
22345         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22346         linking with -lintl.
22347
22348 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22349
22350         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22351         if not provided by the system's netdb.h.  Reported by
22352         ludo@gnu.org (Ludovic Courtès).
22353
22354 2010-02-15  Jim Meyering  <meyering@redhat.com>
22355
22356         init.sh: improve portability and efficiency
22357         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22358         "dummy" in a for loop.
22359         Use '!', not '^' to select the complement of a character set used
22360         in a "case" statement.
22361         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22362         Suggestions from Eric Blake.
22363
22364         init.sh: automatically accommodate programs with the .exe suffix
22365         Automatically arrange for an invocation of "prog" to execute the
22366         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22367         may use the simpler "prog", yet still work when built on a system
22368         that requires specifying the added suffix.
22369         Do this by constructing a function named "prog" that invokes
22370         "prog.exe" for each .exe file in selected directories.
22371         * tests/init.sh (find_exe_basenames_): New function.
22372         (create_exe_shim_functions_): New function.
22373         (path_prepend_): Use it.
22374
22375         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22376         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22377         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22378
22379 2010-02-14  Jim Meyering  <meyering@redhat.com>
22380
22381         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22382         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22383         (sc_prohibit_hash_pjw_without_use): New rule.
22384
22385         maint.mk: allow the default upload destination dir to be overridden
22386         * top/maint.mk (upload_dest_dir_): Define with a default that
22387         preserves the status quo.
22388         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22389         Reported by Peter Simons.
22390
22391         maint.mk: prohibit inclusion of "hash.h" without_use
22392         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22393
22394 2010-02-10  Jim Meyering  <meyering@redhat.com>
22395
22396         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22397         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22398
22399 2010-02-09  Eric Blake  <ebb9@byu.net>
22400         and Bruno Haible  <bruno@clisp.org>
22401
22402         obstack-printf-posix: ensure declaration
22403         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22404         extracted from gl_FUNC_OBSTACK_PRINTF.
22405         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22406         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22407         Likewise.
22408         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22409         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22410         0.
22411
22412 2010-02-08  Bruno Haible  <bruno@clisp.org>
22413
22414         gnulib-tool: Fix typo in 2010-02-07 commit.
22415         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22416         Reported by Eric Blake.
22417
22418 2010-02-07  Bruno Haible  <bruno@clisp.org>
22419
22420         gnulib-tool: Fix up caching patches.
22421         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22422         option --no-cache. Use associative arrays when supported by the shell.
22423         (sed_comments): New variable.
22424         (modcache): Renamed from do_cache.
22425         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22426         abbreviate unnecessarily.
22427         (have_associative): New variable.
22428         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22429         way also for ksh and zsh.
22430         (func_init_sed_convert_to_cache_statements): New function, extracted
22431         from func_cache_lookup_module. Add support for associative arrays.
22432         Don't set the c_MODULE_cached variable here. Ignore all lines before
22433         the first field header. Remove only the final newline, not all trailing
22434         newlines. Support empty fields correctly. Limit the use of 'eval' to
22435         assignments.
22436         (func_get_description, func_get_status, func_get_notice,
22437         func_get_applicability, func_get_filelist, func_get_dependencies,
22438         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22439         func_get_automake_snippet, func_get_include_directive,
22440         func_get_link_directive, func_get_license, func_get_maintainer):
22441         Update documentation. List the unoptimized code first. Add support for
22442         associative arrays. Limit the use of 'eval' to assignments.
22443         (func_get_applicability): Undo stylistic pessimisations.
22444         (func_get_automake_snippet, func_get_include_directive): Reduce code
22445         duplication.
22446         (func_modules_transitive_closure, func_modules_add_dummy,
22447         func_modules_notice, func_modules_to_filelist, func_add_file,
22448         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22449         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22450         func_create_testdir, func_create_megatestdir): Update documentation.
22451
22452 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22453
22454         * gnulib-tool (func_cache_lookup_module): Store the module name
22455         belonging to the cache variable; error out if two different
22456         module names map to the same cache variable name.
22457
22458 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22459
22460         gnulib-tool: Make caching optional.
22461         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22462         Update matching short versions of --no-changelog.
22463         (func_usage): Update.
22464         (sed_extract_cache_prog): Renamed from ...
22465         (sed_extract_prog): ... this; revert to old extraction script.
22466         (func_get_description, func_get_status)
22467         (func_get_notice, func_get_applicability, func_get_filelist)
22468         (func_get_dependencies, func_get_autoconf_early_snippet)
22469         (func_get_autoconf_snippet, func_get_automake_snippet)
22470         (func_get_include_directive, func_get_link_directive)
22471         (func_get_license, func_get_maintainer): If $do_cache is false,
22472         use old, non-caching extraction scripts.
22473         Suggestion by Bruno Haible.
22474
22475 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22476
22477         gnulib-tool: cache module metainformation.
22478         * gnulib-tool (sed_extract_prog): Match newline before each
22479         header, and rewrite header to a shell variable suffix.
22480         (func_cache_var, func_cache_lookup_module): New functions,
22481         to turn a module name into a cache variable prefix, and to
22482         look up and cache module metainformation.
22483         (func_get_description, func_get_status)
22484         (func_get_notice, func_get_applicability, func_get_filelist)
22485         (func_get_dependencies, func_get_autoconf_early_snippet)
22486         (func_get_autoconf_snippet, func_get_automake_snippet)
22487         (func_get_include_directive, func_get_link_directive)
22488         (func_get_license, func_get_maintainer): Use
22489         func_cache_lookup_module.
22490
22491 2010-02-07  Bruno Haible  <bruno@clisp.org>
22492
22493         fnctl: Fix missing dependency.
22494         * modules/fcntl (Depends-on): Add getdtablesize.
22495         Reported by John W. Eaton <jwe@gnu.org>.
22496
22497 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22498
22499         Argp: fix recognition of short alias options.
22500
22501         * lib/argp-parse.c (convert_options): Fix improper use of
22502         `|' between character values.
22503         * tests/test-argp.c (group1_option): New alias option
22504         --read (-r).
22505         (group1_parser): Special handling for 'r'.
22506         (test15): New test case.
22507         (test_fun): Add test15.
22508         * tests/test-argp-2.sh: Update expected --help and --usage
22509         outputs.
22510
22511 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22512
22513         * tests/test-argp.c: Fix indentation.
22514
22515 2010-02-04  Eric Blake  <ebb9@byu.net>
22516
22517         gettimeofday: expose type of second argument
22518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
22519         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
22520         * tests/test-gettimeofday.c: Use it to silence warning.
22521         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
22522         the issue.
22523
22524 2010-02-03  Jim Meyering  <meyering@redhat.com>
22525
22526         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
22527         * lib/regcomp.c (TYPE_SIGNED): Define.
22528         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
22529
22530         regcomp.c: avoid a new -Wshadow warning
22531         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
22532
22533 2010-02-01  Jim Meyering  <meyering@redhat.com>
22534
22535         removing useless parentheses in cpp #define directives
22536         For motivation, see commit c0221df4, "define STREQ(a,b)
22537         consistently, removing useless parentheses"
22538         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
22539         * lib/mountlist.c (MNT_IGNORE): Likewise.
22540         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
22541
22542 2010-02-01  Eric Blake  <ebb9@byu.net>
22543
22544         sys_time: use link-warning
22545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
22546         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
22547         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
22548         * modules/sys_time (Depends-on): Add warn-on-use.
22549         (Makefile.am): Always build replacement.
22550         (configure.ac): Update substitutions.
22551         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
22552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
22553         bother with SYS_TIME_H.
22554         * modules/gettimeofday (configure.ac): Declare indicator.
22555         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
22556         in use.
22557
22558         closein-tests: silence compiler warning
22559         * tests/test-closein.c (main): Ignore fread result.
22560         * modules/closein-tests (Depends-on): Add ignore-value.
22561
22562         tests: silence warning about system return
22563         * tests/test-areadlink-with-size.c (main): Ignore system result.
22564         * tests/test-areadlink.c (main): Likewise.
22565         * tests/test-areadlinkat-with-size.c (main): Likewise.
22566         * tests/test-areadlinkat.c (main): Likewise.
22567         * tests/test-canonicalize-lgpl.c (main): Likewise.
22568         * tests/test-canonicalize.c (main): Likewise.
22569         * tests/test-chown.c (main): Likewise.
22570         * tests/test-fchownat.c (main): Likewise.
22571         * tests/test-fdutimensat.c (main): Likewise.
22572         * tests/test-fstatat.c (main): Likewise.
22573         * tests/test-futimens.c (main): Likewise.
22574         * tests/test-lchown.c (main): Likewise.
22575         * tests/test-link.c (main): Likewise.
22576         * tests/test-linkat.c (main): Likewise.
22577         * tests/test-lstat.c (main): Likewise.
22578         * tests/test-mkdir.c (main): Likewise.
22579         * tests/test-mkdirat.c (main): Likewise.
22580         * tests/test-mkfifo.c (main): Likewise.
22581         * tests/test-mkfifoat.c (main): Likewise.
22582         * tests/test-mknod.c (main): Likewise.
22583         * tests/test-readlink.c (main): Likewise.
22584         * tests/test-remove.c (main): Likewise.
22585         * tests/test-rename.c (main): Likewise.
22586         * tests/test-renameat.c (main): Likewise.
22587         * tests/test-rmdir.c (main): Likewise.
22588         * tests/test-symlink.c (main): Likewise.
22589         * tests/test-symlinkat.c (main): Likewise.
22590         * tests/test-unlink.c (main): Likewise.
22591         * tests/test-unlinkat.c (main): Likewise.
22592         * tests/test-utimens.c (main): Likewise.
22593         * tests/test-utimensat.c (main): Likewise.
22594         * modules/areadlink-tests (Depends-on): Add ignore-value.
22595         * modules/areadlink-with-size-tests (Depends-on): Likewise.
22596         * modules/areadlinkat-tests (Depends-on): Likewise.
22597         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
22598         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22599         * modules/canonicalize-tests (Depends-on): Likewise.
22600         * modules/chown-tests (Depends-on): Likewise.
22601         * modules/fdutimensat-tests (Depends-on): Likewise.
22602         * modules/futimens-tests (Depends-on): Likewise.
22603         * modules/lchown-tests (Depends-on): Likewise.
22604         * modules/link-tests (Depends-on): Likewise.
22605         * modules/linkat-tests (Depends-on): Likewise.
22606         * modules/lstat-tests (Depends-on): Likewise.
22607         * modules/mkdir-tests (Depends-on): Likewise.
22608         * modules/mkfifo-tests (Depends-on): Likewise.
22609         * modules/mkfifoat-tests (Depends-on): Likewise.
22610         * modules/mknod-tests (Depends-on): Likewise.
22611         * modules/openat-tests (Depends-on): Likewise.
22612         * modules/readlink-tests (Depends-on): Likewise.
22613         * modules/remove-tests (Depends-on): Likewise.
22614         * modules/rename-tests (Depends-on): Likewise.
22615         * modules/renameat-tests (Depends-on): Likewise.
22616         * modules/rmdir-tests (Depends-on): Likewise.
22617         * modules/symlink-tests (Depends-on): Likewise.
22618         * modules/symlinkat-tests (Depends-on): Likewise.
22619         * modules/unlink-tests (Depends-on): Likewise.
22620         * modules/utimens-tests (Depends-on): Likewise.
22621         * modules/utimensat-tests (Depends-on): Likewise.
22622
22623 2010-01-31  Bruno Haible  <bruno@clisp.org>
22624
22625         Perform the same test for many <math.h> functions.
22626         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
22627         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
22628         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
22629         of gl_MATHFUNC.
22630         * modules/acos (configure.ac): Likewise.
22631         * modules/asin (configure.ac): Likewise.
22632         * modules/atan (configure.ac): Likewise.
22633         * modules/atan2 (configure.ac): Likewise.
22634         * modules/cbrt (configure.ac): Likewise.
22635         * modules/copysign (configure.ac): Likewise.
22636         * modules/cos (configure.ac): Likewise.
22637         * modules/cosh (configure.ac): Likewise.
22638         * modules/erf (configure.ac): Likewise.
22639         * modules/erfc (configure.ac): Likewise.
22640         * modules/exp (configure.ac): Likewise.
22641         * modules/fmod (configure.ac): Likewise.
22642         * modules/hypot (configure.ac): Likewise.
22643         * modules/j0 (configure.ac): Likewise.
22644         * modules/j1 (configure.ac): Likewise.
22645         * modules/jn (configure.ac): Likewise.
22646         * modules/lgamma (configure.ac): Likewise.
22647         * modules/log (configure.ac): Likewise.
22648         * modules/log10 (configure.ac): Likewise.
22649         * modules/log1p (configure.ac): Likewise.
22650         * modules/pow (configure.ac): Likewise.
22651         * modules/remainder (configure.ac): Likewise.
22652         * modules/sin (configure.ac): Likewise.
22653         * modules/sinh (configure.ac): Likewise.
22654         * modules/tan (configure.ac): Likewise.
22655         * modules/tanh (configure.ac): Likewise.
22656         * modules/y0 (configure.ac): Likewise.
22657         * modules/y1 (configure.ac): Likewise.
22658         * modules/yn (configure.ac): Likewise.
22659         Suggested by Paolo Bonzini.
22660
22661 2010-01-31  Bruno Haible  <bruno@clisp.org>
22662
22663         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
22664
22665 2010-01-31  Bruno Haible  <bruno@clisp.org>
22666
22667         Work around getdelim() bug on FreeBSD 8.0.
22668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
22669         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
22670         not work.
22671         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
22672         is 1.
22673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
22674         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
22675         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
22676         a non-zero size.
22677         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
22678
22679 2010-01-31  Bruno Haible  <bruno@clisp.org>
22680
22681         Work around getline() bug on FreeBSD 8.0.
22682         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
22683         and a non-zero size.
22684         * tests/test-getline.c (main): Likewise.
22685         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
22686         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
22687
22688 2010-01-28  Eric Blake  <ebb9@byu.net>
22689
22690         regex: fix build failure
22691         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
22692         platforms.
22693
22694 2010-01-28  Jim Meyering  <meyering@redhat.com>
22695
22696         regex: do not ignore memory allocation failure
22697         * lib/regex_internal.c (create_cd_newstate): Detect
22698         re_node_set_init_copy failure.   Extracted from glibc commit
22699         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22700
22701         regex: sync more white-space changes from libc
22702         * lib/regex_internal.c: White-space only changes.
22703         * lib/regexec.c: Likewise.
22704
22705         regex: add many uses of __attribute_warn_unused_result__
22706         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
22707         * lib/regexec.c: Likewise.
22708         Extracted from a messy glibc commit.
22709
22710         regcomp.c: spelling and merge-artifact from glibc
22711         * lib/regcomp.c: Merge remainder of glibc's
22712         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22713
22714         regcomp.c: sync white-space changes from glibc
22715         * lib/regcomp.c: Merge to accommodate white space
22716         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
22717
22718         regcomp.c: do not ignore internal return values
22719         * lib/regcomp.c: Do not ignore internal return values.
22720         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
22721         but without its white-space changes and spelling fixes.
22722
22723         regex_internal.h: define __attribute_warn_unused_result__
22724         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
22725
22726         maint: add a syntax-check rule to check for vulnerable Makefile.in
22727         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
22728
22729 2010-01-27  Jim Meyering  <meyering@redhat.com>
22730
22731         ncftpput-ftp: clean up spaces
22732         * build-aux/ncftpput-ftp: Make Copyright line consistent.
22733         Remove trailing blanks.
22734
22735 2010-01-27  Simon Josefsson  <simon@josefsson.org>
22736
22737         * build-aux/git-version-gen: Fix copyright statement.
22738         * build-aux/gnupload: Likewise.
22739         * tests/test-arcfour.c: Likewise.
22740         * tests/test-arctwo.c: Likewise.
22741         * tests/test-count-one-bits.c: Likewise.
22742         * tests/test-crc.c: Likewise.
22743         * tests/test-des.c: Likewise.
22744         * tests/test-gc-arcfour.c: Likewise.
22745         * tests/test-gc-arctwo.c: Likewise.
22746         * tests/test-gc-des.c: Likewise.
22747         * tests/test-gc-hmac-md5.c: Likewise.
22748         * tests/test-gc-hmac-sha1.c: Likewise.
22749         * tests/test-gc-md2.c: Likewise.
22750         * tests/test-gc-md4.c: Likewise.
22751         * tests/test-gc-md5.c: Likewise.
22752         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22753         * tests/test-gc-rijndael.c: Likewise.
22754         * tests/test-gc-sha1.c: Likewise.
22755         * tests/test-gc.c: Likewise.
22756         * tests/test-gethostname.c: Likewise.
22757         * tests/test-gettimeofday.c: Likewise.
22758         * tests/test-hash.c: Likewise.
22759         * tests/test-hmac-md5.c: Likewise.
22760         * tests/test-hmac-sha1.c: Likewise.
22761         * tests/test-md2.c: Likewise.
22762         * tests/test-md4.c: Likewise.
22763         * tests/test-md5.c: Likewise.
22764         * tests/test-memchr.c: Likewise.
22765         * tests/test-memchr2.c: Likewise.
22766         * tests/test-memcmp.c: Likewise.
22767         * tests/test-memmem.c: Likewise.
22768         * tests/test-memrchr.c: Likewise.
22769         * tests/test-rawmemchr.c: Likewise.
22770         * tests/test-read-file.c: Likewise.
22771         * tests/test-rijndael.c: Likewise.
22772         * tests/test-sockets.c: Likewise.
22773         * tests/test-strchrnul.c: Likewise.
22774         * tests/test-strstr.c: Likewise.
22775         * tests/test-strtod.c: Likewise.
22776         * build-aux/ncftpput-ftp: Likewise.
22777
22778 2010-01-26  Eric Blake  <ebb9@byu.net>
22779
22780         ignore-value: update recommended header name
22781         * modules/ignore-value (Include): Only use <> for headers that
22782         exist in glibc.
22783
22784 2010-01-26  Jim Meyering  <meyering@redhat.com>
22785
22786         test-userspec.c: avoid compiler warnings
22787         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
22788         and "initialization discards qualifiers..." warnings.
22789         Put the first "uid" in its own scope, and make char* members "const".
22790
22791 2010-01-25  Bruno Haible  <bruno@clisp.org>
22792
22793         gnulib-tool: Make warning diagnostics consistent.
22794         * gnulib-tool (func_warning): New function.
22795         Use it everywhere where gnulib-tool produces output to stderr and it is
22796         not a fatal error.
22797
22798 2010-01-25  Bruno Haible  <bruno@clisp.org>
22799
22800         Fix test dependencies.
22801         * modules/xstrtol-tests (Depends-on): Add inttypes.
22802         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
22803
22804 2010-01-25 PĂ¡draig Brady <P@draigBrady.com>
22805
22806         syntax-check: detect incorrect boolean macro values in config.h
22807         * modules/maintainer-makefile (configure.ac): Parameterize the location
22808         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
22809         The logic is from Eric Blake and the location indicated by Jim Meyering.
22810         Note the more natural CONFIG_HEADER name is prohibited by automake
22811         for backwards compatibility reasons.
22812         * top/maint.mk (sc_Wundef_boolean): New rule.
22813
22814 2010-01-25  Jim Meyering  <meyering@redhat.com>
22815
22816         bootstrap: detect MacOS 10.6's shasum, too
22817         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
22818         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
22819
22820 2010-01-23  Jim Meyering  <meyering@redhat.com>
22821
22822         xstrtoll: new module
22823         * modules/xstrtoll: New file.
22824         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
22825         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
22826         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
22827         ./configure fails if you use this module and lack "long long".
22828         * modules/xstrtoll-tests: New module.
22829         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
22830         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
22831         new init.sh-based test framework.
22832
22833 2010-01-24  Bruno Haible  <bruno@clisp.org>
22834
22835         Tests for module 'yn'.
22836         * modules/yn-tests: New file.
22837         * tests/test-yn.c: New file.
22838
22839         Tests for module 'y1'.
22840         * modules/y1-tests: New file.
22841         * tests/test-y1.c: New file.
22842
22843         Tests for module 'y0'.
22844         * modules/y0-tests: New file.
22845         * tests/test-y0.c: New file.
22846
22847         Tests for module 'tanh'.
22848         * modules/tanh-tests: New file.
22849         * tests/test-tanh.c: New file.
22850
22851         Tests for module 'tan'.
22852         * modules/tan-tests: New file.
22853         * tests/test-tan.c: New file.
22854
22855         Tests for module 'sqrt'.
22856         * modules/sqrt-tests: New file.
22857         * tests/test-sqrt.c: New file.
22858
22859         Tests for module 'sinh'.
22860         * modules/sinh-tests: New file.
22861         * tests/test-sinh.c: New file.
22862
22863         Tests for module 'sin'.
22864         * modules/sin-tests: New file.
22865         * tests/test-sin.c: New file.
22866
22867         Tests for module 'rint'.
22868         * modules/rint-tests: New file.
22869         * tests/test-rint.c: New file.
22870
22871         Tests for module 'remainder'.
22872         * modules/remainder-tests: New file.
22873         * tests/test-remainder.c: New file.
22874
22875         Tests for module 'pow'.
22876         * modules/pow-tests: New file.
22877         * tests/test-pow.c: New file.
22878
22879         Tests for module 'nextafter'.
22880         * modules/nextafter-tests: New file.
22881         * tests/test-nextafter.c: New file.
22882
22883         Tests for module 'modf'.
22884         * modules/modf-tests: New file.
22885         * tests/test-modf.c: New file.
22886
22887         Tests for module 'logb'.
22888         * modules/logb-tests: New file.
22889         * tests/test-logb.c: New file.
22890
22891         Tests for module 'log1p'.
22892         * modules/log1p-tests: New file.
22893         * tests/test-log1p.c: New file.
22894
22895         Tests for module 'log10'.
22896         * modules/log10-tests: New file.
22897         * tests/test-log10.c: New file.
22898
22899         Tests for module 'log'.
22900         * modules/log-tests: New file.
22901         * tests/test-log.c: New file.
22902
22903         Tests for module 'lgamma'.
22904         * modules/lgamma-tests: New file.
22905         * tests/test-lgamma.c: New file.
22906
22907         Tests for module 'ldexp'.
22908         * modules/ldexp-tests: New file.
22909         * tests/test-ldexp.c: New file.
22910
22911         Tests for module 'jn'.
22912         * modules/jn-tests: New file.
22913         * tests/test-jn.c: New file.
22914
22915         Tests for module 'j1'.
22916         * modules/j1-tests: New file.
22917         * tests/test-j1.c: New file.
22918
22919         Tests for module 'j0'.
22920         * modules/j0-tests: New file.
22921         * tests/test-j0.c: New file.
22922
22923         Tests for module 'hypot'.
22924         * modules/hypot-tests: New file.
22925         * tests/test-hypot.c: New file.
22926
22927         Tests for module 'fmod'.
22928         * modules/fmod-tests: New file.
22929         * tests/test-fmod.c: New file.
22930
22931         Tests for module 'fabs'.
22932         * modules/fabs-tests: New file.
22933         * tests/test-fabs.c: New file.
22934
22935         Tests for module 'exp'.
22936         * modules/exp-tests: New file.
22937         * tests/test-exp.c: New file.
22938
22939         Tests for module 'erfc'.
22940         * modules/erfc-tests: New file.
22941         * tests/test-erfc.c: New file.
22942
22943         Tests for module 'erf'.
22944         * modules/erf-tests: New file.
22945         * tests/test-erf.c: New file.
22946
22947         Tests for module 'cosh'.
22948         * modules/cosh-tests: New file.
22949         * tests/test-cosh.c: New file.
22950
22951         Tests for module 'cos'.
22952         * modules/cos-tests: New file.
22953         * tests/test-cos.c: New file.
22954
22955         Tests for module 'copysign'.
22956         * modules/copysign-tests: New file.
22957         * tests/test-copysign.c: New file.
22958
22959         Tests for module 'cbrt'.
22960         * modules/cbrt-tests: New file.
22961         * tests/test-cbrt.c: New file.
22962
22963         Tests for module 'atan2'.
22964         * modules/atan2-tests: New file.
22965         * tests/test-atan2.c: New file.
22966
22967         Tests for module 'atan'.
22968         * modules/atan-tests: New file.
22969         * tests/test-atan.c: New file.
22970
22971         Tests for module 'asin'.
22972         * modules/asin-tests: New file.
22973         * tests/test-asin.c: New file.
22974
22975         Tests for module 'acos'.
22976         * modules/acos-tests: New file.
22977         * tests/test-acos.c: New file.
22978
22979 2010-01-24  Bruno Haible  <bruno@clisp.org>
22980
22981         Fix tests for common <math.h> functions.
22982         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
22983         code snippet that references the function pointer, rather than merely
22984         calling the function. Substitute the FUNC_LIBM variable.
22985         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
22986         * modules/acos (configure.ac): Likewise.
22987         * modules/asin (configure.ac): Likewise.
22988         * modules/atan (configure.ac): Likewise.
22989         * modules/atan2 (configure.ac): Likewise.
22990         * modules/cbrt (configure.ac): Likewise.
22991         * modules/copysign (configure.ac): Likewise.
22992         * modules/cos (configure.ac): Likewise.
22993         * modules/cosh (configure.ac): Likewise.
22994         * modules/erf (configure.ac): Likewise.
22995         * modules/erfc (configure.ac): Likewise.
22996         * modules/exp (configure.ac): Likewise.
22997         * modules/fabs (configure.ac): Likewise.
22998         * modules/fmod (configure.ac): Likewise.
22999         * modules/hypot (configure.ac): Likewise.
23000         * modules/j0 (configure.ac): Likewise.
23001         * modules/j1 (configure.ac): Likewise.
23002         * modules/jn (configure.ac): Likewise.
23003         * modules/ldexp (configure.ac): Likewise.
23004         * modules/lgamma (configure.ac): Likewise.
23005         * modules/log (configure.ac): Likewise.
23006         * modules/log10 (configure.ac): Likewise.
23007         * modules/log1p (configure.ac): Likewise.
23008         * modules/logb (configure.ac): Likewise.
23009         * modules/modf (configure.ac): Likewise.
23010         * modules/nextafter (configure.ac): Likewise.
23011         * modules/pow (configure.ac): Likewise.
23012         * modules/remainder (configure.ac): Likewise.
23013         * modules/rint (configure.ac): Likewise.
23014         * modules/sin (configure.ac): Likewise.
23015         * modules/sinh (configure.ac): Likewise.
23016         * modules/tan (configure.ac): Likewise.
23017         * modules/tanh (configure.ac): Likewise.
23018         * modules/y0 (configure.ac): Likewise.
23019         * modules/y1 (configure.ac): Likewise.
23020         * modules/yn (configure.ac): Likewise.
23021
23022 2010-01-24  Bruno Haible  <bruno@clisp.org>
23023
23024         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23025         * tests/test-acosl.c (x): New variable.
23026         (main): Store argument in x and fetch it from x.
23027         * tests/test-asinl.c (x): New variable.
23028         (main): Store argument in x and fetch it from x.
23029         * tests/test-atanl.c (x): New variable.
23030         (main): Store argument in x and fetch it from x.
23031         * tests/test-cosl.c (x): New variable.
23032         (main): Store argument in x and fetch it from x.
23033         * tests/test-expl.c (x): New variable.
23034         (main): Store argument in x and fetch it from x.
23035         * tests/test-logl.c (x): New variable.
23036         (main): Store argument in x and fetch it from x.
23037         * tests/test-sinl.c (x): New variable.
23038         (main): Store argument in x and fetch it from x.
23039         * tests/test-sqrtl.c (x): New variable.
23040         (main): Store argument in x and fetch it from x.
23041         * tests/test-tanl.c (x): New variable.
23042         (main): Store argument in x and fetch it from x.
23043
23044 2010-01-24  Bruno Haible  <bruno@clisp.org>
23045
23046         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23047         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23048         assignments to the initial TESTS_ENVIRONMENT.
23049         * doc/gnulib.texi (Unit test modules): Document it.
23050         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23051         TESTS_ENVIRONMENT.
23052         * modules/btowc-tests (Makefile.am): Likewise.
23053         * modules/c-stack-tests (Makefile.am): Likewise.
23054         * modules/c-strcase-tests (Makefile.am): Likewise.
23055         * modules/copy-file-tests (Makefile.am): Likewise.
23056         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23057         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23058         * modules/mbrtowc-tests (Makefile.am): Likewise.
23059         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23060         * modules/mbscasestr-tests (Makefile.am): Likewise.
23061         * modules/mbschr-tests (Makefile.am): Likewise.
23062         * modules/mbscspn-tests (Makefile.am): Likewise.
23063         * modules/mbsinit-tests (Makefile.am): Likewise.
23064         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23065         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23066         * modules/mbspbrk-tests (Makefile.am): Likewise.
23067         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23068         * modules/mbsrchr-tests (Makefile.am): Likewise.
23069         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23070         * modules/mbsspn-tests (Makefile.am): Likewise.
23071         * modules/mbsstr-tests (Makefile.am): Likewise.
23072         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23073         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23074         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23075         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23076         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23077         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23078         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23079         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23080         * modules/wcrtomb-tests (Makefile.am): Likewise.
23081         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23082         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23083         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23084         assignments from TESTS_ENVIRONMENT.
23085         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23086         augmentation.
23087         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23088         * modules/atexit-tests (Makefile.am): Likewise.
23089         * modules/binary-io-tests (Makefile.am): Likewise.
23090         * modules/closein-tests (Makefile.am): Likewise.
23091         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23092         * modules/exclude-tests (Makefile.am): Likewise.
23093         * modules/fflush-tests (Makefile.am): Likewise.
23094         * modules/fpending-tests (Makefile.am): Likewise.
23095         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23096         * modules/freadahead-tests (Makefile.am): Likewise.
23097         * modules/freadptr-tests (Makefile.am): Likewise.
23098         * modules/freadseek-tests (Makefile.am): Likewise.
23099         * modules/fseek-tests (Makefile.am): Likewise.
23100         * modules/fseeko-tests (Makefile.am): Likewise.
23101         * modules/ftell-tests (Makefile.am): Likewise.
23102         * modules/ftello-tests (Makefile.am): Likewise.
23103         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23104         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23105         * modules/lseek-tests (Makefile.am): Likewise.
23106         * modules/parse-duration-tests (Makefile.am): Likewise.
23107         * modules/perror-tests (Makefile.am): Likewise.
23108         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23109         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23110         * modules/pipe-tests (Makefile.am): Likewise.
23111         * modules/pread-tests (Makefile.am): Likewise.
23112         * modules/printf-posix-tests (Makefile.am): Likewise.
23113         * modules/select-tests (Makefile.am): Likewise.
23114         * modules/sigpipe-tests (Makefile.am): Likewise.
23115         * modules/tsearch-tests (Makefile.am): Likewise.
23116         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23117         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23118         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23119         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23120         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23121         * modules/version-etc-tests (Makefile.am): Likewise.
23122         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23123         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23124         * modules/xalloc-die-tests (Makefile.am): Likewise.
23125         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23126         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23127         * modules/xstrtol-tests (Makefile.am): Likewise.
23128         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23129         * modules/yesno-tests (Makefile.am): Likewise.
23130         Suggested by Jim Meyering.
23131
23132 2010-01-24  Bruno Haible  <bruno@clisp.org>
23133
23134         More documentation.
23135         * doc/gnulib.texi (Writing modules): New chapter.
23136         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23137         the new chapter.
23138
23139 2010-01-24  Jim Meyering  <meyering@redhat.com>
23140
23141         maint.mk: do not prepend "./" after filtering
23142         * top/maint.mk (_prepend_srcdir_prefix): New variable
23143         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23144         "./" when $(srcdir) is ".".
23145
23146         define STREQ(a,b) consistently, removing useless parentheses
23147         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23148         since the only risk is that "a" or "b" contains an unparenthesized
23149         comma, but if either did that, STREQ would have 3 or more arguments.
23150         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23151         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23152         * lib/hash-triple.c (STREQ): Likewise.
23153         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23154         * lib/getugroups.c (STREQ): Likewise.
23155
23156 2010-01-23  Jim Meyering  <meyering@redhat.com>
23157
23158         maint.mk: fix syntax-check in a non-srcdir build directory
23159         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23160         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23161
23162 2010-01-22  Jim Meyering  <meyering@redhat.com>
23163
23164         userspec: add unit tests
23165         * tests/test-userspec.c: New file.
23166         * modules/userspec-tests: Likewise.
23167
23168 2010-01-21  Jim Meyering  <meyering@redhat.com>
23169
23170         maint.mk: handle source file names containing "." robustly
23171         * top/maint.mk (_dot_escaped_srcdir): Define.
23172         (VC_LIST): Use it in LHS of sed substitution.
23173
23174 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23175
23176         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23177         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23178         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23179         from a non-srcdir build.
23180
23181 2010-01-20  Eric Blake  <ebb9@byu.net>
23182
23183         warn-on-use: use instead of link-warning
23184         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23185         * modules/unistd (Depends-on, Makefile.am): Likewise.
23186         * modules/arpa_inet (Depends-on): Replace link-warning with
23187         warn-on-use.
23188         (Makefile.am): Update rules accordingly.
23189         * modules/ctype (Depends-on, Makefile.am): Likewise.
23190         * modules/dirent (Depends-on, Makefile.am): Likewise.
23191         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23192         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23193         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23194         * modules/locale (Depends-on, Makefile.am): Likewise.
23195         * modules/math (Depends-on, Makefile.am): Likewise.
23196         * modules/search (Depends-on, Makefile.am): Likewise.
23197         * modules/signal (Depends-on, Makefile.am): Likewise.
23198         * modules/spawn (Depends-on, Makefile.am): Likewise.
23199         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23200         * modules/string (Depends-on, Makefile.am): Likewise.
23201         * modules/strings (Depends-on, Makefile.am): Likewise.
23202         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23203         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23204         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23205         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23206         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23207         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23208         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23209         * modules/wchar (Depends-on, Makefile.am): Likewise.
23210         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23211         should be poisoned.
23212         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23213         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23214         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23216         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23217         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23218         * m4/math_h.m4 (gl_MATH_H): Likewise.
23219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23222         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23223         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23224         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23226         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23227         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23231         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23232         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23233         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23234         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23235         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23236         GL_LINK_WARNING.
23237         * lib/ctype.in.h: Likewise.
23238         * lib/dirent.in.h: Likewise.
23239         * lib/fcntl.in.h: Likewise.
23240         * lib/inttypes.in.h: Likewise.
23241         * lib/langinfo.in.h: Likewise.
23242         * lib/locale.in.h: Likewise.
23243         * lib/math.in.h: Likewise.
23244         * lib/search.in.h: Likewise.
23245         * lib/signal.in.h: Likewise.
23246         * lib/spawn.in.h: Likewise.
23247         * lib/stdio.in.h: Likewise.
23248         * lib/stdlib.in.h: Likewise.
23249         * lib/string.in.h: Likewise.
23250         * lib/strings.in.h: Likewise.
23251         * lib/sys_file.in.h: Likewise.
23252         * lib/sys_ioctl.in.h: Likewise.
23253         * lib/sys_select.in.h: Likewise.
23254         * lib/sys_socket.in.h: Likewise.
23255         * lib/sys_stat.in.h: Likewise.
23256         * lib/sys_times.in.h: Likewise.
23257         * lib/sys_utsname.in.h: Likewise.
23258         * lib/unistd.in.h: Likewise.
23259         * lib/wchar.in.h: Likewise.
23260
23261 2010-01-20  Bruno Haible  <bruno@clisp.org>
23262
23263         Avoid duplicate -lm.
23264         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23265         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23266         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23268         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23269         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23270         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23271         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23272         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23273         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23274         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23275         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23276         Reported by Paolo Bonzini.
23277
23278 2010-01-19  Bruno Haible  <bruno@clisp.org>
23279
23280         langinfo, nl_langinfo: Relicense under LGPLv2+.
23281         * modules/langinfo (License): Change to LGPLv2+.
23282         * modules/nl_langinfo (License): Likewise.
23283         Patch by David Lutterkort <lutter@redhat.com>.
23284
23285 2010-01-19  Bruno Haible  <bruno@clisp.org>
23286
23287         Avoid compilation error with cc on OSF/1 5.1.
23288         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23289         statement, not before.
23290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23291
23292 2010-01-18  Bruno Haible  <bruno@clisp.org>
23293
23294         Avoid a link error due to the __printf__ symbol.
23295         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23296         and 2.6.x.
23297         (__format__, __printf__): Remove definitions.
23298         * lib/argp-fmtstream.h: Likewise.
23299         * lib/argp.h: Likewise.
23300         * lib/error.h: Likewise.
23301         * lib/vasnprintf.h: Likewise.
23302         * lib/xprintf.h: Likewise.
23303         * lib/xvasprintf.h: Likewise.
23304         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23305
23306 2010-01-18  Bruno Haible  <bruno@clisp.org>
23307
23308         Tests for module 'tanl'.
23309         * modules/tanl-tests: New file.
23310         * tests/test-tanl.c: New file.
23311
23312         Tests for module 'sqrtl'.
23313         * modules/sqrtl-tests: New file.
23314         * tests/test-sqrtl.c: New file.
23315
23316         Tests for module 'sinl'.
23317         * modules/sinl-tests: New file.
23318         * tests/test-sinl.c: New file.
23319
23320         Tests for module 'logl'.
23321         * modules/logl-tests: New file.
23322         * tests/test-logl.c: New file.
23323
23324         Tests for module 'expl'.
23325         * modules/expl-tests: New file.
23326         * tests/test-expl.c: New file.
23327
23328         Tests for module 'cosl'.
23329         * modules/cosl-tests: New file.
23330         * tests/test-cosl.c: New file.
23331
23332         Tests for module 'atanl'.
23333         * modules/atanl-tests: New file.
23334         * tests/test-atanl.c: New file.
23335
23336         Tests for module 'asinl'.
23337         * modules/asinl-tests: New file.
23338         * tests/test-asinl.c: New file.
23339
23340         Tests for module 'acosl'.
23341         * modules/acosl-tests: New file.
23342         * tests/test-acosl.c: New file.
23343
23344         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23345         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23346         tanl): Use the standard gnulib idiom.
23347         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23348         * lib/sinl.c: Likewise.
23349         * lib/tanl.c: Don't include trigl.c.
23350         (kernel_tanl): Make static.
23351         * lib/sincosl.c: Include trigl.h first.
23352         * lib/trigl.c: Likewise.
23353         * m4/acosl.m4: New file.
23354         * m4/asinl.m4: New file.
23355         * m4/atanl.m4: New file.
23356         * m4/cosl.m4: New file.
23357         * m4/expl.m4: New file.
23358         * m4/logl.m4: New file.
23359         * m4/sinl.m4: New file.
23360         * m4/sqrtl.m4: New file.
23361         * m4/tanl.m4: New file.
23362         * m4/mathl.m4: Remove file.
23363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23364         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23365         Don't initialize GNULIB_MATHL.
23366         * modules/acosl: New file.
23367         * modules/asinl: New file.
23368         * modules/atanl: New file.
23369         * modules/cosl: New file.
23370         * modules/expl: New file.
23371         * modules/logl: New file.
23372         * modules/sinl: New file.
23373         * modules/sqrtl: New file.
23374         * modules/tanl: New file.
23375         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23376         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23377         substitute GNULIB_MATHL.
23378         * modules/mathl: Rewritten.
23379         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23380         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23381         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23382         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23383         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23384         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23385         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23386         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23387         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23388
23389 2010-01-18  Bruno Haible  <bruno@clisp.org>
23390
23391         sqrt: Make gl_FUNC_SQRT requirable.
23392         * m4/sqrt.m4: New file.
23393         * modules/sqrt (Files): Add it.
23394         (configure.ac): Invoke gl_FUNC_SQRT.
23395
23396 2010-01-18  Bruno Haible  <bruno@clisp.org>
23397
23398         New modules for common <math.h> functions.
23399         * m4/mathfunc.m4: New file.
23400         * modules/acos: New file.
23401         * modules/asin: New file.
23402         * modules/atan: New file.
23403         * modules/atan2: New file.
23404         * modules/cbrt: New file.
23405         * modules/copysign: New file.
23406         * modules/cos: New file.
23407         * modules/cosh: New file.
23408         * modules/erf: New file.
23409         * modules/erfc: New file.
23410         * modules/exp: New file.
23411         * modules/fabs: New file.
23412         * modules/fmod: New file.
23413         * modules/hypot: New file.
23414         * modules/j0: New file.
23415         * modules/j1: New file.
23416         * modules/jn: New file.
23417         * modules/ldexp: New file.
23418         * modules/lgamma: New file.
23419         * modules/log: New file.
23420         * modules/log10: New file.
23421         * modules/log1p: New file.
23422         * modules/logb: New file.
23423         * modules/modf: New file.
23424         * modules/nextafter: New file.
23425         * modules/pow: New file.
23426         * modules/remainder: New file.
23427         * modules/rint: New file.
23428         * modules/sin: New file.
23429         * modules/sinh: New file.
23430         * modules/sqrt: New file.
23431         * modules/tan: New file.
23432         * modules/tanh: New file.
23433         * modules/y0: New file.
23434         * modules/y1: New file.
23435         * modules/yn: New file.
23436         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23437         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23438         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23439         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23440         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23441         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23442         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23443         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23444         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23445         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23446         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23447         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23448         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23449         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23450         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23451         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23452         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23453         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23454         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23455         * doc/posix-functions/log.texi: Mention the 'log' module.
23456         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23457         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23458         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23459         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23460         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23461         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23462         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23463         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23464         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23465         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23466         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23467         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23468         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
23469         * doc/posix-functions/y0.texi: Mention the 'y0' module.
23470         * doc/posix-functions/y1.texi: Mention the 'y1' module.
23471         * doc/posix-functions/yn.texi: Mention the 'yn' module.
23472
23473 2010-01-18  Jim Meyering  <meyering@redhat.com>
23474
23475         ignore-value: relax license to LGPLv2+
23476         * modules/ignore-value (License): Relax to LGPLv2+.
23477
23478         getdate: don't leak when TZ contains two or more '"'s
23479         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
23480         double quote in TZ after the first one.
23481
23482         readtokens: do not leak internal token_lengths buffer
23483         * lib/readtokens.c (readtokens): Free the local, lengths,
23484         when the supplied "token_lengths" parameter is NULL.
23485
23486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23487
23488         Fix a couple of missing LIBTHREAD link failures on AIX.
23489         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
23490         $(LIBTHREAD).
23491         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
23492
23493         Link test-poll against INET_PTON_LIB.
23494         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
23495         for inet_pton on Solaris 10.
23496
23497 2010-01-17  Bruno Haible  <bruno@clisp.org>
23498
23499         unistdio/*-sprintf: Fix typo in module description.
23500         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
23501         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
23502         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
23503         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
23504         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
23505         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
23506         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
23507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23508
23509 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23510
23511         gnulib-tool: fix filelist for AIX, HP-UX ksh.
23512         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
23513         variables in shell case patterns, for AIX and HP-UX ksh.
23514
23515         Split large sed scripts, for HP-UX sed.
23516         * modules/stdio: Split sed scripts around 50 sed commands,
23517         to avoid HP-UX limit of 99 commands, in the near future.
23518         * modules/string: Likewise.
23519         * modules/unistd: Likewise.
23520
23521         gnulib-tool: avoid writing in the current directory.
23522         * gnulib-tool (func_emit_lib_Makefile_am)
23523         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
23524         not in the current directory, so concurrent gnulib-tool
23525         instances do not interfere.
23526
23527 2010-01-16  Jim Meyering  <meyering@redhat.com>
23528
23529         doc: update users.txt
23530         * users.txt: Add grep.
23531         (diffutils, gzip): Update URLs.
23532
23533 2010-01-12  Bruno Haible  <bruno@clisp.org>
23534
23535         posix_spawn: Avoid test failure on Cygwin.
23536         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
23537         characters.
23538         Reported by Simon Josefsson.
23539
23540 2010-01-12  Bruno Haible  <bruno@clisp.org>
23541
23542         * tests/test-cond.c (main): When skipping the test, show the reason.
23543
23544 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23545
23546         * lib/striconv.c (str_cd_iconv): Avoid if before free.
23547
23548 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23549
23550         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
23551         VC_LIST_ALWAYS_EXCLUDE_REGEX.
23552
23553 2010-01-12  Eric Blake  <ebb9@byu.net>
23554
23555         build: guarantee AS_VAR_IF
23556         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
23557         (gl_AS_VAR_IF): Move...
23558         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
23559         Reported by Simon Josefsson.
23560
23561 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23562
23563         * lib/stdio.in.h: Fix typo.
23564
23565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23566
23567         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
23568         libgpg-error.
23569
23570 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23571
23572         * tests/test-xalloc-die.sh: Use $EXEEXT.
23573
23574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
23575             Bruno Haible  <bruno@clisp.org>
23576
23577         getlogin, getlogin_r: Avoid test failure.
23578         * tests/test-getlogin.c: Include <stdio.h>.
23579         (main): Skip the test when the function fails because stdin is not a
23580         tty.
23581         * tests/test-getlogin_r.c: Include <stdio.h>.
23582         (main): Skip the test when the function fails because stdin is not a
23583         tty.
23584
23585 2010-01-11  Eric Blake  <ebb9@byu.net>
23586
23587         tests: avoid more large file warnings
23588         * tests/test-fflush.c: Avoid warning about ftell use.
23589         * tests/test-fseek.c: Avoid warning about fseek use.
23590
23591 2010-01-10  Bruno Haible  <bruno@clisp.org>
23592
23593         nproc: Work better on Linux when /proc and /sys are not mounted.
23594         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
23595         as lower bound when, on glibc/Linux systems,
23596         sysconf (_SC_NPROCESSORS_CONF) returns 1.
23597         Suggested by PĂ¡draig Brady <P@draigbrady.com>.
23598         Reported by Dmitry V. Levin <ldv@altlinux.org>.
23599
23600         nproc: Refactor.
23601         * lib/nproc.c (num_processors_via_affinity_mask): New function,
23602         extracted from num_processors.
23603         (num_processors): Call it.
23604
23605 2010-01-11  Jim Meyering  <meyering@redhat.com>
23606
23607         utimecmp: avoid new warning from upcoming gcc-4.5.0
23608         * lib/utimecmp.c (BILLION): Define using #define rather than an
23609         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
23610
23611 2010-01-11  Eric Blake  <ebb9@byu.net>
23612
23613         math: add portability warnings for classification macros
23614         * modules/math (Depends-on): Add warn-on-use.
23615         (Makefile.am): Provide new substitutions.
23616         * m4/math_h.m4 (gl_MATH_H): Require inline.
23617         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
23618         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
23619         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
23620         implement warnings.
23621
23622         unistd: warn on use of environ without module
23623         * modules/unistd (Depends-on): Add warn-on-use.
23624         (Makefile.am): Provide new substitutions.
23625         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
23626         * lib/unistd.in.h (environ): Wrap with a warning helper function.
23627
23628         stdio: warn on suspicious uses
23629         * modules/stdio (Depends-on): Add warn-on-use.
23630         (Makefile.am): Provide new substitutions.
23631         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
23632         fseeko.
23633         * lib/stdio.in.h (gets): Always warn on use.
23634         (fseek, ftell): Adjust when warnings are issued, and honor
23635         _GL_NO_LARGE_FILES as a way to silence the warning.
23636         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
23637         any warning about large file offsets.
23638         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
23639         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
23640         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
23641         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
23642         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
23643         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
23644         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
23645         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
23646
23647         warn-on-use: new module
23648         * modules/warn-on-use: New file.
23649         * build-aux/warn-on-use.h: Likewise.
23650         * m4/warn-on-use.m4: Likewise.
23651         * MODULES.html.sh (Support for building): Mention it.
23652
23653 2010-01-10  Bruno Haible  <bruno@clisp.org>
23654
23655         Tests for module 'unistr/u32-strdup'.
23656         * modules/unistr/u32-strdup-tests: New file.
23657         * tests/unistr/test-u32-strdup.c: New file.
23658
23659         Tests for module 'unistr/u16-strdup'.
23660         * modules/unistr/u16-strdup-tests: New file.
23661         * tests/unistr/test-u16-strdup.c: New file.
23662
23663         Tests for module 'unistr/u8-strdup'.
23664         * modules/unistr/u8-strdup-tests: New file.
23665         * tests/unistr/test-u8-strdup.c: New file.
23666         * tests/unistr/test-strdup.h: New file.
23667
23668         Tests for module 'unistr/u32-strncmp'.
23669         * modules/unistr/u32-strncmp-tests: New file.
23670         * tests/unistr/test-u32-strncmp.c: New file.
23671
23672         Tests for module 'unistr/u16-strncmp'.
23673         * modules/unistr/u16-strncmp-tests: New file.
23674         * tests/unistr/test-u16-strncmp.c: New file.
23675
23676         Tests for module 'unistr/u8-strncmp'.
23677         * modules/unistr/u8-strncmp-tests: New file.
23678         * tests/unistr/test-u8-strncmp.c: New file.
23679         * tests/unistr/test-strncmp.h: New file.
23680
23681         Tests for module 'unistr/u32-strcoll'.
23682         * modules/unistr/u32-strcoll-tests: New file.
23683         * tests/unistr/test-u32-strcoll.c: New file.
23684
23685         Tests for module 'unistr/u16-strcoll'.
23686         * modules/unistr/u16-strcoll-tests: New file.
23687         * tests/unistr/test-u16-strcoll.c: New file.
23688
23689         Tests for module 'unistr/u8-strcoll'.
23690         * modules/unistr/u8-strcoll-tests: New file.
23691         * tests/unistr/test-u8-strcoll.c: New file.
23692
23693         Tests for module 'unistr/u32-strcmp'.
23694         * modules/unistr/u32-strcmp-tests: New file.
23695         * tests/unistr/test-u32-strcmp.c: New file.
23696         * tests/unistr/test-u32-strcmp.h: New file.
23697
23698         Tests for module 'unistr/u16-strcmp'.
23699         * modules/unistr/u16-strcmp-tests: New file.
23700         * tests/unistr/test-u16-strcmp.c: New file.
23701         * tests/unistr/test-u16-strcmp.h: New file.
23702
23703         Tests for module 'unistr/u8-strcmp'.
23704         * modules/unistr/u8-strcmp-tests: New file.
23705         * tests/unistr/test-u8-strcmp.c: New file.
23706         * tests/unistr/test-u8-strcmp.h: New file.
23707         * tests/unistr/test-strcmp.h: New file.
23708
23709         Tests for module 'unistr/u32-strncat'.
23710         * modules/unistr/u32-strncat-tests: New file.
23711         * tests/unistr/test-u32-strncat.c: New file.
23712
23713         Tests for module 'unistr/u16-strncat'.
23714         * modules/unistr/u16-strncat-tests: New file.
23715         * tests/unistr/test-u16-strncat.c: New file.
23716
23717         Tests for module 'unistr/u8-strncat'.
23718         * modules/unistr/u8-strncat-tests: New file.
23719         * tests/unistr/test-u8-strncat.c: New file.
23720         * tests/unistr/test-strncat.h: New file.
23721
23722         Tests for module 'unistr/u32-strcat'.
23723         * modules/unistr/u32-strcat-tests: New file.
23724         * tests/unistr/test-u32-strcat.c: New file.
23725
23726         Tests for module 'unistr/u16-strcat'.
23727         * modules/unistr/u16-strcat-tests: New file.
23728         * tests/unistr/test-u16-strcat.c: New file.
23729
23730         Tests for module 'unistr/u8-strcat'.
23731         * modules/unistr/u8-strcat-tests: New file.
23732         * tests/unistr/test-u8-strcat.c: New file.
23733         * tests/unistr/test-strcat.h: New file.
23734
23735         Tests for module 'unistr/u32-stpncpy'.
23736         * modules/unistr/u32-stpncpy-tests: New file.
23737         * tests/unistr/test-u32-stpncpy.c: New file.
23738
23739         Tests for module 'unistr/u16-stpncpy'.
23740         * modules/unistr/u16-stpncpy-tests: New file.
23741         * tests/unistr/test-u16-stpncpy.c: New file.
23742
23743         Tests for module 'unistr/u8-stpncpy'.
23744         * modules/unistr/u8-stpncpy-tests: New file.
23745         * tests/unistr/test-u8-stpncpy.c: New file.
23746         * tests/unistr/test-stpncpy.h: New file.
23747
23748         Tests for module 'unistr/u32-strncpy'.
23749         * modules/unistr/u32-strncpy-tests: New file.
23750         * tests/unistr/test-u32-strncpy.c: New file.
23751
23752         Tests for module 'unistr/u16-strncpy'.
23753         * modules/unistr/u16-strncpy-tests: New file.
23754         * tests/unistr/test-u16-strncpy.c: New file.
23755
23756         Tests for module 'unistr/u8-strncpy'.
23757         * modules/unistr/u8-strncpy-tests: New file.
23758         * tests/unistr/test-u8-strncpy.c: New file.
23759         * tests/unistr/test-strncpy.h: New file.
23760
23761         Tests for module 'unistr/u32-stpcpy'.
23762         * modules/unistr/u32-stpcpy-tests: New file.
23763         * tests/unistr/test-u32-stpcpy.c: New file.
23764
23765         Tests for module 'unistr/u16-stpcpy'.
23766         * modules/unistr/u16-stpcpy-tests: New file.
23767         * tests/unistr/test-u16-stpcpy.c: New file.
23768
23769         Tests for module 'unistr/u8-stpcpy'.
23770         * modules/unistr/u8-stpcpy-tests: New file.
23771         * tests/unistr/test-u8-stpcpy.c: New file.
23772         * tests/unistr/test-stpcpy.h: New file.
23773
23774         Tests for module 'unistr/u32-strcpy'.
23775         * modules/unistr/u32-strcpy-tests: New file.
23776         * tests/unistr/test-u32-strcpy.c: New file.
23777
23778         Tests for module 'unistr/u16-strcpy'.
23779         * modules/unistr/u16-strcpy-tests: New file.
23780         * tests/unistr/test-u16-strcpy.c: New file.
23781
23782         Tests for module 'unistr/u8-strcpy'.
23783         * modules/unistr/u8-strcpy-tests: New file.
23784         * tests/unistr/test-u8-strcpy.c: New file.
23785         * tests/unistr/test-strcpy.h: New file.
23786
23787         Tests for module 'unistr/u32-strnlen'.
23788         * modules/unistr/u32-strnlen-tests: New file.
23789         * tests/unistr/test-u32-strnlen.c: New file.
23790
23791         Tests for module 'unistr/u16-strnlen'.
23792         * modules/unistr/u16-strnlen-tests: New file.
23793         * tests/unistr/test-u16-strnlen.c: New file.
23794
23795         Tests for module 'unistr/u8-strnlen'.
23796         * modules/unistr/u8-strnlen-tests: New file.
23797         * tests/unistr/test-u8-strnlen.c: New file.
23798         * tests/unistr/test-strnlen.h: New file.
23799
23800         Tests for module 'unistr/u32-strlen'.
23801         * modules/unistr/u32-strlen-tests: New file.
23802         * tests/unistr/test-u32-strlen.c: New file.
23803
23804         Tests for module 'unistr/u16-strlen'.
23805         * modules/unistr/u16-strlen-tests: New file.
23806         * tests/unistr/test-u16-strlen.c: New file.
23807
23808         Tests for module 'unistr/u8-strlen'.
23809         * modules/unistr/u8-strlen-tests: New file.
23810         * tests/unistr/test-u8-strlen.c: New file.
23811
23812         Tests for module 'unistr/u32-prev'.
23813         * modules/unistr/u32-prev-tests: New file.
23814         * tests/unistr/test-u32-prev.c: New file.
23815
23816         Tests for module 'unistr/u16-prev'.
23817         * modules/unistr/u16-prev-tests: New file.
23818         * tests/unistr/test-u16-prev.c: New file.
23819
23820         Tests for module 'unistr/u8-prev'.
23821         * modules/unistr/u8-prev-tests: New file.
23822         * tests/unistr/test-u8-prev.c: New file.
23823
23824         Tests for module 'unistr/u32-next'.
23825         * modules/unistr/u32-next-tests: New file.
23826         * tests/unistr/test-u32-next.c: New file.
23827
23828         Tests for module 'unistr/u16-next'.
23829         * modules/unistr/u16-next-tests: New file.
23830         * tests/unistr/test-u16-next.c: New file.
23831
23832         Tests for module 'unistr/u8-next'.
23833         * modules/unistr/u8-next-tests: New file.
23834         * tests/unistr/test-u8-next.c: New file.
23835
23836         Tests for module 'unistr/u32-strmbtouc'.
23837         * modules/unistr/u32-strmbtouc-tests: New file.
23838         * tests/unistr/test-u32-strmbtouc.c: New file.
23839
23840         Tests for module 'unistr/u16-strmbtouc'.
23841         * modules/unistr/u16-strmbtouc-tests: New file.
23842         * tests/unistr/test-u16-strmbtouc.c: New file.
23843
23844         Tests for module 'unistr/u8-strmbtouc'.
23845         * modules/unistr/u8-strmbtouc-tests: New file.
23846         * tests/unistr/test-u8-strmbtouc.c: New file.
23847
23848         Tests for module 'unistr/u32-strmblen'.
23849         * modules/unistr/u32-strmblen-tests: New file.
23850         * tests/unistr/test-u32-strmblen.c: New file.
23851
23852         Tests for module 'unistr/u16-strmblen'.
23853         * modules/unistr/u16-strmblen-tests: New file.
23854         * tests/unistr/test-u16-strmblen.c: New file.
23855
23856         Tests for module 'unistr/u8-strmblen'.
23857         * modules/unistr/u8-strmblen-tests: New file.
23858         * tests/unistr/test-u8-strmblen.c: New file.
23859
23860         Tests for module 'unistr/u32-cpy-alloc'.
23861         * modules/unistr/u32-cpy-alloc-tests: New file.
23862         * tests/unistr/test-u32-cpy-alloc.c: New file.
23863
23864         Tests for module 'unistr/u16-cpy-alloc'.
23865         * modules/unistr/u16-cpy-alloc-tests: New file.
23866         * tests/unistr/test-u16-cpy-alloc.c: New file.
23867
23868         Tests for module 'unistr/u8-cpy-alloc'.
23869         * modules/unistr/u8-cpy-alloc-tests: New file.
23870         * tests/unistr/test-u8-cpy-alloc.c: New file.
23871         * tests/unistr/test-cpy-alloc.h: New file.
23872
23873         Tests for module 'unistr/u32-mbsnlen'.
23874         * modules/unistr/u32-mbsnlen-tests: New file.
23875         * tests/unistr/test-u32-mbsnlen.c: New file.
23876
23877         Tests for module 'unistr/u16-mbsnlen'.
23878         * modules/unistr/u16-mbsnlen-tests: New file.
23879         * tests/unistr/test-u16-mbsnlen.c: New file.
23880
23881         Tests for module 'unistr/u8-mbsnlen'.
23882         * modules/unistr/u8-mbsnlen-tests: New file.
23883         * tests/unistr/test-u8-mbsnlen.c: New file.
23884
23885         Tests for module 'unistr/u32-chr'.
23886         * modules/unistr/u32-chr-tests: New file.
23887         * tests/unistr/test-u32-chr.c: New file.
23888
23889         Tests for module 'unistr/u16-chr'.
23890         * modules/unistr/u16-chr-tests: New file.
23891         * tests/unistr/test-u16-chr.c: New file.
23892
23893         Tests for module 'unistr/u8-chr'.
23894         * modules/unistr/u8-chr-tests: New file.
23895         * tests/unistr/test-u8-chr.c: New file.
23896         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
23897
23898         Tests for module 'unistr/u32-cmp2'.
23899         * modules/unistr/u32-cmp2-tests: New file.
23900         * tests/unistr/test-u32-cmp2.c: New file.
23901
23902         Tests for module 'unistr/u16-cmp2'.
23903         * modules/unistr/u16-cmp2-tests: New file.
23904         * tests/unistr/test-u16-cmp2.c: New file.
23905
23906         Tests for module 'unistr/u8-cmp2'.
23907         * modules/unistr/u8-cmp2-tests: New file.
23908         * tests/unistr/test-u8-cmp2.c: New file.
23909         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
23910
23911         Tests for module 'unistr/u32-cmp'.
23912         * modules/unistr/u32-cmp-tests: New file.
23913         * tests/unistr/test-u32-cmp.c: New file.
23914
23915         Tests for module 'unistr/u16-cmp'.
23916         * modules/unistr/u16-cmp-tests: New file.
23917         * tests/unistr/test-u16-cmp.c: New file.
23918
23919         Tests for module 'unistr/u8-cmp'.
23920         * modules/unistr/u8-cmp-tests: New file.
23921         * tests/unistr/test-u8-cmp.c: New file.
23922         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
23923
23924         Tests for module 'unistr/u32-set'.
23925         * modules/unistr/u32-set-tests: New file.
23926         * tests/unistr/test-u32-set.c: New file.
23927
23928         Tests for module 'unistr/u16-set'.
23929         * modules/unistr/u16-set-tests: New file.
23930         * tests/unistr/test-u16-set.c: New file.
23931
23932         Tests for module 'unistr/u8-set'.
23933         * modules/unistr/u8-set-tests: New file.
23934         * tests/unistr/test-u8-set.c: New file.
23935         * tests/unistr/test-set.h: New file.
23936
23937         Tests for module 'unistr/u32-move'.
23938         * modules/unistr/u32-move-tests: New file.
23939         * tests/unistr/test-u32-move.c: New file.
23940
23941         Tests for module 'unistr/u16-move'.
23942         * modules/unistr/u16-move-tests: New file.
23943         * tests/unistr/test-u16-move.c: New file.
23944
23945         Tests for module 'unistr/u8-move'.
23946         * modules/unistr/u8-move-tests: New file.
23947         * tests/unistr/test-u8-move.c: New file.
23948         * tests/unistr/test-move.h: New file.
23949
23950         Tests for module 'unistr/u32-cpy'.
23951         * modules/unistr/u32-cpy-tests: New file.
23952         * tests/unistr/test-u32-cpy.c: New file.
23953
23954         Tests for module 'unistr/u16-cpy'.
23955         * modules/unistr/u16-cpy-tests: New file.
23956         * tests/unistr/test-u16-cpy.c: New file.
23957
23958         Tests for module 'unistr/u8-cpy'.
23959         * modules/unistr/u8-cpy-tests: New file.
23960         * tests/unistr/test-u8-cpy.c: New file.
23961         * tests/unistr/test-cpy.h: New file.
23962
23963 2010-01-09  Bruno Haible  <bruno@clisp.org>
23964
23965         Tests for module 'unistr/u32-uctomb'.
23966         * modules/unistr/u32-uctomb-tests: New file.
23967         * tests/unistr/test-u32-uctomb.c: New file.
23968
23969         Tests for module 'unistr/u16-uctomb'.
23970         * modules/unistr/u16-uctomb-tests: New file.
23971         * tests/unistr/test-u16-uctomb.c: New file.
23972
23973         Tests for module 'unistr/u8-uctomb'.
23974         * modules/unistr/u8-uctomb-tests: New file.
23975         * tests/unistr/test-u8-uctomb.c: New file.
23976
23977         Tests for module 'unistr/u32-mbtoucr'.
23978         * modules/unistr/u32-mbtoucr-tests: New file.
23979         * tests/unistr/test-u32-mbtoucr.c: New file.
23980
23981         Tests for module 'unistr/u16-mbtoucr'.
23982         * modules/unistr/u16-mbtoucr-tests: New file.
23983         * tests/unistr/test-u16-mbtoucr.c: New file.
23984
23985         Tests for module 'unistr/u8-mbtoucr'.
23986         * modules/unistr/u8-mbtoucr-tests: New file.
23987         * tests/unistr/test-u8-mbtoucr.c: New file.
23988
23989         Tests for module 'unistr/u32-mbtouc'.
23990         * modules/unistr/u32-mbtouc-tests: New file.
23991         * tests/unistr/test-u32-mbtouc.c: New file.
23992
23993         Tests for module 'unistr/u16-mbtouc'.
23994         * modules/unistr/u16-mbtouc-tests: New file.
23995         * tests/unistr/test-u16-mbtouc.c: New file.
23996
23997         Tests for module 'unistr/u8-mbtouc'.
23998         * modules/unistr/u8-mbtouc-tests: New file.
23999         * tests/unistr/test-u8-mbtouc.c: New file.
24000
24001         Tests for module 'unistr/u32-mbtouc-unsafe'.
24002         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24003         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24004         * tests/unistr/test-u32-mbtouc.h: New file.
24005
24006         Tests for module 'unistr/u16-mbtouc-unsafe'.
24007         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24008         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24009         * tests/unistr/test-u16-mbtouc.h: New file.
24010
24011         Tests for module 'unistr/u8-mbtouc-unsafe'.
24012         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24013         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24014         * tests/unistr/test-u8-mbtouc.h: New file.
24015
24016         Tests for module 'unistr/u32-mblen'.
24017         * modules/unistr/u32-mblen-tests: New file.
24018         * tests/unistr/test-u32-mblen.c: New file.
24019
24020         Tests for module 'unistr/u16-mblen'.
24021         * modules/unistr/u16-mblen-tests: New file.
24022         * tests/unistr/test-u16-mblen.c: New file.
24023
24024         Tests for module 'unistr/u8-mblen'.
24025         * modules/unistr/u8-mblen-tests: New file.
24026         * tests/unistr/test-u8-mblen.c: New file.
24027
24028         Tests for module 'unistr/u32-to-u16'.
24029         * modules/unistr/u32-to-u16-tests: New file.
24030         * tests/unistr/test-u32-to-u16.c: New file.
24031
24032         Tests for module 'unistr/u32-to-u8'.
24033         * modules/unistr/u32-to-u8-tests: New file.
24034         * tests/unistr/test-u32-to-u8.c: New file.
24035
24036         Tests for module 'unistr/u16-to-u32'.
24037         * modules/unistr/u16-to-u32-tests: New file.
24038         * tests/unistr/test-u16-to-u32.c: New file.
24039
24040         Tests for module 'unistr/u16-to-u8'.
24041         * modules/unistr/u16-to-u8-tests: New file.
24042         * tests/unistr/test-u16-to-u8.c: New file.
24043
24044         Tests for module 'unistr/u8-to-u32'.
24045         * modules/unistr/u8-to-u32-tests: New file.
24046         * tests/unistr/test-u8-to-u32.c: New file.
24047
24048         Tests for module 'unistr/u8-to-u16'.
24049         * modules/unistr/u8-to-u16-tests: New file.
24050         * tests/unistr/test-u8-to-u16.c: New file.
24051
24052         Tests for module 'unistr/u32-check'.
24053         * modules/unistr/u32-check-tests: New file.
24054         * tests/unistr/test-u32-check.c: New file.
24055
24056         Tests for module 'unistr/u16-check'.
24057         * modules/unistr/u16-check-tests: New file.
24058         * tests/unistr/test-u16-check.c: New file.
24059
24060         Tests for module 'unistr/u8-check'.
24061         * modules/unistr/u8-check-tests: New file.
24062         * tests/unistr/test-u8-check.c: New file.
24063
24064         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24065         (category_equals): New function.
24066         (main): Add more tests.
24067         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24068
24069         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24070
24071 2010-01-10  Bruno Haible  <bruno@clisp.org>
24072
24073         unistr/u*-strcoll: Try harder to distinguish different strings.
24074         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24075         compare s1 and s2 to see if they are different.
24076
24077 2010-01-10  Bruno Haible  <bruno@clisp.org>
24078
24079         unistr/u*-stpncpy: Fix the return value.
24080         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24081         description of the return value consistent with stpncpy in glibc.
24082         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24083         written non-NUL unit.
24084
24085 2010-01-10  Bruno Haible  <bruno@clisp.org>
24086
24087         unistr/u*-next: Add missing dependencies.
24088         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24089         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24090         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24091
24092 2010-01-10  Bruno Haible  <bruno@clisp.org>
24093
24094         unistr/u8-mbsnlen: Fix return value for incomplete character.
24095         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24096         u8_mblen.
24097         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24098         Remove unistr/u8-mblen.
24099         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24100         u16_mblen.
24101         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24102         Remove unistr/u16-mblen.
24103
24104 2010-01-10  Bruno Haible  <bruno@clisp.org>
24105
24106         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24107         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24108         Reported by Brian Gough <bjg@gnu.org> and
24109         Chris Clayton <chris2553@googlemail.com> via
24110         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24111
24112 2010-01-09  Bruno Haible  <bruno@clisp.org>
24113
24114         unistr/u16-to-u32: Reject invalid input.
24115         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24116         u16_mbtouc.
24117         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24118         Remove unistr/u16-mbtouc.
24119
24120         unistr/u16-to-u8: Reject invalid input.
24121         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24122         u16_mbtouc.
24123         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24124         Remove unistr/u16-mbtouc.
24125
24126         unistr/u8-to-u32: Reject invalid input.
24127         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24128         u8_mbtouc.
24129         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24130         Remove unistr/u8-mbtouc.
24131
24132         unistr/u8-to-u16: Reject invalid input.
24133         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24134         u8_mbtouc.
24135         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24136         Remove unistr/u8-mbtouc.
24137
24138 2010-01-09  Bruno Haible  <bruno@clisp.org>
24139
24140         Tests for module 'getlogin'.
24141         * modules/getlogin-tests: New file.
24142         * tests/test-getlogin.c: New file.
24143
24144         New module 'getlogin'.
24145         * lib/unistd.in.h (getlogin): New declaration.
24146         * lib/getlogin.c: New file.
24147         * m4/getlogin.m4: New file.
24148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24149         HAVE_GETLOGIN.
24150         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24151         HAVE_GETLOGIN.
24152         * modules/getlogin: New file.
24153         * doc/posix-functions/getlogin.texi: Mention the new module.
24154         Reported by John W. Eaton <jwe@gnu.org>.
24155
24156 2010-01-09  Bruno Haible  <bruno@clisp.org>
24157
24158         getlogin_r: Support for native Windows.
24159         * lib/getlogin_r.c: Include <windows.h>
24160         (getlogin_r): Implement for native Windows.
24161         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24162         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24163         via John W. Eaton <jwe@gnu.org>.
24164
24165 2010-01-09  Bruno Haible  <bruno@clisp.org>
24166
24167         getlogin_r: Small fixes.
24168         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24169         succeeds.
24170         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24171         before testing whether getlogin_r is declared. No need to set
24172         HAVE_DECL_GETLOGIN_R to 1.
24173         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24174
24175 2010-01-09  Bruno Haible  <bruno@clisp.org>
24176
24177         * lib/unistd.in.h (getlogin_r): Add comment.
24178
24179 2010-01-09  Bruno Haible  <bruno@clisp.org>
24180
24181         Tests for module 'getlogin_r'.
24182         * modules/getlogin_r-tests: New file.
24183         * tests/test-getlogin_r.c: New file.
24184
24185 2010-01-09  Jim Meyering  <meyering@redhat.com>
24186
24187         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24188         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24189         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24190
24191 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24192
24193         * lib/dup2.c (rpl_dup2): Improve comment.
24194
24195 2010-01-08  Eric Blake  <ebb9@byu.net>
24196
24197         maint.mk: allow packages to add makefile @@ exceptions
24198         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24199         (sc_makefile_check): Rename...
24200         (sc_makefile_at_at_check): ...to this, and use hook.
24201
24202         dup2: work around mingw bug
24203         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24204         Reported by Simon Josefsson.
24205
24206 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24207
24208         glob: Fix C++ compilation.
24209         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24210         C++.
24211
24212 2010-01-07  Bruno Haible  <bruno@clisp.org>
24213
24214         Fix indentation of wctype.in.h, broken since 2007-01-06.
24215         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24216
24217 2010-01-07  Bruno Haible  <bruno@clisp.org>
24218
24219         mbslen: Avoid collision with system function.
24220         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24221         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24222         * m4/mbslen.m4: New file.
24223         * modules/mbslen (Files): Add it.
24224         (configure.ac): Invoke gl_MBSLEN.
24225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24226         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24227         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24228         via Ian Beckwith <ianb@erislabs.net>.
24229
24230 2010-01-07  Bruno Haible  <bruno@clisp.org>
24231
24232         dirent: Document the last fix.
24233         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24234
24235 2010-01-07  Bruno Haible  <bruno@clisp.org>
24236
24237         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24238         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24239         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24240         va_list are defined.
24241         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24242         Reported by Eric Blake.
24243
24244 2010-01-07  Bruno Haible  <bruno@clisp.org>
24245
24246         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24247         * modules/xlist (Depends-on): Add 'list',
24248         * modules/xoset (Depends-on): Add 'oset'.
24249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24250
24251 2010-01-07  Bruno Haible  <bruno@clisp.org>
24252
24253         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24254         * doc/posix-functions/strncasecmp.texi: Likewise.
24255
24256 2010-01-07  Bruno Haible  <bruno@clisp.org>
24257
24258         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24259
24260 2010-01-07  John W. Eaton  <jwe@octave.org>
24261
24262         wctype: allow C++ use
24263         * lib/wctype.in.h: Add extern "C" block for C++.
24264
24265 2010-01-06  Eric Blake  <ebb9@byu.net>
24266
24267         maint.mk: detect incorrect GFDL usage
24268         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24269
24270 2010-01-06  Jim Meyering  <meyering@redhat.com>
24271         and Eric Blake  <ebb9@byu.net>
24272
24273         maint.mk: ignore multi-line copyright in NEWS
24274         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24275
24276 2010-01-06  Eric Blake  <ebb9@byu.net>
24277
24278         select: add missing dependency
24279         * modules/select-tests (Depends-on): Move sockets dependency...
24280         * modules/select (Depends-on): ...here.
24281         Reported by Ian Beckwith.
24282
24283         doc: regenerate INSTALL
24284         * doc/INSTALL: Reflect recent autoconf update.
24285         * doc/INSTALL.ISO: Likewise.
24286         * doc/INSTALL.UTF-8: Likewise.
24287
24288         pread: fix compilation on glibc
24289         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24290         Reported by Ralf Wildenhues.
24291
24292         dirent: fix test failure
24293         * lib/dirent.in.h (includes): Guarantee ino_t.
24294         Reported by Ralf Wildenhues.
24295
24296 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24297
24298         linkat, renameat: avoid bad free
24299         * lib/at-func2.c (at_func2): Fix typo.
24300         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24301
24302 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24303
24304         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24305         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24306         to avoid failure of symlink test later.
24307
24308 2010-01-06  Eric Blake  <ebb9@byu.net>
24309
24310         stdio, unistd: guarantee ssize_t
24311         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24312         2008 are exposed when needed.
24313         * lib/stdio.in.h (includes): Likewise.
24314         Reported by Ralf Wildenhues.
24315
24316 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24317
24318         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24319         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24320         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24321
24322 2010-01-06  Jim Meyering  <meyering@redhat.com>
24323
24324         readtokens: this module *does* require xalloc.h
24325         It uses only functions that were omitted by the old syntax-check rule.
24326         * lib/readtokens.c: Include "xalloc.h" once again.
24327         * modules/readtokens (Depends-on): Add xalloc.
24328         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24329
24330 2010-01-05  Eric Blake  <ebb9@byu.net>
24331
24332         maint: support 'make announcement' from a VPATH build
24333         * top/maint.mk (announcement): Look for correct NEWS file.
24334
24335 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24336
24337         utimens (fdutimens): ignore a negative FD, per contract
24338         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24339         when we have a valid file descriptor.  Otherwise, using a brand
24340         new glibc (with just-patched futimens that now fails with EBADF)
24341         would cause this function to fail with ENOSYS.
24342         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24343         See also http://bugzilla.redhat.com/552320.
24344
24345 2010-01-05  Eric Blake  <ebb9@byu.net>
24346
24347         strcase: document what it provides
24348         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24349         gnulib module.
24350         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24351         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24352
24353 2010-01-05  Jim Meyering  <meyering@redhat.com>
24354
24355         maint: remove useless inclusions of "xalloc.h"
24356         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24357         * lib/readtokens.c: Likewise.
24358         * lib/same.c: Likewise.
24359         * modules/getloadavg (Depends-on): Remove xalloc.
24360         * modules/readtokens: Likewise.
24361         * modules/same: Likewise.
24362
24363         maint.mk: include 4 more function names in alloca.h-checking regexp
24364         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24365         regexp.  Before, we would give a false-positive (saying alloca.h
24366         is included unnecessarily) when the only uses involved omitted symbols.
24367
24368         xalloc.h: use consistent formatting
24369         * lib/xalloc.h: Move declarations to start in the first column.
24370
24371 2010-01-05  Eric Blake  <ebb9@byu.net>
24372
24373         mkdir: avoid xalloc
24374         * lib/mkdir.c (includes): Drop unused header.
24375         Reported by John W. Eaton.
24376
24377 2010-01-04  Jim Meyering  <meyering@redhat.com>
24378
24379         nl_langinfo: avoid configure-time syntax error
24380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24381         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24382         the empty string.  Don't let that provoke a shell syntax error.
24383
24384         regcomp, regexec, fnmatch: avoid array bounds read error
24385         * lib/regcomp.c (build_equiv_class): From glibc:
24386         Use only the low 24 bits of a findidx return value as an index
24387         into the weights array.  Patch by Ulrich Drepper:
24388         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24389         * lib/regexec.c (check_node_accept_bytes): Likewise.
24390         * lib/fnmatch_loop.c (FCT): Likewise.
24391
24392         regcomp: skip collseq lookup when there are no rules
24393         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24394         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24395
24396         regcomp: recognize ill-formed { } expressions
24397         * lib/regcomp.c (parse_dup_op): From glibc:
24398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24399
24400         regcomp: fix typo in comment
24401         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24402         s/satisfy/satisfies/.
24403
24404         regcomp: sync from glibc: remove dead store
24405         * lib/regcomp.c (duplicate_node_closure): Remove useless
24406         search_duplicated_node call and dead store.
24407
24408         regcomp: sync from glibc; always use nl_langinfo
24409         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24410         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24411         * modules/regex (Depends-on): Add nl_langinfo.
24412
24413 2010-01-04  Eric Blake  <ebb9@byu.net>
24414
24415         fdopendir: fix configure test
24416         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24417
24418 2010-01-01  Bruno Haible  <bruno@clisp.org>
24419
24420         wchar: Remove unused configure check.
24421         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24422
24423 2010-01-01  Eric Blake  <ebb9@byu.net>
24424
24425         headers: make check of system header explicit
24426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24427         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24428         ourselves.
24429         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24432         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24433         internals.
24434         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24435         missing.
24436         Suggested by Bruno Haible.
24437
24438 2010-01-01  Jim Meyering  <meyering@redhat.com>
24439
24440         ChangeLog: tweak to eliminate unnecessary copyright line
24441         * ChangeLog: Remove a copyright line that was mistakenly updated
24442         by today's update-copyright run.  Reported by Eric Blake.
24443
24444         test-update-copyright: don't let envvar setting cause test failure
24445         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24446
24447 2010-01-01  Bruno Haible  <bruno@clisp.org>
24448
24449         localename: Avoid gcc warning.
24450         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24451         function if it is not used.
24452
24453 2010-01-01  Jim Meyering  <meyering@redhat.com>
24454
24455         update nearly all FSF copyright year lists to include 2010
24456         Use the same procedure as for 2009, outlined in
24457         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24458
24459         version-etc: set COPYRIGHT_YEAR to 2010
24460         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24461
24462 2009-12-31  Eric Blake  <ebb9@byu.net>
24463
24464         doc: correct availability of cygwin 1.5.x getopt
24465         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24466         variables.
24467         * doc/posix-functions/opterr.texi (opterr): Likewise.
24468         * doc/posix-functions/optind.texi (optind): Likewise.
24469         * doc/posix-functions/optopt.texi (optopt): Likewise.
24470         * doc/posix-functions/tzname.texi (tzname): Likewise.
24471
24472         openat: update maintainer
24473         * modules/openat (Maintainer): Add myself.
24474
24475         utimens: avoid shadowing warning
24476         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
24477         buffers into one, to avoid shadowing, as well as avoiding a
24478         redundant stat.
24479         Reported by Jim Meyering.
24480
24481         test-dup2: avoid compiler warning
24482         * tests/test-dup2.c (is_inheritable): Only define if used.
24483
24484 2010-01-01  Bruno Haible  <bruno@clisp.org>
24485
24486         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
24487         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
24488         defined, use wctomb instead of wcrtomb.
24489
24490 2010-01-01  Bruno Haible  <bruno@clisp.org>
24491
24492         iconv: Reject native Solaris iconv.
24493         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
24494         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
24495
24496 2009-12-31  Bruno Haible  <bruno@clisp.org>
24497
24498         * tests/test-signal.c (main): Remove test of 'SIG'.
24499
24500 2009-12-31  Bruno Haible  <bruno@clisp.org>
24501
24502         spawn: Fix incomplete fix.
24503         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24504         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24505         warnings for GNULIB_POSIXCHECK again.
24506         Reported by Eric Blake.
24507
24508 2009-12-31  Bruno Haible  <bruno@clisp.org>
24509
24510         Avoid namespace pollution on glibc systems.
24511         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
24512         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24513         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
24514         glibc systems.
24515
24516 2009-12-31  Bruno Haible  <bruno@clisp.org>
24517
24518         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
24519         (gl_REPLACE_WCHAR_H): Turn into a no-op.
24520         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
24521         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
24522         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
24523         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
24524         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
24525
24526 2009-12-31  Bruno Haible  <bruno@clisp.org>
24527
24528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24529         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
24530         afterwards.
24531
24532 2009-12-31  Bruno Haible  <bruno@clisp.org>
24533
24534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
24535         SYS_UTSNAME_H.
24536
24537 2009-12-31  Bruno Haible  <bruno@clisp.org>
24538
24539         spawn: Fix misapplied patch.
24540         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
24541         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
24542         warnings for GNULIB_POSIXCHECK.
24543
24544 2009-12-31  Bruno Haible  <bruno@clisp.org>
24545
24546         times: Update after sys_times changed.
24547         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
24548         * modules/times (Files): Add it.
24549         (configure.ac): Invoke gl_FUNC_TIMES.
24550
24551 2009-12-31  Bruno Haible  <bruno@clisp.org>
24552
24553         Use AC_C_INLINE where necessary.
24554         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
24555         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24557         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
24558         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24559         * m4/mbiter.m4 (gl_MBITER): Likewise.
24560         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24562         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
24563         * modules/u64 (configure.ac): Likewise.
24564
24565 2009-12-31  Bruno Haible  <bruno@clisp.org>
24566
24567         Use AC_C_INLINE instead of module 'inline' where possible.
24568         * modules/inline (Description): Clarify purpose.
24569         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
24570         * modules/count-one-bits (Depends-on): Remove inline.
24571         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
24572         * modules/openat (Depends-on): Remove inline.
24573         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
24574         instead of depending on module 'inline'.
24575         * modules/filevercmp (Depends-on, configure.ac): Likewise.
24576         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
24577         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
24578         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
24579         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
24580         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
24581         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
24582         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
24583         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
24584         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
24585         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
24586         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
24587         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
24588         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
24589         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
24590         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
24591         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
24592         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
24593         Likewise.
24594         * modules/unictype/property-ascii-hex-digit (Depends-on,
24595         configure.ac): Likewise.
24596         * modules/unictype/property-bidi-arabic-digit (Depends-on,
24597         configure.ac): Likewise.
24598         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
24599         configure.ac): Likewise.
24600         * modules/unictype/property-bidi-block-separator (Depends-on,
24601         configure.ac): Likewise.
24602         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
24603         configure.ac): Likewise.
24604         * modules/unictype/property-bidi-common-separator (Depends-on,
24605         configure.ac): Likewise.
24606         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
24607         Likewise.
24608         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
24609         configure.ac): Likewise.
24610         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
24611         configure.ac): Likewise.
24612         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
24613         configure.ac): Likewise.
24614         * modules/unictype/property-bidi-european-digit (Depends-on,
24615         configure.ac): Likewise.
24616         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
24617         configure.ac): Likewise.
24618         * modules/unictype/property-bidi-left-to-right (Depends-on,
24619         configure.ac): Likewise.
24620         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
24621         configure.ac): Likewise.
24622         * modules/unictype/property-bidi-other-neutral (Depends-on,
24623         configure.ac): Likewise.
24624         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
24625         Likewise.
24626         * modules/unictype/property-bidi-segment-separator (Depends-on,
24627         configure.ac): Likewise.
24628         * modules/unictype/property-bidi-whitespace (Depends-on,
24629         configure.ac): Likewise.
24630         * modules/unictype/property-combining (Depends-on, configure.ac):
24631         Likewise.
24632         * modules/unictype/property-composite (Depends-on, configure.ac):
24633         Likewise.
24634         * modules/unictype/property-currency-symbol (Depends-on,
24635         configure.ac): Likewise.
24636         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
24637         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
24638         Likewise.
24639         * modules/unictype/property-default-ignorable-code-point (Depends-on,
24640         configure.ac): Likewise.
24641         * modules/unictype/property-deprecated (Depends-on, configure.ac):
24642         Likewise.
24643         * modules/unictype/property-diacritic (Depends-on, configure.ac):
24644         Likewise.
24645         * modules/unictype/property-extender (Depends-on, configure.ac):
24646         Likewise.
24647         * modules/unictype/property-format-control (Depends-on, configure.ac):
24648         Likewise.
24649         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
24650         Likewise.
24651         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
24652         Likewise.
24653         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
24654         Likewise.
24655         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
24656         Likewise.
24657         * modules/unictype/property-hyphen (Depends-on, configure.ac):
24658         Likewise.
24659         * modules/unictype/property-id-continue (Depends-on, configure.ac):
24660         Likewise.
24661         * modules/unictype/property-id-start (Depends-on, configure.ac):
24662         Likewise.
24663         * modules/unictype/property-ideographic (Depends-on, configure.ac):
24664         Likewise.
24665         * modules/unictype/property-ids-binary-operator (Depends-on,
24666         configure.ac): Likewise.
24667         * modules/unictype/property-ids-trinary-operator (Depends-on,
24668         configure.ac): Likewise.
24669         * modules/unictype/property-ignorable-control (Depends-on,
24670         configure.ac): Likewise.
24671         * modules/unictype/property-iso-control (Depends-on, configure.ac):
24672         Likewise.
24673         * modules/unictype/property-join-control (Depends-on, configure.ac):
24674         Likewise.
24675         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
24676         Likewise.
24677         * modules/unictype/property-line-separator (Depends-on, configure.ac):
24678         Likewise.
24679         * modules/unictype/property-logical-order-exception (Depends-on,
24680         configure.ac): Likewise.
24681         * modules/unictype/property-lowercase (Depends-on, configure.ac):
24682         Likewise.
24683         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
24684         * modules/unictype/property-non-break (Depends-on, configure.ac):
24685         Likewise.
24686         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
24687         Likewise.
24688         * modules/unictype/property-numeric (Depends-on, configure.ac):
24689         Likewise.
24690         * modules/unictype/property-other-alphabetic (Depends-on,
24691         configure.ac): Likewise.
24692         * modules/unictype/property-other-default-ignorable-code-point
24693         (Depends-on, configure.ac): Likewise.
24694         * modules/unictype/property-other-grapheme-extend (Depends-on,
24695         configure.ac): Likewise.
24696         * modules/unictype/property-other-id-continue (Depends-on,
24697         configure.ac): Likewise.
24698         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
24699         Likewise.
24700         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
24701         Likewise.
24702         * modules/unictype/property-other-math (Depends-on, configure.ac):
24703         Likewise.
24704         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
24705         Likewise.
24706         * modules/unictype/property-paired-punctuation (Depends-on,
24707         configure.ac): Likewise.
24708         * modules/unictype/property-paragraph-separator (Depends-on,
24709         configure.ac): Likewise.
24710         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
24711         Likewise.
24712         * modules/unictype/property-pattern-white-space (Depends-on,
24713         configure.ac): Likewise.
24714         * modules/unictype/property-private-use (Depends-on, configure.ac):
24715         Likewise.
24716         * modules/unictype/property-punctuation (Depends-on, configure.ac):
24717         Likewise.
24718         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
24719         Likewise.
24720         * modules/unictype/property-radical (Depends-on, configure.ac):
24721         Likewise.
24722         * modules/unictype/property-sentence-terminal (Depends-on,
24723         configure.ac): Likewise.
24724         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
24725         Likewise.
24726         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
24727         * modules/unictype/property-terminal-punctuation (Depends-on,
24728         configure.ac): Likewise.
24729         * modules/unictype/property-titlecase (Depends-on, configure.ac):
24730         Likewise.
24731         * modules/unictype/property-unassigned-code-value (Depends-on,
24732         configure.ac): Likewise.
24733         * modules/unictype/property-unified-ideograph (Depends-on,
24734         configure.ac): Likewise.
24735         * modules/unictype/property-uppercase (Depends-on, configure.ac):
24736         Likewise.
24737         * modules/unictype/property-variation-selector (Depends-on,
24738         configure.ac): Likewise.
24739         * modules/unictype/property-white-space (Depends-on, configure.ac):
24740         Likewise.
24741         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
24742         Likewise.
24743         * modules/unictype/property-xid-start (Depends-on, configure.ac):
24744         Likewise.
24745         * modules/unictype/property-zero-width (Depends-on, configure.ac):
24746         Likewise.
24747         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
24748         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
24749         Likewise.
24750
24751 2009-12-31  Bruno Haible  <bruno@clisp.org>
24752
24753         Remove unnecessary AC_C_INLINE invocation.
24754         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
24755         since 2009-08-21.
24756
24757 2009-12-31  Jim Meyering  <meyering@redhat.com>
24758
24759         maint.mk: don't require explicit gpg_key_ID in cfg.mk
24760         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
24761         With this change, we can all remove the gpg_key_ID = ... definition
24762         from our respective cfg.mk files.
24763
24764         maint.mk: create announcement template in ~/, not in /tmp
24765         * top/maint.mk (emit_upload_commands): Adjust.
24766         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
24767         Remove temporary file, .ci-msg.
24768
24769 2009-12-31  Eric Blake  <ebb9@byu.net>
24770
24771         link-warning: always build headers with link warnings
24772         * modules/arpa_inet (Makefile.am): Always build replacement
24773         header.
24774         * modules/ctype (Makefile.am): Likewise.
24775         * modules/dirent (Makefile.am): Likewise.
24776         * modules/inttypes (Makefile.am): Likewise.
24777         * modules/langinfo (Makefile.am): Likewise.
24778         * modules/locale (Makefile.am): Likewise.
24779         * modules/spawn (Makefile.am): Likewise.
24780         * modules/sys_file (Makefile.am): Likewise.
24781         * modules/sys_ioctl (Makefile.am): Likewise.
24782         * modules/sys_select (Makefile.am): Likewise.
24783         * modules/sys_socket (Makefile.am): Likewise.
24784         * modules/sys_times (Makefile.am): Likewise.
24785         * modules/sys_utsname (Makefile.am): Likewise.
24786         * modules/sys_wait (Makefile.am): Likewise.
24787         * modules/wchar (Makefile.am): Likewise.
24788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
24789         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
24790         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
24791         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
24792         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
24793         Likewise.
24794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24796         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
24797         Likewise.
24798         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
24799         Likewise.
24800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
24802         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
24803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24806         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24807         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
24808         (gl_WCHAR_H_DEFAULTS): Likewise.
24809
24810 2009-12-31  Eric Blake  <ebb9@byu.net>
24811
24812         signal, spawn: use link warnings
24813         * lib/signal.in.h (sigset_t): Make unconditional.
24814         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
24815         (sigpending, sigprocmask, sigaction): Add link warnings.
24816         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
24817         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
24818         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
24819         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
24820         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
24821         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
24822         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
24823         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
24824         (posix_spawn_file_actions_destroy)
24825         (posix_spawn_file_actions_addopen)
24826         (posix_spawn_file_actions_addclose)
24827         (posix_spawn_file_actions_adddup2): Likewise.
24828         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
24829         * tests/test-signal.c (main): Enhance test.
24830
24831         spawn: improve wrapper support
24832         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
24833         (gl_SPAWN_H_DEFAULTS): New defaults.
24834         * modules/spawn (Makefile.am): Substitute them.
24835         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
24836         Only declare if missing or broken.
24837
24838         sys_times, sys_utsname: use include_next
24839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
24840         header.
24841         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
24842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
24843         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
24844         * modules/sys_times (Depends-on): Add include_next.
24845         (Makefile.am): Substitute additional values.
24846         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24847         * lib/sys_times.in.h (includes): Include native header, if
24848         available.
24849         * lib/sys_utsname.in.h (includes): Likewise.
24850         * tests/test-sys_times.c (main): Enhance test.
24851
24852         fdutimensat: revert prior patch
24853         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
24854         utimens.h.
24855         Reported by Bruno Haible.
24856
24857 2009-12-30  Eric Blake  <ebb9@byu.net>
24858
24859         sys_wait: drop link-warning dependency
24860         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
24861         link-warning efforts.
24862         * lib/sys_wait.in.h: Likewise.
24863
24864         fdutimensat: remove bogus dependency
24865         * modules/fdutimensat (Depends-on): Drop inline.
24866
24867         unistd: fix typo
24868         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
24869
24870 2009-12-30  Bruno Haible  <bruno@clisp.org>
24871
24872         Fix compilation error with Solaris cc.
24873         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
24874         * lib/unicase/u16-is-invariant.c: Likewise.
24875         * lib/unicase/u32-is-invariant.c: Likewise.
24876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24877
24878 2009-12-30  Bruno Haible  <bruno@clisp.org>
24879
24880         Fix test crash.
24881         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
24882         locales.
24883         Reported by Simon Josefsson <simon@josefsson.org>.
24884
24885 2009-12-30  Bruno Haible  <bruno@clisp.org>
24886
24887         Fix compilation error on most platforms.
24888         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
24889         Reported by Simon Josefsson <simon@josefsson.org>
24890         and Nelson H. F. Beebe <beebe@math.utah.edu>.
24891
24892 2009-12-30  Eric Blake  <ebb9@byu.net>
24893
24894         futimens, utimensat: work around ntfs-3g bug
24895         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
24896         a ctime bug is present, and expand workaround to cover ntfs-3g.
24897         * lib/utimens.c (fdutimens, lutimens): Likewise.
24898         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
24899         (validate_timespec): Adjust return value.
24900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
24901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24902         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
24903
24904 2009-12-29  Eric Blake  <ebb9@byu.net>
24905
24906         link-warning: make usage consistent
24907         * modules/ctype (Depends-on): Add link-warning.
24908         (Makefile.am): Update rules accordingly.
24909         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24910         * modules/locale (Depends-on, Makefile.am): Likewise.
24911         * modules/sys_file (Makefile.am): Likewise.
24912         * modules/getopt-posix (Makefile.am): Delete unused link warning
24913         efforts.
24914         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
24915         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
24916         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
24917         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
24918
24919         stdio: remove unused variables
24920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
24921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
24922         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24923
24924         tests: test more substitute headers
24925         * modules/ctype-tests: New file.
24926         * modules/dirent-tests: Likewise.
24927         * modules/spawn-tests: Likewise.
24928         * modules/sys_file-tests: Likewise.
24929         * modules/sys_ioctl-tests: Likewise.
24930         * modules/sys_wait-tests: Likewise.
24931         * tests/test-ctype.c: Likewise.
24932         * tests/test-dirent.c: Likewise.
24933         * tests/test-spawn.c: Likewise.
24934         * tests/test-sys_file.c: Likewise.
24935         * tests/test-sys_ioctl.c: Likewise.
24936         * tests/test-sys_wait.c: Likewise.
24937         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
24938         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
24939         whether or not flock is in use.
24940
24941         tests: remove License section from module
24942         * modules/arpa_inet-tests: Remove unneeded section.
24943         * modules/byteswap-tests: Likewise.
24944         * modules/ceilf-tests: Likewise.
24945         * modules/ceill-tests: Likewise.
24946         * modules/crypto/des-tests: Likewise.
24947         * modules/crypto/gc-arcfour-tests: Likewise.
24948         * modules/crypto/gc-arctwo-tests: Likewise.
24949         * modules/crypto/gc-des-tests: Likewise.
24950         * modules/crypto/gc-hmac-md5-tests: Likewise.
24951         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24952         * modules/crypto/gc-md2-tests: Likewise.
24953         * modules/crypto/gc-md4-tests: Likewise.
24954         * modules/crypto/gc-md5-tests: Likewise.
24955         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24956         * modules/crypto/gc-rijndael-tests: Likewise.
24957         * modules/crypto/gc-sha1-tests: Likewise.
24958         * modules/crypto/gc-tests: Likewise.
24959         * modules/crypto/md2-tests: Likewise.
24960         * modules/crypto/md4-tests: Likewise.
24961         * modules/fcntl-h-tests: Likewise.
24962         * modules/floorf-tests: Likewise.
24963         * modules/floorl-tests: Likewise.
24964         * modules/frexp-nolibm-tests: Likewise.
24965         * modules/frexp-tests: Likewise.
24966         * modules/frexpl-nolibm-tests: Likewise.
24967         * modules/frexpl-tests: Likewise.
24968         * modules/getaddrinfo-tests: Likewise.
24969         * modules/inttypes-tests: Likewise.
24970         * modules/isfinite-tests: Likewise.
24971         * modules/isinf-tests: Likewise.
24972         * modules/ldexpl-tests: Likewise.
24973         * modules/locale-tests: Likewise.
24974         * modules/math-tests: Likewise.
24975         * modules/netdb-tests: Likewise.
24976         * modules/netinet_in-tests: Likewise.
24977         * modules/printf-frexp-tests: Likewise.
24978         * modules/printf-frexpl-tests: Likewise.
24979         * modules/priv-set-tests: Likewise.
24980         * modules/random_r-tests: Likewise.
24981         * modules/round-tests: Likewise.
24982         * modules/roundf-tests: Likewise.
24983         * modules/roundl-tests: Likewise.
24984         * modules/search-tests: Likewise.
24985         * modules/select-tests: Likewise.
24986         * modules/signal-tests: Likewise.
24987         * modules/stdbool-tests: Likewise.
24988         * modules/stddef-tests: Likewise.
24989         * modules/stdint-tests: Likewise.
24990         * modules/stdio-tests: Likewise.
24991         * modules/stdlib-tests: Likewise.
24992         * modules/string-tests: Likewise.
24993         * modules/strings-tests: Likewise.
24994         * modules/sys_select-tests: Likewise.
24995         * modules/sys_socket-tests: Likewise.
24996         * modules/sys_stat-tests: Likewise.
24997         * modules/sys_time-tests: Likewise.
24998         * modules/sys_utsname-tests: Likewise.
24999         * modules/sysexits-tests: Likewise.
25000         * modules/time-tests: Likewise.
25001         * modules/trunc-tests: Likewise.
25002         * modules/truncf-tests: Likewise.
25003         * modules/truncl-tests: Likewise.
25004         * modules/tsearch-tests: Likewise.
25005         * modules/unistd-tests: Likewise.
25006         * modules/wchar-tests: Likewise.
25007         * modules/wctype-tests: Likewise.
25008
25009         tests: fix license on several tests
25010         * tests/test-des.c: Update to GPLv3+.
25011         * tests/test-flock.c: Likewise.
25012         * tests/test-fsync.c: Likewise.
25013         * tests/test-futimens.h: Likewise.
25014         * tests/test-gc-arcfour.c: Likewise.
25015         * tests/test-gc-arctwo.c: Likewise.
25016         * tests/test-gc-des.c: Likewise.
25017         * tests/test-gc-hmac-md5.c: Likewise.
25018         * tests/test-gc-hmac-sha1.c: Likewise.
25019         * tests/test-gc-md2.c: Likewise.
25020         * tests/test-gc-md4.c: Likewise.
25021         * tests/test-gc-md5.c: Likewise.
25022         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25023         * tests/test-gc-rijndael.c: Likewise.
25024         * tests/test-gc-sha1.c: Likewise.
25025         * tests/test-gc.c: Likewise.
25026         * tests/test-getcwd.c: Likewise.
25027         * tests/test-link.c: Likewise.
25028         * tests/test-link.h: Likewise.
25029         * tests/test-lutimens.h: Likewise.
25030         * tests/test-md2.c: Likewise.
25031         * tests/test-md4.c: Likewise.
25032         * tests/test-mkdir.h: Likewise.
25033         * tests/test-rename.c: Likewise.
25034         * tests/test-rename.h: Likewise.
25035         * tests/test-safe-alloc.c: Likewise.
25036         * tests/test-utimens-common.h: Likewise.
25037         * tests/test-utimens.h: Likewise.
25038
25039         maint: sync license texts
25040         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25041         * doc/gpl-3.0.texi: Revert copyright year update.
25042         * doc/lgpl-3.0.texi: Likewise.
25043
25044 2009-12-29  Jim Meyering  <meyering@redhat.com>
25045
25046         update nearly all FSF copyright year lists to include 2009
25047         The files named by the following are exempted:
25048             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25049               test -f "$dst" && { echo "$dst"; continue; }
25050               test -d "$dst" || continue
25051               echo "$dst"/$(basename "$src")
25052             done > exempt
25053             git ls-files tests/unictype >> exempt
25054         In the remaining files, convert to all-interval notation if
25055         - there is already at least one year interval like 2000-2003
25056         - the file is maintained by me
25057         - the file is in lib/uni*/, where that style already prevails
25058         Otherwise, use update-copyright's default.
25059
25060 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25061         and Eric Blake  <ebb9@byu.net>
25062
25063         tests: don't require debug system() to pass
25064         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25065         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25066         * tests/test-unlink.h (test_unlink_func): Likewise.
25067         * tests/test-fstatat.c (main): ...into callers.
25068         * tests/test-lstat.c (main): Likewise.
25069         * tests/test-rmdir.c (main): Likewise.
25070         * tests/test-unlink.c (main): Likewise.
25071         * tests/test-unlinkat.c (main): Likewise.
25072         * tests/test-areadlink-with-size.c (main): Don't require a
25073         debug-only system call to pass, aiding cross-testing to mingw.
25074         * tests/test-areadlink.c (main): Likewise.
25075         * tests/test-areadlinkat-with-size.c (main): Likewise.
25076         * tests/test-areadlinkat.c (main): Likewise.
25077         * tests/test-canonicalize-lgpl.c (main): Likewise.
25078         * tests/test-canonicalize.c (main): Likewise.
25079         * tests/test-chown.c (main): Likewise.
25080         * tests/test-fchownat.c (main): Likewise.
25081         * tests/test-lchown.c (main): Likewise.
25082         * tests/test-fdutimensat.c (main): Likewise.
25083         * tests/test-futimens.c (main): Likewise.
25084         * tests/test-link.c (main): Likewise.
25085         * tests/test-linkat.c (main): Likewise.
25086         * tests/test-mkdir.c (main): Likewise.
25087         * tests/test-mkdirat.c (main): Likewise.
25088         * tests/test-mkfifo.c (main): Likewise.
25089         * tests/test-mkfifoat.c (main): Likewise.
25090         * tests/test-mknod.c (main): Likewise.
25091         * tests/test-readlink.c (main): Likewise.
25092         * tests/test-remove.c (main): Likewise.
25093         * tests/test-rename.c (main): Likewise.
25094         * tests/test-renameat.c (main): Likewise.
25095         * tests/test-symlink.c (main): Likewise.
25096         * tests/test-symlinkat.c (main): Likewise.
25097         * tests/test-utimens.c (main): Likewise.
25098         * tests/test-utimensat.c (main): Likewise.
25099
25100 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25101
25102         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25103         on $(UNUSED_PARAMETER_H) to avoid build failure.
25104
25105 2009-12-28  Jim Meyering  <meyering@redhat.com>
25106
25107         update-copyright: you may specify a max. line length other than 72
25108         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25109
25110         maint: use consistent FSF copyright line syntax
25111         * lib/posixtm.c: Add missing comma in FSF copyright line.
25112         * lib/posixtm.h: Likewise.
25113         * lib/getugroups.c: Add missing ", Inc.".
25114
25115         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25116         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25117         FSF copyright line.  Remove trailing blanks.
25118
25119 2009-12-28  Eric Blake  <ebb9@byu.net>
25120
25121         test-dup2: reduce dependencies
25122         * modules/cloexec (Configure.ac): Set witness.
25123         * modules/dup2-tests (Depends-on): Drop cloexec.
25124         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25125         not present.
25126         Suggested by Bruno Haible.
25127
25128 2009-12-26  Bruno Haible  <bruno@clisp.org>
25129
25130         Remove an unneeded dependency.
25131         * modules/fseterr (Depends-on): Remove dup2.
25132
25133 2009-12-26  Eric Blake  <ebb9@byu.net>
25134
25135         tests: use macros.h in more places
25136         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25137         (ASSERT_STREAM): Provide default of stderr.
25138         * tests/test-dirent-safer.c: Include macros.h, using alternate
25139         stream for assertions.
25140         * tests/test-dup-safer.c: Likewise.
25141         * tests/test-freopen-safer.c: Likewise.
25142         * tests/test-getopt.c: Likewise.
25143         * tests/test-openat-safer.c: Likewise.
25144         * tests/test-pipe.c: Likewise.
25145         * tests/test-popen-safer.c: Likewise.
25146         * modules/dirent-safer-tests (Files): Include macros.h.
25147         * modules/unistd-safer-tests (Files): Likewise.
25148         * modules/freopen-safer-tests (Files): Likewise.
25149         * modules/getopt-posix-tests (Files): Likewise.
25150         * modules/openat-safer-tests (Files): Likewise.
25151         * modules/pipe-tests (Files): Likewise.
25152
25153 2009-12-26  Bruno Haible  <bruno@clisp.org>
25154
25155         javacomp: Portability fix.
25156         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25157         that it also works on Solaris.
25158
25159 2009-12-26  Bruno Haible  <bruno@clisp.org>
25160
25161         localename: Fix storage allocation of gl_locale_name_thread's result.
25162         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25163         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25164         all platforms that have 'uselocale'.
25165         (gl_locale_name_thread_unsafe): New function, extracted from
25166         gl_locale_name_thread.
25167         (gl_locale_name_thread): Call struniq on all platforms that have
25168         'uselocale'.
25169         * tests/test-localename.c (test_locale_name_thread): Check that the
25170         resulting strings are permanently allocated.
25171         * modules/localename-tests (Depends-on): Add strdup.
25172
25173 2009-12-26  Bruno Haible  <bruno@clisp.org>
25174
25175         * tests/test-localename.c (categories): Fill in the strings.
25176
25177 2009-12-26  Jim Meyering  <meyering@redhat.com>
25178
25179         isdir: complete the removal of m4/isdir.m4
25180         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25181
25182         isdir: clean up, since at least grep still uses it
25183         * lib/isdir.c: Include "isdir.h".
25184         (S_ISDIR): Remove now-unneeded definition.
25185         * modules/isdir (Files): Add lib/isdir.h.
25186         * lib/isdir.h: New file, with declaration.
25187         * m4/isdir.m4: Remove file -- unneeded.
25188
25189 2009-12-25  Bruno Haible  <bruno@clisp.org>
25190
25191         selinux-h: Make generated .h files standalone.
25192         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25193         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25194         * lib/se-selinux.in.h: Likewise.
25195         * modules/selinux-h (Depends-on): Add unused-parameter.
25196         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25197         selinux/selinux.h and selinux/context.h.
25198         Suggested by Eric Blake.
25199
25200 2009-12-25  Bruno Haible  <bruno@clisp.org>
25201
25202         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25203         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25204         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25205         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25206         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25207
25208 2009-12-24  Bruno Haible  <bruno@clisp.org>
25209
25210         openat: Fix warning.
25211         * lib/openat-proc.c: Include <unistd.h>.
25212
25213 2009-12-24  Bruno Haible  <bruno@clisp.org>
25214
25215         New module 'unused-parameter'.
25216         * build-aux/unused-parameter.h: New file, extracted from earlier
25217         gnulib-common.m4.
25218         * modules/unused-parameter: New file.
25219         * lib/unistr.h: Include unused-parameter.h.
25220         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25221         _GL_UNUSED.
25222         * modules/unistr/base (Depends-on): Add unused-parameter.
25223
25224 2009-12-24  Bruno Haible  <bruno@clisp.org>
25225
25226         Add missing dependencies to 'extensions' module.
25227         * m4/extensions.m4: Add comment.
25228         * modules/accept4 (Depends-on): Add extensions.
25229         * modules/dup3 (Depends-on): Likewise.
25230         * modules/fcntl (Depends-on): Likewise.
25231         * modules/futimens (Depends-on): Likewise.
25232         * modules/mknod (Depends-on): Likewise.
25233         * modules/pipe2 (Depends-on): Likewise.
25234         * modules/stat-time (Depends-on): Likewise.
25235         * modules/strcasestr-simple (Depends-on): Likewise.
25236         * modules/strsignal (Depends-on): Likewise.
25237         * modules/utimensat (Depends-on): Likewise.
25238         * modules/localcharset (Depends-on): Likewise. Needed because of
25239         gl_FCNTL_O_FLAGS.
25240         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25241         AC_TYPE_MBSTATE_T.
25242         * modules/wcsnrtombs (Depends-on): Likewise.
25243         * modules/wcsrtombs (Depends-on): Likewise.
25244
25245 2009-12-24  Bruno Haible  <bruno@clisp.org>
25246
25247         binary-io: Avoid gcc warning due to SET_BINARY.
25248         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25249         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25250
25251 2009-12-24  Bruno Haible  <bruno@clisp.org>
25252
25253         Avoid future namespace pollution on glibc systems.
25254         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25255         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25256         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25257         glibc systems.
25258
25259 2009-12-24  Bruno Haible  <bruno@clisp.org>
25260
25261         Refactor common macros used in tests.
25262         * tests/macros.h: New file.
25263         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25264         and/or <stdlib.h>, if appropriate.
25265         (ASSERT, SIZEOF): Remove macros.
25266         * tests/test-areadlink-with-size.c: Likewise.
25267         * tests/test-areadlinkat.c: Likewise.
25268         * tests/test-areadlinkat-with-size.c: Likewise.
25269         * tests/test-argmatch.c: Likewise.
25270         * tests/test-argv-iter.c: Likewise.
25271         * tests/test-array-mergesort.c: Likewise.
25272         * tests/test-array_list.c: Likewise.
25273         * tests/test-array_oset.c: Likewise.
25274         * tests/test-avltree_list.c: Likewise.
25275         * tests/test-avltree_oset.c: Likewise.
25276         * tests/test-avltreehash_list.c: Likewise.
25277         * tests/test-base64.c: Likewise.
25278         * tests/test-binary-io.c: Likewise.
25279         * tests/test-bitrotate.c: Likewise.
25280         * tests/test-btowc.c: Likewise.
25281         * tests/test-byteswap.c: Likewise.
25282         * tests/test-c-ctype.c: Likewise.
25283         * tests/test-c-stack.c: Likewise.
25284         * tests/test-c-strcasecmp.c: Likewise.
25285         * tests/test-c-strcasestr.c: Likewise.
25286         * tests/test-c-strncasecmp.c: Likewise.
25287         * tests/test-c-strstr.c: Likewise.
25288         * tests/test-canonicalize-lgpl.c: Likewise.
25289         * tests/test-canonicalize.c: Likewise.
25290         * tests/test-carray_list.c: Likewise.
25291         * tests/test-ceilf1.c: Likewise.
25292         * tests/test-ceilf2.c: Likewise.
25293         * tests/test-ceill.c: Likewise.
25294         * tests/test-chown.c: Likewise.
25295         * tests/test-cloexec.c: Likewise.
25296         * tests/test-copy-acl.c: Likewise.
25297         * tests/test-copy-file.c: Likewise.
25298         * tests/test-count-one-bits.c: Likewise.
25299         * tests/test-dprintf-posix.c: Likewise.
25300         * tests/test-dup2.c: Likewise.
25301         * tests/test-dup3.c: Likewise.
25302         * tests/test-duplocale.c: Likewise.
25303         * tests/test-fbufmode.c: Likewise.
25304         * tests/test-fchdir.c: Likewise.
25305         * tests/test-fchownat.c: Likewise.
25306         * tests/test-fcntl-safer.c: Likewise.
25307         * tests/test-fcntl.c: Likewise.
25308         * tests/test-fdopendir.c: Likewise.
25309         * tests/test-fdutimensat.c: Likewise.
25310         * tests/test-fflush2.c: Likewise.
25311         * tests/test-file-has-acl.c: Likewise.
25312         * tests/test-filevercmp.c: Likewise.
25313         * tests/test-flock.c: Likewise.
25314         * tests/test-floorf1.c: Likewise.
25315         * tests/test-floorf2.c: Likewise.
25316         * tests/test-floorl.c: Likewise.
25317         * tests/test-fnmatch.c: Likewise.
25318         * tests/test-fopen.h: Likewise.
25319         * tests/test-fpending.c: Likewise.
25320         * tests/test-fprintf-posix.c: Likewise.
25321         * tests/test-fpurge.c: Likewise.
25322         * tests/test-freadable.c: Likewise.
25323         * tests/test-freadahead.c: Likewise.
25324         * tests/test-freading.c: Likewise.
25325         * tests/test-freadptr.c: Likewise.
25326         * tests/test-freadptr2.c: Likewise.
25327         * tests/test-freadseek.c: Likewise.
25328         * tests/test-freopen.c: Likewise.
25329         * tests/test-frexp.c: Likewise.
25330         * tests/test-frexpl.c: Likewise.
25331         * tests/test-fseek.c: Likewise.
25332         * tests/test-fseeko.c: Likewise.
25333         * tests/test-fstatat.c: Likewise.
25334         * tests/test-fstrcmp.c: Likewise.
25335         * tests/test-fsync.c: Likewise.
25336         * tests/test-ftell.c: Likewise.
25337         * tests/test-ftello.c: Likewise.
25338         * tests/test-func.c: Likewise.
25339         * tests/test-futimens.c: Likewise.
25340         * tests/test-fwritable.c: Likewise.
25341         * tests/test-fwriting.c: Likewise.
25342         * tests/test-getcwd.c: Likewise.
25343         * tests/test-getdate.c: Likewise.
25344         * tests/test-getdelim.c: Likewise.
25345         * tests/test-getdtablesize.c: Likewise.
25346         * tests/test-getgroups.c: Likewise.
25347         * tests/test-getline.c: Likewise.
25348         * tests/test-getndelim2.c: Likewise.
25349         * tests/test-glob.c: Likewise.
25350         * tests/test-hash.c: Likewise.
25351         * tests/test-i-ring.c: Likewise.
25352         * tests/test-iconv-utf.c: Likewise.
25353         * tests/test-iconv.c: Likewise.
25354         * tests/test-idpriv-drop.c: Likewise.
25355         * tests/test-idpriv-droptemp.c: Likewise.
25356         * tests/test-inet_ntop.c: Likewise.
25357         * tests/test-inet_pton.c: Likewise.
25358         * tests/test-isblank.c: Likewise.
25359         * tests/test-isfinite.c: Likewise.
25360         * tests/test-isinf.c: Likewise.
25361         * tests/test-isnan.c: Likewise.
25362         * tests/test-isnand.h: Likewise.
25363         * tests/test-isnanf.h: Likewise.
25364         * tests/test-isnanl.h: Likewise.
25365         * tests/test-lchown.c: Likewise.
25366         * tests/test-ldexpl.c: Likewise.
25367         * tests/test-link.c: Likewise.
25368         * tests/test-linkat.c: Likewise.
25369         * tests/test-linked_list.c: Likewise.
25370         * tests/test-linkedhash_list.c: Likewise.
25371         * tests/test-localename.c: Likewise.
25372         * tests/test-lseek.c: Likewise.
25373         * tests/test-lstat.c: Likewise.
25374         * tests/test-mbmemcasecmp.c: Likewise.
25375         * tests/test-mbmemcasecoll.c: Likewise.
25376         * tests/test-mbrtowc.c: Likewise.
25377         * tests/test-mbscasecmp.c: Likewise.
25378         * tests/test-mbscasestr1.c: Likewise.
25379         * tests/test-mbscasestr2.c: Likewise.
25380         * tests/test-mbscasestr3.c: Likewise.
25381         * tests/test-mbscasestr4.c: Likewise.
25382         * tests/test-mbschr.c: Likewise.
25383         * tests/test-mbscspn.c: Likewise.
25384         * tests/test-mbsinit.c: Likewise.
25385         * tests/test-mbsncasecmp.c: Likewise.
25386         * tests/test-mbsnrtowcs.c: Likewise.
25387         * tests/test-mbspbrk.c: Likewise.
25388         * tests/test-mbspcasecmp.c: Likewise.
25389         * tests/test-mbsrchr.c: Likewise.
25390         * tests/test-mbsrtowcs.c: Likewise.
25391         * tests/test-mbsspn.c: Likewise.
25392         * tests/test-mbsstr1.c: Likewise.
25393         * tests/test-mbsstr2.c: Likewise.
25394         * tests/test-mbsstr3.c: Likewise.
25395         * tests/test-memchr.c: Likewise.
25396         * tests/test-memchr2.c: Likewise.
25397         * tests/test-memcmp.c: Likewise.
25398         * tests/test-memmem.c: Likewise.
25399         * tests/test-memrchr.c: Likewise.
25400         * tests/test-mkdir.c: Likewise.
25401         * tests/test-mkdirat.c: Likewise.
25402         * tests/test-mkfifo.c: Likewise.
25403         * tests/test-mkfifoat.c: Likewise.
25404         * tests/test-mknod.c: Likewise.
25405         * tests/test-nanosleep.c: Likewise.
25406         * tests/test-nl_langinfo.c: Likewise.
25407         * tests/test-obstack-printf.c: Likewise.
25408         * tests/test-open.c: Likewise.
25409         * tests/test-openat.c: Likewise.
25410         * tests/test-pipe-filter-gi1.c: Likewise.
25411         * tests/test-pipe-filter-gi2-main.c: Likewise.
25412         * tests/test-pipe-filter-ii1.c: Likewise.
25413         * tests/test-pipe-filter-ii2-main.c: Likewise.
25414         * tests/test-pipe2.c: Likewise.
25415         * tests/test-popen.h: Likewise.
25416         * tests/test-posixtm.c: Likewise.
25417         * tests/test-pread.c: Likewise.
25418         * tests/test-printf-frexp.c: Likewise.
25419         * tests/test-printf-frexpl.c: Likewise.
25420         * tests/test-printf-posix.c: Likewise.
25421         * tests/test-priv-set.c: Likewise.
25422         * tests/test-quotearg.c: Likewise.
25423         * tests/test-random_r.c: Likewise.
25424         * tests/test-rawmemchr.c: Likewise.
25425         * tests/test-rbtree_list.c: Likewise.
25426         * tests/test-rbtree_oset.c: Likewise.
25427         * tests/test-rbtreehash_list.c: Likewise.
25428         * tests/test-readlink.c: Likewise.
25429         * tests/test-remove.c: Likewise.
25430         * tests/test-rename.c: Likewise.
25431         * tests/test-renameat.c: Likewise.
25432         * tests/test-rmdir.c: Likewise.
25433         * tests/test-round1.c: Likewise.
25434         * tests/test-roundf1.c: Likewise.
25435         * tests/test-roundl.c: Likewise.
25436         * tests/test-safe-alloc.c: Likewise.
25437         * tests/test-sameacls.c: Likewise.
25438         * tests/test-set-mode-acl.c: Likewise.
25439         * tests/test-setenv.c: Likewise.
25440         * tests/test-sigaction.c: Likewise.
25441         * tests/test-signbit.c: Likewise.
25442         * tests/test-sleep.c: Likewise.
25443         * tests/test-snprintf-posix.c: Likewise.
25444         * tests/test-snprintf.c: Likewise.
25445         * tests/test-sprintf-posix.c: Likewise.
25446         * tests/test-stat-time.c: Likewise.
25447         * tests/test-stat.c: Likewise.
25448         * tests/test-strcasestr.c: Likewise.
25449         * tests/test-strchrnul.c: Likewise.
25450         * tests/test-strerror.c: Likewise.
25451         * tests/test-striconv.c: Likewise.
25452         * tests/test-striconveh.c: Likewise.
25453         * tests/test-striconveha.c: Likewise.
25454         * tests/test-strsignal.c: Likewise.
25455         * tests/test-strstr.c: Likewise.
25456         * tests/test-strtod.c: Likewise.
25457         * tests/test-strverscmp.c: Likewise.
25458         * tests/test-symlink.c: Likewise.
25459         * tests/test-symlinkat.c: Likewise.
25460         * tests/test-trunc1.c: Likewise.
25461         * tests/test-trunc2.c: Likewise.
25462         * tests/test-truncf1.c: Likewise.
25463         * tests/test-truncf2.c: Likewise.
25464         * tests/test-truncl.c: Likewise.
25465         * tests/test-uname.c: Likewise.
25466         * tests/test-unlink.c: Likewise.
25467         * tests/test-unlinkat.c: Likewise.
25468         * tests/test-unsetenv.c: Likewise.
25469         * tests/test-usleep.c: Likewise.
25470         * tests/test-utimens.c: Likewise.
25471         * tests/test-utimensat.c: Likewise.
25472         * tests/test-vasnprintf-posix.c: Likewise.
25473         * tests/test-vasnprintf-posix2.c: Likewise.
25474         * tests/test-vasnprintf.c: Likewise.
25475         * tests/test-vasprintf-posix.c: Likewise.
25476         * tests/test-vasprintf.c: Likewise.
25477         * tests/test-vdprintf-posix.c: Likewise.
25478         * tests/test-vfprintf-posix.c: Likewise.
25479         * tests/test-vprintf-posix.c: Likewise.
25480         * tests/test-vsnprintf-posix.c: Likewise.
25481         * tests/test-vsnprintf.c: Likewise.
25482         * tests/test-vsprintf-posix.c: Likewise.
25483         * tests/test-wcrtomb.c: Likewise.
25484         * tests/test-wcsnrtombs.c: Likewise.
25485         * tests/test-wcsrtombs.c: Likewise.
25486         * tests/test-wctype.c: Likewise.
25487         * tests/test-wcwidth.c: Likewise.
25488         * tests/test-xfprintf-posix.c: Likewise.
25489         * tests/test-xmemdup0.c: Likewise.
25490         * tests/test-xprintf-posix.c: Likewise.
25491         * tests/test-xvasprintf.c: Likewise.
25492         * tests/unicase/test-locale-language.c: Likewise.
25493         * tests/unicase/test-mapping-part1.h: Likewise.
25494         * tests/unicase/test-predicate-part1.h: Likewise.
25495         * tests/unicase/test-u8-casecmp.c: Likewise.
25496         * tests/unicase/test-u8-casecoll.c: Likewise.
25497         * tests/unicase/test-u8-casefold.c: Likewise.
25498         * tests/unicase/test-u8-is-cased.c: Likewise.
25499         * tests/unicase/test-u8-is-casefolded.c: Likewise.
25500         * tests/unicase/test-u8-is-lowercase.c: Likewise.
25501         * tests/unicase/test-u8-is-titlecase.c: Likewise.
25502         * tests/unicase/test-u8-is-uppercase.c: Likewise.
25503         * tests/unicase/test-u8-tolower.c: Likewise.
25504         * tests/unicase/test-u8-totitle.c: Likewise.
25505         * tests/unicase/test-u8-toupper.c: Likewise.
25506         * tests/unicase/test-u16-casecmp.c: Likewise.
25507         * tests/unicase/test-u16-casecoll.c: Likewise.
25508         * tests/unicase/test-u16-casefold.c: Likewise.
25509         * tests/unicase/test-u16-is-cased.c: Likewise.
25510         * tests/unicase/test-u16-is-casefolded.c: Likewise.
25511         * tests/unicase/test-u16-is-lowercase.c: Likewise.
25512         * tests/unicase/test-u16-is-titlecase.c: Likewise.
25513         * tests/unicase/test-u16-is-uppercase.c: Likewise.
25514         * tests/unicase/test-u16-tolower.c: Likewise.
25515         * tests/unicase/test-u16-totitle.c: Likewise.
25516         * tests/unicase/test-u16-toupper.c: Likewise.
25517         * tests/unicase/test-u32-casecmp.c: Likewise.
25518         * tests/unicase/test-u32-casecoll.c: Likewise.
25519         * tests/unicase/test-u32-casefold.c: Likewise.
25520         * tests/unicase/test-u32-is-cased.c: Likewise.
25521         * tests/unicase/test-u32-is-casefolded.c: Likewise.
25522         * tests/unicase/test-u32-is-lowercase.c: Likewise.
25523         * tests/unicase/test-u32-is-titlecase.c: Likewise.
25524         * tests/unicase/test-u32-is-uppercase.c: Likewise.
25525         * tests/unicase/test-u32-tolower.c: Likewise.
25526         * tests/unicase/test-u32-totitle.c: Likewise.
25527         * tests/unicase/test-u32-toupper.c: Likewise.
25528         * tests/unicase/test-ulc-casecmp.c: Likewise.
25529         * tests/unicase/test-ulc-casecoll.c: Likewise.
25530         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25531         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25532         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25533         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25534         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25535         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25536         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25537         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25538         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25539         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25540         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25541         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25542         * tests/unictype/test-bidi_byname.c: Likewise.
25543         * tests/unictype/test-bidi_name.c: Likewise.
25544         * tests/unictype/test-bidi_of.c: Likewise.
25545         * tests/unictype/test-bidi_test.c: Likewise.
25546         * tests/unictype/test-block_list.c: Likewise.
25547         * tests/unictype/test-block_of.c: Likewise.
25548         * tests/unictype/test-block_test.c: Likewise.
25549         * tests/unictype/test-categ_and.c: Likewise.
25550         * tests/unictype/test-categ_and_not.c: Likewise.
25551         * tests/unictype/test-categ_byname.c: Likewise.
25552         * tests/unictype/test-categ_name.c: Likewise.
25553         * tests/unictype/test-categ_none.c: Likewise.
25554         * tests/unictype/test-categ_of.c: Likewise.
25555         * tests/unictype/test-categ_or.c: Likewise.
25556         * tests/unictype/test-categ_test_withtable.c: Likewise.
25557         * tests/unictype/test-combining.c: Likewise.
25558         * tests/unictype/test-decdigit.c: Likewise.
25559         * tests/unictype/test-digit.c: Likewise.
25560         * tests/unictype/test-mirror.c: Likewise.
25561         * tests/unictype/test-numeric.c: Likewise.
25562         * tests/unictype/test-pr_byname.c: Likewise.
25563         * tests/unictype/test-pr_test.c: Likewise.
25564         * tests/unictype/test-predicate-part1.h: Likewise.
25565         * tests/unictype/test-scripts.c: Likewise.
25566         * tests/unictype/test-sy_c_ident.c: Likewise.
25567         * tests/unictype/test-sy_java_ident.c: Likewise.
25568         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
25569         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
25570         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
25571         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
25572         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
25573         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
25574         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
25575         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
25576         * tests/uninorm/test-canonical-decomposition.c: Likewise.
25577         * tests/uninorm/test-compat-decomposition.c: Likewise.
25578         * tests/uninorm/test-composition.c: Likewise.
25579         * tests/uninorm/test-decomposing-form.c: Likewise.
25580         * tests/uninorm/test-decomposition.c: Likewise.
25581         * tests/uninorm/test-u8-nfc.c: Likewise.
25582         * tests/uninorm/test-u8-nfd.c: Likewise.
25583         * tests/uninorm/test-u8-nfkc.c: Likewise.
25584         * tests/uninorm/test-u8-nfkd.c: Likewise.
25585         * tests/uninorm/test-u8-normcmp.c: Likewise.
25586         * tests/uninorm/test-u8-normcoll.c: Likewise.
25587         * tests/uninorm/test-u16-nfc.c: Likewise.
25588         * tests/uninorm/test-u16-nfd.c: Likewise.
25589         * tests/uninorm/test-u16-nfkc.c: Likewise.
25590         * tests/uninorm/test-u16-nfkd.c: Likewise.
25591         * tests/uninorm/test-u16-normcmp.c: Likewise.
25592         * tests/uninorm/test-u16-normcoll.c: Likewise.
25593         * tests/uninorm/test-u32-nfc.c: Likewise.
25594         * tests/uninorm/test-u32-nfd.c: Likewise.
25595         * tests/uninorm/test-u32-nfkc.c: Likewise.
25596         * tests/uninorm/test-u32-nfkd.c: Likewise.
25597         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25598         * tests/uninorm/test-u32-normcmp.c: Likewise.
25599         * tests/uninorm/test-u32-normcoll.c: Likewise.
25600         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
25601         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25602         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25603         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25604         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25605         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25606         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25607         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25608         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25609         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25610         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25611         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25612         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25613         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25614         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25615         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25616         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25617         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25618         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25619         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25620         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25621         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25622         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25623         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25624         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25625         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25626         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25627         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25628         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25629         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
25630         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
25631         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
25632         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
25633         * tests/uniwidth/test-u8-strwidth.c: Likewise.
25634         * tests/uniwidth/test-u8-width.c: Likewise.
25635         * tests/uniwidth/test-u16-strwidth.c: Likewise.
25636         * tests/uniwidth/test-u16-width.c: Likewise.
25637         * tests/uniwidth/test-u32-strwidth.c: Likewise.
25638         * tests/uniwidth/test-u32-width.c: Likewise.
25639         * tests/uniwidth/test-uc_width.c: Likewise.
25640         * tests/uniwidth/test-uc_width2.c: Likewise.
25641         * modules/acl-tests (Files): Add tests/macros.h.
25642         * modules/areadlink-tests (Files): Likewise.
25643         * modules/areadlink-with-size-tests (Files): Likewise.
25644         * modules/areadlinkat-tests (Files): Likewise.
25645         * modules/areadlinkat-with-size-tests (Files): Likewise.
25646         * modules/argmatch-tests (Files): Likewise.
25647         * modules/argv-iter-tests (Files): Likewise.
25648         * modules/array-list-tests (Files): Likewise.
25649         * modules/array-mergesort-tests (Files): Likewise.
25650         * modules/array-oset-tests (Files): Likewise.
25651         * modules/avltree-list-tests (Files): Likewise.
25652         * modules/avltree-oset-tests (Files): Likewise.
25653         * modules/avltreehash-list-tests (Files): Likewise.
25654         * modules/base64-tests (Files): Likewise.
25655         * modules/binary-io-tests (Files): Likewise.
25656         * modules/bitrotate-tests (Files): Likewise.
25657         * modules/btowc-tests (Files): Likewise.
25658         * modules/byteswap-tests (Files): Likewise.
25659         * modules/c-ctype-tests (Files): Likewise.
25660         * modules/c-stack-tests (Files): Likewise.
25661         * modules/c-strcase-tests (Files): Likewise.
25662         * modules/c-strcasestr-tests (Files): Likewise.
25663         * modules/c-strstr-tests (Files): Likewise.
25664         * modules/canonicalize-lgpl-tests (Files): Likewise.
25665         * modules/canonicalize-tests (Files): Likewise.
25666         * modules/carray-list-tests (Files): Likewise.
25667         * modules/ceilf-tests (Files): Likewise.
25668         * modules/ceill-tests (Files): Likewise.
25669         * modules/chown-tests (Files): Likewise.
25670         * modules/cloexec-tests (Files): Likewise.
25671         * modules/copy-file-tests (Files): Likewise.
25672         * modules/count-one-bits-tests (Files): Likewise.
25673         * modules/dprintf-posix-tests (Files): Likewise.
25674         * modules/dup2-tests (Files): Likewise.
25675         * modules/dup3-tests (Files): Likewise.
25676         * modules/duplocale-tests (Files): Likewise.
25677         * modules/fbufmode-tests (Files): Likewise.
25678         * modules/fchdir-tests (Files): Likewise.
25679         * modules/fcntl-safer-tests (Files): Likewise.
25680         * modules/fcntl-tests (Files): Likewise.
25681         * modules/fdopendir-tests (Files): Likewise.
25682         * modules/fdutimensat-tests (Files): Likewise.
25683         * modules/fflush-tests (Files): Likewise.
25684         * modules/filevercmp-tests (Files): Likewise.
25685         * modules/flock-tests (Files): Likewise.
25686         * modules/floorf-tests (Files): Likewise.
25687         * modules/floorl-tests (Files): Likewise.
25688         * modules/fnmatch-tests (Files): Likewise.
25689         * modules/fopen-safer-tests (Files): Likewise.
25690         * modules/fopen-tests (Files): Likewise.
25691         * modules/fpending-tests (Files): Likewise.
25692         * modules/fprintf-posix-tests (Files): Likewise.
25693         * modules/fpurge-tests (Files): Likewise.
25694         * modules/freadable-tests (Files): Likewise.
25695         * modules/freadahead-tests (Files): Likewise.
25696         * modules/freading-tests (Files): Likewise.
25697         * modules/freadptr-tests (Files): Likewise.
25698         * modules/freadseek-tests (Files): Likewise.
25699         * modules/freopen-tests (Files): Likewise.
25700         * modules/frexp-nolibm-tests (Files): Likewise.
25701         * modules/frexp-tests (Files): Likewise.
25702         * modules/frexpl-nolibm-tests (Files): Likewise.
25703         * modules/frexpl-tests (Files): Likewise.
25704         * modules/fseek-tests (Files): Likewise.
25705         * modules/fseeko-tests (Files): Likewise.
25706         * modules/fstrcmp-tests (Files): Likewise.
25707         * modules/fsync-tests (Files): Likewise.
25708         * modules/ftell-tests (Files): Likewise.
25709         * modules/ftello-tests (Files): Likewise.
25710         * modules/func-tests (Files): Likewise.
25711         * modules/futimens-tests (Files): Likewise.
25712         * modules/fwritable-tests (Files): Likewise.
25713         * modules/fwriting-tests (Files): Likewise.
25714         * modules/getcwd-tests (Files): Likewise.
25715         * modules/getdate-tests (Files): Likewise.
25716         * modules/getdelim-tests (Files): Likewise.
25717         * modules/getdtablesize-tests (Files): Likewise.
25718         * modules/getgroups-tests (Files): Likewise.
25719         * modules/getline-tests (Files): Likewise.
25720         * modules/getndelim2-tests (Files): Likewise.
25721         * modules/glob-tests (Files): Likewise.
25722         * modules/hash-tests (Files): Likewise.
25723         * modules/i-ring-tests (Files): Likewise.
25724         * modules/iconv-tests (Files): Likewise.
25725         * modules/iconv_open-utf-tests (Files): Likewise.
25726         * modules/idpriv-drop-tests (Files): Likewise.
25727         * modules/idpriv-droptemp-tests (Files): Likewise.
25728         * modules/inet_ntop-tests (Files): Likewise.
25729         * modules/inet_pton-tests (Files): Likewise.
25730         * modules/isblank-tests (Files): Likewise.
25731         * modules/isfinite-tests (Files): Likewise.
25732         * modules/isinf-tests (Files): Likewise.
25733         * modules/isnan-tests (Files): Likewise.
25734         * modules/isnand-nolibm-tests (Files): Likewise.
25735         * modules/isnand-tests (Files): Likewise.
25736         * modules/isnanf-nolibm-tests (Files): Likewise.
25737         * modules/isnanf-tests (Files): Likewise.
25738         * modules/isnanl-nolibm-tests (Files): Likewise.
25739         * modules/isnanl-tests (Files): Likewise.
25740         * modules/lchown-tests (Files): Likewise.
25741         * modules/ldexpl-tests (Files): Likewise.
25742         * modules/link-tests (Files): Likewise.
25743         * modules/linkat-tests (Files): Likewise.
25744         * modules/linked-list-tests (Files): Likewise.
25745         * modules/linkedhash-list-tests (Files): Likewise.
25746         * modules/localename-tests (Files): Likewise.
25747         * modules/lseek-tests (Files): Likewise.
25748         * modules/lstat-tests (Files): Likewise.
25749         * modules/mbmemcasecmp-tests (Files): Likewise.
25750         * modules/mbmemcasecoll-tests (Files): Likewise.
25751         * modules/mbrtowc-tests (Files): Likewise.
25752         * modules/mbscasecmp-tests (Files): Likewise.
25753         * modules/mbscasestr-tests (Files): Likewise.
25754         * modules/mbschr-tests (Files): Likewise.
25755         * modules/mbscspn-tests (Files): Likewise.
25756         * modules/mbsinit-tests (Files): Likewise.
25757         * modules/mbsncasecmp-tests (Files): Likewise.
25758         * modules/mbsnrtowcs-tests (Files): Likewise.
25759         * modules/mbspbrk-tests (Files): Likewise.
25760         * modules/mbspcasecmp-tests (Files): Likewise.
25761         * modules/mbsrchr-tests (Files): Likewise.
25762         * modules/mbsrtowcs-tests (Files): Likewise.
25763         * modules/mbsspn-tests (Files): Likewise.
25764         * modules/mbsstr-tests (Files): Likewise.
25765         * modules/memchr-tests (Files): Likewise.
25766         * modules/memchr2-tests (Files): Likewise.
25767         * modules/memcmp-tests (Files): Likewise.
25768         * modules/memmem-tests (Files): Likewise.
25769         * modules/memrchr-tests (Files): Likewise.
25770         * modules/mkdir-tests (Files): Likewise.
25771         * modules/mkfifo-tests (Files): Likewise.
25772         * modules/mkfifoat-tests (Files): Likewise.
25773         * modules/mknod-tests (Files): Likewise.
25774         * modules/nanosleep-tests (Files): Likewise.
25775         * modules/nl_langinfo-tests (Files): Likewise.
25776         * modules/obstack-printf-tests (Files): Likewise.
25777         * modules/open-tests (Files): Likewise.
25778         * modules/openat-tests (Files): Likewise.
25779         * modules/pipe-filter-gi-tests (Files): Likewise.
25780         * modules/pipe-filter-ii-tests (Files): Likewise.
25781         * modules/pipe2-tests (Files): Likewise.
25782         * modules/popen-safer-tests (Files): Likewise.
25783         * modules/popen-tests (Files): Likewise.
25784         * modules/posixtm-tests (Files): Likewise.
25785         * modules/pread-tests (Files): Likewise.
25786         * modules/printf-frexp-tests (Files): Likewise.
25787         * modules/printf-frexpl-tests (Files): Likewise.
25788         * modules/printf-posix-tests (Files): Likewise.
25789         * modules/priv-set-tests (Files): Likewise.
25790         * modules/quotearg-tests (Files): Likewise.
25791         * modules/random_r-tests (Files): Likewise.
25792         * modules/rawmemchr-tests (Files): Likewise.
25793         * modules/rbtree-list-tests (Files): Likewise.
25794         * modules/rbtree-oset-tests (Files): Likewise.
25795         * modules/rbtreehash-list-tests (Files): Likewise.
25796         * modules/readlink-tests (Files): Likewise.
25797         * modules/remove-tests (Files): Likewise.
25798         * modules/rename-tests (Files): Likewise.
25799         * modules/renameat-tests (Files): Likewise.
25800         * modules/rmdir-tests (Files): Likewise.
25801         * modules/round-tests (Files): Likewise.
25802         * modules/roundf-tests (Files): Likewise.
25803         * modules/roundl-tests (Files): Likewise.
25804         * modules/safe-alloc-tests (Files): Likewise.
25805         * modules/setenv-tests (Files): Likewise.
25806         * modules/sigaction-tests (Files): Likewise.
25807         * modules/signbit-tests (Files): Likewise.
25808         * modules/sleep-tests (Files): Likewise.
25809         * modules/snprintf-posix-tests (Files): Likewise.
25810         * modules/snprintf-tests (Files): Likewise.
25811         * modules/sprintf-posix-tests (Files): Likewise.
25812         * modules/stat-tests (Files): Likewise.
25813         * modules/stat-time-tests (Files): Likewise.
25814         * modules/strcasestr-tests (Files): Likewise.
25815         * modules/strchrnul-tests (Files): Likewise.
25816         * modules/strerror-tests (Files): Likewise.
25817         * modules/striconv-tests (Files): Likewise.
25818         * modules/striconveh-tests (Files): Likewise.
25819         * modules/striconveha-tests (Files): Likewise.
25820         * modules/strsignal-tests (Files): Likewise.
25821         * modules/strstr-tests (Files): Likewise.
25822         * modules/strtod-tests (Files): Likewise.
25823         * modules/strverscmp-tests (Files): Likewise.
25824         * modules/symlink-tests (Files): Likewise.
25825         * modules/symlinkat-tests (Files): Likewise.
25826         * modules/trunc-tests (Files): Likewise.
25827         * modules/truncf-tests (Files): Likewise.
25828         * modules/truncl-tests (Files): Likewise.
25829         * modules/uname-tests (Files): Likewise.
25830         * modules/unicase/cased-tests (Files): Likewise.
25831         * modules/unicase/ignorable-tests (Files): Likewise.
25832         * modules/unicase/locale-language-tests (Files): Likewise.
25833         * modules/unicase/tolower-tests (Files): Likewise.
25834         * modules/unicase/totitle-tests (Files): Likewise.
25835         * modules/unicase/toupper-tests (Files): Likewise.
25836         * modules/unicase/u8-casecmp-tests (Files): Likewise.
25837         * modules/unicase/u8-casecoll-tests (Files): Likewise.
25838         * modules/unicase/u8-casefold-tests (Files): Likewise.
25839         * modules/unicase/u8-is-cased-tests (Files): Likewise.
25840         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
25841         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
25842         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
25843         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
25844         * modules/unicase/u8-tolower-tests (Files): Likewise.
25845         * modules/unicase/u8-totitle-tests (Files): Likewise.
25846         * modules/unicase/u8-toupper-tests (Files): Likewise.
25847         * modules/unicase/u16-casecmp-tests (Files): Likewise.
25848         * modules/unicase/u16-casecoll-tests (Files): Likewise.
25849         * modules/unicase/u16-casefold-tests (Files): Likewise.
25850         * modules/unicase/u16-is-cased-tests (Files): Likewise.
25851         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
25852         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
25853         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
25854         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
25855         * modules/unicase/u16-tolower-tests (Files): Likewise.
25856         * modules/unicase/u16-totitle-tests (Files): Likewise.
25857         * modules/unicase/u16-toupper-tests (Files): Likewise.
25858         * modules/unicase/u32-casecmp-tests (Files): Likewise.
25859         * modules/unicase/u32-casecoll-tests (Files): Likewise.
25860         * modules/unicase/u32-casefold-tests (Files): Likewise.
25861         * modules/unicase/u32-is-cased-tests (Files): Likewise.
25862         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
25863         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
25864         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
25865         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
25866         * modules/unicase/u32-tolower-tests (Files): Likewise.
25867         * modules/unicase/u32-totitle-tests (Files): Likewise.
25868         * modules/unicase/u32-toupper-tests (Files): Likewise.
25869         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
25870         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
25871         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
25872         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
25873         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
25874         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
25875         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
25876         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
25877         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
25878         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
25879         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
25880         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
25881         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
25882         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
25883         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
25884         * modules/unictype/bidicategory-name-tests (Files): Likewise.
25885         * modules/unictype/bidicategory-of-tests (Files): Likewise.
25886         * modules/unictype/bidicategory-test-tests (Files): Likewise.
25887         * modules/unictype/block-list-tests (Files): Likewise.
25888         * modules/unictype/block-of-tests (Files): Likewise.
25889         * modules/unictype/block-test-tests (Files): Likewise.
25890         * modules/unictype/category-C-tests (Files): Likewise.
25891         * modules/unictype/category-Cc-tests (Files): Likewise.
25892         * modules/unictype/category-Cf-tests (Files): Likewise.
25893         * modules/unictype/category-Cn-tests (Files): Likewise.
25894         * modules/unictype/category-Co-tests (Files): Likewise.
25895         * modules/unictype/category-Cs-tests (Files): Likewise.
25896         * modules/unictype/category-L-tests (Files): Likewise.
25897         * modules/unictype/category-Ll-tests (Files): Likewise.
25898         * modules/unictype/category-Lm-tests (Files): Likewise.
25899         * modules/unictype/category-Lo-tests (Files): Likewise.
25900         * modules/unictype/category-Lt-tests (Files): Likewise.
25901         * modules/unictype/category-Lu-tests (Files): Likewise.
25902         * modules/unictype/category-M-tests (Files): Likewise.
25903         * modules/unictype/category-Mc-tests (Files): Likewise.
25904         * modules/unictype/category-Me-tests (Files): Likewise.
25905         * modules/unictype/category-Mn-tests (Files): Likewise.
25906         * modules/unictype/category-N-tests (Files): Likewise.
25907         * modules/unictype/category-Nd-tests (Files): Likewise.
25908         * modules/unictype/category-Nl-tests (Files): Likewise.
25909         * modules/unictype/category-No-tests (Files): Likewise.
25910         * modules/unictype/category-P-tests (Files): Likewise.
25911         * modules/unictype/category-Pc-tests (Files): Likewise.
25912         * modules/unictype/category-Pd-tests (Files): Likewise.
25913         * modules/unictype/category-Pe-tests (Files): Likewise.
25914         * modules/unictype/category-Pf-tests (Files): Likewise.
25915         * modules/unictype/category-Pi-tests (Files): Likewise.
25916         * modules/unictype/category-Po-tests (Files): Likewise.
25917         * modules/unictype/category-Ps-tests (Files): Likewise.
25918         * modules/unictype/category-S-tests (Files): Likewise.
25919         * modules/unictype/category-Sc-tests (Files): Likewise.
25920         * modules/unictype/category-Sk-tests (Files): Likewise.
25921         * modules/unictype/category-Sm-tests (Files): Likewise.
25922         * modules/unictype/category-So-tests (Files): Likewise.
25923         * modules/unictype/category-Z-tests (Files): Likewise.
25924         * modules/unictype/category-Zl-tests (Files): Likewise.
25925         * modules/unictype/category-Zp-tests (Files): Likewise.
25926         * modules/unictype/category-Zs-tests (Files): Likewise.
25927         * modules/unictype/category-and-not-tests (Files): Likewise.
25928         * modules/unictype/category-and-tests (Files): Likewise.
25929         * modules/unictype/category-byname-tests (Files): Likewise.
25930         * modules/unictype/category-name-tests (Files): Likewise.
25931         * modules/unictype/category-none-tests (Files): Likewise.
25932         * modules/unictype/category-of-tests (Files): Likewise.
25933         * modules/unictype/category-or-tests (Files): Likewise.
25934         * modules/unictype/category-test-withtable-tests (Files): Likewise.
25935         * modules/unictype/combining-class-tests (Files): Likewise.
25936         * modules/unictype/ctype-alnum-tests (Files): Likewise.
25937         * modules/unictype/ctype-alpha-tests (Files): Likewise.
25938         * modules/unictype/ctype-blank-tests (Files): Likewise.
25939         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
25940         * modules/unictype/ctype-digit-tests (Files): Likewise.
25941         * modules/unictype/ctype-graph-tests (Files): Likewise.
25942         * modules/unictype/ctype-lower-tests (Files): Likewise.
25943         * modules/unictype/ctype-print-tests (Files): Likewise.
25944         * modules/unictype/ctype-punct-tests (Files): Likewise.
25945         * modules/unictype/ctype-space-tests (Files): Likewise.
25946         * modules/unictype/ctype-upper-tests (Files): Likewise.
25947         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
25948         * modules/unictype/decimal-digit-tests (Files): Likewise.
25949         * modules/unictype/digit-tests (Files): Likewise.
25950         * modules/unictype/mirror-tests (Files): Likewise.
25951         * modules/unictype/numeric-tests (Files): Likewise.
25952         * modules/unictype/property-alphabetic-tests (Files): Likewise.
25953         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
25954         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
25955         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
25956         Likewise.
25957         * modules/unictype/property-bidi-block-separator-tests (Files):
25958         Likewise.
25959         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
25960         Likewise.
25961         * modules/unictype/property-bidi-common-separator-tests (Files):
25962         Likewise.
25963         * modules/unictype/property-bidi-control-tests (Files): Likewise.
25964         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
25965         Likewise.
25966         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
25967         Likewise.
25968         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
25969         Likewise.
25970         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
25971         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
25972         Likewise.
25973         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
25974         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
25975         Likewise.
25976         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
25977         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
25978         * modules/unictype/property-bidi-segment-separator-tests (Files):
25979         Likewise.
25980         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
25981         * modules/unictype/property-byname-tests (Files): Likewise.
25982         * modules/unictype/property-combining-tests (Files): Likewise.
25983         * modules/unictype/property-composite-tests (Files): Likewise.
25984         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
25985         * modules/unictype/property-dash-tests (Files): Likewise.
25986         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
25987         * modules/unictype/property-default-ignorable-code-point-tests (Files):
25988         Likewise.
25989         * modules/unictype/property-deprecated-tests (Files): Likewise.
25990         * modules/unictype/property-diacritic-tests (Files): Likewise.
25991         * modules/unictype/property-extender-tests (Files): Likewise.
25992         * modules/unictype/property-format-control-tests (Files): Likewise.
25993         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
25994         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
25995         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
25996         * modules/unictype/property-hex-digit-tests (Files): Likewise.
25997         * modules/unictype/property-hyphen-tests (Files): Likewise.
25998         * modules/unictype/property-id-continue-tests (Files): Likewise.
25999         * modules/unictype/property-id-start-tests (Files): Likewise.
26000         * modules/unictype/property-ideographic-tests (Files): Likewise.
26001         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26002         * modules/unictype/property-ids-trinary-operator-tests (Files):
26003         Likewise.
26004         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26005         * modules/unictype/property-iso-control-tests (Files): Likewise.
26006         * modules/unictype/property-join-control-tests (Files): Likewise.
26007         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26008         * modules/unictype/property-line-separator-tests (Files): Likewise.
26009         * modules/unictype/property-logical-order-exception-tests (Files):
26010         Likewise.
26011         * modules/unictype/property-lowercase-tests (Files): Likewise.
26012         * modules/unictype/property-math-tests (Files): Likewise.
26013         * modules/unictype/property-non-break-tests (Files): Likewise.
26014         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26015         * modules/unictype/property-numeric-tests (Files): Likewise.
26016         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26017         * modules/unictype/property-other-default-ignorable-code-point-tests
26018         (Files): Likewise.
26019         * modules/unictype/property-other-grapheme-extend-tests (Files):
26020         Likewise.
26021         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26022         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26023         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26024         * modules/unictype/property-other-math-tests (Files): Likewise.
26025         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26026         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26027         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26028         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26029         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26030         * modules/unictype/property-private-use-tests (Files): Likewise.
26031         * modules/unictype/property-punctuation-tests (Files): Likewise.
26032         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26033         * modules/unictype/property-radical-tests (Files): Likewise.
26034         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26035         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26036         * modules/unictype/property-space-tests (Files): Likewise.
26037         * modules/unictype/property-terminal-punctuation-tests (Files):
26038         Likewise.
26039         * modules/unictype/property-test-tests (Files): Likewise.
26040         * modules/unictype/property-titlecase-tests (Files): Likewise.
26041         * modules/unictype/property-unassigned-code-value-tests (Files):
26042         Likewise.
26043         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26044         * modules/unictype/property-uppercase-tests (Files): Likewise.
26045         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26046         * modules/unictype/property-white-space-tests (Files): Likewise.
26047         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26048         * modules/unictype/property-xid-start-tests (Files): Likewise.
26049         * modules/unictype/property-zero-width-tests (Files): Likewise.
26050         * modules/unictype/scripts-tests (Files): Likewise.
26051         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26052         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26053         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26054         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26055         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26056         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26057         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26058         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26059         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26060         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26061         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26062         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26063         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26064         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26065         * modules/uninorm/composition-tests (Files): Likewise.
26066         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26067         * modules/uninorm/decomposition-tests (Files): Likewise.
26068         * modules/uninorm/filter-tests (Files): Likewise.
26069         * modules/uninorm/nfc-tests (Files): Likewise.
26070         * modules/uninorm/nfd-tests (Files): Likewise.
26071         * modules/uninorm/nfkc-tests (Files): Likewise.
26072         * modules/uninorm/nfkd-tests (Files): Likewise.
26073         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26074         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26075         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26076         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26077         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26078         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26079         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26080         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26081         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26082         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26083         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26084         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26085         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26086         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26087         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26088         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26089         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26090         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26091         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26092         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26093         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26094         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26095         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26096         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26097         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26098         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26099         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26100         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26101         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26102         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26103         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26104         * modules/uniwidth/u8-width-tests (Files): Likewise.
26105         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26106         * modules/uniwidth/u16-width-tests (Files): Likewise.
26107         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26108         * modules/uniwidth/u32-width-tests (Files): Likewise.
26109         * modules/uniwidth/width-tests (Files): Likewise.
26110         * modules/unlink-tests (Files): Likewise.
26111         * modules/unsetenv-tests (Files): Likewise.
26112         * modules/usleep-tests (Files): Likewise.
26113         * modules/utimens-tests (Files): Likewise.
26114         * modules/utimensat-tests (Files): Likewise.
26115         * modules/vasnprintf-posix-tests (Files): Likewise.
26116         * modules/vasnprintf-tests (Files): Likewise.
26117         * modules/vasprintf-posix-tests (Files): Likewise.
26118         * modules/vasprintf-tests (Files): Likewise.
26119         * modules/vdprintf-posix-tests (Files): Likewise.
26120         * modules/vfprintf-posix-tests (Files): Likewise.
26121         * modules/vprintf-posix-tests (Files): Likewise.
26122         * modules/vsnprintf-posix-tests (Files): Likewise.
26123         * modules/vsnprintf-tests (Files): Likewise.
26124         * modules/vsprintf-posix-tests (Files): Likewise.
26125         * modules/wcrtomb-tests (Files): Likewise.
26126         * modules/wcsnrtombs-tests (Files): Likewise.
26127         * modules/wcsrtombs-tests (Files): Likewise.
26128         * modules/wctype-tests (Files): Likewise.
26129         * modules/wcwidth-tests (Files): Likewise.
26130         * modules/xmemdup0-tests (Files): Likewise.
26131         * modules/xprintf-posix-tests (Files): Likewise.
26132         * modules/xvasprintf-tests (Files): Likewise.
26133
26134 2009-12-24  Eric Blake  <ebb9@byu.net>
26135
26136         test-nanosleep: fix typo
26137         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26138         patch.
26139         Reported by Bruno Haible.
26140
26141 2009-12-24  Bruno Haible  <bruno@clisp.org>
26142
26143         Reduce namespace pollution on glibc systems.
26144         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26145         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26146         systems.
26147         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26148         <getopt.h> on glibc systems.
26149         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26150         systems.
26151         * lib/fcntl.c: Include <unistd.h> here instead.
26152
26153 2009-12-24  Bruno Haible  <bruno@clisp.org>
26154
26155         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26156
26157 2009-12-24  Eric Blake  <ebb9@byu.net>
26158
26159         tests: add signature checks
26160         * tests/signature.h (SIGNATURE_CHECK): New file.
26161         * modules/atexit-tests (Files): Use it.
26162         * modules/btowc-tests (Files): Likewise.
26163         * modules/canonicalize-lgpl-tests (Files): Likewise.
26164         * modules/ceilf-tests (Files): Likewise.
26165         * modules/ceill-tests (Files): Likewise.
26166         * modules/chown-tests (Files): Likewise.
26167         * modules/dprintf-posix-tests (Files): Likewise.
26168         * modules/dup2-tests (Files): Likewise.
26169         * modules/dup3-tests (Files): Likewise.
26170         * modules/duplocale-tests (Files): Likewise.
26171         * modules/fchdir-tests (Files): Likewise.
26172         * modules/fcntl-tests (Files): Likewise.
26173         * modules/fdopendir-tests (Files): Likewise.
26174         * modules/fflush-tests (Files): Likewise.
26175         * modules/flock-tests (Files): Likewise.
26176         * modules/floorf-tests (Files): Likewise.
26177         * modules/floorl-tests (Files): Likewise.
26178         * modules/fnmatch-tests (Files): Likewise.
26179         * modules/fopen-tests (Files): Likewise.
26180         * modules/fprintf-posix-tests (Files): Likewise.
26181         * modules/freopen-tests (Files): Likewise.
26182         * modules/frexp-nolibm-tests (Files): Likewise.
26183         * modules/frexp-tests (Files): Likewise.
26184         * modules/frexpl-nolibm-tests (Files): Likewise.
26185         * modules/frexpl-tests (Files): Likewise.
26186         * modules/fseek-tests (Files): Likewise.
26187         * modules/fseeko-tests (Files): Likewise.
26188         * modules/fsync-tests (Files): Likewise.
26189         * modules/ftell-tests (Files): Likewise.
26190         * modules/ftello-tests (Files): Likewise.
26191         * modules/futimens-tests (Files): Likewise.
26192         * modules/getaddrinfo-tests (Files): Likewise.
26193         * modules/getcwd-tests (Files): Likewise.
26194         * modules/getdelim-tests (Files): Likewise.
26195         * modules/getdtablesize-tests (Files): Likewise.
26196         * modules/getgroups-tests (Files): Likewise.
26197         * modules/gethostname-tests (Files): Likewise.
26198         * modules/getline-tests (Files): Likewise.
26199         * modules/getopt-posix-tests (Files): Likewise.
26200         * modules/gettimeofday-tests (Files): Likewise.
26201         * modules/glob-tests (Files): Likewise.
26202         * modules/iconv-tests (Files): Likewise.
26203         * modules/inet_ntop-tests (Files): Likewise.
26204         * modules/inet_pton-tests (Files): Likewise.
26205         * modules/isblank-tests (Files): Likewise.
26206         * modules/lchown-tests (Files): Likewise.
26207         * modules/ldexpl-tests (Files): Likewise.
26208         * modules/link-tests (Files): Likewise.
26209         * modules/linkat-tests (Files): Likewise.
26210         * modules/lseek-tests (Files): Likewise.
26211         * modules/lstat-tests (Files): Likewise.
26212         * modules/mbrtowc-tests (Files): Likewise.
26213         * modules/mbsinit-tests (Files): Likewise.
26214         * modules/mbsnrtowcs-tests (Files): Likewise.
26215         * modules/mbsrtowcs-tests (Files): Likewise.
26216         * modules/memchr-tests (Files): Likewise.
26217         * modules/memcmp-tests (Files): Likewise.
26218         * modules/memmem-tests (Files): Likewise.
26219         * modules/memrchr-tests (Files): Likewise.
26220         * modules/mkdir-tests (Files): Likewise.
26221         * modules/mkfifo-tests (Files): Likewise.
26222         * modules/mkfifoat-tests (Files): Likewise.
26223         * modules/mknod-tests (Files): Likewise.
26224         * modules/nanosleep-tests (Files): Likewise.
26225         * modules/nl_langinfo-tests (Files): Likewise.
26226         * modules/obstack-printf-tests (Files): Likewise.
26227         * modules/open-tests (Files): Likewise.
26228         * modules/openat-tests (Files): Likewise.
26229         * modules/perror-tests (Files): Likewise.
26230         * modules/pipe2-tests (Files): Likewise.
26231         * modules/poll-tests (Files): Likewise.
26232         * modules/popen-tests (Files): Likewise.
26233         * modules/posix_spawn-tests (Files): Likewise.
26234         * modules/posix_spawnp-tests (Files): Likewise.
26235         * modules/pread-tests (Files): Likewise.
26236         * modules/printf-posix-tests (Files): Likewise.
26237         * modules/pty-tests (Files): Likewise.
26238         * modules/random_r-tests (Files): Likewise.
26239         * modules/rawmemchr-tests (Files): Likewise.
26240         * modules/readlink-tests (Files): Likewise.
26241         * modules/remove-tests (Files): Likewise.
26242         * modules/rename-tests (Files): Likewise.
26243         * modules/renameat-tests (Files): Likewise.
26244         * modules/rmdir-tests (Files): Likewise.
26245         * modules/round-tests (Files): Likewise.
26246         * modules/roundf-tests (Files): Likewise.
26247         * modules/roundl-tests (Files): Likewise.
26248         * modules/select-tests (Files): Likewise.
26249         * modules/setenv-tests (Files): Likewise.
26250         * modules/sigaction-tests (Files): Likewise.
26251         * modules/sleep-tests (Files): Likewise.
26252         * modules/snprintf-posix-tests (Files): Likewise.
26253         * modules/snprintf-tests (Files): Likewise.
26254         * modules/sprintf-posix-tests (Files): Likewise.
26255         * modules/stat-tests (Files): Likewise.
26256         * modules/strcasestr-tests (Files): Likewise.
26257         * modules/strchrnul-tests (Files): Likewise.
26258         * modules/strerror-tests (Files): Likewise.
26259         * modules/strsignal-tests (Files): Likewise.
26260         * modules/strstr-tests (Files): Likewise.
26261         * modules/strtod-tests (Files): Likewise.
26262         * modules/strverscmp-tests (Files): Likewise.
26263         * modules/symlink-tests (Files): Likewise.
26264         * modules/symlinkat-tests (Files): Likewise.
26265         * modules/times-tests (Files): Likewise.
26266         * modules/trunc-tests (Files): Likewise.
26267         * modules/truncf-tests (Files): Likewise.
26268         * modules/truncl-tests (Files): Likewise.
26269         * modules/tsearch-tests (Files): Likewise.
26270         * modules/uname-tests (Files): Likewise.
26271         * modules/unlink-tests (Files): Likewise.
26272         * modules/unsetenv-tests (Files): Likewise.
26273         * modules/usleep-tests (Files): Likewise.
26274         * modules/utimensat-tests (Files): Likewise.
26275         * modules/vasprintf-tests (Files): Likewise.
26276         * modules/vdprintf-posix-tests (Files): Likewise.
26277         * modules/vfprintf-posix-tests (Files): Likewise.
26278         * modules/vprintf-posix-tests (Files): Likewise.
26279         * modules/vsnprintf-posix-tests (Files): Likewise.
26280         * modules/vsnprintf-tests (Files): Likewise.
26281         * modules/vsprintf-posix-tests (Files): Likewise.
26282         * modules/wcrtomb-tests (Files): Likewise.
26283         * modules/wcsnrtombs-tests (Files): Likewise.
26284         * modules/wcsrtombs-tests (Files): Likewise.
26285         * modules/wcwidth-tests (Files): Likewise.
26286         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26287         * tests/test-isinf.c (isinf): Likewise.
26288         * tests/test-isnan.c (isnan): Likewise.
26289         * tests/test-signbit.c (signbit): Likewise.
26290         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26291         declaration, either as macro or with correct signature.
26292         (select): Ensure function under test is declared with correct
26293         signature in correct header.
26294         * tests/test-atexit.c (atexit): Likewise.
26295         * tests/test-btowc.c (btowc): Likewise.
26296         * tests/test-canonicalize-lgpl.c (realpath)
26297         (canonicalize_file_name): Likewise.
26298         * tests/test-ceilf1.c (ceilf): Likewise.
26299         * tests/test-ceill.c (ceill): Likewise.
26300         * tests/test-chown.c (chown): Likewise.
26301         * tests/test-dprintf-posix.c (dprintf): Likewise.
26302         * tests/test-dup2.c (dup2): Likewise.
26303         * tests/test-dup3.c (dup3): Likewise.
26304         * tests/test-duplocale.c (duplocale): Likewise.
26305         * tests/test-fchdir.c (fchdir): Likewise.
26306         * tests/test-fchownat.c (fchownat): Likewise.
26307         * tests/test-fcntl.c (fcntl): Likewise.
26308         * tests/test-fdopendir.c (fdopendir): Likewise.
26309         * tests/test-fflush.c (fflush): Likewise.
26310         * tests/test-flock.c (flock): Likewise.
26311         * tests/test-floorf1.c (floorf): Likewise.
26312         * tests/test-floorl.c (floorl): Likewise.
26313         * tests/test-fnmatch.c (fnmatch): Likewise.
26314         * tests/test-fopen.c (fopen): Likewise.
26315         * tests/test-fprintf-posix.c (fprintf): Likewise.
26316         * tests/test-freopen.c (freopen): Likewise.
26317         * tests/test-frexp.c (frexp): Likewise.
26318         * tests/test-frexpl.c (frexpl): Likewise.
26319         * tests/test-fseek.c (fseek): Likewise.
26320         * tests/test-fseeko.c (fseeko): Likewise.
26321         * tests/test-fstatat.c (fstatat): Likewise.
26322         * tests/test-fsync.c (fsync): Likewise.
26323         * tests/test-ftell.c (ftell): Likewise.
26324         * tests/test-ftello.c (ftello): Likewise.
26325         * tests/test-futimens.c (futimens): Likewise.
26326         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26327         (gai_strerror): Likewise.
26328         * tests/test-getcwd.c (getcwd): Likewise.
26329         * tests/test-getdelim.c (getdelim): Likewise.
26330         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26331         * tests/test-getgroups.c (getgroups): Likewise.
26332         * tests/test-gethostname.c (gethostname): Likewise.
26333         * tests/test-getline.c (getline): Likewise.
26334         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26335         Likewise.
26336         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26337         * tests/test-glob.c (glob, globfree): Likewise.
26338         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26339         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26340         * tests/test-inet_pton.c (inet_pton): Likewise.
26341         * tests/test-isblank.c (isblank): Likewise.
26342         * tests/test-lchown.c (lchown): Likewise.
26343         * tests/test-ldexpl.c (ldexpl): Likewise.
26344         * tests/test-link.c (link): Likewise.
26345         * tests/test-linkat.c (linkat): Likewise.
26346         * tests/test-lseek.c (lseek): Likewise.
26347         * tests/test-lstat.c (lstat): Likewise.
26348         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26349         * tests/test-mbsinit.c (mbsinit): Likewise.
26350         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26351         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26352         * tests/test-memchr.c (memchr): Likewise.
26353         * tests/test-memcmp.c (memcmp): Likewise.
26354         * tests/test-memmem.c (memmem): Likewise.
26355         * tests/test-memrchr.c (memrchr): Likewise.
26356         * tests/test-mkdir.c (mkdir): Likewise.
26357         * tests/test-mkdirat.c (mkdirat): Likewise.
26358         * tests/test-mkfifo.c (mkfifo): Likewise.
26359         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26360         * tests/test-mknod.c (mknod): Likewise.
26361         * tests/test-nanosleep.c (nanosleep): Likewise.
26362         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26363         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26364         Likewise.
26365         * tests/test-open.c (open): Likewise.
26366         * tests/test-openat.c (openat): Likewise.
26367         * tests/test-perror.c (perror): Likewise.
26368         * tests/test-pipe2.c (pipe2): Likewise.
26369         * tests/test-poll.c (poll): Likewise.
26370         * tests/test-popen.c (popen, pclose): Likewise.
26371         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26372         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26373         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26374         (posix_spawn_file_actions_destroy)
26375         (posix_spawn_file_actions_addclose)
26376         (posix_spawn_file_actions_addopen)
26377         (posix_spawn_file_actions_adddup2): Likewise.
26378         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26379         * tests/test-pread.c (pread): Likewise.
26380         * tests/test-printf-posix.c (printf): Likewise.
26381         * tests/test-pty.c (openpty, forkpty): Likewise.
26382         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26383         (random_r): Likewise.
26384         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26385         * tests/test-readlink.c (readlink): Likewise.
26386         * tests/test-remove.c (remove): Likewise.
26387         * tests/test-rename.c (rename): Likewise.
26388         * tests/test-renameat.c (renameat): Likewise.
26389         * tests/test-rmdir.c (rmdir): Likewise.
26390         * tests/test-round1.c (round): Likewise.
26391         * tests/test-roundf1.c (roundf): Likewise.
26392         * tests/test-roundl.c (roundl): Likewise.
26393         * tests/test-setenv.c (setenv): Likewise.
26394         * tests/test-sigaction.c (sigaction): Likewise.
26395         * tests/test-sleep.c (sleep): Likewise.
26396         * tests/test-snprintf.c (snprintf): Likewise.
26397         * tests/test-sprintf-posix.c (sprintf): Likewise.
26398         * tests/test-stat.c (stat): Likewise.
26399         * tests/test-stpncpy.c (stpncpy): Likewise.
26400         * tests/test-strcasestr.c (strcasestr): Likewise.
26401         * tests/test-strchrnul.c (strchrnul): Likewise.
26402         * tests/test-strerror.c (strerror): Likewise.
26403         * tests/test-strsignal.c (strsignal): Likewise.
26404         * tests/test-strstr.c (strstr): Likewise.
26405         * tests/test-strtod.c (strtod): Likewise.
26406         * tests/test-strverscmp.c (strverscmp): Likewise.
26407         * tests/test-symlink.c (symlink): Likewise.
26408         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26409         * tests/test-times.c (times): Likewise.
26410         * tests/test-trunc1.c (trunc): Likewise.
26411         * tests/test-truncf1.c (truncf): Likewise.
26412         * tests/test-truncl.c (truncl): Likewise.
26413         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26414         Likewise.
26415         * tests/test-uname.c (uname): Likewise.
26416         * tests/test-unlink.c (unlink): Likewise.
26417         * tests/test-unlinkat.c (unlinkat): Likewise.
26418         * tests/test-unsetenv.c (unsetenv): Likewise.
26419         * tests/test-usleep.c (usleep): Likewise.
26420         * tests/test-utimensat.c (utimensat): Likewise.
26421         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26422         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26423         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26424         * tests/test-vprintf-posix.c (vprintf): Likewise.
26425         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26426         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26427         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26428         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26429         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26430         * tests/test-wcwidth.c (wcwidth): Likewise.
26431
26432         build: pull in conditional headers during GNULIB_POSIXCHECK
26433         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26434         definitions from any conditionally-included headers.
26435         * lib/stdlib.in.h (includes): Likewise.
26436         * lib/unistd.in.h (includes): Likewise.
26437
26438 2009-12-24  Bruno Haible  <bruno@clisp.org>
26439
26440         * tests/test-argv-iter.c: Include header file being tested immediately
26441         after config.h.
26442         * tests/test-base64.c: Likewise.
26443         * tests/test-flock.c: Likewise.
26444         * tests/test-fsync.c: Likewise.
26445         * tests/test-getdate.c: Likewise.
26446         * tests/test-getndelim2.c: Likewise.
26447         * tests/test-isfinite.c: Likewise.
26448         * tests/test-isinf.c: Likewise.
26449         * tests/test-strerror.c: Likewise.
26450         * tests/test-strsignal.c: Likewise.
26451
26452 2009-12-23  Eric Blake  <ebb9@byu.net>
26453
26454         unistd: work around cygwin bug
26455         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26456         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26457         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26458
26459 2009-12-23  Bruno Haible  <bruno@clisp.org>
26460
26461         localename: More tests.
26462         * tests/test-localename.c (SIZEOF): New macro.
26463         (categories): New variable.
26464         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26465         test_locale_name_default): Add test w.r.t. thread locale.
26466         (test_locale_name_thread): New function.
26467         (main): Invoke it.
26468
26469         localename: Make aware of thread locale.
26470         * lib/localename.h (gl_locale_name_thread): New declaration.
26471         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
26472         behaviour with respect to thread locale.
26473         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
26474         <langinfo.h>, glthread/lock.h.
26475         (SIZE_BITS): New macro.
26476         (string_hash): New function.
26477         (struct hash_node): New type.
26478         (HASH_TABLE_SIZE): New macro.
26479         (struniq_hash_table, struniq_lock): New variables.
26480         (struniq): New function.
26481         (gl_locale_name_thread): New function.
26482         (gl_locale_name): Invoke it.
26483         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
26484         * modules/localename (Depends-on): Add lock.
26485         Reported by Mike Gran <spk121@yahoo.com>.
26486
26487 2009-12-23  Eric Blake  <ebb9@byu.net>
26488
26489         va-args: new module
26490         * modules/va-args: New file.
26491         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
26492         * MODULES.html.sh (Core language properties): Mention it.
26493
26494         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
26495         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
26496         named alias for __attribute__((__unused__)).
26497         * lib/chown.c: Update client.
26498         * lib/fchmodat.c: Likewise.
26499         * lib/fts.c: Likewise.
26500         * lib/getdate.y: Likewise.
26501         * lib/getgroups.c: Likewise.
26502         * lib/getopt.c: Likewise.
26503         * lib/getugroups.c: Likewise.
26504         * lib/mkdir.c: Likewise.
26505         * lib/mkfifo.c: Likewise.
26506         * lib/mkfifoat.c: Likewise.
26507         * lib/mknod.c: Likewise.
26508         * lib/mknodat.c: Likewise.
26509         * lib/readlink.c: Likewise.
26510         * lib/se-context.in.h: Likewise.
26511         * lib/se-selinux.in.h: Likewise.
26512         * lib/sockets.c: Likewise.
26513         * lib/symlink.c: Likewise.
26514         * lib/symlinkat.c: Likewise.
26515         * lib/unicodeio.c: Likewise.
26516         * lib/unistr.h: Likewise.
26517         * tests/test-areadlink.c: Likewise.
26518         * tests/test-areadlinkat.c: Likewise.
26519         * tests/test-filenamecat.c: Likewise.
26520         * tests/test-fseeko.c: Likewise.
26521         * tests/test-ftello.c: Likewise.
26522         * tests/test-getdate.c: Likewise.
26523         * tests/test-getgroups.c: Likewise.
26524         * tests/test-gethostname.c: Likewise.
26525         * tests/test-quotearg.c: Likewise.
26526         * tests/test-version-etc.c: Likewise.
26527         * tests/test-xalloc-die.c: Likewise.
26528         * tests/test-xfprintf-posix.c: Likewise.
26529         * tests/test-xprintf-posix.c: Likewise.
26530         * tests/test-xvasprintf.c: Likewise.
26531
26532         tests: avoid compiler warnings
26533         * tests/test-fcntl.c (main): Delete unused parameters.
26534         * tests/test-freopen-safer.c (main): Likewise.
26535         * tests/test-xalloc-die.c (main): Mark unused parameters.
26536         * tests/test-fseeko.c (main): Likewise.
26537         * tests/test-ftello.c (main): Likewise.
26538         * tests/test-nanosleep.c (main): Avoid declaration warning.
26539         * tests/test-sleep.c (main): Likewise.
26540         * tests/test-unsetenv.c (main): Silence warning about string
26541         literal.
26542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26543
26544 2009-12-23  Bruno Haible  <bruno@clisp.org>
26545
26546         * tests/test-localename.c (test_locale_name): New function, extracted
26547         from main. Also test mixed situations.
26548         (test_locale_name_posix, test_locale_name_environ,
26549         test_locale_name_default): New functions.
26550         (main): Invoke them all.
26551         * modules/localename-tests (configure.ac): Test for newlocale.
26552
26553 2009-12-23  Bruno Haible  <bruno@clisp.org>
26554
26555         unistd: Ensure getcwd gets declared before being overridden.
26556         * lib/unistd.in.h: Conditionally include <io.h>.
26557
26558 2009-12-22  Bruno Haible  <bruno@clisp.org>
26559
26560         wchar: Diagnose broken combination of glibc and gcc versions and flags.
26561         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
26562         (gl_WCHAR_H): Invoke it.
26563         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
26564         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
26565         Reported by Karl Berry <karl@freefriends.org>.
26566
26567 2009-12-22  Eric Blake  <ebb9@byu.net>
26568
26569         math, unistd: avoid redundant includes
26570         * lib/math.in.h (isnan): No need to re-include <math.h>.
26571         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
26572
26573         getsubopt: work around cygwin bug
26574         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
26575         avoid conflicting with system getsubopt.
26576         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
26577         bug.
26578
26579         getopt: synchronize from glibc
26580         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
26581         parameter order.  Adjust all callers.
26582         (_getopt_internal_r, main): Adjust quoting in error messages.
26583         Drop considerations for outdated POSIX 1003.2 error message.
26584         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
26585         callers.
26586         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
26587
26588         test-getopt: test stderr behavior
26589         * modules/getopt-posix-tests (Depends-on): Add dup2.
26590         * tests/test-getopt.c (ASSERT): Avoid stderr.
26591         (main): Move stderr to a temporary file.
26592         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
26593         Instead, add parameter to inform caller if output occurred.
26594         (test_getopt): Adjust all existing tests to expect silence, and
26595         add new tests of leading ":".
26596         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26597         glibc shortcomings with leading "-:" or "+:" in optstring.
26598         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26599         Likewise.
26600         * doc/posix-functions/getopt.texi (getopt): Likewise.
26601
26602         test-getopt: enhance test
26603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
26604         supports optind=0.
26605         * tests/test-getopt.c (OPTIND_MIN): Move...
26606         * tests/test-getopt.h (OPTIND_MIN): ...here.
26607         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
26608         Require that optind=0 works, since modern BSD supports it in
26609         addition to optreset, and since coreutils expects it.
26610         (test_getopt_long_only): New test.
26611         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
26612         glibc shortcomings with 'W;', and enforcement of optind=0.
26613         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26614         Likewise.
26615
26616 2009-12-21  Bruno Haible  <bruno@clisp.org>
26617
26618         localename: Improvements for MacOS X and Cygwin.
26619         * lib/localename.h (gl_locale_name_environ): New declaration.
26620         * lib/localename.c (gl_locale_name_environ): New function, extracted from
26621         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
26622         (gl_locale_name_posix): Invoke it.
26623         (gl_locale_name_default): Add comments. Use Windows native API also on
26624         Cygwin.
26625
26626 2009-12-21  Bruno Haible  <bruno@clisp.org>
26627
26628         Update list of Win32 locale ids.
26629         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
26630         (LANG_SAMI): Renamed from LANG_SAAMI.
26631         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
26632         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
26633         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
26634         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
26635         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
26636         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
26637         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
26638         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
26639         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
26640         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
26641         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
26642         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
26643         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
26644         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
26645         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
26646         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
26647         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
26648         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
26649         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
26650         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
26651         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
26652         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
26653         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
26654         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
26655         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
26656         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
26657         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
26658         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
26659         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
26660         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
26661         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
26662         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
26663         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
26664         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
26665         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
26666         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
26667         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
26668         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
26669         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
26670         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
26671         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
26672         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
26673         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
26674         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
26675         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
26676         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
26677         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
26678         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
26679         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
26680         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
26681         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
26682         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
26683         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
26684         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
26685         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
26686         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
26687         Add more languages and countries for Sami, Sorbian. Add more countries
26688         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
26689         for Pashto. Change country for Syriac, Tswana.
26690
26691 2009-12-21  Eric Blake  <ebb9@byu.net>
26692
26693         test-utimens: avoid spurious failure
26694         * tests/test-chown.h (nap): Factor...
26695         * tests/nap.h: ...into new file.
26696         * tests/test-lchown.h (nap): Avoid duplication.
26697         * tests/test-utimens-common.h (nap): Use shared implementation,
26698         necessary on file systems with 1-second resolution.
26699         * modules/chown-tests (Files): Include new file.
26700         * modules/fdutimensat-tests (Files): Likewise.
26701         * modules/futimens-tests (Files): Likewise.
26702         * modules/lchown-tests (Files): Likewise.
26703         * modules/openat-tests (Files): Likewise.
26704         * modules/utimens-tests (Files): Likewise.
26705         * modules/utimensat-tests (Files): Likewise.
26706
26707 2009-12-19  Eric Blake  <ebb9@byu.net>
26708
26709         futimens, utimensat: work around Linux bug
26710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
26711         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26712         * lib/utimensat.c (rpl_utimensat): Work around it.
26713         * lib/futimens.c (rpl_futimens): Adjust comment.
26714
26715         utimens: work around Linux ctime bug
26716         * lib/utimens.c (detect_ctime_bug): New helper function.
26717         (update_timespec): Differentiate between workaround needed for
26718         this bug vs. what is needed for systems that lack utimensat.
26719         (fdutimens, lutimens): Work around bug.
26720
26721         utimens: check for ctime update
26722         * tests/test-utimens-common.h (check_ctime): Define.
26723         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
26724         * tests/test-futimens.h (test_futimens): Likewise.
26725         * tests/test-lutimens.h (test_lutimens): Likewise.
26726         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26727         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26728
26729 2009-12-19  Bruno Haible  <bruno@clisp.org>
26730
26731         dprintf-posix: Check against memory leak fixed on 2009-12-15.
26732         * tests/test-dprintf-posix2.sh: New file.
26733         * tests/test-dprintf-posix2.c: New file.
26734         * modules/dprintf-posix-tests (Files): Add them.
26735         (configure.ac): Check for getrlimit and setrlimit.
26736         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26737
26738 2009-12-19  Bruno Haible  <bruno@clisp.org>
26739
26740         fprintf-posix: Check against memory leak fixed on 2009-12-15.
26741         * tests/test-fprintf-posix3.sh: New file.
26742         * tests/test-fprintf-posix3.c: New file.
26743         * modules/fprintf-posix-tests (Files): Add them.
26744         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
26745
26746 2009-12-19  Eric Blake  <ebb9@byu.net>
26747
26748         dirfd: fix prototype
26749         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
26750         * lib/dirfd.c (dirfd): Likewise.
26751
26752         canonicalize: reduce memory usage
26753         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
26754         allocation to size.
26755         Reported by Solar Designer <solar@openwall.com>.
26756
26757 2009-12-19  Bruno Haible  <bruno@clisp.org>
26758
26759         New module attribute 'Applicability'.
26760         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
26761         * gnulib-tool: New option --extract-applicability.
26762         (func_usage): Document it.
26763         (sed_extract_prog): Recognize it.
26764         (func_get_applicability): New function.
26765         (func_import): Generalize handling of 'link-warning' module.
26766         * modules/link-warning (Applicability): New section.
26767         * modules/arg-nonnull (Applicability): New section.
26768         Repoted by Simon Josefsson <simon@josefsson.org>.
26769
26770 2009-12-19  Bruno Haible  <bruno@clisp.org>
26771
26772         fflush: tweak
26773         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
26774         * lib/fseeko.c (rpl_fseeko): Likewise.
26775
26776 2009-12-16  JosĂ© E. Marchesi  <jemarch@gnu.org>  (tiny change)
26777
26778         * lib/gl_list.h: Fix typo in comment.
26779
26780 2009-12-16  Eric Blake  <ebb9@byu.net>
26781
26782         fcntl: use to simplify other modules
26783         * modules/cloexec (Depends-on): Add fcntl.
26784         * modules/fchdir (Depends-on): Likewise.
26785         * modules/fd-safer-flag (Depends-on): Likewise.
26786         * modules/unistd-safer (Depends-on): Likewise.
26787         * modules/dup3 (configure.ac): Set module indicator.
26788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
26789         missing.
26790         * lib/fchdir.c (_gl_register_dup): Fix comment.
26791         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
26792         * lib/dup-safer.c (dup_safer): Likewise.
26793         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26794         * lib/dup3.c (dup3): Likewise.
26795         * tests/test-fchdir.c (main): Enhance test.
26796         Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ă­k.
26797
26798         fcntl: port portions of fcntl to mingw
26799         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
26800         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
26801         replacement for mingw.
26802         * modules/fcntl (Description): Update.
26803         (Depends-on): Add dup2.
26804         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
26805         * modules/fcntl-h (Makefile.am): Substitute it.
26806         * lib/fcntl.in.h (fcntl): Update declaration.
26807         (F_DUPFD, F_GETFD): New macros, when needed.
26808         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26809         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
26810         * tests/test-fcntl.c (check_flags, main): Enhance test for items
26811         we now guarantee.
26812
26813         fcntl: work around cygwin bug in F_DUPFD
26814         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
26815         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
26816         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
26817         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
26818         * doc/posix-functions/fcntl.texi (fcntl): Document it.
26819
26820         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
26821         * modules/fcntl (Files): List new files.
26822         (configure.ac): Run a test.
26823         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
26824         * lib/fcntl.c (rpl_fcntl): Likewise.
26825         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
26826         (gl_FCNTL_H): Always replace fcntl.h.
26827         * modules/fcntl-h (Makefile.am): Substitute witnesses.
26828         * lib/fcntl.in.h (fcntl): Declare replacement.
26829         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
26830         needed, plus a witness.
26831         * doc/posix-functions/fcntl.texi (fcntl): Document this.
26832         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26833         * tests/test-fcntl.c: New file.
26834         * modules/fcntl-tests: Likewise.
26835
26836         binary-io: avoid potential compilation warning
26837         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
26838         directives.
26839
26840         fflush: avoid compilation error on NetBSD
26841         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
26842         between off_t and fpos_t, since the latter is sometimes a struct.
26843         * lib/fseeko.c (rpl_fseeko): Likewise.
26844         Reported by Alexander Nasonov <alnsn@yandex.ru>.
26845
26846 2009-12-15  Eric Blake  <ebb9@byu.net>
26847
26848         fcntl-h, stdio, sys_ioctl: fix declarations
26849         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
26850         function must not take arguments.
26851         * lib/sys_ioctl.in.h (ioctl): Likewise.
26852         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
26853         (open): Add a link warning.
26854
26855 2009-12-15  Jim Meyering  <meyering@redhat.com>
26856
26857         areadlink, areadlink-with-size: relax license to LGPLv2+
26858         * modules/areadlink (License): Relax to LGPLv2+.
26859         * modules/areadlink-with-size (License): Likewise.
26860
26861 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
26862             Bruno Haible  <bruno@clisp.org>
26863
26864         *printf: Fix memory leak.
26865         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
26866         * lib/vfprintf.c (vfprintf): Likewise.
26867         * lib/dprintf.c (dprintf): Likewise.
26868         * lib/vdprintf.c (vdprintf): Likewise.
26869
26870 2009-12-14  Eric Blake  <ebb9@byu.net>
26871
26872         accept4: adjust module dependencies
26873         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
26874
26875         utimens: one more try at avoiding compiler warning
26876         * lib/utimens.c (lutimens): Lower scope of result.
26877
26878 2009-12-13  Bruno Haible  <bruno@clisp.org>
26879
26880         Move the malloc checking from module 'list' to new module 'xlist'.
26881         * modules/xlist: New file.
26882         * lib/gl_xlist.h: New file.
26883         * lib/gl_xlist.c: New file.
26884         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
26885         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
26886         gl_list_add_last, gl_list_add_before, gl_list_add_after,
26887         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
26888         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
26889         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
26890         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
26891         gl_sortedlist_nx_add): New declarations.
26892         (struct gl_list_implementation): Rename and change methods accordingly.
26893         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
26894         (gl_list_nx_create): Renamed from gl_list_create.
26895         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26896         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26897         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26898         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26899         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26900         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26901         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26902         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26903         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
26904         gl_list_create_empty.
26905         (gl_list_nx_create): Renamed from gl_list_create.
26906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
26907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
26908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
26909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
26910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
26911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
26912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
26913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
26914         * lib/gl_array_list.c: Don't include xalloc.h.
26915         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
26916         NULL upon out-of-memory.
26917         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
26918         out-of-memory.
26919         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
26920         Change return type to 'int'.
26921         (gl_array_nx_set_at): Renamed from gl_array_set_at.
26922         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26923         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
26924         upon out-of-memory.
26925         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
26926         upon out-of-memory.
26927         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
26928         upon out-of-memory.
26929         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
26930         upon out-of-memory.
26931         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
26932         out-of-memory.
26933         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
26934         Update.
26935         (gl_array_list_implementation): Update.
26936         * lib/gl_carray_list.c: Don't include xalloc.h.
26937         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
26938         Return NULL upon out-of-memory.
26939         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
26940         out-of-memory.
26941         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
26942         Change return type to 'int'.
26943         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
26944         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
26945         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
26946         upon out-of-memory.
26947         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
26948         upon out-of-memory.
26949         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
26950         out-of-memory.
26951         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
26952         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
26953         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
26954         Update.
26955         (gl_carray_list_implementation): Update.
26956         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
26957         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
26958         gl_linked_create_empty. Return NULL upon out-of-memory.
26959         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
26960         out-of-memory.
26961         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
26962         Change return type to 'int'. Return -1 upon out-of-memory.
26963         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
26964         out-of-memory.
26965         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
26966         upon out-of-memory.
26967         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
26968         upon out-of-memory.
26969         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
26970         NULL upon out-of-memory.
26971         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
26972         upon out-of-memory.
26973         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
26974         out-of-memory.
26975         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
26976         Update.
26977         * lib/gl_linked_list.c: Don't include xalloc.h.
26978         (gl_linked_list_implementation): Update.
26979         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
26980         (add_to_bucket): Change return type to 'int'.
26981         (gl_linkedhash_list_implementation): Update.
26982         * lib/gl_anytree_list1.h (free_subtree): New function.
26983         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
26984         gl_tree_create_empty. Return NULL upon out-of-memory.
26985         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
26986         Change return type to 'int'. Return -1 upon out-of-memory.
26987         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
26988         out-of-memory.
26989         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
26990         (gl_tree_remove_node): New function, moved here from
26991         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
26992         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
26993         Update.
26994         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
26995         malloc, not xmalloc. Return NULL upon out-of-memory.
26996         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
26997         out-of-memory.
26998         (gl_tree_remove_node_from_tree): New function, extracted from
26999         gl_tree_remove_node.
27000         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27001         upon out-of-memory.
27002         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27003         out-of-memory.
27004         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27005         upon out-of-memory.
27006         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27007         upon out-of-memory.
27008         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27009         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27010         not xmalloc. Return NULL upon out-of-memory.
27011         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27012         out-of-memory.
27013         (gl_tree_remove_node_from_tree): New function, extracted from
27014         gl_tree_remove_node.
27015         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27016         upon out-of-memory.
27017         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27018         out-of-memory.
27019         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27020         upon out-of-memory.
27021         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27022         upon out-of-memory.
27023         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27024         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27025         gl_anytree_list1.h before gl_anyavltree_list2.h.
27026         (gl_avltree_list_implementation): Update.
27027         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27028         gl_anytree_list1.h before gl_anyavltree_list2.h.
27029         (gl_rbtree_list_implementation): Update.
27030         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27031         Change return type to 'int'. Return -1 upon out-of-memory. Use
27032         __builtin_expect.
27033         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27034         (gl_avltreehash_list_implementation): Update.
27035         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27036         (gl_rbtreehash_list_implementation): Update.
27037         * modules/array-list (Depends-on): Remove xalloc.
27038         * modules/carray-list (Depends-on): Likewise.
27039         * modules/linked-list (Depends-on): Likewise.
27040         * modules/linkedhash-list (Depends-on): Likewise.
27041         * modules/avltree-list (Depends-on): Likewise.
27042         * modules/rbtree-list (Depends-on): Likewise.
27043         * modules/avltreehash-list (Depends-on): Likewise.
27044         * modules/rbtreehash-list (Depends-on): Likewise.
27045
27046         * modules/xsublist: New file.
27047         * lib/gl_xsublist.h: New file.
27048         * lib/gl_xsublist.c: New file.
27049         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27050         (gl_sublist_nx_create): New declaration.
27051         * lib/gl_sublist.c: Don't include xalloc.h.
27052         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27053         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27054         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27055         Change return type to 'int'. Return -1 upon out-of-memory.
27056         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27057         upon out-of-memory.
27058         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27059         NULL upon out-of-memory.
27060         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27061         upon out-of-memory.
27062         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27063         NULL upon out-of-memory.
27064         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27065         NULL upon out-of-memory.
27066         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27067         upon out-of-memory.
27068         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27069         (gl_sublist_list_implementation): Update.
27070         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27071         upon out-of-memory.
27072         * modules/sublist (Depends-on): Remove xalloc.
27073
27074         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27075         * tests/test-carray_list.c: Likewise.
27076         * tests/test-linked_list.c: Likewise.
27077         * tests/test-linkedhash_list.c: Likewise.
27078         * tests/test-avltree_list.c: Likewise.
27079         * tests/test-rbtree_list.c: Likewise.
27080         * tests/test-avltreehash_list.c: Likewise.
27081         * tests/test-rbtreehash_list.c: Likewise.
27082         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27083         * modules/carray-list-tests (Makefile.am): Likewise.
27084         * modules/linked-list-tests (Makefile.am): Likewise.
27085         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27086         * modules/avltree-list-tests (Makefile.am): Likewise.
27087         * modules/rbtree-list-tests (Makefile.am): Likewise.
27088         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27089         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27090
27091         * NEWS: Mention the changes.
27092
27093         * lib/clean-temp.c: Include gl_xlist.h.
27094         * modules/clean-temp (Depends-on): Add xlist.
27095
27096         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27097         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27098
27099         * tests/test-array_oset.c: Include gl_xlist.h.
27100         * modules/array-oset-tests (Depends-on): Add xlist.
27101
27102         Reported by JosĂ© E. Marchesi <jemarch@gnu.org>.
27103
27104 2009-12-13  Bruno Haible  <bruno@clisp.org>
27105
27106         Move the malloc checking from module 'oset' to new module 'xoset'.
27107         * modules/xoset: New file.
27108         * lib/gl_xoset.h: New file.
27109         * lib/gl_xoset.c: New file.
27110         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27111         declarations.
27112         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27113         (struct gl_oset_implementation): Rename and change methods accordingly.
27114         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27115         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27116         'int'. Mark as __warn_unused_result__.
27117         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27118         gl_oset_create_empty.
27119         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27120         'int'.
27121         * lib/gl_array_oset.c: Don't include xalloc.h.
27122         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27123         malloc, not xmalloc.
27124         (grow): Change return type to 'int'. Don't call xalloc_die.
27125         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27126         to 'int'.
27127         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27128         'int'.
27129         (gl_array_oset_implementation): Update.
27130         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27131         gl_tree_create_empty.
27132         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27133         'int'.
27134         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27135         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27136         xmalloc.
27137         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27138         not xmalloc.
27139         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27140         xmalloc.
27141         (gl_avltree_oset_implementation): Update.
27142         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27143         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27144         xmalloc.
27145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27146         not xmalloc.
27147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27148         xmalloc.
27149         (gl_rbtree_oset_implementation): Update.
27150         * modules/array-oset (Depends-on): Remove xalloc.
27151         * modules/avltree-oset (Depends-on): Likewise.
27152         * modules/rbtree-oset (Depends-on): Likewise.
27153         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27154         * tests/test-avltree_oset.c: Likewise.
27155         * tests/test-rbtree_oset.c: Likewise.
27156         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27157         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27158         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27159         * NEWS: Mention the change.
27160
27161 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27162
27163         maint.mk: allow a project to override release-prep commands
27164         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27165         commands into a new rule.
27166         (release-prep): New rule.
27167         (release-prep-hook): New overridable variable.
27168
27169 2009-12-13  Bruno Haible  <bruno@clisp.org>
27170
27171         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27172
27173 2009-12-13  Jim Meyering  <meyering@redhat.com>
27174
27175         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27176         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27177
27178 2009-12-12  Bruno Haible  <bruno@clisp.org>
27179
27180         duplocale: Tweak.
27181         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27182
27183 2009-12-12  Karl Berry  <karl@gnu.org>
27184
27185         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27186
27187 2009-12-12  Bruno Haible  <bruno@clisp.org>
27188
27189         * m4/po.m4: Undo incorrect untabification.
27190
27191 2009-12-12  Bruno Haible  <bruno@clisp.org>
27192
27193         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27194         * modules/c-strtod (Depends-on): Add locale.
27195         * modules/c-strtold (Depends-on): Likewise.
27196
27197 2009-12-12  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27200
27201 2009-12-11  Eric Blake  <ebb9@byu.net>
27202
27203         setenv: relax requirement in light of POSIX ruling
27204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27205         not NULL.
27206         * tests/test-setenv.c (main): Relax test.
27207         * tests/test-unsetenv.c (main): Likewise.
27208         * doc/posix-functions/setenv.texi (setenv): Document this.
27209         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27210
27211 2009-12-11  Bruno Haible  <bruno@clisp.org>
27212
27213         New module 'fd-safer-flag'.
27214         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27215         * lib/dup-safer.c (dup_safer_flag): Remove function.
27216         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27217         * lib/fd-safer.c (fd_safer_flag): Remove function.
27218         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27219         * modules/cloexec (configure.ac): Drop indicator macro.
27220         * modules/fd-safer-flag: New file.
27221         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27222         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27223         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27224
27225 2009-12-11  Bruno Haible  <bruno@clisp.org>
27226
27227         Tests for module 'nl_langinfo'.
27228         * modules/nl_langinfo-tests: New file.
27229         * tests/test-nl_langinfo.sh: New file.
27230         * tests/test-nl_langinfo.c: New file.
27231
27232         New module 'nl_langinfo'.
27233         * lib/nl_langinfo.c: New file.
27234         * m4/nl_langinfo.m4: New file.
27235         * modules/nl_langinfo: New file.
27236         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27237
27238 2009-12-11  Bruno Haible  <bruno@clisp.org>
27239
27240         Tests for module 'langinfo'.
27241         * modules/langinfo-tests: New file.
27242         * tests/test-langinfo.c: New file.
27243
27244         New module 'langinfo'.
27245         * lib/langinfo.in.h: New file.
27246         * m4/langinfo_h.m4: New file.
27247         * modules/langinfo: New file.
27248         * doc/posix-headers/langinfo.texi: Mention the new module.
27249
27250 2009-12-11  Bruno Haible  <bruno@clisp.org>
27251
27252         * lib/config.charset: Untabify.
27253
27254 2009-12-11  Bruno Haible  <bruno@clisp.org>
27255
27256         * modules/unistd-safer (configure.ac): Drop indicator macro.
27257
27258 2009-12-11  Bruno Haible  <bruno@clisp.org>
27259
27260         Move pipe2-safer code to its own file.
27261         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27262         * lib/pipe-safer.c (pipe2_safer): Remove function.
27263         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27264         (Makefile.am): Add it to lib_SOURCES.
27265
27266 2009-12-10  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27269
27270 2009-12-10  Bruno Haible  <bruno@clisp.org>
27271
27272         Declare which arguments expect non-NULL values, for GCC and clang.
27273         * build-aux/arg-nonnull.h: New file.
27274         * modules/arg-nonnull: New file.
27275         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27276         (inet_ntop, inet_pton): Use it.
27277         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27278         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27279         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27280         (open, openat): Use it.
27281         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27282         (fnmatch): Use it.
27283         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27284         (getopt, getopt_long, getopt_long_only): Use it.
27285         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27286         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27287         Use it.
27288         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27289         (iconv_open): Use it.
27290         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27291         (strtoimax, strtoumax): Use it.
27292         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27293         (duplocale): Use it.
27294         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27295         (frexp, frexpl): Use it.
27296         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27297         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27298         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27299         (tsearch, tfind, tdelete, twalk): Use it.
27300         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27301         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27302         sigpending): Use it.
27303         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27304         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27305         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27306         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27307         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27308         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27309         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27310         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27311         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27312         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27313         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27314         Use it.
27315         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27316         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27317         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27318         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27319         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27320         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27321         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27322         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27323         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27324         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27325         strtoull, unsetenv): Use it.
27326         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27327         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27328         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27329         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27330         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27331         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27332         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27333         (strcasecmp, strncasecmp): Use it.
27334         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27335         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27336         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27337         rpl_setsockopt): Use it.
27338         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27339         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27340         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27341         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27342         (gettimeofday): Use it.
27343         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27344         (times): Use it.
27345         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27346         (uname): Use it.
27347         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27348         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27349         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27350         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27351         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27352         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27353         unlinkat, write): Use it.
27354         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27355         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27356         * lib/argv-iter.h: Include arg-nonnull.h.
27357         (_ATTRIBUTE_NONNULL_): Remove macro.
27358         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27359         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27360         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27361         optimization.
27362         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27363         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27364         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27365         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27366         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27367         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27368         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27369         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27370         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27371         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27372         * modules/dirent (Depends-on): Add arg-nonnull.
27373         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27374         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27375         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27376         * modules/fnmatch (Depends-on): Add arg-nonnull.
27377         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27378         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27379         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27380         * modules/glob (Depends-on): Add arg-nonnull.
27381         (Makefile.am): Insert arg-nonnull.h into glob.h.
27382         * modules/iconv_open (Depends-on): Add arg-nonnull.
27383         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27384         * modules/inttypes (Depends-on): Add arg-nonnull.
27385         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27386         * modules/locale (Depends-on): Add arg-nonnull.
27387         (Makefile.am): Insert arg-nonnull.h into locale.h.
27388         * modules/math (Depends-on): Add arg-nonnull.
27389         (Makefile.am): Insert arg-nonnull.h into math.h.
27390         * modules/netdb (Depends-on): Add arg-nonnull.
27391         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27392         * modules/search (Depends-on): Add arg-nonnull.
27393         (Makefile.am): Insert arg-nonnull.h into search.h.
27394         * modules/signal (Depends-on): Add arg-nonnull.
27395         (Makefile.am): Insert arg-nonnull.h into signal.h.
27396         * modules/spawn (Depends-on): Add arg-nonnull.
27397         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27398         * modules/stdio (Depends-on): Add arg-nonnull.
27399         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27400         * modules/stdlib (Depends-on): Add arg-nonnull.
27401         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27402         * modules/string (Depends-on): Add arg-nonnull.
27403         (Makefile.am): Insert arg-nonnull.h into string.h.
27404         * modules/strings (Depends-on): Add arg-nonnull.
27405         (Makefile.am): Insert arg-nonnull.h into strings.h.
27406         * modules/sys_socket (Depends-on): Add arg-nonnull.
27407         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27408         * modules/sys_stat (Depends-on): Add arg-nonnull.
27409         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27410         * modules/sys_time (Depends-on): Add arg-nonnull.
27411         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27412         * modules/sys_times (Depends-on): Add arg-nonnull.
27413         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27414         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27415         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27416         * modules/time (Depends-on): Add arg-nonnull.
27417         (Makefile.am): Insert arg-nonnull.h into time.h.
27418         * modules/unistd (Depends-on): Add arg-nonnull.
27419         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27420         * modules/wchar (Depends-on): Add arg-nonnull.
27421         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27422         * modules/argv-iter (Depends-on): Add arg-nonnull.
27423         * tests/test-canonicalize.c (null_ptr): New function.
27424         (main): Use it.
27425         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27426         (main): Use it.
27427         * tests/test-memmem.c (null_ptr): New function.
27428         (main): Use it.
27429         Reported by Jim Meyering.
27430
27431 2009-12-10  Bruno Haible  <bruno@clisp.org>
27432
27433         Use spaces for indentation, not tabs.
27434         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27435         * m4/*.m4: Untabify.
27436         * build-aux/*.h: Untabify.
27437         * tests/**/*.[hc]: Untabify.
27438         * README: New section "Indent with spaces, not TABs", based on
27439         coreutils/HACKING and comments by PĂ¡draig Brady and Paolo Bonzini.
27440         * NEWS: Mention the change.
27441
27442 2009-12-10  Bruno Haible  <bruno@clisp.org>
27443
27444         pty test: Fix link error.
27445         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27446         test_pty_LDADD.
27447
27448 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27449
27450         * modules/pty: New file.
27451         * modules/pty-tests: New file.
27452         * m4/pty.m4: New file.
27453         * tests/test-pty.c: New file.
27454         * doc/glibc-headers/pty.texi: Modified.
27455         * doc/glibc-functions/forkpty.texi: Modified.
27456         * doc/glibc-functions/openpty.texi: Modified.
27457
27458 2009-12-10  Bruno Haible  <bruno@clisp.org>
27459
27460         Avoid syntax error in C++ mode.
27461         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27462
27463 2009-12-10  Bruno Haible  <bruno@clisp.org>
27464
27465         Use sed with option -e.
27466         * gnulib-tool (func_version, func_emit_copyright_notice,
27467         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27468         option -e to sed.
27469         * modules/link-warning (Makefile.am): Likewise.
27470
27471 2009-12-10  Jim Meyering  <meyering@redhat.com>
27472
27473         mgetgroups: do not write bytes beyond end of malloc'd buffer
27474         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
27475         username, we call getgroups with a one-element-shorter buffer,
27476         but still told it the length was original, max_n_groups.
27477
27478 2009-12-09  Eric Blake  <ebb9@byu.net>
27479
27480         cloexec: relax license
27481         * modules/cloexec (Maintainer): Add myself.
27482         (License): Use LGPL, not GPL.
27483
27484         link-warning: optimize generation
27485         * modules/link-warning (Makefile.am): Reduce process usage.
27486
27487 2009-12-09  Bruno Haible  <bruno@clisp.org>
27488
27489         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
27490         workaround was added on 2009-11-17.
27491
27492 2009-12-09  Jim Meyering  <meyering@redhat.com>
27493             Bruno Haible  <bruno@clisp.org>
27494
27495         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
27496         * modules/link-warning (Makefile.am): Make the comment-removing sed
27497         command more robust in the face of bootstrap-prepended comment lines.
27498
27499 2009-12-09  Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
27502         most one group.
27503
27504 2009-12-09  Simon Josefsson <simon@josefsson.org>
27505             Bruno Haible  <bruno@clisp.org>
27506
27507         * build-aux/link-warning.h: Add copyright notice.
27508         * modules/link-warning (Makefile.am): Generate link-warning.h from
27509         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
27510         * NEWS: Mention change in link-warning module.
27511         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
27512         * modules/dirent (Makefile.am): Add dependency to dirent.h.
27513         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
27514         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
27515         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
27516         * modules/math (Makefile.am): Add dependency to math.h.
27517         * modules/search (Makefile.am): Add dependency to search.h.
27518         * modules/signal (Makefile.am): Add dependency to signal.h.
27519         * modules/spawn (Makefile.am): Add dependency to spawn.h.
27520         * modules/stdio (Makefile.am): Add dependency to stdio.h.
27521         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
27522         * modules/string (Makefile.am): Add dependency to string.h.
27523         * modules/strings (Makefile.am): Add dependency to strings.h.
27524         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
27525         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
27526         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
27527         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
27528         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
27529         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
27530         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
27531         * modules/unistd (Makefile.am): Add dependency to unistd.h.
27532         * modules/wchar (Makefile.am): Add dependency to wchar.h.
27533
27534 2009-12-09  Bruno Haible  <bruno@clisp.org>
27535
27536         fchdir: Optimize away rpl_fstat when possible.
27537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
27538         REPLACE_OPEN_DIRECTORY.
27539         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
27540
27541 2009-12-09  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/fchdir.c: Update comment.
27544
27545 2009-12-09  Bruno Haible  <bruno@clisp.org>
27546
27547         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
27548
27549 2009-12-08  Eric Blake  <ebb9@byu.net>
27550
27551         fchdir: avoid memory leak on re-registration.
27552         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
27553
27554 2009-12-08  Jim Meyering  <meyering@redhat.com>
27555
27556         init.sh: avoid Solaris 10 /bin/sh portability problem
27557         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
27558         sourced script:
27559           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
27560           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
27561           bar
27562         tests/init.sh relied on that, accepting a --set-path=DIR argument,
27563         and two tests used that idiom.
27564         * tests/init.sh: Update suggested usage comments.
27565         (path_prepend_): New function, to be used in place
27566         of the --src-path=DIR option.
27567         (setup_): Move PATH-prepending code into path_prepend_.
27568         * tests/test-pread.sh: Adapt to new usage.
27569         * tests/test-xalloc-die.sh: Likewise.
27570
27571 2009-12-08  Simon Josefsson  <simon@josefsson.org>
27572
27573         * doc/gnulib.texi (Glibc pty.h): Add.
27574         * doc/glibc-functions/forkpty.texi: Add.
27575         * doc/glibc-functions/openpty.texi: Add.
27576         Suggested by Bruno Haible.
27577
27578 2009-12-08  Eric Blake  <ebb9@byu.net>
27579
27580         fchdir: fix logic bugs
27581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
27582         * tests/test-fchdir.c (main): Enhance test.
27583         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
27584         is in use.
27585
27586         dup2: fix logic bugs
27587         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
27588         REPLACE_DUP2 to decide when rpl_dup2 is needed.
27589         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
27590         exists.
27591         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
27592
27593 2009-12-07  Eric Blake  <ebb9@byu.net>
27594
27595         unlink: fix m4 detection
27596         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
27597
27598         unistd-safer: add unit test
27599         * modules/unistd-safer-tests: New file.
27600         * tests/test-dup-safer.c: Likewise.
27601         * tests/test-cloexec.c (setmode): Avoid compiler warning.
27602         * tests/test-dup2.c (setmode): Likewise.
27603         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
27604
27605         cloexec: preserve text vs. binary across dup_cloexec
27606         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
27607         mode.
27608         * modules/dup2-tests (Depends-on): Add binary-io.
27609         * modules/cloexec-tests (Depends-on): Likewise.
27610         * tests/test-dup2.c (setmode, is_mode): New helpers.
27611         (main): Add tests that translation mode is preserved.
27612         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
27613         Reported by Bruno Haible.
27614
27615         mgetgroups: reduce duplicate listings
27616         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
27617         resulting array.
27618         * tests/test-chown.h (test_chown): Simplify client.
27619         * tests/test-lchown.h (test_lchown): Likewise.
27620
27621 2009-12-06  Bruno Haible  <bruno@clisp.org>
27622
27623         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
27624         value.
27625
27626 2009-12-06  Bruno Haible  <bruno@clisp.org>
27627
27628         * lib/progname.c: Include stdio.h, stdlib.h.
27629         (set_program_name): Reject a NULL argument.
27630
27631 2009-12-05  Eric Blake  <ebb9@byu.net>
27632
27633         pipe2-safer: new module
27634         * modules/pipe2-safer: New file.
27635         * lib/unistd-safer.h (pipe2_safer): New prototype.
27636         * lib/unistd--.h (pipe2): New wrapper.
27637         * lib/pipe-safer.c (pipe2_safer): New function.
27638         * modules/pipe (Depends-on): Add pipe2-safer.
27639         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
27640
27641         stdlib-safer: preserve cloexec flag for mkostemp[s]
27642         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
27643         fd_safer_flag.
27644
27645         unistd-safer: allow preservation of cloexec status via flag
27646         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
27647         prototypes.
27648         * lib/dup-safer.c (dup_safer_flag): New function.
27649         * lib/fd-safer.c (fd_safer_flag): Likewise.
27650         * modules/cloexec (configure.ac): Set witness.
27651
27652         test-dup2: enhance test
27653         * modules/dup2-tests (Depends-on): Add cloexec.
27654         * tests/test-dup2.c (main): Enhance test.
27655
27656         cloexec: add dup_cloexec
27657         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
27658         header and comments.
27659         * lib/cloexec.c (set_cloexec_flag): Add comments.
27660         (dup_cloexec): New function, with mingw implementation borrowed
27661         from...
27662         * lib/w32spawn.h (dup_noinherit): ...here.
27663         * modules/execute (Depends-on): Add cloexec.
27664         * modules/pipe (Depends-on): Likewise.
27665         * modules/cloexec (Depends-on): Add dup2.
27666         * modules/cloexec-tests (Files): New file.
27667         * tests/test-cloexec.c: Likewise.
27668
27669         test-xalloc-die: fix test for mingw
27670         * modules/xalloc-die-tests (Files): Add tests/init.sh.
27671         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
27672         directory and .exe suffix off argv[0] output.
27673
27674         test-fseeko: fix test for mingw
27675         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
27676         than undefining fseek, so test will pass on mingw.
27677
27678 2009-12-05  Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/progname.h (set_program_name): Clarify specification.
27681         * lib/progname.c (set_program_name): Likewise.
27682         Reported by Jim Meyering.
27683
27684 2009-12-05  Jim Meyering  <meyering@redhat.com>
27685
27686         maint.mk: backslash-escape parens in default regexp
27687         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
27688         backslash-escape the literal parentheses.
27689
27690         maint.mk: news-date-check: use grep -E
27691         * top/maint.mk (today): Define a Make variable, not a...
27692         (news-date-check): ...shell variable.
27693         (news-date-regexp): Use the Make variable.
27694         Use grep's -E option.  Change the failing diagnostic to mention
27695         the variable, $(news-date-regexp).
27696
27697 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
27698
27699         maintainer-makefile: allow customization of NEWS entry format
27700         * top/maint.mk (news-date-regexp): New overridable variable.
27701         (news-date-check): Use it.
27702
27703 2009-12-04  Eric Blake  <ebb9@byu.net>
27704
27705         mgetgroups: add xgetgroups, and avoid ENOSYS failures
27706         * lib/mgetgroups.h (xgetgroups): New prototype.
27707         * lib/mgetgroups.c (xgetgroups): New wrapper.
27708         (mgetgroups): Handle ENOSYS.
27709         * modules/mgetgroups (Depends-on): Add realloc.
27710         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
27711
27712         mgetgroups: avoid argument promotion issues with -1
27713         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
27714         for invalid gid_t.
27715         * tests/test-chown.h (getegid, test_chown): Likewise.
27716         * tests/test-lchown.h (getegid, test_lchown): Likewise.
27717
27718 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
27719
27720         exclude: Fix header file problems.
27721         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
27722
27723 2009-12-01  Jim Meyering  <meyering@redhat.com>
27724
27725         fts: fts_open: do not let an empty string cause immediate failure
27726         This is required in support of GNU rm, for which the command
27727         "rm A '' B" must process and remove both A and B, in spite of
27728         the empty string argument.
27729         * lib/fts.c (fts_open): Do not let the presence of an empty string
27730         cause fts_open to fail immediately.  Most fts-using tools must be
27731         able to process all arguments, in order, and can be expected to
27732         diagnose such arguments themselves.
27733
27734 2009-11-30  Eric Blake  <ebb9@byu.net>
27735
27736         utimens: fix compilation error
27737         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
27738         Declare variable at right scope.
27739
27740 2009-11-29  Jim Meyering  <meyering@redhat.com>
27741
27742         bootstrap: handle perl-5.11's changed --version output
27743         * build-aux/bootstrap (get_version): Handle perl separately,
27744         since perl-5.11's --version output is different.
27745
27746 2009-11-28  Jim Meyering  <meyering@redhat.com>
27747
27748         userspec: depend on the inttostr module, too
27749         * modules/userspec (Depends-on): Add inttostr.
27750
27751         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
27752         * lib/userspec.c (parse_with_separator): Do not accept a user ID
27753         number of MAXUID when it evaluates to (uid_t) -1.
27754         Likewise for group ID.  Reported by Matt McCutchen in
27755         <http://savannah.gnu.org/bugs/?28113>
27756
27757         userspec: reformat to use spaces, not TABs
27758         * lib/userspec.c: Expand TABs to spaces.
27759         Add Emacs' "indent-tabs-mode: nil" hint.
27760
27761 2009-11-27  Eric Blake  <ebb9@byu.net>
27762
27763         getopt-gnu: flush out another BSD bug
27764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
27765         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
27766         flush out BSD bug.
27767         * tests/test-getopt.h (test_getopt): End lists with NULL.
27768         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27769         (test_getopt_long_posix): Enhance test.
27770         * modules/getopt-posix-tests (Depends-on): Add stdbool.
27771         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
27772         getopt-gnu.
27773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27774         Likewise.
27775
27776 2009-11-27  Simon Josefsson  <simon@josefsson.org>
27777
27778         * modules/idpriv-droptemp-tests (Notice): Fix text.
27779
27780 2009-11-27  Jim Meyering  <meyering@redhat.com>
27781
27782         test-xalloc-die: avoid spurious failure due to libtool argv difference
27783         In a libtool-enabled project, this test would fail due to a difference
27784         in the emitted program name, e.g.,
27785         -test-xalloc-die: memory exhausted
27786         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
27787         Use program to avoid that.
27788         * modules/xalloc-die-tests (Depends-on): Add progname.
27789         * tests/test-xalloc-die.c: Include progname.h".
27790         (program_name): Remove decl.
27791         (main): Call set_program_name.
27792         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
27793
27794 2009-11-26  Richard Jones  <rjones@redhat.com>
27795
27796         w32sock: leave win32 error in place.
27797         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
27798
27799 2009-11-26  Eric Blake  <ebb9@byu.net>
27800
27801         init.sh: suggest to use skip_ and fail_ functions in comments
27802         * tests/init.sh: Add a sentence.
27803
27804 2009-11-25  Bruno Haible  <bruno@clisp.org>
27805
27806         init.sh: add documentation in comments
27807         * tests/init.sh: Add some developer and user documentation.
27808
27809 2009-11-26  Jim Meyering  <meyering@redhat.com>
27810
27811         init.sh: accommodate even those who specify bogus srcdir manually
27812         * tests/init.sh: Normally, srcdir is guaranteed by automake and
27813         configure-time tests to be sanitized, so that there is no need to
27814         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
27815         (with no double quotes) suffices.  However, since tests may be
27816         invoked manually, and since you may explicitly set srcdir to the
27817         name of a directory containing spaces, do quote its uses here.
27818         * tests/test-pread.sh: Likewise.
27819         Suggested by Bruno Haible.
27820
27821         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
27822         * tests/test-pread.sh: Write no data into the pipe, because
27823         test-pread actually reads none.  This avoids a diagnostic,
27824         "bash: echo: write error: Broken pipe", that arises in the unusual
27825         event something is ignoring SIGPIPE, and might be interpreted
27826         as some sort of failure.  Reported by Bruno Haible.
27827
27828 2009-11-25  Jim Meyering  <meyering@redhat.com>
27829
27830         test-pread: cover failure with ESPIPE and EINVAL
27831         * tests/test-pread.c (main): Test for failure, too.
27832         * tests/test-pread.sh: Invoke with stdin on a pipe.
27833         Suggested by Eric Blake.
27834
27835         pread: improvement and fix
27836         * modules/pread (Depends-on): Depend on lseek, for portability to
27837         e.g., mingw.  Suggested by Eric Blake.
27838         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
27839
27840         unistd.in.h: correct declaration of pread
27841         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
27842         Reported by Richard W.M. Jones.
27843
27844         test-pread.sh: distribute the test script
27845         * modules/pread-tests (Files): Include test-pread.sh.
27846
27847         test-pread.sh: clean up
27848         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
27849         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
27850         That is unnecessary, since it's always ".".
27851         Suggestion from Eric Blake.
27852
27853         test-pread.sh: make executable
27854         * tests/test-pread.sh: Set executable bit.
27855         Reported by Eric Blake.
27856
27857         correct typo in test-pread.sh
27858         * tests/test-pread.sh: Add #! line.
27859
27860         test pread
27861         * tests/test-pread.c: New file.
27862         * tests/test-pread.sh: Likewise.
27863         * modules/pread-tests: Likewise.
27864
27865         pread: new module
27866         * modules/pread: New file.
27867         * lib/unistd.in.h (pread): Define/declare.
27868         * lib/pread.c (pread): New file.
27869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
27870         * modules/unistd (Makefile.am): Substitute witnesses.
27871         * doc/posix-functions/pread.texi (pread): Update.
27872         * MODULES.html.sh: Add pread.
27873
27874 2009-11-25  Jim Meyering  <meyering@redhat.com>
27875
27876         tests/init.sh: new file to be used via most *.sh tests
27877         * tests/init.sh: New file.
27878
27879 2009-11-25  Eric Blake  <ebb9@byu.net>
27880
27881         utimens: work around older Linux failure with symlinks
27882         * lib/utimens.c (lutimensat_works_really): New variable.
27883         (fdutimens, lutimens): Use it to manage kernels that support
27884         nanosecond times on files, but not on symlinks.
27885         Reported by OndÅ™ej VaÅ¡Ă­k.
27886
27887         utimes: fix configure grammar
27888         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
27889
27890 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
27891
27892         regex: Fix fastmap for multibyte character ranges.
27893         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
27894         characters when a multibyte character range is included.
27895
27896 2009-11-22  Andy Wingo  <wingo@pobox.com>
27897
27898         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
27899         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
27900
27901 2009-11-24  Bruno Haible  <bruno@clisp.org>
27902
27903         doc: Most *_l functions exist in MacOS X 10.5.
27904         * doc/posix-functions/duplocale.texi: Update platforms list.
27905         * doc/posix-functions/freelocale.texi: Likewise.
27906         * doc/posix-functions/newlocale.texi: Likewise.
27907         * doc/posix-functions/uselocale.texi: Likewise.
27908         * doc/posix-functions/isalnum_l.texi: Likewise.
27909         * doc/posix-functions/isalpha_l.texi: Likewise.
27910         * doc/posix-functions/isblank_l.texi: Likewise.
27911         * doc/posix-functions/iscntrl_l.texi: Likewise.
27912         * doc/posix-functions/isdigit_l.texi: Likewise.
27913         * doc/posix-functions/isgraph_l.texi: Likewise.
27914         * doc/posix-functions/islower_l.texi: Likewise.
27915         * doc/posix-functions/isprint_l.texi: Likewise.
27916         * doc/posix-functions/ispunct_l.texi: Likewise.
27917         * doc/posix-functions/isspace_l.texi: Likewise.
27918         * doc/posix-functions/isupper_l.texi: Likewise.
27919         * doc/posix-functions/iswalnum_l.texi: Likewise.
27920         * doc/posix-functions/iswalpha_l.texi: Likewise.
27921         * doc/posix-functions/iswblank_l.texi: Likewise.
27922         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27923         * doc/posix-functions/iswctype_l.texi: Likewise.
27924         * doc/posix-functions/iswdigit_l.texi: Likewise.
27925         * doc/posix-functions/iswgraph_l.texi: Likewise.
27926         * doc/posix-functions/iswlower_l.texi: Likewise.
27927         * doc/posix-functions/iswprint_l.texi: Likewise.
27928         * doc/posix-functions/iswpunct_l.texi: Likewise.
27929         * doc/posix-functions/iswspace_l.texi: Likewise.
27930         * doc/posix-functions/iswupper_l.texi: Likewise.
27931         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27932         * doc/posix-functions/isxdigit_l.texi: Likewise.
27933         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
27934         * doc/posix-functions/strcasecmp_l.texi: Likewise.
27935         * doc/posix-functions/strcoll_l.texi: Likewise.
27936         * doc/posix-functions/strfmon_l.texi: Likewise.
27937         * doc/posix-functions/strftime_l.texi: Likewise.
27938         * doc/posix-functions/strncasecmp_l.texi: Likewise.
27939         * doc/posix-functions/strxfrm_l.texi: Likewise.
27940         * doc/posix-functions/tolower_l.texi: Likewise.
27941         * doc/posix-functions/toupper_l.texi: Likewise.
27942         * doc/posix-functions/towctrans_l.texi: Likewise.
27943         * doc/posix-functions/towlower_l.texi: Likewise.
27944         * doc/posix-functions/towupper_l.texi: Likewise.
27945         * doc/posix-functions/wcscoll_l.texi: Likewise.
27946         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27947         * doc/posix-functions/wctrans_l.texi: Likewise.
27948         * doc/posix-functions/wctype_l.texi: Likewise.
27949         * doc/glibc-functions/strptime_l.texi: Likewise.
27950         * doc/glibc-functions/strtod_l.texi: Likewise.
27951         * doc/glibc-functions/strtof_l.texi: Likewise.
27952         * doc/glibc-functions/strtol_l.texi: Likewise.
27953         * doc/glibc-functions/strtold_l.texi: Likewise.
27954         * doc/glibc-functions/strtoll_l.texi: Likewise.
27955         * doc/glibc-functions/strtoul_l.texi: Likewise.
27956         * doc/glibc-functions/strtoull_l.texi: Likewise.
27957         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27958         * doc/glibc-functions/wcstod_l.texi: Likewise.
27959         * doc/glibc-functions/wcstof_l.texi: Likewise.
27960         * doc/glibc-functions/wcstol_l.texi: Likewise.
27961         * doc/glibc-functions/wcstold_l.texi: Likewise.
27962         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27963         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27964         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27965
27966 2009-11-24  Bruno Haible  <bruno@clisp.org>
27967
27968         duplocale: Fix logic bug.
27969         * lib/duplocale.c: Don't include <langinfo.h>.
27970         (_NL_LOCALE_NAME): Remove macro.
27971         (rpl_duplocale): Use setlocale instead of nl_langinfo.
27972         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
27973
27974 2009-11-23  Jim Meyering  <meyering@redhat.com>
27975
27976         test-update-copyright: don't hard-code /usr/bin/perl
27977         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
27978         perl to print the current year.  Gilles Espinasse reported that
27979         the replaced use of perl was hard-coded as /usr/bin/perl.
27980
27981 2009-11-23  Bruno Haible  <bruno@clisp.org>
27982
27983         duplocale: Add support for glibc 2.3.x.
27984         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
27985
27986 2009-11-22  Bruno Haible  <bruno@clisp.org>
27987
27988         vasnprintf: Tiny optimization.
27989         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
27990         MacOS X.
27991
27992 2009-11-22  Bruno Haible  <bruno@clisp.org>
27993
27994         Tests for module 'duplocale'.
27995         * modules/duplocale-tests: New file.
27996         * tests/test-duplocale.c: New file.
27997
27998         New module 'duplocale'.
27999         * m4/duplocale.m4: New file.
28000         * lib/locale.in.h (duplocale): New declaration.
28001         * lib/duplocale.c: New file.
28002         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28003         gl_LOCALE_H_DEFAULTS): New macros.
28004         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28005         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28006         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28007         REPLACE_DUPLOCALE.
28008         * modules/duplocale: New file.
28009         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28010
28011 2009-11-22  Bruno Haible  <bruno@clisp.org>
28012
28013         * modules/locale-tests (configure.ac): Test for newlocale function.
28014         * tests/test-locale.c: When the system has extended locale functions,
28015         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28016
28017         locale: Make locale_t available when possible.
28018         * lib/locale.in.h: Include <xlocale.h> when it exists.
28019         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28020         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28021         * modules/locale (Depends-on): Add extensions.
28022         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28023         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28024
28025 2009-11-22  Bruno Haible  <bruno@clisp.org>
28026
28027         Add comments.
28028         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28029         invocation.
28030         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28031         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28032         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28033
28034 2009-11-22  Bruno Haible  <bruno@clisp.org>
28035
28036         error: account for the possibility of freopen (stdout).
28037         * lib/error.c: Include <unistd.h>.
28038         (flush_stdout): New function, extracted from error and error_at_line.
28039         Determine stdout's fd dynamically.
28040         (error, error_at_line): Invoke flush_stdout.
28041         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28042         * modules/error (Depends-on): Add unistd.
28043
28044 2009-11-22  Bruno Haible  <bruno@clisp.org>
28045
28046         diffseq: Add comment.
28047         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28048
28049 2009-11-22  Jim Meyering  <meyering@redhat.com>
28050
28051         c-stack: avoid defining an unused static function
28052         * lib/c-stack.c (find_stack_direction): Do not define this function
28053         when it will not be used.
28054
28055         diffseq: avoid spurious gcc warnings
28056         * lib/diffseq.h (IF_LINT2): Define.
28057         (compareseq): Use it to initialize two members of "part".
28058         This avoids two used-uninitialized warnings.
28059
28060 2009-11-21  Jim Meyering  <meyering@redhat.com>
28061
28062         c-stack: avoid "ignoring return value of `write'" warning
28063         * lib/c-stack.c: Include "ignore-value.h".
28064         (die): Explicitly ignore each write return value.
28065         * modules/c-stack (Depends-on): Add ignore-value.
28066
28067 2009-11-21  Bruno Haible  <bruno@clisp.org>
28068
28069         diffseq: reduce scope of variable 'best'.
28070         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28071         variable, earlier used for two different purposes.
28072
28073 2009-11-21  Jim Meyering  <meyering@redhat.com>
28074
28075         diffseq: remove useless assignment to "best"
28076         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28077         assignment.  At that point "best" is already guaranteed to be zero.
28078
28079 2009-11-20  Eric Blake  <ebb9@byu.net>
28080
28081         build: mention ftp redirector in release announcements
28082         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28083         values that used to come from cfg.mk; mention FTP redirect URL.
28084         * build-aux/announce-gen: Mention the mirror list.
28085         Suggested by Karl Berry.
28086
28087         nanosleep: improve port to mingw
28088         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28090         LIB_NANOSLEEP, but only when needed.
28091         * modules/select (Link): Document LIBSOCKET.
28092         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28093         enough.
28094
28095         nanosleep: work around cygwin bug
28096         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28097         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28098         bug.
28099         (getnow): Delete, not needed.
28100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28101         LIB_CLOCK_GETTIME.
28102         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28103         clock-time, gettime.
28104         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28105         bug.
28106         * modules/nanosleep-tests: New test.
28107         * tests/test-nanosleep.c: New file.
28108
28109         sleep: work around cygwin bug
28110         * lib/sleep.c (rpl_sleep): Work around the bug.
28111         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28112         (gl_PREREQ_SLEEP): Delete unused macro.
28113         * modules/sleep (Depends-on): Add verify.
28114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28115         * modules/unistd (Makefile.am): Substitute witness.
28116         * lib/unistd.in.h (sleep): Update prototype.
28117         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28118         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28119         * modules/sleep-tests (Depends-on): Check for alarm.
28120
28121 2009-11-20  Jim Meyering  <meyering@redhat.com>
28122
28123         maint.mk: improve sc_prohibit_magic_number_exit
28124         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28125         so it does not match uses like System.exit(1).
28126         Add comments showing how to correct all offenders.
28127
28128 2009-11-19  Eric Blake  <ebb9@byu.net>
28129
28130         xalloc-die-tests: add missing library
28131         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28132
28133         test-xvasprintf: silence compiler warnings
28134         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28135         empty string from gcc.
28136
28137 2009-11-19  Jim Meyering  <meyering@redhat.com>
28138
28139         xfreopen: new module, from coreutils
28140         * modules/xfreopen: New module.
28141         * lib/xfreopen.c: New file.
28142         * lib/xfreopen.h: New file.
28143         * MODULES.html.sh (File stream based Input/Output"): Add it.
28144
28145 2009-11-19  Eric Blake  <ebb9@byu.net>
28146
28147         manywarnings: depend on warnings
28148         * modules/manywarnings (Depends-on): Add warnings.
28149
28150         build: avoid compiler warnings
28151         * lib/select.c (rpl_select): Delete unused variable.
28152         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28153
28154 2009-11-18  Eric Blake  <ebb9@byu.net>
28155
28156         tests: avoid false negative with --with-packager
28157         * tests/test-version-etc.sh: Discard packager information.
28158         * tests/test-argp-version-etc-1.sh: Likewise.
28159         Reported by Mike Frysinger.
28160
28161         utimens: fix regression on Solaris
28162         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28163         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28164         can only change fd timestamps via futimesat.  Instead, use an
28165         additional witness macro to avoid BSD bug.
28166         Reported by Jim Meyering.
28167
28168 2009-11-17  Eric Blake  <ebb9@byu.net>
28169
28170         usleep: use it to simplify tests
28171         * modules/stat-time-tests (Depends-on): Add usleep.
28172         (configure.ac): Drop usleep check.
28173         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28174         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28175         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28176         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28177         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28178         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28179         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28180         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28181         Likewise.
28182         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28183         * tests/test-lchown.h (nap): Likewise.
28184         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28185         * tests/test-stat-time.c (nap): Likewise.
28186         * tests/test-utimens-common.h (nap): Update comments.
28187
28188         usleep: new module
28189         * modules/usleep: New file.
28190         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28191         * lib/usleep.c (usleep): Likewise.
28192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28193         * modules/unistd (Makefile.am): Substitute witnesses.
28194         * lib/unistd.in.h (usleep): Add declaration.
28195         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28196         * MODULES.html.sh (Date and time): Likewise.
28197         * modules/usleep-tests (Depends-on): New test.
28198         * tests/test-usleep.c: New file.
28199
28200         chown: work around OpenBSD bug
28201         * lib/chown.c (rpl_chown): Work around the bug.
28202         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28203         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28205         * modules/chown (Depends-on): Add stdbool.
28206         * modules/lchown (Depends-on): Likewise.
28207         * doc/posix-functions/chown.texi (chown): Document the bug.
28208         * doc/posix-functions/lchown.texi (lchown): Likewise.
28209         * tests/test-lchown.h (test_chown): Relax test.
28210
28211         mkstemp: avoid conflict with C++ keyword template
28212         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28213         * lib/mkostemp.c (mkostemp): Likewise.
28214         * lib/mkostemps.c (mkostemps): Likewise.
28215         * lib/mkstemp.c (mkstemp): Likewise.
28216         * lib/mkstemps.c (mkstemps): Likewise.
28217
28218         xalloc-die-tests: optimize
28219         * tests/test-xalloc-die.sh: Reduce number of processes.
28220
28221 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28222
28223         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28224         patch from ludo@gnu.org (Ludovic Courtès).
28225
28226 2009-11-17  Jim Meyering  <meyering@redhat.com>
28227
28228         version-etc: use proper license string
28229         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28230         * modules/version-etc-fsf: Likewise.
28231
28232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28233
28234         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28235         printed to stdout.  Deal with EOL differences.
28236
28237 2009-11-17  Eric Blake  <ebb9@byu.net>
28238
28239         unsetenv: work around Solaris bug
28240         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28241         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28242         Reported by Jim Meyering.
28243
28244         vasnprintf: avoid compiler warnings
28245         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28246         variables.
28247         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28248
28249 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28250
28251         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28252         settings since xalloc-die is no longer the self test,
28253         xalloc-die.sh is.
28254
28255 2009-11-17  Jim Meyering  <meyering@redhat.com>
28256
28257         test-xalloc-die.sh: make the code agree with the commit log
28258         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28259         at the end, just in case you happen to have a test-xalloc-die
28260         program in some other PATH directory.
28261
28262         test-xalloc-die.sh: fix a portability bug
28263         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28264         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28265         Otherwise, argv[0] (as often seen in diagnostics) would be too
28266         system-dependent, sometimes with, and sometimes without the leading "./".
28267
28268         version-etc-fsf: relax license to LGPLv3+
28269         * modules/version-etc-fsf (License): Relax license.
28270
28271 2009-11-16  Eric Blake  <ebb9@byu.net>
28272
28273         xalloc-die-tests: avoid printing null pointer
28274         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28275         shell script.
28276         * tests/test-xalloc-die.c (program_name): Declare.
28277         * tests/test-xalloc-die.sh (tmpfiles): New file.
28278
28279         setenv, unsetenv: work around various bugs
28280         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28281         (setenv) [HAVE_SETENV]: Work around bugs.
28282         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28283         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28284         for bugs.
28285         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28286         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28288         * modules/stdlib (Makefile.am): Update substitutions.
28289         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28290         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28291         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28292         * modules/setenv-tests: New test.
28293         * modules/unsetenv-tests: Likewise.
28294         * tests/test-setenv.c: New file.
28295         * tests/test-unsetenv.c: Likewise.
28296
28297 2009-11-16  Jim Meyering  <meyering@redhat.com>
28298
28299         version-etc: relax license to LGPLv3+
28300         * modules/version-etc (License): Relax license.
28301
28302         better AC_REQUIRE expanded-before-required-warning avoidance
28303         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28304         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28305         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28306         which is no longer needed.
28307
28308 2009-11-16  Eric Blake  <ebb9@byu.net>
28309
28310         test-freading: clean up temporary file
28311         * tests/test-freading.c (main): Remove file on success, and use
28312         ASSERT more liberally.
28313         Reported by Jim Meyering.
28314
28315 2009-11-16  Jim Meyering  <meyering@redhat.com>
28316
28317         avoid new AC_REQUIRE expanded-before-required warnings
28318         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28319         merely using it.
28320         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28321         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28322
28323 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28324
28325         * tests/test-xalloc-die.c: New file.
28326         * modules/xalloc-die-tests: New file.
28327         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28328         XFAIL_TESTS so it can be appended by modules.
28329
28330 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28331
28332         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28333         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28334
28335 2009-11-14  Eric Blake  <ebb9@byu.net>
28336
28337         fnmatch: avoid compiler warning
28338         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28339         to silence compiler warning about mismatch signedness in ?:.
28340         Reported by Robert Millan.
28341
28342         intprops: add double-inclusion guard
28343         * lib/intprops.h: Allow idempotent includes.
28344         Suggested by Bruce Korb.
28345
28346         openat: detect Solaris fchownat bug
28347         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28348         penalizing glibc chownat when only lchownat is broken.
28349         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28350         trailing slash bugs.
28351         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28352         * modules/openat-tests (Files): Include more files.
28353         (Depends-on): Add mgetgroups, sleep, stat-time.
28354         (configure.ac): Add additional checks.
28355         (Makefile.am): Build new test.
28356         * tests/test-fchownat.c: New file.
28357
28358         lchown: detect Solaris and FreeBSD bug
28359         * lib/lchown.c (rpl_lchown): Work around bug.
28360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28362         * modules/unistd (Makefile.am): Populate it.
28363         * lib/unistd.in.h (lchown): Update declaration.
28364         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28365         * modules/lchown-tests: New file.
28366         * tests/test-lchown.h (test_lchown): Likewise.
28367         * tests/test-lchown.c (main): Likewise.
28368
28369         chown: detect Solaris and FreeBSD bug
28370         * lib/chown.c (rpl_chown): Work around bug.
28371         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28372         (gl_PREREQ_CHOWN): Delete.
28373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28374         * modules/unistd (Makefile.am): Populate it.
28375         * lib/unistd.in.h (chown): Update declaration.
28376         * lib/lchown.c (chown): Update client.
28377         * modules/lchown (Depends-on): Add lstat.
28378         * doc/posix-functions/chown.texi (chown): Document the bug.
28379         * doc/posix-functions/getgroups.texi (getgroups): Document
28380         getgroups pitfall.
28381         * modules/chown-tests: New file.
28382         * tests/test-chown.h (test_chown): Likewise.
28383         * tests/test-chown.c (main): Likewise.
28384
28385 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28386
28387         gnulib-tool: correctly detect absence of m4 directories
28388         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28389
28390 2009-11-14  Jim Meyering  <meyering@redhat.com>
28391
28392         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28394
28395 2009-11-14  John W. Eaton  <jwe@gnu.org>
28396
28397         strftime.h: wrap funtion declaration in extern "C" block
28398         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28399
28400 2009-11-13  Eric Blake  <ebb9@byu.net>
28401
28402         getgroups: avoid compiler warning
28403         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28404
28405         getgroups: work around FreeBSD bug
28406         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28407         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28408         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28409         * tests/test-getgroups.c (main): Fix buffer overrun.
28410
28411         getgroups: avoid compilation failure
28412         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28413         * modules/getgroups (Depends-on): Add stdint.
28414
28415 2009-11-13  Jim Meyering  <meyering@redhat.com>
28416
28417         test-getgroups: avoid compilation failure
28418         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28419
28420 2009-11-13  Eric Blake  <ebb9@byu.net>
28421
28422         mgetgroups: new module, taken from coreutils
28423         * modules/mgetgroups: New file.
28424         * lib/mgetgroups.h: Likewise.
28425         * lib/mgetgroups.c (mgetgroups): Likewise.
28426         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28427         * MODULES.html.sh (Users and groups): Mention it.
28428
28429         getgroups: don't expose GETGROUPS_T to user
28430         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28431         an element at a time if GETGROUPS_T is wrong size.
28432         * lib/getugroups.h (getugroups): Change signature.
28433         * lib/unistd.in.h (getgroups): Likewise.
28434         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28435         signature needs fixing.
28436         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28437         AC_TYPE_GETGROUPS.
28438         * modules/group-member (Depends-on): Add getgroups.
28439         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28440         (group_member): Rely on getgroups replacement.
28441         * lib/getugroups.c (getugroups): Use gid_t.
28442         * tests/test-getgroups.c (main): Likewise.
28443         * NEWS: Mention the signature change.
28444         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28445         problem with signature.
28446         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28447         GETGROUPS_T is still useful for setgroups.
28448
28449         getgroups, getugroups: provide stubs for mingw
28450         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28451         * lib/getugroups.c (getugroups): Likewise.
28452         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28453         function.  Modernize replacement scheme.
28454         (gl_PREREQ_GETGROUPS): Delete.
28455         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28456         * modules/getgroups (configure.ac): Declare witness.
28457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28458         * modules/unistd (Depends-on): Substitute witness.
28459         * lib/unistd.in.h (getgroups): Declare replacement.
28460
28461         getgroups: avoid calling exit
28462         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28463         drop xalloc.
28464         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28465         dependencies.
28466         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28467         exiting, in the rare case of malloc failure.
28468
28469         getgroups: fix logic error
28470         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
28471         has more than 20 groups.
28472         * modules/getgroups-tests: New test.
28473         * tests/test-getgroups.c: New file.
28474
28475 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28476
28477         * tests/test-base64.c: Improve.
28478
28479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28480
28481         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
28482         Blake <ebb9@byu.net>.
28483
28484 2009-11-13  Simon Josefsson  <simon@josefsson.org>
28485
28486         * tests/test-xvasprintf.c: Add %s%s related checks.
28487
28488 2009-11-12  Eric Blake  <ebb9@byu.net>
28489
28490         version-etc: match standards.texi style
28491         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
28492         and use <> only for URLs.
28493
28494 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
28495
28496         fts: do not fail on a submount during traversal
28497         * lib/fts.c (fts_build): Read the stat info again after opening
28498         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
28499         Original report at http://bugzilla.redhat.com/501848.
28500
28501 2009-11-12  Jim Meyering  <meyering@redhat.com>
28502
28503         bootstrap: sync from coreutils
28504         * build-aux/bootstrap (bootstrap_epilogue): New function.
28505         Use git_modules_config in one more place.  This make bootstrap's
28506         --gnulib-srcdir option more useful for testing.
28507
28508         bootstrap: generalize autoheader check
28509         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
28510         AC_CONFIG_HEADERS.
28511
28512 2009-11-11  Eric Blake  <ebb9@byu.net>
28513
28514         mkfifoat: use new modules for Solaris and BSD bugs
28515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
28516         * lib/mkfifoat.c (mknodat): Split...
28517         * lib/mknodat.c (mknodat): ...into new file.
28518         * modules/mkfifoat (Files): Ship new file.
28519         (Depends-on): Add mkfifo, mknod.
28520         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
28521         (Depends-on): Add symlink.
28522         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
28523         redundant with test_mkfifo.h.
28524         (do_mkfifoat, do_mknodat): New helpers.
28525
28526         mknod: new module
28527         * modules/mknod: New file.
28528         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
28529         * lib/mknod.c (mknod): Likewise.
28530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28531         defaults.
28532         * modules/sys_stat (Makefile.am): Substitute them.
28533         * lib/sys_stat.in.h (mknod): Declare replacement.
28534         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28535         Document it.
28536         * doc/posix-functions/mknod.texi (mknod): Likewise.
28537         * modules/mknod-tests: New test.
28538         * tests/test-mknod.c: Likewise.
28539
28540         mkfifo: new module
28541         * modules/mkfifo: New file.
28542         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28543         * lib/mkfifo.c (mkfifo): Likewise.
28544         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
28545         defaults.
28546         * modules/sys_stat (Makefile.am): Substitute them.
28547         * lib/sys_stat.in.h (mkfifo): Declare replacement.
28548         * MODULES.html.sh (Support for systems lacking POSIX:2008):
28549         Document it.
28550         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
28551         * modules/mkfifo-tests: New test.
28552         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
28553         from test-mkfifoat.c.
28554         * tests/test-mkfifo.c: New file.
28555
28556         readlink: detect FreeBSD bug
28557         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
28558         slash on symlink.
28559         * doc/posix-functions/readlink.texi (readlink): Document the bug.
28560         * tests/test-readlink.h (test_readlink): Enhance test.
28561
28562         symlink: detect FreeBSD bug
28563         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
28564         slash on symlink.
28565         * doc/posix-functions/symlink.texi (symlink): Document the bug.
28566         * tests/test-symlink.h (test_symlink): Enhance test.
28567
28568 2009-11-10  Eric Blake  <ebb9@byu.net>
28569
28570         link: detect FreeBSD bug
28571         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
28572         symlink.
28573         * doc/posix-functions/link.texi (link): Document the bug.
28574         * tests/test-link.h (test_link): Enhance test.
28575         * tests/test-linkat.c (main): Update caller.
28576
28577         unlink, remove: detect FreeBSD bug
28578         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
28579         slash on symlink.
28580         * doc/posix-functions/unlink.texi (unlink): Document the bug.
28581         * doc/posix-functions/remove.texi (remove): Likewise.
28582         * tests/test-unlink.h (test_unlink): Enhance test.
28583         * tests/test-remove.c (main): Likewise.
28584
28585 2009-11-09  Eric Blake  <ebb9@byu.net>
28586
28587         rename: detect FreeBSD bug
28588         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
28589         slash on symlink.
28590         * modules/renameat-tests (Depends-on): Add filenamecat.
28591         * tests/test-rename.h (test_rename): Allow one more errno.
28592         * tests/test-renameat.c (main): Likewise.
28593         * doc/posix-functions/rename.texi (rename): Document the bug.
28594
28595         open: detect FreeBSD bug
28596         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
28597         symlink.
28598         * doc/posix-functions/open.texi (open): Document the bug.
28599         * doc/posix-functions/utimes.texi (utimes): Likewise.
28600         * tests/test-open.h (test_open): Add parameters, and test symlink
28601         handling.
28602         * tests/test-open.c (main): Adjust caller.
28603         * tests/test-fcntl-safer.c (main): Likewise.
28604         * modules/open-tests (Depends-on): Add stdbool, symlink.
28605         * modules/fcntl-safer-tests (Depends-on): Likewise.
28606         * tests/test-openat.c (main): Add test-open tests.
28607
28608         stat: detect FreeBSD bug
28609         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
28610         symlink.
28611         * doc/posix-functions/stat.texi (stat): Document the bug.
28612         * tests/test-stat.h (test_stat_func): Add argument.
28613         * tests/test-stat.c (main): Adjust caller.
28614         * tests/test-fstatat.c (main): Likewise.
28615         * modules/stat-tests (Depends-on): Add stdbool, symlink.
28616         Reported by Jim Meyering.
28617
28618 2009-11-09  James Youngman  <jay@gnu.org>
28619
28620         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
28621         * lib/strftime.c: Correct placement of #include "ignore-value.h".
28622
28623 2009-11-08  Jim Meyering  <meyering@redhat.com>
28624
28625         utimens: remove invalid futimesat call
28626         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
28627         It used the file descriptor of the target file as the DIR_FD
28628         parameter and NULL as the file name.  That caused failure with
28629         errno == EFAULT on FreeBSD-8.0-rc2
28630
28631 2009-11-07  Eric Blake  <ebb9@byu.net>
28632
28633         fflush, freadseek: use fseeko, not fseek
28634         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
28635         (clear_ungetc_buffer): Avoid potential problems on large files.
28636         * lib/freadseek.c (freadseek): Likewise.
28637         * modules/freadseek (Depends-on): Add fseeko.
28638         * modules/fseek (configure.ac): Set a witness.
28639         * tests/test-fflush.c (main): Use fseeko.
28640         * tests/test-fpurge.c (fseek): Disable link warning.
28641         * tests/test-freadable.c (fseek): Likewise.
28642         * tests/test-freading.c (fseek): Likewise.
28643         * tests/test-fseeko.c (fseek): Likewise.
28644         * tests/test-ftell.c (fseek): Likewise.
28645         * tests/test-ftello.c (fseek): Likewise.
28646         * tests/test-fwritable.c (fseek): Likewise.
28647         * tests/test-fwriting.c (fseek): Likewise.
28648
28649 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28650
28651         * modules/memchr (Depends-on): Drop getpagesize dependency.
28652
28653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28654
28655         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
28656         Reported by Ludovic Courtès.
28657         * build-aux/pmccabe2html: Improve example usage.
28658         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
28659
28660 2009-11-06  Jim Meyering  <meyering@redhat.com>
28661
28662         do-release-commit-and-tag: New module.
28663         Automate the release-commit and tag process.
28664         * build-aux/do-release-commit-and-tag: New script, from coreutils.
28665         * modules/do-release-commit-and-tag: New file.
28666         * MODULES.html.sh (Support for maintaining and releasing): Add it.
28667
28668 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28669
28670         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
28671         because test-select.c uses inet_pton.
28672
28673 2009-11-06  Simon Josefsson  <simon@josefsson.org>
28674
28675         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
28676         GETADDRINFO_LIB.  Bump serial number.
28677         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
28678         Suggested by Eric Blake <ebb9@byu.net>.
28679
28680 2009-11-05  Eric Blake  <ebb9@byu.net>
28681
28682         strtod: detect darwin bug
28683         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
28684         Reported by Leo Davis.
28685
28686         freopen-safer: new module
28687         * modules/freopen-safer: New module.
28688         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
28689         * lib/freopen-safer.c (freopen_safer): New file.
28690         * lib/stdio-safer.h (freopen_safer): New declaration.
28691         * lib/stdio--.h (freopen): New override.
28692         * MODULES.html.sh (File stream based Input/Output): Mention it.
28693         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
28694         freopen-safer module.
28695         * doc/posix-functions/stderr.texi (stderr): Likewise.
28696         * doc/posix-functions/stdin.texi (stdin): Likewise.
28697         * doc/posix-functions/stdout.texi (stdout): Likewise.
28698         * modules/freopen-safer-tests: New test.
28699         * tests/test-reopen-safer.c: New file.
28700
28701 2009-11-05  Jim Meyering  <meyering@redhat.com>
28702
28703         maint.mk: Prohibit inclusion of "close-stream.h" without use.
28704         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28705
28706 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28707
28708         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
28709
28710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28711
28712         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
28713
28714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28715
28716         Fix link error.
28717         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28718         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28719
28720 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28721
28722         * tests/test-func.c: Also test value of __func__.
28723
28724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
28725
28726         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
28727         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
28728
28729 2009-11-05  Bruno Haible  <bruno@clisp.org>
28730
28731         Fix link error.
28732         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
28733         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28734         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
28735
28736 2009-11-05  Bruno Haible  <bruno@clisp.org>
28737
28738         Tests for module 'inet_pton'.
28739         * modules/inet_pton-tests: New file.
28740         * tests/test-inet_pton.c: New file.
28741
28742 2009-11-05  Bruno Haible  <bruno@clisp.org>
28743
28744         Tests for module 'inet_ntop'.
28745         * modules/inet_ntop-tests: New file.
28746         * tests/test-inet_ntop.c: New file.
28747
28748 2009-11-04  Eric Blake  <ebb9@byu.net>
28749
28750         stdlib-safer: wrap all mkstemp variants
28751         * modules/mkostemp (configure.ac): Set witness.
28752         * modules/mkostemps (configure.ac): Likewise.
28753         * modules/mkstemps (configure.ac): Likewise.
28754         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
28755         (mkstemps_safer): Wrap more functions.
28756         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
28757         wrapping.
28758         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
28759         (mkstemps_safer): Implement the wrappers.
28760
28761         mkstemps, mkostemps: new modules
28762         * modules/mkostemps: New module.
28763         * modules/mkstemps: Likewise.
28764         * lib/mkostemps.c (mkostemps): New file.
28765         * lib/mkstemps.c (mkstemps): Likewise.
28766         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
28767         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
28768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
28769         * modules/stdlib (Makefile.am): Substitute them.
28770         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
28771         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
28772         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28773         * doc/gnulib.texi (Glibc stdlib.h): Include them.
28774         * MODULES.html.sh (File system functions): Mention them.
28775
28776         tempname: resync from glibc
28777         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
28778         same values for __GT_FILE as glibc.  Abort even when assertions
28779         are disabled.
28780         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
28781         match its value otherwise.  Allow idempotent inclusion.
28782         * lib/mkdtemp.c (mkdtemp): Adjust caller.
28783         * lib/mkostemp.c (mkostemp): Likewise.
28784         * lib/mkstemp.c (mkstemp): Likewise.
28785         * lib/tmpfile.c (tmpfile): Likewise.
28786         * NEWS: Document this.
28787
28788         utimens: fix use of futimens on older Linux
28789         * lib/utimens.c (fdutimens): Use updated, rather than original,
28790         timespec to avoid bug in older Linux kernel.
28791         Reported by Simon Josefsson.
28792
28793 2009-11-04  Bruno Haible  <bruno@clisp.org>
28794
28795         Make num_processors more flexible and consistent.
28796         * lib/nproc.h (enum nproc_query): New type.
28797         (num_processors): Add a 'query' argument.
28798         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
28799         (num_processors): Add a 'query' argument. Test the value of the
28800         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
28801         mingw, count the number of CPUs available for the current process.
28802         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
28803         Check for sched_getaffinity and sched_getaffinity_np.
28804         * modules/nproc (Depends-on): Add c-ctype, extensions.
28805         * NEWS: Mention the change.
28806
28807 2009-11-03  Bruno Haible  <bruno@clisp.org>
28808
28809         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
28810
28811 2009-11-03  Jim Meyering  <meyering@redhat.com>
28812
28813         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
28814         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
28815         if it is defined.
28816
28817 2009-11-02  Eric Blake  <ebb9@byu.net>
28818
28819         mktime, timegm: share common declaration
28820         * lib/mktime-internal.h: New file.
28821         * lib/mktime.c: Use it rather than open-coding a declaration.
28822         * lib/timegm.c: Likewise.
28823         * modules/mktime (Files): Ship it.
28824         * modules/timegm (Files): Likewise.
28825         Suggested by Bruno Haible.
28826
28827         test-update-copyright: update test to match script changes
28828         * tests/test-update-copyright.sh: Avoid hard-coding perl
28829         location.  Don't update *.bak created by earlier runs.
28830
28831 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28832             Simon Josefsson  <simon@josefsson.org>
28833             Bruno Haible  <bruno@clisp.org>
28834
28835         Fix link error on Solaris 8.
28836         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
28837         also in libnsl. Define also INET_PTON_LIB.
28838         * modules/inet_pton (Link): New section.
28839
28840 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28841             Bruno Haible  <bruno@clisp.org>
28842
28843         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
28844         * modules/inet_ntop (Link): New section.
28845         Reported by Boyan Kasarov <bkasarov@gmail.com>.
28846
28847 2009-11-02  Eric Blake  <ebb9@byu.net>
28848
28849         maint: avoid compiler warnings in m4 macros
28850         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
28851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
28852
28853 2009-11-02  Simon Josefsson  <simon@josefsson.org>
28854
28855         * m4/pmccabe2html.m4: Remove file.
28856         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
28857         function.  Change maintainer.
28858         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
28859         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
28860         Courtès).
28861
28862 2009-10-31  Eric Blake  <ebb9@byu.net>
28863
28864         fseeko: fix m4 regression
28865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
28866         regression from 2009-10-27.
28867         Reported by Ralf Wildenhues.
28868
28869 2009-10-31  Jim Meyering  <meyering@redhat.com>
28870
28871         inttostr: aesthetics and improved (compile-time) safety
28872         Define inttype_is_signed rather than inttype_is_unsigned,
28873         since the sole use is via "#if inttype_is_signed".
28874         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
28875         inttype_is_unsigned.
28876         * lib/offtostr.c (inttype_is_signed): Likewise.
28877         * lib/uinttostr.c (inttype_is_signed): Likewise.
28878         * lib/umaxtostr.c (inttype_is_signed): Likewise.
28879         * lib/inttostr.c (inttostr): Use verify to cross-check the
28880         inttype_is_signed value and the signedness of the actual type.
28881         * modules/inttostr (Depends-on): Add verify.
28882
28883 2009-10-30  Eric Blake  <ebb9@byu.net>
28884
28885         build: avoid compiler warnings
28886         * lib/fchmodat.c (lchmod): Mark unused variables.
28887         * lib/getopt.c (_getopt_initialize): Likewise.
28888         * lib/mktime.c (__mktime_internal): Provide prototype.
28889         * lib/inttostr.c (inttostr): Avoid compiler warning even with
28890         older gcc that do not understand #pragma GCC diagnostic.
28891         * lib/uinttostr.c (inttype_is_unsigned): Define.
28892         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
28893
28894 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28895
28896         stat: fix compilation on AIX
28897         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
28898         only see struct stat64.
28899
28900 2009-10-30  Eric Blake  <ebb9@byu.net>
28901
28902         exclude: make more robust
28903         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
28904         rather than masking a coding bug.
28905         Suggested by Bruno Haible.
28906
28907 2009-10-30  Jim Meyering  <meyering@redhat.com>
28908
28909         perl scripts: remove #!/usr/bin/perl in favor of more portable...
28910         Rather than putting #!/usr/bin/perl on the first line,
28911         start with a variant of what's recommended by "man perlrun" that
28912         invokes the first "perl" program from your shell's search path.
28913         * build-aux/gitlog-to-changelog: Replace #!... as above.
28914         Add a "Local Variables" perl mode setting.
28915         Prompted by a patch from Ludovic Courtès.
28916         Improved by Eric Blake.
28917         * build-aux/useless-if-before-free: Likewise.
28918         * build-aux/announce-gen: Likewise.
28919         * build-aux/update-copyright: Likewise.
28920
28921 2009-10-29  Eric Blake  <ebb9@byu.net>
28922
28923         filenamecat-lgpl: adjust clients
28924         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
28925         filenamecat.
28926         * modules/renameat (Depends-on): Likewise.
28927
28928         filenamecat: split into filenamecat-lgpl
28929         * modules/filenamecat-lgpl: New module.
28930         * modules/filenamecat (Files): Move library-safe files into
28931         filenamecat-lgpl.
28932         (Depends-on): Add filenamecat-lgpl.
28933         (configure.ac): Declare witness.
28934         * lib/filenamecat.h (file_name_concat): Only declare when using
28935         GPL module.
28936         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
28937         Move...
28938         * lib/filenamecat-lgpl.c: ...into new file.
28939         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
28940         (gl_FILE_NAME_CONCAT): Use it.
28941         * MODULES.html.sh (File system functions): Mention new module.
28942
28943         argp: avoid memory leak
28944         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
28945         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
28946         base_name, since the latter malloc()s and can call exit().
28947         Leak introduced 2006-07-03.
28948
28949         dirname-lgpl: adjust clients that don't need full dirname
28950         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
28951         * modules/filenamecat (Depends-on): Likewise.
28952         * modules/linkat (Depends-on): Likewise.
28953         * modules/mkancesdirs (Depends-on): Likewise.
28954         * modules/mkdir (Depends-on): Likewise.
28955         * modules/openat (Depends-on): Likewise.
28956         * modules/savewd (Depends-on): Likewise.
28957         * modules/rename (Depends-on): Likewise.
28958         (License): Relax license.
28959         * modules/mkdir-tests (Depends-on): Drop progname.
28960         (Makefile.am): Delete unneeded LDADD.
28961         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
28962
28963         dirname: split into dirname-lgpl
28964         * modules/dirname-lgpl: New module.
28965         * modules/dirname (Files): Move library-safe files into
28966         dirname-lgpl.
28967         (Depends-on): Add dirname-lgpl.
28968         (configure.ac): Declare witness.
28969         * modules/double-slash-root (License): Relax license.
28970         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
28971         module.
28972         * lib/dirname.c (dir_len, mdir_name): Move...
28973         * lib/dirname-lgpl.c: ...into new file.
28974         * lib/basename.c (last_component, base_len): Move...
28975         * lib/basename-lgpl.c: ...into new file.
28976         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
28977         (gl_DIRNAME): Use it.
28978         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
28979         Mention new module.
28980         * modules/dirname-tests (Depends-on): Add progname.
28981         * tests/test-dirname.c (program_name): Delete.
28982
28983         mkdir: make safe for libraries
28984         * modules/mkdir (Depends-on): Drop xalloc.
28985         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
28986         exit.
28987
28988         tests: avoid some compiler warnings
28989         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
28990         literals.
28991         * tests/test-memchr.c (main): Avoid type mismatch.
28992         * tests/test-arpa_inet.c (main): Avoid unused parameters.
28993         * tests/test-base64.c (main): Likewise.
28994         * tests/test-getdelim.c (main): Likewise.
28995         * tests/test-gethostname.c (main): Likewise.
28996         * tests/test-getline.c (main): Likewise.
28997         * tests/test-netinet_in.c (main): Likewise.
28998         * tests/test-select.c (open_server_socket, main): Likewise.
28999         * tests/test-select-stdin.c (main): Likewise.
29000         * tests/test-sockets.c (main): Likewise.
29001         * tests/test-strsignal.c (main): Likewise.
29002         * tests/test-sys_select.c (main): Likewise.
29003         * tests/test-sys_socket.c (main): Likewise.
29004         * tests/test-u64.c (main): Likewise.
29005         * tests/test-xfprintf-posix.c (main): Likewise.
29006         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29007
29008         sockets: avoid compiler warning
29009         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29010
29011         maint: detect usage(1) and other suspicious exits
29012         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29013
29014 2009-10-29  Jim Meyering  <meyering@redhat.com>
29015
29016         timespec: long-to-int truncation could make timespec_cmp malfunction
29017         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29018         a multiple of 2^32 nanoseconds as no difference.
29019
29020 2009-10-28  Jim Meyering  <meyering@redhat.com>
29021
29022         fprintftime: wrap macro code argument in "do {...} while(0)"
29023         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29024         cpy macro must be a statement that can be followed by a semicolon.
29025         Now that the else clause contains a comment and is hence longer
29026         than one line, I require curly braces.  That in turn requires
29027         that we wrap this code block in the standard do...while(0).
29028
29029         fprintftime: remove stray semicolon from previous change
29030         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29031
29032         fprintftime: avoid a warning about ignored fwrite return value
29033         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29034         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29035         that is unsafe.
29036         * modules/fprintftime (Depends-on): Add ignore-value.
29037
29038         exclude: avoid an unwarranted warning
29039         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29040
29041 2009-10-27  Eric Blake  <ebb9@byu.net>
29042
29043         fseek: avoid compilation failure when fflush is replaced
29044         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29045         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29046         module is in use.
29047         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29048         module is not in use; since REPLACE_FSEEK worked otherwise.
29049         (GNULIB_FTELLO): Likewise for ftell.
29050         Reported by Ian Beckwith and others.
29051
29052 2009-10-27  Bruno Haible  <bruno@clisp.org>
29053
29054         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29055         Reported by Jim Meyering.
29056
29057 2009-10-27  Jim Meyering  <jim@meyering.net>
29058             Bruno Haible  <bruno@clisp.org>
29059
29060         Avoid warning despite dropping the return value of fwrite.
29061         * lib/unicodeio.c: Include ignore-value.h.
29062         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29063         * modules/unicodeio (Depends-on): Add ignore-value.
29064
29065 2009-10-26  Eric Blake  <ebb9@byu.net>
29066
29067         areadlinkat: fix fallback path
29068         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29069         pointer and zero.
29070
29071 2009-10-22  PĂ¡draig Brady  <P@draigBrady.com>
29072
29073         Use a better IO block size for modern systems
29074         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29075         * lib/md2.c: Likewise.
29076         * lib/md4.c: Likewise.
29077         * lib/md5.c: Likewise.
29078         * lib/sha1.c: Likewise.
29079         * lib/sha256.c: Likewise.
29080         * lib/sha512.c: Likewise.
29081
29082 2009-10-22  Eric Blake  <ebb9@byu.net>
29083
29084         tests: avoid several compiler warnings
29085         * tests/test-getcwd.c (main): Avoid buffer underflow.
29086         * tests/test-getdate.c (main): String literals are not safe with
29087         putenv, so use setenv.  Declare unused argument.
29088         * modules/getdate-tests (Depends-on): Add setenv.
29089         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29090         problems with string literals in char *.
29091         * tests/test-hash.c (main): Avoid shadowing declaration.
29092         (insert_new): Treat string literals as char const *.
29093         * tests/test-getopt.h (test_getopt): Likewise.
29094         (getopt_loop): Alter types to minimize casting elsewhere.
29095         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29096         (test_getopt_long_posix): Likewise.
29097         (do_getopt_long): Add wrapper to minimize casting.
29098         * tests/test-atexit.c (clear_temp_file): Use void.
29099         * tests/test-areadlink-with-size.c (main): Declare unused
29100         arguments.
29101         * tests/test-areadlink.c (main): Likewise.
29102         * tests/test-areadlinkat-with-size.c (main): Likewise.
29103         * tests/test-areadlinkat.c (main): Likewise.
29104         * tests/test-canonicalize-lgpl.c (main): Likewise.
29105         * tests/test-canonicalize.c (main): Likewise.
29106         * tests/test-dirent-safer.c (main): Likewise.
29107         * tests/test-dirname.c (main): Likewise.
29108         * tests/test-dup2.c (main): Likewise.
29109         * tests/test-fchdir.c (main): Likewise.
29110         * tests/test-fcntl-h.c (main): Likewise.
29111         * tests/test-fcntl-safer.c (main): Likewise.
29112         * tests/test-fdopendir.c (main): Likewise.
29113         * tests/test-fdutimensat.c (main): Likewise.
29114         * tests/test-fflush.c (main): Likewise.
29115         * tests/test-filenamecat.c (main): Likewise.
29116         * tests/test-filevercmp.c (main): Likewise.
29117         * tests/test-fopen-safer.c (main): Likewise.
29118         * tests/test-fopen.c (main): Likewise.
29119         * tests/test-fpending.c (main): Likewise.
29120         * tests/test-fpurge.c (main): Likewise.
29121         * tests/test-freading.c (main): Likewise.
29122         * tests/test-fstatat.c (main): Likewise.
29123         * tests/test-fsync.c (main): Likewise.
29124         * tests/test-futimens.c (main): Likewise.
29125         * tests/test-getndelim2.c (main): Likewise.
29126         * tests/test-gettimeofday.c (main): Likewise.
29127         * tests/test-getopt.c (main): Likewise.
29128         * tests/test-i-ring.c (main): Likewise.
29129         * tests/test-inttypes.c (main): Likewise.
29130         * tests/test-link.c (main): Likewise.
29131         * tests/test-lstat.c (main): Likewise.
29132         * tests/test-math.c (main): Likewise.
29133         * tests/test-md5.c (main): Likewise.
29134         * tests/test-memchr2.c (main): Likewise.
29135         * tests/test-memrchr.c (main): Likewise.
29136         * tests/test-mkdir.c (main): Likewise.
29137         * tests/test-mkdirat.c (main): Likewise.
29138         * tests/test-mkfifoat.c (main): Likewise.
29139         * tests/test-open.c (main): Likewise.
29140         * tests/test-openat-safer.c (main): Likewise.
29141         * tests/test-openat.c (main): Likewise.
29142         * tests/test-quotearg.c (main): Likewise.
29143         * tests/test-rawmemchr.c (main): Likewise.
29144         * tests/test-readlink.c (main): Likewise.
29145         * tests/test-remove.c (main): Likewise.
29146         * tests/test-rename.c (main): Likewise.
29147         * tests/test-renameat.c (main): Likewise.
29148         * tests/test-rmdir.c (main): Likewise.
29149         * tests/test-sha1.c (main): Likewise.
29150         * tests/test-signal.c (main): Likewise.
29151         * tests/test-sigaction.c (main): Likewise.
29152         * tests/test-stat.c (main): Likewise.
29153         * tests/test-stat-time.c (main): Likewise.
29154         * tests/test-stddef.c (main): Likewise.
29155         * tests/test-stdint.c (main): Likewise.
29156         * tests/test-stdio.c (main): Likewise.
29157         * tests/test-stdlib.c (main): Likewise.
29158         * tests/test-strchrnul.c (main): Likewise.
29159         * tests/test-strerror.c (main): Likewise.
29160         * tests/test-string.c (main): Likewise.
29161         * tests/test-strtod.c (main): Likewise.
29162         * tests/test-strverscmp.c (main): Likewise.
29163         * tests/test-symlink.c (main): Likewise.
29164         * tests/test-symlinkat.c (main): Likewise.
29165         * tests/test-sys_stat.c (main): Likewise.
29166         * tests/test-sys_time.c (main): Likewise.
29167         * tests/test-time.c (main): Likewise.
29168         * tests/test-unistd.c (main): Likewise.
29169         * tests/test-unlink.c (main): Likewise.
29170         * tests/test-unlinkat.c (main): Likewise.
29171         * tests/test-utimens.c (main): Likewise.
29172         * tests/test-utimensat.c (main): Likewise.
29173         * tests/test-version-etc.c (main): Likewise.
29174         * tests/test-wchar.c (main): Likewise.
29175         * tests/test-wctype.c (main): Likewise.
29176         * tests/test-xprintf-posix.c (main): Likewise.
29177         * tests/test-posixtm.c (main): Likewise.
29178         (STREQ): Delete unused macro.
29179         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29180         shadowed variables.
29181         * tests/test-memchr.c (main): Likewise.
29182
29183 2009-10-21  Eric Blake  <ebb9@byu.net>
29184
29185         areadlinkat: avoid failure on older glibc
29186         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29187         rather than mis-comparing 0 against FUNC_RESULT of char*.
29188
29189 2009-10-21  Bruno Haible  <bruno@clisp.org>
29190
29191         * modules/stpncpy (License): Relicense under LGPLv2+.
29192         Reported by David Lutterkort <lutter@redhat.com>.
29193
29194 2009-10-20  Eric Blake  <ebb9@byu.net>
29195
29196         utimensat: work around Solaris 9 bug
29197         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29198         has trailing slash bugs.
29199         * tests/test-lutimens.h (test_lutimens): Enhance test.
29200         * tests/test-utimens.h (test_utimens): Likewise.
29201         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29202         * doc/posix-functions/utimes.texi (utimes): Likewise.
29203         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29204         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29205         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29206         * doc/posix-functions/futimens.texi (futimens): Likewise.
29207
29208         fdutimensat: new module
29209         * modules/fdutimensat: New file.
29210         * lib/fdutimensat.c (fdutimensat): Likewise.
29211         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29212         * MODULES.html.sh (File system functions): Mention module.
29213         * modules/fdutimensat-tests: New test.
29214         * tests/test-fdutimensat.c: Likewise.
29215
29216         doc: regenerate INSTALL
29217         * doc/INSTALL: Reflect recent autoconf update.
29218         * doc/INSTALL.ISO: Likewise.
29219         * doc/INSTALL.UTF-8: Likewise.
29220
29221 2009-10-20  PĂ¡draig Brady  <P@draigBrady.com>
29222
29223         acl: warn if ACL support is not detected
29224         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29225
29226 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29227
29228         * lib/nproc.h: Add extern "C" block for C++.
29229
29230 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29231             Bruno Haible  <bruno@clisp.org>
29232
29233         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29234         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29235         * doc/posix-functions/isalpha.texi: Likewise.
29236         * doc/posix-functions/isblank.texi: Likewise.
29237         * doc/posix-functions/iscntrl.texi: Likewise.
29238         * doc/posix-functions/isdigit.texi: Likewise.
29239         * doc/posix-functions/isgraph.texi: Likewise.
29240         * doc/posix-functions/islower.texi: Likewise.
29241         * doc/posix-functions/isprint.texi: Likewise.
29242         * doc/posix-functions/ispunct.texi: Likewise.
29243         * doc/posix-functions/isspace.texi: Likewise.
29244         * doc/posix-functions/isupper.texi: Likewise.
29245         * doc/posix-functions/isxdigit.texi: Likewise.
29246
29247 2009-10-18  Bruno Haible  <bruno@clisp.org>
29248
29249         Tests for module 'isblank'.
29250         * modules/isblank-tests: New file.
29251         * tests/test-isblank.c: New file.
29252
29253         New module 'isblank'.
29254         * lib/isblank.c: New file.
29255         * m4/isblank.m4: New file.
29256         * modules/isblank: New file.
29257         * doc/posix-functions/isblank.texi: Mention the new module.
29258
29259 2009-10-18  Bruno Haible  <bruno@clisp.org>
29260
29261         New module 'ctype'.
29262         * lib/ctype.in.h: New file.
29263         * m4/ctype.m4: New file.
29264         * modules/ctype: New file.
29265         * doc/posix-headers/ctype.texi: Mention the new module.
29266
29267 2009-10-18  Jim Meyering  <meyering@redhat.com>
29268
29269         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29270         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29271         right after its initialization, rather than farther down.
29272         Keeping these in close proximity makes it easier to ensure
29273         that each such variable is initialized.  E.g.,
29274
29275             LIB_CLOCK_GETTIME=
29276             AC_SUBST([LIB_CLOCK_GETTIME])
29277
29278         This change also increments these serial numbers.
29279         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29280         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29282
29283 2009-10-18  Bruno Haible  <bruno@clisp.org>
29284
29285         Don't let environment variables perturb build.
29286         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29287         (gl_PREREQ_GETHRXTIME): ... not here.
29288
29289 2009-10-18  Bruno Haible  <bruno@clisp.org>
29290
29291         Avoid symlink attack in localcharset module.
29292         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29293         (O_NOFOLLOW): Define fallback.
29294         (get_charset_aliases): Don't open the file if it is a symbolic link.
29295         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29296         gl_FCNTL_H.
29297         (gl_FCNTL_H): Require it.
29298         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29299         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29300         Reported by Fergal Glynn <fglynn@veracode.com>.
29301
29302 2009-10-18  Bruno Haible  <bruno@clisp.org>
29303
29304         Implement nproc for mingw.
29305         * lib/nproc.c: Include <windows.h>
29306         (num_processors): On native Windows platforms, try GetSystemInfo.
29307
29308 2009-10-18  Bruno Haible  <bruno@clisp.org>
29309
29310         Implement nproc for IRIX.
29311         * lib/nproc.c: Include <sys/sysmp.h>.
29312         (num_processors): On IRIX systems, try sysmp.
29313         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29314
29315 2009-10-18  Bruno Haible  <bruno@clisp.org>
29316
29317         Implement nproc for HP-UX.
29318         * lib/nproc.c: Include <sys/pstat.h>
29319         (num_processors): On HP-UX systems, try pstat_getdynamic.
29320         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29321         pstat_getdynamic.
29322
29323 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29324             Bruno Haible  <bruno@clisp.org>
29325
29326         Implement nproc for NetBSD, OpenBSD.
29327         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29328         (ARRAY_SIZE): New macro.
29329         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29330         * m4/nproc.m4: New file.
29331         * modules/nproc (Files): Add m4/nproc.m4.
29332         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29333         (Makefile.am): Instead, augment lib_SOURCES.
29334
29335 2009-10-18  Bruno Haible  <bruno@clisp.org>
29336
29337         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29338         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29339         sys/param.h.
29340
29341 2009-10-16  Eric Blake  <ebb9@byu.net>
29342
29343         utimensat: new module
29344         * modules/utimensat: New file.
29345         * lib/utimensat.c (utimensat): Likewise.
29346         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29347         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29348         so we can work around Linux bugs.
29349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29350         * modules/sys_stat (Makefile.am): Substitute them.
29351         * lib/sys_stat.in.h (utimensat): Declare it.
29352         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29353         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29354         * modules/utimensat-tests: New test.
29355         * tests/test-utimensat.c: Likewise.
29356
29357         utimens: let lutimens work on non-symlinks
29358         * lib/utimens.c (lutimens): Fall back to utimens rather than
29359         failing with ENOSYS, when file is not a symlink.
29360         (utimens): Reduce redirection.
29361         * tests/test-lutimens.h (test_lutimens): Update test to cover
29362         non-symlinks.
29363         * tests/test-utimens.h (test_utimens): Update test to cover
29364         symlinks.
29365         * tests/test-utimens.c (main): Update caller.
29366
29367         utimens: cache whether utimensat syscall works
29368         * lib/utimens.c (utimensat_works_really): New cache variable.
29369         (fdutimens, lutimens): Use it to avoid failing syscall.
29370
29371         test-stat-time, test-utimens: improve portability
29372         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29373         ext4 on alpha, and for cygwin.
29374         * tests/test-utimens-common.h: New file.
29375         (nap): Factor delays into single function.
29376         * tests/test-lutimens.h (test_lutimens): Use new header.
29377         * tests/test-futimens.h (test_futimens): Likewise.
29378         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29379         timestamps to occur from same machine, as was done previously for
29380         test_utimens.
29381         * modules/utimens-tests (Files): Ship new file.
29382         * modules/futimens-tests (Files): Likewise.
29383         Reported in part by Jim Meyering.
29384
29385         sys_stat: sort replacement declarations
29386         * lib/sys_stat.in.h: Sort declarations.
29387         * lib/futimens.c (futimens): Fix typo.
29388
29389 2009-10-15  Jim Meyering  <meyering@redhat.com>
29390
29391         don't let environment settings perturb build
29392         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29393         could cause a configure-time and/or build-time malfunction.
29394         Typically, a configure-time function-in-library test is performed
29395         via code like this:
29396
29397           LIB_VAR=
29398           AC_SUBST([LIB_VAR])
29399           prefix_saved_LIBS=$LIBS
29400             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29401                        [test "$ac_cv_search_FUNC" = "none required" ||
29402                         LIB_VAR=$ac_cv_search_FUNC])
29403           LIBS=$prefix_saved_LIBS
29404
29405         However, in each of the files affected by this change, the LIB_VAR=
29406         initialization was omitted.  Thus, when set in the environment, its
29407         value would propagate into generated Makefiles when FUNC is not found
29408         in LIB_NAME.
29409         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29412
29413 2009-10-14  Eric Blake  <ebb9@byu.net>
29414
29415         fchdir: avoid infinite recursion in mingw
29416         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29417         recursing.
29418
29419         test-stat-time: port to mingw
29420         * tests/test-stat-time.c (force_unlink): Return a value.
29421         (test_ctime) [W32]: Fix compilation error.
29422         (nap): Don't call usleep with too large an argument.  Use
29423         force_unlink.
29424         * doc/pastposix-functions/usleep.texi (usleep): Document the
29425         portability issue.
29426
29427 2009-10-13  Jim Meyering  <meyering@redhat.com>
29428
29429         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29430         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29431         * modules/pipe-filter-ii: Likewise.
29432         * modules/sys_socket-tests: Likewise.
29433         * modules/tsearch-tests: Likewise.
29434         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29435         (check): Depend on it.
29436
29437 2009-10-12  Eric Blake  <ebb9@byu.net>
29438
29439         utimens-tests: port to NFS file systems
29440         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29441         comparisons to avoid spurious failures from timestamp drift
29442         between NFS machines.
29443
29444 2009-10-12  Eric Blake  <ebb9@byu.net>
29445
29446         stat-time-tests: minor cleanups
29447         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29448         * tests/test-stat-time.c (nap): Separate assignment from call.
29449         Suggested by Paolo Bonzini and Bruno Haible.
29450
29451         sys_stat: guarantee struct timespec
29452         * lib/sys_stat.in.h (includes): Always include <time.h>
29453         * modules/sys_stat (Depends-on): Add time.
29454         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29455         mode_t permission values.
29456         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29457         get at subsecond timestamps.
29458
29459 2009-10-10  Eric Blake  <ebb9@byu.net>
29460
29461         futimens: new module
29462         * modules/futimens: New file.
29463         * lib/futimens.c (futimens): Likewise.
29464         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29465         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29466         we can work around Linux bugs.
29467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29468         * modules/sys_stat (Makefile.am): Substitute them.
29469         * lib/sys_stat.in.h (futimens): Declare it.
29470         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29471         * doc/posix-functions/futimens.texi (futimens): Likewise.
29472         * modules/futimens-tests: New test.
29473         * tests/test-futimens.c: Likewise.
29474
29475         utimens: introduce fdutimens
29476         * lib/utimens.h (fdutimens): New prototype.
29477         * lib/utimens.c (gl_futimens): Move guts...
29478         (fdutimens): ...to new interface.
29479         * tests/test-utimens.c (do_fdutimens): Use it.
29480
29481         utimens: add UTIME_NOW and UTIME_OMIT support
29482         * lib/utimens.c (validate_timespec, update_timespec): New helper
29483         functions.
29484         (gl_futimens, lutimens): Use them.
29485         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
29486         stdbool, sys_stat.
29487         (Link): Mention resulting library dependency.
29488         * modules/utimecmp (Link): Likewise.
29489         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
29490         (Makefile.am): Pick up library dependency.
29491         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
29492         definition.
29493         * tests/test-sys_stat.c: Test the definitions.
29494         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
29495         * NEWS: Document library dependency.
29496
29497         utimecmp: support symlink timestamps
29498         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
29499         hashing when possible.  Use pathconf when available.
29500         (SYSCALL_RESOLUTION): Recognize tighter resolution.
29501         * modules/utimecmp (Depends-on): Add lstat.
29502
29503         utimens: add lutimens interface
29504         * lib/utimens.c (lutimens): New function.
29505         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
29506         * lib/utimens.h (lutimens): Declare new interface.
29507         * tests/test-utimens.c (main): Enhance test.
29508         * tests/test-lutimens.h (test_lutimens): New file.
29509         * modules/utimens-tests (Files): Distribute it.
29510         (Depends-on): Add symlink.
29511         (configure.ac): Check for usleep.
29512
29513         utimens: validate futimens usage
29514         * lib/utimens.c (gl_futimens): Require valid fd up front, using
29515         fewer syscalls on failure later on.  Avoid compiler warning on
29516         mingw.
29517         * modules/utimens (Depends-on): Add dup2.
29518
29519         utimens: add test
29520         * modules/utimens-tests: New test.
29521         * tests/test-utimens.h: New file.
29522         * tests/test-futimens.h: Likewise.
29523         * tests/test-utimens.c: Likewise.
29524
29525         doc: mention timestamp portability issues
29526         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
29527         instead.
29528         * doc/posix-functions/utime.texi (utime): Likewise.
29529         * doc/posix-functions/utimes.texi (utimes): Likewise.
29530         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
29531         instead.
29532         * doc/posix-functions/futimens.texi (futimens): Mention utimens
29533         module.
29534         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29535         Mention weakness with symlink timestamps.
29536         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
29537         to utimensat/futimens instead.
29538         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
29539
29540         test-dup2: enhance test
29541         * tests/test-dup2.c (main): Also check AT_FDCWD.
29542
29543         test-stat-time: avoid more spurious failures
29544         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
29545         xfs; and avoid race if the two timestamps cross quantization edge.
29546
29547         relocatable: prefer 'file system' over 'filesystem'
29548         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
29549         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
29550         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
29551         * doc/relocatable.texi (Enabling Relocatability): Likewise.
29552         * lib/relocatable.c (compute_curr_prefix): Likewise.
29553
29554 2009-10-10  Jim Meyering  <meyering@redhat.com>
29555
29556         stat-time-tests: check for the usleep function
29557         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
29558
29559 2009-10-10  Bruno Haible  <bruno@clisp.org>
29560
29561         * modules/xnanosleep: Put the Link section after the Include section.
29562
29563 2009-10-09  Eric Blake  <ebb9@byu.net>
29564
29565         dup2: work around FreeBSD 6.1 bug
29566         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
29567         * doc/posix-functions/dup2.texi (dup2): Document it.
29568         Reported by Nelson H. F. Beebe and Jim Meyering.
29569
29570         test-stat-time: port to buggy NFS clients
29571         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
29572         (test_ctime): Also skip test if mtime and ctime are skewed.
29573
29574         maint: prefer 'file system' over 'filesystem'
29575         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29576         * doc/posix-functions/lstat.texi (lstat): Likewise.
29577         * lib/file-has-acl.c (file_has_acl): Likewise.
29578         * lib/fwriteerror.c [TEST]: Likewise.
29579         * tests/test-areadlink.h (test_areadlink): Likewise.
29580         * tests/test-areadlinkat-with-size.c (main): Likewise.
29581         * tests/test-areadlinkat.c (main): Likewise.
29582         * tests/test-canonicalize-lgpl.c (main): Likewise.
29583         * tests/test-canonicalize.c (main): Likewise.
29584         * tests/test-fstatat.c (main): Likewise.
29585         * tests/test-linkat.c (main): Likewise.
29586         * tests/test-lstat.h (test_lstat_func): Likewise.
29587         * tests/test-mkdir.h (test_mkdir): Likewise.
29588         * tests/test-readlink.h (test_readlink): Likewise.
29589         * tests/test-remove.c (main): Likewise.
29590         * tests/test-rename.h (test_rename): Likewise.
29591         * tests/test-renameat.c (main): Likewise.
29592         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29593         * tests/test-symlink.h (test_symlink): Likewise.
29594         * tests/test-symlinkat.c (main): Likewise.
29595         * tests/test-unlink.h (test_unlink_func): Likewise.
29596         * tests/test-unlinkat.c (main): Likewise.
29597
29598         maint: make realtime library usage explicit
29599         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
29600         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
29601         * modules/settime (Link): Likewise.
29602         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
29603
29604         test-stat-time: speed up execution
29605         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
29606         warning on mingw.
29607         (nap): New helper function.
29608         (prepare_test): Use it to reduce sleep time.
29609         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
29610         execution.
29611         * modules/stat-time-tests (configure.ac): Check for usleep.
29612
29613 2009-10-09  Jim Meyering  <meyering@redhat.com>
29614
29615         selinux-h: always use getfilecon wrappers
29616         * lib/getfilecon.c: New file.
29617         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
29618         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
29619         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
29620         (fgetfilecon): Provide a stub.
29621         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
29622         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
29623         file unconditionally.
29624         When <selinux/selinux.h> is found, arrange to use wrappers.
29625         * modules/selinux-h (Files): Add getfilecon.c.
29626         (Makefile.am): Substitute include-next-related bits
29627         into the now-always-generated selinux/selinux.h file.
29628         * doc/glibc-functions/lgetfilecon.texi: New file.
29629         * doc/glibc-functions/fgetfilecon.texi: New file.
29630         * doc/glibc-functions/getfilecon.texi: New file.
29631         * doc/glibc-functions/getfilecon-desc.texi: New file.
29632         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
29633         which to pull in the new files.
29634         * MODULES.html.sh (Misc): Add selinux-h.
29635
29636 2009-10-08  Jim Meyering  <meyering@redhat.com>
29637
29638         unistd: fix comment typo
29639         * lib/unistd.in.h (euidaccess): Fix a comment typo.
29640
29641 2009-10-08  Eric Blake  <ebb9@byu.net>
29642
29643         areadlink: use SIZE_MAX consistently
29644         * modules/areadlink (Depends-on): Add stdint.
29645         * modules/areadlink-with-size (Depends-on): Likewise.
29646         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
29647         gives NULL; drop sys/types, since unistd gives size_t; and add
29648         stdint for SIZE_MAX.
29649         (SIZE_MAX): Rely on headers.
29650         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
29651         and add stdint.
29652         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
29653         (SIZE_MAX): Likewise.
29654         (INITIAL_BUF_SIZE): Turn into enum.
29655         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
29656
29657 2009-10-08  Jim Meyering  <meyering@redhat.com>
29658
29659         areadlinkat: avoid compilation failure
29660         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
29661         Fix typo in comment.
29662
29663 2009-10-07  Eric Blake  <ebb9@byu.net>
29664
29665         areadlinkat-with-size: new module
29666         * modules/areadlinkat-with-size: New module.
29667         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
29668         * lib/areadlink.h (areadlinkat): Declare it.
29669         * MODULES.html.sh (File system functions): Mention it.
29670         * modules/areadlinkat-with-size-tests: New test.
29671         * tests/test-areadlinkat-with-size.c: New file.
29672
29673         xreadlinkat: new module
29674         * modules/xreadlinkat: New module.
29675         * lib/xreadlinkat.c (xreadlinkat): New file.
29676         * lib/xreadlink.h (xreadlinkat): Declare it.
29677         * MODULES.html.sh (File system functions): Mention it.
29678
29679         areadlinkat: new module
29680         * lib/at-func.c (FUNC_FAIL): New define.
29681         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
29682         * modules/areadlinkat: New module.
29683         * lib/linkat.c (areadlinkat): Move...
29684         * lib/areadlinkat.c (areadlinkat): ...to new file.
29685         * lib/areadlink.h (areadlinkat): Declare it.
29686         * modules/linkat (Depends-on): Add areadlinkat.
29687         * MODULES.html.sh (File system functions): Mention it.
29688         * modules/areadlinkat-tests: New test.
29689         * tests/test-areadlinkat.c: New file.
29690
29691         areadlink, areadlink-with-size: add tests
29692         * modules/areadlink-tests: New test.
29693         * modules/areadlink-with-size-tests: Likewise.
29694         * tests/test-areadlink.h: New file.
29695         * tests/test-areadlink.c: Likewise.
29696         * tests/test-areadlink-with-size.c: Likewise.
29697
29698         maint: minor cleanups
29699         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
29700         _UNUSED_PARAMETER_ instead.
29701         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
29702         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
29703         * modules/linkat-tests (Files): Distribute test-link.h.
29704
29705         openat, utimens: whitespace cleanup
29706         * lib/openat.c: Prefer space throughout, rather than mix of 8
29707         spaces vs. tabs.
29708         * lib/at-func.c: Likewise.
29709         * lib/utimens.c: Likewise.
29710
29711         openat: avoid using wrong fd
29712         * lib/openat.c (openat_permissive): Reject user's fd if saving the
29713         working directory chooses same fd.
29714         * lib/at-func.c (AT_FUNC_NAME): Likewise.
29715
29716         mkdir, mkdirat: fix cygwin 1.5.x bug
29717         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
29718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
29719         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
29720         bug.
29721         (gl_PREREQ_MKDIR): Delete unused macro.
29722         * modules/mkdir (Files): Track file rename.
29723         (configure.ac): Update macro name.
29724         * modules/openat (Depends-on): Add mkdir.
29725         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
29726
29727         mkdir, mkdirat: add tests
29728         * modules/mkdir-tests: New test.
29729         * tests/test-mkdir.h: New file.
29730         * tests/test-mkdir.c: Likewise.
29731         * tests/test-mkdirat.c: Likewise.
29732         * modules/openat-tests (Files): Add new files.
29733         (Makefile.am): Run new test.
29734
29735 2009-10-06  Eric Blake  <ebb9@byu.net>
29736
29737         doc: tweak *at function documentation
29738         * doc/posix-functions/faccessat.texi (faccessat): Mention
29739         known issue with replacement.
29740         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
29741         * doc/posix-functions/linkat.texi (linkat): Likewise.
29742         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29743         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29745         * doc/posix-functions/renameat.texi (renameat): Likewise.
29746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29747
29748         openat: fix GNU/Hurd bug in unlinkat
29749         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
29750         broken.
29751         * doc/posix-functions/unlink.texi (unlink): Document this.
29752         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
29753
29754         fdopendir: fix GNU/Hurd bug
29755         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
29756         allowing non-directory fds.
29757         * lib/fdopendir.c (rpl_fdopendir): Work around it.
29758         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29759         * modules/dirent (Makefile.am): Substitute it.
29760         * lib/dirent.in.h (fdopendir): Declare replacement.
29761         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
29762         * tests/test-fdopendir.c (main): Test something other than
29763         /dev/null, since on Hurd that behaves like a directory.
29764
29765         test-symlink: port to GNU/Hurd
29766         * tests/test-symlink.h (test_symlink): Relax expected errno.
29767
29768         doc: tweak more cygwin information
29769         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
29770         now compatible with glibc.
29771         * doc/posix-functions/getopt.texi (getopt): Likewise.
29772
29773         getopt-gnu: add another test
29774         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
29775         guarantee behavior relied on by m4.
29776         * tests/test-getopt.c (main): Use it.
29777         * modules/getopt-posix-tests (Depends-on): Add setenv.
29778         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
29779
29780         getopt: fix compilation on darwin
29781         * lib/getopt.in.h (includes): Leave breadcrumbs during system
29782         include.
29783         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
29784         Reported by Ludovic Courtès.
29785
29786 2009-10-06  Bruno Haible  <bruno@clisp.org>
29787
29788         * modules/size_max (Description): Discourage its use.
29789         Reported by Simon Josefsson.
29790
29791 2009-10-06  Jim Meyering  <meyering@redhat.com>
29792
29793         linkat: avoid compilation failure
29794         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
29795
29796 2009-10-05  Eric Blake  <ebb9@byu.net>
29797
29798         linkat: support Linux 2.6.17
29799         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
29800         linkat on Linux, but allow cache variable override.
29801         * lib/linkat.c (rpl_linkat): Define override.
29802         * modules/linkat (Depends-on): Add symlinkat.
29803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
29804         * modules/unistd (Makefile.am): Substitute it.
29805         * lib/unistd.in.h (linkat): Declare replacement.
29806         Reported by PĂ¡draig Brady.
29807
29808         quotearg: port test to systems with C.UTF-8 locale
29809         * tests/test-quotearg.c (struct result_strings): Add another
29810         member, differentiating between C.ASCII and C.UTF-8 handling.
29811         (compare_strings): Add parameter.
29812         (main): Adjust all callers.
29813
29814         getopt: avoid clash with FreeBSD _getopt_internal
29815         * lib/getopt.in.h (_getopt_internal): Override the name.
29816         * lib/getopt_int.h (includes): Pick up any overrides.
29817         Reported by Reuben Thomas.
29818
29819         hash: allow C89 compilation
29820         * lib/hash.c (check_tuning): Move declaration before statement.
29821         Reported by Reuben Thomas.
29822
29823 2009-10-05  Karl Berry  <karl@gnu.org>
29824
29825         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
29826
29827 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
29828             Bruno Haible  <bruno@clisp.org>
29829
29830         * lib/uname.c (uname): Use a table-driven algorithm to compute
29831         Windows NT versions.
29832
29833 2009-10-04  Bruno Haible  <bruno@clisp.org>
29834
29835         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
29836         program_invocation_short_name.
29837         * modules/progname (configure.ac): Test for presence of
29838         program_invocation_short_name.
29839         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29840
29841 2009-10-04  Bruno Haible  <bruno@clisp.org>
29842
29843         * lib/progname.c (set_program_name): Fix comment.
29844         Reported by Jim Meyering.
29845
29846 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29847             Bruno Haible  <bruno@clisp.org>
29848
29849         * lib/uname.c: Include <string.h>.
29850         (uname): Do only one call to GetVersionEx in the common case.
29851
29852 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
29853             Bruno Haible  <bruno@clisp.org>
29854
29855         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
29856         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
29857         (uname): Add support for Windows CE and various non-x86 CPU types.
29858
29859 2009-10-03  Bruno Haible  <bruno@clisp.org>
29860
29861         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
29862         invocation to tests/configure.ac.
29863         Reported by Ian Beckwith <ianb@erislabs.net>.
29864
29865 2009-10-02  Eric Blake  <ebb9@byu.net>
29866
29867         fchdir: avoid compiler warning
29868         * lib/fchdir.c (canonicalize_file_name)
29869         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
29870
29871         test-open: support mingw errno values
29872         * tests/test-open.h (test_open): Relax test.
29873         * tests/test-fopen.h (test_fopen): Likewise.
29874         * tests/test-openat-safer.c (main): Likewise.
29875
29876         open: fix opening directory on mingw
29877         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
29878
29879         test-open: on GNU/Hurd, /dev/null is a directory
29880         * tests/test-fopen.h (main): Rename...
29881         (test_fopen): ...to this.  Use a guaranteed non-directory when
29882         confirming open behavior on trailing slash.
29883         * tests/test-openat-safer.c (main): Likewise.
29884         * tests/test-open.h (main): Likewise....
29885         (test_open): ...to this.
29886         * tests/test-fopen.c (main): Adjust caller.
29887         * tests/test-fopen-safer.c (main): Likewise.
29888         * tests/test-open.c (main): Likewise.
29889         * tests/test-fcntl-safer.c (main): Likewise.
29890         Reported by Samuel Thibault.
29891
29892         rename, fchdir: don't ignore chdir failure
29893         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
29894         * lib/rename.c (rpl_rename) [W32]: Likewise.
29895         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
29896         an empty destination directory if source cannot be renamed,
29897         although there is still possibility for failure.
29898         * doc/posix-functions/rename.texi (rename): Document the race.
29899         Reported by Jim Meyering.
29900
29901         maint: cleanup whitespace in recent commits
29902         * lib/rename.c (rpl_rename): Remove tabs.
29903         * tests/test-link.h (test_link): Likewise.
29904         * lib/fchdir.c (get_name): Likewise.
29905         Reported by Jim Meyering.
29906
29907 2009-10-02  Ben Pfaff  <blp@gnu.org>
29908
29909         relocatable-prog-wrapper: Add missing dependency on
29910         double-slash-root.
29911         * modules/relocatable-prog-wrapper: Add dependency.
29912         Reported by Ian Beckwith <ianb@erislabs.net>.
29913
29914 2009-10-02  Eric Blake  <ebb9@byu.net>
29915
29916         renameat: fix Solaris bugs
29917         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
29918         needed fixing.
29919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
29920         * modules/stdio (Makefile.am): Substitute it.
29921         * lib/stdio.in.h (renameat): Declare replacement.
29922         * lib/renameat.c (rpl_renameat): Implement fix.
29923
29924         renameat: new module
29925         * modules/renameat: New file.
29926         * lib/renameat.c (renameat): Likewise.
29927         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
29928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29929         * modules/stdio (Makefile.am): Substitute them.
29930         * lib/stdio.in.h (renameat): Declare it.
29931         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29932         * doc/posix-functions/renameat.texi (renameat): Likewise.
29933         * modules/renameat-tests: New test.
29934         * tests/test-renameat.c: Likewise.
29935
29936         rename: fix mingw bugs
29937         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
29938         directory overwrite bugs.
29939
29940         rename: fix another cygwin 1.5 bug
29941         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
29942         checks.
29943         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
29944         unnecessary cygwin workarounds.  Also work around bug with moving
29945         full directory onto an empty one.
29946         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
29947
29948         rename-dest-slash: merge into rename module
29949         * modules/rename-dest-slash (Status): Mark obsolete.
29950         (Depends-on): Add rename.
29951         (Files): Let rename do it all.
29952         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
29953         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
29954         * m4/rename-dest-slash.m4: ...so this file can be deleted.
29955         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
29956         * lib/rename.c (rpl_rename): Update comments.
29957
29958         rename: fix cygwin 1.5.x bugs
29959         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
29960         * lib/rename.c (rpl_rename): Work around them.
29961         * modules/rename (Depends-on): Add same-inode.
29962
29963         rename: fix Solaris 10 bug
29964         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29965         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
29966         was the only bug.
29967
29968         rename: fix Solaris 9 bug
29969         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
29970         on non-directory.  Avoid calling exit.
29971         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
29972         strdup.
29973         * modules/rename-tests (Depends-on): Drop lstat.
29974         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
29975         (gl_PREREQ_RENAME): Delete unused macro.
29976
29977         rename-dest-slash: fix NetBSD bug
29978         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
29979         links.
29980         * modules/rename-dest-slash (Depends-on): Add same-inode.
29981
29982         rename-tests: new test, exposes several platform bugs
29983         * modules/rename-tests: New file.
29984         * tests/test-rename.h: Likewise.
29985         * tests/test-rename.c: Likewise.
29986         * doc/posix-functions/rename.texi (rename): Improve documentation,
29987         including bugs that will eventually be fixed in gnulib.
29988
29989 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
29990
29991         * lib/uname.c: Include <stdlib.h>
29992         (uname): Assume version info is available.
29993
29994 2009-10-02  Jim Meyering  <meyering@redhat.com>
29995
29996         gnu-web-doc-update: correct --help output
29997         * build-aux/gnu-web-doc-update: Make --help output relevant.
29998
29999         gnu-web-doc-update: add standard options
30000         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30001
30002         gnu-web-doc-update: New module.
30003         Use this script to automatically update the on-line web documentation
30004         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30005         * modules/gnu-web-doc-update: New file, from coreutils.
30006         * build-aux/gnu-web-doc-update: New script.
30007
30008 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30009
30010         link: LoadLibrary is not needed.
30011         * lib/link.c: Use GetModuleHandle.
30012
30013 2009-10-01  Eric Blake  <ebb9@byu.net>
30014
30015         getopt: bump serial number
30016         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30017         change.
30018
30019         tests: tighten link, rmdir, and remove tests
30020         * tests/test-link.h (includes): No need to use <config.h> here.
30021         Clean up if directory hard link was created, otherwise test for
30022         trailing '.'.
30023         * tests/test-linkat.c (main): Simplify.
30024         * tests/test-remove.c (main): Enhance test for trailing '.'.
30025         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30026
30027 2009-10-01  Jim Meyering  <meyering@redhat.com>
30028
30029         maint.mk: requiring "make major" was annoying, for a "minor" release.
30030         What is intended is "stable", to contrast with alpha and beta,
30031         so require "make stable", not "make major".
30032         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30033         (get_tool_versions): Likewise.
30034         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30035
30036 2009-09-30  Ben Pfaff  <blp@gnu.org>
30037
30038         Fix broken build of replacement for Windows tmpfile().
30039         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30040         flags argument added along with the 'mkostemp' module.
30041
30042 2009-09-28  Bruno Haible  <bruno@clisp.org>
30043
30044         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30045         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30046         to 'remove_elt'.
30047         (gl_list_remove): Update.
30048         * lib/gl_list.c (gl_list_remove): Update.
30049         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30050         to 'remove_elt'.
30051         (gl_oset_remove): Update.
30052         * lib/gl_list.c (gl_oset_remove): Update.
30053         Reported by Eric Blake.
30054
30055 2009-09-28  Eric Blake  <ebb9@byu.net>
30056
30057         doc: mention yet more cygwin 1.7 status
30058         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30059         cygwin.
30060         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30061         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30062
30063         argp: fix test failure
30064         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30065         that are not upper-case.  Pass correct range to tolower.
30066
30067 2009-09-27  Jim Meyering  <meyering@redhat.com>
30068
30069         test-yesno: work around sparc-dash here-document infelicity
30070         Without this change, the literal \177 byte in a here document
30071         would make dash 0.5.5.1-3 access uninitialized memory.
30072         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30073         Instead, use a marker, "@", and filter through tr to create the desired
30074         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30075
30076 2009-09-27  Bruno Haible  <bruno@clisp.org>
30077
30078         Disable untested support for new flavours of ACLs on AIX.
30079         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30080         progress.
30081         * lib/set-mode-acl.c (qset_acl): Likewise.
30082
30083 2008-12-07  Bruno Haible  <bruno@clisp.org>
30084
30085         Add support for new flavours of ACLs on AIX. (Untested.)
30086         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30087         (file_has_acl): Add support for newer AIX.
30088         * lib/set-mode-acl.c (qset_acl): Likewise.
30089         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30090         Rainer Tammer <tammer@tammer.net>.
30091
30092 2009-09-26  Eric Blake  <ebb9@byu.net>
30093
30094         argp: fix compilation of getopt
30095         * lib/getopt.in.h (includes): Use different guard than glibc.
30096         Reported by Sergey Poznyakoff.
30097
30098         doc: mention more cygwin 1.7 status
30099         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30100         bug.
30101         * doc/posix-functions/execl.texi (execl): Likewise.
30102         * doc/posix-functions/execle.texi (execle): Likewise.
30103         * doc/posix-functions/execlp.texi (execlp): Likewise.
30104         * doc/posix-functions/execv.texi (execv): Likewise.
30105         * doc/posix-functions/execve.texi (execve): Likewise.
30106         * doc/posix-functions/execvp.texi (execvp): Likewise.
30107         * doc/glibc-functions/canonicalize_file_name.texi
30108         (canonicalize_file_name): Cygwin 1.7 now provides this.
30109         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30110         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30111         on AT_SYMLINK_NOFOLLOW.
30112
30113 2009-09-24  Eric Blake  <ebb9@byu.net>
30114
30115         test-linkat: make test more robust
30116         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30117
30118         getopt: fix inclusion guards for cygwin
30119         * modules/getopt-posix (Depends-on): Add include-next.
30120         (Makefile.am): Substitute more items in replacement header.
30121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30122         <getopt.h>.
30123         * lib/getopt.in.h (includes): Use split inclusion guard, and
30124         prefer <getopt.h> over include <unistd.h> when one is present.
30125         (option): Also override name of 'struct option'.
30126
30127         same-inode: revert prior change; it is not yet ready
30128         * NEWS: Undo mention of this change.
30129         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30131         * lib/cycle-check.c (cycle_check): Likewise.
30132         * lib/same.c (same_name): Likewise.
30133         * lib/at-func2.c (at_func2): Likewise.
30134
30135 2009-09-23  Eric Blake  <ebb9@byu.net>
30136
30137         linkat: new module
30138         * modules/linkat: New file.
30139         * lib/at-func2.c (at_func2): Likewise.
30140         * lib/linkat.c (linkat): Likewise.
30141         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30142         * lib/openat-priv.h (at_func2): Add declaration.
30143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30144         * modules/unistd (Makefile.am): Substitute them.
30145         * lib/unistd.in.h (linkat): Declare it.
30146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30147         * doc/posix-functions/linkat.texi (linkat): Likewise.
30148         * doc/posix-functions/link.texi (link): Tweak wording.
30149         * tests/test-link.c (main): Move guts...
30150         * tests/test-link.h (test_link): ...into new file.
30151         * modules/linkat-tests: New test.
30152         * tests/test-linkat.c: Likewise.
30153         * modules/link-tests (Files): Ship new file.
30154         (Depends-on): Add stdbool.
30155
30156         dirname: add library-safe mdir_name
30157         * lib/dirname.h (mdir_name): New prototype.
30158         * lib/dirname.c (dir_name): Move guts...
30159         (mdir_name): ...to new function that avoids xalloc_die.
30160
30161         fchdir: another mingw fix
30162         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30163         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30164         on mingw (where it has not yet been ported), and make it optional
30165         elsewhere.
30166         (_gl_register_fd): Use it.
30167
30168         same-inode: make SAME_INODE tri-state, to port to mingw
30169         * NEWS: Mention this change.
30170         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30171         st_ino always being 0.
30172         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30173         * lib/cycle-check.c (cycle_check): Likewise.
30174         * lib/same.c (same_name): Likewise.
30175
30176         lstat: avoid mingw compilation error
30177         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30178         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30179         lstat ourselves.
30180         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30181         was adequate.
30182         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30183         the checks for lstat.
30184         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30185
30186         link: fix test failure on Solaris 9
30187         * lib/link.c (rpl_link): Don't assume link will catch bogus
30188         trailing slash on source.
30189
30190         test-symlinkat: enhance test
30191         * tests/test-readlink.c (main): Move guts...
30192         * tests/test-readlink.h (test_readlink): ...into new file.
30193         * tests/test-symlink.c (main): Move guts...
30194         * tests/test-symlink.h (test_symlink): ...into new file.
30195         * tests/test-symlinkat.c (main): Use new files for further
30196         coverage.
30197         (do_symlink, do_readlink): New helper functions.
30198         * modules/symlink-tests (Files): Ship new file.
30199         (Depends-on): Add stdbool.
30200         * modules/readlink-tests (Files): Ship new file.
30201         (Depends-on): Add stdbool.
30202         * modules/symlinkat-tests (Files): Use new files.
30203
30204 2009-09-23  Eric Blake  <ebb9@byu.net>
30205
30206         readlink: document portability issue with symlink length
30207         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30208         systems have bogus st_size on symlinks, and mention the
30209         areadlink-with-size module.
30210         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30211         * doc/posix-functions/readlink.texi (readlink): Mention the
30212         areadlink module, and ERANGE failure.
30213         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30214         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30215
30216         readlink: fix Solaris 9 bug with trailing slash
30217         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30218         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30219         * doc/posix-functions/readlink.texi (readlink): Document this.
30220         * modules/readlink-tests: New test.
30221         * tests/test-readlink.c: Likewise.
30222
30223         readlink: fix cygwin 1.5.x bug with return type
30224         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30225         * lib/unistd.in.h (readlink): Use ssize_t.
30226         * lib/readlink.c (readlink): Likewise.
30227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30228         * modules/unistd (Makefile.am): Substitute it.
30229         * lib/unistd.in.h (readlink): Declare replacement.
30230         * doc/posix-functions/readlink.texi (readlink): Document this.
30231
30232         symlink: use throughout gnulib
30233         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30234         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30235         symlink is not used.
30236         * modules/symlinkat (Depends-on): Add symlink.
30237         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30238         * modules/canonicalize-tests (Depends-on): Likewise.
30239         * modules/lstat-tests (Depends-on): Likewise.
30240         * modules/openat-tests (Depends-on): Likewise.
30241         * modules/remove-tests (Depends-on): Likewise.
30242         * modules/rmdir-tests (Depends-on): Likewise.
30243         * modules/unlink-tests (Depends-on): Likewise.
30244         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30245         * tests/test-canonicalize.c (symlink): Likewise.
30246         * tests/test-fstatat.c (symlink): Likewise.
30247         * tests/test-lstat.c (symlink): Likewise.
30248         * tests/test-remove.c (symlink): Likewise.
30249         * tests/test-rmdir.c (symlink): Likewise.
30250         * tests/test-unlink.c (symlink): Likewise.
30251         * tests/test-unlinkat.c (symlink): Likewise.
30252
30253         symlink: new module, for Solaris 9 bug
30254         * modules/symlink: New file.
30255         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30256         * lib/symlink.c: Likewise.
30257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30258         * modules/unistd (Makefile.am): Substitute them.
30259         * lib/unistd.in.h (symlink): Declare replacement.
30260         * MODULES.html.sh (File system functions): Mention it.
30261         * doc/posix-functions/symlink.texi (symlink): Likewise.
30262         * modules/symlink-tests: New test.
30263         * tests/test-symlink.c: Likewise.
30264
30265 2009-09-23  Bruno Haible  <bruno@clisp.org>
30266
30267         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30268         when needed.
30269         Test case: gnulib-tool --import --with-tests atexit inttypes.
30270         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30271
30272 2009-09-23  Bruno Haible  <bruno@clisp.org>
30273
30274         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30275         subcommand, not in a subshell.
30276
30277 2009-09-22  Eric Blake  <ebb9@byu.net>
30278
30279         unistd: sort replacement declarations
30280         * lib/unistd.in.h: Sort declarations.
30281
30282         open, openat: minor optimization
30283         * lib/open.c (open): If open succeeded, len is non-zero.
30284         * lib/openat.c (rpl_openat): Likewise.
30285
30286         link-follow: ensure correct result
30287         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30289         distinguish between possible failures.
30290
30291 2009-09-21  Eric Blake  <ebb9@byu.net>
30292
30293         fts: avoid compiler warning
30294         * lib/fts.c (dirent_inode_sort_may_be_useful)
30295         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30296
30297 2009-09-19  Bruno Haible  <bruno@clisp.org>
30298
30299         * lib/progreloc.c (canonicalize_file_name): New declaration.
30300
30301 2009-09-19  Eric Blake  <ebb9@byu.net>
30302
30303         link: fix quoting
30304         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30305
30306         openat: fix openat bugs on Solaris 9
30307         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30308         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30309         * modules/openat (Depends-on): Add open.
30310         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30311         * modules/fcntl-h (Makefile.am): Substitute it.
30312         * lib/fcntl.in.h (openat): Declare replacement.
30313         * doc/posix-functions/openat.texi (openat): Document this.
30314
30315         openat: move fstatat and unlinkat into correct files
30316         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30317         compiled.
30318         * lib/openat.c (fstatat, unlinkat): Move...
30319         * lib/fstatat.c (fstatat): ...into correct files.
30320         * lib/unlinkat.c (unlinkat): Likewise.
30321
30322         openat: fix unlinkat bugs on Solaris 9
30323         * lib/unlinkat.c (unlinkat): New file.
30324         * modules/openat (Depends-on): Add unlink.
30325         (Files): Distribute it.
30326         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30327         trailing slash behavior is broken.
30328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30329         * modules/unistd (Makefile.am): Substitute it.
30330         * lib/unistd.in.h (unlinkat): Declare replacement.
30331         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30332
30333         openat: fix fstatat bugs on Solaris 9
30334         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30335         stat.
30336         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30337
30338         test-unlinkat: enhance test, to expose Solaris 9 bug
30339         * tests/test-unlink.c (main): Factor guts...
30340         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30341         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30342         * tests/test-rmdir.c (main): Adjust caller.
30343         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30344         (unlinker): New helper function.
30345         (rmdirat): Enhance check.
30346         * modules/rmdir-tests (Depends-on): Add stdbool.
30347         * modules/unlink-tests (Depends-on): Likewise.
30348         (Files): Add test-unlink.h.
30349         * modules/openat-tests (Files): Likewise.
30350         (Depends-on): Add unlinkdir.
30351
30352         test-fstatat: new test, to expose Solaris 9 bugs
30353         * tests/test-stat.c (main): Factor guts...
30354         * tests/test-stat.h (test_stat_func): ...into new file.
30355         * tests/test-lstat.c (main): Factor guts...
30356         * tests/test-lstat.h (test_lstat_func): ...into new file.
30357         * tests/test-fstatat.c: New file.
30358         * modules/stat-tests (Files): Add test-stat.h.
30359         * modules/lstat-tests (Files): Add test-lstat.h.
30360         (Depends-on): Add stdbool.
30361         * modules/openat-tests (Depends-on): Add pathmax.
30362         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30363         (Makefile.am): Run new test.
30364
30365         remove: new module, for mingw and Solaris 9 bugs
30366         * modules/remove: New file.
30367         * lib/remove.c: Likewise.
30368         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30370         * modules/stdio (Makefile.am): Use them.
30371         * lib/stdio.in.h (remove): Declare replacement.
30372         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30373         * doc/posix-functions/remove.texi (remove): Likewise.
30374         * modules/remove-tests: New test.
30375         * tests/test-remove.c: Likewise.
30376
30377         unlink: new module, for Solaris 9 bug
30378         * modules/unlink: New file.
30379         * lib/unlink.c: Likewise.
30380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30382         * modules/unistd (Makefile.am): Use them.
30383         * lib/unistd.in.h (stat): Declare replacement.
30384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30385         * doc/posix-functions/unlink.texi (unlink): Likewise.
30386         * modules/unlink-tests: New test.
30387         * tests/test-unlink.c: Likewise.
30388
30389         lstat: fix Solaris 9 bug
30390         * lib/lstat.c (lstat): Also check for trailing slash on
30391         non-symlink, non-directories.  Use stat module to simplify logic.
30392         * doc/posix-functions/lstat.texi (lstat): Document it.
30393         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30394         (configure.ac): Check for symlink.
30395         * tests/test-lstat.c (main): Add more tests.
30396
30397         stat: add as dependency to other modules
30398         * modules/chown (Depends-on): Add stat.
30399         * modules/euidaccess (Depends-on): Likewise.
30400         * modules/fchdir (Depends-on): Likewise.
30401         * modules/isdir (Depends-on): Likewise.
30402         * modules/link (Depends-on): Likewise.
30403         * modules/lstat (Depends-on): Likewise.
30404         * modules/mkdir-p (Depends-on): Likewise.
30405         * modules/modechange (Depends-on): Likewise.
30406         * modules/open (Depends-on): Likewise.
30407         * modules/readlink (Depends-on): Likewise.
30408         * modules/same (Depends-on): Likewise.
30409
30410         stat: fix Solaris 9 bug
30411         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30412         slash.
30413         * lib/stat.c (rpl_stat): Work around it.
30414         * doc/posix-functions/stat.texi (stat): Update documentation.
30415
30416         stat: new module, for mingw bug
30417         * modules/stat: New file.
30418         * lib/stat.c: Likewise.
30419         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30421         * modules/sys_stat (Makefile.am): Use them.
30422         * lib/sys_stat.in.h (stat): Declare replacement.
30423         * lib/openat.c (fstatat): Deal with lstat and stat being function
30424         macros.
30425         * modules/openat (Depends-on): Add inline.
30426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30427         * doc/posix-functions/stat.texi (stat): Likewise.
30428         * modules/stat-tests: New test.
30429         * tests/test-stat.c: Likewise.
30430
30431 2009-09-19  Jim Meyering  <meyering@redhat.com>
30432
30433         syntax-check: detect unnecessary inclusion of canonicalize.h
30434         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30435
30436 2009-09-19  Eric Blake  <ebb9@byu.net>
30437
30438         canonicalize-lgpl: adjust clients to use correct header
30439         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30440         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30441         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30442         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30443         * lib/progreloc.c (includes): Likewise.
30444
30445 2009-09-19  Jim Meyering  <meyering@redhat.com>
30446
30447         test-posixtm.c: correct a comment
30448         * tests/test-posixtm.c: Correct first-line comment.
30449         Spotted by Eric Blake.
30450
30451 2009-09-16  Jim Meyering  <meyering@redhat.com>
30452
30453         posixtm-tests: make T const-correct; add a test case
30454         * tests/test-posixtm.c (T): Declare const.
30455         Add a test for -(2^31+1).
30456         Remove useless can-succeed-only-in-2002 test.
30457
30458         posixtm-tests: adjust the sole failing test
30459         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30460         expected output matches what mktime now produces.  Cross-checked via
30461         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30462
30463         posixtm: move #ifdef'd tests into a new module
30464         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30465         * tests/test-posixtm.c: ... this new file.
30466         * modules/posixtm-tests: New module.
30467
30468 2009-09-19  Eric Blake  <ebb9@byu.net>
30469
30470         openat: simplify use of at-func.c
30471         * lib/at-func.c (includes): Include prerequisites here, to
30472         simplify requirements on client files.
30473         * lib/openat-priv.h: Add double-inclusion guard.
30474         * lib/faccessat.c (includes): Simplify.
30475         * lib/fchmodat.c (includes): Likewise.
30476         * lib/fchownat.c (includes): Likewise.
30477         * lib/mkdirat.c (includes): Likewise.
30478         * lib/mkfifoat.c (includes): Likewise.
30479         * lib/symlinkat.c (includes): Likewise.
30480
30481         openat: allow return of fd 0
30482         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
30483         * modules/save-cwd (Depends-on): Replace fcntl-safer with
30484         unistd-safer.
30485         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
30486         <fcntl.h>; this module does not leak fds.
30487         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
30488         must be allowed to return 0, leaving openat_safer to add the
30489         safety.
30490         (openat_permissive): Avoid writing to just-opened fd 2 if
30491         restoring the current directory fails.
30492         * lib/openat-die.c (openat_restore_fail): Add comment.
30493         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
30494         (save_cwd): Guarantee safe fd, but without use of open_safer.
30495         * tests/test-openat.c: New test.
30496         * modules/openat-tests (Files, Makefile.am): Distribute and build
30497         new file.
30498
30499         relocatable-prog-wrapper: fix build
30500         * modules/relocatable-prog-wrapper (Files): Update name of
30501         canonicalize m4 file, broken on 2009-09-17.
30502         Reported by emad hajjar <aleppos@hotmail.com>.
30503
30504 2009-09-19  Bruno Haible  <bruno@clisp.org>
30505
30506         * lib/safe-alloc.h: Use the standard header with GPL copyright.
30507         * lib/safe-alloc.c: Likewise.
30508         Reported by Ian Beckwith <ianb@erislabs.net>.
30509
30510 2009-09-18  Bruno Haible  <bruno@clisp.org>
30511
30512         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
30513         Reported by <erobles@sensacd.com.mx>.
30514
30515 2009-09-17  Eric Blake  <ebb9@byu.net>
30516
30517         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
30518         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
30519         slashes when checking if last component is missing.
30520         * tests/test-canonicalize.c (main): Test this.
30521
30522         canonicalize, canonicalize-lgpl: honor // if distinct from /
30523         * modules/canonicalize (Files): Add double-slash-root.m4.
30524         * modules/canonicalize-lgpl (Files): Likewise.
30525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30526         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
30527         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
30528         fallback definition.
30529         (canonicalize_filename_mode): Use it to protect //.
30530         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
30531         (__realpath): Likewise.
30532         * tests/test-canonicalize.c (main): Test this.
30533         * tests/test-canonicalize-lgpl.c (main): Likewise.
30534         * modules/canonicalize-tests (Depends-on): Add same-inode.
30535         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30536
30537         canonicalize-lgpl: fix glibc bug with trailing slash
30538         * m4/canonicalize-lgpl.m4: Move contents...
30539         * m4/canonicalize.m4: ...here.
30540         (gl_CANONICALIZE_LGPL): Factor realpath check...
30541         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
30542         glibc 2.3.5 bug, fixed 2005-04-27.
30543         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
30544         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
30545         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
30546         * modules/canonicalize-lgpl (Files): Manage file rename.
30547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30548         * modules/stdlib (Makefile.am): Substitute witness.
30549         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
30550         is needed.
30551         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
30552         replacement is required.
30553         * lib/canonicalize.c (canonicalize_file_name): Likewise.
30554         * doc/glibc-functions/canonicalize_file_name.texi
30555         (canonicalize_file_name): Document this.
30556         * doc/posix-functions/realpath.texi (realpath): Likewise.
30557
30558         canonicalize-lgpl: reject non-directory with trailing slash
30559         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
30560         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
30561         catches failures in glibc 2.3.5.
30562         * tests/test-canonicalize.c (main): Likewise.
30563
30564         canonicalize-lgpl: use native realpath if it works
30565         * lib/canonicalize-lgpl.c (realpath): Guard with
30566         FUNC_REALPATH_WORKS.
30567         * lib/stdlib.in.h (realpath): Make declaration optional based on
30568         HAVE_REALPATH.
30569         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
30570         native realpath works.
30571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
30572         * modules/stdlib (Makefile.am): Substitute witness.
30573
30574         canonicalize, canonicalize-lgpl: use <stdlib.h>
30575         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
30576         (Include): Mention <stdlib.h>.
30577         (configure.ac): Mention functions we provide.
30578         * modules/canonicalize (configure.ac): Likewise.
30579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
30580         realpath if canonicalize_file_name is missing.
30581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
30582         * modules/stdlib (Makefile.am): Substitute witnesses.
30583         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
30584         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
30585         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
30586         * NEWS: Document this.
30587         * doc/glibc-functions/canonicalize_file_name.texi
30588         (canonicalize_file_name): Likewise.
30589         * doc/posix-functions/realpath.texi (realpath): Likewise.
30590         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
30591
30592         test-canonicalize: consolidate into single C program
30593         * tests/test-canonicalize.sh: Delete; move setup into...
30594         * tests/test-canonicalize.c (main): ...the program, making it
30595         easier to run in debugger.  Add some tests.
30596         * modules/canonicalize-tests (Files): Remove unused file.
30597         (Depends-on): Add progname.
30598         (configure.ac, Makefile.am): Simplify.
30599
30600         test-canonicalize-lgpl: consolidate into single C program
30601         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
30602         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
30603         easier to run in debugger.  Add some tests.
30604         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
30605         (configure.ac, Makefile.am): Simplify.
30606
30607         canonicalize: avoid resolvepath
30608         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
30609         unnecessary checks.
30610         * lib/canonicalize.c (includes): Simplify.
30611         (canonicalize_file_name): Drop resolvepath implementation.
30612         * modules/canonicalize (Depends-on): Drop filenamecat.
30613
30614         canonicalize: don't lose errno
30615         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
30616         over calls to free.
30617
30618         canonicalize: simplify errno handling
30619         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
30620         assignment.
30621
30622         canonicalize, canonicalize-lgpl: update module dependencies
30623         * modules/canonicalize (Depends-on): Add extensions, lstat,
30624         pathmax, stdlib.
30625         (Files): Drop pathmax.h.
30626         (configure.ac): Adjust macro name.
30627         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
30628         lstat, stdlib, sys_stat.
30629         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
30630         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
30631         extensions.
30632         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
30633         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
30634         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
30635         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
30636         declaration, if available.
30637         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
30638         we can rely on the readlink module.
30639         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
30640         (includes): Use <unistd.h> unconditionally.
30641
30642 2009-09-17  Eric Blake  <ebb9@byu.net>
30643
30644         maint: make Include sections of modules consistent
30645         * modules/alloca: Use only header name; no need to list #include.
30646         * modules/alloca-opt: Likewise.
30647         * modules/arpa_inet: Likewise.
30648         * modules/canon-host: Likewise.
30649         * modules/configmake: Likewise.
30650         * modules/dirent: Likewise.
30651         * modules/eealloc: Likewise.
30652         * modules/environ: Likewise.
30653         * modules/fchdir: Likewise.
30654         * modules/fcntl: Likewise.
30655         * modules/fcntl-h: Likewise.
30656         * modules/gethrxtime: Likewise.
30657         * modules/gettime: Likewise.
30658         * modules/ignore-value: Likewise.
30659         * modules/inet_ntop: Likewise.
30660         * modules/inet_pton: Likewise.
30661         * modules/inttypes: Likewise.
30662         * modules/isnand-nolibm: Likewise.
30663         * modules/isnanf-nolibm: Likewise.
30664         * modules/mbchar: Likewise.
30665         * modules/mbfile: Likewise.
30666         * modules/mbiter: Likewise.
30667         * modules/mbuiter: Likewise.
30668         * modules/netdb: Likewise.
30669         * modules/netinet_in: Likewise.
30670         * modules/nproc: Likewise.
30671         * modules/pagealign_alloc: Likewise.
30672         * modules/poll: Likewise.
30673         * modules/printf-frexp: Likewise.
30674         * modules/pthread: Likewise.
30675         * modules/putenv: Likewise.
30676         * modules/random_r: Likewise.
30677         * modules/relocatable-prog: Likewise.
30678         * modules/search: Likewise.
30679         * modules/select: Likewise.
30680         * modules/selinux-h: Likewise.
30681         * modules/settime: Likewise.
30682         * modules/signal: Likewise.
30683         * modules/size_max: Likewise.
30684         * modules/socklen: Likewise.
30685         * modules/ssize_t: Likewise.
30686         * modules/stdarg: Likewise.
30687         * modules/stdbool: Likewise.
30688         * modules/stddef: Likewise.
30689         * modules/stdint: Likewise.
30690         * modules/stdio: Likewise.
30691         * modules/stdlib: Likewise.
30692         * modules/string: Likewise.
30693         * modules/strings: Likewise.
30694         * modules/sys_file: Likewise.
30695         * modules/sys_ioctl: Likewise.
30696         * modules/sys_select: Likewise.
30697         * modules/sys_socket: Likewise.
30698         * modules/sys_stat: Likewise.
30699         * modules/sys_time: Likewise.
30700         * modules/sys_times: Likewise.
30701         * modules/sys_utsname: Likewise.
30702         * modules/sys_wait: Likewise.
30703         * modules/sysexits: Likewise.
30704         * modules/time: Likewise.
30705         * modules/times: Likewise.
30706         * modules/tmpfile: Likewise.
30707         * modules/trim: Likewise.
30708         * modules/unistd: Likewise.
30709         * modules/wchar: Likewise.
30710         * modules/wctype: Likewise.
30711
30712 2009-09-17  Bruno Haible  <bruno@clisp.org>
30713
30714         Make getdate.y compile on QNX and NetBSD 5 / i386.
30715         * m4/getdate.m4 (gl_GETDATE): Conditionally define
30716         TIME_T_FITS_IN_LONG_INT.
30717         * lib/getdate.y (long_time_t): New type.
30718         (relative_time): Change type of 'seconds' field to long_time_t.
30719         (get_date): Update types of local variables. Check against overflow
30720         during conversion from long_time_t to time_t.
30721         Reported by Matt Kraai <kraai@ftbfs.org>
30722         and Hasso Tepper <hasso@netbsd.org>.
30723
30724 2009-09-17  Bruno Haible  <bruno@clisp.org>
30725
30726         * modules/COPYING: Update copyright years.
30727         * modules/README: Likeiwse.
30728         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
30729         Reported by Ian Beckwith <ianb@erislabs.net>.
30730
30731 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30732
30733         * users.txt: Update references for gnuit package.
30734
30735 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
30736
30737         * m4/getdelim.m4: Fix typo in copyright line.
30738
30739 2009-09-17  Bruno Haible  <bruno@clisp.org>
30740
30741         * lib/atoll.c: Use the standard header with GPL copyright.
30742         * lib/argz.in.h: Likewise.
30743         * lib/glob.c: Likewise.
30744         * lib/glob-libc.h: Likewise.
30745         * lib/random_r.c: Likewise.
30746         * lib/siglist.h: Likewise.
30747         * lib/strsignal.c: Likewise.
30748         Reported by Ian Beckwith <ianb@erislabs.net>.
30749
30750 2009-09-17  Eric Blake  <ebb9@byu.net>
30751
30752         rmdir: ensure correct dependency order
30753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
30754
30755 2009-09-17  Bruno Haible  <bruno@clisp.org>
30756
30757         Disable assertion that fails on NetBSD 5 / i386.
30758         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
30759         Reported by Sam Steingold <sds@gnu.org>
30760         and Hasso Tepper <hasso@netbsd.org>.
30761
30762 2009-09-16  Eric Blake  <ebb9@byu.net>
30763
30764         unlinkdir: port to mingw
30765         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
30766         on which no one can unlink a directory.
30767
30768         stdlib: sort witness names
30769         * modules/stdlib (Makefile.am): Sort replacements.
30770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30771         * lib/stdlib.in.h: Likewise.
30772
30773         parse-duration-tests: avoid link failure
30774         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
30775         LIBINTL.
30776         Reported by Tom G. Christensen.
30777
30778         openat-tests: ensure unlinkat behaves like rmdir
30779         * tests/test-rmdir.c (main): Factor guts...
30780         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
30781         * modules/rmdir-tests (Files): Ship new file.
30782         * modules/openat-tests: New test.
30783         * tests/test-unlinkat.c: Likewise.
30784
30785         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
30786         * modules/rmdir-errno (Status, Notice): Now obsolete.
30787
30788         rmdir: work around cygwin 1.5.x and mingw bugs
30789         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
30790         * lib/rmdir.c (rmdir): Work around it.
30791         * modules/rmdir (Status, Notice): No longer obsolete.
30792         (Files): Add dos.m4.
30793         (Depends-on): Add unistd.
30794         (configure.ac): Set witnesses.
30795         (License): Relax to LGPLv2+.
30796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
30797         * modules/unistd (Makefile.am): Substitute witnesses.
30798         * lib/unistd.in.h (rmdir): Declare replacement.
30799         * doc/posix-functions/rmdir.texi (rmdir): Document this.
30800         * modules/rmdir-tests: New tests.
30801         * tests/test-rmdir.c: Likewise.
30802
30803 2009-09-15  Eric Blake  <ebb9@byu.net>
30804
30805         fchdir: improve use of replacement functions
30806         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
30807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
30808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
30809         REPLACE_CLOSEDIR.
30810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
30811         * modules/sys_stat (Makefile.am): Substitute correct witness.
30812         * modules/dirent (Makefile.am): Likewise.
30813         * modules/unistd (Makefile.am): Likewise.
30814         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
30815         * lib/unistd.in.h (dup): Likewise.
30816         * lib/sys_stat.in.h (fstat): Likewise.
30817
30818         maint: ignore gnulib-tool temp files
30819         * .gitignore: Ignore files created during gnulib-tool --test.
30820
30821 2009-09-13  Jim Meyering  <meyering@redhat.com>
30822
30823         posixtm: don't reject a time that specify "60" as the number of seconds
30824         * lib/posixtm.c (posixtime): The code to reject invalid dates
30825         would also reject a time specified with the .60 suffix.
30826         But POSIX allows that, in order to accommodate leap seconds.
30827         So don't reject it.
30828         (main): Adjust tests accordingly.
30829         * modules/posixtm (Depends-on): Add stpcpy.
30830
30831 2009-09-11  Jim Meyering  <meyering@redhat.com>
30832
30833         announce-gen: include [$release_type] in emitted Subject:
30834         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
30835         e.g., [stable] in the emitted Subject: line.
30836
30837 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30838
30839         Remove obsolete macros from several modules.
30840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
30841         obsolete Autoconf macros with their modern counterparts.
30842         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
30843         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
30844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
30845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
30846         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
30847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30850         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
30851         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
30852         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30854         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
30855         * m4/sockets.m4 (gl_SOCKETS): Likewise.
30856         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
30857         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
30858         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
30859         * m4/time_r.m4 (gl_TIME_R): Likewise.
30860         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
30861         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
30862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30863
30864         Fix copyright header in build-aux scripts.
30865         * build-aux/git-version-gen: Fix copyright header to match GPLv3
30866         recommendation.
30867         * build-aux/ncftpput-ftp: Likewise.
30868         * build-aux/update-copyright: Likewise.
30869
30870 2009-09-09  Eric Blake  <ebb9@byu.net>
30871
30872         test-link: allow Linux choice of errno
30873         * tests/test-link.c (main): Relax test for alternate error.
30874
30875         strndup: fix improper m4 caching
30876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
30877         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
30878         (gl_PREREQ_STRNDUP): Delete.
30879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
30880         * modules/string (Makefile.am): Substitute it.
30881         * lib/string.in.h (strndup): Modernize prototype.
30882
30883         getcwd: port to mingw
30884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
30885         different from the POSIX assumptions made throughout the getcwd
30886         module; fortunately, the mingw getcwd does not need replacement.
30887         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
30888         * modules/getcwd-tests: New test.
30889         * tests/test-getcwd.c: Likewise.
30890
30891         link: fix platform bugs
30892         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
30893         * lib/link.c (link): Work around them.  Fix related mingw bug.
30894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
30895         * modules/unistd (Makefile.am): Substitute it.
30896         * lib/unistd.in.h (link): Declare replacement.
30897         * doc/posix-functions/link.texi (link): Document this.
30898         * modules/link (Depends-on): Add strdup-posix, sys_stat.
30899
30900         test-link: consolidate into single C program, test more cases
30901         * tests/test-link.sh: Delete.
30902         * tests/test-link.c: Test more error conditions.  Exposes bugs on
30903         at least Cygwin and Solaris.
30904         * modules/link-tests (Files): Remove unused file.
30905         (Depends-on): Add errno, sys_stat.
30906         (Makefile.am): Simplify.
30907
30908 2009-09-08  Bruno Haible  <bruno@clisp.org>
30909
30910         Work around towlower, towupper bug on mingw.
30911         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
30912         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
30913         * doc/posix-functions/towlower.texi: Mention the mingw bug.
30914         * doc/posix-functions/towupper.texi: Likewise.
30915         Reported by Eric Blake.
30916
30917 2009-09-08  Jim Meyering  <meyering@redhat.com>
30918
30919         build: don't try to run autoheader if we don't use it
30920         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
30921         is not used in configure.ac.
30922
30923 2009-09-08  Eric Blake  <ebb9@byu.net>
30924
30925         euidaccess: fix compilation error
30926         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
30927
30928         rawmemchr: relax license
30929         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
30930         okay.
30931         Reported by Jim Meyering.
30932
30933         mkfifoat: new module
30934         * modules/mkfifoat: New file.
30935         * lib/mkfifoat.c: Likewise.
30936         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
30937         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30938         * modules/sys_stat (Makefile.am): Use them.
30939         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
30940         * MODULES.html.sh (File system functions): Mention module.
30941         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30942         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30943         * modules/mkfifoat-tests: New test.
30944         * tests/test-mkfifoat.c: Likewise.
30945
30946         strchrnul: relax license
30947         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
30948         okay.
30949         Reported by Jim Meyering.
30950
30951 2009-09-08  Eric Blake  <ebb9@byu.net>
30952
30953         fstatat: fix compilation on Solaris
30954         * lib/fstatat.c (includes): Add fcntl.h.
30955         Reported by PĂ¡draig Brady.
30956
30957 2009-09-07  Eric Blake  <ebb9@byu.net>
30958
30959         rename: modernize replacement
30960         * modules/rename (Depends-on): Add stdio.
30961         (configure.ac): Declare witness.
30962         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
30963         stdio take care of replacement.
30964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30965         * modules/stdio (Makefile.am): Substitute them.
30966         * lib/stdio.in.h (rename): Declare replacement.
30967         * lib/rename.c (includes): Allow cross-compilation to non-windows
30968         machines.
30969         * doc/posix-functions/rename.texi (rename): Improve
30970         documentation.
30971
30972         stdio: sort witness names
30973         * modules/stdio (Makefile.am): Sort replacements.
30974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30975         * lib/stdio.in.h: Likewise.
30976
30977         getcwd: minor cleanups
30978         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
30979         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
30980
30981         openat: provide more convenience names
30982         * modules/faccessat (configure.ac): Add C witness.
30983         * lib/unistd.in.h (readlinkat): Fix typo.
30984         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
30985         convenience wrappers.
30986         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
30987         wrappers in syntax checks.
30988
30989 2009-09-06  Eric Blake  <ebb9@byu.net>
30990
30991         doc: fix comments in recent patches
30992         * lib/faccessat.c: Mention correct function.
30993         * lib/fchmodat.c: Likewise.
30994         * lib/fchownat.c: Likewise.
30995         * lib/symlinkat.c: Likewise.
30996         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
30997         constants.
30998
30999         faccessat, symlinkat: continue cleanup of previous patch
31000         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31001         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31002         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31004         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31005         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31006         set.
31007
31008 2009-09-06  Bruno Haible  <bruno@clisp.org>
31009
31010         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31011         (fstatat): Declare if GNULIB_FSTATAT is set.
31012         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31013         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31014         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31015         * modules/fcntl-h (Files): Remove m4/openat.m4.
31016         * modules/sys_stat (Files): Remove m4/openat.m4.
31017         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31018         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31019         * modules/unistd (Files): Remove m4/openat.m4.
31020         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31021         GNULIB_OPENAT.
31022         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31023         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31025         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31026         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31027         gl_OPENAT_DEFAULTS.
31028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31029         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31030         Don't require gl_OPENAT_DEFAULTS.
31031         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31032         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31033         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31034         (gl_OPENAT_DEFAULTS): Remove macro.
31035
31036 2009-09-06  Bruno Haible  <bruno@clisp.org>
31037
31038         * modules/openat (configure.ac): Remove unneeded witness.
31039
31040 2009-09-06  Bruno Haible  <bruno@clisp.org>
31041
31042         Set errno to ENOSYS when a function is entirely unsupported.
31043         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31044         EOPNOTSUPP.
31045         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31046         * modules/chown (Depends-on): Remove errno.
31047
31048 2009-09-06  Bruno Haible  <bruno@clisp.org>
31049
31050         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31051
31052 2009-09-06  Bruno Haible  <bruno@clisp.org>
31053
31054         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31055
31056 2009-09-06  Ben Pfaff  <blp@gnu.org>
31057             Bruno Haible  <bruno@clisp.org>
31058
31059         Work around a glibc bug in strtok_r.
31060         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31061         Undefine if UNDEFINE_STRTOK_R is set.
31062         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31064         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31066         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31067         UNDEFINE_STRTOK_R.
31068         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31069
31070 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31071
31072         exclude: minor fix
31073         * lib/exclude.c: Include wctype.h
31074
31075 2009-09-06  Akim Demaille  <demaille@gostai.com>
31076
31077         bootstrap: improve error message
31078         * build-aux/bootstrap (find_tool): Upon failure, report the list
31079         of candidates.
31080         Honor the initial value of the envvar.
31081
31082 2009-09-05  Eric Blake  <ebb9@byu.net>
31083
31084         symlinkat: new module
31085         * modules/symlinkat: New file.
31086         * lib/symlinkat.c: Likewise.
31087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31089         * modules/unistd (Makefile.am): Use them.
31090         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31091         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31092         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31093         * MODULES.html.sh (File system functions): Mention module.
31094         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31095         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31096         * modules/symlinkat-tests: New test.
31097         * tests/test-symlinkat.c: Likewise.
31098
31099         test-openat-safer: add more checks
31100         * tests/test-openat-safer.c (main): Check more code paths.
31101
31102 2009-09-05  Jim Meyering  <meyering@redhat.com>
31103
31104         syntax-check: detect unnecessary inclusion of openat.h
31105         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31106
31107 2009-09-05  Bruno Haible  <bruno@clisp.org>
31108
31109         Support towlower, towupper.
31110         * doc/posix-functions/towlower.texi: Mention module wctype.
31111         * doc/posix-functions/towupper.texi: Likewise.
31112         * lib/wctype.in.h (towlower, towupper): New functions.
31113         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31114         (ASSERT): New macro.
31115         (e): New variable.
31116         (main): Test also towlower, towupper. Test WEOF argument.
31117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31118
31119 2009-09-05  Bruno Haible  <bruno@clisp.org>
31120
31121         Fix conversion behaviour when the input is invalid.
31122         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31123         mark occurring in first pass of indirect conversion.
31124         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31125         input.
31126         Found by clang's static analyzer.
31127
31128 2009-09-05  Bruno Haible  <bruno@clisp.org>
31129
31130         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31131         where direct conversion is possible.
31132
31133 2009-09-04  Eric Blake  <ebb9@byu.net>
31134
31135         openat: fail with ENOENT on empty name
31136         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31137         buffer.
31138
31139         link-follow: fix logic bug in prior patch
31140         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31141         reversed sense of yes and no in prior patch.  Avoid confusing
31142         compilation failure with desired semantics.
31143
31144         link-follow: accomodate mingw and cross-compilation
31145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31146         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31147         cross-compilation results to -1, to make linkat easier to
31148         implement when cross-compiling.  Trivially support mingw.
31149         * modules/link-follow (configure.ac): Call new name.
31150         * NEWS: Mention this.
31151
31152 2009-09-03  Eric Blake  <ebb9@byu.net>
31153
31154         faccessat: compile replacement
31155         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31156         needed.
31157
31158         fts: fix compilation error
31159         * lib/fts.c (includes): Re-add "openat.h", for
31160         openat_needs_fchdir.
31161
31162         faccessat: new module
31163         * modules/faccessat: New file.
31164         * lib/faccessat.c: Likewise.
31165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31167         * modules/unistd (Makefile.am): Use it.
31168         * lib/unistd.in.h (faccessat): Declare it.
31169         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31170         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31171         * MODULES.html.sh (File system functions): Mention it.
31172         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31173         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31174
31175         euidaccess: prefer POSIX over non-standard implementation
31176         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31177         * lib/euidaccess.c (euidaccess): Use it if available.
31178
31179         openat: make template easier to use
31180         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31181         AT_FUNC_F2 to be undefined.
31182         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31183         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31184         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31185         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31186         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31187         Likewise.
31188         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31189         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31190         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31191         Likewise.
31192
31193         openat: declare in POSIX headers
31194         * NEWS: Mention this.
31195         * modules/openat (configure.ac): Declare witnesses.
31196         (Depends-on): Add fcntl-h, sys_stat, unistd.
31197         (Include): Mention correct headers.
31198         * modules/fcntl-h (Depends-on): Add link-warning.
31199         (Files): Add openat.m4.
31200         (Makefile.am): Substitute witnesses.
31201         * modules/sys_stat (Files, Makefile.am): Likewise.
31202         * modules/unistd (Files, Makefile.am): Likewise.
31203         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31204         (gl_OPENAT_DEFAULTS): New macro.
31205         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31207         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31208         (SYS_STAT_H): Remove unused variable.
31209         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31210         * lib/fcntl--.h (includes): Remove unneeded header.
31211         * lib/openat-safer.c (includes): Likewise.
31212         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31213         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31214         appropriate headers.
31215         (__OPENAT_PREFIX): Delete.
31216         * lib/fcntl.in.h (openat): Provide declaration.
31217         (AT_FDCWD): Fix Solaris bug.
31218         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31219         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31220         * lib/fchmodat.c (includes):  Adjust to find declaration.
31221         * lib/fchownat.c (includes): Likewise.
31222         * lib/mkdirat.c (includes): Likewise.
31223         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31224         still visible.
31225
31226 2009-09-02  Eric Blake  <ebb9@byu.net>
31227
31228         errno: use consistently
31229         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31230         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31231         * lib/canonicalize.c (ELOOP): Likewise.
31232         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31233         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31234         * lib/lchown.c (EOPNOTSUPP): Likewise.
31235         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31236         * lib/savewd.c (ESTALE): Likewise.
31237         * lib/settime.c (ENOSYS): Likewise.
31238         * lib/utimens.c (ENOSYS): Likewise.
31239         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31240         * lib/chdir-safer.c (ELOOP): Likewise.
31241         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31242         * modules/c-stack (Depends-on): Add errno.
31243         * modules/canonicalize (Depends-on): Likewise.
31244         * modules/chdir-safer (Depends-on): Likewise.
31245         * modules/fdopendir (Depends-on): Likewise.
31246         * modules/inet_ntop (Depends-on): Likewise.
31247         * modules/inet_pton (Depends-on): Likewise.
31248         * modules/lchown (Depends-on): Likewise.
31249         * modules/openat (Depends-on): Likewise.
31250         * modules/savewd (Depends-on): Likewise.
31251         * modules/settime (Depends-on): Likewise.
31252         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31253
31254         fts: avoid leaking fds
31255         * modules/fts (Depends-on): Add cloexec.
31256         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31257         flag.
31258
31259         fts: make directory fds more robust
31260         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31261         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31262
31263         backupfile, chdir-long, fts, savedir: make safer
31264         * lib/backupfile.c (includes): Use "dirent--.h", since
31265         numbered_backup can write to stderr during readdir.
31266         * lib/savedir.c (includes): Likewise.
31267         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31268         emulation can write to stderr on failure.
31269         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31270         * lib/getcwd.c: Document why opendir_safer is unused.
31271         * lib/glob.c: Likewise.
31272         * lib/scandir.c: Likewise.
31273         * lib/openat-proc.c: Likewise, for open_safer.
31274         * modules/backupfile (Depends-on): Add dirent-safer.
31275         * modules/savedir (Depends-on): Likewise.
31276         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31277         * modules/chdir-long (Depends-on): Add openat-safer.
31278
31279         openat-safer: new module
31280         * modules/openat-safer: New file.
31281         * lib/openat-safer.c: Likewise.
31282         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31283         * lib/fcntl-safer.h (openat_safer): Declare.
31284         * lib/fcntl--.h (openat): Override.
31285         * MODULES.html.sh (File descriptor based I/O): Mention it.
31286         * lib/openat.h: Add double-inclusion guards.
31287         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31288         "fcntl--.h", so we can implement openat.
31289         * modules/openat-safer-tests: New test.
31290         * tests/test-openat-safer.c: New file.
31291
31292         dirent-safer: new module
31293         * modules/dirent-safer: New file.
31294         * lib/dirent--.h: Likewise.
31295         * lib/dirent-safer.h: Likewise.
31296         * lib/opendir-safer.c: Likewise.
31297         * m4/dirent-safer.m4: Likewise.
31298         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31299         * modules/dirent-safer-tests: New test.
31300         * tests/test-dirent-safer.c: New file.
31301         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31302
31303         fdopendir: optimize on mingw
31304         * lib/unistd.in.h (_gl_directory_name): New prototype.
31305         * lib/fchdir.c (_gl_directory_name): Implement it.
31306         (fchdir): Use it to simplify implementation.
31307         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31308         fchdir, when available, to avoid calling [f]chdir().
31309
31310         fdopendir: split into its own module
31311         * lib/openat.c (fdopendir): Move...
31312         * lib/fdopendir.c: ...into new file.
31313         * modules/fdopendir: New module.
31314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31315         * modules/openat (Depends-on): Add fdopendir.
31316         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31317         fdopendir here.
31318         * modules/savedir (Depends-on): Only need fdopendir, not full
31319         openat.
31320         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31321         * lib/openat.h (fdopendir): Drop prototype.
31322         * lib/dirent.in.h (fdopendir): Provide prototype.
31323         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31324         * modules/dirent (Makefile.am): Substitute them.
31325         * MODULES.html.sh (File system functions): Mention it.
31326         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31327         * modules/fdopendir-tests: New file.
31328         * tests/test-fdopendir.c: Likewise.
31329
31330         fchdir: use more consistent macro convention
31331         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31332         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31333         REPLACE_FCHDIR, rather than relying on config.h macros.
31334         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31335         inside a single make-time REPLACE_FCHDIR block, rather than using
31336         the config.h FCHDIR_REPLACEMENT.
31337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31338         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31339         Manage fstat replacement.
31340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31341         REPLACE_FCHDIR.
31342         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31343         (Makefile.am): Substitute REPLACE_FCHDIR.
31344         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31345         FCHDIR_REPLACEMENT.
31346         * lib/dup-safer.c (dup_safer): Likewise.
31347         * lib/dup2.c (rpl_dup2): Likewise.
31348         * lib/dup3.c (rpl_dup3): Likewise.
31349         * lib/open.c (rpl_open): Likewise.
31350
31351         fchdir: simplify error handling, and support dup3
31352         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31353         stdbool, malloc-posix, realloc-posix.
31354         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31355         (ensure_dirs_slot): Return false on allocation failure.
31356         (rpl_dup2): Delete.
31357         (_gl_register_dup): New function.
31358         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31359         (_gl_register_fd): Close fd on allocation failure.
31360         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31361         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31362         prototype.
31363         (rpl_dup2_fchdir): Delete prototype.
31364         * lib/open.c (open): Update caller.
31365         * lib/dup2.c (dup2): Track fchdir metadata.
31366         * lib/dup3.c (dup3): Likewise.
31367         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31369
31370 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31371
31372         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31373         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31374         don't pass arguments to AC_OUTPUT.
31375
31376 2009-09-02  Bruno Haible  <bruno@clisp.org>
31377
31378         * modules/mkdtemp (License): Relicense under LGPLv2+.
31379         Reported by Paolo Bonzini.
31380
31381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31382
31383         Replace uses of obsolete autoconf macros in Jim's modules.
31384         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31385         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31386         can evoke a warning from autoconf when run with -Wobsolete
31387         enabled.  They were declared obsolete for good reasons (see
31388         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31389         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31390         should not continue using the deprecated macros.
31391         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31392         obsolete Autoconf macros with modern counterparts.
31393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31394         * m4/dos.m4 (gl_AC_DOS): Likewise.
31395         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31397         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31398         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31399         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31401         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31402         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31403         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31404         Likewise.
31405         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31406         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31407         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31408         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31409         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31410         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31411
31412 2009-09-01  Eric Blake  <ebb9@byu.net>
31413
31414         fchdir: fix off-by-one bug in previous patch
31415         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31416         (_gl_unregister_fd): Delete useless if.
31417
31418 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31419
31420         maint.mk: sort the list of syntax-check rules
31421         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31422         easier to get a sense of progress when the rules are run sequentially
31423         and take a long time.
31424
31425 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31426
31427         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31428         * modules/netinet_in: Likewise.
31429         * modules/sys_file: Likewise.
31430         * modules/sys_ioctl: Likewise.
31431         * modules/sys_select: Likewise.
31432         * modules/sys_socket: Likewise.
31433         * modules/sys_stat: Likewise.
31434         * modules/sys_time: Likewise.
31435         * modules/sys_times: Likewise.
31436         * modules/sys_utsname: Likewise.
31437         * modules/sys_wait: Likewise.
31438
31439 2009-09-01  Jim Meyering  <meyering@redhat.com>
31440
31441         fts: help ensure that return values are not ignored
31442         * lib/fts_.h (__GNUC_PREREQ): Define.
31443         (__attribute_warn_unused_result__): Define.
31444         (fts_children, fts_close, fts_open, fts_read): Declare with
31445         __attribute_warn_unused_result__.
31446
31447         fts: fts_close now fails also when closing a dir file descriptor fails
31448         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31449         and propagate to caller, along with errno.
31450
31451         announce-gen: correct formatting in --help output
31452         * build-aux/announce-gen (usage): Move the one-line description in
31453         --help output "up", to where it belongs, just after Usage:.
31454
31455 2009-08-31  Eric Blake  <ebb9@byu.net>
31456
31457         fchdir: port to mingw
31458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31459         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31460         opened, then use a substitute.
31461         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31462         replacement.
31463         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31464         (_gl_register_fd): No need to check stat if open already filters
31465         all directories.
31466         (fchdir): Fix error condition to match POSIX.
31467         * modules/fchdir (Depends-on): Add sys_stat.
31468         * doc/posix-functions/open.texi (open): Document the limitation.
31469         * modules/fchdir-tests: New file.
31470         * tests/test-fchdir.c: Likewise.
31471
31472         canonicalize: allow cross-testing from cygwin to mingw
31473         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
31474         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
31475         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
31476         Likewise.
31477         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
31478         target does not support symlinks.
31479         * tests/test-canonicalize-lgpl.sh: Likewise.
31480
31481         chown: avoid compilation warning on mingw
31482         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
31483         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
31484         mingw.
31485         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31486         * modules/chown (Depends-on): Add errno.
31487
31488 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31489
31490         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
31491         command.
31492
31493 2009-08-31  Jim Meyering  <meyering@redhat.com>
31494
31495         canonicalize: remove useless initialization
31496         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
31497         initialization of local, "end".
31498
31499 2009-08-30  Bruno Haible  <bruno@clisp.org>
31500
31501         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
31502         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
31503         ENOSYS.
31504
31505 2009-08-30  Bruno Haible  <bruno@clisp.org>
31506
31507         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
31508         /usr/xpg4/bin/tr when it exists.
31509         * tests/test-pipe-filter-gi1.sh: Likewise.
31510
31511 2009-08-30  Bruno Haible  <bruno@clisp.org>
31512
31513         Work around deficient /usr/bin/id program on Solaris.
31514         * tests/test-file-has-acl.sh (ID): New variable.
31515         * tests/test-set-mode-acl.sh (ID): Likewise.
31516         * tests/test-copy-acl.sh (ID): Likewise.
31517         * tests/test-copy-file.sh (ID): Likewise.
31518
31519 2009-08-30  Bruno Haible  <bruno@clisp.org>
31520
31521         New module 'xstriconveh'.
31522         * lib/xstriconveh.h: New file.
31523         * lib/xstriconveh.c: New file.
31524         * modules/xstriconveh: New file.
31525
31526 2009-08-30  Bruno Haible  <bruno@clisp.org>
31527
31528         Make it easier to use mem_cd_iconveh.
31529         * lib/striconveh.h (iconveh_t): New type.
31530         (iconveh_open, iconveh_close): New declarations.
31531         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31532         with a single 'const iconveh_t *' argument.
31533         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
31534         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
31535         with a single 'const iconveh_t *' argument.
31536         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
31537         * tests/test-striconveh.c (main): Update.
31538         * NEWS: Mention the change.
31539
31540 2009-08-30  Bruno Haible  <bruno@clisp.org>
31541
31542         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
31543         problem.
31544
31545 2009-08-30  Bruno Haible  <bruno@clisp.org>
31546
31547         Work around iconv_open problem on Solaris.
31548         * lib/iconv_open-solaris.gperf: New file.
31549         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
31550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
31551         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
31552         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
31553         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
31554         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
31555
31556 2009-08-29  Jim Meyering  <meyering@redhat.com>
31557
31558         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
31559         * top/maint.mk (cvs-check): Remove target; it was just an alias
31560         to the better-named vc-diff-check.
31561         (maintainer-distcheck): Remove rule.  It was used only from
31562         the (alpha/beta/major) target, and all of its commands but one
31563         were coreutils-specific.
31564         (vc-dist): Remove rule.
31565         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
31566         Run vc-diff-check, not vc-dist.
31567         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
31568
31569 2009-08-27  Bruno Haible  <bruno@clisp.org>
31570
31571         * tests/test-bitrotate.c (main): Remove test that uses a shift count
31572         of 0.
31573
31574 2009-08-27  Bruno Haible  <bruno@clisp.org>
31575
31576         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
31577         compilers.
31578         * doc/func.texi: Document the SunPRO C bug.
31579
31580 2009-08-27  Bruno Haible  <bruno@clisp.org>
31581
31582         Fix link error on Solaris.
31583         * tests/test-parse-duration.c (xstrdup): Remove function.
31584
31585 2009-08-26  PĂ¡draig Brady  <P@draigbrady.com>
31586
31587         ignore-value: handle pointer types, too
31588         * lib/ignore-value.h (__attribute__): Remove definition.
31589         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
31590         of a more concise and more-often effective "(void) i" statement.
31591         (ignore_ptr): New function to suppress warnings from functions that
31592         return pointers, and to make it explicit that one function doesn't
31593         handle all cases.
31594
31595 2009-08-25  Bruno Haible  <bruno@clisp.org>
31596
31597         dup2: work around a Linux bug.
31598         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
31599         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
31600         * doc/posix-functions/dup2.texi: Mention the Linux bug.
31601         Reported by Simon Josefsson.
31602
31603 2009-08-25  Jim Meyering  <meyering@redhat.com>
31604
31605         libguestfs uses gnulib
31606         * users.txt: Add libguestfs.
31607
31608 2009-08-24  Eric Blake  <ebb9@byu.net>
31609
31610         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
31611         * lib/pipe2.c (includes): Add binary-io.h.
31612         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
31613
31614 2009-08-24  Bruno Haible  <bruno@clisp.org>
31615
31616         Tolerate declared but missing accept4 syscall.
31617         * lib/accept4.c (accept4): Invoke original accept4 function first, if
31618         available.
31619         * lib/sys_socket.in.h (accept4): If the function is already present,
31620         override it.
31621         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
31622         * modules/accept4 (Makefile.am): Compile accept4.c always.
31623         Reported by Paolo Bonzini and Eric Blake.
31624
31625 2009-08-23  Bruno Haible  <bruno@clisp.org>
31626
31627         New module 'accept4'.
31628         * lib/sys_socket.in.h (accept4): New declaration.
31629         * lib/accept4.c: New file.
31630         * m4/accept4.m4: New file.
31631         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31632         GNULIB_ACCEPT4, HAVE_ACCEPT4.
31633         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
31634         HAVE_ACCEPT4.
31635         * modules/accept4: New file.
31636         * doc/glibc-functions/accept4.texi: Mention the new module.
31637
31638 2009-08-24  Jim Meyering  <meyering@redhat.com>
31639
31640         progname: also set global program_invocation_name, when possible
31641         Before this change, a libtool-enabled program that calls glibc's
31642         error function would report the program name as
31643         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
31644         * modules/progname (configure.ac): Check for a declaration of
31645         program_invocation_name.
31646         * lib/progname.c:  Include <errno.h>.
31647         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
31648         Set program_invocation_name.
31649
31650 2009-08-23  Bruno Haible  <bruno@clisp.org>
31651
31652         * lib/dup3.c: Include <string.h>.
31653
31654 2009-08-23  Bruno Haible  <bruno@clisp.org>
31655
31656         * lib/dup3.c (dup3): Test only once whether the system actually exists.
31657         * lib/pipe2.c (pipe2): Likewise.
31658         Suggested by Eric Blake.
31659
31660 2009-08-23  Bruno Haible  <bruno@clisp.org>
31661
31662         Tolerate declared but missing dup3 syscall.
31663         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
31664         * lib/unistd.in.h (dup3): If the function is already present,
31665         override it.
31666         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
31667         * modules/dup3 (Makefile.am): Compile dup3.c always.
31668         Reported by Paolo Bonzini.
31669
31670 2009-08-23  Bruno Haible  <bruno@clisp.org>
31671
31672         Tolerate declared but missing pipe2 syscall.
31673         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
31674         available.
31675         * lib/unistd.in.h (pipe2): If the function is already present,
31676         override it.
31677         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
31678         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
31679         Reported by Paolo Bonzini.
31680
31681 2009-08-23  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/pipe2.c (pipe2): Move #ifs inside function.
31684
31685 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31686
31687         quotearg: document limitations of quote_these_too
31688         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
31689         those limitations are created.
31690         * lib/quotearg.h (set_char_quoting): Document that digits and
31691         letters that are special after backslash are not permitted.
31692         (quotearg_char): Cross-reference set_char_quoting documentation.
31693
31694 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
31695
31696         quotearg: implement custom_quoting_style
31697         * lib/quotearg.c: (struct quoting_options): Add left_quote and
31698         right_quote fields.
31699         (set_custom_quoting): New public function.
31700         (quotearg_buffer_restyled): Add left_quote and right_quote
31701         arguments, handle them very much like locale quoting, and update
31702         all uses.
31703         (quotearg_n_custom): New public function.
31704         (quotearg_n_custom_mem): New public function.
31705         (quotearg_custom): New public function.
31706         (quotearg_custom_mem): New public function.
31707         * lib/quotearg.h: Prototype and document new public functions.
31708         (enum quoting_style): For escape_quoting_style and
31709         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
31710         ignored even though they're otherwise like c_quoting_style.
31711         Add custom_quoting_style member and document with comparison to
31712         clocale_quoting_style.
31713         * tests/test-quotearg.c (custom_quotes): New array.
31714         (custom_results): New array.
31715         (main): Extend to test custom quoting.
31716
31717 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31718
31719         quotearg: fix right quote escaping when it's in quote_these_too
31720         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
31721         quote, be sure to prepend only one backslash.
31722         * tests/test-quotearg.c (use_quote_double_quotes): New function.
31723         (main): Test it.
31724
31725 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
31726
31727         quotearg-tests: test escaping of embedded locale quotes
31728         * tests/test-quotearg.c (struct result_strings): Add member for
31729         new input.
31730         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
31731         (inputs): Add new input.
31732         (results_g): Add expected results.
31733         (flag_results): Likewise.
31734         (locale_results): Likewise.
31735         (compare_strings): Check those.
31736
31737 2009-08-23  Bruno Haible  <bruno@clisp.org>
31738
31739         Tests for module 'dup3'.
31740         * modules/dup3-tests: New file.
31741         * tests/test-dup3.c: New file.
31742
31743         New module 'dup3'.
31744         * lib/unistd.in.h (dup3): New declaration.
31745         * lib/dup3.c: New file.
31746         * m4/dup3.m4: New file.
31747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
31748         HAVE_DUP3.
31749         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
31750         * modules/dup3: New file.
31751         * doc/glibc-functions/dup3.texi: Mention the new module.
31752
31753 2009-08-23  Bruno Haible  <bruno@clisp.org>
31754
31755         Tweak the dup2 test.
31756         * tests/test-dup2.c (main): Create the test file empty. Verify that an
31757         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
31758         the test file is still empty. Fix argument order of lseek.
31759
31760 2009-08-23  Bruno Haible  <bruno@clisp.org>
31761
31762         Avoid test link errors when the modules getopt-gnu, gettext are used.
31763         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
31764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31765
31766 2009-08-23  Bruno Haible  <bruno@clisp.org>
31767
31768         Fix getdtablesize() on mingw.
31769         * lib/getdtablesize.c (getdtablesize): Implement differently.
31770         * lib/unistd.in.h (getdtablesize): Improve comment.
31771
31772 2009-08-23  Bruno Haible  <bruno@clisp.org>
31773
31774         New module 'mkostemp'.
31775         Based on Ulrich Drepper's 2007-08-10 change in glibc.
31776         * lib/stdlib.in.h (mksotemp): New declaration.
31777         * lib/mkostemp.c: New file, from glibc with modifications.
31778         * lib/tempname.h (GT_FILE): Remove outdated comment.
31779         (gen_tempname): Add flags argument.
31780         * lib/tempname.c (__GT_BIGFILE): Remove macro.
31781         (__GT_FILE): Map to 1.
31782         (small_open, large_open): Remove macros.
31783         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
31784         * lib/mkstemp.c (mkstemp): Update.
31785         * lib/mkdtemp.c (mkdtemp): Likewise.
31786         * m4/mkostemp.m4: New file.
31787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
31788         HAVE_MKOSTEMP.
31789         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
31790         HAVE_MKOSTEMP.
31791         * modules/mkostemp: New file, based on modules/mkstemp.
31792         * doc/glibc-functions/mkostemp.texi: Mention the new module.
31793         * NEWS: Mention the change.
31794
31795 2009-08-23  Bruno Haible  <bruno@clisp.org>
31796
31797         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
31798         Reported by Eric Blake.
31799
31800 2009-08-23  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
31803         Reported by Eric Blake.
31804
31805 2009-08-23  Bruno Haible  <bruno@clisp.org>
31806
31807         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
31808         * modules/pipe2 (Depends-on): Likewise.
31809
31810 2009-08-23  Eric Blake  <ebb9@byu.net>
31811
31812         fcntl-h: add O_TTY_INIT support
31813         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
31814         * tests/test-fcntl-h.c (o): Test it.
31815         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31816
31817         fcntl-h: rename from fcntl, in preparation for fcntl(2)
31818         * modules/fcntl: Move <fcntl.h> header replacement...
31819         * modules/fcntl-h: ...to new name, so as not to collide with
31820         like-named function.
31821         * tests/test-fcntl.c: Rename...
31822         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
31823         * modules/fcntl-tests: Rename...
31824         * modules/fcntl-h-tests: ...to this.  Update test file name.
31825         * modules/chdir-long (Depends-on): Update clients.
31826         * modules/chdir-safer (Depends-on): Likewise.
31827         * modules/fcntl-safer (Depends-on): Likewise.
31828         * modules/fts (Depends-on): Likewise.
31829         * modules/mkancesdirs (Depends-on): Likewise.
31830         * modules/mkdir-p (Depends-on): Likewise.
31831         * modules/open (Depends-on): Likewise.
31832         * modules/savewd (Depends-on): Likewise.
31833         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
31834         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31835
31836 2009-08-22  Bruno Haible  <bruno@clisp.org>
31837
31838         * modules/binary-io (License): Relicense under LGPL.
31839         * modules/pipe2 (License): Likewise.
31840
31841 2009-08-22  Bruno Haible  <bruno@clisp.org>
31842
31843         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
31844         return value.
31845         * lib/pipe-filter-gi.c (filter_init): Likewise.
31846         Reported by Eric Blake.
31847
31848 2009-08-22  Bruno Haible  <bruno@clisp.org>
31849
31850         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
31851         * modules/pipe (Depends-on): Add pipe2.
31852
31853 2009-08-22  Bruno Haible  <bruno@clisp.org>
31854
31855         Tests for module 'pipe2'.
31856         * modules/pipe2-tests: New file.
31857         * tests/test-pipe2.c: New file.
31858
31859         New module 'pipe2'.
31860         * lib/unistd.in.h (pipe2): New declaration.
31861         * lib/pipe2.c: New file.
31862         * m4/pipe2.m4: New file.
31863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
31864         HAVE_PIPE2.
31865         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
31866         * modules/pipe2: New file.
31867         * doc/glibc-functions/pipe2.texi: Mention the new module.
31868
31869 2009-08-22  Bruno Haible  <bruno@clisp.org>
31870
31871         Reference some new glibc functions.
31872         * doc/glibc-functions/accept4.texi: New file.
31873         * doc/glibc-functions/dup3.texi: New file.
31874         * doc/glibc-functions/mkostemp.texi: New file.
31875         * doc/glibc-functions/pipe2.texi: New file.
31876         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
31877         (Glibc sys/socket.h): Refer to accept4.
31878         (Glibc unistd.h): Refer to dup3, pipe2.
31879         Reported by Eric Blake.
31880
31881 2009-08-22  Jim Meyering  <meyering@redhat.com>
31882             Bruno Haible  <bruno@clisp.org>
31883
31884         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
31885         This makes it so packages using automake-1.11's silent-rules option
31886         can print e.g., a single "GEN    configmake.h" line, rather than
31887         the 30+ statements that perform the job.  If you want to see the
31888         actual commands, you can still run "make V=1".
31889         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
31890         so that make output is abbreviated when those variables are defined
31891         appropriately.
31892         * modules/argz: Likewise.
31893         * modules/arpa_inet: Likewise.
31894         * modules/byteswap: Likewise.
31895         * modules/configmake: Likewise.
31896         * modules/dirent: Likewise.
31897         * modules/errno: Likewise.
31898         * modules/fcntl: Likewise.
31899         * modules/float: Likewise.
31900         * modules/fnmatch: Likewise.
31901         * modules/getopt-posix: Likewise.
31902         * modules/glob: Likewise.
31903         * modules/iconv_open: Likewise.
31904         * modules/inttypes: Likewise.
31905         * modules/localcharset: Likewise.
31906         * modules/locale: Likewise.
31907         * modules/math: Likewise.
31908         * modules/netdb: Likewise.
31909         * modules/netinet_in: Likewise.
31910         * modules/poll: Likewise.
31911         * modules/posix_spawnp-tests: Likewise.
31912         * modules/sched: Likewise.
31913         * modules/search: Likewise.
31914         * modules/selinux-h: Likewise.
31915         * modules/signal: Likewise.
31916         * modules/spawn: Likewise.
31917         * modules/stdarg: Likewise.
31918         * modules/stdbool: Likewise.
31919         * modules/stddef: Likewise.
31920         * modules/stdint: Likewise.
31921         * modules/stdio: Likewise.
31922         * modules/stdlib: Likewise.
31923         * modules/string: Likewise.
31924         * modules/strings: Likewise.
31925         * modules/sys_file: Likewise.
31926         * modules/sys_ioctl: Likewise.
31927         * modules/sys_select: Likewise.
31928         * modules/sys_socket: Likewise.
31929         * modules/sys_stat: Likewise.
31930         * modules/sys_time: Likewise.
31931         * modules/sys_times: Likewise.
31932         * modules/sys_utsname: Likewise.
31933         * modules/sys_wait: Likewise.
31934         * modules/sysexits: Likewise.
31935         * modules/time: Likewise.
31936         * modules/unistd: Likewise.
31937         * modules/wchar: Likewise.
31938         * modules/wctype: Likewise.
31939
31940 2009-08-22  Jim Meyering  <meyering@redhat.com>
31941
31942         announce-gen: detect write failure
31943         * build-aux/announce-gen: Add Coda at end.
31944         Remove equivalent-but-more-verbose block at top.
31945
31946 2009-08-19  Akim Demaille  <demaille@gostai.com>
31947
31948         bootstrap: --help to stdout.
31949         * bootstrap (usage): Don't send --help to stderr.
31950         Use a here doc instead of a long string.
31951
31952 2009-08-21  Eric Blake  <ebb9@byu.net>
31953
31954         test-popen-safer: split from test-popen
31955         * tests/test-popen.c (main): Move...
31956         * tests/test-popen.h: ...into new file.
31957         * tests/test-popen-safer2.c: New file.
31958         * modules/popen-tests (Files): Add test-popen.h.
31959         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
31960         Suggested by Bruno Haible.
31961
31962         test-fcntl-safer: split from test-open
31963         * tests/test-open.c (main): Move...
31964         * tests/test-open.h: ...into new file.
31965         * tests/test-fcntl-safer.c: New file.
31966         * modules/open-tests (Files): Add test-open.h.
31967         * modules/fcntl-safer-tests: New file.
31968         Suggested by Bruno Haible.
31969
31970         test-fopen-safer: split from test-fopen
31971         * tests/test-fopen.c (main): Move...
31972         * tests/test-fopen.h: ...into new file.
31973         * tests/test-fopen-safer.c: New file.
31974         * modules/fopen-tests (Files): Add test-fopen.h.
31975         * modules/fopen-safer-tests: New file.
31976         Suggested by Bruno Haible.
31977
31978 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31979
31980         popen-safer: test O_CLOEXEC at run-time.
31981         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
31982
31983 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
31984
31985         fcntl: move more flags to the header
31986         * lib/cloexec.c: Do not define FD_CLOEXEC here.
31987         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
31988         * lib/fcntl.in.h: Do both things here.
31989
31990 2009-08-21  Jim Meyering  <meyering@redhat.com>
31991
31992         consistently remove $@-t before redirecting to it
31993         * modules/argz: Remove $@-t and $@ before redirecting to the former.
31994         * modules/alloca-opt: Likewise.
31995         * modules/byteswap: Likewise.
31996         * modules/fnmatch: Likewise.
31997         * modules/getopt-posix: Likewise.
31998         * modules/glob: Likewise.
31999         * modules/poll: Likewise.
32000         * modules/posix_spawnp-tests: Likewise.
32001         * modules/sys_socket: Likewise.
32002         * modules/sysexits: Likewise.
32003
32004 2009-08-21  Eric Blake  <ebb9@byu.net>
32005
32006         popen: simplify access to original popen
32007         * lib/popen.c (rpl_popen): No need to worry about popen being a
32008         macro.
32009         Reported by Bruno Haible.
32010
32011 2009-08-20  Eric Blake  <ebb9@byu.net>
32012
32013         build: avoid some compiler warnings
32014         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32015         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32016         type.
32017         (new_exclude_segment, excluded_file_pattern_p)
32018         (excluded_file_name_p): Reduce scope.
32019         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32020         old-style declaration.
32021
32022 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32023
32024         * tests/test-exclude1.sh: Handle Windows EOL.
32025         * tests/test-exclude2.sh: Likewise.
32026         * tests/test-exclude3.sh: Likewise.
32027         * tests/test-exclude4.sh: Likewise.
32028         * tests/test-exclude5.sh: Likewise.
32029         * tests/test-exclude6.sh: Likewise.
32030         * tests/test-exclude7.sh: Likewise.
32031
32032 2009-08-19  Akim Demaille  <demaille@gostai.com>
32033
32034         bootstrap: find sha1sum when named gsha1sum.
32035         * bootstrap (find_tool): New.
32036         ($SHA1SUM): New.
32037         Use it.
32038
32039 2009-08-20  Jim Meyering  <meyering@redhat.com>
32040
32041         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32042         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32043         expression that converts "." in a file name to "\." in the resulting
32044         regexp.  Start with a dummy statement, so that prior shell variable
32045         definitions are expanded portably.  Reported by Simon Josefsson.
32046
32047 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32048
32049         Fix polling for writeability of a screen buffer.
32050         * lib/poll.c: Distinguish input and screen buffers for the
32051         Win32 implementation.
32052         * lib/select.c: Likewise.
32053
32054 2009-08-19  Eric Blake  <ebb9@byu.net>
32055
32056         popen-safer: prevent popen from clobbering std descriptors
32057         * modules/popen-safer: New file.
32058         * lib/popen-safer.c: Likewise.
32059         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32060         * lib/stdio--.h (popen): Provide override.
32061         * lib/stdio-safer.h (popen_safer): Provide declaration.
32062         * tests/test-popen.c (includes): Partially test this.
32063         * modules/popen-safer-tests: New file, for more tests.
32064         * tests/test-popen-safer.c: Likewise.
32065         * MODULES.html.sh (file stream based Input/Output): Mention it.
32066
32067         tests: test some of the *-safer modules
32068         * modules/fopen-safer (Depends-on): Add fopen.
32069         * modules/fcntl-safer (Depends-on): Add fcntl.
32070         * modules/stdlib-safer (Depends-on): Add stdlib.
32071         (configure.ac): Set indicator.
32072         * modules/unistd-safer (configure.ac): Likewise.
32073         * modules/tmpfile-safer (configure.ac): Likewise.
32074         (Depends-on): Add tmpfile.
32075         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32076         active.
32077         * tests/test-fopen.c (includes): Test safer versions when they are
32078         in use.
32079         * tests/test-open.c (includes): Likewise.
32080
32081         popen: fix cygwin 1.5 bug when stdin closed
32082         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32083         * modules/popen: New file.
32084         * modules/popen-tests: Likewise.
32085         * tests/test-popen.c: Likewise.
32086         * m4/popen.m4: Likewise.
32087         * lib/popen.c: Likewise.
32088         * lib/stdio.in.h (popen): New declaration.
32089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32090         * modules/stdio (Makefile.am): Likewise.
32091         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32092
32093 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32094
32095         maint.mk: give full control over update-copyright exclusions
32096         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32097         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32098         (update-copyright): Don't force inclusion of top-level
32099         ChangeLog.  Don't force exclusion of all COPYING files, but make
32100         them the default exclusion instead.
32101
32102 2009-08-16  Bruno Haible  <bruno@clisp.org>
32103
32104         Fix test failures on Solaris 10.
32105         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32106         tests when Solaris iconv() is used.
32107         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32108         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32109         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32110         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32111         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32112
32113 2009-08-16  Bruno Haible  <bruno@clisp.org>
32114
32115         Fix test failures on Solaris 10.
32116         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32117         'tr' program and pass it as first argument.
32118         * tests/test-pipe-filter-gi1.sh: Likewise.
32119         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32120         program as first argument.
32121         * tests/test-pipe-filter-gi1.c (main): Likewise.
32122
32123 2009-08-16  Eric Blake  <ebb9@byu.net>
32124
32125         fpurge: fix previous commits
32126         * modules/fpurge (Makefile.am): Make replacement conditional,
32127         partially reverting 2007-04-29 change; missed in previous
32128         attempt.
32129         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32130         is missing.
32131
32132 2009-08-16  Bruno Haible  <bruno@clisp.org>
32133
32134         Clarify fpurge's effect on the file position.
32135         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32136         * tests/test-fpurge.c (main): Make a second pass for checking the file
32137         position.
32138
32139 2009-08-16  Bruno Haible  <bruno@clisp.org>
32140
32141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32142         declaration of fpurge is missing.
32143         * tests/test-fpurge.c (main): Check that the file has not more contents
32144         than expected. Close the file before removing it.
32145
32146 2009-08-15  Eric Blake  <ebb9@byu.net>
32147
32148         fpurge: don't wrap working cygwin implementation
32149         * lib/fpurge.c (fpurge): Fix comment typo.
32150         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32151         1.7 to avoid replacement.
32152         * tests/test-fpurge.c (main): Enhance test.
32153
32154 2009-08-15  Eric Blake  <ebb9@byu.net>
32155         and Jim Meyering  <meyering@redhat.com>
32156
32157         test-update-copyright: skip if perl is insufficient
32158         * tests/test-update-copyright.sh: Failure to run maintainer tool
32159         should not cause testsuite failure on cygwin 1.5.
32160
32161 2009-08-14  Eric Blake  <ebb9@byu.net>
32162
32163         doc: mention more functions added in cygwin 1.7.0
32164         * doc/posix-headers/limits.texi (limits.h): Update for recent
32165         cygwin additions.
32166         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32167         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32168         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32169         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32170         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32171
32172 2009-08-14  Eric Blake  <ebb9@byu.net>
32173
32174         maint.mk: simplify update-copyright rule
32175         * top/maint.mk (update-copyright-local): Delete, and document how
32176         to do it in cfg.mk instead.
32177         (update-copyright-exclude-regexp): Delete, and document how to do
32178         it in .x-update-copyright instead.
32179         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32180         exclude ChangeLog.
32181
32182 2009-08-14  Bruno Haible  <bruno@clisp.org>
32183
32184         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32185
32186 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32187
32188         maint.mk: support update-copyright-env
32189         * top/maint.mk (update-copyright-env): Define place-holder.
32190         (update-copyright): Expand $(update-copyright-env) before
32191         invoking update-copyright.
32192
32193 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32194
32195         update-copyright: implement forced reformatting
32196         * build-aux/update-copyright: Implement and document
32197         UPDATE_COPYRIGHT_FORCE.
32198         * tests/test-update-copyright.sh: Test it.
32199
32200 2009-08-14  Eric Blake  <ebb9@byu.net>
32201         and Bruno Haible  <bruno@clisp.org>
32202
32203         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32204         * tests/test-locale.c: Revert previous patch related to NULL.
32205         * tests/test-stdio.c: Likewise.
32206         * tests/test-stdlib.c: Likewise.
32207         * tests/test-string.c: Likewise.
32208         * tests/test-unistd.c: Likewise.
32209         * modules/time-tests (Depends-on): Add verify.
32210         * modules/wchar-tests (Depends-on): Likewise.
32211         * tests/test-time.c: Test for NULL compliance.
32212         * tests/test-wchar.c: Likewise.
32213         * modules/locale (Depends-on): Add stddef.
32214         * modules/stdio (Depends-on): Likewise.
32215         * modules/stdlib (Depends-on): Likewise.
32216         * modules/string (Depends-on): Likewise.
32217         * modules/time (Depends-on): Likewise.
32218         * modules/unistd (Depends-on): Likewise.
32219         * modules/wchar (Depends-on): Likewise.
32220         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32221         * lib/stdlib.in.h (includes): Likewise.
32222         * lib/string.in.h (includes): Likewise.
32223         * lib/time.in.h (includes): Likewise.
32224         * lib/unistd.in.h (includes): Likewise.
32225         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32226         replaced.
32227         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32228         * m4/stddef_h.m4: New file.
32229         * modules/stddef: Likewise.
32230         * lib/stddef.in.h: Likewise.
32231         * modules/stddef-tests: Likewise.
32232         * tests/test-stddef.c: Likewise.
32233         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32234         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32235         * doc/posix-headers/locale.texi (locale.h): Likewise.
32236         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32237         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32238         * doc/posix-headers/string.texi (string.h): Likewise.
32239         * doc/posix-headers/time.texi (time.h): Likewise.
32240         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32241         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32242
32243 2009-08-14  Eric Blake  <ebb9@byu.net>
32244
32245         doc: improve git diff of texinfo files
32246         * .gitattributes: Add rule for *.texi files, with hint on how to
32247         use it.
32248         Copied from m4, and based on a report by Bruno Haible.
32249
32250 2009-08-14  Bruno Haible  <bruno@clisp.org>
32251
32252         Disable multithread support by default on Cygwin 1.5.x for real.
32253         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32254
32255 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32256
32257         update-copyright: much ado about intervals
32258         * build-aux/update-copyright: Implement and document
32259         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32260         of copyright year intervals.
32261         Also, document UPDATE_COPYRIGHT_YEAR.
32262         * tests/test-update-copyright.sh: Test it.
32263
32264         update-copyright: convert 2-digit to 4-digit years
32265         * build-aux/update-copyright: Implement and document.
32266         * tests/test-update-copyright.sh: Update.
32267
32268 2009-08-14  Jim Meyering  <meyering@redhat.com>
32269
32270         test-exclude: avoid coreutils "make check" failure
32271         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32272         just as in test-argmatch.c.
32273
32274 2009-08-13  Eric Blake  <ebb9@byu.net>
32275
32276         test-dup2: fix bad assumption
32277         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32278         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32279
32280         test-version-etc: fix CRLF portability issue
32281         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32282         recognize \r.
32283         * tests/test-argp-version-etc-1.sh: Likewise.
32284
32285         getopt: update client modules
32286         * modules/argp (Depends-on): Use getopt-gnu.
32287         * modules/git-merge-changelog (Depends-on): Likewise.
32288         * modules/long-options (Depends-on): Likewise.
32289         * modules/xstrtol (Depends-on): Likewise.
32290
32291 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32292
32293         * tests/test-version-etc.sh: Don't fail on different
32294         project/version.  Don't fail on CRLF differences.  Rewrite to use
32295         multiple -e instead of multiple sed forks, suggested by Eric Blake
32296         <ebb9@byu.net>.
32297         * tests/test-argp-version-etc-1.sh: Likewise.
32298
32299 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32300
32301         * tests/test-version-etc.sh: Don't fail on different
32302         project/version.
32303
32304 2009-08-12  Bruno Haible  <bruno@clisp.org>
32305
32306         Tests for modules 'getopt-posix', 'getopt-gnu'.
32307         * modules/getopt-posix-tests: New file.
32308         * tests/test-getopt.c: New file.
32309         * tests/test-getopt.h: New file.
32310         * tests/test-getopt_long.h: New file.
32311
32312         New modules 'getopt-posix', 'getopt-gnu'.
32313         * modules/getopt-gnu: New file, renamed from modules/getopt.
32314         * modules/getopt-posix: New file.
32315         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32316         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32317         (gl_GETOPT): Remove macro.
32318         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32319         Disable the test against BSD systems that declare optreset. Test
32320         against mingw bug. Test against lack of support of optional arguments
32321         on many platforms.
32322         * doc/glibc-headers/getopt.texi: Update module name and list of
32323         relevant platforms.
32324         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32325         'getopt-gnu' and more portability problems.
32326         * NEWS: Mention the changes.
32327
32328 2009-08-12  Bruno Haible  <bruno@clisp.org>
32329
32330         Ensure that optarg etc. get declared by <unistd.h>.
32331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32332         AC_USE_SYSTEM_EXTENSIONS.
32333         * modules/getopt (Depends-on): Add 'extensions'.
32334
32335 2009-08-12  Bruno Haible  <bruno@clisp.org>
32336
32337         Avoid test link errors.
32338         * modules/pipe-filter-ii-tests (Makefile.am): Define
32339         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32340         * modules/pipe-filter-gi-tests (Makefile.am): Define
32341         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32343
32344 2009-08-12  Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32347         gl_GETOPT_SUBSTITUTE before.
32348         (gl_GETOPT): Use it.
32349         * m4/argp.m4 (gl_ARGP): Update.
32350         Reported by Sergey Poznyakoff.
32351
32352         * m4/getopt.m4: Reorder macros.
32353         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32354         (gl_GETOPT_SUBSTITUTE): Remove macro.
32355
32356 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32357
32358         Minor improvement in gitlog-to-changelog
32359
32360         * build-aux/gitlog-to-changelog: New option `--format' makes
32361         output format string configurable.
32362
32363 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32364
32365         Optimize exclude: use hash tables for non-wildcard patterns.
32366
32367         * lib/exclude.c: Include hash.h and mbuiter.h
32368         (struct exclude_pattern, exclude_segment): New data types.
32369         (struct exclude): Rewrite.
32370         (fnmatch_pattern_has_wildcards): New function.
32371         (new_exclude_segment, free_exclude_segment): New functions.
32372         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32373         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32374         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32375         * modules/exclude: Depend on hash and mbuiter.
32376
32377         * modules/exclude-tests: New file.
32378         * tests/test-exclude.c: New file.
32379         * tests/test-exclude1.sh: New file.
32380         * tests/test-exclude2.sh: New file.
32381         * tests/test-exclude3.sh: New file.
32382         * tests/test-exclude4.sh: New file.
32383         * tests/test-exclude5.sh: New file.
32384         * tests/test-exclude6.sh: New file.
32385         * tests/test-exclude7.sh: New file.
32386
32387 2009-08-12  Bruno Haible  <bruno@clisp.org>
32388
32389         Ensure that getopt() gets declared by <unistd.h>.
32390         * lib/unistd.in.h: Conditionally include getopt.h.
32391         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32392         Set GNULIB_UNISTD_H_GETOPT.
32393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32394         GNULIB_UNISTD_H_GETOPT.
32395         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32396
32397 2009-08-12  Bruno Haible  <bruno@clisp.org>
32398
32399         Clarify logic.
32400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32401         gl_replace_getopt instead of GETOPT_H.
32402
32403 2009-08-12  Bruno Haible  <bruno@clisp.org>
32404
32405         * m4/getopt.m4: Add comments.
32406
32407 2009-08-12  Bruno Haible  <bruno@clisp.org>
32408
32409         Disable multithread support by default on Cygwin 1.5.x.
32410         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32411         set gl_use_threads=no if not specified otherwise.
32412
32413 2009-08-11  Bruno Haible  <bruno@clisp.org>
32414
32415         Avoid compilation error on NetBSD 5.0.
32416         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32417         * tests/test-stdio.c: Likewise.
32418         * tests/test-stdlib.c: Likewise.
32419         * tests/test-string.c: Likewise.
32420         * tests/test-unistd.c: Likewise.
32421         Reported by Greg Troxel <gdt@ir.bbn.com>
32422         at <https://savannah.gnu.org/support/?106973>.
32423
32424 2009-08-11  Bruno Haible  <bruno@clisp.org>
32425
32426         * modules/dup2-tests (Depends-on): Remove close.
32427
32428         Undo 2009-07-19 commit.
32429         * modules/acl-tests (Depends-on): Remove close.
32430         * modules/binary-io-tests (Depends-on): Likewise.
32431         * modules/closein-tests (Depends-on): Likewise.
32432         * modules/flock-tests (Depends-on): Likewise.
32433         * modules/fsync-tests (Depends-on): Likewise.
32434         * modules/lseek-tests (Depends-on): Likewise.
32435         * modules/pipe-tests (Depends-on): Likewise.
32436         * modules/posix_spawn-tests (Depends-on): Likewise.
32437         * modules/posix_spawnp-tests (Depends-on): Likewise.
32438         * modules/stat-time-tests (Depends-on): Likewise.
32439         * modules/yesno-tests (Depends-on): Likewise.
32440
32441 2009-08-10  Bruno Haible  <bruno@clisp.org>
32442
32443         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32444
32445 2009-08-10  Bruno Haible  <bruno@clisp.org>
32446
32447         Fix a gcc warning.
32448         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32449
32450 2009-08-10  Bruno Haible  <bruno@clisp.org>
32451
32452         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32453         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32454         not only the first time.
32455         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32456         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32457         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32458         is 1, not only the the first time.
32459
32460 2009-08-10  Bruno Haible  <bruno@clisp.org>
32461
32462         Make it possible to use module 'gethostname' without module 'close'.
32463         * lib/unistd.in.h (close): Evoke a link error only if
32464         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32466         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32467         * modules/unistd (Makefile.am): Substitute
32468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32469         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
32470         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32472         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32473         * modules/sys_ioctl (Makefile.am): Substitute
32474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32475         * modules/socket (configure.ac): On native Windows, set
32476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
32477         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32478         Reported by Sam Steingold <sds@gnu.org>.
32479
32480 2009-08-10  Bruno Haible  <bruno@clisp.org>
32481
32482         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
32483         * modules/ioctl (configure.ac): Likewise.
32484
32485 2009-08-10  Bruno Haible  <bruno@clisp.org>
32486
32487         Avoid collision between gnulib wrapper and libintl wrapper.
32488         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
32489         already defined in intl/printf.c.
32490         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
32491         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
32492
32493 2009-08-09  Bruno Haible  <bruno@clisp.org>
32494
32495         Make <sys/select.h> really self-contained, also on Solaris 10.
32496         * lib/sys_select.in.h: Include <string.h>.
32497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
32498         Solaris 10 problem.
32499         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
32500         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
32501         Reported by Jim Meyering.
32502
32503 2009-08-09  Bruno Haible  <bruno@clisp.org>
32504
32505         Avoid warnings from 'aclocal' that are due to a use of macro name
32506         AM_XGETTEXT_OPTION that is not defined in automake.
32507         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
32508         automake.
32509         * modules/error (configure.ac): Likewise.
32510         * modules/propername (configure.ac): Likewise.
32511         * modules/vasprintf (configure.ac): Likewise.
32512         * modules/verror (configure.ac): Likewise.
32513         * modules/xprintf (configure.ac): Likewise.
32514         * modules/xvasprintf (configure.ac): Likewise.
32515
32516 2009-08-08  Bruno Haible  <bruno@clisp.org>
32517
32518         Avoid compilation error in C++ mode.
32519         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
32520         Reported by Sam Steingold <sds@gnu.org>.
32521
32522 2009-08-08  Bruno Haible  <bruno@clisp.org>
32523
32524         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
32525         for the various Unix platforms.
32526         * doc/posix-headers/limits.texi: Update platforms list regarding
32527         HOST_NAME_MAX.
32528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32529
32530 2009-08-07  Jim Meyering  <meyering@redhat.com>
32531
32532         selinux-at: fix typo in a comment
32533         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
32534         Spotted by Paolo Bonzini.
32535
32536         selinux-at: remove redundant m4 code, add documentation
32537         * modules/selinux-at (configure.ac): Remove redundant code.
32538         LIB_SELINUX is already set via the dependent module, selinux-h.
32539         (Include): Add quotes around selinux-at.h.
32540         * lib/selinux-at.h: Add documentation.
32541         Reported by Bruno Haible in
32542         http://marc.info/?l=gnulib-bug&m=124958988300749
32543
32544 2009-08-07  Bruno Haible  <bruno@clisp.org>
32545
32546         Avoid link error on MacOS X 10.3 and 10.4.
32547         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
32548         on non-ELF systems.
32549         * lib/argp-pv.c (argp_program_version): Likewise.
32550         Reported by Simon Josefsson.
32551
32552 2009-08-07  Simon Josefsson  <simon@josefsson.org>
32553
32554         * tests/test-version-etc.sh: Use $EXEEXT.
32555
32556 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
32557
32558         update-copyright: update documentation to point to maint.mk
32559         * build-aux/update-copyright: Here.
32560
32561 2009-08-06  Jim Meyering  <meyering@redhat.com>
32562
32563         maint.mk: support update-copyright-local
32564         * top/maint.mk (update-copyright-local): Define place-holder.
32565         (update-copyright): Depend on $(update-copyright-local).
32566
32567 2009-08-06  Jim Meyering  <meyering@redhat.com>
32568
32569         selinux-at: new module
32570         Initially written for coreutils, this module will soon be
32571         used by findutils, too.
32572         * MODULES.html.sh [Misc]: Add selinux-at.
32573         * lib/selinux-at.h: New file, from coreutils.
32574         * lib/selinux-at.c: Likewise.
32575         * modules/selinux-at: Likewise.
32576         (License): Change from LGPL to GPL, since it depends
32577         on the GPL'd openat module.
32578
32579         doc: update README
32580         * README: Remove references to cogito.
32581         Remove cvs-repo-updating instructions from 2007.
32582         Don't imply that CVS is better if you have limited disk space.
32583
32584 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32585
32586         update-copyright: support C-style comments
32587         * build-aux/update-copyright: Implement and document.
32588         * tests/test-update-copyright.sh: Test.
32589
32590 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32591
32592         update-copyright: support omitted "(C)"
32593         * build-aux/update-copyright: Implement and document.  Also,
32594         allow variable whitespace before "(C)".
32595         * tests/test-update-copyright.sh: Test.
32596
32597 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32598
32599         update-copyright: don't trip on non-FSF copyright statements
32600         * build-aux/update-copyright: Fix so that the first correctly
32601         formatted FSF copyright statement is recognized no matter what
32602         appears before it.  Update documentation.
32603         * tests/test-update-copyright.sh: Test that.
32604
32605 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32606
32607         update-copyright: clean up code a little
32608         * build-aux/update-copyright: Append "_re" to the name of any
32609         variable holding a regular expression.
32610         Replace "old" and "new" with "stmt" in variable names.
32611         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
32612         handled correctly.
32613         Format code more consistently.
32614
32615 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
32616
32617         update-copyright-tests: improve portability
32618         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
32619         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
32620
32621 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32622
32623         update-copyright: support @copyright{} and &copy;
32624         * build-aux/update-copyright: Implement and document.
32625         * tests/test-update-copyright.sh: Test.
32626
32627 2009-08-04  Jim Meyering  <meyering@redhat.com>
32628
32629         update-copyright-tests: correctly test EOL=\r\n handling
32630         * tests/test-update-copyright.sh: Put \r at the end of some lines
32631         for the dos-eol tests.  Based on a patch by Joel E. Denny.
32632
32633         maint.mk: make update-copyright exclusion list more configurable
32634         * top/maint.mk (update-copyright): Default to excluding COPYING,
32635         but allow an override, in case someone does want to update that file.
32636
32637         maint.mk: don't update copyright date in COPYING
32638         * top/maint.mk (update-copyright): Exclude COPYING.
32639
32640         maint.mk: add a copyright-updating rule
32641         * top/maint.mk (update-copyright): New rule.
32642         Derived from coreutils/Makefile.am.
32643
32644         update-copyright: rename some variables
32645         * build-aux/update-copyright: Rename a few variables for clarity.
32646         Tweak syntax.  List Joel E. Denny as coauthor.
32647
32648 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
32649
32650         update-copyright: fix bug for 2-digit last year and add tests
32651         * build-aux/update-copyright: Fix bug.
32652         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
32653         specified.
32654         * modules/update-copyright-tests: New
32655         * tests/test-update-copyright.sh: New.
32656
32657 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32658
32659         update-copyright: handle leading tabs in line prefix
32660         * build-aux/update-copyright: Count leading tabs as 8 spaces
32661         when computing margin.  This helps with the formatting of
32662         ChangeLogs, for example.
32663         Fix documentation a little.
32664
32665 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32666
32667         update-copyright: support EOL=\r\n
32668         * build-aux/update-copyright: Implement that.
32669
32670 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
32671
32672         update-copyright: automatically format copyright statements
32673         * build-aux/update-copyright: Implement that.
32674         Also, be a little more predictable and safer by always failing
32675         when the full copyright format is not perfectly recognized as an
32676         unbroken whole.  Discussed at
32677         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
32678         Rewrite documentation.
32679
32680 2009-08-03  Bruno Haible  <bruno@clisp.org>
32681
32682         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
32683
32684 2009-08-02  Bruno Haible  <bruno@clisp.org>
32685
32686         Tests for module 'uname'.
32687         * modules/uname-tests: New file.
32688         * tests/test-uname.c: New file.
32689
32690         New module 'uname'.
32691         * lib/uname.c: New file.
32692         * m4/uname.m4: New file.
32693         * modules/uname: New file.
32694         * doc/posix-functions/uname.texi: Mention the new module.
32695
32696 2009-08-02  Bruno Haible  <bruno@clisp.org>
32697
32698         Tests for module 'sys_utsname'.
32699         * modules/sys_utsname-tests: New file.
32700         * tests/test-sys_utsname.c: New file.
32701
32702         New module 'sys_utsname'.
32703         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
32704         * m4/sys_utsname_h.m4: New file.
32705         * modules/sys_utsname: New file.
32706         * doc/posix-headers/sys_utsname.texi: Mention the new module.
32707
32708 2009-08-02  Bruno Haible  <bruno@clisp.org>
32709
32710         Implicitly initialize the sockets library.
32711         * lib/gethostname.c: Include sockets.h.
32712         (rpl_gethostname): Invoke gl_sockets_startup.
32713         * lib/socket.c: Include sockets.h.
32714         (rpl_socket): Invoke gl_sockets_startup.
32715         * modules/gethostname (Depends-on): Add sockets.
32716         * modules/socket (Depends-on): Likewise.
32717         * tests/test-poll.c: Don't include sockets.h.
32718         (main): Don't invoke gl_sockets_startup.
32719         * tests/test-select.c: Don't include sockets.h.
32720         (main): Don't invoke gl_sockets_startup.
32721
32722 2009-08-02  Bruno Haible  <bruno@clisp.org>
32723
32724         Allow multiple calls to gl_sockets_startup.
32725         * lib/sockets.c (initialized_sockets_version): New variable.
32726         (gl_sockets_startup): Do nothing if already called for this or a higher
32727         version.
32728         (gl_sockets_cleanup): Reset initialized_sockets_version.
32729
32730 2009-08-03  Simon Josefsson  <simon@josefsson.org>
32731
32732         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
32733         different project/version.
32734
32735 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
32736             Bruno Haible  <bruno@clisp.org>
32737
32738         Tests for module 'pipe-filter-gi'.
32739         * modules/pipe-filter-gi-tests: New file.
32740         * tests/test-pipe-filter-gi1.sh: New file.
32741         * tests/test-pipe-filter-gi1.c: New file.
32742         * tests/test-pipe-filter-gi2.sh: New file.
32743         * tests/test-pipe-filter-gi2-main.c: New file.
32744         * tests/test-pipe-filter-gi2-child.c: New file.
32745
32746         New module 'pipe-filter-gi'.
32747         * lib/pipe-filter-gi.c: New file.
32748         * modules/pipe-filter-gi: New file.
32749
32750 2009-08-02  Bruno Haible  <bruno@clisp.org>
32751             Paolo Bonzini  <bonzini@gnu.org>
32752
32753         Tests for module 'pipe-filter-ii'.
32754         * modules/pipe-filter-ii-tests: New file.
32755         * tests/test-pipe-filter-ii1.sh: New file.
32756         * tests/test-pipe-filter-ii1.c: New file.
32757         * tests/test-pipe-filter-ii2.sh: New file.
32758         * tests/test-pipe-filter-ii2-main.c: New file.
32759         * tests/test-pipe-filter-ii2-child.c: New file.
32760
32761         New module 'pipe-filter-ii'.
32762         * lib/pipe-filter.h: New file.
32763         * lib/pipe-filter-ii.c: New file.
32764         * lib/pipe-filter-aux.h: New file.
32765         * modules/pipe-filter-ii: New file.
32766
32767 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32768
32769         * lib/gc-libgcrypt.c: Change copyright to FSF.
32770         * lib/gc-gnulib.c: Likewise.
32771
32772 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
32773
32774         * lib/gethostname.c: Include limits.h.
32775
32776 2009-08-02  Simon Josefsson  <simon@josefsson.org>
32777             Bruno Haible  <bruno@clisp.org>
32778
32779         Ensure HOST_NAME_MAX as part of the gethostname module.
32780         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
32781         define also HOST_NAME_MAX.
32782         * tests/test-gethostname.c: Include <limits.h>.
32783         (main): Check also HOST_NAME_MAX.
32784         * doc/posix-headers/limits.texi: Document the mingw problem.
32785
32786 2009-08-02  Bruno Haible  <bruno@clisp.org>
32787
32788         * lib/gethostname.c (gethostname): Fix handling of large len argument.
32789         Add comments.
32790
32791 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32792
32793         * lib/gethostname.c: Add Windows wrapper.
32794         * m4/gethostname.m4: Look for gethostname in -lws2_32.
32795         * modules/gethostname: Depend on sys_socket & errno, for also
32796         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
32797         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
32798
32799 2009-07-31  Jim Meyering  <meyering@redhat.com>
32800
32801         getloadavg: fix symbol name in comment
32802         * lib/getloadavg.c: Correct a typo I introduced when adding
32803         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
32804         Matt Kraai spotted the problem.
32805
32806 2009-07-29  Matt Kraai  <mkraai@beckman.com>
32807
32808         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
32809         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
32810         code also if ! defined N_NAME_POINTER.
32811         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
32812         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
32813         but the n_name member is a 12-byte array.
32814
32815 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
32816
32817         update-copyright: generalize comment handling
32818         * build-aux/update-copyright: Handle copyright statements
32819         within more comment styles.
32820         Document usage.
32821         Report any file with an external copyright holder or parse failure.
32822
32823 2009-07-29  Jim Meyering  <meyering@redhat.com>
32824
32825         mktime: correct setting of REPLACE_MKTIME
32826         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
32827
32828         update-copyright: new module
32829         * modules/update-copyright: New file.
32830         * build-aux/update-copyright: New file.
32831         * MODULES.html.sh (maint+release support): Add update-copyright.
32832
32833 2009-07-27  Bruno Haible  <bruno@clisp.org>
32834
32835         Fix compilation error when <ctime> is used and mktime is replaced.
32836         * lib/time.in.h (mktime): New declaration.
32837         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
32838         REPLACE_MKTIME instead of defining mktime in config.h.
32839         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
32840         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
32841         Reported by Ross McFarland <rwmcfa1@neces.com>.
32842
32843 2009-07-27  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
32846         Reported by Matt Kraai <mkraai@beckman.com>.
32847
32848 2009-07-25  Jim Meyering  <meyering@redhat.com>
32849
32850         maint.mk: avoid warnings about missing files
32851         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
32852         diagnostic when .prev-version does not exist.
32853         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
32854         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
32855         nonexistent cfg.mk.
32856         Suggestions from Simon Josefsson.
32857
32858 2009-07-25  Bruno Haible  <bruno@clisp.org>
32859
32860         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
32861         defined as macros. Needed on QNX 6.4.1.
32862         Reported by Matt Kraai <mkraai@beckman.com>.
32863
32864 2009-07-23  Jim Meyering  <meyering@redhat.com>
32865
32866         maint.mk: invoke "make dist" with a working value of XZ_OPT
32867         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
32868
32869 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
32870
32871         Make fseeko.c compile on QNX.
32872         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
32873
32874 2009-07-22  Peter Simons  <simons@cryp.to>
32875
32876         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
32877         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
32878         * lib/md4.h: Likewise.
32879         * lib/md5.h: Likewise.
32880         * lib/sha1.h: Likewise.
32881         * lib/sha256.h: Likewise.
32882         * lib/sha512.h: Likewise.
32883
32884         tests-sha1: don't assign literal string to 'char *' variable
32885         * tests/test-sha1.c (main): Declare locals with "const" to match
32886         attributes of the right hand side.
32887
32888 2009-07-21  Eric Blake  <ebb9@byu.net>
32889
32890         dup2: fix more mingw problems
32891         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
32892         fd to itself.
32893         * doc/posix-functions/dup2.texi (dup2): Document the bug.
32894         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
32895         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
32896         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
32897         care of mingw bugs.
32898
32899 2009-07-21  Jim Meyering  <meyering@redhat.com>
32900
32901         vc-list-files: avoid failure when /bin/sh is dash
32902         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
32903         On some Debian based systems, /bin/sh is a symlink to dash, and running
32904         this command would omit the "/" following each 'tests' prefix:
32905           dash -x build-aux/vc-list-files -C . tests
32906         That is because bash and dash work differently:
32907           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
32908           bash ok
32909           dash odd
32910
32911 2009-07-21  Eric Blake  <ebb9@byu.net>
32912
32913         dup2-tests: test previous patch
32914         * modules/dup2-tests: New file.
32915         * tests/test-dup2.c: Likewise.
32916         * tests/test-open.c (main): Avoid unspecified behavior.
32917         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
32918         test.
32919
32920         dup2: work around mingw and cygwin 1.5 bug
32921         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
32922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32923         * modules/unistd (Makefile.am): Substitute it.
32924         * lib/unistd.in.h (dup2): Declare the replacement.
32925         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
32926         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
32927         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
32928         * modules/execute (Depends-on): Add dup2.
32929         * modules/fseterr (Depends-on): Likewise.
32930         * modules/pipe (Depends-on): Likewise.
32931         * modules/posix_spawn-internal (Depends-on): Likewise.
32932
32933 2009-07-21  Bruno Haible  <bruno@clisp.org>
32934
32935         * modules/.gitattributes: New file.
32936
32937 2009-07-20  Bruno Haible  <bruno@clisp.org>
32938
32939         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
32940         (main): Use it.
32941
32942 2009-07-20  Eric Blake  <ebb9@byu.net>
32943
32944         test-pipe: make a bit more robust.
32945         * tests/test-pipe.c (myerr): Allow error messages regardless of
32946         what we do to stderr.
32947         (test_pipe): Rearrange to avoid deadlock.
32948         (child_main): Try a larger read, to ensure we avoided deadlock.
32949         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
32950         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
32951         if misused.
32952
32953 2009-07-19  Jim Meyering  <meyering@redhat.com>
32954
32955         fts: avoid false-positive cycle-detection
32956         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
32957         for each new command line argument.
32958
32959 2009-07-19  Bruno Haible  <bruno@clisp.org>
32960
32961         Fix build error on mingw with the modules sys_select and unistd.
32962         * modules/acl-tests (Depends-on): Add close.
32963         * modules/binary-io-tests (Depends-on): Likewise.
32964         * modules/closein-tests (Depends-on): Likewise.
32965         * modules/flock-tests (Depends-on): Likewise.
32966         * modules/fsync-tests (Depends-on): Likewise.
32967         * modules/lseek-tests (Depends-on): Likewise.
32968         * modules/pipe-tests (Depends-on): Likewise.
32969         * modules/posix_spawn-tests (Depends-on): Likewise.
32970         * modules/posix_spawnp-tests (Depends-on): Likewise.
32971         * modules/stat-time-tests (Depends-on): Likewise.
32972         * modules/yesno-tests (Depends-on): Likewise.
32973
32974 2009-07-19  Bruno Haible  <bruno@clisp.org>
32975
32976         Unify conditionals.
32977         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
32978         macros, not at the compiler macros.
32979         * lib/pipe.c: Likewise.
32980         * lib/execute.c: Likewise.
32981         * lib/spawni.c: Likewise.
32982
32983 2009-07-19  Bruno Haible  <bruno@clisp.org>
32984
32985         Fix handling of closed stdin/stdout/stderr on mingw.
32986         * lib/w32spawn.h: Include unistd.h.
32987         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
32988         file descriptor with O_NOINHERIT flag.
32989         (fd_safer_noinherit): New function, based on fd-safer.c.
32990         (dup_safer_noinherit): New function, based on dup-safer.c.
32991         (undup_safer_noinherit): New function.
32992         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
32993         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
32994         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
32995         instead of fd_safer.
32996         * tests/test-pipe.c: Include <windows.h>.
32997         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
32998         result.
32999
33000         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33001         from main.
33002         (test_pipe): Pass an extra argument for disambiguation.
33003         (main): Invoke parent_main or child_main.
33004
33005         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33006         consistently.
33007
33008 2009-07-18  Eric Blake  <ebb9@byu.net>
33009
33010         test-pipe: fix mingw build
33011         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33012
33013 2009-07-18  Bruno Haible  <bruno@clisp.org>
33014
33015         * modules/pipe-tests (Makefile.am): Fix typo.
33016
33017 2009-07-18  Eric Blake  <ebb9@byu.net>
33018
33019         error: fix mingw build
33020         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33021         Reported by Bruno Haible.
33022
33023         error: avoid undefined use of stdout
33024         * lib/error.c (error, error_at_line): Check that fd 1 is open
33025         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33026         is handling faults and the close_stdout module wants to report the
33027         detection of closed stdout as an error.
33028
33029 2009-07-17  Eric Blake  <ebb9@byu.net>
33030
33031         pipe: be robust in face of closed fds
33032         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33033         should cause child to misbehave.
33034         * modules/pipe-tests: New module.
33035         * tests/test-pipe.c: New file.
33036         * tests/test-pipe.sh: New file.
33037         Reported by Akim Demaille.
33038
33039 2009-07-14  Bruno Haible  <bruno@clisp.org>
33040
33041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33042         Reported by anonymous kc.
33043
33044 2009-07-07  Jim Meyering  <meyering@redhat.com>
33045
33046         maint.mk: don't look for translatable strings in *.m4 or *.mk
33047         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33048         when searching for translatable strings.
33049
33050 2009-07-05  Jim Meyering  <meyering@redhat.com>
33051
33052         remove superfluous parentheses in STREQ definition
33053         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33054         * lib/getugroups.c (STREQ): Likewise.
33055         * lib/fnmatch.c (STREQ): Likewise.
33056         Spotted by Bruno Haible.
33057
33058 2009-07-04  Jim Meyering  <meyering@redhat.com>
33059
33060         argv-iter: new module
33061         * MODULES.html.sh: Add argv-iter.
33062         * lib/argv-iter.c, lib/argv-iter.h: New files.
33063         * modules/argv-iter: New file.
33064         * modules/argv-iter-tests: New file.
33065         * tests/test-argv-iter.c: Test it.
33066
33067 2009-07-04  Bruno Haible  <bruno@clisp.org>
33068
33069         Fix assertion.
33070         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33071         contains more exact copies of a given entry than file2, leave the extra
33072         copies unpaired rather than aborting.
33073         Reported by Eric Blake.
33074
33075 2009-07-02  Bruno Haible  <bruno@clisp.org>
33076
33077         Speedup git-merge-changelog for git cherry-pick.
33078         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33079         (entries_mapping_get): New function, extracted from compute_mapping.
33080         (entries_mapping_reverse_get): New function.
33081         (compute_mapping): Add a 'full' argument. Return the result in a
33082         'struct entries_mapping'.
33083         (main): Update. Access the mappings through entries_mapping_get.
33084         Reported by Eric Blake.
33085
33086 2009-07-02  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33089         best_i.
33090
33091 2009-07-02  Bruno Haible  <bruno@clisp.org>
33092
33093         Speed up approximate search for matching ChangeLog entries.
33094         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33095         argument. Call fstrcmp_bounded instead of fstrcmp.
33096         (compute_mapping, try_split_merged_entry, main): Update callers.
33097
33098 2009-07-02  Bruno Haible  <bruno@clisp.org>
33099
33100         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33101
33102 2009-06-30  Bruno Haible  <bruno@clisp.org>
33103
33104         Reduce the number of uc_is_cased calls.
33105         * lib/unicase.h (casing_suffix_context_t): Add
33106         'first_char_except_ignorable' field.
33107         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33108         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33109         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33110         Update initializer.
33111         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33112         case-ignorable characters.
33113         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33114         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33115         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33116         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33117         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33118
33119 2009-06-30  Bruno Haible  <bruno@clisp.org>
33120
33121         Tests for module 'unicase/ignorable'.
33122         * modules/unicase/ignorable-tests: New file.
33123         * tests/unicase/test-ignorable.c: New file, generated by
33124         gen-uni-tables.
33125
33126         Tests for module 'unicase/cased'.
33127         * modules/unicase/cased-tests: New file.
33128         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33129         * tests/unicase/test-predicate-part1.h: New file, derived from
33130         tests/unictype/test-predicate-part1.h.
33131         * tests/unicase/test-predicate-part2.h: New file, same as
33132         tests/unictype/test-predicate-part2.h.
33133
33134         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33135         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33136         (output_casing_properties): New function.
33137         (main): Call it.
33138         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33139         * lib/unicase/cased.c: Include unictype/bitmap.h.
33140         (uc_is_cased): Define through a bitmap lookup.
33141         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33142         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33143         (uc_is_case_ignorable): Define through a bitmap lookup.
33144         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33145         lib/unictype/bitmap.h.
33146         (Depends-on): Add inline. Clean up.
33147         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33148         lib/unictype/bitmap.h.
33149         (Depends-on): Add inline. Clean up.
33150         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33151         recognition.
33152         * tests/unicase/test-u16-tolower.c (main): Likewise.
33153         * tests/unicase/test-u32-tolower.c (main): Likewise.
33154
33155 2009-06-30  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33158         * lib/unicase/u16-casemap.c: Likewise.
33159         * lib/unicase/u32-casemap.c: Likewise.
33160
33161 2009-06-29  Bruno Haible  <bruno@clisp.org>
33162
33163         Define u32_casefold as a wrapper around u32_ct_casefold.
33164         * lib/unicase/u32-casefold.c: Update.
33165         * modules/unicase/u32-casefold (Depends-on): Add
33166         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33167         unicase/empty-suffix-context. Clean up.
33168
33169         Define u16_casefold as a wrapper around u16_ct_casefold.
33170         * lib/unicase/u16-casefold.c: Update.
33171         * modules/unicase/u16-casefold (Depends-on): Add
33172         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33173         unicase/empty-suffix-context. Clean up.
33174
33175         Define u8_casefold as a wrapper around u8_ct_casefold.
33176         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33177         * lib/unicase/u8-casefold.c: Update.
33178         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33179         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33180
33181         Define u32_totitle as a wrapper around u32_ct_totitle.
33182         * lib/unicase/u32-totitle.c: Update.
33183         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33184         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33185
33186         Define u16_totitle as a wrapper around u16_ct_totitle.
33187         * lib/unicase/u16-totitle.c: Update.
33188         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33189         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33190
33191         Define u8_totitle as a wrapper around u8_ct_totitle.
33192         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33193         functions.
33194         (FUNC): Delegate to U_CT_TOTITLE.
33195         * lib/unicase/u8-totitle.c: Update.
33196         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33197         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33198
33199         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33200         invocation.
33201         * modules/unicase/u32-tolower (Depends-on): Add
33202         unicase/empty-prefix-context, unicase/empty-suffix-context.
33203
33204         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33205         invocation.
33206         * modules/unicase/u16-tolower (Depends-on): Add
33207         unicase/empty-prefix-context, unicase/empty-suffix-context.
33208
33209         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33210         * modules/unicase/u8-tolower (Depends-on): Add
33211         unicase/empty-prefix-context, unicase/empty-suffix-context.
33212
33213         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33214         invocation.
33215         * modules/unicase/u32-toupper (Depends-on): Add
33216         unicase/empty-prefix-context, unicase/empty-suffix-context.
33217
33218         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33219         invocation.
33220         * modules/unicase/u16-toupper (Depends-on): Add
33221         unicase/empty-prefix-context, unicase/empty-suffix-context.
33222
33223         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33224         * modules/unicase/u8-toupper (Depends-on): Add
33225         unicase/empty-prefix-context, unicase/empty-suffix-context.
33226
33227         New module 'unicase/u32-ct-casefold'.
33228         * lib/unicase/u32-ct-casefold.c: New file.
33229         * modules/unicase/u32-ct-casefold: New file.
33230
33231         New module 'unicase/u16-ct-casefold'.
33232         * lib/unicase/u16-ct-casefold.c: New file.
33233         * modules/unicase/u16-ct-casefold: New file.
33234
33235         New module 'unicase/u8-ct-casefold'.
33236         * lib/unicase/u8-ct-casefold.c: New file.
33237         * lib/unicase/u-ct-casefold.h: New file, derived from
33238         lib/unicase/u-casefold.h.
33239         * modules/unicase/u8-ct-casefold: New file.
33240
33241         New module 'unicase/u32-ct-totitle'.
33242         * lib/unicase/u32-ct-totitle.c: New file.
33243         * modules/unicase/u32-ct-totitle: New file.
33244
33245         New module 'unicase/u16-ct-totitle'.
33246         * lib/unicase/u16-ct-totitle.c: New file.
33247         * modules/unicase/u16-ct-totitle: New file.
33248
33249         New module 'unicase/u8-ct-totitle'.
33250         * lib/unicase/u8-ct-totitle.c: New file.
33251         * lib/unicase/u-ct-totitle.h: New file, derived from
33252         lib/unicase/u-totitle.h.
33253         * modules/unicase/u8-ct-totitle: New file.
33254
33255         New module 'unicase/u32-ct-tolower'.
33256         * lib/unicase/u32-ct-tolower.c: New file.
33257         * modules/unicase/u32-ct-tolower: New file.
33258
33259         New module 'unicase/u16-ct-tolower'.
33260         * lib/unicase/u16-ct-tolower.c: New file.
33261         * modules/unicase/u16-ct-tolower: New file.
33262
33263         New module 'unicase/u8-ct-tolower'.
33264         * lib/unicase/u8-ct-tolower.c: New file.
33265         * modules/unicase/u8-ct-tolower: New file.
33266
33267         New module 'unicase/u32-ct-toupper'.
33268         * lib/unicase/u32-ct-toupper.c: New file.
33269         * modules/unicase/u32-ct-toupper: New file.
33270
33271         New module 'unicase/u16-ct-toupper'.
33272         * lib/unicase/u16-ct-toupper.c: New file.
33273         * modules/unicase/u16-ct-toupper: New file.
33274
33275         New module 'unicase/u8-ct-toupper'.
33276         * lib/unicase/u8-ct-toupper.c: New file.
33277         * modules/unicase/u8-ct-toupper: New file.
33278
33279         Add context arguments to u*_casemap functions.
33280         * lib/unicase/unicasemap.h: Include unicase.h.
33281         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33282         suffix_context arguments.
33283         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33284         functions.
33285         (FUNC): Add prefix_context and suffix_context arguments. Use
33286         uc_is_cased and uc_is_case_ignorable.
33287         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33288         * lib/unicase/u16-casemap.c: Likewise.
33289         * lib/unicase/u32-casemap.c: Likewise.
33290         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33291         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33292         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33293         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33294         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33295         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33296
33297         New module 'unicase/u32-suffix-context'.
33298         * lib/unicase/u32-suffix-context.c: New file.
33299         * modules/unicase/u32-suffix-context: New file.
33300
33301         New module 'unicase/u16-suffix-context'.
33302         * lib/unicase/u16-suffix-context.c: New file.
33303         * modules/unicase/u16-suffix-context: New file.
33304
33305         New module 'unicase/u8-suffix-context'.
33306         * lib/unicase/u8-suffix-context.c: New file.
33307         * lib/unicase/u-suffix-context.h: New file.
33308         * modules/unicase/u8-suffix-context: New file.
33309
33310         New module 'unicase/empty-suffix-context'.
33311         * lib/unicase/empty-suffix-context.c: New file.
33312         * modules/unicase/empty-suffix-context: New file.
33313
33314         New module 'unicase/u32-prefix-context'.
33315         * lib/unicase/u32-prefix-context.c: New file.
33316         * modules/unicase/u32-prefix-context: New file.
33317
33318         New module 'unicase/u16-prefix-context'.
33319         * lib/unicase/u16-prefix-context.c: New file.
33320         * modules/unicase/u16-prefix-context: New file.
33321
33322         New module 'unicase/u8-prefix-context'.
33323         * lib/unicase/u8-prefix-context.c: New file.
33324         * lib/unicase/u-prefix-context.h: New file.
33325         * lib/unicase/context.h: New file.
33326         * modules/unicase/u8-prefix-context: New file.
33327
33328         New module 'unicase/empty-prefix-context'.
33329         * lib/unicase/empty-prefix-context.c: New file.
33330         * modules/unicase/empty-prefix-context: New file.
33331
33332         New module 'unicase/ignorable'.
33333         * lib/unicase/ignorable.c: New file.
33334         * modules/unicase/ignorable: New file.
33335
33336         New module 'unicase/cased'.
33337         * lib/unicase/caseprop.h: New file.
33338         * lib/unicase/cased.c: New file.
33339         * modules/unicase/cased: New file.
33340
33341         New functions for case mapping of substrings.
33342         * lib/unicase.h (casing_prefix_context_t): New type.
33343         (unicase_empty_prefix_context): New variable.
33344         (u8_casing_prefix_context, u16_casing_prefix_context,
33345         u32_casing_prefix_context, u8_casing_prefixes_context,
33346         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33347         declarations.
33348         (casing_suffix_context_t): New type.
33349         (unicase_empty_suffix_context): New variable.
33350         (u8_casing_suffix_context, u16_casing_suffix_context,
33351         u32_casing_suffix_context, u8_casing_suffixes_context,
33352         u16_casing_suffixes_context, u32_casing_suffixes_context,
33353         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33354         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33355         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33356         declarations.
33357
33358 2009-06-28  Jim Meyering  <meyering@redhat.com>
33359
33360         boostrap: indent only with spaces
33361         * build-aux/bootstrap: Indent only with spaces, never TABs.
33362
33363         bootstrap: split long lines
33364         * build-aux/bootstrap: Keep line length < 80.
33365
33366         bootstrap: sync from coreutils
33367         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33368         just as autoreconf does.  Verify a list of prerequisite
33369         package-name,version-number pairs if defined in bootstrap.conf.
33370         Refer to README-prereq, if prerequisites are not satisfied.
33371
33372 2009-06-27  Eric Blake  <ebb9@byu.net>
33373
33374         tests: add test for bogus NULL definition
33375         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33376         * tests/test-stdlib.c: Likewise.
33377         * tests/test-string.c: Likewise.
33378         * tests/test-locale.c: Likewise.
33379         * tests/test-unistd.c: Likewise.
33380         * modules/stdio-tests (Depends-on): Add verify.
33381         * modules/stdlib-tests (Depends-on): Likewise.
33382         * modules/string-tests (Depends-on): Likewise.
33383         * modules/locale-tests (Depends-on): Likewise.
33384         * modules/unistd-tests (Depends-on): Likewise.
33385
33386 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33387
33388         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33389         self-explaining comment.
33390         * m4/selinux-selinux-h: Update serial.
33391         (gl_LIBSELINUX): New macro, adding a warning for missing development
33392         packages to code extracted from...
33393         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33394         Add warning for missing development packages here, too.
33395
33396 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33397
33398         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33399
33400 2009-06-25  Eric Blake  <ebb9@byu.net>
33401
33402         version-etc: fix regression
33403         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33404         gcc.
33405         (version_etc): Use it, to catch bugs with trailing NULL.
33406         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33407         (version_etc_va): Fix logic bug.
33408         * modules/version-etc-tests: Add test.
33409         * tests/test-version-etc.c: New file.
33410         * tests/test-version-etc.sh: Likewise.
33411
33412 2009-06-25  Sam Steingold  <sds@gnu.org>
33413
33414         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33415         mbtowc declaration.
33416
33417 2009-06-25  Eric Blake  <ebb9@byu.net>
33418
33419         fpurge: migrate into <stdio.h>
33420         * lib/fpurge.h: Delete...
33421         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33422         * lib/fpurge.c (fpurge): Change declaring header.
33423         * modules/fpurge (Files): Drop deleted file.
33424         (Depends-on): Add stdio.
33425         (configure.ac): Set witness.
33426         * modules/stdio (Makefile.am): Support fpurge macros.
33427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33428         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33429         * lib/fflush.c: Update client.
33430         * tests/test-fpurge.c: Likewise.
33431         * NEWS: Mention the change.
33432
33433 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33434
33435         * lib/argp-version-etc.c (program_authors): Add const
33436         qualifier.
33437         * lib/version-etc.c: Fix typos in the comments.
33438         * modules/argp-version-etc: Depends on version-etc.
33439
33440 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33441
33442         argp-version-etc: new module.
33443
33444         * lib/argp-version-etc.c: New file.
33445         * lib/argp-version-etc.h: New file.
33446         * modules/argp-version-etc: New file.
33447         * modules/argp-version-etc-tests: New file.
33448         * tests/test-argp-version-etc.c: New test.
33449         * tests/test-argp-version-etc-1.sh: New test.
33450
33451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33452
33453         Provide additional interfaces and documentation for version-etc
33454         module.
33455
33456         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33457         interfaces.
33458         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33459         prototypes.
33460
33461 2009-06-24  Bruno Haible  <bruno@clisp.org>
33462
33463         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33464         HAVE_LIB${NAME} macro.
33465         Reported by Sam Steingold <sds@gnu.org>.
33466
33467 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33468
33469         * modules/hash-tests (test_hash_LDADD): Link to libintl when
33470         needed.
33471
33472 2009-06-21  Bruno Haible  <bruno@clisp.org>
33473
33474         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
33475         work.
33476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
33477         together with LIB${NAME}, LTLIB${NAME}.
33478         Reported by Sam Steingold <sds@gnu.org>.
33479
33480 2009-06-20  Jim Meyering  <meyering@redhat.com>
33481
33482         tests: make sc_require_test_exit_idiom more generic
33483         * top/maint.mk (Exit_witness_file): New overridable variable.
33484         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
33485         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
33486
33487 2009-06-19  Jim Meyering  <meyering@redhat.com>
33488
33489         hash: reverse order of src/dst parameters in an internal interface
33490         * lib/hash.c (transfer_entries): Reverse order of parameters to
33491         put DST before SRC.  Adjust callers.
33492
33493         tests: test-hash: avoid wholesale duplication
33494         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
33495         Instead, use a loop and add a single conditional.
33496
33497         tests: test-hash: allow seed selection via a command line argument
33498         * tests/test-hash.c (get_seed): New function.
33499         (main): Use it.
33500
33501 2009-06-19  Eric Blake  <ebb9@byu.net>
33502
33503         hash: avoid memory leak on allocation failure
33504         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
33505         failure.  Factor repeated algorithm...
33506         (transfer_entries): ...into new helper routine.
33507         (hash_delete): React to hash_rehash return value.
33508
33509         hash: reduce memory pressure in hash_rehash no-op case
33510         * lib/hash.c (next_prime): Avoid overflow.
33511         (hash_initialize): Factor bucket size computation...
33512         (compute_bucket_size): ...into new helper function.
33513         (hash_rehash): Use new function and open coding to reduce memory
33514         pressure, and avoid a memory leak in USE_OBSTACK code.
33515         Reported by Jim Meyering.
33516
33517 2009-06-18  Eric Blake  <ebb9@byu.net>
33518
33519         hash: make rotation more obvious
33520         * modules/hash (Depends-on): Add bitrotate and stdint.
33521         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
33522         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
33523         (SIZE_MAX): Rely on headers for definition.
33524         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
33525         (raw_hasher): Use rotr_sz.
33526         Suggested by Jim Meyering.
33527
33528         hash: fix memory leak in last patch
33529         * lib/hash.c (hash_rehash): Avoid memory leak.
33530
33531         hash: avoid no-op rehashing
33532         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
33533
33534         hash: provide default callback functions
33535         * lib/hash.c (raw_hasher, raw_comparator): New functions.
33536         (hash_initialize): Use them as defaults.
33537         * tests/test-hash.c (main): Test this.
33538
33539         hash: minor optimization
33540         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
33541         when possible.
33542         (hash_initialize): Document this promise.
33543         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
33544         * tests/test-hash.c (hash_compare_strings): Test this.
33545
33546 2009-06-18  Bruno Haible  <bruno@clisp.org>
33547
33548         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
33549         going to be replaced anyway.
33550
33551 2009-06-18  Bruno Haible  <bruno@clisp.org>
33552
33553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
33554         in one place.
33555         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
33556         be replaced anyway.
33557
33558 2009-06-18  Eric Blake  <ebb9@byu.net>
33559
33560         hash: check for resize before insertion
33561         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
33562         threshold before insertion, so that a pathological hash_rehash
33563         that fills every bucket can still trigger another rehash.
33564
33565 2009-06-18  Jim Meyering  <meyering@redhat.com>
33566
33567         hash-tests: add a loop around the small tests
33568         * tests/test-hash.c (main): Repeat small tests with selected
33569         small initial table sizes.
33570
33571 2009-06-17  Eric Blake  <ebb9@byu.net>
33572
33573         hash: minor cleanups
33574         * lib/hash.h (hash_entry): Make opaque, by moving...
33575         * lib/hash.c (hash_entry): ...here.
33576         (hash_insert): Clarify restrictions on what can be inserted.
33577         (hash_get_next): Clarify when it is safe to remove an element
33578         during traversal.
33579         (check_tuning): Skip verification when tuning is known safe.
33580         (hash_initialize): Clarify restrictions on tuning.
33581
33582 2009-06-17  Jim Meyering  <jim@meyering.net>
33583         and Eric Blake  <ebb9@byu.net>
33584
33585         hash-tests: new module
33586         * modules/hash-tests: New file.
33587         * tests/test-hash.c: New file.
33588
33589 2009-06-17  Eric Blake  <ebb9@byu.net>
33590
33591         strstr-simple: document new module
33592         * MODULES.html.sh: Document new module.
33593
33594         strstr, strcasestr: replace on platforms with broken memchr
33595         * modules/strstr: Split into...
33596         * modules/strstr-simple: ...new module that does not care about
33597         performance, but does care about glibc bug.
33598         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
33599         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
33600         if platform memchr is broken, per Debian bug 521737.
33601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
33602         memchr.
33603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
33604         * doc/posix-functions/strstr.texi (strstr): Document the fix.
33605         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33606         * modules/mountlist (Depends-on): Add strstr-simple.
33607         * modules/gen-uni-tables (Depends-on): Likewise.
33608         * modules/argz (Depends-on): Add strstr.
33609
33610 2009-06-17  Bruno Haible  <bruno@clisp.org>
33611
33612         * modules/posix_spawn-internal (Depends-on): Add errno.
33613
33614 2009-06-17  Bruno Haible  <bruno@clisp.org>
33615
33616         Define missing ESTALE on Interix 3.5.
33617         * lib/errno.in.h (ESTALE): Assign a value if missing.
33618         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
33619         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
33620         missing.
33621         * doc/posix-headers/errno.texi: Mention the Interix bug.
33622         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
33623
33624 2009-06-15  Eric Blake  <ebb9@byu.net>
33625
33626         memchr, memchr2: add valgrind exception
33627         * lib/memchr.valgrind: New file.
33628         * lib/memchr2.valgrind: New file.
33629         * modules/memchr (Files): Distribute valgrind file.
33630         * modules/memchr2 (Files): Likewise.
33631
33632         docs: memchr is no longer obsolete
33633         * MODULES.html.sh: Move memchr from obsolete to string.h section.
33634         * lib/string.in.h (memchr): Simplify logic.
33635
33636 2009-06-14  Jim Meyering  <meyering@redhat.com>
33637
33638         link-follow: fix the "checking..." message to not mention trailing slash
33639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
33640         never considered trailing slashes.
33641
33642 2009-06-14  Bruno Haible  <bruno@clisp.org>
33643
33644         * m4/memchr.m4: Mention also the bug on IA-64.
33645         * doc/posix-functions/memchr.texi: Likewise.
33646
33647 2009-06-12  Eric Blake  <ebb9@byu.net>
33648
33649         memchr: detect broken x86_64 and alpha implementations
33650         * modules/memchr-tests (Depends-on): Move mmap detection...
33651         * modules/memchr (Depends-on): ...here.
33652         (configure.ac): Set indicator.
33653         * lib/string.in.h (memchr): Declare replacement.
33654         * modules/string (Makefile.am): Trigger replacement.
33655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33656         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
33657         bugs.
33658         * doc/posix-functions/memchr.texi (memchr): Document the bug.
33659         * modules/getpagesize (License): Relax license.
33660
33661 2009-06-11  Bruno Haible  <bruno@clisp.org>
33662
33663         * lib/idpriv.h: Add more references.
33664
33665 2009-06-08  Bruno Haible  <bruno@clisp.org>
33666
33667         Tests for module 'idpriv-droptemp'.
33668         * modules/idpriv-droptemp-tests: New file.
33669         * tests/test-idpriv-droptemp.sh: New file.
33670         * tests/test-idpriv-droptemp.su.sh: New file.
33671         * tests/test-idpriv-droptemp.c: New file.
33672
33673         New module 'idpriv-droptemp'.
33674         * lib/idpriv-droptemp.c: New file.
33675         * modules/idpriv-droptemp: New file.
33676
33677 2009-06-08  Bruno Haible  <bruno@clisp.org>
33678
33679         Tests for module 'idpriv-drop'.
33680         * modules/idpriv-drop-tests: New file.
33681         * tests/test-idpriv-drop.sh: New file.
33682         * tests/test-idpriv-drop.su.sh: New file.
33683         * tests/test-idpriv-drop.c: New file.
33684
33685         New module 'idpriv-drop'.
33686         * lib/idpriv.h: New file.
33687         * lib-idpriv-drop.c: New file.
33688         * m4/idpriv.m4: New file.
33689         * modules/idpriv-drop: New file.
33690
33691 2009-06-08  Bruno Haible  <bruno@clisp.org>
33692
33693         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
33694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33697         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33698         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33699         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33700
33701 2009-06-08  Eric Blake  <ebb9@byu.net>
33702
33703         test-strstr: use memory fence, when possible
33704         * tests/test-strstr.c (main): Use memory fence, in order to be
33705         more likely to trigger Debian bug 521737.
33706         * modules/strstr-tests (Files): Pull in additional files.
33707
33708         memchr: no longer obsolete, for wider field testing
33709         * modules/memchr (Status, Notice): Delete, this module is no
33710         longer obsolete.
33711         * modules/vasnprintf (Depends-on): Add memchr.
33712
33713 2009-06-07  Jim Meyering  <meyering@redhat.com>
33714
33715         hash: declare some functions with the warn_unused_result attribute
33716         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
33717
33718 2009-06-07  Bruno Haible  <bruno@clisp.org>
33719
33720         * tests/test-alignof.c: Don't test int64_t if it does not exist.
33721         Reported by Eric Blake.
33722
33723 2009-06-06  Eric Blake  <ebb9@byu.net>
33724
33725         test-alignof: fix typo with long double
33726         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
33727         compiler error.
33728
33729 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
33730
33731         Escape non-texinfo { and }s.
33732         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
33733         markup error.
33734
33735 2009-06-04  Jim Meyering  <meyering@redhat.com>
33736
33737         gitlog-to-changelog: don't infloop on an empty commit log
33738         * build-aux/gitlog-to-changelog: Warn about an empty log message.
33739         Reported by Boris Petersen <transacid@centerim.org>.
33740
33741 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
33742
33743         version-etc: extend for packagers
33744         Add three new configure options, intended for packagers:
33745           --with-packager="packager name"
33746           --with-packager-version="packager-specific version"
33747           --with-packager-bug-reports="packager bug reporting"
33748         An example with coreutils:
33749           $ ./configure \
33750             --with-packager=Gentoo \
33751             --with-packager-bug-report=http://bugs.gentoo.org/ \
33752             --with-packager-version="patchset 1.6"
33753           $ ./src/ls --version | head -n2
33754           ls (GNU coreutils) 7.1-dirty
33755           Packaged by Gentoo (patchset 1.6)
33756         Note that the bug reporting info via --help doesn't show up because
33757         coreutils uses its own custom emit_bug_reporting_address() implementation
33758         in src/system.h.  If it didn't, it'd look like:
33759           $ ./src/ls --help | tail -n4
33760           Report bugs to <bug-coreutils@gnu.org>.
33761           Report Gentoo bugs to <http://bugs.gentoo.org/>.
33762           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
33763           General help using GNU software: <http://www.gnu.org/gethelp/>.
33764         * lib/version-etc.c: Print new information, if provided.
33765         * m4/version-etc.m4: New file.
33766         * modules/version-etc (Files): Add m4/version-etc.m4.
33767         (configure.ac): Add gl_VERSION_ETC.
33768
33769 2009-05-31  Bruno Haible  <bruno@clisp.org>
33770
33771         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
33772         and 'int64_t'.
33773         * modules/alignof-tests (Dependencies): Add stdint.
33774         Reported by Eric Blake.
33775
33776 2009-05-31  Bruno Haible  <bruno@clisp.org>
33777
33778         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
33779         restriction due to compiler bugs.
33780         Reported by Eric Blake.
33781
33782 2009-05-31  Simon Josefsson  <simon@josefsson.org>
33783             Bruno Haible  <bruno@clisp.org>
33784
33785         Fix test-alignof failure.
33786         * lib/alignof.h (alignof_slot): New macro.
33787         (alignof_type): New macro, with the same semantics as the previous
33788         'alignof'.
33789         (alignof): Alias to alignof_slot.
33790         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
33791         check that the results are usable as constant expressions.
33792
33793 2009-05-31  Bruno Haible  <bruno@clisp.org>
33794
33795         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
33796         * tests/test-memchr.c (main): Check that memchr does not read past the
33797         first occurrence of the byte.
33798         * tests/test-strstr.c (main): Update comment.
33799         Suggested by Eric Blake.
33800
33801 2009-05-30  Bruno Haible  <bruno@clisp.org>
33802
33803         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
33804         detail how to use dumpbin.
33805         Reported by David Byron <dbyron@dbyron.com>.
33806
33807 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33808
33809         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
33810
33811 2009-06-02  Simon Josefsson  <simon@josefsson.org>
33812
33813         * m4/manywarnings.m4: Add GCC 4.4 warnings.
33814
33815 2009-05-28  Bruno Haible  <bruno@clisp.org>
33816
33817         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
33818         build-aux/ files.
33819
33820 2009-05-28  Simon Josefsson  <simon@josefsson.org>
33821
33822         * gnulib-tool (func_import): Transform license on build-aux/ files too.
33823
33824 2009-05-27  Simon Josefsson  <simon@josefsson.org>
33825
33826         * gnulib-tool (sed_transform_main_lib_file)
33827         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
33828         regexps.
33829
33830 2009-05-26  Simon Josefsson  <simon@josefsson.org>
33831
33832         * tests/test-strstr.c: Add another self-test.
33833         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
33834         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
33835
33836 2009-05-23  Bruno Haible  <bruno@clisp.org>
33837
33838         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
33839         change.
33840
33841 2009-05-21  Bruno Haible  <bruno@clisp.org>
33842
33843         Simplify use of mode_t varargs.
33844         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
33845         uses 'mode_t' or 'int'.
33846         * lib/openat.c (openat): Likewise.
33847         * lib/open-safer.c (open_safer): Likewise.
33848         * m4/mode_t.m4: New file.
33849         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
33850         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
33851         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
33852         * modules/open (Files): Add m4/mode_t.m4.
33853         * modules/openat (Files): Likewise.
33854         * modules/fcntl-safer (Files): Likewise.
33855         Suggested by Eric Blake.
33856
33857 2009-05-21  PĂ¡draig Brady  <P@draigbrady.com>
33858
33859         * doc/glibc-functions/fallocate.texi: New file.
33860         * doc/gnulib.texi: Include it.
33861
33862 2009-05-21  Eric Blake  <ebb9@byu.net>
33863             Bruno Haible  <bruno@clisp.org>
33864
33865         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
33866         invocations.
33867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33868
33869 2009-05-21  Eric Blake  <ebb9@byu.net>
33870             Bruno Haible  <bruno@clisp.org>
33871
33872         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
33873         include_next. Fix of 2008-11-20 commit.
33874         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
33875         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
33876         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
33877         NEXT_MATH_H.
33878         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
33879         instead of NEXT_MATH_H.
33880
33881 2009-05-21  Bruno Haible  <bruno@clisp.org>
33882
33883         Avoid redefinition warnings for SIZE_MAX.
33884         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
33885         Reported by Simon Josefsson.
33886
33887 2009-05-21  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
33890         AC_CACHE_VAL.
33891
33892 2009-05-20  Bruno Haible  <bruno@clisp.org>
33893
33894         Make zeroptr.h work on mingw.
33895         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
33896         mprotect.
33897         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
33898         * modules/memchr2-tests (configure.ac): Likewise.
33899         * modules/memcmp-tests (configure.ac): Likewise.
33900         * modules/memmem-tests (configure.ac): Likewise.
33901         * modules/memrchr-tests (configure.ac): Likewise.
33902         Reported by Simon Josefsson.
33903
33904 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33905
33906         * tests/test-glob.c: Include string.h for strcmp prototype.
33907
33908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33909
33910         * modules/getdelim (Depends-on): Add explicit stdint, although it
33911         was implicitly already pulled in via realloc-posix.
33912         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
33913
33914 2009-05-20  Simon Josefsson  <simon@josefsson.org>
33915
33916         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
33917         G. Christensen" <tgc@jupiterrise.com>.
33918         * m4/sys_socket_h.m4: Check for sa_family_t.
33919         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
33920         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
33921         * tests/test-sys_socket.c: Check that sa_family_t works.
33922
33923 2009-05-18  Eric Blake  <ebb9@byu.net>
33924
33925         maint.mk: allow gnulib_dir in VPATH build
33926         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
33927
33928 2009-05-15  Jim Meyering  <meyering@redhat.com>
33929
33930         maint.mk: Give gnulib_dir a default definition.
33931         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
33932         Thus, most packages no longer need to specify this variable in cfg.mk
33933
33934 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
33935
33936         rename.m4: fix typos that would make non-mingw cross-configure fail
33937         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
33938
33939 2009-05-13  Eric Blake  <ebb9@byu.net>
33940
33941         mmap-anon: avoid out-of-order autoconf expansion
33942         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
33943         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
33944         * modules/memchr-tests (Depends-on): Add extensions.
33945         * modules/memchr2-tests (Depends-on): Add extensions.
33946         * modules/memcmp-tests (Depends-on): Add extensions.
33947         * modules/memmem-tests (Depends-on): Add extensions.
33948         * modules/memrchr-tests (Depends-on): Add extensions.
33949
33950 2009-05-13  Bruno Haible  <bruno@clisp.org>
33951
33952         Make some tests ISO C 99 compliant.
33953         * tests/zerosize-ptr.h: New file.
33954         * tests/test-memchr.c: Include zerosize-ptr.h.
33955         (main): Use a zero-size object pointer instead of NULL.
33956         * tests/test-memchr2.c: Include zerosize-ptr.h.
33957         (main): Use a zero-size object pointer instead of NULL.
33958         * tests/test-memcmp.c: Include zerosize-ptr.h.
33959         (main): Use a zero-size object pointer instead of NULL.
33960         * tests/test-memmem.c: Include zerosize-ptr.h.
33961         (main): Use a zero-size object pointer instead of NULL.
33962         * tests/test-memrchr.c: Include zerosize-ptr.h.
33963         (main): Use a zero-size object pointer instead of NULL.
33964         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
33965         m4/mmap-anon.m4.
33966         (Depends-on): Add getpagesize.
33967         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33968         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
33969         m4/mmap-anon.m4.
33970         (Depends-on): Add getpagesize.
33971         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33972         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
33973         m4/mmap-anon.m4.
33974         (Depends-on): Add getpagesize.
33975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33976         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
33977         m4/mmap-anon.m4.
33978         (Depends-on): Add getpagesize.
33979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33980         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
33981         m4/mmap-anon.m4.
33982         (Depends-on): Add getpagesize.
33983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
33984
33985 2009-05-12  Bruno Haible  <bruno@clisp.org>
33986
33987         Tests for module 'alignof'.
33988         * modules/alignof-tests: New file.
33989         * tests/test-alignof.c: New file.
33990
33991 2009-05-12  Bruno Haible  <bruno@clisp.org>
33992
33993         Fix alignof macro.
33994         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
33995         vendor compilers that are always correct.
33996
33997 2009-05-12  Bruno Haible  <bruno@clisp.org>
33998
33999         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34000         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34001         not whether its fully works.
34002
34003 2009-05-12  Bruno Haible  <bruno@clisp.org>
34004
34005         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34006
34007 2009-05-12  Jim Meyering  <meyering@redhat.com>
34008
34009         * top/maint.mk: Adjust backslash alignment.
34010
34011 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34012
34013         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34014
34015 2009-05-11  Eric Blake  <ebb9@byu.net>
34016
34017         argp: avoid undefined behavior
34018         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34019         macros.
34020
34021 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34022
34023         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34024         user.name to prevent git commit from complaining.
34025
34026 2009-05-10  Bruno Haible  <bruno@clisp.org>
34027
34028         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34029         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34030         it rewrites every file name only once.
34031         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34032
34033 2009-05-08  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34036         instead of 'max'.
34037
34038 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34039
34040         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34041         sockaddr_storage test.
34042
34043 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34044
34045         * modules/sys_socket (Makefile.am): Substitute
34046         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34047         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34048         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34049         * tests/test-sys_socket.c: Check sockaddr_storage.
34050
34051 2009-05-08  Bruno Haible  <bruno@clisp.org>
34052
34053         New module 'alignof'.
34054         * lib/alignof.h: New file.
34055         * modules/alignof: New file.
34056
34057 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34058             Bruno Haible  <bruno@clisp.org>
34059
34060         Fix test-file-has-acl on FreeBSD.
34061         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34062         mask is implicitly added.
34063         * tests/test-file-has-acl.c: Include <signal.h>.
34064         (main): Terminate the test after 5 seconds.
34065         * modules/acl-tests (configure.ac): Check for alarm function.
34066
34067 2009-05-04  Bruno Haible  <bruno@clisp.org>
34068
34069         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34071         * modules/errno (configure.ac): Drop AC_REQUIRE.
34072         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34073         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34074
34075 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34076
34077         * modules/glob-tests: New module.
34078         * tests/test-glob.c: Add.
34079
34080 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34081
34082         * modules/fnmatch-tests: New module.
34083         * tests/test-fnmatch.c: Add.
34084
34085 2009-05-04  Eric Blake  <ebb9@byu.net>
34086
34087         maint: make the new no-submodule-changes rule VPATH-safe
34088         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34089
34090 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34091             Bruno Haible  <bruno@clisp.org>
34092
34093         acl: Fix infinite loop on FreeBSD.
34094         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34095         of return value from acl_get_entry.
34096         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34097         Likewise.
34098
34099 2009-05-03  Bruno Haible  <bruno@clisp.org>
34100
34101         * lib/acl-internal.h (acl_entries): Clarify return value.
34102         * lib/acl_entries.c (acl_entries): Likewise.
34103
34104 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34105
34106         Bug fix in acl module.
34107         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34108
34109 2009-05-03  Bruno Haible  <bruno@clisp.org>
34110
34111         Create gperf-generated file in the source dir, not in the build dir.
34112         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34113         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34114         * modules/unicase/locale-language (unicase/locale-languages.h):
34115         Likewise.
34116         * modules/unicase/special-casing (unicase/special-casing-table.h):
34117         Likewise.
34118         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34119         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34120         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34121         Reported by Ralf Wildenhues.
34122
34123 2009-05-03  Bruno Haible  <bruno@clisp.org>
34124
34125         * modules/fnmatch (Description, configure.ac): Taken from
34126         fnmatch-posix.
34127         * modules/fnmatch-posix: Turn into a symbolic reference to the
34128         'fnmatch' module, and deprecate.
34129         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34130
34131 2009-05-03  Bruno Haible  <bruno@clisp.org>
34132
34133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34134         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34135         Reported by Ralf Wildenhues.
34136
34137 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34138
34139         * m4/fnmatch.m4: Fix fnmatch re-define.
34140
34141 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34142
34143         priv-set: new module and tests; adapt write-any-file
34144         * lib/priv-set.c: New file.
34145         * lib/priv-set.h: New file.
34146         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34147         * lib/write-any-file.c: Simplify by using priv-set module.
34148         * m4/priv-set.m4: New file.
34149         * modules/priv-set: New file.
34150         * modules/unlinkdir: Add dependency on priv-set module.
34151         * modules/write-any-file: Likewise.
34152
34153         Tests for module 'priv-set'.
34154         * modules/priv-set-tests: New file.
34155         * tests/test-priv-set.c: New file.
34156
34157 2009-05-03  Jim Meyering  <meyering@redhat.com>
34158             Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34161         use the converted UTF-8 variant of the name instead.
34162
34163 2009-05-03  Jim Meyering  <meyering@redhat.com>
34164
34165         tests: tighten some getdate tests
34166         * tests/test-getdate.c (main): Tighten tests: require equality,
34167         not just greater than.  Set TZ envvar to UTC0.
34168
34169 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34170
34171         getdate: correctly interpret "next monday" when run on a Monday
34172         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34173         that e.g., "next tues" (when run on a tuesday) results in a date
34174         that is one week in the future, and not today's date.
34175         I.e., add a week when the wday is the same as the current one.
34176         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34177         and earlier by Martin Bernreuther and Jan MinĂ¡Å™.
34178         * tests/test-getdate.c (main): Check that "next DAY" is always in
34179         the future and that "last DAY" is always in the past.
34180
34181 2009-05-02  Jim Meyering  <meyering@redhat.com>
34182
34183         build: ensure that a release build fails when a submodule is unclean
34184         * top/maint.mk (no-submodule-changes): New rule.
34185         (alpha beta major): Depend on it.
34186
34187 2009-05-02  Bruno Haible  <bruno@clisp.org>
34188
34189         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34190         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34191         shell variable gl_fnmatch_required to detect which variant is
34192         requested.
34193         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34194         gl_FUNC_FNMATCH_POSIX.
34195         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34196         exclude fnmatch-posix.
34197
34198 2009-05-02  Bruno Haible  <bruno@clisp.org>
34199
34200         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34201         * modules/mbsrtowcs (License): Change to LGPLv2+.
34202         * modules/strnlen1 (License): Likewise.
34203         Reported by Simon Josefsson.
34204
34205 2009-05-02  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34208         "cross".
34209         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34210         gnulib-tool was called with option --source-base=lib.
34211
34212 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34213
34214         Use automake *-local hooks without commands, for extensibility.
34215         * modules/localcharset (Makefile.am): Rename install-exec-local
34216         rule to install-exec-localcharset, and make it a prerequisite of
34217         install-exec-local.  Likewise, rename the uninstall-local rule to
34218         uninstall-localcharset, and make it a prerequisite of the former.
34219
34220 2009-05-01  Bruno Haible  <bruno@clisp.org>
34221
34222         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34223         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34224         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34226         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34227         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34228         m4/locale-zh.m4, m4/codeset.m4.
34229
34230         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34231         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34232         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34233         m4/locale-zh.m4.
34234
34235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34236         REPLACE_WCRTOMB if mbstate_t must be replaced.
34237         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34238         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34239
34240 2009-05-01  Bruno Haible  <bruno@clisp.org>
34241
34242         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34243         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34244         dngettext, dcngettext, textdomain, bindtextdomain,
34245         bind_textdomain_codeset): Undefine before redefining.
34246
34247 2009-04-30  Bruno Haible  <bruno@clisp.org>
34248
34249         Fix bug introduced on 2009-04-25.
34250         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34251         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34252         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34253         is defined.
34254         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34255         is defined.
34256         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34257         is defined.
34258         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34259
34260 2009-04-28  Bruno Haible  <bruno@clisp.org>
34261
34262         Comment tweaks.
34263         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34264         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34265         * lib/unicase.h (u*_casexfrm): Likewise.
34266         Reported by Paolo Bonzini.
34267
34268 2009-04-28  Bruno Haible  <bruno@clisp.org>
34269
34270         Fix a compilation error.
34271         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34272         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34273         Reported by Jim Meyering.
34274
34275 2009-04-27  Bruno Haible  <bruno@clisp.org>
34276
34277         New module 'libunistring'.
34278         * modules/libunistring: New file.
34279         * m4/libunistring.m4: New file.
34280         * MODULES.html.sh (Unicode string functions): Add it.
34281
34282 2009-04-27  Eric Blake  <ebb9@byu.net>
34283
34284         maint.mk: allow package-specific header to provide <config.h>
34285         * top/maint.mk (sc_require_config_h): New variable.
34286         (sc_require_config_h, sc_require_config_h_first): Use it.
34287
34288 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34289
34290         * top/maint.mk (sc_avoid_if_before_free): Except
34291         useless-if-before-free script.
34292
34293 2009-04-27  Eric Blake  <ebb9@byu.net>
34294
34295         maintainer-makefile: depend on all required helper scripts
34296         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34297         useless-if-before-free.
34298         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34299         version, rather than assuming gnulib checkout is available.
34300         Reported by Simen Josefsson.
34301
34302 2009-04-26  Bruno Haible  <bruno@clisp.org>
34303
34304         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34306         "../" or "..".
34307
34308 2009-04-26  Bruno Haible  <bruno@clisp.org>
34309
34310         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34311         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34312         AC_LIB_HAVE_LINKFLAGS.
34313
34314 2009-04-26  Bruno Haible  <bruno@clisp.org>
34315
34316         Simplify calling convention of u*_conv_from_encoding.
34317         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34318         u32_conv_from_encoding): Expect a resultbuf argument and return the
34319         result directly as a pointer.
34320         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34321         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34322         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34323         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34324         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34325         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34326         Update.
34327         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34328         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34329         * lib/vasnprintf.c (VASNPRINTF): Update.
34330         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34331         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34332         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34333         * NEWS: Mention the change.
34334
34335 2009-04-26  Bruno Haible  <bruno@clisp.org>
34336
34337         Simplify calling convention of u*_conv_to_encoding.
34338         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34339         u32_conv_to_encoding): Expect a resultbuf argument and return the
34340         result directly as a pointer.
34341         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34342         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34343         freeing scaled_offsets if mem_iconveha failed.
34344         * lib/unicase/u-casexfrm.h (FUNC): Update.
34345         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34346         * lib/vasnprintf.c (VASNPRINTF): Update.
34347         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34348         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34349         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34350         * NEWS: Mention the change.
34351
34352 2009-04-26  Bruno Haible  <bruno@clisp.org>
34353
34354         Avoid test failures on AIX and OSF/1.
34355         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34356         malloc(0).
34357         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34358         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34359         Likewise.
34360         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34361         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34362         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34363         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34364         * doc/posix-functions/malloc.texi: Document the portability problem
34365         related to malloc(0).
34366
34367 2009-04-26  Bruno Haible  <bruno@clisp.org>
34368
34369         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34370         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34371         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34372
34373 2009-04-25  Bruno Haible  <bruno@clisp.org>
34374
34375         Avoid link error when creating a namespace clean library.
34376         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34377         as macro with arguments if already defined as an alias.
34378         * lib/signbitf.c (gl_signbitf): Don't undefine.
34379         * lib/signbitd.c (gl_signbitd): Don't undefine.
34380         * lib/signbitl.c (gl_signbitl): Don't undefine.
34381
34382 2009-04-25  Jim Meyering  <meyering@redhat.com>
34383
34384         vc-list-files: fix another quoting bug
34385         * build-aux/vc-list-files: Avoid sed backslash expansion
34386         of pathological directory names.
34387
34388 2009-04-25  Eric Blake  <ebb9@byu.net>
34389
34390         vc-list-files: fix shell quoting error
34391         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34392         timestamp.
34393
34394 2009-04-25  Jim Meyering  <meyering@redhat.com>
34395
34396         vc-list-files: restore lost functionality with subdir argument
34397         * build-aux/vc-list-files: When given a non-"." sub-directory
34398         argument, substitute the $dir/ prefix back onto each resulting name.
34399         Otherwise, coreutils' root_tests check would fail.
34400
34401 2009-04-24  Eric Blake  <ebb9@byu.net>
34402
34403         vc-list-files: ignore git symlinks
34404         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34405         than ls-files, to ignore git symlinks.
34406
34407         maint.mk: import improvements from m4
34408         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34409         (move_if_change): Delete unused macro.
34410         (news-date-check, vc-diff-check): Support VPATH builds.
34411         (announcement): Likewise.  Split --bootstrap-tools list...
34412         (boostrap-tools): ...into separate list, which can be overridden
34413         in cfg.mk.
34414         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34415         requiring dependency on useless-if-before-free module.
34416         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34417         Support VPATH builds.
34418
34419 2009-04-24  Jim Meyering  <meyering@redhat.com>
34420
34421         maint.mk: remove coreutils-specific rules and variables
34422         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34423         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34424         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34425
34426         maint.mk: remove obsolete rule
34427         * top/maint.mk (rel-check): Remove rule.
34428         (WGET, WGETFLAGS): Remove now-unused variables.
34429
34430 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34431
34432         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34433         consistency.
34434
34435         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34436         '$(PATH_SEPARATOR)' instead of ':'.
34437
34438 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34439
34440         * lib/getopt1.c (main): Use 'const' for static array.
34441
34442 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34443
34444         * top/maint.mk: Sync with coreutils.
34445         * NEWS: Explain incompatibilities.
34446
34447 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34448             Bruno Haible  <bruno@clisp.org>
34449
34450         Fix cross-compilation results.
34451         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34452         statement, as third argument of AC_TRY_RUN.
34453         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34454         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34455         Likewise.
34456         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34457         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34458         Likewise.
34459         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34461         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34462
34463 2009-04-20  Bruno Haible  <bruno@clisp.org>
34464
34465         Avoid test failure on mingw.
34466         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34467
34468 2009-04-20  Bruno Haible  <bruno@clisp.org>
34469
34470         Avoid compilation error on mingw.
34471         * modules/localename-tests (Depends-on): Add locale.
34472
34473 2009-04-19  Bruno Haible  <bruno@clisp.org>
34474
34475         Support for building a shared library on Windows platforms.
34476         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
34477         (main): Test the presence of UNINORM_NFC here.
34478         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
34479         (main): Test the presence of UNINORM_NFD here.
34480         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
34481         (main): Test the presence of UNINORM_NFKC here.
34482         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
34483         (main): Test the presence of UNINORM_NFKD here.
34484
34485 2009-04-19  Bruno Haible  <bruno@clisp.org>
34486
34487         Avoid a compiler warning.
34488         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
34489         Change type of variable 'sequence'.
34490
34491 2009-04-19  Bruno Haible  <bruno@clisp.org>
34492
34493         * modules/configmake (Makefile.am): When the contents of configmake.h
34494         does not change, arrange to preserve its modification time.
34495
34496 2009-04-17  Simon Josefsson  <simon@josefsson.org>
34497
34498         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
34499         gettext domain.
34500
34501 2009-04-16  Jim Meyering  <meyering@redhat.com>
34502
34503         useless-if-before-free: improve conversion code
34504         * build-aux/useless-if-before-free: Adjust code-in-comment to match
34505         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
34506
34507 2009-04-14  Bruno Haible  <bruno@clisp.org>
34508
34509         * modules/fcntl (Depends-on): Add extensions.
34510         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
34511
34512 2009-04-12  Ben Pfaff  <blp@gnu.org>
34513
34514         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
34515         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
34516
34517 2009-03-20  Ben Pfaff  <blp@gnu.org>
34518
34519         Make rename replace existing destinations on Windows.
34520         * m4/rename.m4: Add test for Mingw.
34521         * lib/rename.c: Add rename replacement that uses MoveFileEx with
34522         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
34523         * doc/posix-functions/rename.texi: Document.
34524
34525 2009-04-10  Bruno Haible  <bruno@clisp.org>
34526
34527         New include file "iconveh.h".
34528         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
34529         * lib/striconveh.h: Include it.
34530         (enum iconv_ilseq_handler): Remove definition.
34531         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
34532         striconveh.h.
34533         * lib/striconveha.c: Include striconveh.h.
34534         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
34535         * modules/striconveh (Files): Add lib/iconveh.h.
34536         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
34537         lib/striconveh.h.
34538
34539 2009-04-10  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/uniconv.h: Update comment.
34542
34543 2009-04-10  Bruno Haible  <bruno@clisp.org>
34544
34545         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
34546         always.
34547         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34548         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34549         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34550         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
34551         "unistring-notinline.h", so that the function gets defined always.
34552         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34553         * lib/unistr/u8-uctomb.c: Likewise.
34554         * lib/unistr/u16-mbtouc.c: Likewise.
34555         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34556         * lib/unistr/u16-uctomb.c: Likewise.
34557         * lib/unistr/u32-mbtouc.c: Likewise.
34558         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34559         * lib/unistr/u32-uctomb.c: Likewise.
34560
34561 2009-04-10  Bruno Haible  <bruno@clisp.org>
34562
34563         Mark 'utime' obsolete.
34564         * modules/utime (Status, Notice): New sections.
34565         Suggested by Jim Meyering.
34566
34567         Fix cross-compile guess for utime test.
34568         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
34569         autoconf.
34570         * doc/posix-functions/utime.texi: Give more precisions.
34571         Reported by Jan <ipif@ymail.com>.
34572
34573 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
34574
34575         filevercmp: correct today's change
34576         * lib/filevercmp.c: Also handle coreutils' test inputs.
34577         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
34578
34579         Fix regression in 'filevercmp' module. Thanks Sven Joachim
34580         for reporting it.
34581         * lib/filevercmp.c: Special handle for "", "." and "..".
34582         * tests/test-filevercmp.c: Enlarge the set suite.
34583
34584 2009-04-07  Jim Meyering  <meyering@redhat.com>
34585
34586         useless-if-before-free: show how to remove braced useless free, too
34587         * build-aux/useless-if-before-free: still only in a comment, though.
34588
34589 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
34590
34591         maint.mk: import changes to syntax-check macros from coreutils
34592         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
34593         Use them in the relevant macros.
34594
34595 2009-04-06  Bruno Haible  <bruno@clisp.org>
34596
34597         Fix unportable use of bit-fields.
34598         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
34599         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
34600         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
34601
34602 2009-04-06  Bruno Haible  <bruno@clisp.org>
34603
34604         Avoid test failures on AIX and OSF/1.
34605         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
34606         that malloc(0) = NULL.
34607         * tests/unicase/test-u8-tolower.c (check): Likewise.
34608         * tests/unicase/test-u8-totitle.c (check): Likewise.
34609         * tests/unicase/test-u8-toupper.c (check): Likewise.
34610         * tests/unicase/test-u16-casefold.c (check): Likewise.
34611         * tests/unicase/test-u16-tolower.c (check): Likewise.
34612         * tests/unicase/test-u16-totitle.c (check): Likewise.
34613         * tests/unicase/test-u16-toupper.c (check): Likewise.
34614         * tests/unicase/test-u32-casefold.c (check): Likewise.
34615         * tests/unicase/test-u32-tolower.c (check): Likewise.
34616         * tests/unicase/test-u32-totitle.c (check): Likewise.
34617         * tests/unicase/test-u32-toupper.c (check): Likewise.
34618         * tests/uninorm/test-u8-nfc.c (check): Likewise.
34619         * tests/uninorm/test-u8-nfd.c (check): Likewise.
34620         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
34621         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
34622         * tests/uninorm/test-u16-nfc.c (check): Likewise.
34623         * tests/uninorm/test-u16-nfd.c (check): Likewise.
34624         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
34625         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
34626         * tests/uninorm/test-u32-nfc.c (check): Likewise.
34627         * tests/uninorm/test-u32-nfd.c (check): Likewise.
34628         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
34629         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
34630
34631 2009-04-05  Bruno Haible  <bruno@clisp.org>
34632
34633         Work around an autoconf limitation.
34634         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
34635         comment line if it would be longer than 3 KB.
34636
34637 2009-04-05  Bruno Haible  <bruno@clisp.org>
34638
34639         Avoid test failure with libiconv-1.13.
34640         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
34641         of the expected test results.
34642
34643 2009-04-05  Bruno Haible  <bruno@clisp.org>
34644
34645         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
34646         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
34647         that it should be installed.
34648
34649 2009-04-05  Bruno Haible  <bruno@clisp.org>
34650
34651         * gnulib-tool: New option --copy-file.
34652         (func_usage): Document it.
34653         (func_dest_tmpfilename): Moved out of func_import.
34654         (func_add_file, func_update_file): New functions, extracted from
34655         func_import.
34656         (func_import): Update.
34657
34658 2009-04-05  Karl Berry  <karl@gnu.org>
34659
34660         * README: prominently mention gnulib-tool.
34661         Rearrange sections so getting the code is near the top.
34662
34663 2009-04-05  Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/unicase.h: Mention u*_cmp2.
34666         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34667         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
34668         * lib/unicase/ulc-casecmp.c: Likewise.
34669         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
34670         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
34671         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
34672         unistr/u8-cmp.
34673         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
34674         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
34675         unistr/u16-cmp.
34676         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
34677         unistr/u32-cmp.
34678
34679         * lib/uninorm.h: Mention u*_cmp2.
34680         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
34681         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
34682         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
34683         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
34684         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
34685         unistr/u8-cmp.
34686         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
34687         unistr/u16-cmp.
34688         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
34689         unistr/u32-cmp.
34690
34691         New module 'unistr/u32-cmp2'.
34692         * lib/unistr/u32-cmp2.c: New file.
34693         * modules/unistr/u32-cmp2: New file.
34694
34695         New module 'unistr/u16-cmp2'.
34696         * lib/unistr/u16-cmp2.c: New file.
34697         * modules/unistr/u16-cmp2: New file.
34698
34699         New module 'unistr/u8-cmp2'.
34700         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
34701         * lib/unistr/u8-cmp2.c: New file.
34702         * lib/unistr/u-cmp2.h: New file.
34703         * modules/unistr/u8-cmp2: New file.
34704
34705 2009-04-05  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/unictype.h (uc_property_is_valid): New macro.
34708         * tests/unictype/test-pr_byname.c (main): Use it.
34709
34710         * lib/unistr.h: Doc fixes.
34711         * lib/uniconv.h: Doc fixes.
34712         * lib/unictype.h: Doc fixes.
34713
34714 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
34715
34716         Port coreutils 7.2 to Solaris 8.
34717
34718         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
34719         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
34720         for Solaris 8.  This is a bit of a hack, as it means it's the
34721         caller's responsibility to add -lnsl if needed, but most likely it
34722         won't be needed since only getaddrinfo uses this and getaddrinfo
34723         isn't needed on Solaris 8.
34724
34725         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
34726         problem to Solaris 8 encountered with coreutils 7.2, which
34727         resulted in a message "fnmatch.c:292: warning: passing argument 4
34728         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
34729         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
34730
34731 2009-04-03  Simon Josefsson  <simon@josefsson.org>
34732
34733         * m4/ld-version-script.m4: Add FIXME comment.
34734
34735 2009-04-02  Simon Josefsson  <simon@josefsson.org>
34736
34737         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
34738         SOVERSION variable.
34739
34740 2009-04-02  Bruno Haible  <bruno@clisp.org>
34741
34742         * Makefile (info, html, dvi, pdf): Combine the rules.
34743         Suggested by Jim Meyering.
34744
34745 2009-04-01  Bruno Haible  <bruno@clisp.org>
34746
34747         * Makefile (info, html, dvi, pdf): New targets.
34748         Reported by Reuben Thomas <rrt@sc3d.org>.
34749
34750 2009-04-01  Bruno Haible  <bruno@clisp.org>
34751
34752         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
34753         can be put into PATH.
34754         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
34755
34756 2009-04-01  Bruno Haible  <bruno@clisp.org>
34757
34758         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
34759
34760 2009-04-01  Bruno Haible  <bruno@clisp.org>
34761
34762         Rename module 'visibility'.
34763         * modules/lib-symbol-visibility: Renamed from modules/visibility.
34764         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
34765         * doc/gnulib.texi: Update.
34766         * MODULES.html.sh (Misc): Update.
34767         * NEWS: Mention the change.
34768
34769 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34770
34771         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
34772         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
34773         Eric Blake <ebb9@byu.net> for review.
34774         * MODULES.html.sh: Add lib-msvc-compat.
34775         * doc/gnulib.texi: Link to new section.
34776         * m4/ld-output-def.m4: New file.
34777         * doc/ld-output-def.texi: New file.
34778
34779 2009-04-01  Simon Josefsson  <simon@josefsson.org>
34780
34781         Rename ld-version-script to lib-symbol-versions.  Suggested by
34782         Bruno Haible <bruno@clisp.org>.
34783         * modules/ld-version-script: Renamed to lib-symbol-versions.
34784         * doc/ld-version-script.texi: Fix module name.
34785         * MODULES.html.sh: Add lib-symbol-versions.
34786
34787 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34788
34789         * modules/u64-tests: New file.
34790         * tests/test-u64.c: New file.
34791
34792 2009-03-04  Simon Josefsson  <simon@josefsson.org>
34793
34794         * MODULES.html.sh: Mention u64.
34795         * modules/u64: New module.
34796         * modules/crypto/sha512: Depend on u64 module instead of providing
34797         u64.h.
34798
34799 2009-03-27  Eric Blake  <ebb9@byu.net>
34800
34801         test-strerror: make debugging EAI_SYSTEM easier
34802         * modules/getaddrinfo-tests (Depends-on): Add strerror.
34803         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
34804         failure was EAI_SYSTEM.
34805
34806 2009-03-25  Bruno Haible  <bruno@clisp.org>
34807
34808         Fix a problem with --enable-relocatable on Solaris 7.
34809         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
34810         since 2008-02-24.
34811
34812 2009-03-25  Eric Blake  <ebb9@byu.net>
34813
34814         test-sockets: avoid gcc warning
34815         * tests/test-sockets.c (main): Silence compiler warning.
34816
34817 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
34818
34819         New modules nproc, pthread, contributed by Glen Lenker.
34820
34821         * MODULES.html.sh: Add pthread, nproc.
34822         * lib/nproc.c: New file.
34823         * lib/nproc.h: New file.
34824         * lib/pthread.in.h: New file.
34825         * m4/pthread.m4: New file.
34826         * modules/nproc: New file.
34827         * modules/pthread: New file.
34828
34829 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34830
34831         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
34832         New variable.
34833
34834 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
34835
34836         filevercmp: handle simple~ and numbered.~3~ backup suffixes
34837         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
34838         * tests/test-filevercmp.c: Add tests for backup suffixes.
34839
34840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34841
34842         * modules/stdlib (Depends-on): Add stdint, needed when defining
34843         struct random_data on, for example, HP-UX 10.20.  Reported by
34844         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34845
34846 2009-03-24  Simon Josefsson  <simon@josefsson.org>
34847
34848         * lib/readline.c (readline): Call fflush on stdout after printing
34849         prompt.
34850
34851 2009-03-20  Bruno Haible  <bruno@clisp.org>
34852
34853         Remove dependency from 'close' module to -lws2_32 on native Windows.
34854         * lib/close-hook.h: New file.
34855         * lib/close-hook.c: New file.
34856         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
34857         w32sock.h.
34858         (_gl_close_fd_maybe_socket): Remove function.
34859         (rpl_close): Invoke execute_all_close_hooks instead of
34860         _gl_close_fd_maybe_socket.
34861         * lib/sockets.c: Include close-hook.h, w32sock.h.
34862         (close_fd_maybe_socket): New function, essentially from lib/close.c.
34863         (close_sockets_hook): New variable.
34864         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
34865         (gl_sockets_cleanup): Unregister it.
34866         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
34867         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
34868         * modules/close-hook: New file.
34869         * modules/close (Files): Remove lib/w32sock.h.
34870         (Depends-on): Add close-hook.
34871         (Link): Remove section.
34872         * modules/sockets (Files): Add lib/w32sock.h.
34873         (Depends-on): Add close-hook.
34874         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
34875         invocation.
34876         * NEWS: Mention that LIB_CLOSE is gone.
34877
34878 2009-03-23  Eric Blake  <ebb9@byu.net>
34879
34880         signal-tests: test previous patch
34881         * tests/test-signal.c: New file.
34882         * modules/signal-tests: Likewise.
34883
34884         signal.h: always support 'volatile sig_atomic_t'
34885         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
34886         (gl_SIGNAL_H_DEFAULTS): Add a default.
34887         * modules/signal (Makefile.am): Substitute if needed.
34888         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
34889         users can blindly add volatile.
34890         * doc/posix-headers/signal.texi (signal.h): Document it.
34891         Reported by Matthew Woehlke.
34892
34893 2009-03-23  Jim Meyering  <meyering@redhat.com>
34894
34895         pathmax: PATH_MAX: use pathconf only when available
34896         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
34897         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
34898         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
34899         This avoids a link failure in a PSP cross-compilation environment
34900         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
34901
34902         * lib/vasnprintf.c (divide): Fix typo in comment.
34903
34904 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34905
34906         * gnulib-tool (func_filter_filelist): Fix comment.
34907
34908 2009-03-20  Bruno Haible  <bruno@clisp.org>
34909
34910         Make sockets.h self-contained.
34911         * lib/sockets.c: Include sockets.h first.
34912         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
34913
34914 2009-03-19  Eric Blake  <ebb9@byu.net>
34915
34916         doc: mention more functions added in cygwin 1.7.0
34917         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
34918         addition.
34919         * doc/posix-functions/log2f.texi: Likewise.
34920
34921 2009-03-19  Jim Meyering  <meyering@redhat.com>
34922
34923         fsusage: avoid syntax error due to statement-before-declaration
34924         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
34925         after all declarations.  Reported by Matthew Woehlke in
34926         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
34927
34928 2009-03-18  Eric Blake  <ebb9@byu.net>
34929
34930         build-aux/compile: sync from automake
34931         * build-aux/compile: New file, from automake.
34932         * config/srclist.txt: Mention build-aux/compile.
34933
34934 2009-03-17  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/git-merge-changelog.c: Fix typo in comment.
34937         Reported by Reuben Thomas <rrt@sc3d.org>.
34938
34939 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
34940
34941         * m4/regex.m4: update and improve help for
34942         --without-included-regex.
34943
34944 2009-03-17  Simon Josefsson  <simon@josefsson.org>
34945
34946         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
34947         failure on missing include files.
34948
34949 2009-03-17  Eric Blake  <ebb9@byu.net>
34950
34951         doc: mention more functions added in cygwin 1.7.0
34952         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
34953         addition.
34954         * doc/posix-functions/fwscanf.texi: Likewise.
34955         * doc/posix-functions/swprintf.texi: Likewise.
34956         * doc/posix-functions/swscanf.texi: Likewise.
34957         * doc/posix-functions/vfwprintf.texi: Likewise.
34958         * doc/posix-functions/vfwscanf.texi: Likewise.
34959         * doc/posix-functions/vswprintf.texi: Likewise.
34960         * doc/posix-functions/vswscanf.texi: Likewise.
34961         * doc/posix-functions/vwprintf.texi: Likewise.
34962         * doc/posix-functions/vwscanf.texi: Likewise.
34963         * doc/posix-functions/wcscasecmp.texi: Likewise.
34964         * doc/posix-functions/wcsdup.texi: Likewise.
34965         * doc/posix-functions/wcsftime.texi: Likewise.
34966         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34967         * doc/posix-functions/wprintf.texi: Likewise.
34968         * doc/posix-functions/wscanf.texi: Likewise.
34969         * doc/glibc-functions/gethostbyname2.texi: Likewise.
34970
34971 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34972
34973         maint.mk: really add $(AM_MAKEFLAGS)
34974         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
34975         was inadvertently omitted in the last commit.
34976         Spotted by Bruno Haible.
34977
34978         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
34979         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
34980         $(AM_MAKEFLAGS)' rather than plain `make'.
34981
34982         gnulib-tool: execute $MAKE not make
34983         * gnulib-tool: Default $MAKE to 'make'.
34984         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
34985         than make.  Initialize $MAKE in the do-autobuild script.
34986
34987         gnulib-tool: use $MAKE not make in generated files
34988         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
34989         make, in generated files.  Initialize $MAKE in the do-autobuild
34990         script.
34991
34992         * top/GNUmakefile (_have-git-version-gen): Fix typo.
34993
34994         GNUmakefile: disable parallelism only for multiple, recursive targets
34995         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
34996         additions in the Makefile.
34997         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
34998         by Automake.
34999         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35000         are listed on the command line and at least one of them is
35001         listed in $(ALL_RECURSIVE_TARGETS).
35002
35003 2009-03-14  Bruno Haible  <bruno@clisp.org>
35004
35005         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35006         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35007         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35008         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35009         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35010         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35011         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35012         unistr/u8-uctomb.
35013         * modules/unistr/u8-strchr (Depends-on): Likewise.
35014         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35015         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35016         unistr/u16-uctomb.
35017         * modules/unistr/u16-strchr (Depends-on): Likewise.
35018         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35019
35020 2009-03-12  Bruno Haible  <bruno@clisp.org>
35021
35022         Work around select() bug on Interix 3.5.
35023         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35024         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35025         * m4/select.m4: New file.
35026         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35027         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35028         * modules/select (Files): Add m4/select.m4.
35029         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35030         * modules/nanosleep (Depends-on): Add select.
35031         * modules/poll (Depends-on): Likewise.
35032         * doc/posix-functions/select.texi: Mention the Interix bug.
35033         Reported by Markus Duft <mduft@gentoo.org>.
35034
35035         * lib/select.c: Renamed from lib/winsock-select.c.
35036         * modules/select (Files): Add lib/select.c, remove
35037         lib/winsock-select.c.
35038         (configure.ac): Update.
35039
35040 2009-03-12  Jim Meyering  <meyering@redhat.com>
35041
35042         avoid gcc warnings about unused macro definitions
35043         * lib/readtokens.c (STREQ): Remove unused definition.
35044         * lib/xmalloc.c (SIZE_MAX): Likewise.
35045         * lib/openat-die.c (N_): Likewise.
35046         * lib/mountlist.c (SIZE_MAX): Remove definition.
35047         Instead, include <stdint.h>.
35048         * lib/readutmp.c: Likewise.
35049         * modules/readutmp (Depends-on): Add stdint.
35050         * modules/mountlist (Depends-on): Add stdint.
35051         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35052
35053 2009-03-10  Bruno Haible  <bruno@clisp.org>
35054
35055         Tests for module 'mbmemcasecoll'.
35056         * modules/mbmemcasecoll-tests: New file.
35057         * tests/test-mbmemcasecoll1.sh: New file.
35058         * tests/test-mbmemcasecoll2.sh: New file.
35059         * tests/test-mbmemcasecoll3.sh: New file.
35060         * tests/test-mbmemcasecoll.c: New file.
35061
35062         New module 'mbmemcasecoll'.
35063         * lib/mbmemcasecoll.h: New file.
35064         * lib/mbmemcasecoll.c: New file.
35065         * modules/mbmemcasecoll: New file.
35066
35067         * tests/test-mbmemcasecmp.h: New file, extracted from
35068         tests/test-mbmemcasecmp.c.
35069         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35070         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35071         (main): Update.
35072         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35073
35074 2009-03-09  Bruno Haible  <bruno@clisp.org>
35075
35076         Tests for module 'mbmemcasecmp'.
35077         * modules/mbmemcasecmp-tests: New file.
35078         * tests/test-mbmemcasecmp1.sh: New file.
35079         * tests/test-mbmemcasecmp2.sh: New file.
35080         * tests/test-mbmemcasecmp3.sh: New file.
35081         * tests/test-mbmemcasecmp.c: New file.
35082
35083         New module 'mbmemcasecmp'.
35084         * lib/mbmemcasecmp.h: New file.
35085         * lib/mbmemcasecmp.c: New file.
35086         * modules/mbmemcasecmp: New file.
35087
35088 2009-03-09  Bruno Haible  <bruno@clisp.org>
35089
35090         Tests for module 'unicase/ulc-casecoll'.
35091         * modules/unicase/ulc-casecoll-tests: New file.
35092         * tests/unicase/test-ulc-casecoll1.sh: New file.
35093         * tests/unicase/test-ulc-casecoll2.sh: New file.
35094         * tests/unicase/test-ulc-casecoll.c: New file.
35095
35096         New module 'unicase/ulc-casecoll'.
35097         * lib/unicase.h (ulc_casecoll): New declaration.
35098         * lib/unicase/ulc-casecoll.c: New file.
35099         * modules/unicase/ulc-casecoll: New file.
35100
35101         New module 'unicase/ulc-casexfrm'.
35102         * lib/unicase.h (ulc_casexfrm): New declaration.
35103         * lib/unicase/ulc-casexfrm.c: New file.
35104         * modules/unicase/ulc-casexfrm: New file.
35105
35106 2009-03-09  Bruno Haible  <bruno@clisp.org>
35107
35108         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35109         invocations.
35110
35111         * m4/mbscasecmp.m4: Remove file.
35112         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35113         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35114
35115         * m4/mbscasestr.m4: Remove file.
35116         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35117         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35118
35119         * m4/mbschr.m4: Remove file.
35120         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35121         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35122
35123         * m4/mbscspn.m4: Remove file.
35124         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35125         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35126
35127         * m4/mbslen.m4: Remove file.
35128         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35129         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35130
35131         * m4/mbsncasecmp.m4: Remove file.
35132         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35133         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35134
35135         * m4/mbsnlen.m4: Remove file.
35136         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35137         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35138
35139         * m4/mbspbrk.m4: Remove file.
35140         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35141         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35142
35143         * m4/mbspcasecmp.m4: Remove file.
35144         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35145         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35146
35147         * m4/mbsrchr.m4: Remove file.
35148         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35149         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35150
35151         * m4/mbssep.m4: Remove file.
35152         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35153         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35154
35155         * m4/mbsspn.m4: Remove file.
35156         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35157         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35158
35159         * m4/mbsstr.m4: Remove file.
35160         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35161         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35162
35163         * m4/mbstok_r.m4: Remove file.
35164         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35165         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35166
35167         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35168
35169         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35170         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35171
35172         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35173
35174 2009-03-08  Bruno Haible  <bruno@clisp.org>
35175
35176         Tests for module 'unicase/ulc-casecmp'.
35177         * modules/unicase/ulc-casecmp-tests: New file.
35178         * tests/unicase/test-ulc-casecmp1.sh: New file.
35179         * tests/unicase/test-ulc-casecmp2.sh: New file.
35180         * tests/unicase/test-ulc-casecmp.c: New file.
35181
35182         New module 'unicase/ulc-casecmp'.
35183         * lib/unicase.h (ulc_casecmp): New declaration.
35184         * lib/unicase/ulc-casecmp.c: New file.
35185         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35186         'const SRC_UNIT *'.
35187         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35188         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35189         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35190         * modules/unicase/ulc-casecmp: New file.
35191
35192         Tests for module 'unicase/u32-is-cased'.
35193         * modules/unicase/u32-is-cased-tests: New file.
35194         * tests/unicase/test-u32-is-cased.c: New file.
35195
35196         Tests for module 'unicase/u16-is-cased'.
35197         * modules/unicase/u16-is-cased-tests: New file.
35198         * tests/unicase/test-u16-is-cased.c: New file.
35199
35200         Tests for module 'unicase/u8-is-cased'.
35201         * modules/unicase/u8-is-cased-tests: New file.
35202         * tests/unicase/test-u8-is-cased.c: New file.
35203         * tests/unicase/test-is-cased.h: New file.
35204
35205         New module 'unicase/u32-is-cased'.
35206         * lib/unicase/u32-is-cased.c: New file.
35207         * modules/unicase/u32-is-cased: New file.
35208
35209         New module 'unicase/u16-is-cased'.
35210         * lib/unicase/u16-is-cased.c: New file.
35211         * modules/unicase/u16-is-cased: New file.
35212
35213         New module 'unicase/u8-is-cased'.
35214         * lib/unicase/u8-is-cased.c: New file.
35215         * lib/unicase/u-is-cased.h: New file.
35216         * modules/unicase/u8-is-cased: New file.
35217
35218         Tests for module 'unicase/u32-is-casefolded'.
35219         * modules/unicase/u32-is-casefolded-tests: New file.
35220         * tests/unicase/test-u32-is-casefolded.c: New file.
35221
35222         Tests for module 'unicase/u16-is-casefolded'.
35223         * modules/unicase/u16-is-casefolded-tests: New file.
35224         * tests/unicase/test-u16-is-casefolded.c: New file.
35225
35226         Tests for module 'unicase/u8-is-casefolded'.
35227         * modules/unicase/u8-is-casefolded-tests: New file.
35228         * tests/unicase/test-u8-is-casefolded.c: New file.
35229         * tests/unicase/test-is-casefolded.h: New file.
35230
35231         New module 'unicase/u32-is-casefolded'.
35232         * lib/unicase/u32-is-casefolded.c: New file.
35233         * modules/unicase/u32-is-casefolded: New file.
35234
35235         New module 'unicase/u16-is-casefolded'.
35236         * lib/unicase/u16-is-casefolded.c: New file.
35237         * modules/unicase/u16-is-casefolded: New file.
35238
35239         New module 'unicase/u8-is-casefolded'.
35240         * lib/unicase/u8-is-casefolded.c: New file.
35241         * modules/unicase/u8-is-casefolded: New file.
35242
35243         Tests for module 'unicase/u32-is-titlecase'.
35244         * modules/unicase/u32-is-titlecase-tests: New file.
35245         * tests/unicase/test-u32-is-titlecase.c: New file.
35246
35247         Tests for module 'unicase/u16-is-titlecase'.
35248         * modules/unicase/u16-is-titlecase-tests: New file.
35249         * tests/unicase/test-u16-is-titlecase.c: New file.
35250
35251         Tests for module 'unicase/u8-is-titlecase'.
35252         * modules/unicase/u8-is-titlecase-tests: New file.
35253         * tests/unicase/test-u8-is-titlecase.c: New file.
35254         * tests/unicase/test-is-titlecase.h: New file.
35255
35256         New module 'unicase/u32-is-titlecase'.
35257         * lib/unicase/u32-is-titlecase.c: New file.
35258         * modules/unicase/u32-is-titlecase: New file.
35259
35260         New module 'unicase/u16-is-titlecase'.
35261         * lib/unicase/u16-is-titlecase.c: New file.
35262         * modules/unicase/u16-is-titlecase: New file.
35263
35264         New module 'unicase/u8-is-titlecase'.
35265         * lib/unicase/u8-is-titlecase.c: New file.
35266         * modules/unicase/u8-is-titlecase: New file.
35267
35268         Tests for module 'unicase/u32-is-lowercase'.
35269         * modules/unicase/u32-is-lowercase-tests: New file.
35270         * tests/unicase/test-u32-is-lowercase.c: New file.
35271
35272         Tests for module 'unicase/u16-is-lowercase'.
35273         * modules/unicase/u16-is-lowercase-tests: New file.
35274         * tests/unicase/test-u16-is-lowercase.c: New file.
35275
35276         Tests for module 'unicase/u8-is-lowercase'.
35277         * modules/unicase/u8-is-lowercase-tests: New file.
35278         * tests/unicase/test-u8-is-lowercase.c: New file.
35279         * tests/unicase/test-is-lowercase.h: New file.
35280
35281         New module 'unicase/u32-is-lowercase'.
35282         * lib/unicase/u32-is-lowercase.c: New file.
35283         * modules/unicase/u32-is-lowercase: New file.
35284
35285         New module 'unicase/u16-is-lowercase'.
35286         * lib/unicase/u16-is-lowercase.c: New file.
35287         * modules/unicase/u16-is-lowercase: New file.
35288
35289         New module 'unicase/u8-is-lowercase'.
35290         * lib/unicase/u8-is-lowercase.c: New file.
35291         * modules/unicase/u8-is-lowercase: New file.
35292
35293         Tests for module 'unicase/u32-is-uppercase'.
35294         * modules/unicase/u32-is-uppercase-tests: New file.
35295         * tests/unicase/test-u32-is-uppercase.c: New file.
35296
35297         Tests for module 'unicase/u16-is-uppercase'.
35298         * modules/unicase/u16-is-uppercase-tests: New file.
35299         * tests/unicase/test-u16-is-uppercase.c: New file.
35300
35301         Tests for module 'unicase/u8-is-uppercase'.
35302         * modules/unicase/u8-is-uppercase-tests: New file.
35303         * tests/unicase/test-u8-is-uppercase.c: New file.
35304         * tests/unicase/test-is-uppercase.h: New file.
35305
35306         New module 'unicase/u32-is-uppercase'.
35307         * lib/unicase/u32-is-uppercase.c: New file.
35308         * modules/unicase/u32-is-uppercase: New file.
35309
35310         New module 'unicase/u16-is-uppercase'.
35311         * lib/unicase/u16-is-uppercase.c: New file.
35312         * modules/unicase/u16-is-uppercase: New file.
35313
35314         New module 'unicase/u8-is-uppercase'.
35315         * lib/unicase/u8-is-uppercase.c: New file.
35316         * modules/unicase/u8-is-uppercase: New file.
35317
35318         New module 'unicase/u32-is-invariant'.
35319         * lib/unicase/u32-is-invariant.c: New file.
35320         * modules/unicase/u32-is-invariant: New file.
35321
35322         New module 'unicase/u16-is-invariant'.
35323         * lib/unicase/u16-is-invariant.c: New file.
35324         * modules/unicase/u16-is-invariant: New file.
35325
35326         New module 'unicase/u8-is-invariant'.
35327         * lib/unicase/u8-is-invariant.c: New file.
35328         * lib/unicase/invariant.h: New file.
35329         * lib/unicase/u-is-invariant.h: New file.
35330         * modules/unicase/u8-is-invariant: New file.
35331
35332         Tests for module 'unicase/u32-casecoll'.
35333         * modules/unicase/u32-casecoll-tests: New file.
35334         * tests/unicase/test-u32-casecoll.c: New file.
35335
35336         Tests for module 'unicase/u16-casecoll'.
35337         * modules/unicase/u16-casecoll-tests: New file.
35338         * tests/unicase/test-u16-casecoll.c: New file.
35339
35340         Tests for module 'unicase/u8-casecoll'.
35341         * modules/unicase/u8-casecoll-tests: New file.
35342         * tests/unicase/test-u8-casecoll.c: New file.
35343
35344         New module 'unicase/u32-casecoll'.
35345         * lib/unicase/u32-casecoll.c: New file.
35346         * modules/unicase/u32-casecoll: New file.
35347
35348         New module 'unicase/u16-casecoll'.
35349         * lib/unicase/u16-casecoll.c: New file.
35350         * modules/unicase/u16-casecoll: New file.
35351
35352         New module 'unicase/u8-casecoll'.
35353         * lib/unicase/u8-casecoll.c: New file.
35354         * lib/unicase/u-casecoll.h: New file.
35355         * modules/unicase/u8-casecoll: New file.
35356
35357         New module 'unicase/u32-casexfrm'.
35358         * lib/unicase/u32-casexfrm.c: New file.
35359         * modules/unicase/u32-casexfrm: New file.
35360
35361         New module 'unicase/u16-casexfrm'.
35362         * lib/unicase/u16-casexfrm.c: New file.
35363         * modules/unicase/u16-casexfrm: New file.
35364
35365         New module 'unicase/u8-casexfrm'.
35366         * lib/unicase/u8-casexfrm.c: New file.
35367         * lib/unicase/u-casexfrm.h: New file.
35368         * modules/unicase/u8-casexfrm: New file.
35369
35370         Tests for module 'unicase/u32-casecmp'.
35371         * modules/unicase/u32-casecmp-tests: New file.
35372         * tests/unicase/test-u32-casecmp.c: New file.
35373
35374         Tests for module 'unicase/u16-casecmp'.
35375         * modules/unicase/u16-casecmp-tests: New file.
35376         * tests/unicase/test-u16-casecmp.c: New file.
35377
35378         Tests for module 'unicase/u8-casecmp'.
35379         * modules/unicase/u8-casecmp-tests: New file.
35380         * tests/unicase/test-u8-casecmp.c: New file.
35381         * tests/unicase/test-casecmp.h: New file.
35382
35383         New module 'unicase/u32-casecmp'.
35384         * lib/unicase/u32-casecmp.c: New file.
35385         * modules/unicase/u32-casecmp: New file.
35386
35387         New module 'unicase/u16-casecmp'.
35388         * lib/unicase/u16-casecmp.c: New file.
35389         * modules/unicase/u16-casecmp: New file.
35390
35391         New module 'unicase/u8-casecmp'.
35392         * lib/unicase/u8-casecmp.c: New file.
35393         * lib/unicase/u-casecmp.h: New file.
35394         * modules/unicase/u8-casecmp: New file.
35395
35396         Tests for module 'unicase/u32-casefold'.
35397         * modules/unicase/u32-casefold-tests: New file.
35398         * tests/unicase/test-u32-casefold.c: New file.
35399
35400         Tests for module 'unicase/u16-casefold'.
35401         * modules/unicase/u16-casefold-tests: New file.
35402         * tests/unicase/test-u16-casefold.c: New file.
35403
35404         Tests for module 'unicase/u8-casefold'.
35405         * modules/unicase/u8-casefold-tests: New file.
35406         * tests/unicase/test-u8-casefold.c: New file.
35407
35408         New module 'unicase/u32-casefold'.
35409         * lib/unicase/u32-casefold.c: New file.
35410         * modules/unicase/u32-casefold: New file.
35411
35412         New module 'unicase/u16-casefold'.
35413         * lib/unicase/u16-casefold.c: New file.
35414         * modules/unicase/u16-casefold: New file.
35415
35416         New module 'unicase/u8-casefold'.
35417         * lib/unicase/u8-casefold.c: New file.
35418         * lib/unicase/u-casefold.h: New file.
35419         * modules/unicase/u8-casefold: New file.
35420
35421         New module 'unicase/tocasefold'.
35422         * lib/unicase/casefold.h: New file.
35423         * lib/unicase/tocasefold.c: New file.
35424         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35425         * modules/unicase/tocasefold: New file.
35426
35427         Tests for module 'unicase/u32-totitle'.
35428         * modules/unicase/u32-totitle-tests: New file.
35429         * tests/unicase/test-u32-totitle.c: New file.
35430
35431         Tests for module 'unicase/u16-totitle'.
35432         * modules/unicase/u16-totitle-tests: New file.
35433         * tests/unicase/test-u16-totitle.c: New file.
35434
35435         Tests for module 'unicase/u8-totitle'.
35436         * modules/unicase/u8-totitle-tests: New file.
35437         * tests/unicase/test-u8-totitle.c: New file.
35438
35439         New module 'unicase/u32-totitle'.
35440         * lib/unicase/u32-totitle.c: New file.
35441         * modules/unicase/u32-totitle: New file.
35442
35443         New module 'unicase/u16-totitle'.
35444         * lib/unicase/u16-totitle.c: New file.
35445         * modules/unicase/u16-totitle: New file.
35446
35447         New module 'unicase/u8-totitle'.
35448         * lib/unicase/u8-totitle.c: New file.
35449         * lib/unicase/u-totitle.h: New file.
35450         * modules/unicase/u8-totitle: New file.
35451
35452         Tests for module 'unicase/u32-tolower'.
35453         * modules/unicase/u32-tolower-tests: New file.
35454         * tests/unicase/test-u32-tolower.c: New file.
35455
35456         Tests for module 'unicase/u16-tolower'.
35457         * modules/unicase/u16-tolower-tests: New file.
35458         * tests/unicase/test-u16-tolower.c: New file.
35459
35460         Tests for module 'unicase/u8-tolower'.
35461         * modules/unicase/u8-tolower-tests: New file.
35462         * tests/unicase/test-u8-tolower.c: New file.
35463
35464         New module 'unicase/u32-tolower'.
35465         * lib/unicase/u32-tolower.c: New file.
35466         * modules/unicase/u32-tolower: New file.
35467
35468         New module 'unicase/u16-tolower'.
35469         * lib/unicase/u16-tolower.c: New file.
35470         * modules/unicase/u16-tolower: New file.
35471
35472         New module 'unicase/u8-tolower'.
35473         * lib/unicase/u8-tolower.c: New file.
35474         * modules/unicase/u8-tolower: New file.
35475
35476         Tests for module 'unicase/u32-toupper'.
35477         * modules/unicase/u32-toupper-tests: New file.
35478         * tests/unicase/test-u32-toupper.c: New file.
35479
35480         Tests for module 'unicase/u16-toupper'.
35481         * modules/unicase/u16-toupper-tests: New file.
35482         * tests/unicase/test-u16-toupper.c: New file.
35483
35484         Tests for module 'unicase/u8-toupper'.
35485         * modules/unicase/u8-toupper-tests: New file.
35486         * tests/unicase/test-u8-toupper.c: New file.
35487
35488         New module 'unicase/u32-toupper'.
35489         * lib/unicase/u32-toupper.c: New file.
35490         * modules/unicase/u32-toupper: New file.
35491
35492         New module 'unicase/u16-toupper'.
35493         * lib/unicase/u16-toupper.c: New file.
35494         * modules/unicase/u16-toupper: New file.
35495
35496         New module 'unicase/u8-toupper'.
35497         * lib/unicase/u8-toupper.c: New file.
35498         * modules/unicase/u8-toupper: New file.
35499
35500         New module 'unicase/u32-casemap'.
35501         * lib/unicase/u32-casemap.c: New file.
35502         * modules/unicase/u32-casemap: New file.
35503
35504         New module 'unicase/u16-casemap'.
35505         * lib/unicase/u16-casemap.c: New file.
35506         * modules/unicase/u16-casemap: New file.
35507
35508         New module 'unicase/u8-casemap'.
35509         * lib/unicase/unicasemap.h: New file.
35510         * lib/unicase/u8-casemap.c: New file.
35511         * lib/unicase/u-casemap.h: New file.
35512         * modules/unicase/u8-casemap: New file.
35513
35514         New module 'unicase/special-casing'.
35515         * lib/unicase/special-casing.h: New file.
35516         * lib/unicase/special-casing.c: New file.
35517         * lib/unicase/special-casing-table.gperf: New file, generated by
35518         gen-uni-tables.c.
35519         * modules/unicase/special-casing: New file.
35520
35521         Tests for module 'unicase/locale-language'.
35522         * modules/unicase/locale-language-tests: New file.
35523         * tests/unicase/test-locale-language.sh: New file.
35524         * tests/unicase/test-locale-language.c: New file.
35525
35526         New module 'unicase/locale-language'.
35527         * lib/unicase/locale-language.c: New file.
35528         * lib/unicase/locale-languages.gperf: New file.
35529         * modules/unicase/locale-language: New file.
35530
35531         Generate more tables for case conversion and case folding.
35532         * lib/gen-uni-tables.c (SCC_*): New enum items.
35533         (struct special_casing_rule): New type.
35534         (casing_rules, num_casing_rules, allocated_casing_rules): New
35535         variables.
35536         (add_casing_rule, fill_casing_rules): New functions.
35537         (struct casefold_rule): New type.
35538         (casefolding_rules, num_casefolding_rules,
35539         allocated_casefolding_rules): New variables.
35540         (fill_casefolding_rules): New function.
35541         (unicode_casefold): New variable.
35542         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
35543         sort_casing_rules, output_casing_rules): New functions.
35544         (main): Accept to more arguments: SpecialCasing.txt and
35545         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
35546         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
35547         Output mapping for casefolding.
35548
35549         * lib/unicase.h: Include stdbool.h, uninorm.h.
35550         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
35551         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
35552         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
35553         arguments.
35554         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
35555         resultp arguments.
35556         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
35557         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
35558         resultp arguments.
35559         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
35560         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
35561         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
35562         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
35563         declarations.
35564         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
35565
35566 2009-03-08  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35569         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
35570         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
35571         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35572
35573 2009-03-07  Bruno Haible  <bruno@clisp.org>
35574
35575         Adjust u*_normcmp, u*_normcoll API.
35576         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
35577         u16_normcoll, u32_normcoll): Change failure conventions.
35578         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
35579         errno and return -1.
35580         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
35581
35582 2009-03-07  Bruno Haible  <bruno@clisp.org>
35583
35584         Tests for module 'uninorm/u32-normcoll'.
35585         * modules/uninorm/u32-normcoll-tests: New file.
35586         * tests/uninorm/test-u32-normcoll.c: New file.
35587
35588         Tests for module 'uninorm/u16-normcoll'.
35589         * modules/uninorm/u16-normcoll-tests: New file.
35590         * tests/uninorm/test-u16-normcoll.c: New file.
35591
35592         Tests for module 'uninorm/u8-normcoll'.
35593         * modules/uninorm/u8-normcoll-tests: New file.
35594         * tests/uninorm/test-u8-normcoll.c: New file.
35595
35596 2009-03-07  Bruno Haible  <bruno@clisp.org>
35597
35598         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
35599         tests/uninorm/test-u32-normcmp.c.
35600         * tests/uninorm/test-u32-normcmp.c: Include it.
35601         (test_nonascii): New function, extracted from main. Add some more
35602         tests.
35603         (main): Invoke test_ascii and test_nonascii.
35604         * modules/uninorm/u32-normcmp-tests (Files): Add
35605         tests/uninorm/test-u32-normcmp.h.
35606         (Depends-on): Remove uninorm/u32-normcmp.
35607
35608         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
35609         tests/uninorm/test-u16-normcmp.c.
35610         * tests/uninorm/test-u16-normcmp.c: Include it.
35611         (test_nonascii): New function, extracted from main. Add some more
35612         tests.
35613         (main): Invoke test_ascii and test_nonascii.
35614         * modules/uninorm/u16-normcmp-tests (Files): Add
35615         tests/uninorm/test-u16-normcmp.h.
35616         (Depends-on): Remove uninorm/u16-normcmp.
35617
35618         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
35619         tests/uninorm/test-u8-normcmp.c.
35620         * tests/uninorm/test-u8-normcmp.c: Include it.
35621         (test_nonascii): New function, extracted from main. Add some more
35622         tests.
35623         (main): Invoke test_ascii and test_nonascii.
35624         * modules/uninorm/u8-normcmp-tests (Files): Add
35625         tests/uninorm/test-u8-normcmp.h.
35626         (Depends-on): Remove uninorm/u8-normcmp.
35627
35628 2009-03-07  Bruno Haible  <bruno@clisp.org>
35629
35630         New module 'uninorm/u32-normcoll'.
35631         * lib/uninorm/u32-normcoll.c: New file.
35632         * modules/uninorm/u32-normcoll: New file.
35633
35634         New module 'uninorm/u16-normcoll'.
35635         * lib/uninorm/u16-normcoll.c: New file.
35636         * modules/uninorm/u16-normcoll: New file.
35637
35638         New module 'uninorm/u8-normcoll'.
35639         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
35640         declarations.
35641         * lib/uninorm/u8-normcoll.c: New file.
35642         * lib/uninorm/u-normcoll.h: New file.
35643         * modules/uninorm/u8-normcoll: New file.
35644
35645         New module 'uninorm/u32-normxfrm'.
35646         * lib/uninorm/u32-normxfrm.c: New file.
35647         * modules/uninorm/u32-normxfrm: New file.
35648
35649         New module 'uninorm/u16-normxfrm'.
35650         * lib/uninorm/u16-normxfrm.c: New file.
35651         * modules/uninorm/u16-normxfrm: New file.
35652
35653         New module 'uninorm/u8-normxfrm'.
35654         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
35655         declarations.
35656         * lib/uninorm/u8-normxfrm.c: New file.
35657         * lib/uninorm/u-normxfrm.h: New file.
35658         * modules/uninorm/u8-normxfrm: New file.
35659
35660 2009-03-07  Bruno Haible  <bruno@clisp.org>
35661
35662         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
35663         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
35664         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
35665
35666 2009-03-07  Bruno Haible  <bruno@clisp.org>
35667
35668         New module 'memxfrm'.
35669         * lib/memxfrm.h: New file.
35670         * lib/memxfrm.c: New file.
35671         * modules/memxfrm: New file.
35672
35673 2009-03-07  Bruno Haible  <bruno@clisp.org>
35674
35675         New module 'memcmp2'.
35676         * lib/memcmp2.h: New file.
35677         * lib/memcmp2.c: New file.
35678         * modules/memcmp2: New file.
35679
35680 2009-03-07  Bruno Haible  <bruno@clisp.org>
35681
35682         Tests for module 'uninorm/decomposing-form'.
35683         * modules/uninorm/decomposing-form-tests: New file.
35684         * tests/uninorm/test-decomposing-form.c: New file.
35685
35686         New module 'uninorm/decomposing-form'.
35687         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
35688         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
35689         Add 'decomposing_variant' field.
35690         * lib/uninorm/decomposing-form.c: New file.
35691         * lib/uninorm/nfc.c (uninorm_nfc): Update.
35692         * lib/uninorm/nfd.c (uninorm_nfd): Update.
35693         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
35694         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
35695         * modules/uninorm/decomposing-form: New file.
35696         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
35697         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
35698
35699 2009-03-07  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
35702         strings.
35703
35704 2009-03-06  Bruno Haible  <bruno@clisp.org>
35705
35706         Tests for module 'uninorm/u32-normcmp'.
35707         * tests/uninorm/test-u32-normcmp.c: New file.
35708         * modules/uninorm/u32-normcmp-tests: New file.
35709
35710         Tests for module 'uninorm/u16-normcmp'.
35711         * tests/uninorm/test-u16-normcmp.c: New file.
35712         * modules/uninorm/u16-normcmp-tests: New file.
35713
35714         Tests for module 'uninorm/u8-normcmp'.
35715         * tests/uninorm/test-u8-normcmp.c: New file.
35716         * modules/uninorm/u8-normcmp-tests: New file.
35717
35718         New module 'uninorm/u32-normcmp'.
35719         * lib/uninorm/u32-normcmp.c: New file.
35720         * modules/uninorm/u32-normcmp: New file.
35721
35722         New module 'uninorm/u16-normcmp'.
35723         * lib/uninorm/u16-normcmp.c: New file.
35724         * modules/uninorm/u16-normcmp: New file.
35725
35726         New module 'uninorm/u8-normcmp'.
35727         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
35728         declarations.
35729         * lib/uninorm/u8-normcmp.c: New file.
35730         * lib/uninorm/u-normcmp.h: New file.
35731         * modules/uninorm/u8-normcmp: New file.
35732
35733 2009-03-06  Bruno Haible  <bruno@clisp.org>
35734
35735         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
35736         Reported by Eric Blake.
35737
35738 2009-03-06  Eric Blake  <ebb9@byu.net>
35739             Bruno Haible  <bruno@clisp.org>
35740
35741         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
35742         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
35743         condition.
35744         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35745         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
35746         condition.
35747         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
35748
35749 2009-03-06  Eric Blake  <ebb9@byu.net>
35750
35751         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
35752         to avoid compiler warnings.
35753         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
35754
35755 2009-03-05  Bruno Haible  <bruno@clisp.org>
35756
35757         * tests/test-ftell.c (main): Disable test beyond end of file on
35758         FreeMiNT.
35759         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35760
35761 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
35762
35763         * lib/filevercmp.c: Move hidden files up in ordering.
35764         * tests/test-filevercmp.c: Add tests for hidden files.
35765
35766 2009-03-04  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
35769         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
35770         AM_CFLAGS.
35771         Reported by Simon Josefsson.
35772
35773 2009-03-03  Bruno Haible  <bruno@clisp.org>
35774
35775         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
35776         Reported by Simon Josefsson.
35777
35778         * doc/ld-version-script.texi: Update node reference.
35779
35780 2009-03-03  Bruno Haible  <bruno@clisp.org>
35781
35782         * modules/visibility (License): Change to 'unlimited'.
35783         Suggested by Simon Josefsson.
35784
35785 2009-03-03  Jim Meyering  <meyering@redhat.com>
35786
35787         unlinkdir: cannot_unlink_dir may modify process state
35788         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
35789         it's neither thread-safe nor appropriate for use in a library.
35790
35791 2009-03-03  Eric Blake  <ebb9@byu.net>
35792
35793         test-closein: silence test under Darwin
35794         * tests/test-closein.sh: Ignore stderr from cat, since we don't
35795         care if it dies from EPIPE or EBADF.
35796
35797 2009-03-03  Bruno Haible  <bruno@clisp.org>
35798
35799         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
35800         earlier.
35801         * doc/visibility.texi: Fix @node and @section.
35802
35803 2009-03-03  Simon Josefsson  <simon@josefsson.org>
35804
35805         * doc/gnulib.texi: Link to sections for ld version script and
35806         visibility.
35807         * doc/visibility.texi: Add @node and @section.
35808         * modules/ld-version-script: New module.
35809         * m4/ld-version-script.m4: New file.
35810         * doc/ld-version-script.texi: New file.
35811
35812 2009-03-02  David Lutterkort  <lutter@redhat.com>
35813
35814         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
35815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35816
35817 2009-03-02  Bruno Haible  <bruno@clisp.org>
35818
35819         * doc/visibility.texi: Mention libtool's -export-symbols option.
35820
35821 2009-03-02  Jim Meyering  <meyering@redhat.com>
35822
35823         announce-gen: new option: --no-print-checksums
35824         * build-aux/announce-gen (usage): Describe it.
35825         (print_checksums): Print a newline here, not in the [*] footnote.
35826         (main): Honor it.
35827
35828 2009-03-01  Bruno Haible  <bruno@clisp.org>
35829
35830         Use socklen_t in the native Windows replacements prototypes.
35831         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
35832         instead of 'int'.
35833         * lib/getsockopt.c (rpl_getsockopt): Likewise.
35834         * lib/setsockopt.c (rpl_setsockopt): Likewise.
35835         * modules/getsockopt (Depends-on): Add socklen.
35836         * modules/setsockopt (Depends-on): Add socklen.
35837
35838 2009-03-01  Bruno Haible  <bruno@clisp.org>
35839
35840         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
35841         least 4.2.
35842
35843 2009-03-01  Eric Blake  <ebb9@byu.net>
35844             Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
35847         error messages.
35848         * lib/wait-process.c (wait_subprocess): Omit error message about
35849         deadly signal sent to the child of termsigp != NULL.
35850
35851 2009-03-01  Eric Blake  <ebb9@byu.net>
35852
35853         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
35854
35855 2009-03-01  Bruno Haible  <bruno@clisp.org>
35856
35857         Avoid a gcc warning.
35858         * tests/test-sched.c (b): Make global.
35859         Reported by Eric Blake.
35860
35861 2009-01-19  Martin Lambers  <marlam@marlam.de>
35862
35863         Provide POSIX semantics for socket timeout options on W32.
35864         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
35865         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
35866         * modules/setsockopt: Depend on sys_time module for struct timeval.
35867         * modules/getsockopt: Depend on sys_time module for struct timeval.
35868
35869 2009-03-01  Simon Josefsson  <simon@josefsson.org>
35870
35871         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
35872         __USE_GNU, for consistency with netdb.in.h.
35873         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35874
35875 2009-03-01  Bruno Haible  <bruno@clisp.org>
35876
35877         More support for FreeMiNT.
35878         * lib/fseeko.c (rpl_fseeko): Complete last commit.
35879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35880
35881 2009-03-01  Bruno Haible  <bruno@clisp.org>
35882
35883         More support for FreeMiNT.
35884         * lib/fpurge.c (fpurge): Correct last commit.
35885         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35886
35887 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35888
35889         Fix unportable awk script in vc-list-files.
35890         * build-aux/vc-list-files: In the replacement awk script, use
35891         substr with a second argument of 1, not zero.
35892         Report by Simon Josefsson.
35893
35894 2009-02-28  Bruno Haible  <bruno@clisp.org>
35895
35896         More support for FreeMiNT.
35897         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
35898         to FreeMiNT today.
35899         * lib/fwriting.c (fwriting): Likewise.
35900         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
35901
35902 2009-02-28  Bruno Haible  <bruno@clisp.org>
35903
35904         * tests/test-freadseek.c (main): Disable test beyond end of file on
35905         FreeMiNT.
35906         * tests/test-ftello.c (main): Likewise.
35907         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
35908
35909 2009-02-28  Bruno Haible  <bruno@clisp.org>
35910
35911         Add tentative support for FreeMiNT.
35912         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
35913         * lib/fpurge.c (fpurge): Likewise.
35914         * lib/freadable.c (freadable): Likewise.
35915         * lib/freading.c (freading): Likewise.
35916         * lib/freadptr.c (freadptr): Likewise.
35917         * lib/freadseek.c (freadptrinc): Likewise.
35918         * lib/fseeko.c (rpl_fseeko): Likewise.
35919         * lib/fseterr.c (fseterr): Likewise.
35920         * lib/fwritable.c (fwritable): Likewise.
35921         * lib/fwriting.c (fwriting): Likewise.
35922         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
35923         Hourihane.
35924         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35925
35926 2009-02-28  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
35929         SIGCHLD.
35930         Reported by Jim Meyering.
35931
35932 2009-02-28  Bruno Haible  <bruno@clisp.org>
35933
35934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
35935         Mention the results of these tests on various platforms.
35936         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
35937         order.
35938         * doc/posix-functions/printf.texi: Likewise.
35939         * doc/posix-functions/snprintf.texi: Likewise.
35940         * doc/posix-functions/sprintf.texi: Likewise.
35941         * doc/posix-functions/vfprintf.texi: Likewise.
35942         * doc/posix-functions/vprintf.texi: Likewise.
35943         * doc/posix-functions/vsnprintf.texi: Likewise.
35944         * doc/posix-functions/vsprintf.texi: Likewise.
35945         * doc/glibc-functions/obstack_printf.texi: Likewise.
35946         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
35947
35948 2009-02-28  Bruno Haible  <bruno@clisp.org>
35949
35950         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
35951         Reported by LoĂ¯c Minier <lool@dooz.org>.
35952
35953 2009-02-27  Bruno Haible  <bruno@clisp.org>
35954
35955         * gnulib-tool (func_import): Make the sed expression used to create the
35956         sed script for updating the .gitignore file POSIX compliant.
35957         Reported by Eric Blake.
35958
35959 2009-02-27  Bruno Haible  <bruno@clisp.org>
35960
35961         * gnulib-tool (sed): Don't alias as "sed --posix".
35962         Reported by Eric Blake.
35963
35964 2009-02-27  Bruno Haible  <bruno@clisp.org>
35965
35966         Avoid test link errors.
35967         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
35968         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
35969         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
35970         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
35971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35972
35973 2009-02-27  Bruno Haible  <bruno@clisp.org>
35974
35975         Avoid spurious "(cached)" in configure output.
35976         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
35977         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
35978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35979         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35980         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35981         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
35982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35983         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
35984         Reported by Eric Blake.
35985
35986 2009-02-27  Eric Blake  <ebb9@byu.net>
35987
35988         printf: fix regression in previous patch
35989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
35990
35991 2009-02-27  Bruno Haible  <bruno@clisp.org>
35992
35993         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
35994         value.
35995         * lib/stdint.in.h: Likewise.
35996         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
35997
35998 2009-02-27  Eric Blake  <ebb9@byu.net>
35999
36000         doc: mention more functions added in cygwin 1.7.0
36001         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36002         addition.
36003         * doc/posix-functions/open_wmemstream.texi: Likewise.
36004         * doc/posix-functions/wcsnlen.texi: Likewise.
36005         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36006         * doc/posix-functions/wcstod.texi: Likewise.
36007         * doc/posix-functions/wcstof.texi: Likewise.
36008         * doc/posix-functions/wcstoimax.texi: Likewise.
36009         * doc/posix-functions/wcstok.texi: Likewise.
36010         * doc/posix-functions/wcstoumax.texi: Likewise.
36011
36012         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36014         * doc/posix-functions/fprintf.texi: Update.
36015         * doc/posix-functions/printf.texi: Update.
36016         * doc/posix-functions/snprintf.texi: Update.
36017         * doc/posix-functions/sprintf.texi: Update.
36018         * doc/posix-functions/vfprintf.texi: Update.
36019         * doc/posix-functions/vprintf.texi: Update.
36020         * doc/posix-functions/vsnprintf.texi: Update.
36021         * doc/posix-functions/vsprintf.texi: Update.
36022         * doc/glibc-functions/obstack_printf.texi: Update.
36023         * doc/glibc-functions/obstack_vprintf.texi: Update.
36024
36025 2009-02-26  Eric Blake  <ebb9@byu.net>
36026
36027         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36028         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36029         compilation bug by using runtime conversion.
36030         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36031         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36032         * modules/ceill-tests (Files): Use nan.h.
36033         * modules/floorl-tests (Files): Likewise.
36034         * modules/frexpl-tests (Files): Likewise.
36035         * modules/isnanl-tests (Files): Likewise.
36036         * modules/ldexpl-tests (Files): Likewise.
36037         * modules/roundl-tests (Files): Likewise.
36038         * modules/truncl-tests (Files): Likewise.
36039         * tests/test-ceill.c (main): Use a working NaN.
36040         * tests/test-floorl.c (main): Likewise.
36041         * tests/test-frexpl.c (main): Likewise.
36042         * tests/test-isnan.c (test_long_double): Likewise.
36043         * tests/test-isnanl.h (main): Likewise.
36044         * tests/test-ldexpl.h (main): Likewise.
36045         * tests/test-roundl.h (main): Likewise.
36046         * tests/test-truncl.h (main): Likewise.
36047         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36048
36049 2009-02-26  Eric Blake  <ebb9@byu.net>
36050             Bruno Haible  <bruno@clisp.org>
36051
36052         Work around a *printf bug with %ls on Solaris.
36053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36054         precision is specified, sprintf stops converting the wide string
36055         argument when the number of bytes that have been produced by this
36056         conversion equals or exceeds the precision.
36057         * doc/posix-functions/fprintf.texi: Update.
36058         * doc/posix-functions/printf.texi: Update.
36059         * doc/posix-functions/snprintf.texi: Update.
36060         * doc/posix-functions/sprintf.texi: Update.
36061         * doc/posix-functions/vfprintf.texi: Update.
36062         * doc/posix-functions/vprintf.texi: Update.
36063         * doc/posix-functions/vsnprintf.texi: Update.
36064         * doc/posix-functions/vsprintf.texi: Update.
36065         * doc/glibc-functions/obstack_printf.texi: Update.
36066         * doc/glibc-functions/obstack_vprintf.texi: Update.
36067
36068 2009-02-26  Eric Blake  <ebb9@byu.net>
36069
36070         stdlib: favor compiler check of random.h
36071         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36072         to avoid an ObjC random.h installed by Swarm.
36073
36074 2009-02-26  Bruno Haible  <bruno@clisp.org>
36075
36076         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36077         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36078         Reported by Gary V. Vaughan <gary@gnu.org>.
36079
36080 2009-02-26  Bruno Haible  <bruno@clisp.org>
36081
36082         Fix *printf behaviour regarding the %ls directive.
36083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36084         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36085         NEED_PRINTF_DIRECTIVE_LS.
36086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36087         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36089         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36090         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36091         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36092         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36095         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36096         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36097         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36098         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36099         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36101         * doc/posix-functions/fprintf.texi: Update.
36102         * doc/posix-functions/printf.texi: Update.
36103         * doc/posix-functions/snprintf.texi: Update.
36104         * doc/posix-functions/sprintf.texi: Update.
36105         * doc/posix-functions/vfprintf.texi: Update.
36106         * doc/posix-functions/vprintf.texi: Update.
36107         * doc/posix-functions/vsnprintf.texi: Update.
36108         * doc/posix-functions/vsprintf.texi: Update.
36109         * doc/glibc-functions/obstack_printf.texi: Update.
36110         * doc/glibc-functions/obstack_vprintf.texi: Update.
36111         Reported by Eric Blake.
36112
36113 2009-02-25  Bruno Haible  <bruno@clisp.org>
36114
36115         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36116         with known value.
36117         Reported by Gary V. Vaughan <gary@gnu.org>.
36118
36119 2009-02-25  Bruno Haible  <bruno@clisp.org>
36120
36121         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36122         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36123         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36124         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36125         Reported by Gary V. Vaughan <gary@gnu.org>.
36126
36127 2009-02-25  Bruno Haible  <bruno@clisp.org>
36128
36129         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36130         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36131         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36132         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36133         Reported by Gary V. Vaughan <gary@gnu.org>.
36134
36135 2009-02-25  Eric Blake  <ebb9@byu.net>
36136
36137         tests: skip fseek/ftell tests if ungetc is broken
36138         * m4/ungetc.m4: New file.
36139         * modules/fseek-tests: Split test, so ungetc dependency is
36140         separate from rest of test.
36141         * modules/fseeko-tests: Likewise.
36142         * modules/ftell-tests: Likewise.
36143         * modules/ftello-tests: Likewise.
36144         * tests/test-fseek.c (main): Isolate ungetc dependency.
36145         * tests/test-fseeko.c (main): Likewise.
36146         * tests/test-ftell.c (main): Likewise.
36147         * tests/test-ftello.c (main): Likewise.
36148         * tests/test-fseek2.sh: New file.
36149         * tests/test-fseeko2.sh: Likewise.
36150         * tests/test-ftell2.sh: Likewise.
36151         * tests/test-ftello2.sh: Likewise.
36152
36153 2009-02-25  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
36154
36155         test-getaddrinfo: fix usage of skip return code 77
36156         * tests/test-gettaddrinfo.c: Return skip code 77 only
36157         for first occurance of skip (4x77 is not 77)
36158
36159 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36160
36161         strtod: avoid C99 decl-after-statement
36162         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36163
36164 2009-02-24  Eric Blake  <ebb9@byu.net>
36165
36166         strtod: detect HP-UX 11.31 bug
36167         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36168         Reported by Gary V. Vaughan.
36169
36170 2009-02-23  Bruno Haible  <bruno@clisp.org>
36171
36172         Fix invalid read past end of memory block.
36173         * lib/vasnprintf.c (DCHAR_SET): Define.
36174         (local_wcslen): Define only when needed.
36175         (local_strnlen, local_wcsnlen): New functions.
36176         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36177         directives that involve a conversion ourselves.
36178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36179         wcsnlen, mbrtowc, wcrtomb.
36180         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36181         * tests/test-vasprintf-posix.c (test_function): Likewise.
36182         * tests/test-snprintf-posix.h (test_function): Likewise.
36183         * tests/test-sprintf-posix.h (test_function): Likewise.
36184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36185
36186 2009-02-22  Bruno Haible  <bruno@clisp.org>
36187
36188         Implement new clarified decomposition of Hangul syllables.
36189         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36190         of type LTV, return only a pairwise decomposition.
36191         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36192         Likewise.
36193         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36194         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36195         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36196
36197 2009-02-22  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36200         zero-length results and shrink excess allocated memory.
36201         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36202         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36203         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36204         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36205         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36206         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36207         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36208         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36209         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36210         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36211         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36212         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36213
36214 2009-02-21  Bruno Haible  <bruno@clisp.org>
36215
36216         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36217         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36218         spaces after a period. Put a space between a macro name and its
36219         argument list. Trivial rewordings.
36220         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36221         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36222         (main): Return 0 explicitly.
36223
36224 2009-02-21  Bruno Haible  <bruno@clisp.org>
36225
36226         Tests for module 'uninorm/filter'.
36227         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36228         * modules/uninorm/filter-tests: New file.
36229
36230         New module 'uninorm/filter'.
36231         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36232         uninorm_filter_flush, uninorm_filter_free): New declarations.
36233         * lib/uninorm/uninorm-filter.c: New file.
36234         * modules/uninorm/filter: New file.
36235
36236 2009-02-21  Bruno Haible  <bruno@clisp.org>
36237
36238         Tests for module 'uninorm/nfkc'.
36239         * tests/uninorm/test-nfkc.c: New file.
36240         * tests/uninorm/test-u8-nfkc.c: New file.
36241         * tests/uninorm/test-u16-nfkc.c: New file.
36242         * tests/uninorm/test-u32-nfkc.c: New file.
36243         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36244         * tests/uninorm/test-u32-nfkc-big.c: New file.
36245         * modules/uninorm/nfkc-tests: New file.
36246
36247         New module 'uninorm/nfkc'.
36248         * lib/uninorm/nfkc.c: New file.
36249         * modules/uninorm/nfkc: New file.
36250
36251         Tests for module 'uninorm/nfkd'.
36252         * tests/uninorm/test-nfkd.c: New file.
36253         * tests/uninorm/test-u8-nfkd.c: New file.
36254         * tests/uninorm/test-u16-nfkd.c: New file.
36255         * tests/uninorm/test-u32-nfkd.c: New file.
36256         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36257         * tests/uninorm/test-u32-nfkd-big.c: New file.
36258         * modules/uninorm/nfkd-tests: New file.
36259
36260         New module 'uninorm/nfkd'.
36261         * lib/uninorm/nfkd.c: New file.
36262         * modules/uninorm/nfkd: New file.
36263
36264         Tests for module 'uninorm/nfc'.
36265         * tests/uninorm/test-nfc.c: New file.
36266         * tests/uninorm/test-u8-nfc.c: New file.
36267         * tests/uninorm/test-u16-nfc.c: New file.
36268         * tests/uninorm/test-u32-nfc.c: New file.
36269         * tests/uninorm/test-u32-nfc-big.sh: New file.
36270         * tests/uninorm/test-u32-nfc-big.c: New file.
36271         * modules/uninorm/nfc-tests: New file.
36272
36273         New module 'uninorm/nfc'.
36274         * lib/uninorm/nfc.c: New file.
36275         * modules/uninorm/nfc: New file.
36276
36277         Tests for module 'uninorm/nfd'.
36278         * tests/uninorm/test-nfd.c: New file.
36279         * tests/uninorm/test-u8-nfd.c: New file.
36280         * tests/uninorm/test-u16-nfd.c: New file.
36281         * tests/uninorm/test-u32-nfd.c: New file.
36282         * tests/uninorm/test-u32-nfd-big.sh: New file.
36283         * tests/uninorm/test-u32-nfd-big.c: New file.
36284         * tests/uninorm/test-u32-normalize-big.h: New file.
36285         * tests/uninorm/test-u32-normalize-big.c: New file.
36286         * tests/uninorm/NormalizationTest.txt: New file, created from
36287         Unicode 5.1.0 NormalizationTest.txt.
36288         * modules/uninorm/nfd-tests: New file.
36289
36290         New module 'uninorm/nfd'.
36291         * lib/uninorm/nfd.c: New file.
36292         * modules/uninorm/nfd: New file.
36293
36294         New module 'uninorm/u32-normalize'.
36295         * lib/uninorm/u32-normalize.c: New file.
36296         * modules/uninorm/u32-normalize: New file.
36297
36298         New module 'uninorm/u16-normalize'.
36299         * lib/uninorm/u16-normalize.c: New file.
36300         * modules/uninorm/u16-normalize: New file.
36301
36302         New module 'uninorm/u8-normalize'.
36303         * lib/uninorm/u8-normalize.c: New file.
36304         * lib/uninorm/normalize-internal.h: New file.
36305         * lib/uninorm/u-normalize-internal.h: New file.
36306         * modules/uninorm/u8-normalize: New file.
36307
36308         New module 'uninorm/decompose-internal'.
36309         * lib/uninorm/decompose-internal.c: New file.
36310         * modules/uninorm/decompose-internal: New file.
36311
36312         Tests for module 'uninorm/composition'.
36313         * tests/uninorm/test-composition.c: New file.
36314         * modules/uninorm/composition-tests: New file.
36315
36316         New module 'uninorm/composition'.
36317         * lib/uninorm/composition.c: New file.
36318         * lib/uninorm/composition-table.gperf: New file, generated by
36319         gen-uni-tables.
36320         * modules/uninorm/composition: New file.
36321
36322         Tests for module 'uninorm/compat-decomposition'.
36323         * tests/uninorm/test-compat-decomposition.c: New file.
36324         * modules/uninorm/compat-decomposition-tests: New file.
36325
36326         New module 'uninorm/compat-decomposition'.
36327         * lib/uninorm/decompose-internal.h: New file.
36328         * lib/uninorm/compat-decomposition.c: New file.
36329         * modules/uninorm/compat-decomposition: New file.
36330
36331         Tests for module 'uninorm/canonical-decomposition'.
36332         * tests/uninorm/test-canonical-decomposition.c: New file.
36333         * modules/uninorm/canonical-decomposition-tests: New file.
36334
36335         New module 'uninorm/canonical-decomposition'.
36336         * lib/uninorm/canonical-decomposition.c: New file.
36337         * modules/uninorm/canonical-decomposition: New file.
36338
36339         Tests for module 'uninorm/decomposition'.
36340         * tests/uninorm/test-decomposition.c: New file.
36341         * modules/uninorm/decomposition-tests: New file.
36342
36343         New module 'uninorm/decomposition'.
36344         * lib/uninorm/decomposition.c: New file.
36345         * modules/uninorm/decomposition: New file.
36346
36347         New module 'uninorm/decomposition-table'.
36348         * lib/uninorm/decomposition-table.h: New file.
36349         * lib/uninorm/decomposition-table.c: New file.
36350         * lib/uninorm/decomposition-table1.h: New file, generated by
36351         gen-uni-tables.
36352         * lib/uninorm/decomposition-table2.h: New file, generated by
36353         gen-uni-tables.
36354         * modules/uninorm/decomposition-table: New file.
36355
36356         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36357         (UC_DECOMP_*): New enumeration items.
36358         (get_decomposition): New function.
36359         (struct decomp_table): New type.
36360         (output_decomposition, output_decomposition_tables): New functions.
36361         (unicode_composition_exclusions): New variable.
36362         (fill_composition_exclusions, debug_output_composition_tables): New
36363         functions.
36364         (main): Accept one more argument. Invoke fill_composition_exclusions.
36365         Output decomposition and composition tables.
36366
36367         New module 'uninorm/base'.
36368         * lib/uninorm.h: New file.
36369         * lib/unictype.h: Update comment.
36370         * modules/uninorm/base: New file.
36371
36372 2009-02-21  David Lutterkort  <lutter@redhat.com>
36373
36374         Tests for module 'safe-alloc'.
36375         * tests/test-safe-alloc.c: New file.
36376         * modules/safe-alloc-tests: New file.
36377
36378         New module 'safe-alloc'.
36379         * lib/safe-alloc.h: New file.
36380         * lib/safe-alloc.c: New file.
36381         * m4/safe-alloc.m4: New file.
36382         * modules/safe-alloc: New file.
36383         * doc/safe-alloc.texi: New file.
36384         * doc/gnulib.texi: Include it.
36385         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36386         safe-alloc.
36387
36388 2009-02-18  Bruno Haible  <bruno@clisp.org>
36389
36390         Fix link error on non-glibc systems.
36391         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36392         variable.
36393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36394
36395 2009-02-18  Jim Meyering  <meyering@redhat.com>
36396
36397         fts: avoid used-uninitialized error due to recent change
36398         * lib/fts.c (fts_read): Guard uses of the new member,
36399         parent->fts_n_dirs_remaining, since it's not relevant for
36400         the parent of a directory specified on the command-line.
36401
36402 2009-02-17  James Youngman  <jay@gnu.org>
36403             Bruno Haible  <bruno@clisp.org>
36404
36405         * m4/include_next.m4: Reformulate comment.
36406
36407 2009-02-16  Jim Meyering  <meyering@redhat.com>
36408
36409         fts: add #if guards so that the fts_lgpl module still builds
36410         * lib/fts.c: Guard just-added hash-table-using parts with
36411         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36412         Reported by Simon Josefsson.
36413
36414 2009-02-15  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/array-mergesort-tests: New file.
36417         * tests/test-array-mergesort.c: New file.
36418
36419         New module 'array-mergesort'.
36420         * modules/array-mergesort: New file.
36421         * lib/array-mergesort.h: New file.
36422
36423 2009-02-15  Bruno Haible  <bruno@clisp.org>
36424
36425         Fix 2009-02-07 commit.
36426         * lib/gen-uni-tables.c (output_predicate, output_category,
36427         output_combclass, output_bidi_category, output_decimal_digit,
36428         output_digit, output_numeric, output_mirror, output_scripts,
36429         output_ident_category, output_simple_mapping): Fix format directives.
36430         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36431
36432 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36433
36434         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36435         fixes are available from IBM.
36436
36437 2009-02-13  Jim Meyering  <meyering@redhat.com>
36438
36439         fts: arrange not to stat non-directories in more cases
36440         This makes GNU find (when it doesn't need to stat each file)
36441         *much* more efficient at traversing reiserfs file systems.
36442         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36443         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36444         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36445         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36446         (leaf_optimization_applies): New function.
36447         (LCO_hash, LCO_compare): New helper functions.
36448         (link_count_optimize_ok): New function.
36449         (fts_stat): Initialize new member (if dir).
36450         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36451         we've just stat'ed a directory.  Skip the stat call when possible.
36452         ---
36453         Note this AFS-related exchange:
36454         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36455         and note find's pioctl call in find/fstype.c.
36456         But that is necessary only if you want to enable the
36457         optimization for AFS, and for now, I don't.
36458
36459         fts: move a function definition "up" (no semantic change)
36460         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36461         "up" to precede upcoming use of a related function.
36462
36463 2009-02-11  Jim Meyering  <meyering@redhat.com>
36464
36465         fts: correct internal computation of nlinks (optimization-related)
36466         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36467         whether the current entry is a directory, so don't test it.
36468
36469 2009-02-10  Bruno Haible  <bruno@clisp.org>
36470
36471         Tests for module 'uniwbrk/ulc-wordbreaks'.
36472         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
36473         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
36474         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
36475
36476         Tests for module 'uniwbrk/u32-wordbreaks'.
36477         * modules/uniwbrk/u32-wordbreaks-tests: New file.
36478         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
36479
36480         Tests for module 'uniwbrk/u16-wordbreaks'.
36481         * modules/uniwbrk/u16-wordbreaks-tests: New file.
36482         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
36483
36484         Tests for module 'uniwbrk/u8-wordbreaks'.
36485         * modules/uniwbrk/u8-wordbreaks-tests: New file.
36486         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
36487
36488 2009-02-10  Bruno Haible  <bruno@clisp.org>
36489
36490         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
36491         property.
36492         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
36493         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
36494         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
36495
36496 2009-02-10  Simon Josefsson  <simon@josefsson.org>
36497
36498         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
36499         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
36500
36501 2009-02-10  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
36504         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
36505         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
36506         * lib/unilbrk/u8-possible-linebreaks.c: Update.
36507         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
36508         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
36509
36510 2009-02-09  Simon Josefsson  <simon@josefsson.org>
36511
36512         * lib/sockets.h (gl_fd_to_handle): New function.
36513
36514         * tests/test-sockets.c: Call gl_fd_to_handle.
36515
36516 2009-02-09  Bruno Haible  <bruno@clisp.org>
36517
36518         * doc/havelib.texi: Document the conventions on bi-arch systems.
36519
36520 2009-02-08  Bruno Haible  <bruno@clisp.org>
36521
36522         Document the AC_LIB_LINKFLAGS macro.
36523         * doc/havelib.texi: New file, mostly written on 2005-05-24.
36524         * doc/gnulib.texi: Include it.
36525
36526 2009-02-08  Bruno Haible  <bruno@clisp.org>
36527
36528         Fix wrong order of sections, compared to TOC.
36529         * doc/gnulib.texi: Include relocatable-maint.texi after the
36530         "Regular expressions" node, not before.
36531
36532 2009-02-08  Bruno Haible  <bruno@clisp.org>
36533
36534         Tests for module 'unicase/totitle'.
36535         * modules/unicase/totitle-tests: New file.
36536
36537         Tests for module 'unicase/tolower'.
36538         * modules/unicase/tolower-tests: New file.
36539
36540         Tests for module 'unicase/toupper'.
36541         * modules/unicase/toupper-tests: New file.
36542         * tests/unicase/test-mapping-part1.h: New file.
36543         * tests/unicase/test-mapping-part2.h: New file.
36544
36545         New module 'unicase/totitle'.
36546         * modules/unicase/totitle: New file.
36547         * lib/unicase/totitle.c: New file.
36548
36549         New module 'unicase/tolower'.
36550         * modules/unicase/tolower: New file.
36551         * lib/unicase/tolower.c: New file.
36552
36553         New module 'unicase/toupper'.
36554         * modules/unicase/toupper: New file.
36555         * lib/unicase/toupper.c: New file.
36556         * lib/unicase/simple-mapping.h: New file.
36557
36558         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
36559         (mapping_table): New structure.
36560         (output_simple_mapping): New function.
36561         (main): Invoke output_simple_mapping_test and output_simple_mapping.
36562         * modules/gen-uni-tables (Description): Update.
36563         * lib/unicase/toupper.h: New file, automatically generated by
36564         gen-uni-tables.
36565         * lib/unicase/tolower.h: New file, automatically generated by
36566         gen-uni-tables.
36567         * lib/unicase/totitle.h: New file, automatically generated by
36568         gen-uni-tables.
36569         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
36570         gen-uni-tables.
36571         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
36572         gen-uni-tables.
36573         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
36574         gen-uni-tables.
36575
36576         New module 'unicase/base'.
36577         * modules/unicase/base: New file.
36578         * lib/unicase.h: New file.
36579
36580 2009-02-08  Bruno Haible  <bruno@clisp.org>
36581
36582         New module 'uniwbrk/ulc-wordbreaks'.
36583         * modules/uniwbrk/ulc-wordbreaks: New file.
36584         * lib/uniwbrk/ulc-wordbreaks.c: New file.
36585
36586         New module 'uniwbrk/u32-wordbreaks'.
36587         * modules/uniwbrk/u32-wordbreaks: New file.
36588         * lib/uniwbrk/u32-wordbreaks.c: New file.
36589
36590         New module 'uniwbrk/u16-wordbreaks'.
36591         * modules/uniwbrk/u16-wordbreaks: New file.
36592         * lib/uniwbrk/u16-wordbreaks.c: New file.
36593
36594         New module 'uniwbrk/u8-wordbreaks'.
36595         * modules/uniwbrk/u8-wordbreaks: New file.
36596         * lib/uniwbrk/u8-wordbreaks.c: New file.
36597         * lib/uniwbrk/u-wordbreaks.h: New file.
36598
36599         New module 'uniwbrk/table'.
36600         * modules/uniwbrk/table: New file.
36601         * lib/uniwbrk/wbrktable.h: New file.
36602         * lib/uniwbrk/wbrktable.c: New file.
36603
36604         New module 'uniwbrk/wordbreak-property'.
36605         * modules/uniwbrk/wordbreak-property: New file.
36606         * lib/uniwbrk/wordbreak-property.c: New file.
36607
36608         * lib/gen-uni-tables.c (WBP_*): New enum items.
36609         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
36610         (unicode_org_wbp): New variable.
36611         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
36612         New functions.
36613         (wbp_table): New structure.
36614         (output_wbp, output_wbrk_tables): New functions.
36615         (main): Accept additional argument. Invoke fill_org_wbp,
36616         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
36617         output_wbrk_tables.
36618         * modules/gen-uni-tables (Description): Update.
36619         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
36620         gen-uni-tables.
36621
36622         New module 'uniwbrk/base'.
36623         * modules/uniwbrk/base: New file.
36624         * lib/uniwbrk.h: New file.
36625
36626 2009-02-08  Bruno Haible  <bruno@clisp.org>
36627
36628         Update to Unicode 5.1.0.
36629         * lib/gen-uni-tables.c (is_property_alphabetic): Include
36630         U+2185..U+2188.
36631         (is_property_default_ignorable_code_point): Don't include characters
36632         of category Cc or Cs and not-a-characters.
36633         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
36634         U+0D79, U+109E, U+109F, U+A60C.
36635         * lib/unictype/bidi_of.h: Regenerated.
36636         * lib/unictype/blocks.h: Regenerated.
36637         * lib/unictype/categ_C.h: Regenerated.
36638         * lib/unictype/categ_Cf.h: Regenerated.
36639         * lib/unictype/categ_Cn.h: Regenerated.
36640         * lib/unictype/categ_L.h: Regenerated.
36641         * lib/unictype/categ_Ll.h: Regenerated.
36642         * lib/unictype/categ_Lm.h: Regenerated.
36643         * lib/unictype/categ_Lo.h: Regenerated.
36644         * lib/unictype/categ_Lu.h: Regenerated.
36645         * lib/unictype/categ_M.h: Regenerated.
36646         * lib/unictype/categ_Mc.h: Regenerated.
36647         * lib/unictype/categ_Me.h: Regenerated.
36648         * lib/unictype/categ_Mn.h: Regenerated.
36649         * lib/unictype/categ_N.h: Regenerated.
36650         * lib/unictype/categ_Nd.h: Regenerated.
36651         * lib/unictype/categ_Nl.h: Regenerated.
36652         * lib/unictype/categ_No.h: Regenerated.
36653         * lib/unictype/categ_P.h: Regenerated.
36654         * lib/unictype/categ_Pd.h: Regenerated.
36655         * lib/unictype/categ_Pe.h: Regenerated.
36656         * lib/unictype/categ_Pf.h: Regenerated.
36657         * lib/unictype/categ_Pi.h: Regenerated.
36658         * lib/unictype/categ_Po.h: Regenerated.
36659         * lib/unictype/categ_Ps.h: Regenerated.
36660         * lib/unictype/categ_S.h: Regenerated.
36661         * lib/unictype/categ_Sk.h: Regenerated.
36662         * lib/unictype/categ_Sm.h: Regenerated.
36663         * lib/unictype/categ_So.h: Regenerated.
36664         * lib/unictype/categ_of.h: Regenerated.
36665         * lib/unictype/combining.h: Regenerated.
36666         * lib/unictype/ctype_alnum.h: Regenerated.
36667         * lib/unictype/ctype_alpha.h: Regenerated.
36668         * lib/unictype/ctype_graph.h: Regenerated.
36669         * lib/unictype/ctype_lower.h: Regenerated.
36670         * lib/unictype/ctype_print.h: Regenerated.
36671         * lib/unictype/ctype_punct.h: Regenerated.
36672         * lib/unictype/ctype_upper.h: Regenerated.
36673         * lib/unictype/decdigit.h: Regenerated.
36674         * lib/unictype/digit.h: Regenerated.
36675         * lib/unictype/mirror.h: Regenerated.
36676         * lib/unictype/numeric.h: Regenerated.
36677         * lib/unictype/pr_alphabetic.h: Regenerated.
36678         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
36679         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
36680         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
36681         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
36682         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
36683         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
36684         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
36685         * lib/unictype/pr_combining.h: Regenerated.
36686         * lib/unictype/pr_dash.h: Regenerated.
36687         * lib/unictype/pr_decimal_digit.h: Regenerated.
36688         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
36689         * lib/unictype/pr_deprecated.h: Regenerated.
36690         * lib/unictype/pr_diacritic.h: Regenerated.
36691         * lib/unictype/pr_extender.h: Regenerated.
36692         * lib/unictype/pr_format_control.h: Regenerated.
36693         * lib/unictype/pr_grapheme_base.h: Regenerated.
36694         * lib/unictype/pr_grapheme_extend.h: Regenerated.
36695         * lib/unictype/pr_grapheme_link.h: Regenerated.
36696         * lib/unictype/pr_id_continue.h: Regenerated.
36697         * lib/unictype/pr_id_start.h: Regenerated.
36698         * lib/unictype/pr_ideographic.h: Regenerated.
36699         * lib/unictype/pr_ignorable_control.h: Regenerated.
36700         * lib/unictype/pr_lowercase.h: Regenerated.
36701         * lib/unictype/pr_math.h: Regenerated.
36702         * lib/unictype/pr_numeric.h: Regenerated.
36703         * lib/unictype/pr_other_alphabetic.h: Regenerated.
36704         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
36705         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
36706         * lib/unictype/pr_other_id_continue.h: Regenerated.
36707         * lib/unictype/pr_other_lowercase.h: Regenerated.
36708         * lib/unictype/pr_other_math.h: Regenerated.
36709         * lib/unictype/pr_punctuation.h: Regenerated.
36710         * lib/unictype/pr_sentence_terminal.h: Regenerated.
36711         * lib/unictype/pr_soft_dotted.h: Regenerated.
36712         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
36713         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
36714         * lib/unictype/pr_unified_ideograph.h: Regenerated.
36715         * lib/unictype/pr_uppercase.h: Regenerated.
36716         * lib/unictype/pr_xid_continue.h: Regenerated.
36717         * lib/unictype/pr_xid_start.h: Regenerated.
36718         * lib/unictype/pr_zero_width.h: Regenerated.
36719         * lib/unictype/scripts.h: Regenerated.
36720         * lib/unictype/scripts_byname.gperf: Regenerated.
36721         * lib/unictype/sy_java_ident.h: Regenerated.
36722         * lib/unilbrk/lbrkprop1.h: Regenerated.
36723         * lib/unilbrk/lbrkprop2.h: Regenerated.
36724         * tests/unictype/test-categ_C.c: Regenerated.
36725         * tests/unictype/test-categ_Cf.c: Regenerated.
36726         * tests/unictype/test-categ_Cn.c: Regenerated.
36727         * tests/unictype/test-categ_L.c: Regenerated.
36728         * tests/unictype/test-categ_Ll.c: Regenerated.
36729         * tests/unictype/test-categ_Lm.c: Regenerated.
36730         * tests/unictype/test-categ_Lo.c: Regenerated.
36731         * tests/unictype/test-categ_Lu.c: Regenerated.
36732         * tests/unictype/test-categ_M.c: Regenerated.
36733         * tests/unictype/test-categ_Mc.c: Regenerated.
36734         * tests/unictype/test-categ_Me.c: Regenerated.
36735         * tests/unictype/test-categ_Mn.c: Regenerated.
36736         * tests/unictype/test-categ_N.c: Regenerated.
36737         * tests/unictype/test-categ_Nd.c: Regenerated.
36738         * tests/unictype/test-categ_Nl.c: Regenerated.
36739         * tests/unictype/test-categ_No.c: Regenerated.
36740         * tests/unictype/test-categ_P.c: Regenerated.
36741         * tests/unictype/test-categ_Pd.c: Regenerated.
36742         * tests/unictype/test-categ_Pe.c: Regenerated.
36743         * tests/unictype/test-categ_Pf.c: Regenerated.
36744         * tests/unictype/test-categ_Pi.c: Regenerated.
36745         * tests/unictype/test-categ_Po.c: Regenerated.
36746         * tests/unictype/test-categ_Ps.c: Regenerated.
36747         * tests/unictype/test-categ_S.c: Regenerated.
36748         * tests/unictype/test-categ_Sk.c: Regenerated.
36749         * tests/unictype/test-categ_Sm.c: Regenerated.
36750         * tests/unictype/test-categ_So.c: Regenerated.
36751         * tests/unictype/test-ctype_alnum.c: Regenerated.
36752         * tests/unictype/test-ctype_alpha.c: Regenerated.
36753         * tests/unictype/test-ctype_graph.c: Regenerated.
36754         * tests/unictype/test-ctype_lower.c: Regenerated.
36755         * tests/unictype/test-ctype_print.c: Regenerated.
36756         * tests/unictype/test-ctype_punct.c: Regenerated.
36757         * tests/unictype/test-ctype_upper.c: Regenerated.
36758         * tests/unictype/test-decdigit.h: Regenerated.
36759         * tests/unictype/test-digit.h: Regenerated.
36760         * tests/unictype/test-numeric.h: Regenerated.
36761         * tests/unictype/test-pr_alphabetic.c: Regenerated.
36762         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
36763         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
36764         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
36765         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
36766         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
36767         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
36768         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
36769         * tests/unictype/test-pr_combining.c: Regenerated.
36770         * tests/unictype/test-pr_dash.c: Regenerated.
36771         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
36772         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
36773         * tests/unictype/test-pr_deprecated.c: Regenerated.
36774         * tests/unictype/test-pr_diacritic.c: Regenerated.
36775         * tests/unictype/test-pr_extender.c: Regenerated.
36776         * tests/unictype/test-pr_format_control.c: Regenerated.
36777         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
36778         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
36779         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
36780         * tests/unictype/test-pr_id_continue.c: Regenerated.
36781         * tests/unictype/test-pr_id_start.c: Regenerated.
36782         * tests/unictype/test-pr_ideographic.c: Regenerated.
36783         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
36784         * tests/unictype/test-pr_lowercase.c: Regenerated.
36785         * tests/unictype/test-pr_math.c: Regenerated.
36786         * tests/unictype/test-pr_numeric.c: Regenerated.
36787         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
36788         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
36789         Regenerated.
36790         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
36791         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
36792         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
36793         * tests/unictype/test-pr_other_math.c: Regenerated.
36794         * tests/unictype/test-pr_punctuation.c: Regenerated.
36795         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
36796         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
36797         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
36798         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
36799         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
36800         * tests/unictype/test-pr_uppercase.c: Regenerated.
36801         * tests/unictype/test-pr_xid_continue.c: Regenerated.
36802         * tests/unictype/test-pr_xid_start.c: Regenerated.
36803         * tests/unictype/test-pr_zero_width.c: Regenerated.
36804
36805         Update to Unicode 5.1.0.
36806         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
36807         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
36808         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
36809         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
36810         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
36811         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
36812         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
36813         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
36814         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
36815         (nonspacing_table_ind): Update.
36816         * tests/uniwidth/test-uc_width2.sh: Update expected result.
36817
36818         Update to Unicode 5.1.0.
36819         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
36820         code transform.
36821         * lib/uniname/uniname.c (unicode_character_name,
36822         unicode_name_character): Add the range 0x1Fxxx to the code transform.
36823         * lib/uniname/uninames.h: Regenerated.
36824         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
36825
36826 2009-02-07  Bruno Haible  <bruno@clisp.org>
36827
36828         Merge gen-ctype and gen-lbrk into a single program.
36829         * lib/gen-uni-tables.c: New file, incorporating
36830         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
36831         Add directory prefixes to the names of the generated files.
36832         * lib/unictype/gen-ctype.c: Remove file.
36833         * lib/unilbrk/gen-lbrk.c: Remove file.
36834         * modules/gen-uni-tables: New file.
36835         * modules/unictype/gen-ctype: Remove file.
36836         * modules/unilbrk/gen-lbrk: Remove file.
36837
36838 2009-02-07  Bruno Haible  <bruno@clisp.org>
36839
36840         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
36841
36842         New module 'unistr/u32-strcoll'.
36843         * modules/unistr/u32-strcoll: New file.
36844         * lib/unistr/u32-strcoll.c: New file.
36845
36846         New module 'unistr/u16-strcoll'.
36847         * modules/unistr/u16-strcoll: New file.
36848         * lib/unistr/u16-strcoll.c: New file.
36849
36850         New module 'unistr/u8-strcoll'.
36851         * modules/unistr/u8-strcoll: New file.
36852         * lib/unistr/u8-strcoll.c: New file.
36853         * lib/unistr/u-strcoll.h: New file.
36854
36855 2009-02-07  Bruno Haible  <bruno@clisp.org>
36856
36857         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
36858         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36859         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
36860         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
36861         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
36862         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
36863
36864 2009-02-07  Bruno Haible  <bruno@clisp.org>
36865
36866         Make 64-bit clean.
36867         * lib/unictype/gen-ctype.c (output_predicate, output_category,
36868         output_combclass, output_bidi_category, output_decimal_digit,
36869         output_digit, output_numeric, output_mirror, output_scripts,
36870         output_ident_category): Use proper width specifier in format strings.
36871
36872 2009-02-07  Bruno Haible  <bruno@clisp.org>
36873
36874         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
36875         failure behaviour.
36876
36877 2009-02-07  Jim Meyering  <meyering@redhat.com>
36878
36879         regex: avoid compilation failure with upcoming gcc-4.4
36880         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
36881         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
36882         "... error: integer overflow in preprocessor expression".
36883
36884 2009-02-05  Ben Pfaff  <blp@gnu.org>
36885
36886         Fix link errors on Windows when close module is used.
36887         * modules/close: Add $(LIB_CLOSE) to Link section.
36888         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
36889         $(LIB_CLOSE) on Windows.
36890
36891 2009-02-05  Jim Meyering  <meyering@redhat.com>
36892
36893         still avoid unused-parameter warnings, but do it cleanly
36894         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
36895         (get_fs_usage): Cast to void instead.
36896         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
36897         (dev_from_mount_options, read_file_system_list): Cast to void.
36898         Prompted by Bruno Haible.
36899
36900 2009-02-04  Jim Meyering  <meyering@redhat.com>
36901
36902         fsusage.c: correct copyright year
36903         * lib/fsusage.c: Reflect year in which the change is pushed into
36904
36905         avoid misc. warnings
36906         * lib/fsusage.c (UNUSED_PARAM): Define.
36907         (get_fs_usage): Mark parameter "disk" as unused.
36908         * lib/getugroups.c (getgrent): Use "void" in prototype.
36909         * lib/mountlist.c: Mark unused parameters.
36910         (read_file_system_list): Declare a local with "const".
36911         * lib/nanosleep.c (getnow): Declare static.
36912         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
36913
36914         dirfd: set errno upon failure
36915         * lib/dirfd.c: Include <errno.h>.
36916         Set errno to ENOTSUP when returning -1.
36917         * modules/dirfd (Depends-on): Add errno.
36918         Suggested by John Kodis <kodis@comcast.net>.
36919
36920 2009-02-01  Bruno Haible  <bruno@clisp.org>
36921
36922         Don't assume sizeof (long) >= sizeof (void *).
36923         * lib/memcmp.c: Include stdint.h.
36924         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
36925         srcp2 to 'const byte *'.
36926         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
36927         types to uintptr_t.
36928         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
36929         * modules/memcmp (Depends-on): Add stdint.
36930         Reported by Ozkan Sezer <sezeroz@gmail.com>.
36931
36932 2009-01-30  Eric Blake  <ebb9@byu.net>
36933
36934         fix more require-before-expand issues
36935         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
36936         expand, AC_PROG_AWK.
36937         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
36938
36939 2009-01-28  Eric Blake  <ebb9@byu.net>
36940
36941         version-etc: use consistent URL formatting
36942         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
36943         Improve formatting.  Use fputs for string without %.
36944
36945 2009-01-28  Jim Meyering  <meyering@redhat.com>
36946
36947         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
36948         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
36949         "underquoted definition of NAME" from autoconf-2.59.
36950
36951 2009-01-28  Bruno Haible  <bruno@clisp.org>
36952
36953         * doc/gnulib.texi: Add "Obsolete modules" to index.
36954
36955 2009-01-28  Jim Meyering  <meyering@redhat.com>
36956
36957         useless-if-before-free: recognize more variants
36958         * build-aux/useless-if-before-free: Also recognize e.g.,
36959         if (NULL != p) free (p);
36960
36961 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
36962
36963         test-getaddrinfo: skip (don't fail) this test when there's no network
36964         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
36965         on the presumption that it means you lack network access.
36966
36967 2009-01-26  Jim Meyering  <meyering@redhat.com>
36968
36969         fflush: avoid warnings on modern systems
36970         * lib/fflush.c (rpl_fflush): Move declarations of locals,
36971         pos and result, into scopes where they're used.
36972
36973 2009-01-26  Eric Blake  <ebb9@byu.net>
36974
36975         Silence warning reintroduced by recent extensions patch.
36976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
36977         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
36978         autoconf.
36979
36980         Backport improved autoconf semantics of AC_DEFUN_ONCE.
36981         * m4/00gnulib.m4: New file.
36982         * gnulib-tool (func_get_filelist): Always use it.
36983         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
36984         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
36985
36986 2009-01-25  Bruno Haible  <bruno@clisp.org>
36987
36988         Make test-quotearg work on MacOS X and AIX.
36989         * tests/test-quotearg.sh: New file.
36990         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
36991         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
36992         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
36993         include <libintl.h>.
36994         (fake_locale): Remove variable.
36995         (gettext, dgettext, dcgettext): Remove functions.
36996         (main): Instead of setting a fake locale, set a real locale. Call
36997         textdomain and bindtextdomain.
36998         * modules/quotearg-tests (Files): Add the new files.
36999         (Depends-on): Add gettext, setenv, unsetenv.
37000         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37001         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37002         Augment TESTS_ENVIRONMENT.
37003
37004 2009-01-25  Bruno Haible  <bruno@clisp.org>
37005
37006         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37007         fr_FR.ISO8859-1 locale on MacOS X.
37008         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37009         ja_JP.eucJP locale on MacOS X.
37010         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37011         zh_CN.GB18030 locale on MacOS X.
37012
37013 2009-01-25  Bruno Haible  <bruno@clisp.org>
37014
37015         Avoid link errors on MacOS X 10.3.
37016         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37017         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37018
37019 2009-01-25  Bruno Haible  <bruno@clisp.org>
37020
37021         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37022         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37023         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37024         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37025         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37026         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37027         posix_spawnattr_init, posix_spawnattr_setsigmask,
37028         posix_spawnattr_setflags, posix_spawnattr_destroy.
37029
37030         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37031         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37032         * modules/execute (Files): Remove m4/posix_spawn.m4.
37033         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37034         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37035         posix_spawnattr_init, posix_spawnattr_setsigmask,
37036         posix_spawnattr_setflags, posix_spawnattr_destroy.
37037
37038 2009-01-25  Bruno Haible  <bruno@clisp.org>
37039
37040         * lib/glthread/threadlib.c: Include <stdlib.h>.
37041
37042 2009-01-25  Bruno Haible  <bruno@clisp.org>
37043
37044         * lib/glthread/threadlib.c (dummy): New declaration.
37045
37046 2009-01-25  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37049         multibyte characters also for the GB18030 encoding. Don't crash when
37050         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37051
37052 2009-01-25  Bruno Haible  <bruno@clisp.org>
37053
37054         Avoid redefining 'struct random_data' on OSF/1 5.1.
37055         * lib/stdlib.in.h: Include <random.h> if it exists.
37056         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37057         HAVE_RANDOM_H. Include <random.h> when testing whether
37058         'struct random_data' exists.
37059         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37060
37061 2009-01-25  Bruno Haible  <bruno@clisp.org>
37062
37063         Don't install charset.alias on MacOS X >= 10.3.
37064         * lib/localcharset.c (DARWIN7): New macro.
37065         (get_charset_aliases): Hardcode the result for Darwin7.
37066         * modules/localcharset (install-exec-local): Don't install
37067         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37068
37069 2009-01-25  Bruno Haible  <bruno@clisp.org>
37070
37071         Don't install charset.alias on mingw and Cygwin.
37072         * modules/localcharset (install-exec-local): Don't install
37073         charset.alias on mingw and Cygwin, if the file does not yet exist.
37074         The result for these platforms is hardcoded in localcharset.c.
37075
37076 2009-01-25  Bruno Haible  <bruno@clisp.org>
37077
37078         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37080         before requiring AC_USE_SYSTEM_EXTENSIONS.
37081
37082 2009-01-25  Jim Meyering  <meyering@redhat.com>
37083
37084         c-strtod: avoid warnings
37085         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37086         "assignment discards qualifiers from pointer target type" warnings.
37087
37088 2009-01-24  Bruno Haible  <bruno@clisp.org>
37089
37090         Add support for non-UTF-8 locales on MacOS X.
37091         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37092         canonical encodings. For Darwin 7 and newer, don't map traditional
37093         encodings to UTF-8.
37094         Reported by Vincent Lefevre <vincent@vinc17.org>
37095         at <http://savannah.gnu.org/bugs/?25235>.
37096
37097 2009-01-24  Bruno Haible  <bruno@clisp.org>
37098
37099         * doc/gnulib.texi (Obsolete modules): New section.
37100         Reported by Mike Frysinger <vapier@gentoo.org>.
37101
37102 2009-01-24  Bruno Haible  <bruno@clisp.org>
37103
37104         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37105         (%.dvi): New rule.
37106
37107 2009-01-24  Bruno Haible  <bruno@clisp.org>
37108
37109         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37110         Reported by Eric Blake.
37111
37112 2009-01-24  Bruno Haible  <bruno@clisp.org>
37113
37114         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37115         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37116         Reported by Gary V. Vaughan <gary@gnu.org>.
37117
37118 2009-01-24  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37121
37122 2009-01-23  Bruno Haible  <bruno@clisp.org>
37123
37124         Make c-strtod, c-strtold usable in libraries.
37125         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37126         (C_STRTOD): Call strdup instead of xstrdup.
37127         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37128         * modules/c-strtold (Depends-on): Likewise.
37129         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37130         * NEWS: Mention the change.
37131         Reported by Michael Gold <mgold@ncf.ca>.
37132
37133 2009-01-23  Jim Meyering  <meyering@redhat.com>
37134
37135         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37136         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37137         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37138
37139 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37140
37141         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37142         GNU CoreUtils.
37143         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37144         * modules/version-etc (Description): Update.
37145
37146 2009-01-22  Bruno Haible  <bruno@clisp.org>
37147
37148         Cache the C locale object.
37149         * lib/c-strtod.c (c_locale_cache): New variable.
37150         (c_locale): New function.
37151         (C_STRTOD): Use it, and don't call freelocale.
37152         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37153         Suggested by Paolo Bonzini.
37154
37155 2009-01-21  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37158         conditions other than overflow.
37159
37160 2009-01-21  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/c-strtod.c: Include errno.h.
37163         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37164         value from STRTOD_L and STRTOD.
37165
37166 2009-01-21  Bruno Haible  <bruno@clisp.org>
37167         and Jim Meyering  <meyering@redhat.com>
37168
37169         nanosleep: skip configure test (fail it) for apple universal builds
37170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37171         universal builds, assume that nanosleep does not work.
37172         * modules/nanosleep (Depends-on): Add multiarch.
37173
37174         mktime: skip configure test (fail it) for apple universal builds
37175         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37176         universal builds, assume that mktime does not work.
37177         * modules/mktime (Depends-on): Add multiarch.
37178
37179 2009-01-21  Eric Blake  <ebb9@byu.net>
37180
37181         multiarch: avoid expand-before-require warning
37182         * modules/multiarch (configure.ac): Require, rather than expand,
37183         gl_MULTIARCH.
37184         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37185         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37186         enforce that all clients require it.  Partial reversion of
37187         2008-12-29 patch.
37188
37189         error: avoid expand-before-require warning
37190         * modules/errno (configure.ac): Require, rather than expand,
37191         gl_HEADER_ERRNO_H.
37192         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37193         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37194         enforce that all clients require it.
37195
37196         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37197         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37198         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37199         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37200
37201 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37202
37203         Revert:
37204         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37205
37206         regex: do not depend on obsolete modules.
37207         * modules/regex: Remove memcmp and memmove.
37208
37209 2009-01-20  Bruno Haible  <bruno@clisp.org>
37210
37211         Make the 'link' module link on Windows NT 4.
37212         * lib/link.c (_WIN32_WINNT): Don't define.
37213         (CreateHardLinkFuncType): New type.
37214         (CreateHardLinkFunc, initialized): New variables.
37215         (initialize): New function.
37216         (link): Invoke CreateHardLink indirectly through the function pointer.
37217
37218 2009-01-20  Bruno Haible  <bruno@clisp.org>
37219
37220         Fix compilation failure on mingw.
37221         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37222
37223 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37224
37225         * doc/c-strtod.texi: Mention a couple of restrictions.
37226
37227 2009-01-20  Jim Meyering  <meyering@redhat.com>
37228
37229         gettimeofday: move more declarations out of functions
37230         * lib/gettimeofday.c: Move extern declarations of tzset and
37231         gmtime out of containing functions.  Prompted by Bruno Haible.
37232
37233 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37234
37235         regex: do not depend on obsolete modules.
37236         * modules/regex: Remove memcmp and memmove.
37237
37238 2009-01-19  Bruno Haible  <bruno@clisp.org>
37239
37240         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37241         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37242         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37243         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37244         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37245
37246 2009-01-19  Bruno Haible  <bruno@clisp.org>
37247
37248         * tests/test-link.c: Include <errno.h>.
37249         (main): Exit with code 77 when a hard link cannot be created due to
37250         the file system.
37251         * tests/test-link.sh: Skip test when a hard link cannot be created due
37252         to the file system.
37253         Suggested by Eric Blake.
37254
37255 2009-01-19  Martin Lambers  <marlam@marlam.de>
37256
37257         * modules/link-tests: New file.
37258         * tests/test-link.sh: New file.
37259         * tests/test-link.c: New file.
37260
37261 2009-01-19  Eric Blake  <ebb9@byu.net>
37262
37263         doc: mention another function added in cygwin 1.7.0
37264         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37265         Another new function in cygwin 1.7.
37266
37267 2009-01-19  Bruno Haible  <bruno@clisp.org>
37268
37269         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37270         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37271         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37272         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37274         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37275         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37276         * m4/md4.m4 (gl_MD4): Likewise.
37277         * m4/md5.m4 (gl_MD5): Likewise.
37278         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37279         * m4/sha1.m4 (gl_SHA1): Likewise.
37280         * m4/sha256.m4 (gl_SHA256): Likewise.
37281         * m4/sha512.m4 (gl_SHA512): Likewise.
37282
37283 2009-01-19  Bruno Haible  <bruno@clisp.org>
37284
37285         * modules/uniname/uniname-tests (Depends-on): Add progname.
37286         * tests/uniname/test-uninames.c: Include progname.h.
37287         (main): Call set_program_name.
37288
37289         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37290         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37291         (main): Call set_program_name.
37292
37293         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37294         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37295         (main): Call set_program_name.
37296
37297         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37298         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37299         (main): Call set_program_name.
37300
37301         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37302         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37303         (main): Call set_program_name.
37304
37305         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37306         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37307         (main): Call set_program_name.
37308
37309         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37310         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37311         (main): Call set_program_name.
37312
37313         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37314         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37315         (main): Call set_program_name.
37316
37317         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37318         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37319         (main): Call set_program_name.
37320
37321 2009-01-19  Eric Blake  <ebb9@byu.net>
37322
37323         test-unistd: test previous patch
37324         * tests/test-unistd.c: Test *_FILENO macros.
37325
37326         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37327         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37328         Guarantee a definition.
37329         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37330         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37331         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37332         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37333         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37334         Likewise.
37335         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37336         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37337         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37338         Likewise.
37339         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37340         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37341         (STDERR_FILENO): Likewise.
37342         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37343         (STDERR_FILENO): Likewise.
37344         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37345         (STDERR_FILENO): Likewise.
37346         Reported by Elbert Pol.
37347
37348 2009-01-19  Eric Blake  <ebb9@byu.net>
37349
37350         doc: mention more functions added in cygwin 1.7.0
37351         * doc/posix-functions/abort.texi (abort): Update wording related
37352         to cygwin.
37353         * doc/posix-functions/daylight.texi (daylight): Likewise.
37354         * doc/posix-functions/optarg.texi (optarg): Likewise.
37355         * doc/posix-functions/optarg.texi (opterr): Likewise.
37356         * doc/posix-functions/optarg.texi (optind): Likewise.
37357         * doc/posix-functions/optarg.texi (optopt): Likewise.
37358         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37359         worked in 1.5.x, and was withdrawn in 1.7.
37360         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37361         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37362         cygwin versions.
37363         * doc/posix-functions/perror.texi (perror): Likewise.
37364         * doc/posix-functions/printf.texi (printf): Likewise.
37365         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37366         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37367         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37368         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37369         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37370         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37371         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37372         Likewise.
37373         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37374         Likewise.
37375         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37376         this function.
37377         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37378         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37379         Likewise.
37380         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37381         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37382         * doc/posix-functions/confstr.texi (confstr): Likewise.
37383         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37384         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37385         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37386         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37387         * doc/posix-functions/fputws.texi (fputws): Likewise.
37388         * doc/posix-functions/fwide.texi (fwide): Likewise.
37389         * doc/posix-functions/getwc.texi (getwc): Likewise.
37390         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37391         * doc/posix-functions/putwc.texi (putwc): Likewise.
37392         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37393         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37394         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37395         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37396         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37397         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37398         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37399         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37400         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37401         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37402         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37403
37404 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37405
37406         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37407         * lib/ioctl.c: Include <sys/ioctl.h>.
37408
37409 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37410
37411         * modules/getdate-tests (Depends-on): Add progname.
37412         * tests/test-getdate.c: Use progname module, to avoid link errors
37413         on non-glibc systems.
37414
37415 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37416
37417         * modules/filenamecat-tests (Depends-on): Add progname.
37418         * modules/fstrcmp-tests (Depends-on): Likewise.
37419
37420         * tests/test-filenamecat.c: Use progname module, to avoid link
37421         errors on non-glibc systems.
37422         * tests/test-fstrcmp.c: Likewise.
37423
37424 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37425
37426         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37427         * lib/gettimeofday.c: Move extern declaration out of function.
37428
37429 2009-01-18  Bruno Haible  <bruno@clisp.org>
37430
37431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37432         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37433         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37434
37435 2009-01-18  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/strftime.c (MEMPCPY): Remove unused macro.
37438         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37439
37440 2009-01-18  Martin Lambers  <marlam@marlam.de>
37441
37442         New module 'link'.
37443         * lib/unistd.in.h (link): New declaration.
37444         * lib/link.c: New file.
37445         * m4/link.m4: New file.
37446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37447         HAVE_LINK.
37448         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37449         * modules/link: New file.
37450         * doc/posix-functions/link.texi: Mention the new module.
37451
37452 2009-01-18  Bruno Haible  <bruno@clisp.org>
37453
37454         * tests/test-avltree_list.c (main): Call set_program_name.
37455         * tests/test-avltree_oset.c (main): Likewise.
37456         * tests/test-obstack-printf.c: Include progname.h.
37457         (main): Call set_program_name.
37458         * tests/test-quotearg.c: Include progname.h.
37459         (main): Call set_program_name.
37460         * tests/test-xmemdup0.c: Include progname.h.
37461         (main): Call set_program_name.
37462
37463 2009-01-18  Bruno Haible  <bruno@clisp.org>
37464
37465         New module 'alphasort'.
37466         * lib/dirent.in.h (alphasort): New declaration.
37467         * lib/alphasort.c: New file, from glibc with modifications.
37468         * m4/alphasort.m4: New file.
37469         * modules/alphasort: New file.
37470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
37471         HAVE_ALPHASORT.
37472         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
37473         HAVE_ALPHASORT.
37474         * doc/posix-functions/alphasort.texi: Mention the new module and the
37475         portability problems.
37476
37477 2009-01-18  Bruno Haible  <bruno@clisp.org>
37478
37479         New module 'scandir'.
37480         * lib/dirent.in.h (scandir): New declaration.
37481         * lib/scandir.c: New file, from glibc with modifications.
37482         * m4/scandir.m4: New file.
37483         * modules/scandir: New file.
37484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
37485         HAVE_SCANDIR.
37486         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
37487         HAVE_SCANDIR.
37488         * doc/posix-functions/scandir.texi: Mention the new module and the
37489         portability problems.
37490
37491 2009-01-17  Bruno Haible  <bruno@clisp.org>
37492
37493         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
37494         Update documentation.
37495         (func_remove_suffix): Escape all dots in the suffix. Update
37496         documentation.
37497         (func_filter_filelist): Update documentation.
37498         Reported by Ralf Wildenhues.
37499
37500 2009-01-17  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/dprintf-posix-tests: New file.
37503         * tests/test-dprintf-posix.sh: New file.
37504         * tests/test-dprintf-posix.c: New file.
37505
37506         New modules 'dprintf', 'dprintf-posix'.
37507         * lib/stdio.in.h (dprintf): New declaration.
37508         * lib/dprintf.c: New file.
37509         * m4/dprintf.m4: New file.
37510         * m4/dprintf-posix.m4: New file.
37511         * modules/dprintf: New file.
37512         * modules/dprintf-posix: New file.
37513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
37514         HAVE_DPRINTF, REPLACE_DPRINTF.
37515         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
37516         HAVE_DPRINTF, REPLACE_DPRINTF.
37517         * doc/posix-functions/dprintf.texi: Mention the new modules.
37518
37519 2009-01-17  Bruno Haible  <bruno@clisp.org>
37520
37521         * modules/vdprintf-posix-tests: New file.
37522         * tests/test-vdprintf-posix.sh: New file.
37523         * tests/test-vdprintf-posix.c: New file.
37524
37525         New modules 'vdprintf', 'vdprintf-posix'.
37526         * lib/stdio.in.h (vdprintf): New declaration.
37527         * lib/vdprintf.c: New file.
37528         * m4/vdprintf.m4: New file.
37529         * m4/vdprintf-posix.m4: New file.
37530         * modules/vdprintf: New file.
37531         * modules/vdprintf-posix: New file.
37532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
37533         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37534         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
37535         HAVE_VDPRINTF, REPLACE_VDPRINTF.
37536         * doc/posix-functions/vdprintf.texi: Mention the new modules.
37537
37538 2009-01-17  Bruno Haible  <bruno@clisp.org>
37539
37540         Fix replacement of fopen on mingw.
37541         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
37542         mingw.
37543
37544 2009-01-17  Bruno Haible  <bruno@clisp.org>
37545
37546         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
37547         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
37548
37549 2009-01-17  Bruno Haible  <bruno@clisp.org>
37550
37551         Avoid test-fflush2.sh failure on mingw.
37552         * tests/test-fflush2.c: Include binary-io.h.
37553         (main): Put standard input into binary mode.
37554         * modules/fflush-tests (Depends-on): Add binary-io.
37555
37556 2009-01-17  Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/wchar.in.h: In another particular situation, include only the
37559         system's <wchar.h> file.
37560         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
37561         Reported by Albert Chin-A-Young <china@thewrittenword.com>
37562         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
37563
37564 2009-01-17  Bruno Haible  <bruno@clisp.org>
37565
37566         Support for stripping executables in --enable-relocatable.
37567         * build-aux/install-reloc: Expect one more argument, or an environment
37568         variable RELOC_STRIP_PROG. If set, strip the destination program and
37569         its wrapper.
37570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
37571         RELOC_STRIP_PROG.
37572         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
37573         to set RELOCATABLE_STRIP.
37574         * NEWS: Mention the new Makefile requirement.
37575
37576 2009-01-17  Bruno Haible  <bruno@clisp.org>
37577
37578         * build-aux/install-reloc: Remove debugging information left over by
37579         C compiler on MacOS X.
37580
37581 2009-01-17  Bruno Haible  <bruno@clisp.org>
37582
37583         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
37584         * lib/progreloc.c (find_executable): Fix type of pointer passed to
37585         _NSGetExecutablePath.
37586
37587 2009-01-16  Jim Meyering  <meyering@redhat.com>
37588
37589         strerror: avoid warnings about discarding "const"
37590         * lib/strerror.c (rpl_strerror): Instead of returning a const
37591         string from each and every "case", use a variable, and add a single
37592         cast after the switch.
37593
37594 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
37595
37596         * lib/arpa_inet.in.h: Add extern "C" block for C++.
37597
37598 2009-01-16  Bruno Haible  <bruno@clisp.org>
37599
37600         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
37601         array initializer syntax that also works in C++ mode.
37602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37603
37604 2009-01-16  Jim Meyering  <meyering@redhat.com>
37605
37606         poll: suppress a warning
37607         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
37608         to ignore "...unsigned expression < 0 is always false" warnings.
37609
37610 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
37611
37612         poll: remove declarations of unused variables
37613         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
37614         sockbuf and optlen.
37615
37616 2009-01-15  Bruno Haible  <bruno@clisp.org>
37617
37618         Make fflush-after-ungetc POSIX compliant on BSD systems.
37619         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
37620         (clear_ungetc_buffer): Implement also for other systems.
37621         (rpl_fflush): On glibc systems, invoke
37622         clear_ungetc_buffer_preserving_position. Otherwise, invoke
37623         clear_ungetc_buffer after fetching the stream's position, not before.
37624
37625 2009-01-15  Bruno Haible  <bruno@clisp.org>
37626
37627         Make fflush-after-ungetc POSIX compliant on glibc systems.
37628         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
37629         after ungetc.
37630         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
37631         (rpl_fflush): On glibc systems, simply call the system's fflush
37632         function after clearing the ungetc buffer.
37633         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
37634         Instead, lseek only to the end of file, then use the system's fseeko
37635         for the rest. On glibc systems, reset the EOF indicator bit.
37636
37637 2009-01-15  Jim Meyering  <meyering@redhat.com>
37638
37639         openmp.m4: revert quote-adding change, for portability to older autoconf
37640         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
37641         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
37642         Simon Josefsson noticed the problem when using autoconf-2.61.
37643
37644 2009-01-15  Bruno Haible  <bruno@clisp.org>
37645
37646         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
37647         * tests/test-fflush2.c (ASSERT): Always fail.
37648         (main): Add two tests for fflush() after ungetc(), taking into account
37649         the Austin Group's clarification.
37650         Suggested by Eric Blake.
37651
37652 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
37653
37654         mktime.m4: remove K&R-style function prototypes
37655         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
37656         for the Sun C++ compiler.
37657
37658 2009-01-14  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
37661         while including <wchar.h>.
37662         * lib/wchar.in.h: In two particular situations on HP-UX, include only
37663         the system's <wchar.h> file.
37664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37665
37666 2009-01-14  Bruno Haible  <bruno@clisp.org>
37667
37668         * m4/csharp.m4: Don't mention gettext on the serial number line.
37669         * m4/csharpexec.m4: Likewise.
37670         * m4/eaccess.m4: Likewise.
37671         * m4/javaexec.m4: Likewise.
37672         * m4/sig_atomic_t.m4: Likewise.
37673         * m4/tmpdir.m4: Likewise.
37674         * m4/intldir.m4: Bump gettext version.
37675         * m4/lib-ld.m4: Likewise.
37676
37677 2009-01-14  Bruno Haible  <bruno@clisp.org>
37678
37679         * lib/progname.c (set_program_name): Add more comments.
37680         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37681
37682 2009-01-14  Simon Josefsson  <simon@josefsson.org>
37683
37684         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
37685         were sys/stat.h does not define it.
37686
37687 2009-01-14  Jim Meyering  <meyering@redhat.com>
37688
37689         many *.m4 files: improve m4 quoting
37690         99% of this change was performed by running the following commands:
37691         git ls-files | grep '\.m4$' | xargs perl -pi \
37692           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
37693           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37694           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
37695           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
37696         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
37697         The remainder were to add Copyright dates, increment serial numbers,
37698         undo some changes in comments, exclude m4/intl.m4, and add quotes
37699         around the "1" in ",1" where the unusual spacing prohibited the
37700         above regexps from doing the job.  For more details, see
37701         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
37702         * m4/acl.m4: Modified.
37703         * m4/afs.m4: Likewise.
37704         * m4/alloca.m4: Likewise.
37705         * m4/argp.m4: Likewise.
37706         * m4/argz.m4: Likewise.
37707         * m4/atexit.m4: Likewise.
37708         * m4/bison-i18n.m4: Likewise.
37709         * m4/bison.m4: Likewise.
37710         * m4/byteswap.m4: Likewise.
37711         * m4/c-stack.m4: Likewise.
37712         * m4/c-strtod.m4: Likewise.
37713         * m4/calloc.m4: Likewise.
37714         * m4/canonicalize-lgpl.m4: Likewise.
37715         * m4/chown.m4: Likewise.
37716         * m4/clock_time.m4: Likewise.
37717         * m4/codeset.m4: Likewise.
37718         * m4/copy-file.m4: Likewise.
37719         * m4/csharp.m4: Likewise.
37720         * m4/csharpcomp.m4: Likewise.
37721         * m4/csharpexec.m4: Likewise.
37722         * m4/d-ino.m4: Likewise.
37723         * m4/d-type.m4: Likewise.
37724         * m4/dirfd.m4: Likewise.
37725         * m4/double-slash-root.m4: Likewise.
37726         * m4/eaccess.m4: Likewise.
37727         * m4/eealloc.m4: Likewise.
37728         * m4/environ.m4: Likewise.
37729         * m4/errno_h.m4: Likewise.
37730         * m4/euidaccess.m4: Likewise.
37731         * m4/execute.m4: Likewise.
37732         * m4/fatal-signal.m4: Likewise.
37733         * m4/fchdir.m4: Likewise.
37734         * m4/fcntl_h.m4: Likewise.
37735         * m4/fileblocks.m4: Likewise.
37736         * m4/filenamecat.m4: Likewise.
37737         * m4/findprog.m4: Likewise.
37738         * m4/flexmember.m4: Likewise.
37739         * m4/fnmatch.m4: Likewise.
37740         * m4/fopen.m4: Likewise.
37741         * m4/fpending.m4: Likewise.
37742         * m4/fprintf-posix.m4: Likewise.
37743         * m4/free.m4: Likewise.
37744         * m4/frexp.m4: Likewise.
37745         * m4/frexpl.m4: Likewise.
37746         * m4/fsusage.m4: Likewise.
37747         * m4/ftruncate.m4: Likewise.
37748         * m4/gc-camellia.m4: Likewise.
37749         * m4/gc-random.m4: Likewise.
37750         * m4/gc.m4: Likewise.
37751         * m4/getaddrinfo.m4: Likewise.
37752         * m4/getcwd-abort-bug.m4: Likewise.
37753         * m4/getcwd-path-max.m4: Likewise.
37754         * m4/getdate.m4: Likewise.
37755         * m4/getdomainname.m4: Likewise.
37756         * m4/getgroups.m4: Likewise.
37757         * m4/gethostname.m4: Likewise.
37758         * m4/gethrxtime.m4: Likewise.
37759         * m4/getline.m4: Likewise.
37760         * m4/getloadavg.m4: Likewise.
37761         * m4/getndelim2.m4: Likewise.
37762         * m4/getpass.m4: Likewise.
37763         * m4/gettext.m4: Likewise.
37764         * m4/gettime.m4: Likewise.
37765         * m4/gettimeofday.m4: Likewise.
37766         * m4/gnulib-common.m4: Likewise.
37767         * m4/group-member.m4: Likewise.
37768         * m4/host-os.m4: Likewise.
37769         * m4/iconv.m4: Likewise.
37770         * m4/iconv_open.m4: Likewise.
37771         * m4/inet_ntop.m4: Likewise.
37772         * m4/inet_pton.m4: Likewise.
37773         * m4/inline.m4: Likewise.
37774         * m4/intldir.m4: Likewise.
37775         * m4/intlmacosx.m4: Likewise.
37776         * m4/intmax.m4: Likewise.
37777         * m4/intmax_t.m4: Likewise.
37778         * m4/inttypes.m4: Likewise.
37779         * m4/inttypes_h.m4: Likewise.
37780         * m4/inttypes-pri.m4: Likewise.
37781         * m4/isapipe.m4: Likewise.
37782         * m4/isnand.m4: Likewise.
37783         * m4/isnanf.m4: Likewise.
37784         * m4/isnanl.m4: Likewise.
37785         * m4/javacomp.m4: Likewise.
37786         * m4/javaexec.m4: Likewise.
37787         * m4/jm-winsz1.m4: Likewise.
37788         * m4/jm-winsz2.m4: Likewise.
37789         * m4/lchown.m4: Likewise.
37790         * m4/lcmessage.m4: Likewise.
37791         * m4/ldexpl.m4: Likewise.
37792         * m4/lib-ld.m4: Likewise.
37793         * m4/lib-link.m4: Likewise.
37794         * m4/libsigsegv.m4: Likewise.
37795         * m4/link-follow.m4: Likewise.
37796         * m4/localcharset.m4: Likewise.
37797         * m4/locale-fr.m4: Likewise.
37798         * m4/locale-ja.m4: Likewise.
37799         * m4/locale-tr.m4: Likewise.
37800         * m4/locale-zh.m4: Likewise.
37801         * m4/lock.m4: Likewise.
37802         * m4/longlong.m4: Likewise.
37803         * m4/ls-mntd-fs.m4: Likewise.
37804         * m4/lstat.m4: Likewise.
37805         * m4/malloc.m4: Likewise.
37806         * m4/mathl.m4: Likewise.
37807         * m4/mbrtowc.m4: Likewise.
37808         * m4/mbstate_t.m4: Likewise.
37809         * m4/mbswidth.m4: Likewise.
37810         * m4/memchr.m4: Likewise.
37811         * m4/memcmp.m4: Likewise.
37812         * m4/memcpy.m4: Likewise.
37813         * m4/memmem.m4: Likewise.
37814         * m4/memmove.m4: Likewise.
37815         * m4/mempcpy.m4: Likewise.
37816         * m4/memrchr.m4: Likewise.
37817         * m4/memset.m4: Likewise.
37818         * m4/minmax.m4: Likewise.
37819         * m4/mkdir-slash.m4: Likewise.
37820         * m4/mkdtemp.m4: Likewise.
37821         * m4/mktime.m4: Likewise.
37822         * m4/mmap-anon.m4: Likewise.
37823         * m4/mountlist.m4: Likewise.
37824         * m4/nanosleep.m4: Likewise.
37825         * m4/nls.m4: Likewise.
37826         * m4/nocrash.m4: Likewise.
37827         * m4/open.m4: Likewise.
37828         * m4/openat.m4: Likewise.
37829         * m4/openmp.m4: Likewise.
37830         * m4/pathmax.m4: Likewise.
37831         * m4/perl.m4: Likewise.
37832         * m4/physmem.m4: Likewise.
37833         * m4/pipe.m4: Likewise.
37834         * m4/po.m4: Likewise.
37835         * m4/poll.m4: Likewise.
37836         * m4/posixtm.m4: Likewise.
37837         * m4/posixver.m4: Likewise.
37838         * m4/printf-frexp.m4: Likewise.
37839         * m4/printf-frexpl.m4: Likewise.
37840         * m4/printf-posix.m4: Likewise.
37841         * m4/printf-posix-rpl.m4: Likewise.
37842         * m4/printf.m4: Likewise.
37843         * m4/progtest.m4: Likewise.
37844         * m4/putenv.m4: Likewise.
37845         * m4/readline.m4: Likewise.
37846         * m4/readlink.m4: Likewise.
37847         * m4/readutmp.m4: Likewise.
37848         * m4/realloc.m4: Likewise.
37849         * m4/regex.m4: Likewise.
37850         * m4/relocatable.m4: Likewise.
37851         * m4/relocatable-lib.m4: Likewise.
37852         * m4/rename-dest-slash.m4: Likewise.
37853         * m4/rename.m4: Likewise.
37854         * m4/rmdir-errno.m4: Likewise.
37855         * m4/rmdir.m4: Likewise.
37856         * m4/roundf.m4: Likewise.
37857         * m4/roundl.m4: Likewise.
37858         * m4/rpmatch.m4: Likewise.
37859         * m4/save-cwd.m4: Likewise.
37860         * m4/selinux-selinux-h.m4: Likewise.
37861         * m4/setenv.m4: Likewise.
37862         * m4/settime.m4: Likewise.
37863         * m4/sig2str.m4: Likewise.
37864         * m4/sig_atomic_t.m4: Likewise.
37865         * m4/signalblocking.m4: Likewise.
37866         * m4/signbit.m4: Likewise.
37867         * m4/sigpipe.m4: Likewise.
37868         * m4/sockets.m4: Likewise.
37869         * m4/sockpfaf.m4: Likewise.
37870         * m4/st_dm_mode.m4: Likewise.
37871         * m4/stat-time.m4: Likewise.
37872         * m4/stdbool.m4: Likewise.
37873         * m4/stdint.m4: Likewise.
37874         * m4/stdint_h.m4: Likewise.
37875         * m4/stpcpy.m4: Likewise.
37876         * m4/stpncpy.m4: Likewise.
37877         * m4/strcase.m4: Likewise.
37878         * m4/strchrnul.m4: Likewise.
37879         * m4/strcspn.m4: Likewise.
37880         * m4/strdup.m4: Likewise.
37881         * m4/strftime.m4: Likewise.
37882         * m4/strndup.m4: Likewise.
37883         * m4/strnlen.m4: Likewise.
37884         * m4/strpbrk.m4: Likewise.
37885         * m4/strptime.m4: Likewise.
37886         * m4/strsep.m4: Likewise.
37887         * m4/strtod.m4: Likewise.
37888         * m4/strtoimax.m4: Likewise.
37889         * m4/strtok_r.m4: Likewise.
37890         * m4/strtol.m4: Likewise.
37891         * m4/strtoll.m4: Likewise.
37892         * m4/strtoul.m4: Likewise.
37893         * m4/strtoull.m4: Likewise.
37894         * m4/strtoumax.m4: Likewise.
37895         * m4/strverscmp.m4: Likewise.
37896         * m4/threadlib.m4: Likewise.
37897         * m4/timegm.m4: Likewise.
37898         * m4/tm_gmtoff.m4: Likewise.
37899         * m4/tmpdir.m4: Likewise.
37900         * m4/tmpfile.m4: Likewise.
37901         * m4/tzset.m4: Likewise.
37902         * m4/uintmax_t.m4: Likewise.
37903         * m4/unlinkdir.m4: Likewise.
37904         * m4/unlocked-io.m4: Likewise.
37905         * m4/uptime.m4: Likewise.
37906         * m4/userspec.m4: Likewise.
37907         * m4/utimbuf.m4: Likewise.
37908         * m4/utime.m4: Likewise.
37909         * m4/utimes-null.m4: Likewise.
37910         * m4/utimes.m4: Likewise.
37911         * m4/vararrays.m4: Likewise.
37912         * m4/vasnprintf.m4: Likewise.
37913         * m4/vfprintf-posix.m4: Likewise.
37914         * m4/vprintf-posix.m4: Likewise.
37915         * m4/wait-process.m4: Likewise.
37916         * m4/wchar_t.m4: Likewise.
37917         * m4/wint_t.m4: Likewise.
37918         * m4/write-any-file.m4: Likewise.
37919         * m4/yield.m4: Likewise.
37920
37921 2009-01-13  Bruno Haible  <bruno@clisp.org>
37922
37923         Avoid test-copy-file.sh failures when ACL support insufficient.
37924         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
37925         TESTS_ENVIRONMENT.
37926         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
37927         Reported by Jim Meyering.
37928
37929 2009-01-13  Bruno Haible  <bruno@clisp.org>
37930
37931         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
37932         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
37933         * modules/unistdio/u8-printf-parse (Files): Likewise.
37934         * modules/unistdio/u32-printf-parse (Files): Likewise.
37935         * modules/unistdio/ulc-printf-parse (Files): Likewise.
37936
37937 2009-01-13  Simon Josefsson  <simon@josefsson.org>
37938
37939         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
37940         and m4/inttypes_h.m4 too.
37941
37942 2009-01-12  Eric Blake  <ebb9@byu.net>
37943
37944         tests: IRIX 6.2 cc can't compile -0.0 into .data
37945         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
37946         rather than at compile-time.
37947         * tests/test-floorl.c (minus_zero): Likewise.
37948         * tests/test-frexpl.c (minus_zero): Likewise.
37949         * tests/test-isnan.c (minus_zerol): Likewise.
37950         * tests/test-isnanl.h (minus_zero): Likewise.
37951         * tests/test-ldexpl.c (minus_zero): Likewise.
37952         * tests/test-roundl.c (minus_zero): Likewise.
37953         * tests/test-signbit.c (minus_zerol): Likewise.
37954         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37955         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37956         * tests/test-truncl.c (minus_zero): Likewise.
37957         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37958         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37959         Reported by Tom G. Christensen and Nelson H. F. Beebe.
37960
37961 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37962
37963         regex: fix glibc bug 9697
37964         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
37965         handling.
37966
37967 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37968
37969         regex: fix glibc bug 697
37970         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
37971         being NULL also if there are no backreferences.
37972
37973 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
37974
37975         regex: merge glibc changes
37976         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
37977         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
37978         re_string_skip_chars, re_string_reconstruct): Likewise.
37979         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
37980
37981 2009-01-07  Jim Meyering  <meyering@redhat.com>
37982
37983         poll: filter through cppi
37984         * lib/poll.c: Indent cpp directives to reflect nesting.
37985
37986 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
37987
37988         poll: don't return uninitialized
37989         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
37990
37991 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
37992
37993         avoid compile failure on AIX 6.1
37994         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
37995         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
37996
37997 2009-01-04  Jim Meyering  <meyering@redhat.com>
37998
37999         remove duplicate inclusion of <stdio.h>
38000         * tests/test-fprintf-posix.c: Likewise.
38001         * tests/test-printf-posix.c: Likewise.
38002         * tests/test-snprintf-posix.c: Likewise.
38003         * tests/test-sprintf-posix.c: Likewise.
38004         * tests/test-vasprintf-posix.c: Likewise.
38005         * tests/test-vfprintf-posix.c: Likewise.
38006         * tests/test-vprintf-posix.c: Likewise.
38007         * tests/test-vsnprintf-posix.c: Likewise.
38008         * tests/test-vsprintf-posix.c: Likewise.
38009
38010 2009-01-03  Jim Meyering  <meyering@redhat.com>
38011
38012         gnulib-tool: fix sed-based filtering
38013         * gnulib-tool (func_filter_filelist): Remove extra backslash
38014         in sed_fff_filter definition.
38015
38016 2009-01-02  Jim Meyering  <meyering@redhat.com>
38017
38018         strftime: avoid compilation failure on Solaris 2.6
38019         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38020         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38021         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38022         be available.  Reported by Tom G. Christensen.  Details in
38023         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38024
38025 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38026             Bruno Haible  <bruno@clisp.org>
38027
38028         Speed up gnulib-tool by doing more string processing through shell
38029         built-ins.
38030         * gnulib-tool (fast_func_append): New variable.
38031         (func_remove_prefix, func_remove_suffix): New functions.
38032         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38033         (func_filter_filelist): New function.
38034         (func_get_dependencies): Use func_remove_suffix instead of sed.
38035         (func_get_automake_snippet): Use func_filter_filelist instead of a
38036         subshell and sed invocation.
38037
38038 2009-01-01  Bruno Haible  <bruno@clisp.org>
38039
38040         Fix a security bug.
38041         * gnulib-tool (func_import, import, update): Don't allow the characters
38042         '"', '$', '`', '\' in macro arguments that become part of commands that
38043         are evaluated.
38044
38045 2009-01-01  Bruno Haible  <bruno@clisp.org>
38046
38047         * gnulib-tool (func_reset_sigpipe): Add more comments.
38048
38049 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38050
38051         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38052         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38053         already know the answer.
38054
38055 2009-01-01  Jim Meyering  <meyering@redhat.com>
38056
38057         * lib/version-etc.c (version_etc_va): Update copyright year.
38058
38059 2008-12-30  Bruno Haible  <bruno@clisp.org>
38060
38061         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38062         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38063         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38064
38065 2008-12-29  Eric Blake  <ebb9@byu.net>
38066
38067         multiarch: avoid autoconf AC_REQUIRE bug
38068         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38069         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38070         2.63 and older.
38071         Reported by Bruno Haible, and analyzed in
38072         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38073
38074 2008-12-29  Bruno Haible  <bruno@clisp.org>
38075
38076         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38077         files in subdirectories correctly.
38078         Reported by Ralf Wildenhues.
38079
38080 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38081
38082         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38083         rather than 'join FILE -', for Solaris join.
38084
38085 2008-12-29  Bruno Haible  <bruno@clisp.org>
38086
38087         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38088         quoting.
38089         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38090         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38091         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38092         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38093         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38094         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38095         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38096         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38097         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38098         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38099         * m4/nls.m4 (AM_NLS): Likewise.
38100         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38101         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38102         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38103         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38104         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38105         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38106         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38107         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38108         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38109         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38110         * m4/xsize.m4 (gl_XSIZE): Likewise.
38111         Suggested by Jim Meyering.
38112
38113 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38114
38115         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38116         * lib/parse-duration.c: use a switch instead of cascading if's.
38117
38118 2008-12-29  Eric Blake  <ebb9@byu.net>
38119
38120         wchar.h: supply WEOF on Irix 5.3
38121         * lib/wchar.in.h (wint_t): Also supply WEOF.
38122         * lib/wctype.in.h (wint_t): Likewise.
38123         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38124         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38125         Reported by Tom G. Christensen.
38126
38127 2008-12-26  Bruno Haible  <bruno@clisp.org>
38128
38129         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38130         i486, i586, i686.
38131
38132 2008-12-26  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38135
38136 2008-12-26  Bruno Haible  <bruno@clisp.org>
38137
38138         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38139         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38140         not __STDC_CONSTANT_MACROS.
38141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38142
38143 2008-12-25  Bruno Haible  <bruno@clisp.org>
38144
38145         Add support for universal builds to vasnprintf.
38146         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38147         universal builds, guess no.
38148         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38149         * modules/vasprintf-posix (Depends-on): Likewise.
38150         * modules/fprintf-posix (Depends-on): Likewise.
38151         * modules/vfprintf-posix (Depends-on): Likewise.
38152         * modules/snprintf-posix (Depends-on): Likewise.
38153         * modules/vsnprintf-posix (Depends-on): Likewise.
38154         * modules/sprintf-posix (Depends-on): Likewise.
38155         * modules/vsprintf-posix (Depends-on): Likewise.
38156         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38157         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38158         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38159         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38160         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38161         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38162         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38163
38164         Add support for universal builds to <inttypes.h>.
38165         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38166         _SCNu64_PREFIX): In Apple
38167         universal builds, define directly, using _LP64.
38168         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38169         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38170         * modules/inttypes (Depends-on): Add multiarch.
38171         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38172
38173         Add support for universal builds to <stdint.h>.
38174         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38175         universal builds, define directly, using _LP64.
38176         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38177         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38178         and size_t.
38179         * modules/stdint (Depends-on): Add multiarch.
38180         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38181
38182         New module 'multiarch'.
38183         * modules/multiarch: New file.
38184         * m4/multiarch.m4: New file.
38185
38186 2008-12-25  Bruno Haible  <bruno@clisp.org>
38187
38188         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38189
38190 2008-12-25  Bruno Haible  <bruno@clisp.org>
38191
38192         * modules/btowc (License): Relicense under LGPLv2+.
38193         * modules/mbsinit (License): Likewise.
38194         * modules/mbrtowc (License): Likewise.
38195         * modules/wcrtomb (License): Likewise.
38196         * modules/streq (License): Likewise.
38197         Reported by David Lutterkort <lutter@redhat.com>.
38198
38199 2008-12-23  Bruno Haible  <bruno@clisp.org>
38200
38201         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38202
38203 2008-12-23  Bruno Haible  <bruno@clisp.org>
38204
38205         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38207         GETADDRINFO_LIB, not in LIBS.
38208         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38209         * modules/canon-host (Link): Likewise.
38210         * NEWS: Mention the change.
38211         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38212         GETADDRINFO_LIB.
38213
38214 2008-12-22  Bruno Haible  <bruno@clisp.org>
38215
38216         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38217         * doc/posix-functions/iswalpha_l.texi: Likewise.
38218         * doc/posix-functions/iswblank_l.texi: Likewise.
38219         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38220         * doc/posix-functions/iswctype_l.texi: Likewise.
38221         * doc/posix-functions/iswdigit_l.texi: Likewise.
38222         * doc/posix-functions/iswgraph_l.texi: Likewise.
38223         * doc/posix-functions/iswlower_l.texi: Likewise.
38224         * doc/posix-functions/iswprint_l.texi: Likewise.
38225         * doc/posix-functions/iswpunct_l.texi: Likewise.
38226         * doc/posix-functions/iswspace_l.texi: Likewise.
38227         * doc/posix-functions/iswupper_l.texi: Likewise.
38228         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38229         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38230         * doc/posix-functions/open_wmemstream.texi: Likewise.
38231         * doc/posix-functions/swscanf.texi: Likewise.
38232         * doc/posix-functions/towctrans_l.texi: Likewise.
38233         * doc/posix-functions/towlower.texi: Likewise.
38234         * doc/posix-functions/towlower_l.texi: Likewise.
38235         * doc/posix-functions/towupper.texi: Likewise.
38236         * doc/posix-functions/towupper_l.texi: Likewise.
38237         * doc/posix-functions/vfwprintf.texi: Likewise.
38238         * doc/posix-functions/vfwscanf.texi: Likewise.
38239         * doc/posix-functions/vswscanf.texi: Likewise.
38240         * doc/posix-functions/vwprintf.texi: Likewise.
38241         * doc/posix-functions/vwscanf.texi: Likewise.
38242         * doc/posix-functions/wcpcpy.texi: Likewise.
38243         * doc/posix-functions/wcpncpy.texi: Likewise.
38244         * doc/posix-functions/wcscasecmp.texi: Likewise.
38245         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38246         * doc/posix-functions/wcscoll_l.texi: Likewise.
38247         * doc/posix-functions/wcsdup.texi: Likewise.
38248         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38249         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38250         * doc/posix-functions/wcsnlen.texi: Likewise.
38251         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38252         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38253         * doc/posix-functions/wctrans_l.texi: Likewise.
38254         * doc/posix-functions/wctype_l.texi: Likewise.
38255         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38256         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38257         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38258         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38259         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38260         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38261         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38262         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38263         * doc/glibc-functions/wcschrnul.texi: Likewise.
38264         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38265         * doc/glibc-functions/wcstod_l.texi: Likewise.
38266         * doc/glibc-functions/wcstof_l.texi: Likewise.
38267         * doc/glibc-functions/wcstol_l.texi: Likewise.
38268         * doc/glibc-functions/wcstold_l.texi: Likewise.
38269         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38270         * doc/glibc-functions/wcstoq.texi: Likewise.
38271         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38272         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38273         * doc/glibc-functions/wcstouq.texi: Likewise.
38274         * doc/glibc-functions/wmempcpy.texi: Likewise.
38275
38276 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38277             Eric Blake  <ebb9@byu.net>
38278             Paolo Bonzini  <bonzini@gnu.org>
38279             Bruno Haible  <bruno@clisp.org>
38280
38281         Make c-stack work on Haiku.
38282         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38283         (c_stack_action): Use SA_ONSTACK flag.
38284
38285 2008-12-22  Bruno Haible  <bruno@clisp.org>
38286
38287         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38288
38289 2008-12-22  Bruno Haible  <bruno@clisp.org>
38290
38291         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38292         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38293         being overridden.
38294         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38295         New macros.
38296         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38298         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38299         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38300
38301 2008-12-22  Bruno Haible  <bruno@clisp.org>
38302
38303         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38304         from test code.
38305
38306 2008-12-22  Eric Blake  <ebb9@byu.net>
38307
38308         Avoid gcc warnings on cygwin.
38309         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38310         Avoid unused variable.
38311         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38312         Likewise.
38313
38314 2008-12-22  Bruno Haible  <bruno@clisp.org>
38315
38316         Remove HAVE_MBRTOWC conditionals.
38317         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38318         (mbscasecmp): Assume mbrtowc function.
38319         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38320         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38321         * lib/mbschr.c: Include mbuiter.h unconditionally.
38322         (mbschr): Assume mbrtowc function.
38323         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38324         (mbscspn): Assume mbrtowc function.
38325         * lib/mbslen.c: Include mbuiter.h unconditionally.
38326         (mbslen): Assume mbrtowc function.
38327         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38328         (mbsncasecmp): Assume mbrtowc function.
38329         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38330         (mbsnlen): Assume mbrtowc function.
38331         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38332         (mbspbrk): Assume mbrtowc function.
38333         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38334         (mbspcasecmp): Assume mbrtowc function.
38335         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38336         (mbsrchr): Assume mbrtowc function.
38337         * lib/mbssep.c: Include mbuiter.h unconditionally.
38338         (mbssep): Assume mbrtowc function.
38339         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38340         (mbsspn): Assume mbrtowc function.
38341         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38342         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38343         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38344         (mbstok_r): Assume mbrtowc function.
38345         * lib/propername.c: Include mbuiter.h unconditionally.
38346         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38347         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38348         (trim2): Assume mbrtowc function.
38349         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38350         (mbsnwidth): Assume mbrtowc function.
38351         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38352         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38353         fallback definitions.
38354         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38355
38356 2008-12-22  Bruno Haible  <bruno@clisp.org>
38357
38358         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38359
38360 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38361
38362         * modules/regex: Request emulations for the mb*/wc* functions we need.
38363         * m4/regex.m4: Don't look for those functions here.
38364         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38365
38366 2008-12-22  Bruno Haible  <bruno@clisp.org>
38367
38368         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38369
38370 2008-12-21  Bruno Haible  <bruno@clisp.org>
38371
38372         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38373         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38374         (Include): Remove conditionalization.
38375         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38376         (Include): Remove conditionalization.
38377         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38378         (Include): Remove conditionalization.
38379         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38380         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38381         * NEWS: Mention the change.
38382         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38383         via Sergey Poznyakoff <gray@gnu.org.ua>.
38384
38385 2008-12-21  Bruno Haible  <bruno@clisp.org>
38386
38387         * MODULES.html.sh (Extended multibyte and wide character utilities
38388         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38389         wcrtomb, wcsrtombs.
38390         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38391         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38392         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38393         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38394
38395 2008-12-21  Bruno Haible  <bruno@clisp.org>
38396
38397         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38398
38399 2008-12-21  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/wcsnrtombs-tests: New file.
38402         * tests/test-wcsnrtombs1.sh: New file.
38403         * tests/test-wcsnrtombs2.sh: New file.
38404         * tests/test-wcsnrtombs3.sh: New file.
38405         * tests/test-wcsnrtombs4.sh: New file.
38406         * tests/test-wcsnrtombs.c: New file.
38407
38408         New module 'wcsnrtombs'.
38409         * lib/wchar.in.h (wcsnrtombs): New declaration.
38410         * lib/wcsnrtombs.c: New file.
38411         * lib/wcsrtombs-state.c: New file.
38412         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38413         (internal_state): Remove variable.
38414         * m4/wcsnrtombs.m4: New file.
38415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38416         compilation units.
38417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38418         HAVE_WCSNRTOMBS.
38419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38420         HAVE_WCSNRTOMBS.
38421         * modules/wcsnrtombs: New file.
38422         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38423         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38424
38425 2008-12-21  Bruno Haible  <bruno@clisp.org>
38426
38427         * modules/wcsrtombs-tests: New file.
38428         * tests/test-wcsrtombs1.sh: New file.
38429         * tests/test-wcsrtombs2.sh: New file.
38430         * tests/test-wcsrtombs3.sh: New file.
38431         * tests/test-wcsrtombs4.sh: New file.
38432         * tests/test-wcsrtombs.c: New file.
38433
38434         New module 'wcsrtombs'.
38435         * lib/wchar.in.h (wcsrtombs): New declaration.
38436         * lib/wcsrtombs.c: New file.
38437         * m4/wcsrtombs.m4: New file.
38438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38439         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38441         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38442         * modules/wcsrtombs: New file.
38443         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38444         bugs.
38445
38446 2008-12-21  Bruno Haible  <bruno@clisp.org>
38447
38448         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38449         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38450         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38451         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38452         if not correct.
38453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38454         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38455         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38456         m4/locale-zh.m4, m4/codeset.m4.
38457         * doc/posix-functions/wcrtomb.texi: Document the bug.
38458
38459 2008-12-21  Bruno Haible  <bruno@clisp.org>
38460
38461         Work around a btowc() bug on IRIX 6.5.
38462         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38463         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38464         REPLACE_WTOBC if not.
38465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38466         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38467         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38468
38469 2008-12-21  Bruno Haible  <bruno@clisp.org>
38470
38471         * modules/wcrtomb-tests: New file.
38472         * tests/test-wcrtomb.sh: New file.
38473         * tests/test-wcrtomb.c: New file.
38474
38475         New module 'wcrtomb'.
38476         * lib/wchar.in.h (wcrtomb): New declaration.
38477         * lib/wcrtomb.c: New file.
38478         * m4/wcrtomb.m4: New file.
38479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
38480         HAVE_WCRTOMB.
38481         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
38482         HAVE_WCRTOMB.
38483         * modules/wcrtomb: New file.
38484         * doc/posix-functions/wcrtomb.texi: Mention the new module.
38485
38486 2008-12-21  Bruno Haible  <bruno@clisp.org>
38487
38488         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
38489         * modules/mbsrtowcs (Files): Likewise.
38490         * modules/wctob (Files): Likewise.
38491         * modules/c-strcase-tests (Files): Likewise.
38492         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38493         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38494         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38495         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38496         * modules/vasnprintf-posix-tests (Files): Likewise.
38497
38498 2008-12-21  William Pursell  <bill.pursell@gmail.com>
38499
38500         gitlog-to-changelog: pass all command-line arguments to git-log
38501         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
38502         it is sometimes convenient to filter the commits in various ways.
38503         gitlog-to-changelog only allows --since to specify a start date,
38504         but git-log itself supports many other filtering mechanisms.
38505         At the moment, I want to filter by branch name.  Rather than
38506         adding a --branch option to gitlog-to-changelog, it seems more
38507         flexible to simply pass all options directly to git-log and let
38508         git do the work.  Notice that this effectively makes --since a
38509         redundant option for gitlog-to-changelog, but removing it would
38510         require current usage to change since calls would then require
38511         an additional '--'.
38512
38513 2008-12-21  Bruno Haible  <bruno@clisp.org>
38514
38515         * modules/mbsnrtowcs-tests: New file.
38516         * tests/test-mbsnrtowcs1.sh: New file.
38517         * tests/test-mbsnrtowcs2.sh: New file.
38518         * tests/test-mbsnrtowcs3.sh: New file.
38519         * tests/test-mbsnrtowcs4.sh: New file.
38520         * tests/test-mbsnrtowcs.c: New file.
38521
38522         New module 'mbsnrtowcs'.
38523         * lib/wchar.in.h (mbsnrtowcs): New declaration.
38524         * lib/mbsnrtowcs.c: New file.
38525         * lib/mbsrtowcs-state.c: New file.
38526         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
38527         (internal_state): Remove variable.
38528         * m4/mbsnrtowcs.m4: New file.
38529         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
38530         compilation units.
38531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
38532         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38533         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
38534         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
38535         * modules/mbsnrtowcs: New file.
38536         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
38537         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
38538         portability problem.
38539
38540 2008-12-21  Bruno Haible  <bruno@clisp.org>
38541
38542         Work around mbsrtowcs bug.
38543         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
38544         (gl_FUNC_MBSRTOWCS): Invoke it.
38545         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38546         m4/locale-zh.m4.
38547         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
38548
38549 2008-12-21  Bruno Haible  <bruno@clisp.org>
38550
38551         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
38552
38553 2008-12-21  Bruno Haible  <bruno@clisp.org>
38554
38555         Update doc for AIX.
38556         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
38557         16-bit wchar_t type.
38558         * doc/posix-functions/btowc.texi: Likewise.
38559         * doc/posix-functions/fgetwc.texi: Likewise.
38560         * doc/posix-functions/fgetws.texi: Likewise.
38561         * doc/posix-functions/fputwc.texi: Likewise.
38562         * doc/posix-functions/fputws.texi: Likewise.
38563         * doc/posix-functions/fwide.texi: Likewise.
38564         * doc/posix-functions/fwprintf.texi: Likewise.
38565         * doc/posix-functions/fwscanf.texi: Likewise.
38566         * doc/posix-functions/getwchar.texi: Likewise.
38567         * doc/posix-functions/getwc.texi: Likewise.
38568         * doc/posix-functions/iswalnum.texi: Likewise.
38569         * doc/posix-functions/iswalpha.texi: Likewise.
38570         * doc/posix-functions/iswblank.texi: Likewise.
38571         * doc/posix-functions/iswcntrl.texi: Likewise.
38572         * doc/posix-functions/iswctype.texi: Likewise.
38573         * doc/posix-functions/iswdigit.texi: Likewise.
38574         * doc/posix-functions/iswgraph.texi: Likewise.
38575         * doc/posix-functions/iswlower.texi: Likewise.
38576         * doc/posix-functions/iswprint.texi: Likewise.
38577         * doc/posix-functions/iswpunct.texi: Likewise.
38578         * doc/posix-functions/iswspace.texi: Likewise.
38579         * doc/posix-functions/iswupper.texi: Likewise.
38580         * doc/posix-functions/iswxdigit.texi: Likewise.
38581         * doc/posix-functions/mbrtowc.texi: Likewise.
38582         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38583         * doc/posix-functions/mbstowcs.texi: Likewise.
38584         * doc/posix-functions/mbtowc.texi: Likewise.
38585         * doc/posix-functions/putwchar.texi: Likewise.
38586         * doc/posix-functions/putwc.texi: Likewise.
38587         * doc/posix-functions/swprintf.texi: Likewise.
38588         * doc/posix-functions/tolower.texi: Likewise.
38589         * doc/posix-functions/toupper.texi: Likewise.
38590         * doc/posix-functions/towctrans.texi: Likewise.
38591         * doc/posix-functions/ungetwc.texi: Likewise.
38592         * doc/posix-functions/vswprintf.texi: Likewise.
38593         * doc/posix-functions/wcrtomb.texi: Likewise.
38594         * doc/posix-functions/wcscat.texi: Likewise.
38595         * doc/posix-functions/wcschr.texi: Likewise.
38596         * doc/posix-functions/wcscmp.texi: Likewise.
38597         * doc/posix-functions/wcscoll.texi: Likewise.
38598         * doc/posix-functions/wcscpy.texi: Likewise.
38599         * doc/posix-functions/wcscspn.texi: Likewise.
38600         * doc/posix-functions/wcsftime.texi: Likewise.
38601         * doc/posix-functions/wcslen.texi: Likewise.
38602         * doc/posix-functions/wcsncat.texi: Likewise.
38603         * doc/posix-functions/wcsncmp.texi: Likewise.
38604         * doc/posix-functions/wcsncpy.texi: Likewise.
38605         * doc/posix-functions/wcspbrk.texi: Likewise.
38606         * doc/posix-functions/wcsrchr.texi: Likewise.
38607         * doc/posix-functions/wcsrtombs.texi: Likewise.
38608         * doc/posix-functions/wcsspn.texi: Likewise.
38609         * doc/posix-functions/wcsstr.texi: Likewise.
38610         * doc/posix-functions/wcstod.texi: Likewise.
38611         * doc/posix-functions/wcstof.texi: Likewise.
38612         * doc/posix-functions/wcstoimax.texi: Likewise.
38613         * doc/posix-functions/wcstok.texi: Likewise.
38614         * doc/posix-functions/wcstold.texi: Likewise.
38615         * doc/posix-functions/wcstoll.texi: Likewise.
38616         * doc/posix-functions/wcstol.texi: Likewise.
38617         * doc/posix-functions/wcstombs.texi: Likewise.
38618         * doc/posix-functions/wcstoull.texi: Likewise.
38619         * doc/posix-functions/wcstoul.texi: Likewise.
38620         * doc/posix-functions/wcstoumax.texi: Likewise.
38621         * doc/posix-functions/wcswidth.texi: Likewise.
38622         * doc/posix-functions/wcsxfrm.texi: Likewise.
38623         * doc/posix-functions/wctob.texi: Likewise.
38624         * doc/posix-functions/wctomb.texi: Likewise.
38625         * doc/posix-functions/wctrans.texi: Likewise.
38626         * doc/posix-functions/wctype.texi: Likewise.
38627         * doc/posix-functions/wcwidth.texi: Likewise.
38628         * doc/posix-functions/wmemchr.texi: Likewise.
38629         * doc/posix-functions/wmemcmp.texi: Likewise.
38630         * doc/posix-functions/wmemcpy.texi: Likewise.
38631         * doc/posix-functions/wmemmove.texi: Likewise.
38632         * doc/posix-functions/wmemset.texi: Likewise.
38633         * doc/posix-functions/wprintf.texi: Likewise.
38634         * doc/posix-functions/wscanf.texi: Likewise.
38635
38636 2008-12-21  Bruno Haible  <bruno@clisp.org>
38637
38638         Update doc for HP-UX 11.11.
38639         * doc/posix-functions/btowc.texi: Clarify that the function is missing
38640         in HP-UX version 11.00, not in all versions of HP-UX 11.
38641         * doc/posix-functions/fwide.texi: Likewise.
38642         * doc/posix-functions/fwprintf.texi: Likewise.
38643         * doc/posix-functions/fwscanf.texi: Likewise.
38644         * doc/posix-functions/inet_ntop.texi: Likewise.
38645         * doc/posix-functions/inet_pton.texi: Likewise.
38646         * doc/posix-functions/mbrlen.texi: Likewise.
38647         * doc/posix-functions/mbrtowc.texi: Likewise.
38648         * doc/posix-functions/mbsinit.texi: Likewise.
38649         * doc/posix-functions/mbsrtowcs.texi: Likewise.
38650         * doc/posix-functions/swprintf.texi: Likewise.
38651         * doc/posix-functions/swscanf.texi: Likewise.
38652         * doc/posix-functions/towctrans.texi: Likewise.
38653         * doc/posix-functions/vfwprintf.texi: Likewise.
38654         * doc/posix-functions/vswprintf.texi: Likewise.
38655         * doc/posix-functions/vwprintf.texi: Likewise.
38656         * doc/posix-functions/wcrtomb.texi: Likewise.
38657         * doc/posix-functions/wcsrtombs.texi: Likewise.
38658         * doc/posix-functions/wcsstr.texi: Likewise.
38659         * doc/posix-functions/wctob.texi: Likewise.
38660         * doc/posix-functions/wctrans.texi: Likewise.
38661         * doc/posix-functions/wmemchr.texi: Likewise.
38662         * doc/posix-functions/wmemcmp.texi: Likewise.
38663         * doc/posix-functions/wmemcpy.texi: Likewise.
38664         * doc/posix-functions/wmemmove.texi: Likewise.
38665         * doc/posix-functions/wmemset.texi: Likewise.
38666         * doc/posix-functions/wprintf.texi: Likewise.
38667         * doc/posix-functions/wscanf.texi: Likewise.
38668
38669 2008-12-21  Bruno Haible  <bruno@clisp.org>
38670
38671         Work around a portability problem.
38672         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
38673         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
38674
38675 2008-12-20  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
38678         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
38679         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
38680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
38681         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
38682
38683         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
38684         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
38685         set.
38686         (GNULIB_defined_mbstate_t): New macro.
38687         (mbsinit): Redefine if REPLACE_MBSINIT is set.
38688         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
38689         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
38690         reuses the system's mbrtowc function but works around the bugs.
38691         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
38692         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
38693         macros.
38694         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
38695         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
38696         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
38697         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
38698         REPLACE_MBSINIT if mbsinit needs to be overridden.
38699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
38700         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38701         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
38702         REPLACE_MBSINIT, REPLACE_MBRTOWC.
38703         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38704         m4/locale-zh.m4.
38705         (Depends): Add mbsinit.
38706         * modules/mbsinit (Depends): Add mbrtowc.
38707         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
38708
38709 2008-12-20  Bruno Haible  <bruno@clisp.org>
38710
38711         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
38712         so that there are no conversion errors on AIX.
38713         * tests/test-mbsrtowcs.c (main): LIkewise.
38714
38715 2008-12-20  Bruno Haible  <bruno@clisp.org>
38716
38717         Work around wctob bug on Solaris <= 9.
38718         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
38719         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
38720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
38721         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
38722         * modules/wctob (Files): Add m4/locale-fr.m4.
38723         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
38724
38725 2008-12-20  Bruno Haible  <bruno@clisp.org>
38726
38727         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
38728         /dev/null.
38729         * tests/test-select-in.sh: Likewise.
38730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38731
38732 2008-12-20  Bruno Haible  <bruno@clisp.org>
38733
38734         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
38735         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
38736         Cygwin 1.5.x.
38737
38738 2008-12-20  Bruno Haible  <bruno@clisp.org>
38739
38740         Ensure mbstate_t is defined on HP-UX 11.11.
38741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
38742         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
38743         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
38744         AC_USE_SYSTEM_EXTENSIONS.
38745         * modules/fnmatch (Depends-on): Add extensions.
38746         * modules/mbrlen (Depends-on): Likewise.
38747         * modules/mbrtowc (Depends-on): Likewise.
38748         * modules/mbsinit (Depends-on): Likewise.
38749         * modules/mbsrtowcs (Depends-on): Likewise.
38750         * modules/mbswidth (Depends-on): Likewise.
38751         * modules/quotearg (Depends-on): Likewise.
38752         * modules/strftime (Depends-on): Likewise.
38753
38754 2008-12-20  Bruno Haible  <bruno@clisp.org>
38755
38756         Ensure wctob is declared on IRIX 6.5.
38757         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
38758         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
38759         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
38760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
38761         of HAVE_WCTOB.
38762         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
38763         HAVE_WCTOB.
38764         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
38765
38766 2008-12-19  Bruno Haible  <bruno@clisp.org>
38767
38768         * modules/mbsrtowcs-tests: New file.
38769         * tests/test-mbsrtowcs1.sh: New file.
38770         * tests/test-mbsrtowcs2.sh: New file.
38771         * tests/test-mbsrtowcs3.sh: New file.
38772         * tests/test-mbsrtowcs4.sh: New file.
38773         * tests/test-mbsrtowcs.c: New file.
38774
38775         New module 'mbsrtowcs'.
38776         * lib/wchar.in.h (mbsrtowcs): New declaration.
38777         * lib/mbsrtowcs.c: New file.
38778         * m4/mbsrtowcs.m4: New file.
38779         * modules/mbsrtowcs: New file.
38780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
38781         HAVE_MBSRTOWCS.
38782         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
38783         HAVE_MBSRTOWCS.
38784         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
38785
38786 2008-12-19  Bruno Haible  <bruno@clisp.org>
38787
38788         New module 'mbrlen'.
38789         * lib/wchar.in.h (mbrlen): New declaration.
38790         * lib/mbrlen.c: New file.
38791         * m4/mbrlen.m4: New file.
38792         * modules/mbrlen: New file.
38793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
38794         HAVE_MBRLEN.
38795         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
38796         HAVE_MBRLEN.
38797         * doc/posix-functions/mbrlen.texi: Document the new module.
38798
38799 2008-12-19  Bruno Haible  <bruno@clisp.org>
38800
38801         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
38802         * modules/mbrtowc (Depends-on): Add verify.
38803         Suggested by Paul Eggert.
38804
38805 2008-12-18  Bruno Haible  <bruno@clisp.org>
38806
38807         * modules/mbsinit-tests: New file.
38808         * tests/test-mbsinit.sh: New file.
38809         * tests/test-mbsinit.c: New file.
38810
38811 2008-12-18  Bruno Haible  <bruno@clisp.org>
38812
38813         * modules/mbrtowc-tests: New file.
38814         * tests/test-mbrtowc1.sh: New file.
38815         * tests/test-mbrtowc2.sh: New file.
38816         * tests/test-mbrtowc3.sh: New file.
38817         * tests/test-mbrtowc4.sh: New file.
38818         * tests/test-mbrtowc.c: New file.
38819
38820         New module 'mbrtowc'.
38821         * lib/wchar.in.h (mbstate_t): Override when the system does not have
38822         mbsinit and mbrtowc.
38823         (mbrtowc): New declaration.
38824         * lib/mbrtowc.c: New file.
38825         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
38826         * modules/mbrtowc: New file.
38827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
38828         HAVE_MBRTOWC.
38829         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
38830         HAVE_MBRTOWC.
38831         * doc/posix-functions/mbrtowc.texi: Document the new module.
38832
38833 2008-12-18  Bruno Haible  <bruno@clisp.org>
38834
38835         New module 'wctob'.
38836         * lib/wchar.in.h (wctob): New declaration.
38837         * lib/wctob.c: New file.
38838         * m4/wctob.m4: New file.
38839         * modules/wctob: New file.
38840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
38841         HAVE_WCTOB.
38842         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
38843         * doc/posix-functions/wctob.texi: Document the new module.
38844
38845 2008-12-18  Bruno Haible  <bruno@clisp.org>
38846
38847         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
38848         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
38849
38850 2008-12-18  Simon Josefsson  <simon@josefsson.org>
38851
38852         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
38853         G. Christensen" <tgc@jupiterrise.com>.
38854
38855         * lib/flock.c: Need to include errno.h.  Reported by "Tom
38856         G. Christensen" <tgc@jupiterrise.com>.
38857
38858         * lib/flock.c: Need to include string.h.  Reported by "Tom
38859         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
38860         <ebb9@byu.net>.
38861
38862 2008-12-18  Bruno Haible  <bruno@clisp.org>
38863
38864         * m4/locale-ja.m4: New file, from GNU gettext.
38865
38866 2008-12-17  Bruno Haible  <bruno@clisp.org>
38867
38868         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
38869         Suggested by Eric Blake.
38870
38871 2008-12-17  Bruno Haible  <bruno@clisp.org>
38872
38873         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
38874
38875 2008-12-17  Bruno Haible  <bruno@clisp.org>
38876
38877         * lib/mbsinit.c: Include verify.h. Verify an assumption.
38878         * modules/mbsinit (Depends-on): Add verify.
38879         Suggested by Paul Eggert.
38880
38881 2008-12-17  Bruno Haible  <bruno@clisp.org>
38882
38883         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
38884         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
38885         gl_FUNC_MBRTOWC.
38886         * m4/mbiter.m4 (gl_MBITER): LIkewise.
38887         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
38888         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
38889         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
38890         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
38891         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
38892         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
38893         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
38894         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
38895         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
38896         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
38897         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
38898         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
38899         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
38900         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
38901         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38902         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
38903         * modules/trim (configure.ac): Likewise.
38904
38905 2008-12-17  Bruno Haible  <bruno@clisp.org>
38906
38907         * modules/btowc-tests: New file.
38908         * tests/test-btowc1.sh: New file.
38909         * tests/test-btowc2.sh: New file.
38910         * tests/test-btowc.c: New file.
38911
38912         New module 'btowc'.
38913         * lib/wchar.in.h (btowc): New declaration.
38914         * lib/btowc.c: New file.
38915         * m4/btowc.m4: New file.
38916         * modules/btowc: New file.
38917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
38918         HAVE_BTOWC.
38919         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
38920         * doc/posix-functions/btowc.texi: Document the new module.
38921
38922 2008-12-17  Bruno Haible  <bruno@clisp.org>
38923
38924         New module 'mbsinit'.
38925         * lib/wchar.in.h (mbsinit): New declaration.
38926         * lib/mbsinit.c: New file.
38927         * m4/mbsinit.m4: New file.
38928         * modules/mbsinit: New file.
38929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
38930         HAVE_MBSINIT.
38931         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
38932         HAVE_MBSINIT.
38933         * doc/posix-functions/mbsinit.texi: Document the new module.
38934
38935 2008-12-16  Bruno Haible  <bruno@clisp.org>
38936
38937         * lib/unistd.in.h: Add comment.
38938         * tests/test-environ.c: Don't include <stdlib.h>.
38939
38940 2008-12-16  Bruno Haible  <bruno@clisp.org>
38941
38942         * lib/parse-duration.h (parse_duration): Document return value
38943         convention.
38944         * lib/parse-duration.c: Include specification header first. Add
38945         comments.
38946         (_): Remove macro.
38947         (parse_year_month_day, parse_hour_minute_second): Move side effects
38948         outside of strchr call.
38949         (parse_non_iso8601): Move side effects outside of isspace call.
38950         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
38951         call.
38952
38953 2008-12-16  Bruno Haible  <bruno@clisp.org>
38954
38955         * tests/test-parse-duration.sh: Produce no output when the test
38956         succeeds.
38957
38958 2008-12-16  Bruno Haible  <bruno@clisp.org>
38959
38960         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
38961         expressions.
38962
38963 2008-12-15  Bruno Haible  <bruno@clisp.org>
38964
38965         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
38966         * doc/glibc-functions/flistxattr.texi: Likewise.
38967         * doc/glibc-functions/fopencookie.texi: Likewise.
38968         * doc/glibc-functions/fremovexattr.texi: Likewise.
38969         * doc/glibc-functions/fsetxattr.texi: Likewise.
38970         * doc/glibc-functions/getxattr.texi: Likewise.
38971         * doc/glibc-functions/lgetxattr.texi: Likewise.
38972         * doc/glibc-functions/listxattr.texi: Likewise.
38973         * doc/glibc-functions/llistxattr.texi: Likewise.
38974         * doc/glibc-functions/lremovexattr.texi: Likewise.
38975         * doc/glibc-functions/lsetxattr.texi: Likewise.
38976         * doc/glibc-functions/removexattr.texi: Likewise.
38977         * doc/glibc-functions/setxattr.texi: Likewise.
38978         * doc/posix-functions/open_memstream.texi: Likewise.
38979
38980 2008-12-15  Eric Blake  <ebb9@byu.net>
38981
38982         Update doc for cygwin 1.7.
38983         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
38984         functions.
38985         * doc/posix-functions/fchmodat.texi: Likewise.
38986         * doc/posix-functions/fchownat.texi: Likewise.
38987         * doc/posix-functions/fdopendir.texi: Likewise.
38988         * doc/posix-functions/fmemopen.texi: Likewise.
38989         * doc/posix-functions/freeaddrinfo.texi: Likewise.
38990         * doc/posix-functions/fstatat.texi: Likewise.
38991         * doc/posix-functions/futimens.texi: Likewise.
38992         * doc/posix-functions/gai_strerror.texi: Likewise.
38993         * doc/posix-functions/getaddrinfo.texi: Likewise.
38994         * doc/posix-functions/getnameinfo.texi: Likewise.
38995         * doc/posix-functions/if_freenameindex.texi: Likewise.
38996         * doc/posix-functions/if_indextoname.texi: Likewise.
38997         * doc/posix-functions/if_nameindex.texi: Likewise.
38998         * doc/posix-functions/if_nametoindex.texi: Likewise.
38999         * doc/posix-functions/insque.texi: Likewise.
39000         * doc/posix-functions/linkat.texi: Likewise.
39001         * doc/posix-functions/llrint.texi: Likewise.
39002         * doc/posix-functions/llrintf.texi: Likewise.
39003         * doc/posix-functions/llrintl.texi: Likewise.
39004         * doc/posix-functions/lockf.texi: Likewise.
39005         * doc/posix-functions/lrintl.texi: Likewise.
39006         * doc/posix-functions/mkdirat.texi: Likewise.
39007         * doc/posix-functions/mkfifoat.texi: Likewise.
39008         * doc/posix-functions/mknodat.texi: Likewise.
39009         * doc/posix-functions/mq_close.texi: Likewise.
39010         * doc/posix-functions/mq_getattr.texi: Likewise.
39011         * doc/posix-functions/mq_notify.texi: Likewise.
39012         * doc/posix-functions/mq_open.texi: Likewise.
39013         * doc/posix-functions/mq_receive.texi: Likewise.
39014         * doc/posix-functions/mq_send.texi: Likewise.
39015         * doc/posix-functions/mq_setattr.texi: Likewise.
39016         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39017         * doc/posix-functions/mq_timedsend.texi: Likewise.
39018         * doc/posix-functions/mq_unlink.texi: Likewise.
39019         * doc/posix-functions/open_memstream.texi: Likewise.
39020         * doc/posix-functions/openat.texi: Likewise.
39021         * doc/posix-functions/posix_fadvise.texi: Likewise.
39022         * doc/posix-functions/posix_fallocate.texi: Likewise.
39023         * doc/posix-functions/posix_madvise.texi: Likewise.
39024         * doc/posix-functions/posix_memalign.texi: Likewise.
39025         * doc/posix-functions/posix_openpt.texi: Likewise.
39026         * doc/posix-functions/readlinkat.texi: Likewise.
39027         * doc/posix-functions/remque.texi: Likewise.
39028         * doc/posix-functions/renameat.texi: Likewise.
39029         * doc/posix-functions/rintl.texi: Likewise.
39030         * doc/posix-functions/sem_unlink.texi: Likewise.
39031         * doc/posix-functions/shm_open.texi: Likewise.
39032         * doc/posix-functions/shm_unlink.texi: Likewise.
39033         * doc/posix-functions/signgam.texi: Likewise.
39034         * doc/posix-functions/sigset.texi: Likewise.
39035         * doc/posix-functions/stpcpy.texi: Likewise.
39036         * doc/posix-functions/stpncpy.texi: Likewise.
39037         * doc/posix-functions/strerror.texi: Likewise.
39038         * doc/posix-functions/strtod.texi: Likewise.
39039         * doc/posix-functions/symlinkat.texi: Likewise.
39040         * doc/posix-functions/unlinkat.texi: Likewise.
39041         * doc/posix-functions/utimensat.texi: Likewise.
39042         * doc/glibc-functions/bindresvport.texi: Likewise.
39043         * doc/glibc-functions/dn_expand.texi: Likewise.
39044         * doc/glibc-functions/exp10.texi: Likewise.
39045         * doc/glibc-functions/exp10f.texi: Likewise.
39046         * doc/glibc-functions/fgetxattr.texi: Likewise.
39047         * doc/glibc-functions/flistxattr.texi: Likewise.
39048         * doc/glibc-functions/fopencookie.texi: Likewise.
39049         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39050         * doc/glibc-functions/fremovexattr.texi: Likewise.
39051         * doc/glibc-functions/fsetxattr.texi: Likewise.
39052         * doc/glibc-functions/getifaddrs.texi: Likewise.
39053         * doc/glibc-functions/getxattr.texi: Likewise.
39054         * doc/glibc-functions/lgetxattr.texi: Likewise.
39055         * doc/glibc-functions/listxattr.texi: Likewise.
39056         * doc/glibc-functions/llistxattr.texi: Likewise.
39057         * doc/glibc-functions/lremovexattr.texi: Likewise.
39058         * doc/glibc-functions/lsetxattr.texi: Likewise.
39059         * doc/glibc-functions/pow10.texi: Likewise.
39060         * doc/glibc-functions/pow10f.texi: Likewise.
39061         * doc/glibc-functions/rcmd_af.texi: Likewise.
39062         * doc/glibc-functions/removexattr.texi: Likewise.
39063         * doc/glibc-functions/res_init.texi: Likewise.
39064         * doc/glibc-functions/res_mkquery.texi: Likewise.
39065         * doc/glibc-functions/res_query.texi: Likewise.
39066         * doc/glibc-functions/res_querydomain.texi: Likewise.
39067         * doc/glibc-functions/res_send.texi: Likewise.
39068         * doc/glibc-functions/rresvport_af.texi: Likewise.
39069         * doc/glibc-functions/setxattr.texi: Likewise.
39070         * doc/glibc-functions/strcasestr.texi: Likewise.
39071
39072 2008-12-15  Bruno Haible  <bruno@clisp.org>
39073
39074         Fix compilation error on OSF/1 4.0.
39075         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39076         <sys/time.h>, simply delegate to the system header.
39077         Reported by Daniel Richard G. <oss@teragram.com>.
39078
39079 2008-12-15  Bruno Haible  <bruno@clisp.org>
39080
39081         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39082         * doc/posix-functions/fchmodat.texi: Likewise.
39083         * doc/posix-functions/fchownat.texi: Likewise.
39084         * doc/posix-functions/fdopendir.texi: Likewise.
39085         * doc/posix-functions/fstatat.texi: Likewise.
39086         * doc/posix-functions/mkdirat.texi: Likewise.
39087         * doc/posix-functions/unlinkat.texi: Likewise.
39088
39089 2008-12-14  Bruno Haible  <bruno@clisp.org>
39090
39091         Update doc for POSIX:2008.
39092         * doc/posix-functions/faccessat.texi: New file.
39093         * doc/posix-functions/fchmodat.texi: New file.
39094         * doc/posix-functions/fchownat.texi: New file.
39095         * doc/posix-functions/fdopendir.texi: New file.
39096         * doc/posix-functions/fstatat.texi: New file.
39097         * doc/posix-functions/futimens.texi: New file.
39098         * doc/posix-functions/linkat.texi: New file.
39099         * doc/posix-functions/mkdirat.texi: New file.
39100         * doc/posix-functions/mkfifoat.texi: New file.
39101         * doc/posix-functions/mknodat.texi: New file.
39102         * doc/posix-functions/open_wmemstream.texi: New file.
39103         * doc/posix-functions/openat.texi: New file.
39104         * doc/posix-functions/psiginfo.texi: New file.
39105         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39106         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39107         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39108         * doc/posix-functions/readlinkat.texi: New file.
39109         * doc/posix-functions/renameat.texi: New file.
39110         * doc/posix-functions/strerror_l.texi: New file.
39111         * doc/posix-functions/symlinkat.texi: New file.
39112         * doc/posix-functions/unlinkat.texi: New file.
39113         * doc/posix-functions/utimensat.texi: New file.
39114         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39115
39116 2008-12-14  Bruno Haible  <bruno@clisp.org>
39117
39118         Update doc for POSIX:2008.
39119         * doc/posix-functions/alphasort.texi: Renamed from
39120         doc/glibc-functions/alphasort.texi.
39121         * doc/posix-functions/dirfd.texi: Renamed from
39122         doc/glibc-functions/dirfd.texi.
39123         * doc/posix-functions/dprintf.texi: Renamed from
39124         doc/glibc-functions/dprintf.texi.
39125         * doc/posix-functions/duplocale.texi: Renamed from
39126         doc/glibc-functions/duplocale.texi.
39127         * doc/posix-functions/fexecve.texi: Renamed from
39128         doc/glibc-functions/fexecve.texi.
39129         * doc/posix-functions/fmemopen.texi: Renamed from
39130         doc/glibc-functions/fmemopen.texi.
39131         * doc/posix-functions/freelocale.texi: Renamed from
39132         doc/glibc-functions/freelocale.texi.
39133         * doc/posix-functions/getdate_err.texi: Renamed from
39134         doc/glibc-functions/getdate_err.texi.
39135         * doc/posix-functions/isalnum_l.texi: Renamed from
39136         doc/glibc-functions/isalnum_l.texi.
39137         * doc/posix-functions/isalpha_l.texi: Renamed from
39138         doc/glibc-functions/isalpha_l.texi.
39139         * doc/posix-functions/isblank_l.texi: Renamed from
39140         doc/glibc-functions/isblank_l.texi.
39141         * doc/posix-functions/iscntrl_l.texi: Renamed from
39142         doc/glibc-functions/iscntrl_l.texi.
39143         * doc/posix-functions/isdigit_l.texi: Renamed from
39144         doc/glibc-functions/isdigit_l.texi.
39145         * doc/posix-functions/isgraph_l.texi: Renamed from
39146         doc/glibc-functions/isgraph_l.texi.
39147         * doc/posix-functions/islower_l.texi: Renamed from
39148         doc/glibc-functions/islower_l.texi.
39149         * doc/posix-functions/isprint_l.texi: Renamed from
39150         doc/glibc-functions/isprint_l.texi.
39151         * doc/posix-functions/ispunct_l.texi: Renamed from
39152         doc/glibc-functions/ispunct_l.texi.
39153         * doc/posix-functions/isspace_l.texi: Renamed from
39154         doc/glibc-functions/isspace_l.texi.
39155         * doc/posix-functions/isupper_l.texi: Renamed from
39156         doc/glibc-functions/isupper_l.texi.
39157         * doc/posix-functions/iswalnum_l.texi: Renamed from
39158         doc/glibc-functions/iswalnum_l.texi.
39159         * doc/posix-functions/iswalpha_l.texi: Renamed from
39160         doc/glibc-functions/iswalpha_l.texi.
39161         * doc/posix-functions/iswblank_l.texi: Renamed from
39162         doc/glibc-functions/iswblank_l.texi.
39163         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39164         doc/glibc-functions/iswcntrl_l.texi.
39165         * doc/posix-functions/iswctype_l.texi: Renamed from
39166         doc/glibc-functions/iswctype_l.texi.
39167         * doc/posix-functions/iswdigit_l.texi: Renamed from
39168         doc/glibc-functions/iswdigit_l.texi.
39169         * doc/posix-functions/iswgraph_l.texi: Renamed from
39170         doc/glibc-functions/iswgraph_l.texi.
39171         * doc/posix-functions/iswlower_l.texi: Renamed from
39172         doc/glibc-functions/iswlower_l.texi.
39173         * doc/posix-functions/iswprint_l.texi: Renamed from
39174         doc/glibc-functions/iswprint_l.texi.
39175         * doc/posix-functions/iswpunct_l.texi: Renamed from
39176         doc/glibc-functions/iswpunct_l.texi.
39177         * doc/posix-functions/iswspace_l.texi: Renamed from
39178         doc/glibc-functions/iswspace_l.texi.
39179         * doc/posix-functions/iswupper_l.texi: Renamed from
39180         doc/glibc-functions/iswupper_l.texi.
39181         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39182         doc/glibc-functions/iswxdigit_l.texi.
39183         * doc/posix-functions/isxdigit_l.texi: Renamed from
39184         doc/glibc-functions/isxdigit_l.texi.
39185         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39186         doc/glibc-functions/mbsnrtowcs.texi.
39187         * doc/posix-functions/mkdtemp.texi: Renamed from
39188         doc/glibc-functions/mkdtemp.texi.
39189         * doc/posix-functions/newlocale.texi: Renamed from
39190         doc/glibc-functions/newlocale.texi.
39191         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39192         doc/glibc-functions/nl_langinfo_l.texi.
39193         * doc/posix-functions/open_memstream.texi: Renamed from
39194         doc/glibc-functions/open_memstream.texi.
39195         * doc/posix-functions/opterr.texi: Renamed from
39196         doc/glibc-functions/opterr.texi.
39197         * doc/posix-functions/optind.texi: Renamed from
39198         doc/glibc-functions/optind.texi.
39199         * doc/posix-functions/optopt.texi: Renamed from
39200         doc/glibc-functions/optopt.texi.
39201         * doc/posix-functions/psignal.texi: Renamed from
39202         doc/glibc-functions/psignal.texi.
39203         * doc/posix-functions/scandir.texi: Renamed from
39204         doc/glibc-functions/scandir.texi.
39205         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39206         doc/glibc-functions/sched_get_priority_min.texi.
39207         * doc/posix-functions/signgam.texi: Renamed from
39208         doc/glibc-functions/signgam.texi.
39209         * doc/posix-functions/stpcpy.texi: Renamed from
39210         doc/glibc-functions/stpcpy.texi.
39211         * doc/posix-functions/stpncpy.texi: Renamed from
39212         doc/glibc-functions/stpncpy.texi.
39213         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39214         doc/glibc-functions/strcasecmp_l.texi.
39215         * doc/posix-functions/strcoll_l.texi: Renamed from
39216         doc/glibc-functions/strcoll_l.texi.
39217         * doc/posix-functions/strfmon_l.texi: Renamed from
39218         doc/glibc-functions/strfmon_l.texi.
39219         * doc/posix-functions/strftime_l.texi: Renamed from
39220         doc/glibc-functions/strftime_l.texi.
39221         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39222         doc/glibc-functions/strncasecmp_l.texi.
39223         * doc/posix-functions/strndup.texi: Renamed from
39224         doc/glibc-functions/strndup.texi.
39225         * doc/posix-functions/strnlen.texi: Renamed from
39226         doc/glibc-functions/strnlen.texi.
39227         * doc/posix-functions/strsignal.texi: Renamed from
39228         doc/glibc-functions/strsignal.texi.
39229         * doc/posix-functions/strxfrm_l.texi: Renamed from
39230         doc/glibc-functions/strxfrm_l.texi.
39231         * doc/posix-functions/timer_gettime.texi: Renamed from
39232         doc/glibc-functions/timer_gettime.texi.
39233         * doc/posix-functions/tolower_l.texi: Renamed from
39234         doc/glibc-functions/tolower_l.texi.
39235         * doc/posix-functions/toupper_l.texi: Renamed from
39236         doc/glibc-functions/toupper_l.texi.
39237         * doc/posix-functions/towctrans_l.texi: Renamed from
39238         doc/glibc-functions/towctrans_l.texi.
39239         * doc/posix-functions/towlower_l.texi: Renamed from
39240         doc/glibc-functions/towlower_l.texi.
39241         * doc/posix-functions/towupper_l.texi: Renamed from
39242         doc/glibc-functions/towupper_l.texi.
39243         * doc/posix-functions/uselocale.texi: Renamed from
39244         doc/glibc-functions/uselocale.texi.
39245         * doc/posix-functions/vdprintf.texi: Renamed from
39246         doc/glibc-functions/vdprintf.texi.
39247         * doc/posix-functions/wcpcpy.texi:
39248         Renamed from doc/glibc-functions/wcpcpy.texi.
39249         * doc/posix-functions/wcpncpy.texi: Renamed from
39250         doc/glibc-functions/wcpncpy.texi.
39251         * doc/posix-functions/wcscasecmp.texi: Renamed from
39252         doc/glibc-functions/wcscasecmp.texi.
39253         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39254         doc/glibc-functions/wcscasecmp_l.texi.
39255         * doc/posix-functions/wcscoll_l.texi: Renamed from
39256         doc/glibc-functions/wcscoll_l.texi.
39257         * doc/posix-functions/wcsdup.texi: Renamed from
39258         doc/glibc-functions/wcsdup.texi.
39259         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39260         doc/glibc-functions/wcsncasecmp.texi.
39261         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39262         doc/glibc-functions/wcsncasecmp_l.texi.
39263         * doc/posix-functions/wcsnlen.texi: Renamed from
39264         doc/glibc-functions/wcsnlen.texi.
39265         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39266         doc/glibc-functions/wcsnrtombs.texi.
39267         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39268         doc/glibc-functions/wcsxfrm_l.texi.
39269         * doc/posix-functions/wctrans_l.texi: Renamed from
39270         doc/glibc-functions/wctrans_l.texi.
39271         * doc/posix-functions/wctype_l.texi: Renamed from
39272         doc/glibc-functions/wctype_l.texi.
39273         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39274         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39275         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39276         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39277         these subsections.
39278         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39279         Remove sections.
39280
39281 2008-12-14  Bruno Haible  <bruno@clisp.org>
39282
39283         Update doc for POSIX:2008.
39284         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39285
39286 2008-12-14  Bruno Haible  <bruno@clisp.org>
39287
39288         Update doc for POSIX:2008.
39289         * doc/pastposix-functions/bcmp.texi: Renamed from
39290         doc/posix-functions/bcmp.texi.
39291         * doc/pastposix-functions/bcopy.texi: Renamed from
39292         doc/posix-functions/bcopy.texi.
39293         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39294         doc/posix-functions/bsd_signal.texi.
39295         * doc/pastposix-functions/bzero.texi: Renamed from
39296         doc/posix-functions/bzero.texi.
39297         * doc/pastposix-functions/ecvt.texi: Renamed from
39298         doc/posix-functions/ecvt.texi.
39299         * doc/pastposix-functions/fcvt.texi: Renamed from
39300         doc/posix-functions/fcvt.texi.
39301         * doc/pastposix-functions/ftime.texi: Renamed from
39302         doc/posix-functions/ftime.texi.
39303         * doc/pastposix-functions/gcvt.texi: Renamed from
39304         doc/posix-functions/gcvt.texi.
39305         * doc/pastposix-functions/getcontext.texi: Renamed from
39306         doc/posix-functions/getcontext.texi.
39307         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39308         doc/posix-functions/gethostbyaddr.texi.
39309         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39310         doc/posix-functions/gethostbyname.texi.
39311         * doc/pastposix-functions/getwd.texi: Renamed from
39312         doc/posix-functions/getwd.texi.
39313         * doc/pastposix-functions/h_errno.texi: Renamed from
39314         doc/posix-functions/h_errno.texi.
39315         * doc/pastposix-functions/index.texi: Renamed from
39316         doc/posix-functions/index.texi.
39317         * doc/pastposix-functions/makecontext.texi: Renamed from
39318         doc/posix-functions/makecontext.texi.
39319         * doc/pastposix-functions/mktemp.texi: Renamed from
39320         doc/posix-functions/mktemp.texi.
39321         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39322         doc/posix-functions/pthread_attr_getstackaddr.texi.
39323         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39324         doc/posix-functions/pthread_attr_setstackaddr.texi.
39325         * doc/pastposix-functions/rindex.texi: Renamed from
39326         doc/posix-functions/rindex.texi.
39327         * doc/pastposix-functions/scalb.texi: Renamed from
39328         doc/posix-functions/scalb.texi.
39329         * doc/pastposix-functions/setcontext.texi: Renamed from
39330         doc/posix-functions/setcontext.texi.
39331         * doc/pastposix-functions/swapcontext.texi: Renamed from
39332         doc/posix-functions/swapcontext.texi.
39333         * doc/pastposix-functions/ualarm.texi: Renamed from
39334         doc/posix-functions/ualarm.texi.
39335         * doc/pastposix-functions/usleep.texi: Renamed from
39336         doc/posix-functions/usleep.texi.
39337         * doc/pastposix-functions/vfork.texi: Renamed from
39338         doc/posix-functions/vfork.texi.
39339         * doc/pastposix-functions/wcswcs.texi: Renamed from
39340         doc/posix-functions/wcswcs.texi.
39341         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39342         (Function Substitutes): Update.
39343
39344 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39345
39346         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39347         m4/strerror.m4.
39348
39349 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39350             Bruno Haible  <bruno@clisp.org>
39351
39352         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39353
39354 2008-12-13  Bruno Haible  <bruno@clisp.org>
39355
39356         * modules/strtoull (Depends-on): Remove unistd.
39357
39358 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39359
39360         * modules/strtoull (Depends-on): Add stdlib.
39361
39362 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39363
39364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39365
39366 2008-12-10  Jim Meyering  <meyering@redhat.com>
39367
39368         gl_ASSERT: don't say assertions are disabled when they're not
39369         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39370         "checking whether to enable assertions... no", when they are in
39371         fact enabled.  This is solely a bug in the output of configure.
39372         In spite of saying "no", NDEBUG was not defined in that case.
39373         Also, as noted by Eric Blake, leave assertions enabled upon
39374         --enable-assert=INVALID.
39375
39376 2008-12-10  Bruno Haible  <bruno@clisp.org>
39377
39378         Change MODULES.html to refer to POSIX:2008 where possible.
39379         * MODULES.html.sh (POSIX2008_URL): New variable.
39380         (posix_headers): Remove sys/timeb, ucontext.
39381         (posix2001_headers): New variable.
39382         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39383         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39384         index, makecontext, mktemp, pthread_attr_getstackaddr,
39385         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39386         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39387         (posix2001_functions): New variable.
39388         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39389         otherwise.
39390
39391 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39392
39393         add missing include to parse-duration.c
39394         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39395         * modules/parse-duration (Depends-on): Add xalloc.
39396
39397         fix sed script reading maint.mk
39398         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39399         (syntax-check-rules): Use it.
39400
39401 2008-12-09  Bruno Haible  <bruno@clisp.org>
39402
39403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39404         MacOS X 10.4/PowerPC.
39405         Reported by Simon Josefsson.
39406
39407 2008-12-08  Jim Meyering  <meyering@redhat.com>
39408
39409         work around mingw's lack of some S_IF definitions
39410         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39411         Reported by Simon Josefsson.
39412
39413 2008-12-08  Bruno Haible  <bruno@clisp.org>
39414
39415         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39416         applied to variables. Needed on MacOS X 10.4/PowerPC.
39417         Reported by Simon Josefsson.
39418
39419 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39420         and Eric Blake  <ebb9@byu.net>
39421
39422         assert: honor --enable-assert
39423         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39424         order to honor --enable-assert, rather than treating it as a
39425         synonym for --disable-assert.
39426
39427 2008-12-08  Jim Meyering  <meyering@redhat.com>
39428
39429         * lib/posixtm.c: Remove now-useless declaration of mktime.
39430
39431         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39432
39433 2008-12-07  Bruno Haible  <bruno@clisp.org>
39434
39435         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39436         test_once): Mark functions as static.
39437         * tests/test-tls.c (test_tls): Likewise.
39438
39439 2008-12-07  Bruno Haible  <bruno@clisp.org>
39440
39441         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39442         iconv_register_autodetect.
39443
39444 2008-12-07  Jim Meyering  <meyering@redhat.com>
39445
39446         posixtm.c: avoid a warning
39447         * lib/posixtm.c (posixtime): Don't initialize tm0.
39448         It's no longer needed to placate gcc4's -Wuninitialized,
39449         and the attempt to placate would elicit a new warning.
39450
39451         unicodeio.c: mark unused parameters
39452         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39453         (fallback_failure_callback): Likewise.
39454
39455 2008-12-07  Bruno Haible  <bruno@clisp.org>
39456
39457         * gnulib-tool (func_create_testdir): When building the tests
39458         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39459         Reported by Simon Josefsson.
39460
39461 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39462
39463         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39464
39465 2008-12-06  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39468         Suggested by Eric Blake.
39469
39470 2008-12-06  Bruno Haible  <bruno@clisp.org>
39471
39472         Fix a c-stack test failure on MacOS X.
39473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
39474         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
39475         handler for SIGBUS as well.
39476         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
39477         install a signal handler for SIGBUS as well.
39478         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
39479
39480 2008-12-06  Bruno Haible  <bruno@clisp.org>
39481
39482         Advocacy documentation.
39483         * doc/gnulib-intro.texi (Benefits): New section.
39484         * doc/gnulib.texi: Update.
39485
39486 2008-12-06  Bruno Haible  <bruno@clisp.org>
39487
39488         Document the 'manywarnings' module.
39489         * doc/manywarnings.texi: New file.
39490         * doc/gnulib.texi: Include it.
39491
39492 2008-12-05  Eric Blake  <ebb9@byu.net>
39493
39494         tests: silence some gcc warnings
39495         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
39496         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
39497         type mismatches.
39498
39499 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39500             Bruno Haible  <bruno@clisp.org>
39501
39502         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39503
39504 2008-11-29  Jim Meyering  <meyering@redhat.com>
39505
39506         unicodeio.c: mark unused parameters
39507         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39508         (fallback_failure_callback): Likewise.
39509
39510         fts: fix a thinko
39511         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39512         (set_stat_type): Return S_IF*-valued "type" directly.
39513         Prompted by James Youngman's spotting a related bug.
39514         Confirmed by further testing through find.
39515
39516         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
39517         * lib/fts.c (D_TYPE): Define.
39518         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
39519         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
39520         (s_ifmt_shift_bits): New function.
39521         (set_stat_type): New function.
39522         (fts_build): When not calling fts_stat, call set_stat_type
39523         to propagate dirent.d_type info to fts_read caller.
39524         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
39525         fts_statp->st_mode type information may be valid.
39526
39527 2008-11-28  Simon Josefsson  <simon@josefsson.org>
39528
39529         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
39530         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
39531         <sds@gnu.org>.
39532
39533 2008-11-20  Bruno Haible  <bruno@clisp.org>
39534
39535         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
39536         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
39537         INCLUDE_NEXT.
39538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
39539         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
39540         * modules/math (Makefile.am): Substitute
39541         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
39542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39543
39544 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
39545             Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/stdint.in.h: Define all type macros so that their expansion is
39548         a single typedef'ed token. Fixes a compilation failure in Boost which
39549         does "using ::int8_t;".
39550
39551 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39552
39553         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
39554         gl_MANYWARN_ALL_GCC.
39555         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
39556         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
39557         * modules/manywarnings: New file.
39558         * MODULES.html.sh: Mention manywarnings module.
39559
39560 2008-11-18  Bruno Haible  <bruno@clisp.org>
39561
39562         * doc/gnulib-tool.texi (Unit tests): New section.
39563
39564 2008-11-18  Simon Josefsson  <simon@josefsson.org>
39565
39566         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
39567         paths like 'lib/po/foo.po'.
39568
39569 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39570
39571         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
39572         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
39573
39574 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39575
39576         * m4/warnings.m4: Use CPPFLAGS to really check whether the
39577         parameter works.
39578
39579 2008-11-17  Simon Josefsson  <simon@josefsson.org>
39580
39581         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
39582
39583 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39584
39585         * modules/parse-duration-tests: New file.
39586         * tests/test-parse-duration.sh: New file.
39587         * tests/test-parse-duration.c: New file.
39588
39589         New module 'parse-duration'.
39590         * lib/parse-duration.h: New file.
39591         * lib/parse-duration.c: New file.
39592         * modules/parse-duration: New file.
39593
39594 2008-11-17  Bruno Haible  <bruno@clisp.org>
39595
39596         * tests/test-select-out.sh: Comment out the first pipe test.
39597         Reported by Simon Josefsson.
39598
39599 2008-11-17  Bruno Haible  <bruno@clisp.org>
39600
39601         * modules/getaddrinfo (Depends-on): Add servent, hostent.
39602         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
39603         gl_HOSTENT.
39604
39605 2008-11-17  Bruno Haible  <bruno@clisp.org>
39606
39607         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
39608         -lnetwork and -lnet. Needed for Haiku and BeOS.
39609
39610 2008-11-16  Bruno Haible  <bruno@clisp.org>
39611
39612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
39613
39614 2008-11-16  Bruno Haible  <bruno@clisp.org>
39615
39616         Avoid test failure on Haiku.
39617         * tests/test-fsync.c: Include <errno.h>.
39618         (main): Don't require that fsync (0) fails.
39619
39620 2008-11-15  Bruno Haible  <bruno@clisp.org>
39621
39622         New module 'hostent'.
39623         * modules/hostent: New file.
39624         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
39625
39626 2008-11-15  Bruno Haible  <bruno@clisp.org>
39627
39628         New module 'servent'.
39629         * modules/servent: New file.
39630         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
39631
39632 2008-11-15  Bruno Haible  <bruno@clisp.org>
39633
39634         Avoid generating same test program with two different rules.
39635         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
39636         test-frexp to test-frexp-nolibm.
39637         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
39638         test-frexpl to test-frexpl-nolibm.
39639
39640 2008-11-15  Bruno Haible  <bruno@clisp.org>
39641
39642         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
39643         $(FREXPL_LIBM).
39644
39645 2008-11-15  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/netdb.in.h: Activate the definitions also when the system's
39648         <netdb.h> has 'struct addrinfo'.
39649         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
39650         EAI_OVERFLOW or AI_NUMERICSERV.
39651         * doc/posix-headers/netdb.texi: Document the problem.
39652
39653 2008-11-15  Bruno Haible  <bruno@clisp.org>
39654
39655         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
39656
39657         Make the 'sched' module work on platforms where <sched.h> exists but
39658         is incomplete (such as Haiku).
39659         * lib/sched.in.h; Include the system's <sched.h> if it exists.
39660         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
39661         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
39662         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
39663         HAVE_STRUCT_SCHED_PARAM.
39664         * modules/sched (Depends-on): Add include_next.
39665         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
39666         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
39667         * doc/posix-headers/sched.texi: Document the issue.
39668
39669 2008-11-13  Jim Meyering  <meyering@redhat.com>
39670
39671         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
39672         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
39673         test would fail due to the difference in the Report bugs to ...
39674         line.  The expected address is empty, "<>", while the actual
39675         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
39676
39677 2008-11-12  Bruno Haible  <bruno@clisp.org>
39678
39679         lstat: don't compile lstat.c on systems lacking lstat
39680         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
39681         which don't have lstat; this is handled by lib/sys_stat.in.h already.
39682         Reported by Daniel P. Berrange via Jim Meyering.
39683
39684 2008-11-12  Jim Meyering  <meyering@redhat.com>
39685
39686         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
39687
39688 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39689
39690         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
39691         instead.
39692
39693 2008-11-12  Bruno Haible  <bruno@clisp.org>
39694
39695         * lib/unicodeio.c: Include unistr.h.
39696         (utf8_wctomb): Remove function.
39697         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
39698
39699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39700
39701         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
39702         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
39703         <bruno@clisp.org>.
39704         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
39705
39706 2008-11-12  Simon Josefsson  <simon@josefsson.org>
39707
39708         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
39709         * doc/gnulib.texi: Add section for warnings.
39710
39711 2008-11-11  Bruno Haible  <bruno@clisp.org>
39712
39713         * lib/sockets.h: Add a comment.
39714
39715 2008-11-11  Karl Berry  <karl@gnu.org>
39716
39717         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
39718
39719 2008-11-11  Eric Blake  <ebb9@byu.net>
39720
39721         fdl.texi: avoid git symlinks
39722         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
39723
39724 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39725
39726         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
39727
39728 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39729
39730         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
39731         (gl_WARN_ADD): Substitute $2 if literal.
39732
39733 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39734
39735         * m4/warning.m4: Remove.
39736
39737 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
39738
39739         * m4/warnings.m4: Almost complete rewrite. :-)
39740
39741 2008-11-10  Simon Josefsson  <simon@josefsson.org>
39742
39743         * modules/warnings: New module.
39744         * m4/warnings.m4: New file.
39745         * MODULES.html.sh: Mention warnings module.
39746         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
39747         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39748
39749 2008-11-10  Eric Blake  <ebb9@byu.net>
39750
39751         fdl.texi: make a symlink to the latest version
39752         * doc/standards.texi: Revert today's earlier change.
39753         * doc/fdl-1.2.texi: Rename from old fdl.texi...
39754         * doc/fdl.texi: ...and replace this with a symlink to the newer
39755         fdl-1.3.texi.
39756
39757 2008-11-10  Bruno Haible  <bruno@clisp.org>
39758
39759         * tests/test-select-fd.c (main): Accept the result file name as fourth
39760         argument.
39761         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
39762         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
39763
39764 2008-11-10  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
39767         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
39768         as autoconf-substituted macros.
39769         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
39770         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
39771         gl_NETDB_H_DEFAULTS. Set these variables.
39772         * modules/netdb (Makefile.am): Substitute these variables.
39773
39774 2008-11-10  Eric Blake  <ebb9@byu.net>
39775
39776         standards.texi: include correct file for FDL 1.3
39777         * doc/standards.texi (GNU Free Documentation License): Change
39778         include file to pull in FDL 1.3, not 1.2.
39779
39780         fdl.texi: revert accidental change to license
39781         * doc/fdl.texi: This is FDL 1.2, not 1.3.
39782
39783 2008-11-10  Bruno Haible  <bruno@clisp.org>
39784
39785         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
39786         cross-compiling guesses also when the native compile gives no result.
39787
39788 2008-11-10  Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/spawni.c (__spawni): Force variable into the stack.
39791
39792 2008-11-10  Bruno Haible  <bruno@clisp.org>
39793
39794         Add support for Haiku.
39795         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
39796         glibc and BeOS, but also on Haiku.
39797         * lib/fpurge.c (fpurge): Likewise.
39798         * lib/freadable.c (freadable): Likewise.
39799         * lib/freadahead.c (freadahead): Likewise.
39800         * lib/freading.c (freading): Likewise.
39801         * lib/freadptr.c (freadptr): Likewise.
39802         * lib/freadseek.c (freadptrinc): Likewise.
39803         * lib/fseeko.c (rpl_fseeko): Likewise.
39804         * lib/fseterr.c (fseterr): Likewise.
39805         * lib/fwritable.c (fwritable): Likewise.
39806         * lib/fwriting.c (fwriting): Likewise.
39807         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
39808
39809 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39810
39811         * lib/config.charset: Treat Haiku like BeOS.
39812
39813 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
39814
39815         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
39816         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
39817
39818 2008-11-08  Bruno Haible  <bruno@clisp.org>
39819
39820         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
39821         AC_CACHE_CHECK.
39822
39823 2008-11-08  Bruno Haible  <bruno@clisp.org>
39824
39825         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
39826
39827 2008-11-08  Bruno Haible  <bruno@clisp.org>
39828
39829         * tests/test-select-fd.c: New file.
39830         * tests/test-select-in.sh: New file.
39831         * tests/test-select-out.sh: New file.
39832         * tests/test-select-stdin.c: New file.
39833         * modules/select-tests (Files): Add the new files.
39834         (Depends-on): Add gettimeofday.
39835         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
39836         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
39837         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
39838
39839 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
39840             Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
39843
39844 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
39845
39846         * build-aux/pmccabe2html: Added support for C++ source files.
39847
39848 2008-11-05  Ben Pfaff  <blp@gnu.org>
39849
39850         Fix lib/close.c build on Windows.
39851         * modules/close (Files): Add lib/w32sock.h.
39852
39853 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
39854
39855         Accept Bison's NEWS format.
39856         * build-aux/announce-gen (print_news_deltas): Tweak
39857         $re_prefix.
39858
39859 2008-11-04  Bruno Haible  <bruno@clisp.org>
39860
39861         * modules/random_r (Maintainer): Add glibc.
39862
39863 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39864
39865         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
39866         by karl@freefriends.org (Karl Berry).
39867         * doc/alloca.texi: Likewise.
39868         * doc/c-ctype.texi: Likewise.
39869         * doc/c-strcase.texi: Likewise.
39870         * doc/c-strcaseeq.texi: Likewise.
39871         * doc/c-strcasestr.texi: Likewise.
39872         * doc/c-strstr.texi: Likewise.
39873         * doc/c-strtod.texi: Likewise.
39874         * doc/c-strtold.texi: Likewise.
39875         * doc/ctime.texi: Likewise.
39876         * doc/error.texi: Likewise.
39877         * doc/fdl.texi: Likewise.
39878         * doc/gcd.texi: Likewise.
39879         * doc/getdate.texi: Likewise.
39880         * doc/gnulib-intro.texi: Likewise.
39881         * doc/gnulib-tool.texi: Likewise.
39882         * doc/gnulib.texi: Likewise.
39883         * doc/inet_ntoa.texi: Likewise.
39884         * doc/maintain.texi: Likewise.
39885         * doc/make-stds.texi: Likewise.
39886         * doc/quote.texi: Likewise.
39887         * doc/regexprops-generic.texi: Likewise.
39888         * doc/standards.texi: Likewise.
39889         * doc/verify.texi: Likewise.
39890         * doc/visibility.texi: Likewise.
39891         * doc/gnulib.texi (GNU Free Documentation License): Include
39892         fdl-1.3.texi instead of fdl.texi.
39893
39894 2008-11-04  Simon Josefsson  <simon@josefsson.org>
39895
39896         * doc/fdl-1.3.texi: New file, from
39897         <http://www.gnu.org/licenses/fdl-1.3.texi>.
39898         * modules/fdl-1.3: Add.
39899         * MODULES.html.sh: Add fdl-1.3.
39900
39901 2008-11-03  Bruno Haible  <bruno@clisp.org>
39902
39903         Make determination of absolute name of header file work with AIX xlc.
39904         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
39905         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
39906         preprocessing.
39907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39908         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39909
39910 2008-11-03  Simon Josefsson  <simon@josefsson.org>
39911
39912         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
39913         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
39914         <ludo@gnu.org>.
39915
39916 2008-11-02  Bruno Haible  <bruno@clisp.org>
39917
39918         Mark 'strpbrk' obsolete.
39919         * modules/strpbrk (Status, Notice): New sections.
39920         * modules/strtok_r (Depends-on): Add strpbrk.
39921
39922 2008-11-02  Bruno Haible  <bruno@clisp.org>
39923
39924         Mark 'strdup' obsolete.
39925         * modules/strdup (Status, Notice): New sections.
39926         * modules/findprog (Depends-on): Add strdup.
39927         * modules/getaddrinfo (Depends-on): Likewise.
39928         * modules/localename (Depends-on): Likewise.
39929         * modules/relocatable-lib (Depends-on): Likewise.
39930         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
39931         * modules/relocatable-prog (Depends-on): Likewise.
39932         * modules/trim (Depends-on): Likewise.
39933         * modules/unictype/gen-ctype (Depends-on): Likewise.
39934         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
39935
39936 2008-11-02  Bruno Haible  <bruno@clisp.org>
39937
39938         Mark 'strcspn' obsolete.
39939         * modules/strcspn (Status, Notice): New sections.
39940
39941 2008-11-02  Bruno Haible  <bruno@clisp.org>
39942
39943         Mark 'rmdir' obsolete.
39944         * modules/rmdir (Status, Notice): New sections.
39945         * modules/clean-temp (Depends-on): Add rmdir.
39946         * modules/openat (Depends-on): Likewise.
39947
39948 2008-11-02  Bruno Haible  <bruno@clisp.org>
39949
39950         Mark 'raise' obsolete.
39951         * modules/raise (Status, Notice): New sections.
39952         (Include): Specify <signal.h>.
39953         * modules/stdio (Depends-on): Add raise.
39954         * modules/write (Depends-on): Likewise.
39955
39956 2008-11-02  Bruno Haible  <bruno@clisp.org>
39957
39958         Mark 'memset' obsolete.
39959         * modules/memset (Status, Notice): New sections.
39960
39961 2008-11-02  Bruno Haible  <bruno@clisp.org>
39962
39963         Mark 'memmove' obsolete.
39964         * modules/memmove (Status, Notice): New sections.
39965         * modules/argp (Depends-on): Add memmove.
39966         * modules/argz (Depends-on): Likewise.
39967         * modules/canonicalize (Depends-on): Likewise.
39968         * modules/canonicalize-lgpl (Depends-on): Likewise.
39969         * modules/fts (Depends-on): Likewise.
39970         * modules/getcwd (Depends-on): Likewise.
39971         * modules/human (Depends-on): Likewise.
39972         * modules/regex (Depends-on): Likewise.
39973         * modules/striconveh (Depends-on): Likewise.
39974         * modules/trim (Depends-on): Likewise.
39975         * modules/unistr/u8-move (Depends-on): Likewise.
39976         * modules/unistr/u16-move (Depends-on): Likewise.
39977         * modules/unistr/u32-move (Depends-on): Likewise.
39978
39979 2008-11-02  Bruno Haible  <bruno@clisp.org>
39980
39981         Mark 'memcpy' obsolete.
39982         * modules/memcpy (Status, Notice): New sections.
39983
39984 2008-11-02  Bruno Haible  <bruno@clisp.org>
39985
39986         Mark 'memcmp' obsolete.
39987         * modules/memcmp (Status, Notice): New sections.
39988         * modules/argmatch (Depends-on): Add memchr.
39989         * modules/backupfile (Depends-on): Likewise.
39990         * modules/c-strcasestr (Depends-on): Likewise.
39991         * modules/crypto/des (Depends-on): Likewise.
39992         * modules/csharpcomp (Depends-on): Likewise.
39993         * modules/fnmatch (Depends-on): Likewise.
39994         * modules/git-merge-changelog (Depends-on): Likewise.
39995         * modules/isnand (Depends-on): Likewise.
39996         * modules/isnand-nolibm (Depends-on): Likewise.
39997         * modules/isnanf (Depends-on): Likewise.
39998         * modules/isnanf-nolibm (Depends-on): Likewise.
39999         * modules/isnanl (Depends-on): Likewise.
40000         * modules/isnanl-nolibm (Depends-on): Likewise.
40001         * modules/mbchar (Depends-on): Likewise.
40002         * modules/memcoll (Depends-on): Likewise.
40003         * modules/quotearg (Depends-on): Likewise.
40004         * modules/regex (Depends-on): Likewise.
40005         * modules/relocatable-prog (Depends-on): Likewise.
40006         * modules/same (Depends-on): Likewise.
40007         * modules/signbit (Depends-on): Likewise.
40008         * modules/strcasestr-simple (Depends-on): Likewise.
40009         * modules/unictype/gen-ctype (Depends-on): Likewise.
40010         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40011         * modules/uniname/uniname (Depends-on): Likewise.
40012         * modules/unistr/u8-cmp (Depends-on): Likewise.
40013
40014 2008-11-02  Bruno Haible  <bruno@clisp.org>
40015
40016         Mark 'memchr' obsolete.
40017         * modules/memchr (Status, Notice): New sections.
40018         * modules/argp (Depends-on): Add memchr.
40019         * modules/base64 (Depends-on): Likewise.
40020         * modules/c-strcasestr (Depends-on): Likewise.
40021         * modules/chdir-long (Depends-on): Likewise.
40022         * modules/fnmatch (Depends-on): Likewise.
40023         * modules/getsubopt (Depends-on): Likewise.
40024         * modules/git-merge-changelog (Depends-on): Likewise.
40025         * modules/glob (Depends-on): Likewise.
40026         * modules/strcasestr-simple (Depends-on): Likewise.
40027         * modules/strnlen (Depends-on): Likewise.
40028
40029 2008-11-02  Bruno Haible  <bruno@clisp.org>
40030
40031         Mark 'atexit' obsolete.
40032         * modules/atexit (Status, Notice): New sections.
40033         * modules/chdir-long (Depends-on): Add atexit.
40034         * modules/wait-process (Depends-on): Likewise.
40035
40036 2008-11-02  Bruno Haible  <bruno@clisp.org>
40037
40038         * gnulib-tool: New option --with-obsolete.
40039         (func_usage): Document it.
40040         (func_modules_transitive_closure): Drop obsolete dependencies if
40041         incobsolete is not true.
40042         (func_import): Read and save the incobsolete variable to the cache.
40043
40044 2008-11-02  Bruno Haible  <bruno@clisp.org>
40045
40046         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40047         * gnulib-tool: New option --extract-status.
40048         (func_usage): Document it.
40049         (sed_extract_prog): Recognize it.
40050         (func_get_status): New function.
40051
40052 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40053
40054         * modules/sockets (License): Change from LGPL to LGPLv2+.
40055
40056 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40057
40058         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40059
40060 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40061
40062         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40063         Mention times and sys_times.
40064         * modules/sys_times, modules/sys_times-tests: New modules.
40065         * modules/times, modules/times-tests: Likewise
40066         * m4/sys_times_h.m4: New file.
40067         * lib/sys_times.in.h: Likewise
40068         * lib/times.c: Likewise.
40069         * tests/test-sys_times.c: Likewise.
40070         * tests/test-times.c: Likewise.
40071         * doc/posix-headers/sys_times.texi: Update.
40072         * doc/posix-functions/times.texi: Update.
40073
40074 2008-10-28  Jim Meyering  <meyering@redhat.com>
40075
40076         * modules/tempname (Depends-on): Add lstat.
40077
40078         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40079
40080 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40081
40082         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40083         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40084         using idiom used elsewhere in gnulib.
40085
40086 2008-10-27  Jim Meyering  <meyering@redhat.com>
40087
40088         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40089
40090 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40091
40092         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40093         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40094         programs.
40095         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40096
40097 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40098
40099         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40100
40101 2008-10-27  Bruno Haible  <bruno@clisp.org>
40102
40103         * tests/test-lstat.c: Include <stdio.h>.
40104
40105 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40106
40107         * modules/lstat-tests: New module.
40108         * tests/test-lstat.c: New file.
40109
40110 2008-10-26  Jim Meyering  <meyering@redhat.com>
40111
40112         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40113
40114 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40115             Bruno Haible  <bruno@clisp.org>
40116
40117         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40118         * modules/configmake (Include): Add a note that the include must come
40119         after all system headers.
40120         * lib/javaversion.c: Include configmake.h after all other includes.
40121
40122 2008-10-26  Bruno Haible  <bruno@clisp.org>
40123
40124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40125         HAVE_STRUCT_RANDOM_DATA to 1.
40126         (gl_STDLIB_H): Simplify.
40127
40128 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40129
40130         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40131         substitute HAVE_STRUCT_RANDOM_DATA.
40132         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40133         random_data.
40134         * modules/stdlib (Makefile.am): Substitute
40135         HAVE_STRUCT_RANDOM_DATA.
40136
40137 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40138
40139         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40140         * doc/gnulib-intro.texi (Copyright): Likewise.
40141
40142 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40143
40144         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40145         findings.
40146
40147 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40148             Bruno Haible  <bruno@clisp.org>
40149
40150         * lib/unistd.in.h: Include <winsock2.h>.
40151         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40152         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40153         Provide dummy declarations.
40154         (gethostname): Override.
40155         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40156         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40157         gl_PREREQ_SYS_H_WINSOCK2.
40158         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40159         * doc/posix-functions/gethostname.texi: More details.
40160
40161 2008-10-25  Bruno Haible  <bruno@clisp.org>
40162
40163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40164         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40165         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40166
40167         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40168         here ...
40169         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40170         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40171         gl_UNISTD_H_DEFAULTS.
40172
40173 2008-10-25  Eric Blake  <ebb9@byu.net>
40174
40175         signbit: avoid spurious compiler failure
40176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40177         declarations inside function.
40178
40179 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40180             Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40183         * modules/random_r (Depends-on): Add stdint.
40184
40185 2008-10-24  Bruno Haible  <bruno@clisp.org>
40186
40187         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40188         Eggert.
40189         * modules/strerror (License): Likewise.
40190
40191 2008-10-24  Jim Meyering  <meyering@redhat.com>
40192
40193         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40194         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40195
40196 2008-10-24  Eric Blake  <ebb9@byu.net>
40197
40198         getgroups: fix compilation when getgroups is available
40199         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40200         but with <config.h> override of getgroups disabled.
40201
40202 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40203
40204         * doc/gnulib.texi (Header files): Add note about C++ problems.
40205         Explained by Bruno Haible <bruno@clisp.org>.
40206
40207 2008-10-23  Bruno Haible  <bruno@clisp.org>
40208
40209         Define a dummy SA_NODEFER macro on Interix.
40210         * lib/signal.in.h (SA_NODEFER): Define fallback.
40211         Reported by Aleksey Cheusov <cheusov@tut.by> via
40212         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40213
40214 2008-10-23  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/freadahead (License): Change to LGPLv2+.
40217         Suggested by Simon Josefsson.
40218
40219 2008-10-23  Jim Meyering  <meyering@redhat.com>
40220
40221         random_r: new module
40222         * modules/random_r: New file.
40223         * m4/random_r.m4: New file.
40224         * lib/random_r.c: New file, from glibc.
40225         * modules/random_r-tests: New file.
40226         * tests/test-random_r.c: New file.
40227         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40228          Declare.
40229         (RAND_MAX): Define.
40230         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40231         * modules/stdlib: Substitute them, too.
40232         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40233         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40234         * doc/glibc-functions/random_r.texi: Likewise.
40235         * doc/glibc-functions/setstate_r.texi: Likewise.
40236         * doc/glibc-functions/srandom_r.texi: Likewise.
40237         * config/srclist.txt: Mention it.
40238
40239 2008-10-23  David Lutterkort  <lutter@redhat.com>
40240
40241         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40242         link requirement
40243
40244 2008-10-23  Jim Meyering  <meyering@redhat.com>
40245
40246         selinux-h: mark parameters of stub functions as intentionally unused
40247         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40248         * lib/se-context.in.h: Likewise.
40249
40250 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40251
40252         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40253
40254 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40255
40256         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40257
40258 2008-10-22  Eric Blake  <ebb9@byu.net>
40259
40260         glthread/thread: avoid compiler warning
40261         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40262         Add unreachable abort to silence compiler.
40263
40264 2008-10-22  Eric Blake  <ebb9@byu.net>
40265
40266         netdb: also supply struct addrinfo for cygwin 1.5.x
40267         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40268         older cygwin.
40269         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40270         cygwin.
40271         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40272
40273 2008-10-22  Bruno Haible  <bruno@clisp.org>
40274
40275         * users.txt: Update entry about pspp.
40276
40277 2008-10-21  Bruno Haible  <bruno@clisp.org>
40278
40279         Simplification.
40280         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40281         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40282
40283         Simplification.
40284         * lib/ioctl.c (ioctl): Don't undefine.
40285         * lib/socket.c (socket): Don't undefine.
40286
40287         Remove unused module indicator macros.
40288         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40289         GNULIB_$1 as a C macro.
40290
40291         * doc/posix-functions/close.texi: Undo last change.
40292         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40293         Windows platforms.
40294
40295 2008-10-21  Bruno Haible  <bruno@clisp.org>
40296
40297         Add gethostname() declaration to <unistd.h>.
40298         * lib/unistd.in.h (gethostname): New declaration.
40299         * lib/gethostname.c: Include <unistd.h>.
40300         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40301         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40303         and HAVE_GETHOSTNAME.
40304         * modules/gethostname (Depends-on): Add unistd.
40305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40306         (Include): Specify <unistd.h>.
40307         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40308         HAVE_GETHOSTNAME.
40309         * tests/test-gethostname.c: Include <unistd.h> first.
40310
40311 2008-10-21  Bruno Haible  <bruno@clisp.org>
40312
40313         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40314         * modules/select-tests (Depends-on): Likewise.
40315         Reported by Simon Josefsson.
40316
40317 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40318
40319         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40320         * lib/accept.c: New file, based on winsock.c.
40321         * lib/bind.c: New file, based on winsock.c.
40322         * lib/connect.c: New file, based on winsock.c.
40323         * lib/getpeername.c: New file, based on winsock.c.
40324         * lib/getsockname.c: New file, based on winsock.c.
40325         * lib/getsockopt.c: New file, based on winsock.c.
40326         * lib/ioctl.c: New file, based on winsock.c.
40327         * lib/listen.c: New file, based on winsock.c.
40328         * lib/recv.c: New file, based on winsock.c.
40329         * lib/recvfrom.c: New file, based on winsock.c.
40330         * lib/send.c: New file, based on winsock.c.
40331         * lib/sendto.c: New file, based on winsock.c.
40332         * lib/setsockopt.c: New file, based on winsock.c.
40333         * lib/shutdown.c: New file, based on winsock.c.
40334         * lib/socket.c: New file, based on winsock.c.
40335         * lib/w32sock.h: New file, based on winsock.c.
40336         * lib/winsock.c: Remove file.
40337         * modules/accept: Likewise.
40338         * modules/bind: Likewise.
40339         * modules/connect: Likewise.
40340         * modules/getpeername: Likewise.
40341         * modules/getsockname: Likewise.
40342         * modules/getsockopt: Likewise.
40343         * modules/ioctl: Likewise.
40344         * modules/listen: Likewise.
40345         * modules/recv: Likewise.
40346         * modules/recvfrom: Likewise.
40347         * modules/send: Likewise.
40348         * modules/sendto: Likewise.
40349         * modules/setsockopt: Likewise.
40350         * modules/shutdown: Likewise.
40351         * modules/socket: Use socket.c instead of winsock.c.
40352         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40353         * doc/posix-functions/accept.texi: Doc fix.
40354         * doc/posix-functions/bind.texi: Doc fix.
40355         * doc/posix-functions/close.texi: Doc fix.
40356         * doc/posix-functions/connect.texi: Doc fix.
40357         * doc/posix-functions/getpeername.texi: Doc fix.
40358         * doc/posix-functions/getsockname.texi: Doc fix.
40359         * doc/posix-functions/getsockopt.texi: Doc fix.
40360         * doc/posix-functions/ioctl.texi: Doc fix.
40361         * doc/posix-functions/listen.texi: Doc fix.
40362         * doc/posix-functions/recv.texi: Doc fix.
40363         * doc/posix-functions/recvfrom.texi: Doc fix.
40364         * doc/posix-functions/send.texi: Doc fix.
40365         * doc/posix-functions/sendto.texi: Doc fix.
40366         * doc/posix-functions/setsockopt.texi: Doc fix.
40367         * doc/posix-functions/shutdown.texi: Doc fix.
40368         * doc/posix-functions/socket.texi: Doc fix.
40369
40370 2008-10-20  Bruno Haible  <bruno@clisp.org>
40371
40372         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40373         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40374         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40375         as an alias for SIGABRT.
40376         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40377         (sigaction): Map it to SIGABRT.
40378         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40379
40380 2008-10-20  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/fts.c: Don't include lstat.h.
40383         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40384
40385         Move the lstat() declaration to <sys/stat.h>.
40386         * lib/lstat.h: Remove file.
40387         * lib/sys_stat.in.h: Add special invocation convention.
40388         (lstat): New declaration.
40389         * lib/lstat.c (orig_lstat): New function.
40390         (rpl_lstat): Use orig_lstat instead of lstat.
40391         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40392         AC_C_INLINE. Set REPLACE_LSTAT.
40393         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40394         and REPLACE_LSTAT.
40395         * modules/lstat (Files): Remove lib/lstat.h.
40396         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40397         (Include): Specify <sys/stat.h> instead of lstat.h.
40398         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40399         REPLACE_LSTAT.
40400         * NEWS: Mention the change.
40401
40402 2008-10-20  Bruno Haible  <bruno@clisp.org>
40403
40404         * modules/posix_spawn-tests: New file.
40405         * tests/test-posix_spawn3.c: New file.
40406
40407 2008-10-20  Bruno Haible  <bruno@clisp.org>
40408
40409         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40410         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40411         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40412         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40413         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40414
40415 2008-10-20  Bruno Haible  <bruno@clisp.org>
40416
40417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40418         of posix_spawn on AIX 5.3.
40419
40420 2008-10-20  Bruno Haible  <bruno@clisp.org>
40421
40422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40423
40424 2008-10-20  Bruno Haible  <bruno@clisp.org>
40425
40426         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40427         of AC_LANG_PROGRAM.
40428
40429 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40430
40431         * lib/netdb.in.h: Don't define GNU specific constants until they
40432         are supported or needed.  Reported by Bruno Haible
40433         <bruno@clisp.org>.
40434
40435 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40436
40437         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40438
40439 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40440
40441         * lib/getaddrinfo.h: Remove file.
40442         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40443         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40444         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40445         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40446         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40447         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40448         * tests/test-getaddrinfo.c: Likewise.
40449         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40450         * NEWS: Mention change.
40451
40452 2008-10-19  Bruno Haible  <bruno@clisp.org>
40453
40454         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40455
40456 2008-10-19  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/wait-process.c: Include simply <sys/wait.h>.
40459         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40460         WIFSTOPPED): Remove fallback definitions.
40461         * modules/wait-process (Depends-on): Add sys_wait.
40462
40463         New module 'sys_wait'.
40464         * modules/sys_wait: New file.
40465         * lib/sys_wait.in.h: New file, partially copied from
40466         lib/wait-process.c.
40467         * m4/sys_wait_h.m4: New file.
40468         * doc/posix-headers/sys_wait.texi: Mention the new module.
40469
40470 2008-10-19  Bruno Haible  <bruno@clisp.org>
40471
40472         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
40473
40474 2008-10-19  Bruno Haible  <bruno@clisp.org>
40475
40476         Assume that waitpid() fills an 'int' status, not a 'union wait'.
40477         * lib/wait-process.c (WAIT_T): Remove type.
40478         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
40479         (wait_subprocess): Update.
40480
40481 2008-10-19  Bruno Haible  <bruno@clisp.org>
40482
40483         New module 'atoll'.
40484         * modules/atoll: New file.
40485         * lib/stdlib.in.h (atoll): New declaration.
40486         * lib/atoll.c: New file, from glibc with modifications.
40487         * m4/atoll.m4: New file.
40488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
40489         HAVE_ATOLL.
40490         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
40491         * doc/posix-functions/atoll.texi: Mention the new module.
40492
40493 2008-10-19  Bruno Haible  <bruno@clisp.org>
40494
40495         Add strtoull() declaration to <stdlib.h>.
40496         * lib/stdlib.in.h (strtoull): New declaration.
40497         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40498         Set HAVE_STRTOULL.
40499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
40500         HAVE_STRTOULL.
40501         * modules/strtoull (Depends-on): Add stdlib.
40502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40503         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
40504         HAVE_STRTOULL.
40505
40506 2008-10-19  Bruno Haible  <bruno@clisp.org>
40507
40508         Add strtoll() declaration to <stdlib.h>.
40509         * lib/stdlib.in.h (strtoll): New declaration.
40510         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
40511         Set HAVE_STRTOLL.
40512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
40513         HAVE_STRTOLL.
40514         * modules/strtoll (Depends-on): Add stdlib.
40515         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40516         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
40517
40518 2008-10-19  Bruno Haible  <bruno@clisp.org>
40519
40520         * modules/bcopy (Depends-on): Add strings.
40521         (Include): Specify <strings.h>.
40522
40523 2008-10-19  Bruno Haible  <bruno@clisp.org>
40524
40525         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
40526
40527 2008-10-19  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
40530         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
40531         mingw.
40532
40533 2008-10-19  Bruno Haible  <bruno@clisp.org>
40534
40535         * lib/atanl.c: Don't include isnanl.h.
40536         * lib/cosl.c: Likewise.
40537         * lib/ldexpl.c: Likewise.
40538         * lib/logl.c: Likewise.
40539         * lib/sinl.c: Likewise.
40540         * lib/sqrtl.c: Likewise.
40541         * lib/tanl.c: Likewise.
40542
40543         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
40544         * lib/isnanf.h: Remove file.
40545         * lib/isnand.h: Remove file.
40546         * lib/isnanl.h: Remove file.
40547         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
40548         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
40549         macros.
40550         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
40551         HAVE_ISNANF, don't define it as a C macro.
40552         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
40553         HAVE_ISNAND, don't define it as a C macro.
40554         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
40555         HAVE_ISNANL, don't define it as a C macro.
40556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
40557         HAVE_ISNAN[FDL].
40558         * modules/isnanf (Files): Remove lib/isnanf.h.
40559         (Depends-on): Add math.
40560         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40561         (Include): Specify <math.h> instead of isnanf.h.
40562         * modules/isnand (Files): Remove lib/isnand.h.
40563         (Depends-on): Add math.
40564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40565         (Include): Specify <math.h> instead of isnand.h.
40566         * modules/isnanl (Files): Remove lib/isnanl.h.
40567         (Depends-on): Add math.
40568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40569         (Include): Specify <math.h> instead of isnanl.h.
40570         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
40571         HAVE_ISNAN[FDL].
40572         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
40573         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
40574         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
40575         * NEWS: Mention the change.
40576
40577 2008-10-18  Bruno Haible  <bruno@clisp.org>
40578
40579         Add getusershell(), setusershell(), endusershell() declarations to
40580         <unistd.h>.
40581         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
40582         declarations.
40583         * lib/getusershell.c: Include unistd.h.
40584         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
40585         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40586         HAVE_GETUSERSHELL.
40587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
40588         and HAVE_GETUSERSHELL.
40589         * modules/getusershell (Depends-on): Add unistd, extensions.
40590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40591         (Include): Specify <unistd.h>.
40592         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
40593         HAVE_GETUSERSHELL.
40594
40595 2008-10-18  Bruno Haible  <bruno@clisp.org>
40596
40597         Add a getloadavg() declaration to <stdlib.h>.
40598         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
40599         getloadavg declaration.
40600         (getloadavg): New declaration.
40601         * lib/getloadavg.c: Include <stdlib.h> first.
40602         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
40603         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
40604         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
40605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
40606         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40607         * modules/getloadavg (Depends-on): Add stdlib, extensions.
40608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40609         (Include): Specify <stdlib.h>.
40610         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
40611         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
40612
40613 2008-10-18  Bruno Haible  <bruno@clisp.org>
40614
40615         * lib/dirchownmod.c: Don't include lchmod.h.
40616
40617         Move the lchmod() declaration to <sys/stat.h>.
40618         * lib/lchmod.h: Remove file.
40619         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
40620         (lchmod): New declaration, moved here from lib/lchown.h.
40621         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
40622         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
40623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
40624         and HAVE_LCHMOD.
40625         * modules/lchmod (Files): Remove lib/lchmod.h.
40626         (Depends-on): Add sys_stat, extensions.
40627         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40628         (Include): Specify <sys/stat.h> instead of lchmod.h.
40629         * modules/sys_stat (Depends-on): Add link-warning.
40630         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
40631         definition of GL_LINK_WARNING.
40632         * NEWS: Mention the change.
40633
40634 2008-10-18  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/fchdir.c: Don't include dirfd.h.
40637         * lib/fts.c: Likewise.
40638         * lib/getcwd.c: Likewise.
40639         * lib/glob.c: Likewise.
40640
40641         Move the dirfd() declaration to <dirent.h>.
40642         * lib/dirfd.h: Remove file.
40643         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
40644         (dirfd): New declaration.
40645         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
40646         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
40647         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
40648         HAVE_DECL_DIRFD.
40649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
40650         HAVE_DECL_DIRFD.
40651         * modules/dirfd (Files): Remove lib/dirfd.h.
40652         (Depends-on): Add dirent, extensions.
40653         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
40654         (Include): Specify <dirent.h> instead of dirfd.h.
40655         * modules/dirent (Depends-on): Add link-warning.
40656         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
40657         definition of GL_LINK_WARNING.
40658         * NEWS: Mention the change.
40659
40660 2008-10-18  Bruno Haible  <bruno@clisp.org>
40661
40662         Move the euidaccess() declaration to <unistd.h>.
40663         * lib/euidaccess.h: Remove file.
40664         * lib/unistd.in.h (euidaccess): New declaration.
40665         * lib/euidaccess.c: Don't include euidaccess.h.
40666         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
40667         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
40668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
40669         and HAVE_EUIDACCESS.
40670         * modules/euidaccess (Files): Remove lib/euidaccess.h.
40671         (Depends-on): Add unistd.
40672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40673         (Include): Specify <unistd.h> instead of euidaccess.h.
40674         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
40675         HAVE_EUIDACCESS.
40676         * NEWS: Mention the change.
40677
40678 2008-10-18  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
40681
40682         Move the getdomainname() declaration to <unistd.h>.
40683         * lib/getdomainname.h: Remove file.
40684         * lib/unistd.in.h (getdomainname): New declaration.
40685         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
40686         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
40687         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
40688         HAVE_GETDOMAINNAME.
40689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40690         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
40691         * modules/getdomainname (Files): Remove lib/getdomainname.h.
40692         (Depends-on): Add unistd, extensions.
40693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40694         (Includes): Specify <unistd.h> instead of getdomainname.h.
40695         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
40696         HAVE_GETDOMAINNAME.
40697         * NEWS: Mention the change.
40698
40699 2008-10-18  Bruno Haible  <bruno@clisp.org>
40700
40701         * modules/dirent: New file.
40702         * m4/dirent_h.m4: New file.
40703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
40704         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
40705         * modules/fchdir (Files): Remove lib/dirent.in.h.
40706         (Depends-on): Add dirent.
40707         (Makefile.am): Move rules to modules/dirent.
40708         * doc/posix-headers/dirent.texi: Mention the new module.
40709
40710 2008-10-18  Bruno Haible  <bruno@clisp.org>
40711
40712         Avoid -Wunused-parameter warnings in public gnulib header files.
40713         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
40714         macro.
40715         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
40716
40717 2008-10-18  Bruno Haible  <bruno@clisp.org>
40718
40719         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
40720         * doc/glibc-functions/error.texi: Mention the module 'error'.
40721         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
40722         * doc/glibc-functions/getdomainname.texi: Mention the module
40723         'getdomainname'.
40724         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
40725         * doc/glibc-functions/getpagesize.texi: Mention the module
40726         'getpagesize'.
40727         * doc/glibc-functions/getusershell.texi: Mention the module
40728         'getusershell'.
40729         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
40730         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
40731         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
40732         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
40733         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
40734         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
40735         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
40736         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
40737         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
40738         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
40739         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
40740         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
40741         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
40742         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
40743
40744 2008-10-17  Bruno Haible  <bruno@clisp.org>
40745
40746         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
40747         HP-UX and IRIX, use -0.0L.
40748         * tests/test-ceill.c (minus_zero): Likewise.
40749         * tests/test-floorl.c (minus_zero): Likewise.
40750         * tests/test-frexpl.c (minus_zero): Likewise.
40751         * tests/test-isnan.c (minus_zerol): Likewise.
40752         * tests/test-isnanl.h (minus_zero): Likewise.
40753         * tests/test-ldexpl.c (minus_zero): Likewise.
40754         * tests/test-roundl.c (minus_zero): Likewise.
40755         * tests/test-signbit.c (minus_zerol): Likewise.
40756         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40757         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40758         * tests/test-truncl.c (minus_zero): Likewise.
40759         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40760         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40761         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
40762         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40763
40764 2008-10-17  Bruno Haible  <bruno@clisp.org>
40765
40766         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
40767         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
40768         that it gets activated only for gcc >= 3.0.
40769         * lib/dirent.in.h: Likewise.
40770         * lib/errno.in.h: Likewise.
40771         * lib/fcntl.in.h: Likewise.
40772         * lib/float.in.h: Likewise.
40773         * lib/iconv.in.h: Likewise.
40774         * lib/inttypes.in.h: Likewise.
40775         * lib/locale.in.h: Likewise.
40776         * lib/math.in.h: Likewise.
40777         * lib/netdb.in.h: Likewise.
40778         * lib/netinet_in.in.h: Likewise.
40779         * lib/search.in.h: Likewise.
40780         * lib/signal.in.h: Likewise.
40781         * lib/spawn.in.h: Likewise.
40782         * lib/stdarg.in.h: Likewise.
40783         * lib/stdint.in.h: Likewise.
40784         * lib/stdio.in.h: Likewise.
40785         * lib/stdlib.in.h: Likewise.
40786         * lib/string.in.h: Likewise.
40787         * lib/strings.in.h: Likewise.
40788         * lib/sys_file.in.h: Likewise.
40789         * lib/sys_ioctl.in.h: Likewise.
40790         * lib/sys_select.in.h: Likewise.
40791         * lib/sys_socket.in.h: Likewise.
40792         * lib/sys_stat.in.h: Likewise.
40793         * lib/sys_time.in.h: Likewise.
40794         * lib/sysexits.in.h: Likewise.
40795         * lib/time.in.h: Likewise.
40796         * lib/unistd.in.h: Likewise.
40797         * lib/wchar.in.h: Likewise.
40798         * lib/wctype.in.h: Likewise.
40799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40800
40801 2008-10-17  Jim Meyering  <meyering@redhat.com>
40802
40803         ignore-value: don't depend on inline module
40804         * modules/ignore-value (Depends-on): Remove 'inline'.
40805         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
40806         Suggestion from Bruno Haible.
40807
40808 2008-10-17  Bruno Haible  <bruno@clisp.org>
40809
40810         New implementation of condition variables for Win32.
40811         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
40812         (gl_linked_waitqueue_t): New type.
40813         (gl_cond_t): Use it.
40814         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
40815         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
40816         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
40817         (glthread_cond_init_func, glthread_cond_wait_func,
40818         glthread_cond_timedwait_func, glthread_cond_signal_func,
40819         glthread_cond_broadcast_func, glthread_cond_destroy_func):
40820         Reimplemented on the basis of gl_linked_waitqueue_t.
40821         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
40822         gl_waitqueue_t.
40823         (gl_rwlock_t): Update.
40824         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
40825
40826 2008-10-17  Simon Josefsson  <simon@josefsson.org>
40827
40828         * modules/recvfrom (Depends-on): Add dependency on getpeername.
40829         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40830
40831 2008-10-17  Jim Meyering  <meyering@redhat.com>
40832
40833         ignore-value: new module
40834         * modules/ignore-value: New file.
40835         * lib/ignore-value.h: New file.
40836         * MODULES.html.sh (Compiler warning management): New section,
40837         just for this module.  More to come.
40838
40839 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40840
40841         open-safer.c: avoid 'signed and unsigned in conditional...' warning
40842         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
40843         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
40844
40845 2008-10-16  Jim Meyering  <meyering@redhat.com>
40846
40847         openat-die.c: avoid 'no previous prototype' warning
40848         * lib/openat-die.c: Include "openat.h".
40849         Reported by Reuben Thomas <rrt@sc3d.org>.
40850
40851 2008-10-16  Simon Josefsson  <simon@josefsson.org>
40852
40853         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
40854         * lib/netdb.in.h: Fix typo.
40855         Reported by Bruno Haible  <bruno@clisp.org>
40856
40857         * lib/netdb.in.h: Include sys/socket.h for platforms without
40858         netdb.h, to get structures like hostent on MinGW.
40859         * modules/netdb (Depends-on): Add sys_socket.
40860
40861 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40862
40863         * modules/netdb, modules/netdb-tests: New file.
40864         * m4/netdb_h.m4: New file.
40865         * lib/netdb.in.h: Add, currently just an empty file pending
40866         definitions.
40867         * tests/test-netdb.c: New file.
40868         * doc/posix-headers/netdb.texi: Mention that we replace it if
40869         needed.
40870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40871         netdb.
40872
40873 2008-10-15  Simon Josefsson  <simon@josefsson.org>
40874
40875         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
40876         with code.
40877
40878 2008-10-13  Bruno Haible  <bruno@clisp.org>
40879
40880         * lib/glthread/cond.c (glthread_cond_wait_func,
40881         glthread_cond_timedwait_func): Add a comment.
40882
40883 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40884
40885         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
40886         * tests/test-select.c: Likewise,
40887
40888 2008-10-13  Bruno Haible  <bruno@clisp.org>
40889
40890         * lib/glthread/cond.c (glthread_cond_wait_func,
40891         glthread_cond_timedwait_func): Fix variable name.
40892         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40893
40894 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
40895
40896         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
40897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
40898         struct sockaddr.sa_len.
40899         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
40900
40901 2008-10-13  Simon Josefsson  <simon@josefsson.org>
40902
40903         * build-aux/pmccabe2html: Add css and css_url parameters.
40904
40905 2008-10-12  Bruno Haible  <bruno@clisp.org>
40906
40907         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
40908         calling aclx_get.
40909         Reported by Rainer Tammer <tammer@tammer.net>.
40910
40911 2008-10-12  Bruno Haible  <bruno@clisp.org>
40912
40913         Use msvcrt aware primitives for creation/termination of Win32 threads.
40914         * lib/glthread/thread.c: Include <process.h>.
40915         (glthread_create_func): Use _beginthreadex instead of CreateThread.
40916         (wrapper_func): Update signature.
40917         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
40918
40919 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40920             Bruno Haible  <bruno@clisp.org>
40921
40922         Provide a Win32 implementation of the 'cond' module.
40923         * lib/glthread/cond.h [USE_WIN32]: New implementation.
40924         * lib/glthread/cond.c (glthread_cond_init_func,
40925         glthread_cond_wait_func, glthread_cond_timedwait_func,
40926         glthread_cond_signal_func, glthread_cond_broadcast_func,
40927         glthread_cond_destroy_func) [USE_WIN32]: New functions.
40928         * modules/cond (Dependencies): Add gettimeofday.
40929
40930 2008-10-11  Bruno Haible  <bruno@clisp.org>
40931
40932         Make sleep work on older versions of mingw.
40933         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
40934         only whether it exists.
40935         * doc/posix-functions/sleep.texi: Mention the problem with older
40936         versions of mingw.
40937
40938 2008-10-11  Bruno Haible  <bruno@clisp.org>
40939
40940         New module 'shutdown'.
40941         * modules/shutdown: New file.
40942         * lib/sys_socket.in.h (shutdown): New declaration.
40943         * lib/winsock.c (shutdown): New function.
40944         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40945         GNULIB_SHUTDOWN.
40946         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
40947         * doc/posix-functions/shutdown.texi: Document the new module.
40948
40949 2008-10-11  Jim Meyering  <meyering@redhat.com>
40950
40951         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
40952
40953 2008-10-11  Bruno Haible  <bruno@clisp.org>
40954
40955         New module 'fclose'.
40956         * modules/fclose: New file.
40957         * lib/stdio.in.h (fclose): New declaration.
40958         * lib/fclose.c: New file.
40959         * m4/fclose.m4: New file.
40960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
40961         REPLACE_FCLOSE.
40962         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
40963         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
40964         REPLACE_FCLOSE.
40965         * modules/close (Depends-on): fclose.
40966         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
40967
40968 2008-10-11  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
40971         set errno and don't call _close.
40972
40973 2008-10-10  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
40976         ACL, not afterwards. Fixes test failure on Cygwin.
40977
40978 2008-10-09  Ben Pfaff  <blp@gnu.org>
40979
40980         * build-aux/announce-gen: Fix gnulib version related part of usage
40981         message.  Die with a useful error message if no tarballs are
40982         found.
40983
40984 2008-10-10  Jim Meyering  <meyering@redhat.com>
40985
40986         bootstrap: use git's --depth=N option only if it's supported
40987         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
40988         recognize the --depth option.  Reported by PĂ¡draig Brady.
40989
40990 2008-10-09  Bruno Haible  <bruno@clisp.org>
40991
40992         New module 'ioctl'.
40993         * modules/ioctl: New file.
40994         * lib/sys_socket.in.h (ioctl): Remove declaration.
40995         * lib/winsock.c: Include <sys/ioctl.h>.
40996         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
40997         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40998         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
40999         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41000         * doc/posix-functions/ioctl.texi: Mention the new module.
41001
41002 2008-10-09  Bruno Haible  <bruno@clisp.org>
41003
41004         New module 'sys_ioctl'.
41005         * lib/sys_ioctl.in.h: New file.
41006         * m4/sys_ioctl_h.m4: New file.
41007         * modules/sys_ioctl: New file.
41008         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41009
41010 2008-10-09  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41013         * lib/winsock.c: Include <stdarg.h>.
41014         (rpl_ioctl): Change to second argument 'int' and then varargs.
41015
41016 2008-10-09  Bruno Haible  <bruno@clisp.org>
41017
41018         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41019         when the sys_socket module is present and the system has <winsock2.h>.
41020
41021 2008-10-09  Bruno Haible  <bruno@clisp.org>
41022
41023         * doc/posix-functions/close.texi: Mention module 'close' instead of
41024         module 'sys_socket'.
41025
41026 2008-10-09  Bruno Haible  <bruno@clisp.org>
41027
41028         * doc/glibc-headers/sys_ioctl.texi: New file.
41029         * doc/gnulib.texi: Include it.
41030
41031 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41032             Bruno Haible  <bruno@clisp.org>
41033
41034         Combine the two replacements of 'close'.
41035         * lib/sys_socket.in.h (close): Define to a reminder to include
41036         <unistd.h>.
41037         (_gl_close_fd_maybe_socket): New declaration.
41038         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41039         * lib/winsock.c (close): Remove undefinition.
41040         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41041         needed for the gnulib module 'close'.
41042         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41043         define to an error symbol or to a warning, if suitable.
41044         * lib/close.c: Include <sys/socket.h>.
41045         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41046         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41047         UNISTD_H_HAVE_WINSOCK2_H.
41048         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41050         UNISTD_H_HAVE_WINSOCK2_H.
41051         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41052         (configure.ac): Set a module indicator.
41053         (Makefile.am): Substitute GNULIB_CLOSE.
41054         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41055         * modules/poll-tests (Depends-on): Add close.
41056         * modules/select-tests (Depends-on): Likewise.
41057
41058 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41059             Bruno Haible  <bruno@clisp.org>
41060
41061         New module 'close'.
41062         * modules/close: New file.
41063         * lib/unistd.in.h (close): Move declaration out of the
41064         FCHDIR_REPLACEMENT scope.
41065         (_gl_unregister_fd): New declaration.
41066         * lib/close.c: New file.
41067         * lib/fchdir.c (rpl_close): Remove function.
41068         * m4/close.m4: New file.
41069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41070         close.
41071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41072         REPLACE_CLOSE.
41073         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41074         REPLACE_CLOSE.
41075         * modules/fchdir (Depends-on): Add close.
41076
41077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41078             Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/fcntl.in.h (open): Simplify conditionals.
41081         (_gl_register_fd): New declaration.
41082         * lib/fchdir.c (rpl_open): Remove function.
41083         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41084         also.
41085         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41087         open.
41088
41089 2008-10-09  Jim Meyering  <meyering@redhat.com>
41090
41091         GNUmakefile: use the more name-space-friendly "_version"
41092         * top/GNUmakefile (_dummy): Update.
41093         (_version): Rename from "version".
41094
41095 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41096             Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41099         rpl_close.
41100         (_gl_register_fd): New function, extracted from rpl_open.
41101         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41102         (rpl_open, rpl_opendir): Use _gl_register_fd.
41103
41104 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41105
41106         Fix organization of 'open' replacement.
41107         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41108         (gl_FUNC_OPEN): Use it.
41109         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41110
41111 2008-10-08  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41114
41115 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41116
41117         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41118         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41119         listen).
41120
41121 2008-10-08  Eric Blake  <ebb9@byu.net>
41122
41123         GNUmakefile: add 'make version' target
41124         * top/GNUmakefile (_curr-ver): Split version update rules...
41125         (version): ...into a target.
41126
41127 2008-10-07  Bruno Haible  <bruno@clisp.org>
41128
41129         Use a more portable replacement expression for -0.0L.
41130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41131         instead of -0.0L. Fix m4 quotation.
41132
41133         * tests/test-signbit.c: Include <float.h>.
41134         (minus_zero): New variable.
41135         (test_signbitl): Use minus_zero instead of -zero.
41136         * modules/signbit-tests (Depends-on): Add float.
41137
41138         * tests/test-ceill.c: Include <float.h>.
41139         (zero): Remove variable.
41140         (minus_zero): New variable.
41141         (main): Use minus_zero instead of -zero.
41142         * modules/ceill-tests (Depends-on): Add float.
41143
41144         * tests/test-floorl.c: Include <float.h>.
41145         (zero): Remove variable.
41146         (minus_zero): New variable.
41147         (main): Use minus_zero instead of -zero.
41148         * modules/floorl-tests (Depends-on): Add float.
41149
41150         * tests/test-roundl.c: Include <float.h>.
41151         (zero): Remove variable.
41152         (minus_zero): New variable.
41153         (main): Use minus_zero instead of -zero.
41154         * modules/roundl-tests (Depends-on): Add float.
41155
41156         * tests/test-truncl.c: Include <float.h>.
41157         (zero): Remove variable.
41158         (minus_zero): New variable.
41159         (main): Use minus_zero instead of -zero.
41160         * modules/truncl-tests (Depends-on): Add float.
41161
41162         * tests/test-frexpl.c (zero): Remove variable.
41163         (minus_zero): New variable.
41164         (main): Use minus_zero instead of -zero.
41165         * modules/frexpl-tests (Depends-on): Add float.
41166
41167         * tests/test-isnan.c (zerol): Remove variable.
41168         (minus_zerol): New variable.
41169         (test_long_double): Use minus_zerol instead of -zerol.
41170         * modules/isnan-tests (Depends-on): Add float.
41171
41172         * tests/test-isnanl.h (zero): Remove variable.
41173         (minus_zero): New variable.
41174         (main): Use minus_zero instead of -zero.
41175         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41176         * modules/isnanl-tests (Depends-on): Add float.
41177
41178         * tests/test-ldexpl.c (zero): Remove variable.
41179         (minus_zero): New variable.
41180         (main): Use minus_zero instead of -zero.
41181         * modules/ldexpl-tests (Depends-on): Add float.
41182
41183         * tests/test-snprintf-posix.h (zerol): Remove variable.
41184         (minus_zerol): New variable.
41185         (test_function): Use minus_zerol instead of -zerol.
41186         * modules/snprintf-posix-tests (Depends-on): Add float.
41187         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41188
41189         * tests/test-sprintf-posix.h (zerol): Remove variable.
41190         (minus_zerol): New variable.
41191         (test_function): Use minus_zerol instead of -zerol.
41192         * modules/sprintf-posix-tests (Depends-on): Add float.
41193         * modules/vsprintf-posix-tests (Depends-on): Add float.
41194
41195         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41196         (minus_zerol): New variable.
41197         (test_function): Use minus_zerol instead of -zerol.
41198         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41199
41200         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41201         (minus_zerol): New variable.
41202         (test_function): Use minus_zerol instead of -zerol.
41203         * modules/vasprintf-posix-tests (Depends-on): Add float.
41204
41205 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41206
41207         * MODULES.html.sh (Support for building documentation): Mention
41208         pmccabe2html.  Sort entries.
41209
41210         Add pmccabe2html module, from gnupdf.
41211         * build-aux/pmccabe.css: New file.
41212         * build-aux/pmccabe2html: New file.
41213         * m4/pmccabe2html.m4: New file.
41214         * modules/pmccabe2html: New file.
41215
41216 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41217
41218         flock: new module
41219         * MODULES.html.sh: Add to list of modules.
41220         * lib/flock.c: flock implementation for Windows and Unix systems
41221         which have fcntl.
41222         * doc/glibc-functions/flock.texi: Update documentation.
41223         * lib/sys_file.in.h: <sys/file.h> header file.
41224         * m4/flock.m4: M4 macros.
41225         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41226         * modules/flock: flock module.
41227         * modules/flock-tests: flock tests module.
41228         * modules/sys_file: sys/file.h module.
41229         * tests/test-flock.c: test suite for flock.
41230
41231 2008-10-06  Jim Meyering  <meyering@redhat.com>
41232
41233         bootstrap: check for LT_INIT more portably still ;-)
41234         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41235         Spotted by Bruno Haible.
41236
41237 2008-10-06  Eric Blake  <ebb9@byu.net>
41238
41239         test-signbit: avoid tripping Irix cc bug on -0.0L
41240         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41241         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41242         entire testsuite consistent and avoids an Irix 6.2 bug.
41243
41244 2008-10-05  Bruno Haible  <bruno@clisp.org>
41245             Jim Meyering  <jim@meyering.net>
41246
41247         Add an option for ignoring EPIPE during close_stdout.
41248         * lib/closeout.h: Include <stdbool.h>.
41249         (close_stdout_set_ignore_EPIPE): New declaration.
41250         * lib/closeout.c: Include <stdbool.h>.
41251         (ignore_EPIPE): New variable.
41252         (close_stdout_set_ignore_EPIPE): New function.
41253         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41254         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41255         failure.
41256         * modules/closeout (Depends-on): Add stdbool.
41257
41258 2008-10-05  Bruno Haible  <bruno@clisp.org>
41259
41260         * modules/accept: New file.
41261         * modules/bind: New file.
41262         * modules/connect: New file.
41263         * modules/getpeername: New file.
41264         * modules/getsockname: New file.
41265         * modules/getsockopt: New file.
41266         * modules/listen: New file.
41267         * modules/recv: New file.
41268         * modules/recvfrom: New file.
41269         * modules/send: New file.
41270         * modules/sendto: New file.
41271         * modules/setsockopt: New file.
41272         * modules/socket: New file.
41273         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41274         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41275         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41276         the particular module is requested. Add a link warning when the
41277         particular module is not requested.
41278         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41279         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41280         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41281         the particular module is requested.
41282         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41283         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41284         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41285         * modules/sys_socket (Depends-on): Add link-warning.
41286         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41287         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41288         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41289         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41290         GL_LINK_WARNING.
41291         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41292         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41293         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41294         * doc/posix-functions/getpeername.texi: Mention the new module
41295         'getpeername'.
41296         * doc/posix-functions/getsockname.texi: Mention the new module
41297         'getsockname'.
41298         * doc/posix-functions/getsockopt.texi: Mention the new module
41299         'getsockopt'.
41300         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41301         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41302         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41303         * doc/posix-functions/send.texi: Mention the new module 'send'.
41304         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41305         * doc/posix-functions/setsockopt.texi: Mention the new module
41306         'setsockopt'.
41307         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41308         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41309         listen, connect, accept.
41310         * modules/select-tests (Depends-on): Likewise.
41311
41312 2008-10-05  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/winsock.c (strerror): Remove unused #undef.
41315         (rpl_close): Remove unused local variable.
41316
41317         * modules/sys_socket (Depends-on); Add errno.
41318
41319 2008-10-05  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41322         (select): Add a link warning when the 'select' module is not used.
41323         * modules/sys_select (Depends-on): Add link-warning.
41324         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41325         Suggested by Paolo Bonzini.
41326
41327 2008-10-05  Jim Meyering  <meyering@redhat.com>
41328
41329         bootstrap: check for LT_INIT more portably
41330         * build-aux/bootstrap: Avoid using grep -E, since it's not
41331         portable enough.  Suggestion from Bruno Haible.
41332
41333 2008-10-05  Bruno Haible  <bruno@clisp.org>
41334
41335         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41336         as being fixed by gnulib.
41337
41338 2008-10-05  Bruno Haible  <bruno@clisp.org>
41339
41340         * modules/select-tests: New file, mostly copied from
41341         modules/sys_select-tests.
41342         * tests/test-select.c: New file, mostly copied from
41343         tests/test-sys_select.c.
41344         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41345         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41346         (Makefile.am): Remove test_sys_select_LDADD.
41347
41348         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41349         to an undefined symbol, for an error message.
41350         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41351         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41352         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41353         winsock-select.c here.
41354         * modules/sys_select (Files): Remove lib/winsock-select.c.
41355         (Depends-on): Remove alloca.
41356         (Makefile.am): Substitute GNULIB_SELECT.
41357         * modules/select: New file.
41358         * doc/posix-functions/select.texi: Update.
41359
41360 2008-10-05  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41363         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41364         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41365         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41366         getdtablesize.
41367         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41368         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41369
41370 2008-10-05  Bruno Haible  <bruno@clisp.org>
41371
41372         * modules/getdtablesize-tests: New file.
41373         * tests/test-getdtablesize.c: New file.
41374
41375         New module 'getdtablesize'.
41376         * lib/unistd.in.h (getdtablesize): New declaration.
41377         * lib/getdtablesize.c: New file.
41378         * m4/getdtablesize.m4: New file.
41379         * modules/getdtablesize: New file.
41380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41381         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41382         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41383         HAVE_GETDTABLESIZE.
41384         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41385
41386 2008-10-05  Bruno Haible  <bruno@clisp.org>
41387
41388         * modules/sched (Makefile.am): Fix typo.
41389         Reported by Simon Josefsson.
41390
41391 2008-10-05  Jim Meyering  <meyering@redhat.com>
41392
41393         bootstrap: check for LT_INIT, too
41394         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41395         are deprecated.  Suggestion from Ralf Wildenhues.
41396
41397 2008-10-05  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41400         overriding them by ours.
41401         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41402
41403 2008-10-05  Jim Meyering  <meyering@redhat.com>
41404
41405         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41406         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41407         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41408
41409 2008-10-04  Bruno Haible  <bruno@clisp.org>
41410
41411         * modules/dup2 (License): Change to LGPLv2+.
41412         * modules/sleep (License): Likewise.
41413         * modules/perror (License): Likewise.
41414         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41415         Blake.
41416         * modules/signal (License): Likewise.
41417         * modules/sigprocmask (License): Likewise.
41418         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41419         Meyering.
41420
41421 2008-10-04  Bruno Haible  <bruno@clisp.org>
41422
41423         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41424         Reported by Rainer Tammer <tammer@tammer.net>.
41425
41426 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41427             Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41430         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41431         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41432
41433 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41434
41435         filevercmp: new module
41436         * lib/filevercmp.h: New function filevercmp comparing version strings.
41437         * lib/filevercmp.c: Implementation of filevercmp function.
41438         * modules/filevercmp: Module metadata.
41439         * tests/test-filevercmp.c: Unit test for new module.
41440         * modules/filevercmp-tests: Unit test metadata.
41441         * MODULES.html.sh: Add filevercmp module.
41442
41443 2008-10-03  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/c-ctype.h: Add comment.
41446         Reported by Jim Meyering.
41447
41448 2008-10-02  Bruno Haible  <bruno@clisp.org>
41449
41450         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41451
41452 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41453
41454         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41455         name of bootstrap.conf accordingly.
41456
41457 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41458
41459         * build-aux/bootstrap: Install git-merge-changelog configuration
41460         items into .gitconfig if needed.
41461
41462 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41463
41464         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41465         git repository, and initialize/update it accordingly.
41466
41467 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41468
41469         * modules/fsync-tests: New file.
41470         * tests/test-fsync.c: New file.
41471
41472         New module 'fsync'.
41473         * lib/fsync.c: New file.
41474         * m4/fsync.m4: New file.
41475         * modules/fsync: New file.
41476         * lib/unistd.in.h (fsync): New declaration.
41477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
41478         GNULIB_FSYNC and HAVE_FSYNC.
41479         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
41480         * MODULES.html.sh (posix_functions): Add fsync.
41481         * doc/posix-functions/fsync.texi: Mention the new module.
41482
41483 2008-10-02  Jim Meyering  <meyering@redhat.com>
41484
41485         fts.c: sync with similar code from coreutils' remove.c
41486         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
41487         Guard also with "#if defined __linux__", since for now at least,
41488         this code is Linux-kernel-specific.
41489
41490 2008-10-02  Jim Meyering  <meyering@redhat.com>
41491
41492         fts: bug fixes
41493         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
41494         Include <sys/vfs.h>, not <sys/statfs.h>.
41495
41496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
41497         Include <sys/vfs.h>, not <sys/statfs.h>.
41498
41499 2008-10-01  Bruno Haible  <bruno@clisp.org>
41500
41501         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
41502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
41503         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
41504         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
41505         * doc/posix-functions/posix_spawnp.texi: Likewise.
41506         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
41507         whether posix_spawn actually works.
41508         * m4/pipe.m4 (gl_PIPE): Likewise.
41509         * modules/execute (Files): Add m4/posix_spawn.m4.
41510         * modules/pipe (Files): Add m4/posix_spawn.m4.
41511         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
41512
41513 2008-10-01  Jim Meyering  <meyering@redhat.com>
41514
41515         remove trailing spaces
41516         * NEWS: Likewise.
41517         * lib/poll.c (poll): Likewise.
41518         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
41519         * lib/winsock.c (rpl_close): Likewise.
41520         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
41521         * modules/yield: Likewise.
41522         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
41523         * tests/test-sys_select.c (connect_to_socket): Likewise.
41524
41525         fts.c: adjust a new interface to be more generally useful
41526         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
41527         (fts_build): Adjust caller.
41528
41529 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41530
41531         * modules/cond-tests: New file.
41532         * tests/test-cond.c: New file.
41533
41534 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41535             Bruno Haible  <bruno@clisp.org>
41536
41537         * modules/cond (Dependencies): Add errno, time.
41538         * lib/glthread/cond.h: Include <time.h>.
41539         (gl_cond_define, gl_cond_define_initialized): Use the same definition
41540         across platforms.
41541
41542 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41543             Bruno Haible  <bruno@clisp.org>
41544
41545         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
41546
41547 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41548             Bruno Haible  <bruno@clisp.org>
41549
41550         * modules/tls-tests (Depends-on): Add thread, yield.
41551         (configure.ac): Remove all checks.
41552         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
41553         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41554         gl_thread_self): Remove definitions. Include glthread/thread.h and
41555         glthread/yield.h instead.
41556         (test_tls): Pass an additional NULL argument to gl_thread_join.
41557
41558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41559             Bruno Haible  <bruno@clisp.org>
41560
41561         * modules/lock-tests (Depends-on): Add thread, yield.
41562         (configure.ac): Remove all checks.
41563         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
41564         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
41565         gl_thread_self): Remove definitions. Include glthread/thread.h and
41566         glthread/yield.h instead.
41567         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
41568         additional NULL argument to gl_thread_join.
41569
41570 2008-09-30  Bruno Haible  <bruno@clisp.org>
41571
41572         Fix the Win32 implementation of the 'thread' module.
41573         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
41574         pointer type.
41575         (gl_thread_self): Invoke gl_thread_self_func.
41576         (gl_thread_self_func): New declaration.
41577         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
41578         (do_init_self_key, init_self_key): New functions.
41579         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
41580         Remove some fields.
41581         (running_threads, running_lock): Remove variables.
41582         (get_current_thread_handle): New function.
41583         (gl_thread_self_func, wrapper_func, glthread_create_func,
41584         glthread_join_func, gl_thread_exit_func): Largely rewritten and
41585         simplified.
41586
41587 2008-09-30  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
41590         files.
41591
41592 2008-09-30  Jim Meyering  <meyering@redhat.com>
41593
41594         fts.m4: correct the test for statfs.f_type
41595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
41596         when checking for statfs.f_type.
41597
41598 2008-09-15  Simon Josefsson  <simon@josefsson.org>
41599
41600         tests: avoid some compiler warnings
41601         * tests/test-memchr.c (main): Pass NULL indirectly.
41602         * tests/test-getdate.c (main): Remove unused variable 'ret'.
41603
41604 2008-09-29  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
41605
41606         getdate.y: disallow countable dayshifts like "4 yesterday ago"
41607         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
41608         exactly specified dayshifts.
41609         (dayshift): New rule.
41610         (rel): Add dayshift.
41611         (relative_time_table) [tomorrow, yesterday, today, now]:
41612         Use tDAY_SHIFT in place of tDAY_UNIT.
41613         * tests/test-getdate.c: Add tests for now-disallowed countable
41614         dayshifts, e.g., "4 yesterday ago".
41615
41616 2008-09-29  Bruno Haible  <bruno@clisp.org>
41617
41618         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
41619         * tests/test-posix_spawn1.in.sh: Renamed from
41620         tests/test-posix_spawn.in.sh.
41621         * tests/test-posix_spawn2.c: New file.
41622         * tests/test-posix_spawn2.in.sh: New file.
41623         * modules/posix_spawnp-tests (Files): Update.
41624         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
41625
41626 2008-09-29  Bruno Haible  <bruno@clisp.org>
41627
41628         Propagate effects of putenv/setenv/unsetenv to child processes.
41629         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
41630         * lib/pipe.c (create_pipe): Likewise.
41631
41632 2008-09-29  Bruno Haible  <bruno@clisp.org>
41633
41634         Enable use of shell scripts as executables in mingw.
41635         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
41636         run the program as a shell script.
41637         * lib/pipe.c (create_pipe): Likewise.
41638         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
41639         resulting array.
41640
41641 2008-09-29  Eric Blake  <ebb9@byu.net>
41642
41643         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
41644
41645 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
41646
41647         * doc/posix-functions/accept.texi: Update mingw problems.
41648         * doc/posix-functions/bind.texi: Update mingw problems.
41649         * doc/posix-functions/close.texi: Update mingw problems.
41650         * doc/posix-functions/connect.texi: Update mingw problems.
41651         * doc/posix-functions/getpeername.texi: Update mingw problems.
41652         * doc/posix-functions/getsockname.texi: Update mingw problems.
41653         * doc/posix-functions/getsockopt.texi: Update mingw problems.
41654         * doc/posix-functions/ioctl.texi: Update mingw problems.
41655         * doc/posix-functions/listen.texi: Update mingw problems.
41656         * doc/posix-functions/recv.texi: Update mingw problems.
41657         * doc/posix-functions/recvfrom.texi: Update mingw problems.
41658         * doc/posix-functions/select.texi: Update mingw problems.
41659         * doc/posix-functions/send.texi: Update mingw problems.
41660         * doc/posix-functions/sendto.texi: Update mingw problems.
41661         * doc/posix-functions/setsockopt.texi: Update mingw problems.
41662         * doc/posix-functions/socket.texi: Update mingw problems.
41663
41664 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
41665             Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/sys_select.in.h: Include sys/time.h.
41668         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
41669         * modules/sys_select: Depend on sys_time.
41670         * tests/test-sys_select.c: Test that sys/select.h defines struct
41671         timeval fully.
41672
41673 2008-09-29  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
41676         * lib/sys_select.in.h: Likewise.
41677
41678 2008-09-29  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
41681
41682 2008-09-29  Bruno Haible  <bruno@clisp.org>
41683
41684         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
41685         Set LIBSOCKET instead of augmenting LIBS.
41686         * modules/sockets (Link): New section.
41687         * modules/sockets-tests (test_sockets_LDADD): New variable.
41688         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
41689         * modules/poll-tests (test_poll_LDADD): New variable.
41690         * NEWS: Document the change.
41691
41692 2008-09-29  Bruno Haible  <bruno@clisp.org>
41693
41694         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
41695         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
41696         ARPA_INET_H directly.
41697         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41698
41699 2008-09-28  Bruno Haible  <bruno@clisp.org>
41700
41701         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
41702         from gl_HEADER_SYS_SOCKET.
41703         (gl_HEADER_SYS_SOCKET): Invoke it.
41704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41705
41706 2008-09-28  Bruno Haible  <bruno@clisp.org>
41707
41708         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
41709         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
41710         Needed on OSF/1 4.0.
41711
41712 2008-09-28  Bruno Haible  <bruno@clisp.org>
41713
41714         Override open more carefully.
41715         * lib/open.c (orig_open): New function.
41716         (rpl_open): Use orig_open instead of open.
41717         * lib/fcntl.in.h: Add special invocation convention.
41718         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
41719         (gl_FUNC_OPEN): Invoke it.
41720
41721         Override freopen more carefully.
41722         * lib/freopen.c (orig_freopen): New function.
41723         (rpl_freopen): Use orig_freopen instead of freopen.
41724         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
41725         (gl_FUNC_FREOPEN): Invoke it.
41726
41727         Override fopen more carefully.
41728         * lib/fopen.c (orig_fopen): New function.
41729         (rpl_fopen): Use orig_fopen instead of fopen.
41730         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
41731         (gl_FUNC_FOPEN): Invoke it.
41732         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
41733
41734 2008-09-28  Bruno Haible  <bruno@clisp.org>
41735
41736         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
41737         SIGPIPE.
41738
41739 2008-09-28  Bruno Haible  <bruno@clisp.org>
41740
41741         * tests/test-sigaction.c (handler, main): Disable the check whether
41742         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
41743         glibc systems with LinuxThreads.
41744
41745 2008-09-28  Bruno Haible  <bruno@clisp.org>
41746
41747         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
41748
41749         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
41750         with AIX xlc.
41751         * lib/fcntl.in.h (open): Likewise.
41752         Reported by Rainer Tammer <tammer@tammer.net>.
41753
41754 2008-09-28  Bruno Haible  <bruno@clisp.org>
41755
41756         * modules/posix_spawnp-tests: New file.
41757         * tests/test-posix_spawn.c: New file.
41758         * tests/test-posix_spawn.in.sh: New file.
41759
41760         New module 'posix_spawnp'.
41761         * modules/posix_spawnp: New file.
41762         * lib/spawnp.c: New file, from GNU libc with modifications.
41763         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
41764
41765         New module 'posix_spawn'.
41766         * modules/posix_spawn: New file.
41767         * lib/spawn.c: New file, from GNU libc with modifications.
41768         * doc/posix-functions/posix_spawn.texi: Mention the new module.
41769
41770         New module 'posix_spawnattr_destroy'.
41771         * modules/posix_spawnattr_destroy: New file.
41772         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
41773         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
41774         module.
41775
41776         New module 'posix_spawnattr_setsigmask'.
41777         * modules/posix_spawnattr_setsigmask: New file.
41778         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
41779         modifications.
41780         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
41781         new module.
41782
41783         New module 'posix_spawnattr_getsigmask'.
41784         * modules/posix_spawnattr_getsigmask: New file.
41785         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
41786         modifications.
41787         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
41788         new module.
41789
41790         New module 'posix_spawnattr_setsigdefault'.
41791         * modules/posix_spawnattr_setsigdefault: New file.
41792         * lib/spawnattr_setdefault.c: New file, from GNU libc with
41793         modifications.
41794         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
41795         new module.
41796
41797         New module 'posix_spawnattr_getsigdefault'.
41798         * modules/posix_spawnattr_getsigdefault: New file.
41799         * lib/spawnattr_getdefault.c: New file, from GNU libc with
41800         modifications.
41801         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
41802         new module.
41803
41804         New module 'posix_spawnattr_setschedpolicy'.
41805         * modules/posix_spawnattr_setschedpolicy: New file.
41806         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
41807         modifications.
41808         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
41809         new module.
41810
41811         New module 'posix_spawnattr_getschedpolicy'.
41812         * modules/posix_spawnattr_getschedpolicy: New file.
41813         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
41814         modifications.
41815         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
41816         new module.
41817
41818         New module 'posix_spawnattr_setschedparam'.
41819         * modules/posix_spawnattr_setschedparam: New file.
41820         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
41821         modifications.
41822         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
41823         new module.
41824
41825         New module 'posix_spawnattr_getschedparam'.
41826         * modules/posix_spawnattr_getschedparam: New file.
41827         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
41828         modifications.
41829         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
41830         new module.
41831
41832         New module 'posix_spawnattr_setpgroup'.
41833         * modules/posix_spawnattr_setpgroup: New file.
41834         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
41835         modifications.
41836         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
41837         module.
41838
41839         New module 'posix_spawnattr_getpgroup'.
41840         * modules/posix_spawnattr_getpgroup: New file.
41841         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
41842         modifications.
41843         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
41844         module.
41845
41846         New module 'posix_spawnattr_setflags'.
41847         * modules/posix_spawnattr_setflags: New file.
41848         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
41849         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
41850         module.
41851
41852         New module 'posix_spawnattr_getflags'.
41853         * modules/posix_spawnattr_getflags: New file.
41854         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
41855         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
41856         module.
41857
41858         New module 'posix_spawnattr_init'.
41859         * modules/posix_spawnattr_init: New file.
41860         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
41861         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
41862         module.
41863
41864         New module 'posix_spawn_file_actions_destroy'.
41865         * modules/posix_spawn_file_actions_destroy: New file.
41866         * lib/spawn_faction_destroy.c: New file, from GNU libc with
41867         modifications.
41868         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
41869         the new module.
41870
41871         New module 'posix_spawn_file_actions_addopen'.
41872         * modules/posix_spawn_file_actions_addopen: New file.
41873         * lib/spawn_faction_addopen.c: New file, from GNU libc with
41874         modifications.
41875         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41876         the new module.
41877
41878         New module 'posix_spawn_file_actions_adddup2'.
41879         * modules/posix_spawn_file_actions_adddup2: New file.
41880         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
41881         modifications.
41882         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
41883         the new module.
41884
41885         New module 'posix_spawn_file_actions_addclose'.
41886         * modules/posix_spawn_file_actions_addclose: New file.
41887         * lib/spawn_faction_addclose.c: New file, from GNU libc with
41888         modifications.
41889         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
41890         the new module.
41891
41892         New module 'posix_spawn_file_actions_init'.
41893         * modules/posix_spawn_file_actions_init: New file.
41894         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
41895         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
41896         new module.
41897
41898         New module 'posix_spawn-internal'.
41899         * modules/posix_spawn-internal: New file.
41900         * lib/spawn_int.h: New file, from GNU libc with modifications.
41901         * lib/spawni.c: New file, from GNU libc with modifications.
41902         * m4/posix_spawn.m4: New file.
41903
41904         New module 'spawn'.
41905         * modules/spawn: New file.
41906         * lib/spawn.in.h: New file, from GNU libc with modifications.
41907         * m4/spawn_h.m4: New file.
41908         * doc/posix-headers/spawn.texi: Mention the new module.
41909
41910 2008-09-28  Bruno Haible  <bruno@clisp.org>
41911
41912         * modules/sched-tests: New file.
41913         * tests/test-sched.c: New file.
41914
41915         New module 'sched'.
41916         * modules/sched: New file.
41917         * lib/sched.in.h: New file.
41918         * m4/sched_h.m4: New file.
41919         * doc/posix-headers/sched.texi: Mention the new module.
41920
41921 2008-09-27  Eric Blake  <ebb9@byu.net>
41922
41923         Fix previous patch, and tweak references to $0.
41924         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
41925         (func_version, func_gnulib_dir): Don't call this program
41926         gnulib-tool.
41927         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
41928         with using $0 in function.
41929         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
41930         (func_fatal_error): Reuse the name the user invoked us with.
41931
41932 2008-09-27  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
41935         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
41936         (gl_ICONV_H): Not here.
41937         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
41938         instead of assigning ICONV_H directly.
41939
41940         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
41941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
41942         WCHAR_H directly.
41943
41944 2008-09-27  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
41947         * modules/arpa_inet (Depends-on): Add link-warning.
41948         (Makefile.am): Insert the definition of GL_LINK-WARNING.
41949         * modules/unistd (Makefile.am): Likewise.
41950
41951 2008-09-26  Bruno Haible  <bruno@clisp.org>
41952
41953         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
41954         variables.
41955         (func_version): Essentially copied from gnulib-tool.
41956         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
41957         func_readlink): Copied from gnulib-tool.
41958
41959 2008-09-26  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_version): Change directory to $gnulib_dir before
41962         invoking git-version-gen.
41963
41964 2008-09-26  Bruno Haible  <bruno@clisp.org>
41965
41966         * posix-modules: Update to directory names changed on 2008-01-19.
41967         Remove commas in output before splitting into words. No more need to
41968         avoid 'ftruncate' since 2007-02-19.
41969
41970 2008-09-26  Bruno Haible  <bruno@clisp.org>
41971
41972         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
41973
41974 2008-09-26  Bruno Haible  <bruno@clisp.org>
41975
41976         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
41977         * modules/fwriteerror (Depends-on): Add errno.
41978
41979 2008-09-26  Bruno Haible  <bruno@clisp.org>
41980
41981         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
41982         * tests/test-vc-list-files-cvs.sh: Likewise.
41983
41984 2008-09-26  Bruno Haible  <bruno@clisp.org>
41985
41986         * doc/posix-headers/sys_resource.texi: Reorder items.
41987
41988 2008-09-26  Jim Meyering  <meyering@redhat.com>
41989
41990         fts: tweak inode comparison function
41991         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
41992         inode numbers, as documented.
41993
41994         fts: sort dirent entries on inode number before traversing
41995         This avoids a quadratic, seek-related performance penalty when
41996         operating on a directory containing many entries (measurable at 10k;
41997         3.5 hours at 2 million entries with a cold cache) on certain types
41998         of file systems, including ext3 and ext4, but not tmpfs.
41999         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42000         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42001         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42002         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42003         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42004         (fts_build): Set the stat.st_ino member from D_INO.
42005         If it is likely to be useful, sort dirent entries on inode number.
42006
42007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42008         and the struct statfs.f_type member.
42009         * modules/fts (Depends-on): Add d-ino.
42010
42011 2008-09-26  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/sigpipe-die (Depends-on): Add sigpipe.
42014
42015         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42016         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42017         and GNULIB_STDIO_H_SIGPIPE are set.
42018         * lib/stdio-write.c: New file.
42019         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42020         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42021         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42022         REPLACE_STDIO_WRITE_FUNCS.
42023         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42024         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42025         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42026         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42027         * modules/stdio (Files): Add lib/stdio-write.c.
42028         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42029         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42030         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42031         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42032         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42033         REPLACE_FPRINTF_POSIX.
42034         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42035         REPLACE_PRINTF_POSIX.
42036         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42037         REPLACE_VFPRINTF_POSIX.
42038         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42039         REPLACE_VPRINTF_POSIX.
42040         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42041         SIGPIPE issue.
42042         * doc/posix-functions/fputc.texi: Likewise.
42043         * doc/posix-functions/fputs.texi: Likewise.
42044         * doc/posix-functions/fwrite.texi: Likewise.
42045         * doc/posix-functions/printf.texi: Likewise.
42046         * doc/posix-functions/putc.texi: Likewise.
42047         * doc/posix-functions/putchar.texi: Likewise.
42048         * doc/posix-functions/puts.texi: Likewise.
42049         * doc/posix-functions/vfprintf.texi: Likewise.
42050         * doc/posix-functions/vprintf.texi: Likewise.
42051
42052         * modules/safe-write (Depends-on): Add write.
42053
42054         * modules/sigpipe-tests: New file.
42055         * tests/test-sigpipe.c: New file.
42056         * tests/test-sigpipe.sh: New file.
42057
42058         * modules/write: New file.
42059         * lib/unistd.in.h: Include <sys/types.h>.
42060         (write): New declaration.
42061         * lib/write.c: New file.
42062         * m4/write.m4: New file.
42063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42064         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42065         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42066         GNULIB_WRITE, REPLACE_WRITE.
42067         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42068         and the SIGPIPE issue.
42069
42070         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42071         (raise): New declaration.
42072         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42073         (ext_signal): New function.
42074         (rpl_raise): New function.
42075         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42076         GNULIB_SIGNAL_H_SIGPIPE.
42077         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42078         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42079
42080         * modules/sigpipe: New file.
42081         * m4/sigpipe.m4: New file.
42082
42083 2008-09-25  Derek Price  <derek@ximbiot.com>
42084             Bruno Haible  <bruno@clisp.org>
42085
42086         * gnulib-tool (func_import): Report all license incompatibilities, not
42087         just the first one.
42088
42089 2008-09-25  Bruno Haible  <bruno@clisp.org>
42090
42091         * gnulib-tool (func_import): When computing the edits, consider not
42092         only the Makefile.ams that exist but also those that will be generated.
42093
42094 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42095
42096         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42097         fixes gnulib-tool --test warning about duplicate dependency.
42098
42099 2008-09-25  Bruno Haible  <bruno@clisp.org>
42100
42101         * gnulib-tool: Don't ask the user to perform edits in the generated
42102         Makefile.ams.
42103         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42104         apply to the Makefile.am being generated.
42105         (func_emit_tests_Makefile_am): Execute edits that apply to the
42106         Makefile.am being generated.
42107         (func_import): Setup list of Makefile.am edits before emitting the
42108         Makefile.ams, not at the end.
42109         (func_create_testdir): Update.
42110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42111
42112 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42113
42114         * gnulib-tool (func_import): Store the --tests-base option in the
42115         comment in gnulib-cache.m4.
42116
42117 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42118
42119         * NEWS: Document increased portability that sys_select now provides.
42120
42121         * lib/sys_select.in.h: Install select wrapper.
42122         * lib/sys_socket.in.h: Use more descriptive name when there is no
42123         select wrapper.
42124         * lib/winsock-select.c: New.
42125         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42126         Require gl_HEADER_SYS_SOCKET.
42127         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42128         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42129         * tests/test-sys_select.c: Add functional tests.
42130
42131 2008-09-24  Eric Blake  <ebb9@byu.net>
42132
42133         open, fopen: close fd leak in last patch
42134         * lib/open.c (rpl_open): Close fd before returning error.
42135         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42136         * doc/posix-functions/open.texi (open): Document that Irix also
42137         has the bug.
42138         * doc/posix-functions/fopen.texi (fopen): Likewise.
42139         Reported by Paolo Bonzini.
42140
42141 2008-09-24  Bruno Haible  <bruno@clisp.org>
42142
42143         Ensure that a filename ending in a slash cannot be used to access a
42144         non-directory.
42145         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42146         to check whether it's really a directory.
42147         * lib/fopen.c: Include fcntl.h, unistd.h.
42148         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42149         and fdopen().
42150         * modules/fopen (Depends-on): Add unistd.
42151         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42152         * tests/test-fopen.c (main): Likewise.
42153         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42154         * doc/posix-functions/fopen.texi: Likewise.
42155         Reported by Eric Blake.
42156
42157 2008-09-23  Eric Blake  <ebb9@byu.net>
42158
42159         c-stack: avoid compiler optimizations when provoking overflow
42160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42161         recursion harder to optimize, to ensure a stack overflow occurs.
42162         * tests/test-c-stack.c (recurse): Likewise.
42163         Borrowed from libsigsegv.
42164
42165         c-stack: work around Irix sigaltstack bug
42166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42167         whether sigaltstack uses wrong end of stack_t (copied in part from
42168         libsigsegv).
42169         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42170         Irix bug, without requiring an over-allocation.
42171         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42172         bug.
42173
42174         fopen: document mingw bug on directories
42175         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42176         not allowing a stream visiting a directory, even though reading
42177         from such a stream is not portable.
42178
42179 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42180
42181         * lib/poll.c: Rewrite.
42182         * modules/poll: Depend on alloca.
42183
42184 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42185
42186         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42187         instead define prototypes for a full set of wrappers.  Ensure
42188         that Cygwin does not use the compatibility code, which is only
42189         for MinGW.
42190         * lib/winsock.c: New.
42191         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42192         * modules/sys_socket: Add lib/winsock.c.
42193
42194         * modules/poll-tests: Add errno and perror.
42195         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42196
42197 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42198
42199         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42200
42201 2008-09-23  Bruno Haible  <bruno@clisp.org>
42202
42203         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42204         * doc/glibc-functions/*: Likewise.
42205
42206 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42207
42208         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42209         success.
42210
42211 2008-09-22  Eric Blake  <ebb9@byu.net>
42212             Bruno Haible  <bruno@clisp.org>
42213
42214         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42215         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42216         supply %A but mishandle pseudo-NaN.
42217         Reported by Simon Josefsson.
42218
42219 2008-09-21  Bruno Haible  <bruno@clisp.org>
42220
42221         * tests/test-lock.c (main): Tweak skip message.
42222         * tests/test-tls.c (main): Likewise.
42223
42224 2008-09-21  Bruno Haible  <bruno@clisp.org>
42225
42226         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42227         whether 'struct sigaction' has sa_sigaction here...
42228         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42229         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42230
42231 2008-09-21  Bruno Haible  <bruno@clisp.org>
42232
42233         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42234         section.
42235         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42236         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42237         the new section.
42238         (Support for obsolete systems lacking POSIX:2001): New section.
42239         (String handling <string.h>): Move strdup to the new section.
42240         Suggested by Simon Josefsson and Paolo Bonzini.
42241
42242 2008-09-21  Bruno Haible  <bruno@clisp.org>
42243
42244         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42245         exponents in %e and %g results on 'long double'. Needed for mingw's
42246         improved *printf functions.
42247         * tests/test-vasprintf-posix.c (test_function): Likewise.
42248         * tests/test-snprintf-posix.h (test_function): Likewise.
42249         * tests/test-sprintf-posix.h (test_function): Likewise.
42250         Reported by Eric Blake.
42251
42252 2008-09-21  Bruno Haible  <bruno@clisp.org>
42253
42254         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42255         * tests/test-sprintf-posix.h (test_function): Likewise.
42256
42257 2008-09-21  Bruno Haible  <bruno@clisp.org>
42258
42259         * modules/getpass (Depends-on): Add strdup-posix.
42260
42261         New module 'strdup-posix'.
42262         * modules/strdup-posix: New file.
42263         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42264         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42266         REPLACE_STRDUP.
42267         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42268         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42270         strdup-posix.
42271
42272         * modules/strdup (Depends-on): Remove malloc-posix.
42273
42274 2008-09-20  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42277         Wildenhues.
42278
42279 2008-09-20  Bruno Haible  <bruno@clisp.org>
42280
42281         Ensure that wint_t gets defined on IRIX 5.3.
42282         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42283         * lib/wctype.in.h (wint_t): Likewise.
42284         (__wctype_wint_t): Remove type.
42285         (isw*): Use wint_t instead of __wctype_wint_t.
42286         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42287         * modules/wchar (Files): Add m4/wint_t.m4.
42288         (Makefile.am): Substitute HAVE_WINT_T.
42289         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42290         * tests/test-wctype.c: Check that wint_t is defined.
42291         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42292         * doc/posix-headers/wctype.texi: Likewise.
42293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42294
42295 2008-09-18  Bruno Haible  <bruno@clisp.org>
42296
42297         * gnulib-tool (func_exit): Update comment.
42298
42299 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42300
42301         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42302         assumes strdup exists and does not depend on strdup to return
42303         ENOMEM on out of memory conditions.
42304
42305 2008-09-18  Bruno Haible  <bruno@clisp.org>
42306
42307         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42308         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42309         digits for the exponent.
42310
42311 2008-09-18  Jim Meyering  <meyering@redhat.com>
42312             Bruno Haible  <bruno@clisp.org>
42313
42314         * lib/vasnprintf.c (decimal_point_char): Define also if
42315         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42316
42317 2008-09-16  Bruno Haible  <bruno@clisp.org>
42318         and Eric Blake  <ebb9@byu.net>
42319
42320         vasnprintf: support Irix 5.3
42321         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42322         that mishandle long double infinity.
42323         Reported by Tom G. Christensen.
42324
42325 2008-09-16  Bruno Haible  <bruno@clisp.org>
42326
42327         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42328         Solaris 9.
42329         * doc/glibc-functions/alphasort.texi: Likewise.
42330         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42331
42332 2008-09-16  Jim Meyering  <meyering@redhat.com>
42333
42334         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42335         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42336         a umask modification leak out of a subshell.  Otherwise, the
42337         opensolaris /bin/sh would be accepted and thus cause unwarranted
42338         failures in the coreutils test suite.
42339
42340 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42341
42342         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42343         to succeed.
42344
42345 2008-09-16  Jim Meyering  <meyering@redhat.com>
42346
42347         avoid spurious test failure when library is built without ACL support
42348         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42349         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42350         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42351         * tests/test-copy-acl.sh: Likewise.
42352
42353 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42354
42355         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42356         based on character occurrence counts.
42357
42358 2008-09-15  Eric Blake  <ebb9@byu.net>
42359
42360         tests: avoid some compiler warnings
42361         * tests/test-memchr.c (main): Pass NULL indirectly.
42362         * tests/test-closein.c (main): Avoid unused variable.
42363
42364 2008-09-15  Bruno Haible  <bruno@clisp.org>
42365
42366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42367         are missing on OpenBSD 4.0 individually.
42368         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42369
42370 2008-09-15  Bruno Haible  <bruno@clisp.org>
42371
42372         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42373         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42374         * doc/posix-functions/perror.texi: Likewise.
42375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42376         is missing.
42377         Reported by Eric Blake.
42378
42379         * lib/errno.in.h: Use replacement values >= 2000.
42380         Reported by Eric Blake.
42381
42382 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42383
42384         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42385         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42386         limit.
42387         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42388         compareseq was aborted.
42389
42390 2008-09-14  Bruno Haible  <bruno@clisp.org>
42391
42392         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42393         yvec_edit_count.
42394         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42395         (fstrcmp_bounded): Simplify result computation accordingly.
42396
42397 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42398
42399         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42400         (fstrcmp): Define in terms of fstrcmp_bounded.
42401         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42402         lower_bound argument.
42403         Return quickly if the result is certainly < lower_bound.
42404         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42405
42406 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42407
42408         * lib/diffseq.h (EARLY_ABORT): New macro.
42409         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42410         evaluates to true.
42411
42412 2008-09-14  Bruno Haible  <bruno@clisp.org>
42413
42414         * modules/perror-tests: New file.
42415         * tests/test-perror.sh: New file.
42416         * tests/test-perror.c: New file.
42417
42418         New module 'perror'.
42419         * lib/stdio.in.h (perror): New declaration.
42420         * lib/perror.c: New file.
42421         * m4/perror.m4: New file.
42422         * modules/perror: New file.
42423         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42424         * doc/posix-functions/perror.texi: Mention the perror module.
42425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42426         REPLACE_PERROR.
42427         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42428         REPLACE_PERROR.
42429
42430 2008-09-14  Bruno Haible  <bruno@clisp.org>
42431
42432         * modules/stdio (Makefile.am): Reorder to match the order in
42433         lib/stdio.in.h.
42434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42435
42436 2008-09-13  Bruno Haible  <bruno@clisp.org>
42437
42438         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42439
42440 2008-09-13  Bruno Haible  <bruno@clisp.org>
42441
42442         Extend strerror to cover the added errno values.
42443         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42444         (rpl_strerror): Provide error messages for the added errno values and
42445         for the WSA* values.
42446         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42447         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42448         strerror.
42449         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42450         * modules/strerror (Depends-on): Add errno.
42451         * doc/posix-functions/strerror.texi: Document the change.
42452         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42453         and EOVERFLOW.
42454
42455 2008-09-13  Bruno Haible  <bruno@clisp.org>
42456
42457         * modules/EOVERFLOW: Remove file.
42458         * m4/eoverflow.m4: Remove file.
42459         * modules/EOVERFLOW-tests: Remove file.
42460         * tests/test-EOVERFLOW.c: Remove file.
42461         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42462         * modules/ftell (Depends-on): Likewise.
42463         * modules/getdelim (Depends-on): Likewise.
42464         * modules/getugroups (Depends-on): Likewise.
42465         * modules/poll (Depends-on): Likewise.
42466         * modules/snprintf (Depends-on): Likewise.
42467         * modules/sprintf-posix (Depends-on): Likewise.
42468         * modules/vasnprintf (Depends-on): Likewise.
42469         * modules/vasprintf (Depends-on): Likewise.
42470         * modules/vfprintf-posix (Depends-on): Likewise.
42471         * modules/vsnprintf (Depends-on): Likewise.
42472         * modules/vsprintf-posix (Depends-on): Likewise.
42473         * modules/xvasprintf (Depends-on): Likewise.
42474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42475         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
42476         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
42477         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
42478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42479         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
42480         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
42481         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
42482         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42483         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
42484         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
42485         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
42486         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42487         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
42488         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
42489         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
42490         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42491         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
42492         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
42493         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
42494         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42495         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
42496         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
42497         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
42498         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
42499         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42500         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
42501         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
42502         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
42503         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
42504         * MODULES.html.sh: Remove EOVERFLOW.
42505         * NEWS: Mention the change.
42506
42507 2008-09-13  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/errno-tests: New file.
42510         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
42511
42512         * lib/errno.in.h: New file.
42513         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
42514         * modules/errno: New file.
42515         * doc/posix-headers/errno.texi: Update documentation.
42516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
42517
42518 2008-09-13  Bruno Haible  <bruno@clisp.org>
42519
42520         * tests/test-poll.c: Use #if for native Windows, rather than testing
42521         __MSVCRT__.
42522
42523 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42524             Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/glob.c: Don't include <pwd.h> on native Windows.
42527         (WINDOWS32): New macro.
42528         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
42529
42530 2008-09-13  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
42533         (ETIMEDOUT): Remove macro.
42534         (glthread_cond_timedwait_multithreaded): New declaration.
42535         (glthread_cond_timedwait): Use it.
42536         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
42537         (glthread_cond_timedwait_multithreaded): New function.
42538
42539 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42540
42541         * modules/poll-tests: Do not check for io.h.
42542         * tests/test-poll.c: Check for __MSVCRT__ instead.
42543
42544 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42545
42546         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
42547         * modules/poll-tests: Add inet_pton, stdbool, sockets.
42548         * tests/test-poll.c: Use them.  Use _pipe on Windows.
42549
42550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42551
42552         * modules/poll-tests: New.
42553         * tests/test-poll.c: New.
42554
42555 2008-09-12  Eric Blake  <ebb9@byu.net>
42556
42557         frexp: test for NetBSD failure on -0.0
42558         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
42559         not all, bugs from NetBSD 3.0 have been fixed.
42560         * doc/posix-functions/frexp.texi (frexp): Document bug.
42561         Reported by Thomas Klausner.
42562
42563         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
42564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
42565         literal -0.0.
42566         Reported by Jonathan C. Patschke <jp@centtech.com>.
42567
42568 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42569
42570         * lib/glthread/cond.h: Use dummy implementation also if
42571         USE_WIN32_THREADS.
42572
42573 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42574
42575         * modules/fnmatch-posix (License): Change to LGPLv2+.
42576         * modules/fnmatch-gnu (License): Likewise.
42577
42578 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42579
42580         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
42581
42582 2008-09-11  Jim Meyering  <meyering@redhat.com>
42583
42584         * users.txt: Add gtk-vnc.
42585
42586 2008-09-08  Simon Josefsson  <simon@josefsson.org>
42587
42588         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
42589         rotate amounts.
42590
42591         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
42592         required for 16-bit and 8-bit rotates.
42593         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
42594         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
42595         UINT8_MAX instead of hard-coded constants.
42596         Suggested by Paul Eggert.
42597
42598 2008-09-07  Bruno Haible  <bruno@clisp.org>
42599
42600         * tests/test-striconveh.c (main): Check behaviour when converting from
42601         UTF-7.
42602
42603         Make striconveh work better with stateful encodings.
42604         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
42605         that iconv does not increment the inptr when returning -1/EINVAL.
42606
42607 2008-09-07  Bruno Haible  <bruno@clisp.org>
42608
42609         * build-aux/config.rpath: Update according to libtool-2.2.6.
42610         * build-aux/config.libpath: Likewise.
42611
42612 2008-09-06  Bruno Haible  <bruno@clisp.org>
42613
42614         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
42615         * lib/freadptr.c (freadptr): Likewise.
42616         * lib/freadseek.c (freadptrinc): Likewise.
42617         Reported by Simon Josefsson.
42618
42619 2008-09-06  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/freadptr (License): Change to LGPLv2+.
42622         * modules/freadseek (License): Likewise.
42623         Suggested by Eric Blake.
42624
42625         * modules/memchr2 (License): Change to LGPLv2+.
42626         Approved by Eric Blake.
42627
42628 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42629             Bruno Haible  <bruno@clisp.org>
42630
42631         Make gnulib-tool work with native 'sed' on AIX.
42632         * gnulib-tool (sed_noop): New variable.
42633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
42634         func_add_or_update, func_create_testdir): Use it to initialize sed
42635         script variables.
42636         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42637
42638 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
42639             Bruno Haible  <bruno@clisp.org>
42640
42641         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
42642         also works after #include directives.
42643
42644 2008-09-04  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
42645
42646         getdate.y: reject an out-of-range timezone value
42647         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
42648         the range [-24...+24].  When specified with only one or two digits,
42649         * tests/test-getdate.c: Tests for the fix.
42650         * doc/getdate.texi: Document this change.
42651
42652 2008-09-03  Bruno Haible  <bruno@clisp.org>
42653
42654         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
42655
42656 2008-09-02  Simon Josefsson  <simon@josefsson.org>
42657
42658         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
42659         <bruce.korb@gmail.com> with ideas from Ben Pfaff
42660         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
42661         Blake <ebb9@byu.net>.
42662
42663         * tests/test-bitrotate.c: Add more test vectors.
42664
42665 2008-09-02  Eric Blake  <ebb9@byu.net>
42666
42667         vasnprintf-posix: handle large precision via %.*d
42668         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
42669         when handling it ourselves.
42670         * tests/test-vasnprintf-posix.c (test_function): Add test.
42671         * tests/test-snprintf-posix.h (test_function): Likewise.
42672         * tests/test-sprintf-posix.h (test_function): Likewise.
42673         * tests/test-vasprintf-posix.c (test_function): Likewise.
42674         Reported by Alain Guibert.
42675
42676 2008-09-01  Eric Blake  <ebb9@byu.net>
42677
42678         c-stack: make configure-time check more robust
42679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
42680         successful sigaction call.
42681         Reported by Tom G. Christensen.
42682
42683 2008-09-01  Bruno Haible  <bruno@clisp.org>
42684
42685         New module 'findprog-lgpl'.
42686         * modules/findprog-lgpl: New file.
42687         * lib/findprog-lgpl.c: New file.
42688         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
42689         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
42690         to decide whether to use strdup or xstrdup, concatenated_filename or
42691         xconcatenated_filename.
42692
42693 2008-09-01  Bruno Haible  <bruno@clisp.org>
42694
42695         Split module 'concat-filename' into 'concat-filename' (LGPL) and
42696         'xconcat-filename' (GPL).
42697         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
42698         (License): Change to LGPLv2+.
42699         * modules/xconcat-filename: New file.
42700         * lib/concat-filename.h (concatenated_filename): Change specification.
42701         (xconcatenated_filename): New declaration.
42702         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
42703         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
42704         memory situations.
42705         * lib/xconcat-filename.c: New file.
42706         * NEWS: Mention the change.
42707         * lib/findprog.c: Include concat-filename.h, not filename.h.
42708         (find_in_path): Use xconcatenated_filename instead of
42709         concatenated_filename.
42710         * lib/javacomp.c: Include concat-filename.h, not filename.h.
42711         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42712         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42713         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42714         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
42715         instead of concatenated_filename.
42716         * lib/javaexec.c: Include concat-filename.h, not filename.h.
42717         (execute_java_class): Use xconcatenated_filename instead of
42718         concatenated_filename.
42719         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
42720         * modules/javacomp (Depends-on): Likewise.
42721         * modules/javaexec (Depends-on): Likewise.
42722
42723 2008-09-01  Bruno Haible  <bruno@clisp.org>
42724
42725         Split module 'filename' into 'filename' and 'concat-filename'.
42726         * modules/filename: Keep only lib/filename.h.
42727         (License): Change to LGPLv2+.
42728         * modules/concat-filename: New file, extracted from modules/filename.
42729         * lib/filename.h (concatenated_filename): Remove declaration.
42730         * lib/concat-filename.h: New file, extracted from lib/filename.h.
42731         * lib/concat-filename.c: Include concat-filename.h.
42732         * NEWS: Mention the change.
42733
42734 2008-09-01  Simon Josefsson  <simon@josefsson.org>
42735
42736         * lib/bitrotate.h (rotl8, rotr8): Add.
42737
42738         * modules/bitrotate (configure.ac): Need
42739         AC_REQUIRE([AC_C_INLINE]).
42740         (Description): Mention stdint.h.  Reported by Bruno Haible
42741         <bruno@clisp.org>.
42742
42743         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
42744         Paolo Bonzini <bonzini@gnu.org>.
42745
42746 2008-08-31  Bruno Haible  <bruno@clisp.org>
42747
42748         Assume Solaris specific bi-arch conventions on Solaris systems.
42749         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
42750         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
42751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
42752         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
42753         like acl_libdirstem.
42754         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
42755         acl_libdirstem.
42756         * NEWS: Mention the change.
42757         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
42758
42759 2008-08-31  Jim Meyering  <meyering@redhat.com>
42760
42761         * lib/strftime.h: Add comments describing the two added arguments.
42762
42763         remove duplicate #include directives
42764         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
42765         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
42766
42767 2008-08-31  Bruno Haible  <bruno@clisp.org>
42768
42769         New module 'sigpipe-die'.
42770         * modules/sigpipe-die: New file.
42771         * lib/sigpipe-die.h: New file.
42772         * lib/sigpipe-die.c: New file.
42773         * MODULES.html.sh (Signal handling): Add sigpipe-die.
42774
42775 2008-08-31  Bruno Haible  <bruno@clisp.org>
42776
42777         Don't override previously installed signal handlers.
42778         * lib/fatal-signal.c (saved_sigactions): New variable.
42779         (uninstall_handlers): Reset the signal to the saved handler, not
42780         to SIG_DFL (except when ignored).
42781         (install_handlers): Save the previous handlers.
42782
42783 2008-08-30  Bruno Haible  <bruno@clisp.org>
42784
42785         * gnulib-tool (func_reset_sigpipe): New function.
42786         (func_get_automake_snippet, func_modules_transitive_closure,
42787         func_import): Invoke it before a join command that reads from stdin,
42788         to avoid "echo: write error: Broken pipe" error messages on stderr.
42789         Reported by Sam Steingold <sds@gnu.org>.
42790
42791 2008-08-30  Bruno Haible  <bruno@clisp.org>
42792
42793         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
42794         Code copied from m4/open.m4.
42795         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
42796         access and the filename ends in a slash. Code copied from lib/open.c.
42797         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
42798         * tests/test-fopen.c (main): Check against bug with trailing slash.
42799
42800 2008-08-29  Bruno Haible  <bruno@clisp.org>
42801
42802         Avoid some "gcc -pedantic" warnings.
42803         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
42804         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
42805         * lib/dirent.in.h: Likewise.
42806         * lib/fcntl.in.h: Likewise.
42807         * lib/float.in.h: Likewise.
42808         * lib/iconv.in.h: Likewise.
42809         * lib/inttypes.in.h: Likewise.
42810         * lib/locale.in.h: Likewise.
42811         * lib/math.in.h: Likewise.
42812         * lib/netinet_in.in.h: Likewise.
42813         * lib/search.in.h: Likewise.
42814         * lib/signal.in.h: Likewise.
42815         * lib/stdarg.in.h: Likewise.
42816         * lib/stdint.in.h: Likewise.
42817         * lib/stdio.in.h: Likewise.
42818         * lib/stdlib.in.h: Likewise.
42819         * lib/string.in.h: Likewise.
42820         * lib/strings.in.h: Likewise.
42821         * lib/sys_select.in.h: Likewise.
42822         * lib/sys_socket.in.h: Likewise.
42823         * lib/sys_stat.in.h: Likewise.
42824         * lib/sys_time.in.h: Likewise.
42825         * lib/sysexits.in.h: Likewise.
42826         * lib/time.in.h: Likewise.
42827         * lib/unistd.in.h: Likewise.
42828         * lib/wchar.in.h: Likewise.
42829         * lib/wctype.in.h: Likewise.
42830         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
42831         * modules/fchdir (Makefile.am): Likewise.
42832         * modules/fcntl (Makefile.am): Likewise.
42833         * modules/float (Makefile.am): Likewise.
42834         * modules/iconv_open (Makefile.am): Likewise.
42835         * modules/inttypes (Makefile.am): Likewise.
42836         * modules/locale (Makefile.am): Likewise.
42837         * modules/math (Makefile.am): Likewise.
42838         * modules/netinet_in (Makefile.am): Likewise.
42839         * modules/search (Makefile.am): Likewise.
42840         * modules/signal (Makefile.am): Likewise.
42841         * modules/stdarg (Makefile.am): Likewise.
42842         * modules/stdint (Makefile.am): Likewise.
42843         * modules/stdio (Makefile.am): Likewise.
42844         * modules/stdlib (Makefile.am): Likewise.
42845         * modules/string (Makefile.am): Likewise.
42846         * modules/strings (Makefile.am): Likewise.
42847         * modules/sys_select (Makefile.am): Likewise.
42848         * modules/sys_socket (Makefile.am): Likewise.
42849         * modules/sys_stat (Makefile.am): Likewise.
42850         * modules/sys_time (Makefile.am): Likewise.
42851         * modules/sysexits (Makefile.am): Likewise.
42852         * modules/time (Makefile.am): Likewise.
42853         * modules/unistd (Makefile.am): Likewise.
42854         * modules/wchar (Makefile.am): Likewise.
42855         * modules/wctype (Makefile.am): Likewise.
42856         Reported by Reuben Thomas <rrt@sc3d.org>.
42857
42858 2008-08-29  Bruno Haible  <bruno@clisp.org>
42859
42860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
42861         any more.
42862
42863 2008-08-29  Simon Josefsson  <simon@josefsson.org>
42864
42865         * MODULES.html.sh (Misc): Add bitrotate.
42866
42867         * modules/bitrotate: New file.
42868
42869         * lib/bitrotate.h: New file.
42870
42871         * modules/bitrotate-tests: New file.
42872
42873         * tests/test-bitrotate.c: New file.
42874
42875         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
42876         on the bitrotate module.
42877
42878         * lib/arctwo.c: Use new bitrotate module.
42879
42880 2008-08-29  Jim Meyering  <meyering@redhat.com>
42881
42882         bootstrap: merge changes from coreutils
42883         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
42884         of copied files.  Remove a kludge, now that this is fixed.
42885         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
42886         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
42887         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
42888
42889 2008-08-29  Bruno Haible  <bruno@clisp.org>
42890
42891         * MODULES.html.sh: Remove --cvs-urls option.
42892
42893 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
42894
42895         maint.mk: adjust to file name change
42896         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
42897
42898 2008-08-28  Jim Meyering  <meyering@redhat.com>
42899
42900         * modules/getndelim2 (License): Relicense to LGPLv2+.
42901         Approved by Richard Stallman for the version of 1995, and by
42902         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
42903
42904 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
42905
42906         * lib/getdelim.c (flockfile, funlockfile): Make all of them
42907         dummy if one is not available.  Do not touch them if
42908         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
42909         (getc_maybe_unlocked): New.
42910         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
42911
42912 2008-08-26  Eric Blake  <ebb9@byu.net>
42913
42914         doc/INSTALL: resync from autoconf
42915         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
42916         (INSTALL_PRELUDE): Delete; this is done more efficiently by
42917         moving...
42918         * install.texi [!autoconf]: ...here.  Resync from autoconf.
42919         * INSTALL: Regenerate.
42920         * INSTALL.ISO: New file.
42921         * INSTALL.UTF-8: Likewise.
42922
42923 2008-08-26  Jim Meyering  <meyering@redhat.com>
42924
42925         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
42926         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
42927         these definitions conditional, so that they may be overridden, too.
42928
42929 2008-08-26  Bruno Haible  <bruno@clisp.org>
42930
42931         Generate INSTALL file variants with prettier quotes.
42932         * doc/Makefile (INSTALL_PRELUDE): New macro.
42933         (INSTALL): Use it.
42934         (INSTALL.ISO, INSTALL.UTF-8): New rules.
42935
42936 2008-08-26  Bruno Haible  <bruno@clisp.org>
42937
42938         Run makeinfo in an English locale.
42939         * doc/Makefile (MAKEINFO): New variable.
42940
42941 2008-08-26  Bruno Haible  <bruno@clisp.org>
42942
42943         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
42944         Suggested by Eric Blake.
42945
42946 2008-08-25  Bruno Haible  <bruno@clisp.org>
42947
42948         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
42949
42950 2008-08-25  Eric Blake  <ebb9@byu.net>
42951
42952         c-stack: test that stack overflow can be caught
42953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
42954         that platform allows handling stack overflow; at least OS/2 EMX
42955         has sigaltstack, but crashes before transferring control to
42956         handler on stack overflow.
42957         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
42958         check for HAVE_STACK_OVERFLOW_HANDLING.
42959         Reported by Elbert Pol.
42960
42961 2008-08-25  Bruno Haible  <bruno@clisp.org>
42962
42963         * doc/posix-functions/strftime.texi: Fix description of strftime
42964         module.
42965
42966 2008-08-24  Bruno Haible  <bruno@clisp.org>
42967
42968         * tests/uniwidth/test-uc_width2.c: New file.
42969         * tests/uniwidth/test-uc_width2.sh: New file.
42970         * modules/uniwidth/width-tests (Files): Add the new files.
42971         (TESTS): Add uniwidth/test-uc_width2.sh.
42972         (TESTS_ENVIRONMENT): New variable.
42973         (check_PROGRAMS): Add test-uc_width2.
42974         (test_uc_width2_SOURCES): New variable.
42975
42976         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
42977         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
42978         not 0x00AB.
42979         Reported by Alexander V. Lukyanov <lav@netis.ru>.
42980
42981 2008-08-22  Eric Blake  <ebb9@byu.net>
42982
42983         test-lock, test-tls: mention why a test is skipped
42984         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
42985         skipped.
42986         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
42987
42988         count-one-bits: relax license
42989         * modules/count-one-bits (License): Relicense to LGPLv2+.
42990         Suggested by Ludovic Courtès, approved by Ben Pfaff.
42991
42992 2008-08-22  Andreas Schwab  <schwab@suse.de>
42993
42994         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
42995         Remove spurious space in assignment.
42996
42997 2008-08-21  Simon Josefsson  <simon@josefsson.org>
42998
42999         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43000         Paul Eggert <eggert@CS.UCLA.EDU>.
43001
43002 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43003
43004         * modules/gettext: Add m4/threadlib.m4.
43005
43006 2008-08-19  Eric Blake  <ebb9@byu.net>
43007
43008         test-c-stack: fix compilation failure on FreeBSD 5.0
43009         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43010         headers before <sys/resource.h>.
43011         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43012         the bug.
43013         Reported by Nelson H. F. Beebe.
43014
43015         strverscmp: migrate from "strverscmp.h" to <string.h>
43016         * modules/string (Makefile.am): Add new hooks.
43017         * modules/strverscmp (Files): Remove strverscmp.h.
43018         (Depends-on): Add string.
43019         (configure.ac): Add indicator.
43020         (Include): Mention new header.
43021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43022         defaults.
43023         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43024         results.
43025         * lib/strverscmp.h: Delete.
43026         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43027         * tests/test-strverscmp.c (includes): Adjust client.
43028         * lib/check-version.c (includes): Likewise.
43029         * NEWS: Document the change.
43030
43031         strverscmp: add unit test
43032         * modules/strverscmp-tests: New file.
43033         * tests/test-strverscmp.c: Likewise.
43034
43035 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43036
43037         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43038         regarding Windows crypto stuff, from Mono.
43039
43040 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43041
43042         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43043         if present, for intel RND.  Return error on failures.
43044
43045 2008-08-18  Ben Pfaff  <blp@gnu.org>
43046
43047         gitlog-to-changelog: give better diagnostic for failed pipe-open
43048         * build-aux/gitlog-to-changelog: Improve error message: suggest
43049         that the version of Git may be too old.
43050
43051 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43052
43053         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43054         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43055
43056 2008-08-18  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43059         pthread_in_use().
43060
43061 2008-08-18  Bruno Haible  <bruno@clisp.org>
43062
43063         * lib/glthread/threadlib.c: Include <pthread.h>.
43064
43065 2008-08-18  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43068         glthread_recursive_lock_* macros.
43069         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43070         Fix syntax error.
43071
43072 2008-08-18  Bruno Haible  <bruno@clisp.org>
43073
43074         * lib/glthread/thread.c: Avoid forcing a context switch right after
43075         thread creation.
43076
43077 2008-08-17  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43080         * lib/glthread/thread.h: Provide Win32 specific implementation.
43081         * modules/thread (Files): Add lib/glthread/thread.c.
43082         (Depends-on): Add lock.
43083         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43084
43085 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43086
43087         New module 'yield'.
43088         * modules/yield: New file.
43089         * lib/glthread/yield.h: New file.
43090         * m4/yield.m4: New file.
43091         * MODULES.html.sh (Multithreading): Add yield.
43092
43093 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43094
43095         New module 'thread'.
43096         * modules/thread: New file.
43097         * lib/glthread/thread.h: New file.
43098         * m4/thread.m4: New file.
43099         * MODULES.html.sh (Multithreading): Add thread.
43100
43101 2008-08-17  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/glthread/lock.h: Include <stdlib.h> always.
43104         * lib/glthread/tls.h: Likewise.
43105         * lib/glthread/cond.h: Likewise.
43106
43107 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43108
43109         New module 'cond'.
43110         * modules/cond: New file.
43111         * lib/glthread/cond.h: New file.
43112         * lib/glthread/cond.c: New file.
43113         * m4/cond.m4: New file.
43114         * MODULES.html.sh (Multithreading): Add cond.
43115
43116 2008-08-16  Eric Blake  <ebb9@byu.net>
43117
43118         c-stack: fix regression on Irix 5.3 from 2008-06-21
43119         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43120         sa_sigaction...
43121         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43122         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43123         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43124         * modules/signal (Makefile.am): Use the value.
43125         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43126         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43127         * doc/posix-headers/signal.texi (signal.h): Document this
43128         portability issue.
43129         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43130         Reported by Tom G. Christensen.
43131
43132 2008-08-17  Bruno Haible  <bruno@clisp.org>
43133
43134         New module 'threadlib'.
43135         * modules/threadlib: New file.
43136         * lib/glthread/threadlib.c: New file, extracted from
43137         lib/glthread/lock.c.
43138         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43139         functions.
43140         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43141         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43142         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43143         macros.
43144         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43145         (gl_DISABLE_THREADS): Remove macro.
43146         * modules/lock (Files): Remove build-aux/config.rpath.
43147         (Depends-on): Remove havelib. Add threadlib.
43148         (configure.ac-early): Remove section.
43149         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43150         * modules/tls (Depends-on): Remove lock. Add threadlib.
43151         (Link): New section, copied from threadlib.
43152         * MODULES.html.sh (Multithreading): Add threadlib.
43153
43154 2008-08-14  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43157         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43158         glthread_rwlock_unlock, glthread_rwlock_destroy,
43159         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43160         glthread_recursive_lock_destroy): Define as macros always.
43161         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43162         glthread_lock_lock.
43163         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43164         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43165         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43166         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43167         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43168         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43169         (glthread_recursive_lock_lock_func): Renamed from
43170         glthread_recursive_lock_lock.
43171         (glthread_recursive_lock_unlock_func): Renamed from
43172         glthread_recursive_lock_unlock.
43173         (glthread_recursive_lock_destroy_func): Renamed from
43174         glthread_recursive_lock_destroy.
43175
43176 2008-08-14  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/glthread/lock.h: Renamed from lib/lock.h.
43179         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43180         * lib/glthread/tls.h: Renamed from lib/tls.h.
43181         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43182         * lib/fstrcmp.c: Update includes.
43183         * lib/strsignal.c: Update includes.
43184         * modules/lock (Files, Makefile.am): Update.
43185         (Include): Change to "glthread/lock.h".
43186         * modules/tls (Files, Makefile.am): Update.
43187         (Include): Change to "glthread/tls.h".
43188         * tests/test-lock.c: Update includes.
43189         * tests/test-tls.c: Update includes.
43190         * NEWS: Mention the renamed header files.
43191
43192 2008-08-11  Jim Meyering  <meyering@redhat.com>
43193
43194         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43195
43196 2008-08-11  Eric Blake  <ebb9@byu.net>
43197
43198         test-c-stack: avoid C99-ism
43199         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43200         before statement.
43201         Reported by Alain Guibert.
43202
43203 2008-08-10  Jim Meyering  <meyering@redhat.com>
43204
43205         ensure that return value of uinttostr et al are not ignored
43206         * lib/inttostr.h (__GNUC_PREREQ): Define.
43207         (__attribute_warn_unused_result__): Define.
43208         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43209
43210 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43211
43212         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43213         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43214
43215 2008-08-07  Jim Meyering  <meyering@redhat.com>
43216
43217         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43218
43219         * modules/mkstemp (License): Relicense under LGPLv2+.
43220         * modules/tempname (License): Likewise.
43221
43222 2008-08-06  Bruno Haible  <bruno@clisp.org>
43223
43224         * lib/poll.c (poll): Further micro-optimization.
43225
43226 2008-08-06  Jim Meyering  <meyering@redhat.com>
43227
43228         inet_pton.c: use locale-independent tolower
43229         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43230         (inet_pton6): Use c_tolower rather than tolower.
43231         * modules/inet_pton (Depends-on): Add c-ctype.
43232
43233 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43234
43235         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43236         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43237
43238 2008-08-06  Jim Meyering  <meyering@redhat.com>
43239
43240         * modules/inet_pton (License): Relicense under LGPLv2+.
43241
43242 2008-08-03  Bruno Haible  <bruno@clisp.org>
43243
43244         Additional non-aborting API for lock and tls.
43245         * lib/lock.h: Include <errno.h>.
43246         (glthread_lock_init): New macro/function.
43247         (gl_lock_init): Define as wrapper around glthread_lock_init.
43248         (glthread_lock_lock): New macro/function.
43249         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43250         (glthread_lock_unlock): New macro/function.
43251         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43252         (glthread_lock_destroy): New macro/function.
43253         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43254         (glthread_rwlock_init): New macro/function.
43255         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43256         (glthread_rwlock_rdlock): New macro/function.
43257         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43258         (glthread_rwlock_wrlock): New macro/function.
43259         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43260         (glthread_rwlock_unlock): New macro/function.
43261         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43262         (glthread_rwlock_destroy): New macro/function.
43263         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43264         (glthread_recursive_lock_init): New macro/function.
43265         (gl_recursive_lock_init): Define as wrapper around
43266         glthread_recursive_lock_init.
43267         (glthread_recursive_lock_lock): New macro/function.
43268         (gl_recursive_lock_lock): Define as wrapper around
43269         glthread_recursive_lock_lock.
43270         (glthread_recursive_lock_unlock): New macro/function.
43271         (gl_recursive_lock_unlock): Define as wrapper around
43272         glthread_recursive_lock_unlock.
43273         (glthread_recursive_lock_destroy): New macro/function.
43274         (gl_recursive_lock_destroy): Define as wrapper around
43275         glthread_recursive_lock_destroy.
43276         (glthread_once): New macro/function.
43277         (gl_once): Define as wrapper around glthread_once.
43278         Update function declarations.
43279         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43280         glthread_rwlock_init. Return error code.
43281         (glthread_rwlock_rdlock_multithreaded): Renamed from
43282         glthread_rwlock_rdlock. Return error code.
43283         (glthread_rwlock_wrlock_multithreaded): Renamed from
43284         glthread_rwlock_wrlock. Return error code.
43285         (glthread_rwlock_unlock_multithreaded): Renamed from
43286         glthread_rwlock_unlock. Return error code.
43287         (glthread_rwlock_destroy_multithreaded): Renamed from
43288         glthread_rwlock_destroy. Return error code.
43289         (glthread_recursive_lock_init_multithreaded): Renamed from
43290         glthread_recursive_lock_init. Return error code.
43291         (glthread_recursive_lock_lock_multithreaded): Renamed from
43292         glthread_recursive_lock_lock. Return error code.
43293         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43294         glthread_recursive_lock_unlock. Return error code.
43295         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43296         glthread_recursive_lock_destroy. Return error code.
43297         (glthread_once_call): Make static.
43298         (glthread_once_multithreaded): Renamed from glthread_once.
43299         * lib/tls.h: Include <errno.h>.
43300         (glthread_tls_key_init): New macro/function.
43301         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43302         (glthread_tls_set): New macro/function.
43303         (gl_tls_set): Define as wrapper around glthread_tls_set.
43304         (glthread_tls_key_destroy): New macro/function.
43305         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43306         Update function declarations.
43307         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43308         glthread_tls_get.
43309         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43310
43311 2008-08-04  Eric Blake  <ebb9@byu.net>
43312
43313         gnumakefile: use space, not TAB, outside of targets
43314         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43315
43316 2008-08-02  Jim Meyering  <meyering@redhat.com>
43317
43318         getdate.y: avoid locale-dependent date parsing failure
43319         In Turkish locales, getdate would fail to recognize keywords
43320         containing a lowercase "i".  The solution is not to rely on
43321         locale-sensitive case-conversion.
43322         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43323         (lookup_word): Use c_toupper in place of toupper.
43324         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43325         Reported by Vefa Bicakci <bicave@superonline.com> in
43326         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43327         * modules/getdate (Depends-on): Add c-ctype.
43328
43329 2008-08-02  Bruno Haible  <bruno@clisp.org>
43330
43331         * gnulib-tool (func_import): When updating or creating a .gitignore
43332         file, prepend each added line with a slash, and ignore leading slashes
43333         from the existing lines.
43334         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43335
43336 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43337
43338         Portability fix for GNU make 3.79.1.
43339         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43340         versions do not understand.
43341
43342 2008-08-01  Bruno Haible  <bruno@clisp.org>
43343
43344         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43345         * tests/test-isnanf.h (zero): New variable.
43346         (main): Avoid literal -0.0f.
43347         * tests/test-isnand.h (zero): New variable.
43348         (main): Avoid literal -0.0.
43349         * tests/test-isnanl.h (zero): New variable.
43350         (main): Avoid literal -0.0L.
43351         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43352         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43353         -0.0, -0.0L.
43354         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43355         (test_signbitd): Avoid literal -0.0.
43356         (test_signbitl): Avoid literal -0.0L.
43357         * tests/test-ceilf1.c (zero): New variable.
43358         (main): Avoid literal -0.0f.
43359         * tests/test-ceill.c (zero): New variable.
43360         (main): Avoid literal -0.0L.
43361         * tests/test-floorf1.c (zero): New variable.
43362         (main): Avoid literal -0.0f.
43363         * tests/test-floorl.c (zero): New variable.
43364         (main): Avoid literal -0.0L.
43365         * tests/test-roundf1.c (zero): New variable.
43366         (main): Avoid literal -0.0f.
43367         * tests/test-round1.c (zero): New variable.
43368         (main): Avoid literal -0.0.
43369         * tests/test-roundl.c (zero): New variable.
43370         (main): Avoid literal -0.0L.
43371         * tests/test-truncf1.c (zero): New variable.
43372         (main): Avoid literal -0.0f.
43373         * tests/test-trunc1.c (zero): New variable.
43374         (main): Avoid literal -0.0.
43375         * tests/test-truncl.c (zero): New variable.
43376         (main): Avoid literal -0.0L.
43377         * tests/test-frexp.c (zero): New variable.
43378         (main): Avoid literal -0.0.
43379         * tests/test-frexpl.c (zero): New variable.
43380         (main): Avoid literal -0.0L.
43381         * tests/test-ldexpl.c (zero): New variable.
43382         (main): Avoid literal -0.0L.
43383         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43384         (zerod, zerol): New variables.
43385         (test_function): Avoid literals -0.0, -0.0L.
43386         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43387         (zerod, zerol): New variables.
43388         (test_function): Avoid literals -0.0, -0.0L.
43389         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43390         (zerod, zerol): New variables.
43391         (test_function): Avoid literals -0.0, -0.0L.
43392         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43393         (zerod, zerol): New variables.
43394         (test_function): Avoid literals -0.0, -0.0L.
43395         * tests/test-strtod.c (zero): New variable.
43396         (main): Avoid literal -0.0.
43397         Reported by Jonathan C. Patschke <jp@centtech.com>.
43398
43399 2008-07-31  Jim Meyering  <meyering@redhat.com>
43400
43401         sha256.h: correct definition of SHA224_DIGEST_SIZE
43402         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43403         Reported by Paulie Pena IV <paulie4@gmail.com>.
43404         Define as 224 / 8, rather than as a literal.
43405         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43406         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43407         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43408
43409 2008-07-31  Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43412         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43413         Reported by Jonathan Patschke <jp@centtech.com>.
43414
43415 2008-07-31  Bruno Haible  <bruno@clisp.org>
43416
43417         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43418         Reported by Paolo Bonzini <bonzini@gnu.org>.
43419
43420 2008-07-30  Eric Blake  <ebb9@byu.net>
43421
43422         test-strtod: allow compilation without -lm
43423         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43424         Reported by Dennis Clarke <blastwave@gmail.com>.
43425
43426 2008-07-28  Jim Meyering  <meyering@redhat.com>
43427
43428         bootstrap: work also when there are no .po files in po/
43429         * build-aux/bootstrap (update_po_files): Complete the change
43430         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43431
43432 2008-07-27  Jim Meyering  <meyering@redhat.com>
43433
43434         * users.txt: Add zile.
43435
43436 2008-07-26  Ben Pfaff  <blp@gnu.org>
43437
43438         Add missing dependencies on new m4/exponent[fdl].m4 files.
43439         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43440         * modules/isnand-nolibm: Add m4/exponentd.m4.
43441         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43442         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43443         m4/isnan[fdl].m4, because the macros actually used moved.
43444         Reported by Jim Meyering.
43445
43446 2008-07-14  Ben Pfaff  <blp@gnu.org>
43447
43448         Add isinf module.
43449         * lib/isinf.c: New file.
43450         * lib/math.in.h: Define isinf macro if we have decided to replace
43451         it.
43452         * m4/isinf.m4: New file.
43453         * m4/math_h.m4: Initialize and substitute variables for isinf
43454         module.
43455         * modules/isinf: New file.
43456         * modules/isinf-tests: New file.
43457         * modules/math: Add substitutions for new module.
43458         * tests/test-isinf.c: New file.
43459         * doc/posix-functions/isinf.texi: Mention new module.
43460         * MODULES.html.sh: Mention new module.
43461
43462 2008-07-14  Ben Pfaff  <blp@gnu.org>
43463
43464         Factor out some macros for use by additional modules.
43465         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43466         exponentf.m4.
43467         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43468         exponentd.m4.
43469         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
43470         file exponentl.m4.
43471         * m4/exponentf.m4: New file.
43472         * m4/exponentd.m4: New file.
43473         * m4/exponentl.m4: New file.
43474         * modules/isnanf: Use new file m4/exponentf.m4.
43475         * modules/isnand: Use new file m4/exponentd.m4.
43476         * modules/isnanl: Use new file m4/exponentl.m4.
43477
43478 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
43479
43480         mktime.c: normalize tp->tm_isdst value to -1/0/1.
43481         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
43482         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
43483         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
43484
43485         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
43486         readlink on platforms without PATH_MAX.
43487
43488 2008-07-21  Eric Blake  <ebb9@byu.net>
43489
43490         Warn, not fail, on stale version.
43491         * top/GNUmakefile (_curr-ver): Tone down previous patch.
43492
43493         Don't allow installation with stale devel version number.
43494         * top/GNUmakefile (_is-install-target): New macro.
43495         (_curr-ver): Forbid installation with stale version number.
43496
43497 2008-07-20  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
43500         TESTS_ENVIRONMENT.
43501         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
43502
43503 2008-07-20  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/c-stack.h (c_stack_action): Add documentation.
43506         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
43507
43508 2008-07-20  Bruno Haible  <bruno@clisp.org>
43509
43510         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
43511         * modules/readlink (License): Likewise.
43512
43513 2008-07-17  Eric Blake  <ebb9@byu.net>
43514
43515         * modules/c-stack (Link): Fix typo.
43516
43517         Make c-stack use libsigsegv, when available.
43518         * modules/c-stack (Depends-on): Add libsigsegv.
43519         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
43520         needed.
43521         * lib/c-stack.c (SIGSTKSZ): Define fallback.
43522         (segv_handler, overflow_handler, c_stack_action)
43523         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
43524         implementation when libsigsegv is available, but only when using
43525         the library is necessary.
43526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
43527         comment, explaining why XSI check fails on Linux.
43528         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
43529         * tests/test-c-stack2.sh: Tweak skip message.
43530         * NEWS: Document new link-time requirements.
43531
43532 2008-07-16  Eric Blake  <ebb9@byu.net>
43533
43534         c-stack: Expose false positives when not using libsigsegv.
43535         * modules/c-stack-tests (Files): Expand test.
43536         * tests/test-c-stack.c (main): Add means to conditionally trigger
43537         non-overflow SIGSEGV.
43538         * tests/test-c-stack2.sh: New file.
43539
43540 2008-07-14  Bruno Haible  <bruno@clisp.org>
43541
43542         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
43543         Reported by Eric Blake.
43544
43545 2008-07-14  Sam Steingold  <sds@gnu.org>
43546             Bruno Haible  <bruno@clisp.org>
43547
43548         New module libsigsegv.
43549         * modules/libsigsegv: New file.
43550         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
43551         modifications.
43552         * MODULES.html.sh (Signal handling): New section.
43553
43554 2008-07-14  Bruno Haible  <bruno@clisp.org>
43555
43556         * modules/unictype/ctype-* (Description): Add the word "function".
43557         Improves the resulting doc in MODULES.html.
43558
43559 2008-07-12  Ben Pfaff  <blp@gnu.org>
43560
43561         Add longlong module.
43562         * modules/longlong: New file.
43563
43564 2008-07-12  Bruno Haible  <bruno@clisp.org>
43565
43566         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
43567         to empty.
43568
43569 2008-07-10  Ben Pfaff  <blp@gnu.org>
43570
43571         Add isnan module.
43572         * doc/posix-functions/isnan.texi: Mention new module.
43573         * lib/math.in.h: Define isnan macro if we have decided to replace
43574         it.
43575         * m4/isnan.m4: New file.
43576         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
43577         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
43578         also.
43579         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
43580         redundancy.
43581         * m4/math_h.m4: Initialize and substitute variables for isnan
43582         module.
43583         * modules/isnan: New file.
43584         * modules/isnan-tests: New file.
43585         * modules/math: Add substitutions for new module.
43586         * tests/test-isnan.c: New file.
43587         * MODULES.html.sh: Mention new module.
43588
43589 2008-07-10  Ben Pfaff  <blp@gnu.org>
43590
43591         Add isnanf module.
43592         * lib/isnanf.m4: New file.
43593         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
43594         (gl_HAVE_ISNANF_IN_LIBM): New macro.
43595         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
43596         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
43597         * modules/isnanf: New file.
43598         * modules/isnanf-tests: New file.
43599         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
43600         files.
43601         * tests/test-isnanf-nolibm.c: factored most of its contents into
43602         new file tests/test-isnanf.h.
43603         * tests/test-isnanf.h: New file.
43604         * tests/test-isnanf.c: New file.
43605         * MODULES.html.sh: Mention new module.
43606         * doc/glibc-functions/isnanf.texi: Mention new module.
43607
43608 2008-07-10  Ben Pfaff  <blp@gnu.org>
43609
43610         Add isnand module.
43611         * lib/isnand.h: New file.
43612         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
43613         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
43614         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
43615         functionality also.
43616         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
43617         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
43618         (gl_HAVE_ISNAND_IN_LIBM): New macro.
43619         * modules/isnand: New file.
43620         * modules/isnand-tests: New file.
43621         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
43622         files.
43623         * tests/test-isnand-nolibm.c: factored most of its contents into
43624         new file tests/test-isnand.h.
43625         * tests/test-isnand.h: New file.
43626         * tests/test-isnand.c: New file.
43627         * MODULES.html.sh: Mention new module.
43628
43629 2008-07-10  Ben Pfaff  <blp@gnu.org>
43630
43631         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
43632         * lib/isnand.h: Rename lib/isnand-nolibm.h.
43633         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
43634         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
43635         * modules/isnanf-nolibm: Update references to renamed files.
43636         * modules/isnand-nolibm: Likewise.
43637         * modules/isnanf-nolibm-tests: Likewise.
43638         * modules/isnand-nolibm-tests: Likewise.
43639         * lib/frexp.c: Likewise.
43640         * lib/isfinite.c: Likewise.
43641         * lib/signbitd.c: Likewise.
43642         * lib/signbitf.c: Likewise.
43643         * lib/vasnprintf.c: Likewise.
43644         * tests/test-ceilf1.c: Likewise.
43645         * tests/test-ceilf2.c: Likewise.
43646         * tests/test-floorf1.c: Likewise.
43647         * tests/test-floorf2.c: Likewise.
43648         * tests/test-frexp.c: Likewise.
43649         * tests/test-round1.c: Likewise.
43650         * tests/test-round2.c: Likewise.
43651         * tests/test-roundf1.c: Likewise.
43652         * tests/test-strtod.c: Likewise.
43653         * tests/test-trunc1.c: Likewise.
43654         * tests/test-trunc2.c: Likewise.
43655         * tests/test-truncf1.c: Likewise.
43656         * tests/test-truncf2.c: Likewise.
43657         * NEWS: Mention the renamed header files.
43658
43659 2008-07-11  Jim Meyering  <meyering@redhat.com>
43660
43661         vc-list-files: make the last-resort awk code more portable
43662         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
43663         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
43664         does not support it.
43665
43666 2008-07-10  Eric Blake  <ebb9@byu.net>
43667
43668         Work with tar's bootstrap.
43669         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
43670         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
43671         an m4 comment.
43672
43673 2008-07-09  Jim Meyering  <meyering@redhat.com>
43674
43675         posix-shell.m4: fix typo that made this test malfunction
43676         * m4/posix-shell.m4: Remove capitalization in variable name.
43677
43678 2008-07-08  Bruno Haible  <bruno@clisp.org>
43679
43680         * m4/onceonly.m4: Update comments.
43681         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43682
43683 2008-07-04  Jim Meyering  <meyering@redhat.com>
43684
43685         * users.txt: Add vc-dwim.
43686         (bison, coreutils): Use the gitweb URL.
43687
43688 2008-07-03  Jim Meyering  <meyering@redhat.com>
43689
43690         * users.txt: Add libffcall.  From Sam Steingold.
43691
43692 2008-07-03  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
43693
43694         getdate.y: do not ignore TZ with relative day, month or year offset
43695         * lib/getdate.y (get_date): Move the tz-handling block to follow the
43696         relative-date-handling, since otherwise, the latter would clobber the
43697         sole output (an updated Start value) of the tz-handling block.
43698         * tests/test-getdate.c: Tests for the fix
43699
43700 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43701
43702         Recognize 'foo_LIBRARIES += libgnu.a'.
43703         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
43704         makefile snippet has already specified an installation location,
43705         also using '+='.
43706
43707 2008-07-02  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
43708
43709         getdate.y: factor out common actions
43710         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
43711         Use them in place of open-coded actions.
43712
43713 2008-07-01  Simon Josefsson  <simon@josefsson.org>
43714
43715         Add self-test for getdate module.
43716         * modules/getdate-tests: New file.
43717         * tests/test-getdate.c: New file.
43718
43719 2008-06-29  Bruno Haible  <bruno@clisp.org>
43720
43721         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
43722         .gitignore.
43723         Reported by Sylvain Beucler <beuc@beuc.net>.
43724
43725 2008-06-29  Bruno Haible  <bruno@clisp.org>
43726
43727         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
43728         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
43729
43730 2008-06-29  Bruno Haible  <bruno@clisp.org>
43731
43732         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
43733         EXTRA_DIST.
43734         Reported by Sylvain Beucler <beuc@beuc.net>.
43735
43736 2008-06-26  Jim Meyering  <meyering@redhat.com>
43737
43738         make several modules depend on the "open" module
43739         This provides slightly increased consistency when opening-for-write
43740         the name of a non-directory spelled with a trailing slash.
43741         * modules/chdir-safer: Likewise.
43742         * modules/chown: Likewise.
43743         * modules/clean-temp: Likewise.
43744         * modules/copy-file: Likewise.
43745         * modules/fchdir: Likewise.
43746         * modules/fcntl-safer: Likewise.
43747         * modules/pipe: Likewise.
43748         * modules/utime: Likewise.
43749         Prompted by Eric Blake and Bruno Haible.
43750
43751 2008-06-24  Andreas Schwab  <schwab@suse.de>
43752
43753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
43754         literals can be used as initializers for global variables.
43755
43756 2008-06-23  Eric Blake  <ebb9@byu.net>
43757
43758         Make gnulib-cache.m4 easier to diff.
43759         * gnulib-tool (func_import): Allow newlines when reading cached
43760         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
43761
43762 2008-06-23  Bruno Haible  <bruno@clisp.org>
43763
43764         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
43765         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
43766         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
43767         m4/signalblocking.m4.
43768         (gl_PREREQ_SIGACTION): Don't invoke it.
43769         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
43770         gl_PREREQ_SIG_HANDLER_H.
43771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43772         Don't check for sigaction here.
43773
43774 2008-06-23  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
43777         (install_handlers): Don't set the SA_RESETHAND flag.
43778
43779 2008-06-23  Bruno Haible  <bruno@clisp.org>
43780
43781         * m4/sigaction.m4: Comment fixes.
43782         * lib/signal.in.h: Likewise.
43783
43784 2008-06-23  Eric Blake  <ebb9@byu.net>
43785
43786         Fix typo.
43787         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
43788
43789         Avoid SA_ namespace.
43790         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
43791         Reported by Ralf Wildenhues.
43792
43793         Avoid test failure due to SA_RESTORER.
43794         * tests/test-sigaction.c (SA_MASK): New macro.
43795         (main): Avoid failing due to extension flags being set.
43796         Reported by Jim Meyering.
43797
43798         Revert use of sig-handler.h in sigprocmask.c.
43799         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
43800         it requires the existence of struct sigaction.
43801         * lib/sigprocmask.c (handler_t): Restore typedef.
43802         (rpl_signal, old_handlers): Use local type.
43803
43804 2008-06-22  Bruno Haible  <bruno@clisp.org>
43805
43806         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
43807         conditionally.
43808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43809
43810 2008-06-22  Bruno Haible  <bruno@clisp.org>
43811
43812         * doc/posix-functions/siginterrupt.texi: Move note.
43813
43814         * lib/signal.in.h (SA_RESTART): New macro.
43815         * lib/sigaction.c: Update comment.
43816
43817         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
43818
43819         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
43820         (gl_PREREQ_SIGPROCMASK): Invoke it.
43821         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
43822
43823         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
43824
43825         * lib/sigprocmask.c: Update a comment.
43826
43827 2008-06-21  Eric Blake  <ebb9@byu.net>
43828
43829         Use sigaction module rather than signal().
43830         * modules/c-stack (Depends-on): Add sigaction.
43831         * modules/fatal-signal (Depends-on): Likewise.
43832         * modules/nanosleep (Depends-on): Likewise.
43833         * modules/sigprocmask (Files): Add sig-handler.h.
43834         * modules/sigaction (Files): Likewise.
43835         * lib/sig-handler.h (get_handler): New file, suggested by Paul
43836         Eggert.
43837         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
43838         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
43839         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43840         (init_fatal_signals): Likewise.
43841         * lib/nanosleep.c (rpl_nanosleep): Likewise.
43842         (siginterrupt): Delete fallback.
43843         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
43844         instead.
43845         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
43846         siginterrupt.
43847
43848         New module sigaction, for mingw.
43849         * modules/sigaction: New module...
43850         * modules/sigaction-tests: ...and its test.
43851         * m4/sigaction.m4: New file.
43852         * lib/sigaction.c: Likewise.
43853         * tests/test-sigaction.c: Likewise.
43854         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
43855         * modules/signal (Makefile.am): Likewise.
43856         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
43857         needed.
43858         * doc/posix-headers/signal.texi (signal.h): Mention provided
43859         types.
43860         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
43861         that sigaction is preferable.
43862         * doc/posix-functions/sigaction.texi (sigaction): Mention new
43863         module.
43864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43865         sigaction.
43866
43867         Improve robustness of sigprocmask by overriding signal.
43868         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
43869         is in use.
43870         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
43871         (SIGKILL, SIGSTOP): Provide fallbacks.
43872         (rpl_signal): Implement.
43873         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
43874         signal can be called inside handlers.
43875
43876         Fix nanosleep module on mingw.
43877         * modules/nanosleep (Depends-on): Add sys_select.
43878         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
43879
43880         Fix licensing of sigprocmask.
43881         * modules/raise (License): Relicense as LGPL.
43882
43883 2008-06-21  Bruno Haible  <bruno@clisp.org>
43884
43885         * lib/propername.c (proper_name_utf8): Don't use the transliterated
43886         result if it contains question marks.
43887         Reported by Michael Geng <linux@michaelgeng.de>.
43888
43889 2008-06-19  Bruno Haible  <bruno@clisp.org>
43890
43891         Fix CVS-ism.
43892         * doc/gnulib.texi: Include updated-stamp.texi.
43893         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
43894         (updated-stamp.texi): New rule.
43895         (gnulib.info): Depend on it.
43896         * doc/.gitignore: Add updated-stamp.texi.
43897         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
43898
43899 2008-06-19  Bruno Haible  <bruno@clisp.org>
43900
43901         * doc/Makefile (gnulib.info): Update and simplify dependencies.
43902         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43903
43904 2008-06-19  Eric Blake  <ebb9@byu.net>
43905
43906         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
43907         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
43908         Reported by Stepan Kasal.
43909
43910 2008-06-18  Bruno Haible  <bruno@clisp.org>
43911
43912         * lib/fatal-signal.c (init_fatal_signals): Add comment.
43913         Reported by Eric Blake.
43914
43915 2008-06-18  Eric Blake  <ebb9@byu.net>
43916
43917         Work around cygwin 1.5.25 strsignal bug.
43918         * tests/test-strsignal.c: Allow for const char *.
43919         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
43920
43921 2008-06-18  Simon Josefsson  <simon@josefsson.org>
43922
43923         * users.txt: Update URL to article and add author/date
43924         information.
43925
43926 2008-06-17  Bruno Haible  <bruno@clisp.org>
43927
43928         New macro gl_DISABLE_THREADS.
43929         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
43930         if the user did not pass --enable-threads or --disable-threads option.
43931         (gl_DISABLE_THREADS): New macro.
43932         Reported by Eric Blake <ebb9@byu.net>.
43933
43934 2008-06-17  Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
43937         when the macro ignores it.
43938         Based on a patch by Eric Blake <ebb9@byu.net>.
43939
43940 2008-06-17  Bruno Haible  <bruno@clisp.org>
43941
43942         * modules/tls (License): Change to LGPLv2+.
43943         Reported by Eric Blake.
43944
43945 2008-06-17  Eric Blake  <ebb9@byu.net>
43946
43947         Simplify c-stack prerequisites.
43948         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
43949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
43950         no longer requires <ucontext.h> to exist.  Optimize setrlimit
43951         check.
43952         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
43953         <sys/resource.h>.
43954
43955         Move c-stack test into testsuite.
43956         * modules/c-stack-tests: New file.
43957         * lib/c-stack.c [DEBUG]: Move test program...
43958         * tests/test-c-stack.c: ...into this new file.  Skip rather than
43959         fail test if sigaltstack is lacking.
43960         * tests/test-c-stack.sh: New driver file.
43961
43962 2008-06-16  Eric Blake  <ebb9@byu.net>
43963
43964         Use raise module consistently.
43965         * modules/fatal-signal (Depends-on): Add raise.
43966         * modules/sigprocmask (Depends-on): Likewise.
43967         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
43968         * lib/sigprocmask.c (sigprocmask): Likewise.
43969         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
43970         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
43971
43972         Fix compliance bug in sigpending.
43973         * lib/sigprocmask.c (sigpending): Return pending array via
43974         parameter, not return value.
43975
43976 2008-06-14  Eric Blake  <ebb9@byu.net>
43977
43978         Improve obstack-printf test code.
43979         * tests/test-obstack-printf.c (test_function): Fix comment, and
43980         simplify usage of obstack_* in macros.  Add a test for coverage.
43981         Reported by Bruno Haible.
43982
43983 2008-06-14  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
43986         array size as a constant, not as a const variable.
43987         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
43988         AC_USE_SYSTEM_EXTENSIONS.
43989         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43990         Test whether the obstack_printf function actually exists.
43991         * modules/obstack-printf (Depends-on): Add extensions.
43992         (Include): Remove obstack.h.
43993         * modules/obstack-printf-posix (Depends-on): Add extensions.
43994         (Include): Remove obstack.h.
43995
43996 2008-06-13  Eric Blake  <ebb9@byu.net>
43997
43998         Add obstack-printf and obstack-printf-posix modules.
43999         * modules/obstack-printf: New file.
44000         * modules/obstack-printf-posix: Likewise.
44001         * MODULES.html.sh (Misc): Mention them.
44002         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44003         Likewise.
44004         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44005         Likewise.
44006         * modules/stdio (Makefile.am): Accomodate new modules.
44007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44008         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44009         Declare.
44010         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44011         functions.
44012         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44013         (gl_REPLACE_OBSTACK_PRINTF): New macros
44014         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44015         * tests/test-obstack-printf.c: New file.
44016         * modules/obstack-printf-tests: Likewise.
44017         * modules/obstack-printf-posix-tests: Likewise.
44018
44019 2008-06-11  Bruno Haible  <bruno@clisp.org>
44020
44021         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44022         * lib/open.c: Include errno.h.
44023         (open): Fail when attempting to write to a file that has a trailing
44024         slash.
44025         * tests/test-open.c (main): Test against trailing slash bug.
44026         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44027
44028 2008-06-10  Bruno Haible  <bruno@clisp.org>
44029
44030         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44031         for $? to work inside the trap command, with various /bin/sh-s.
44032         * tests/test-vc-list-files-cvs.sh: Likewise.
44033
44034 2008-06-10  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/acl-internal.h: Don't include gettext.h here.
44037         * lib/set-mode-acl.c: Include gettext.h here.
44038         * lib/copy-acl.c: Likewise.
44039
44040 2008-06-10  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44043         * lib/wait-process.c (wait_subprocess): Likewise.
44044         * lib/execute.h (execute): Add termsigp argument.
44045         * lib/execute.c (execute): Likewise.
44046         * lib/csharpcomp.c (compile_csharp_using_pnet,
44047         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44048         * lib/csharpexec.c (execute_csharp_using_pnet,
44049         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44050         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44051         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44052         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44053         is_jikes_present): Update.
44054         * lib/javaexec.c (execute_java_class): Update.
44055         * lib/javaversion.c (execute_and_read_line): Update.
44056         * NEWS: Document the changes.
44057         Reported by Eric Blake.
44058
44059 2008-06-10  Eric Blake  <ebb9@byu.net>
44060
44061         Add missing include.
44062         * tests/test-strstr.c (includes): Add <signal.h>.
44063         * tests/test-strcasestr.c (includes): Likewise.
44064         * tests/test-memmem.c (includes): Likewise.
44065
44066 2008-06-10  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/wait-process.c (wait_subprocess): Add an assertion.
44069
44070 2008-06-10  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44073
44074 2008-06-10  Bruno Haible  <bruno@clisp.org>
44075
44076         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44077         using alarm().
44078         * tests/test-strcasestr.c (main): Likewise.
44079         * tests/test-strstr.c (main): Likewise.
44080
44081 2008-06-09  Bruno Haible  <bruno@clisp.org>
44082
44083         Work around the Solaris 10 ACE ACLs ABI change.
44084         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44085         declare if ACL_NO_TRIVIAL is present.
44086         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44087         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44088         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44089         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44090         define if ACL_NO_TRIVIAL is present.
44091         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44092         and use the current ABI.
44093         (file_has_acl): Use same #if condition as elsewhere.
44094         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44095         in use, and use the current ABI.
44096         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44097         Reported by Jim Meyering.
44098
44099 2008-06-09  Eric Blake  <ebb9@byu.net>
44100
44101         Work around environments that (stupidly) ignore SIGALRM.
44102         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44103         before using alarm().
44104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44106         Reported by Ian Beckwith <ianb@erislabs.net>.
44107
44108         Produce autobuild blurb earlier in log.
44109         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44110
44111 2008-06-09  Jim Meyering  <meyering@redhat.com>
44112         and OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
44113
44114         utimens.c: correct kernel bug work-around
44115         OndÅ™ej VaÅ¡Ă­k found that the invalid return value of 280 indicates
44116         failure, not success, and the kernel bug we're trying to work
44117         around affects not just the utimensat call, but also the fallback
44118         futimens call.
44119         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44120         not success.
44121         [HAVE_FUTIMENS]: Use the same work-around, here.
44122
44123 2008-06-09  Jim Meyering  <meyering@redhat.com>
44124
44125         add more guards around definition of ACE_-related code
44126         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44127         ALLOW and ACE_OWNER are also defined.
44128
44129 2008-06-08  Bruno Haible  <bruno@clisp.org>
44130
44131         * lib/acl-internal.h: Add me as co-author.
44132         * lib/file-has-acl.c: Likewise.
44133         * lib/set-mode-acl.c: Likewise.
44134         * lib/copy-acl.c: Likewise.
44135
44136 2008-06-08  Bruno Haible  <bruno@clisp.org>
44137
44138         Add support for AIX ACLs.
44139         * lib/acl-internal.h (acl_nontrivial): New declaration.
44140         * lib/file-has-acl.c (acl_nontrivial): New function.
44141         (file_has_acl): Add implementation using AIX 4 ACL API.
44142         * lib/set-mode-acl.c (qset_acl): Likewise.
44143         * lib/copy-acl.c (qcopy_acl): Likewise.
44144
44145 2008-06-08  Bruno Haible  <bruno@clisp.org>
44146
44147         Add support for HP-UX ACLs.
44148         * lib/acl-internal.h (acl_nontrivial): New declaration.
44149         * lib/file-has-acl.c (acl_nontrivial): New function.
44150         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44151         * lib/set-mode-acl.c (qset_acl): Likewise.
44152         * lib/copy-acl.c (qcopy_acl): Likewise.
44153
44154 2008-06-08  Bruno Haible  <bruno@clisp.org>
44155
44156         Add support for Cygwin ACLs.
44157         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44158         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44159         the chmod_or_fchmod call.
44160         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44161
44162 2008-06-08  Bruno Haible  <bruno@clisp.org>
44163
44164         Fix bug with setuid modes in Solaris 10+ code.
44165         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44166         succeeded, when the mode contains some special bits.
44167
44168 2008-06-08  Bruno Haible  <bruno@clisp.org>
44169
44170         Add support for Solaris 7..10 ACLs.
44171         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44172         declarations.
44173         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44174         functions.
44175         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44176         * lib/set-mode-acl.c (qset_acl): Likewise.
44177         * lib/copy-acl.c (qcopy_acl): Likewise.
44178
44179 2008-06-08  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44182         declaration.
44183         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44184         (acl_access_nontrivial): Remove MacOS X case.
44185         (file_has_acl): Use acl_extended_nontrivial.
44186         * lib/copy-acl.c (qcopy_acl): Likewise.
44187
44188 2008-06-08  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44191
44192 2008-06-08  Jim Meyering  <meyering@redhat.com>
44193
44194         * modules/acl (Maintainer): Add Bruno Haible.
44195
44196 2008-06-07  Bruno Haible  <bruno@clisp.org>
44197
44198         Improve support for Tru64 ACLs.
44199         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44200         ACL on OSF/1.
44201
44202 2008-06-07  Bruno Haible  <bruno@clisp.org>
44203
44204         Add support for MacOS X ACLs.
44205         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44206         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44207         * lib/set-mode-acl.c (qset_acl): Likewise.
44208         * lib/copy-acl.c (qcopy_acl): Likewise.
44209
44210 2008-06-07  Bruno Haible  <bruno@clisp.org>
44211
44212         Fix memory leak introduced on 2008-05-22.
44213         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44214         use.
44215
44216 2008-06-07  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44219         to construct an empty ACL.
44220
44221 2008-06-07  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44224         precisely.
44225         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44226
44227 2008-06-07  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44230         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44231
44232 2008-06-07  Bruno Haible  <bruno@clisp.org>
44233
44234         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44235         regardless of POSIX.
44236         * doc/posix-functions/_longjmp.texi: Likewise.
44237         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44238         SystemV platform in this case.
44239
44240 2008-06-06  Eric Blake  <ebb9@byu.net>
44241
44242         Document abort() bugs.
44243         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44244
44245         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44246         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44247         sigsetjmp.
44248         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44249         siglongjmp, but only as a macro.
44250         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44251         is obsolete.
44252         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44253
44254         Tweak documentation to cover cygwin argz bugs.
44255         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44256         argz bug fix; no code change needed since no cygwin releases
44257         occurred between the last fix and the bug being tested.
44258         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44259         module and recently fixed cygwin bugs.
44260         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44261         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44262         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44263         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44264         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44265         Likewise.
44266         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44267         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44268         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44269         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44270         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44271         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44272         Likewise.
44273
44274         Avoid gcc warning on cygwin.
44275         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44276         !ACL_NO_TRIVIAL]: Avoid unused variable.
44277
44278 2008-06-05  Eric Blake  <ebb9@byu.net>
44279
44280         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44281         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44282         git-version-gen fails to come up with a version.
44283         Reported by Simon Josefsson.
44284
44285 2008-06-05  Jim Meyering  <meyering@redhat.com>
44286             Paul Eggert  <eggert@cs.ucla.edu>
44287
44288         utimens.c: work around a probable Linux kernel bug
44289         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44290         appears to be a kernel bug that causes utimensat to return 280
44291         instead of 0, indicating success.
44292
44293 2008-06-04  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44296         2008-06-01 commit.
44297
44298 2008-06-04  Bruno Haible  <bruno@clisp.org>
44299
44300         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44301         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44302         (file_has_acl): Use it. Save errno afterwards.
44303         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44304
44305 2008-06-03  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44308         draft code. Simplify #ifs.
44309         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44310         Put Solaris code after POSIX-draft code. Fix comments regarding
44311         Solaris 10, HP-UX. Mention Cygwin.
44312         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44313
44314 2008-06-03  Eric Blake  <ebb9@byu.net>
44315
44316         Provide fallback for older kernels.
44317         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44318         Provide runtime fallback if kernel lacks support.
44319         Reported by Mike Frysinger.
44320
44321 2008-06-02  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44324         it exists.
44325
44326 2008-06-02  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44329         * lib/copy-acl.c (qcopy_acl): Update comment.
44330
44331 2008-06-02  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44334         like ACL APIs.
44335
44336 2008-06-02  Bruno Haible  <bruno@clisp.org>
44337
44338         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44339         * tests/test-set-mode-acl.sh: Likewise.
44340         * tests/test-copy-acl.sh: Likewise.
44341         * tests/test-copy-file.sh: Likewise.
44342
44343 2008-06-02  Bruno Haible  <bruno@clisp.org>
44344
44345         * tests/test-file-has-acl.sh: Remove unused code.
44346
44347 2008-06-01  Bruno Haible  <bruno@clisp.org>
44348
44349         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44350         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44351         messages.
44352         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44353
44354 2008-06-01  Bruno Haible  <bruno@clisp.org>
44355
44356         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44357         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44358         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44359         APIs.
44360         * modules/acl-tests (configure.ac): Remove tests now contained in
44361         m4/acl.m4.
44362
44363 2008-06-02  Jim Meyering  <meyering@redhat.com>
44364
44365         announce-gen: use a better key-server host name
44366         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44367         it may be more consistently reliable.  Suggested by Werner Koch
44368         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44369
44370 2008-06-01  Bruno Haible  <bruno@clisp.org>
44371
44372         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44373         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44374
44375 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44376
44377         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44378
44379 2008-06-01  Bruno Haible  <bruno@clisp.org>
44380
44381         New ACL tests.
44382         * tests/test-file-has-acl.sh: New file.
44383         * tests/test-file-has-acl.c: New file.
44384         * tests/test-set-mode-acl.sh: New file.
44385         * tests/test-set-mode-acl.c: New file.
44386         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44387         * tests/test-copy-acl.c: New file.
44388         * modules/acl-tests: New file, based on modules/copy-file-tests.
44389         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44390         (Depends-on): Add acl-tests.
44391         (configure.ac): Remove checks.
44392         (Makefile.am): Don't create test-sameacls program here any more.
44393
44394 2008-06-01  Bruno Haible  <bruno@clisp.org>
44395
44396         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44397         * tests/test-sameacls.c: Include progname.h.
44398         (main): Invoke set_program_name. Portability fixes for MacOS X,
44399         Solaris, HP-UX.
44400
44401 2008-06-01  Bruno Haible  <bruno@clisp.org>
44402
44403         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44404         function.
44405         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44406
44407 2008-06-01  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/rpmatch (Depends-on): Add strdup.
44410
44411 2008-06-01  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/pipe.c: Include unistd-safer.h.
44414         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44415         * modules/pipe (Depends-on): Add unistd-safer.
44416
44417 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44418
44419         * modules/autobuild (configure.ac): Call AB_INIT.
44420
44421 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44422
44423         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44424         Suggested by Bruno Haible <bruno@clisp.org>.
44425
44426 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44427
44428         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44429         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44430         <bruno@clisp.org>.
44431
44432 2008-05-29  Eric Blake  <ebb9@byu.net>
44433
44434         Prefer new POSIX 200x interfaces over futimesat.
44435         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44436         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44437         when available.
44438         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44439
44440 2008-05-28  Bruno Haible  <bruno@clisp.org>
44441
44442         * modules/stpcpy (License): Change to LGPLv2+.
44443         Requested by David Lutterkort <dlutter@redhat.com>.
44444
44445 2008-05-27  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44448         current mingw.
44449         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44450
44451 2008-05-27  Bruno Haible  <bruno@clisp.org>
44452
44453         * modules/iconv_open (Link): New section, from module 'iconv'.
44454         * modules/striconv (Link): Likewise.
44455         * modules/striconveh (Link): Likewise.
44456         * modules/xstriconv (Link): Likewise.
44457         * modules/unicodeio (Link): Likewise.
44458         * modules/propername (Link): Likewise.
44459         Reported by Jim Meyering.
44460
44461 2008-05-26  Jim Meyering  <meyering@redhat.com>
44462
44463         sha256: do not artificially restrict buffer length to be < 2^32
44464         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44465         uint32_t to size_t.
44466         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44467         to match.
44468
44469         avoid unaligned access errors, e.g., on sparc
44470         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
44471         direct access through a possibly-unaligned uint64* pointer.
44472         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
44473         direct access through a possibly-unaligned uint32* pointer.
44474         Prompted by this patch from Tom "spot" Callaway:
44475         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
44476
44477         sha512.c: fix typo in comment
44478         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
44479
44480 2008-05-25  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/set-mode-acl.c: Renamed from lib/acl.c.
44483         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
44484         (Makefile.am): Update lib_SOURCES.
44485
44486 2008-05-25  Bruno Haible  <bruno@clisp.org>
44487
44488         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
44489
44490 2008-05-25  Jim Meyering  <meyering@redhat.com>
44491
44492         useless-if-before-free: freed expr may have white-space differences
44493         * build-aux/useless-if-before-free: Recognize cases in which the
44494         freed expression differs from the tested one in embedded white
44495         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
44496         $1 was used, so we can't make any regexp shy.  Improved tests now
44497         detect this.
44498
44499         useless-if-before-free: accept white space in the expression.
44500         * build-aux/useless-if-before-free: For now, any white space
44501         in the expression must be identical in the free argument.
44502
44503         useless-if-before-free: efficiency tweak
44504         * build-aux/useless-if-before-free: Make the expression-matching
44505         regexp "shy".
44506         Make the *outer* regexp shy, not the expr-matching one.
44507
44508         update code-in-comment to accept cast of free arg
44509         * build-aux/useless-if-before-free: Update regexp.
44510
44511 2008-05-25  Bruno Haible  <bruno@clisp.org>
44512
44513         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
44514         * modules/copy-file-tests (Files, Makefile.am): Update.
44515         * tests/test-copy-file.c (func_test_copy): Update.
44516
44517 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
44518
44519         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
44520
44521 2008-05-23  Bruno Haible  <bruno@clisp.org>
44522
44523         Improve support for ACLs on OSF/1.
44524         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
44525         Remove fallback for unknown flavors of ACLs.
44526
44527 2008-05-22  Bruno Haible  <bruno@clisp.org>
44528
44529         Add support for ACLs on OSF/1.
44530         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
44531         replacements.
44532         (acl_free_text): New macro fallback.
44533         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
44534         acl_free.
44535         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
44536         acl_free_text function. Require AC_C_INLINE.
44537
44538 2008-05-22  Bruno Haible  <bruno@clisp.org>
44539
44540         Make copy_acl work on MacOS X 10.5.
44541         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
44542         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
44543         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
44544         If MODE_INSIDE_ACL, don't assume that every system has the same text
44545         representation for ACLs as FreeBSD.
44546         * lib/copy-acl.c (copy_acl): Add support for platforms with
44547         !MODE_INSIDE_ACL.
44548         * lib/file-has-acl.c (file_has_acl): Likewise.
44549         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
44550         FreeBSD, MacOS X, or IRIX, respectively.
44551
44552 2008-05-22  Bruno Haible  <bruno@clisp.org>
44553
44554         * lib/acl.h: Don't include <sys/acl.h>.
44555         (GETACLCNT): Move fallback to lib/acl-internal.h.
44556         * lib/acl-internal.h: Include <sys/acl.h> here.
44557         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
44558
44559 2008-05-22  Bruno Haible  <bruno@clisp.org>
44560
44561         Split off copy_acl function to separate file.
44562         * lib/copy-acl.c: New file, extracted from lib/acl.c.
44563         * lib/acl.c (copy_acl): Moved function to separate file.
44564         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
44565         * modules/acl (Files): Add lib/copy-acl.c.
44566         (Makefiles.am): Augment lib_SOURCES.
44567
44568 2008-05-22  Bruno Haible  <bruno@clisp.org>
44569
44570         * modules/copy-file-tests: New file.
44571         * tests/test-copy-file.sh: New file.
44572         * tests/test-copy-file.c: New file.
44573         * tests/test-copy-file-sameacls.c: New file.
44574
44575 2008-05-22  Eric Blake  <ebb9@byu.net>
44576
44577         Avoid gcc warning.
44578         * tests/test-memcmp.c (main): Pass NULL indirectly.
44579
44580 2008-05-21  Bruno Haible  <bruno@clisp.org>
44581
44582         Add reference doc about ACLs.
44583         * doc/acl-resources.txt: New file.
44584         * doc/acl-cygwin.txt: New file.
44585
44586 2008-05-21  Bruno Haible  <bruno@clisp.org>
44587
44588         Avoid one more warning from gcc.
44589         * lib/vasnprintf.c (IF_LINT): Update comments.
44590         (VASNPRINTF): Use it also for the 'prefix' array initializer.
44591
44592 2008-05-21  Jim Meyering  <meyering@redhat.com>
44593
44594         avoid a warning from gcc
44595         * lib/vasnprintf.c (IF_LINT): Define.
44596         (scale10_round_decimal_long_double):
44597         Use it to avoid a "may be used uninitialized" warning.
44598         (scale10_round_decimal_double): Likewise.
44599
44600 2008-05-21  Simon Josefsson  <simon@josefsson.org>
44601
44602         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
44603         declared.
44604
44605 2008-05-20  Bruno Haible  <bruno@clisp.org>
44606
44607         * tests/test-memcmp.c (main): Test also the sign of the result. Test
44608         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
44609
44610 2008-05-20  Simon Josefsson  <simon@josefsson.org>
44611
44612         * modules/memcmp-tests: New file.
44613         * tests/test-memcmp.c: New file.
44614
44615 2008-05-19  Bruno Haible  <bruno@clisp.org>
44616
44617         * modules/propername (Notice, configure.ac): Put quoted "..." into
44618         --keyword option.
44619         * lib/propername.h: Update comments accordingly.
44620         Reported by Eric Blake.
44621
44622 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
44623
44624         * modules/getpass-gnu (Depends-on): Add fseeko.
44625
44626 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44627
44628         * modules/base64-tests: New file.
44629
44630 2008-05-19  Bo Borgerson <gigabo@gmail.com>
44631
44632         * lib/base64.c (base64_decode_ctx): If a decode context structure
44633         was passed in use it to ignore newlines.  If a context structure
44634         was _not_ passed in, continue to treat newlines as garbage (this
44635         is the historical behavior).  Formerly base64_decode.
44636         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44637         takes a decode context structure.
44638         * lib/base64.h (base64_decode): Macro for four-argument calls.
44639         (base64_decode_alloc): Likewise.
44640         * lib/base64.c (base64_decode_ctx): If a decode context structure
44641         was passed in use it to ignore newlines.  If a context structure
44642         was _not_ passed in, continue to treat newlines as garbage (this
44643         is the historical behavior).  Formerly base64_decode.
44644         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
44645         takes a decode context structure.
44646         * lib/base64.h (base64_decode): Macro for four-argument calls.
44647         (base64_decode_alloc): Likewise.
44648
44649 2008-05-19  Jim Meyering  <meyering@redhat.com>
44650
44651         avoid a warning from gcc
44652         * lib/trim.c (IF_LINT): Define.
44653         (trim2): Use it to avoid a "may be used uninitialized" warning.
44654
44655         Fix doc typo.
44656         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
44657
44658 2008-05-19  Bruno Haible  <bruno@clisp.org>
44659
44660         * doc/glibc-functions/getpass.texi: Document limits of other
44661         implementations.
44662
44663 2008-05-19  Simon Josefsson  <simon@josefsson.org>
44664             Bruno Haible <bruno@clisp.org>
44665
44666         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
44667
44668 2008-05-18  Bruno Haible  <bruno@clisp.org>
44669
44670         * modules/propername: New file, from GNU gettext.
44671         * lib/propername.h: New file, from GNU gettext.
44672         * lib/propername.c: New file, from GNU gettext.
44673         * MODULES.html.sh (Internationalization functions): Add propername.
44674
44675 2008-05-16  Jim Meyering  <meyering@redhat.com>
44676             Bruno Haible  <bruno@clisp.org>
44677
44678         Avoid some warnings from "gcc -Wshadow".
44679         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
44680
44681 2008-05-15  Eric Blake  <ebb9@byu.net>
44682
44683         Extend previous patch to cygwin 1.7.0.
44684         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
44685         fast implementation in cygwin >= 1.7.0.
44686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44688
44689 2008-05-15  Bruno Haible  <bruno@clisp.org>
44690
44691         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
44692         implementation in glibc >= 2.9.
44693         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44695
44696 2008-05-15  Bruno Haible  <bruno@clisp.org>
44697
44698         * MODULES.html.sh (Internationalization functions): Remove linebreak.
44699         (Unicode string functions): Add unilbrk/*.
44700         Reported by Karl Berry.
44701
44702 2008-05-15  Eric Blake  <ebb9@byu.net>
44703
44704         Fix violation of <stdbool.h> replacement in regex.
44705         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
44706         * lib/regexec.c (re_search_internal): Likewise.
44707         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
44708
44709 2008-05-15  Jim Meyering  <meyering@redhat.com>
44710
44711         avoid distracting test output when git or cvs is not found
44712         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
44713         * tests/test-vc-list-files-git.sh: Likewise.
44714
44715 2008-05-15  Eric Blake  <ebb9@byu.net>
44716
44717         Glibc finally accepted the memmem speedup code, bugzilla #5514.
44718         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
44719         glibc version.
44720         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44721         * doc/posix-functions/strstr.texi (strstr): Likewise.
44722         * lib/str-two-way.h (MAX): Sychronize with glibc.
44723
44724 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
44725
44726         * lib/regcomp.c (optimize_utf8): Add a note on why we test
44727         opr.ctx_type.
44728         (calc_first): Initialize constraint field.
44729         (duplicate_node_closure): Use it instead of special casing ANCHORS.
44730         Fix grammar.
44731         (duplicate_node): Merge constraint field for all node types.
44732         (calc_eclosure_iter): Look at constraint field for all node types.
44733         * lib/regex_internal.c (create_cd_newstate): Don't look at
44734         opr.ctx_type.
44735
44736 2008-05-14  Bruno Haible  <bruno@clisp.org>
44737
44738         Help GCC to do better code generation.
44739         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
44740         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
44741         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
44742         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
44743         Declare with attribute 'malloc' if supported.
44744
44745 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
44746
44747         use "echo STR|wc -c" rather than unportable "expr length STR"
44748         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
44749         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
44750
44751 2008-05-14  Jim Meyering  <meyering@redhat.com>
44752
44753         use dd ibs=$n count=1 ... rather than less-portable head -c$n
44754         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
44755         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
44756         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
44757         via Collin Lasse.
44758
44759 2008-05-14  Eric Blake  <ebb9@byu.net>
44760
44761         Avoid quadratic growth in gl_LIBSOURCES.
44762         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
44763         Suggested by Bruno Haible.
44764
44765         Test xmemdup0.
44766         * modules/xmemdup0-tests: New file.
44767         * tests/test-xmemdup0.c: Likewise.
44768
44769 2008-05-13  Eric Blake  <ebb9@byu.net>
44770
44771         Split xmemdup0 into its own module.
44772         * modules/xmemdup0: New file.
44773         * lib/xmemdup0.h: Likewise.
44774         * lib/xmemdup0.c: Likewise.
44775         * MODULES.html.sh (Memory management functions): Add xmemdup0.
44776         * lib/xalloc.h (xmemdup0): Remove.
44777         * lib/xmalloc.c (xmemdup0): Likewise.
44778
44779 2008-05-13  Eric Blake  <ebb9@byu.net>
44780             Bruno Haible  <bruno@clisp.org>
44781
44782         Reduce number of forks required during autoconf.
44783         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
44784         and gl_LIBSOURCES_DIR.
44785         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
44786         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
44787         m4_syscmd per file.
44788         <m4_foreach_w>: Move...
44789         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
44790
44791 2008-05-13  Eric Blake  <ebb9@byu.net>
44792
44793         * gnulib-tool: Fix various comment typos.
44794
44795 2008-05-12  Bruno Haible  <bruno@clisp.org>
44796
44797         Tailor the linebreaking algorithm.
44798         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
44799
44800 2008-05-12  Bruno Haible  <bruno@clisp.org>
44801
44802         Update to Unicode 5.0.0.
44803         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44804         LBP_JV, LBP_JT. Redistribute values.
44805         (unilbrk_table): Change size.
44806         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
44807         Unicode TR#14 rev. 22.
44808         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
44809         LBP_JV, LBP_JT. Redistribute values.
44810         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
44811         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
44812         Update.
44813         * lib/unilbrk/lbrkprop1.h: Regenerated.
44814         * lib/unilbrk/lbrkprop2.h: Regenerated.
44815         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
44816         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
44817         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
44818         Likewise.
44819         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
44820         Likewise.
44821         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
44822         result.
44823         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44824         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44825         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44826         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
44827         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
44828         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
44829
44830 2008-05-11  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
44833
44834 2008-05-11  Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
44837         * modules/unilbrk/gen-lbrk: New file.
44838
44839 2008-05-11  Bruno Haible  <bruno@clisp.org>
44840
44841         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
44842         * m4/sha512.m4 (gl_SHA512): Likewise.
44843
44844 2008-05-11  Jim Meyering  <meyering@redhat.com>
44845
44846         New modules: crypto/sha256, crypto/sha512 (from coreutils)
44847         * modules/crypto/sha256: New file.
44848         * modules/crypto/sha512: Likewise.
44849         * lib/sha256.c: Likewise.
44850         * lib/sha256.h: Likewise.
44851         * lib/sha512.c: Likewise.
44852         * lib/sha512.h: Likewise.
44853         * lib/u64.h: Likewise.
44854         * m4/sha256.m4: Likewise.
44855         * m4/sha512.m4: Likewise.
44856         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
44857
44858 2008-05-10  Bruno Haible  <bruno@clisp.org>
44859
44860         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
44861         (Input/Output <stdio.h>): Add xprintf.
44862         (Signal handling <signal.h>): Add strsignal.
44863         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
44864         (Core language properties): Add func.
44865         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
44866         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
44867         strings.
44868         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
44869         (Input/output): New section.
44870         (File system functions): Add openat-die, stat-macros.
44871         (Networking functions): Add sockets.
44872         (Unicode string functions): Add unictype/*.
44873         (Support for building libraries and executables): Add gperf.
44874         (Support for building documentation): Add agpl-3.0.
44875         (Misc): Add nocrash.
44876
44877 2008-05-10  Bruno Haible  <bruno@clisp.org>
44878
44879         * modules/unictype/gen-ctype: New file.
44880
44881 2008-05-10  Jim Meyering  <meyering@redhat.com>
44882
44883         Make chdir-safer.c more efficient on a system with no symlinks.
44884         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
44885         also if ELOOP is zero.  Suggested by Bruno Haible.
44886
44887         Make chdir-safer.c slightly safer.
44888         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
44889         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
44890
44891         Avoid compile failure on systems without ELOOP (like mingw).
44892         * lib/chdir-safer.c (ELOOP): Define if not already defined.
44893         Reported by Bruno Haible.
44894
44895 2008-05-10  Bruno Haible  <bruno@clisp.org>
44896
44897         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
44898         (is_utf8_encoding): Use a case-insensitive comparison.
44899         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
44900         streq.
44901
44902 2008-05-10  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
44905         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
44906         * lib/unilbrk/ulc-common.h (iconv_string_length,
44907         iconv_string_keeping_offsets): Remove declarations.
44908         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
44909         Don't include <iconv.h>, streq.h, xsize.h.
44910         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
44911         conversion.
44912         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
44913         <iconv.h>, streq.h, xsize.h.
44914         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
44915         conversion.
44916         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
44917         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
44918         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
44919         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
44920
44921 2008-05-10  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
44924         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
44925
44926         * modules/unilbrk/u32-width-linebreaks-tests: New file.
44927         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
44928
44929         * modules/unilbrk/u16-width-linebreaks-tests: New file.
44930         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
44931
44932         * modules/unilbrk/u8-width-linebreaks-tests: New file.
44933         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
44934
44935         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
44936         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
44937
44938         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
44939         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
44940
44941         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
44942         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
44943
44944         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
44945         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
44946
44947 2008-05-10  Bruno Haible  <bruno@clisp.org>
44948
44949         Split up 'linebreak' module.
44950         * lib/unilbrk.h: New file, based on lib/linebreak.h.
44951         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
44952         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
44953         modifications.
44954         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
44955         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
44956         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
44957         lib/linebreak.c.
44958         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
44959         lib/linebreak.c.
44960         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
44961         lib/linebreak.c.
44962         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
44963         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
44964         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
44965         lib/linebreak.c.
44966         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
44967         lib/linebreak.c.
44968         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
44969         lib/linebreak.c.
44970         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
44971         lib/linebreak.c.
44972         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
44973         lib/linebreak.c.
44974         * modules/unilbrk/base: New file.
44975         * modules/unilbrk/tables: New file.
44976         * modules/unilbrk/u8-possible-linebreaks: New file.
44977         * modules/unilbrk/u16-possible-linebreaks: New file.
44978         * modules/unilbrk/u32-possible-linebreaks: New file.
44979         * modules/unilbrk/ulc-common: New file.
44980         * modules/unilbrk/ulc-possible-linebreaks: New file.
44981         * modules/unilbrk/u8-width-linebreaks: New file.
44982         * modules/unilbrk/u16-width-linebreaks: New file.
44983         * modules/unilbrk/u32-width-linebreaks: New file.
44984         * modules/unilbrk/ulc-width-linebreaks: New file.
44985         * lib/linebreak.h: Remove file.
44986         * lib/linebreak.c: Remove file.
44987         * m4/linebreak.m4: Remove file.
44988         * modules/linebreak: Remove file.
44989         * NEWS: Mention the changes.
44990
44991 2008-05-09  Eric Blake  <ebb9@byu.net>
44992
44993         Add xmemdup0.
44994         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
44995         implementation.
44996         * lib/xmalloc.c (xmemdup0): New C implementation.
44997
44998 2008-05-08  Bruno Haible  <bruno@clisp.org>
44999
45000         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45001
45002 2008-05-07  Eric Blake  <ebb9@byu.net>
45003
45004         Support cross-compilation of <wctype.h>.
45005         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45006         AC_CACHE_CHECK.
45007
45008 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45009
45010         * build-aux/vc-list-files: Add support for bzr.
45011
45012 2008-05-03  Jim Meyering  <meyering@redhat.com>
45013
45014         avoid failed assertion with tight malloc
45015         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45016
45017 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45018
45019         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45020         are needed from arpa/inet.h.
45021         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45022         Reported by Bruno Haible.
45023
45024 2008-05-02  Jim Meyering  <meyering@redhat.com>
45025
45026         avoid compilation error on FreeBSD 6
45027         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45028
45029 2008-05-01  Jim Meyering  <meyering@redhat.com>
45030
45031         useless-if-before-free: correct --help's exit status description
45032         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45033         for one or more matches, etc.  Reported by Bruno Haible.
45034
45035         vc-list-files: make the stand-alone gnulib test work
45036         * modules/vc-list-files-tests (configure.ac):
45037         Define and AC_SUBST abs_aux_dir.
45038         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45039         $(abs_top_srcdir) to each script and having each of them
45040         duplicate the work of setting PATH, set PATH here, using
45041         the new variable, abs_aux_dir instead.
45042         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45043         * tests/test-vc-list-files-git.sh: Likewise.
45044         Reported by Bruno Haible.
45045
45046 2008-05-01  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45049         reallocation. Rename 'done' to 'found_delimiter'.
45050
45051 2008-05-01  Jim Meyering  <meyering@redhat.com>
45052
45053         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45054         * build-aux/vc-list-files: Use `...`, not $(...).
45055
45056 2008-04-30  Jim Meyering  <meyering@redhat.com>
45057
45058         add tests for vc-list-files
45059         * modules/vc-list-files-tests: New module.
45060         * tests/test-vc-list-files-cvs.sh: New file.
45061         * tests/test-vc-list-files-git.sh: New file.
45062
45063         avoid a warning from gcc
45064         * lib/getndelim2.c (IF_LINT): Define.
45065         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45066
45067         vc-list-files: work properly with build-aux/cvsu, too
45068         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45069         to all cvs-based clauses.
45070
45071         vc-list-files: work properly in the CVS+awk case, too
45072         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45073
45074         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45075         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45076         take more than one file argument, so .  Add quotes, just in case $dir
45077         ever contains a shell meta-character.  Prompted by Soren Hansen in
45078         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45079
45080 2008-04-29  Eric Blake  <ebb9@byu.net>
45081
45082         Optimize getndelim2 to use block operations when possible.
45083         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45084         freadseek, and memchr2.
45085         * lib/getndelim2.c (getndelim2): Use them for block reads.
45086
45087 2008-04-29  Bruno Haible  <bruno@clisp.org>
45088
45089         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45090         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45091         * modules/inet_ntop (Depends-on): Add extensions.
45092         * modules/inet_pton (Depends-on): Likewise.
45093         Reported by Simon Josefsson.
45094
45095 2008-04-29  Jim Meyering  <meyering@redhat.com>
45096
45097         When the is more than one match in a block, match all of them.
45098         * build-aux/useless-if-before-free: Iterate through each block
45099         until there are no more matches.
45100
45101         Fix broken useless-if-before-free script.
45102         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45103         the expression to match cast of argument to free-like function.
45104
45105 2008-04-29  Eric Blake  <ebb9@byu.net>
45106
45107         Use new header.
45108         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45109
45110 2008-04-29  Jim Meyering  <meyering@redhat.com>
45111
45112         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45113         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45114         by gnulib to exist and to declare e.g., inet_ntop.
45115         Don't include "inet_ntop.h", now removed.
45116
45117         * m4/arpa_inet_h.m4: Remove trailing blanks.
45118
45119 2008-04-29  Eric Blake  <ebb9@byu.net>
45120
45121         Silence valgrind on safe reads beyond potential array bounds.
45122         * lib/rawmemchr.valgrind: New file.
45123         * lib/strchrnul.valgrind: Likewise.
45124         * modules/rawmemchr (Files): Distribute new file.
45125         * modules/strchrnul (Files): Likewise.
45126         Suggested by Bruno Haible.
45127
45128 2008-04-29  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45131         (inet_ntop, inet_pton): Change portability warning's wording.
45132         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45133         Invoke gl_CHECK_NEXT_HEADERS.
45134         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45135         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45136         set ARPA_INET_H.
45137         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45138         * modules/arpa_inet (Description): No longer only for systems that
45139         lack it.
45140         (Depends-on): Add include_next.
45141         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45142         HAVE_ARPA_INET_H.
45143
45144 2008-04-29  Jim Meyering  <meyering@redhat.com>
45145
45146         * modules/mkdir (License): Re-license as LGPLv2+.
45147
45148 2008-04-29  Bruno Haible  <bruno@clisp.org>
45149
45150         * modules/rawmemchr (Maintainer): Set to Eric.
45151         * modules/strchrnul (Maintainer): Likewise.
45152
45153 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45154
45155         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45156         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45157
45158         * modules/arpa_inet (arpa/inet.h): Use them.
45159
45160 2008-04-28  Eric Blake  <ebb9@byu.net>
45161
45162         Test getndelim2.
45163         * modules/getndelim2-tests: New file.
45164         * tests/test-getndelim2.c: Likewise.
45165         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45166         stream.
45167         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45168
45169         * MODULES.html.sh: Document new module.
45170
45171 2008-04-20  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/c-stack.c (die): Use raise.
45174         * modules/c-stack (Depends-on): Add raise.
45175
45176 2008-04-28  Bruno Haible  <bruno@clisp.org>
45177
45178         Expect rpmatch to be declared.
45179         * lib/yesno.c (rpmatch): Remove declaration.
45180
45181         Declare rpmatch.
45182         * lib/stdlib.in.h (rpmatch): New declaration.
45183         * lib/rpmatch.c: Include <stdlib.h> first.
45184         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45185         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45187         HAVE_RPMATCH.
45188         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45190         (Include): Set to <stdlib.h>.
45191         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45192         HAVE_RPMATCH.
45193         * NEWS: Document the change.
45194
45195 2008-04-28  Bruno Haible  <bruno@clisp.org>
45196
45197         Change rpmatch to use nl_langinfo when appropriate.
45198         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45199         (N_): New macro.
45200         (localized_pattern): New function/macro.
45201         (try): Remove match, nomatch arguments. Copy the pattern into safe
45202         memory before caching it.
45203         (rpmatch): Use localized_pattern. Add translator comments.
45204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45205         Suggested by Eric Blake.
45206         * modules/rpmatch (Depends-on): Add stdbool.
45207
45208 2008-04-28  Eric Blake  <ebb9@byu.net>
45209
45210         Add rawmemchr module, matching glibc.
45211         * modules/string (Makefile.am): New indicator.
45212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45213         * lib/string.in.h (rawmemchr): Declare when appropriate.
45214         * modules/rawmemchr: New file.
45215         * m4/rawmemchr.m4: Likewise.
45216         * lib/rawmemchr.c: Likewise.
45217         * modules/rawmemchr-tests: Likewise.
45218         * tests/test-rawmemchr.c: Likewise.
45219         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45220         module.
45221         * modules/strchrnul (Depends-on): Add rawmemchr.
45222         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45223
45224         Whitespace cleanup.
45225         * tests/test-strchrnul.c: Reindent.
45226         * lib/strchrnul.c: Likewise.
45227
45228         Optimize and test strchrnul.
45229         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45230         * modules/strchrnul-tests: New file.
45231         * tests/test-strchrnul.c: Likewise.
45232
45233         Remove intprops dependency.
45234         * modules/memchr (Depends-on): Remove intprops.
45235         * modules/memrchr (Depends-on): Likewise.
45236         * modules/memchr2 (Depends-on): Likewise.
45237         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45238         * lib/memrchr.c (__memrchr): Likewise.
45239         * lib/memrchr2.c (memchr2): Likewise.
45240         Reported by Simon Josefsson.
45241
45242 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45243
45244         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45245         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45246
45247 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45248
45249         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45250
45251         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45252
45253         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45254
45255         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45256         declarations.
45257         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45258
45259         * m4/inet_pton.m4: Don't check for header files.
45260
45261         * m4/inet_ntop.m4: Don't check for header files.
45262
45263 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45264
45265         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45266         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45267         trigger for cygwin).
45268         Reported by Bruno Haible  <bruno@clisp.org>.
45269
45270 2008-04-28  Bruno Haible  <bruno@clisp.org>
45271
45272         * doc/posix-functions/strdup.texi: Mention mingw problem.
45273
45274 2008-04-27  Bruno Haible  <bruno@clisp.org>
45275
45276         * modules/stat-time-tests (Depends-on): Add sleep.
45277         * tests/test-stat-time.c (force_unlink): New function.
45278         (cleanup): Use it.
45279         (test_mtime): Remove the ctime related tests.
45280         (test_ctime): New function, containing the ctime related tests.
45281         (main): Call test_ctime, except on native Windows platforms.
45282
45283 2008-04-27  Bruno Haible  <bruno@clisp.org>
45284
45285         * lib/rpmatch.c (rpmatch): Add some comments.
45286         Reported by James Youngman <jay@gnu.org>.
45287
45288 2008-04-27  Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45291         quiet NaNs.
45292
45293 2008-04-27  Bruno Haible  <bruno@clisp.org>
45294
45295         Make test-yesno.sh work on mingw.
45296         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45297         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45298         (main): Set stdin to binary mode.
45299         * modules/yesno-tests (Depends-on): Add binary-io.
45300
45301 2008-04-27  Bruno Haible  <bruno@clisp.org>
45302
45303         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45304         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45305         argument that lie outside the IEEE 854 domain.
45306         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45307         (gl_ISFINITE): Use it.
45308         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45309
45310 2008-04-27  Bruno Haible  <bruno@clisp.org>
45311
45312         Allow local renaming in config.h.
45313         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45314
45315 2008-04-27  Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/memchr.c (__memchr): Change type of 'i'.
45318         * lib/memchr2.c (memchr2): Likewise.
45319
45320 2008-04-26  Eric Blake  <ebb9@byu.net>
45321         and Bruno Haible  <bruno@clisp.org>
45322
45323         Optimize and test memrchr.
45324         * modules/memrchr (Depends-on): Add intprops.
45325         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45326         * modules/memrchr-tests: New file.
45327         * tests/test-memrchr.c: New file.
45328
45329 2008-04-26  Bruno Haible  <bruno@clisp.org>
45330
45331         Add tentative support for DragonFly BSD.
45332         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45333         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45334         fp.
45335         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45336         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45337         * lib/fpurge.c (fpurge): Likewise.
45338         * lib/freadable.c (freaadable): Likewise.
45339         * lib/freadahead.c (freadahead): Likewise.
45340         * lib/freading.c (freading): Likewise.
45341         * lib/freadptr.c (freadptr): Likewise.
45342         * lib/freadseek.c (freadptrinc): Likewise.
45343         * lib/fseeko.c (fseeko): Likewise.
45344         * lib/fseterr.c (fseterr): Likewise.
45345         * lib/fwritable.c (fwritable): Likewise.
45346         * lib/fwriting.c (fwriting): Likewise.
45347
45348 2008-04-26  Bruno Haible  <bruno@clisp.org>
45349
45350         * lib/stdio-impl.h: New file.
45351         * lib/fbufmode.c: Include stdio-impl.h.
45352         (fbufmode): Use fp_, remove redundant #defines.
45353         * lib/fflush.c: Include stdio-impl.h.
45354         (clear_ungetc_buffer): Remove redundant #defines.
45355         * lib/fpurge.c: Include stdio-impl.h.
45356         (fpurge): Remove redundant #defines.
45357         * lib/freadable.c: Include stdio-impl.h.
45358         (freadable): Remove redundant #defines.
45359         * lib/freadahead.c: Include stdio-impl.h.
45360         (freadahead): Remove redundant #defines.
45361         * lib/freading.c: Include stdio-impl.h.
45362         (freading): Remove redundant #defines.
45363         * lib/freadptr.c: Include stdio-impl.h.
45364         (freadptr): Remove redundant #defines.
45365         * lib/freadseek.c: Include stdio-impl.h.
45366         (freadptrinc): Remove redundant #defines.
45367         * lib/fseeko.c: Include stdio-impl.h.
45368         (rpl_fseeko): Remove redundant #defines.
45369         * lib/fseterr.c: Include stdio-impl.h.
45370         (fseterr): Remove redundant #defines.
45371         * lib/fwritable.c: Include stdio-impl.h.
45372         (fwritable: Remove redundant #defines.
45373         * lib/fwriting.c: Include stdio-impl.h.
45374         (fwriting): Remove redundant #defines.
45375         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45376         * modules/fflush (Files): Likewise.
45377         * modules/fpurge (Files): Likewise.
45378         * modules/freadable (Files): Likewise.
45379         * modules/freadahead (Files): Likewise.
45380         * modules/freading (Files): Likewise.
45381         * modules/freadptr (Files): Likewise.
45382         * modules/freadseek (Files): Likewise.
45383         * modules/fseeko (Files): Likewise.
45384         * modules/fseterr (Files): Likewise.
45385         * modules/fwritable (Files): Likewise.
45386         * modules/fwriting (Files): Likewise.
45387
45388 2008-04-26  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45391         restore_seek_optimization, update_fpos_cache): New functions, extracted
45392         from rpl_fflush.
45393         (rpl_fflush): Use them.
45394         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45395         (gl_REPLACE_FFLUSH): Use it.
45396
45397 2008-04-26  Bruno Haible  <bruno@clisp.org>
45398
45399         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45400         on Solaris.
45401         * tests/test-xstrtoimax.sh: Likewise.
45402         * tests/test-xstrtoumax.sh: Likewise.
45403         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45404
45405 2008-04-26  Bruno Haible  <bruno@clisp.org>
45406
45407         * modules/memchr-tests: New file.
45408         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45409
45410 2008-04-26  Eric Blake  <ebb9@byu.net>
45411             Bruno Haible  <bruno@clisp.org>
45412
45413         * lib/memchr.c: Include intprops.h.
45414         (__memchr): Optimize parallel detection of matching bytes. Rename local
45415         variables. Add explanatory comments.
45416
45417 2008-04-26  Bruno Haible  <bruno@clisp.org>
45418
45419         Fix module 'memchr', broken since 2000-10-28.
45420         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45421
45422 2008-04-26  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45425         comments.
45426
45427 2008-04-25  Eric Blake  <ebb9@byu.net>
45428
45429         Use native fstatat on cygwin 1.7.0.
45430         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45431         first.
45432
45433 2008-04-23  Eric Blake  <ebb9@byu.net>
45434
45435         Improve memchr2 performance.
45436         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45437         NUL bytes.
45438         * modules/memchr2 (Depends-on): Use intprops.h.
45439
45440 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45441
45442         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45443         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45444         <blp@cs.stanford.edu>.
45445
45446 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45447
45448         * lib/arpa_inet.in.h: New file.
45449
45450         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45451         (Makefile.am): Sed in substitute header file.
45452
45453         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45454         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45455
45456         * modules/inet_ntop (configure.ac): Use
45457         gl_ARPA_INET_MODULE_INDICATOR.
45458
45459         * modules/inet_pton (configure.ac): Use
45460         gl_ARPA_INET_MODULE_INDICATOR.
45461
45462 2008-04-22  Jim Meyering  <meyering@redhat.com>
45463
45464         * modules/verify (License): Re-license as LGPLv2+.
45465
45466 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45467
45468         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
45469         parameter to void* as per POSIX standard (MinGW uses char*).
45470
45471 2008-04-21  Bruno Haible  <bruno@clisp.org>
45472
45473         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45474         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45475         Define to replacements if REPLACE_ISWCNTRL is 1.
45476         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
45477         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
45478         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
45479         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
45480         what it fixes.
45481         * doc/posix-functions/iswalpha.texi: Likewise.
45482         * doc/posix-functions/iswblank.texi: Likewise.
45483         * doc/posix-functions/iswcntrl.texi: Likewise.
45484         * doc/posix-functions/iswdigit.texi: Likewise.
45485         * doc/posix-functions/iswgraph.texi: Likewise.
45486         * doc/posix-functions/iswlower.texi: Likewise.
45487         * doc/posix-functions/iswprint.texi: Likewise.
45488         * doc/posix-functions/iswpunct.texi: Likewise.
45489         * doc/posix-functions/iswspace.texi: Likewise.
45490         * doc/posix-functions/iswupper.texi: Likewise.
45491         * doc/posix-functions/iswxdigit.texi: Likewise.
45492         Reported by Alain Guibert.
45493
45494 2008-04-21  Bruno Haible  <bruno@clisp.org>
45495
45496         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
45497         Patch by Alain Guibert.
45498
45499 2008-04-21  Bruno Haible  <bruno@clisp.org>
45500
45501         Fix test failures on mingw.
45502         * tests/test-xstrtol.c (print_no_progname): New function.
45503         (main): Install it in error_print_progname hook.
45504         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
45505         * tests/test-xstrtoimax.sh: Likewise.
45506         * tests/test-xstrtoumax.sh: Likewise.
45507
45508 2008-04-21  Bruno Haible  <bruno@clisp.org>
45509
45510         Fix test failure on mingw.
45511         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
45512
45513 2008-04-21  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
45516         Actually assign a value.
45517
45518 2008-04-20  Bruno Haible  <bruno@clisp.org>
45519
45520         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
45521         take 2.
45522         * lib/canonicalize.c (canonicalize_file_name): Elide if the
45523         'canonicalize-lgpl' module is also used.
45524         * lib/canonicalize-lgpl.c: Undo last change.
45525         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
45526
45527 2008-04-20  Bruno Haible  <bruno@clisp.org>
45528
45529         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
45530         config.h. Provide _mkdir based fallback for mingw.
45531         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
45532         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
45533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
45534         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
45535         rather than defining mkdir in config.h.
45536         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
45537         (gl_SYS_STAT_H_DEFAULTS): New macro.
45538         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
45539         HAVE_IO_H any more.
45540         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
45541         HAVE_DECL_MKDIR and HAVE_IO_H.
45542
45543 2008-04-20  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/isapipe.c: Port to native Windows platforms.
45546
45547 2008-04-20  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
45550
45551 2008-04-21  Eric Blake  <ebb9@byu.net>
45552
45553         Work around preprocessors that don't handle UINTMAX_MAX.
45554         * lib/memchr2.c (memchr2): Avoid embedded #if.
45555         Reported by Alain Guibert, fix suggested by Bruno Haible.
45556
45557 2008-04-21  Simon Josefsson  <simon@josefsson.org>
45558
45559         * doc/posix-functions/strftime.texi (strftime): Explain better
45560         Windows incompatibility.  Suggested by Micah Cowan
45561         <micah@cowan.name>.
45562
45563 2008-04-20  Bruno Haible  <bruno@clisp.org>
45564
45565         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
45566         unistr/u8-mblen.
45567
45568 2008-04-20  Bruno Haible  <bruno@clisp.org>
45569
45570         Fix test failure on platforms with non-GNU iconv.
45571         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
45572         (U_TO_U8): Use it, rather than u16_to_u8.
45573         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
45574         units at the end of the input string.
45575         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
45576
45577 2008-04-20  Bruno Haible  <bruno@clisp.org>
45578
45579         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
45580         when the resulting length is 0.
45581         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
45582
45583 2008-04-20  Bruno Haible  <bruno@clisp.org>
45584
45585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
45586         works.
45587         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
45588
45589 2008-04-20  Bruno Haible  <bruno@clisp.org>
45590
45591         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
45592         * modules/tsearch-tests (configure.ac): Test for initstate function.
45593
45594 2008-04-20  Bruno Haible  <bruno@clisp.org>
45595
45596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
45597         for nlink_t if missing.
45598         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
45599
45600 2008-04-19  Bruno Haible  <bruno@clisp.org>
45601
45602         Work around snprintf bug on Linux libc5.
45603         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
45604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45605         gl_SNPRINTF_SIZE1.
45606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45607         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
45608         that test failed.
45609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45610         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
45611         * modules/snprintf (Files): Add m4/printf.m4.
45612         * modules/vsnprintf (Files): Likewise.
45613         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
45614         * doc/posix-functions/vsnprintf.texi: Likewise.
45615
45616 2008-04-19  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
45619         from 0.0058 to less than 10^-7.
45620
45621 2008-04-19  Bruno Haible  <bruno@clisp.org>
45622
45623         Fix rounding when a precision is given.
45624         * lib/vasnprintf.c (is_borderline): New function.
45625         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
45626         9...9x.
45627         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
45628         %e, %g.
45629         * tests/test-vasprintf-posix.c (test_function): Likewise.
45630         * tests/test-snprintf-posix.h (test_function): Likewise.
45631         * tests/test-sprintf-posix.h (test_function): Likewise.
45632         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
45633         * tests/test-printf-posix.h (test_function): Likewise.
45634         * tests/test-printf-posix.output: Update.
45635         Reported by John Darrington <john@darrington.wattle.id.au> via
45636         Ben Pfaff <blp@cs.stanford.edu>.
45637
45638 2008-04-18  Simon Josefsson  <simon@josefsson.org>
45639
45640         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
45641         Suggested by Bruno Haible <bruno@clisp.org>.
45642
45643 2008-04-17  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
45646         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
45647         implementation.
45648         Patch by Bruce Merry <bmerry@gmail.com>.
45649
45650 2008-04-17  Simon Josefsson  <simon@josefsson.org>
45651
45652         * doc/posix-functions/strftime.texi (strftime): Mention that %e
45653         doesn't work under Windows.
45654
45655 2008-04-16  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
45658         New macros.
45659         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45660         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
45661         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
45662         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
45663         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
45664         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
45665         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
45666         macros.
45667         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
45668         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
45669         Northern Sotho, Uighur.
45670
45671 2008-04-16  Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
45674         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
45675         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
45676         Reported by Daniel Bergström <daniel@octocode.com>.
45677
45678 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
45679             Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
45682         function.
45683         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
45684         New functions, mostly extracted from gl_locale_name_default.
45685         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
45686
45687 2008-04-16  Eric Blake  <ebb9@byu.net>
45688
45689         Adjust strtod detection to catch glibc 2.7 bug.
45690         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
45691         Reported by John Gatewood Ham.
45692
45693 2008-04-16  Bruno Haible  <bruno@clisp.org>
45694
45695         Add tentative support for Linux libc5.
45696         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
45697         * lib/fpurge.c (fpurge): Likewise.
45698         * lib/freadable.c (freadable): Likewise.
45699         * lib/freadahead.c (freadahead): Likewise.
45700         * lib/freading.c (freading): Likewise.
45701         * lib/freadptr.c (freadptr): Likewise.
45702         * lib/freadseek.c (freadptrinc): Likewise.
45703         * lib/fseeko.c (rpl_fseeko): Likewise.
45704         * lib/fseterr.c (fseterr): Likewise.
45705         * lib/fwritable.c (fwritable): Likewise.
45706         * lib/fwriting.c (fwriting): Likewise.
45707         Reported by Alain Guibert <alguibert+bts@free.fr>.
45708
45709 2008-04-15  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/mathl (configure.ac): Define module indicator.
45712
45713 2008-04-15  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/logl.c (logl): Remove unused variables.
45716
45717 2008-04-15  Bruno Haible  <bruno@clisp.org>
45718
45719         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
45720         fails.
45721
45722 2008-04-15  Bruno Haible  <bruno@clisp.org>
45723
45724         * lib/trim.c (trim2): Fix argument of isspace() macro.
45725
45726 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
45727
45728         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
45729         to 0.
45730         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
45731
45732 2008-04-14  Bruno Haible  <bruno@clisp.org>
45733
45734         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
45735         AC_LANG_PROGRAM argument.
45736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
45737         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
45738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45739         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45740         * m4/math_h.m4 (gl_MATH_H): Likewise.
45741         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45743         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45744         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
45745         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45746         * m4/regex.m4 (gl_REGEX): Likewise.
45747         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
45748         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
45749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
45751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45752         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45753         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45755
45756 2008-04-14  Jim Meyering  <meyering@redhat.com>
45757
45758         test-strtod: fix typos: s/abs/fabs/
45759         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
45760
45761 2008-04-13  Bruno Haible  <bruno@clisp.org>
45762
45763         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
45764         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
45765         module is also used and while not building the reloc-wrapper.
45766
45767 2008-04-13  Bruno Haible  <bruno@clisp.org>
45768
45769         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
45770
45771 2008-04-13  Bruno Haible  <bruno@clisp.org>
45772
45773         Fix AIX compilation failure introduced on 2008-04-02.
45774         * tests/test-frexp.c (exp): Undefine before redefining.
45775         * tests/test-frexpl.c (exp): Likewise.
45776
45777 2008-04-13  Bruno Haible  <bruno@clisp.org>
45778
45779         Work around a HP-UX stdio bug.
45780         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
45781         * tests/test-ftello.c (main): Likewise.
45782         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
45783         * doc/posix-functions/ftello.texi: Likewise.
45784
45785 2008-04-13  Bruno Haible  <bruno@clisp.org>
45786
45787         Make test-signbit pass on HP-UX/hppa.
45788         * tests/test-signbit.c (minus_zerol): New variable.
45789         (test_signbitl): Use it.
45790
45791 2008-04-13  Bruno Haible  <bruno@clisp.org>
45792
45793         Make truncl work on OSF/1 4.0.
45794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
45795         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45796         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
45797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
45798         HAVE_DECL_TRUNCL.
45799         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
45800         HAVE_DECL_TRUNCL.
45801         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
45802
45803 2008-04-13  Bruno Haible  <bruno@clisp.org>
45804
45805         * lib/unictype.h: Remove trailing comma from enumeration definitions.
45806
45807 2008-04-13  Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
45810         expression, so as to avoid HP-UX 11 cc compiler bug.
45811
45812 2008-04-13  Bruno Haible  <bruno@clisp.org>
45813
45814         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
45815
45816 2008-04-13  Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/git-merge-changelog.c: Remove empty declaration outside of
45819         functions.
45820
45821 2008-04-13  Bruno Haible  <bruno@clisp.org>
45822
45823         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
45824
45825 2008-04-13  Bruno Haible  <bruno@clisp.org>
45826
45827         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
45828         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
45829         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
45830         also if it exists but lacks definitions of the SHUT_* macros.
45831         * modules/sys_socket (Description): Update.
45832         Reported by Elbert Pol <e.pol@chello.nl>.
45833
45834 2008-04-13  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/localcharset.c (OS2): Don't redefine if already defined.
45837         Reported by Elbert Pol <e.pol@chello.nl>.
45838
45839 2008-04-13  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/binary-io.h [__EMX__]: Include <io.h>.
45842         Reported by Elbert Pol <e.pol@chello.nl>.
45843
45844 2008-04-12  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/fpucw.h: Enable the definitions also for x86_64.
45847         Needed for NetBSD/x86_64.
45848         Reported by Thomas Klausner <tk@giga.or.at>.
45849
45850 2008-04-12  Bruno Haible  <bruno@clisp.org>
45851
45852         * tests/test-strtod.c: Include isnand.h.
45853         (main): Use isnand instead of isnan.
45854         Reported by Jim Meyering.
45855
45856 2008-04-12  Bruno Haible  <bruno@clisp.org>
45857
45858         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
45859         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45860
45861 2008-04-12  Jim Meyering  <meyering@redhat.com>
45862
45863         * m4/math_h.m4 (gl_MATH_H): Fix typos.
45864
45865 2008-04-12  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
45868         Reported by Elbert Pol <e.pol@chello.nl>.
45869
45870 2008-04-12  Eric Blake  <ebb9@byu.net>
45871
45872         Work around Solaris 10 math.h bug.
45873         * m4/math_h.m4 (gl_MATH_H): Check for bug.
45874         (gl_MATH_H_DEFAULTS): Set up default.
45875         * modules/math (Makefile.am): Replace new indicators.
45876         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
45877         * tests/test-math.c (main): Test this.
45878         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
45879         * doc/posix-headers/math.texi (math.h): Mention bug.
45880         Reported by Nelson H. F. Beebe and Jim Meyering.
45881
45882 2008-04-11  Bruno Haible  <bruno@clisp.org>
45883
45884         Adapt to future versions of Apple GCC.
45885         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
45886         Reported by Peter O'Gorman <peter@pogma.com>.
45887
45888 2008-04-11  Bruno Haible  <bruno@clisp.org>
45889
45890         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
45891
45892 2008-04-11  Bruno Haible  <bruno@clisp.org>
45893
45894         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
45895
45896         * modules/getaddrinfo-tests (Makefile.am): Define
45897         test_getaddrinfo_LDADD.
45898
45899 2008-04-11  Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
45902         (init): Fix syntax error.
45903         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
45904         is declared.
45905
45906 2008-04-11  Bruno Haible  <bruno@clisp.org>
45907
45908         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
45909         * modules/glob (Depends-on): Add stdbool.
45910
45911 2008-04-11  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/trim.c: Include <string.h>.
45914
45915 2008-04-11  Eric Blake  <ebb9@byu.net>
45916
45917         Avoid compile failure on OS/2.
45918         * lib/regex_internal.h (internal_function): Disable optimization
45919         on OS/2 (__EMX__), where it caused compiler error.
45920         Reported by Elbert Pol.
45921
45922 2008-04-11  Bruno Haible  <bruno@clisp.org>
45923
45924         Flush the standard error stream before aborting. Needed on mingw.
45925         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
45926         * tests/test-array_list.c (ASSERT): Likewise.
45927         * tests/test-array_oset.c (ASSERT): Likewise.
45928         * tests/test-avltree_list.c (ASSERT): Likewise.
45929         * tests/test-avltree_oset.c (ASSERT): Likewise.
45930         * tests/test-avltreehash_list.c (ASSERT): Likewise.
45931         * tests/test-binary-io.c (ASSERT): Likewise.
45932         * tests/test-byteswap.c (ASSERT): Likewise.
45933         * tests/test-c-ctype.c (ASSERT): Likewise.
45934         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
45935         * tests/test-c-strcasestr.c (ASSERT): Likewise.
45936         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
45937         * tests/test-c-strstr.c (ASSERT): Likewise.
45938         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
45939         * tests/test-canonicalize.c (ASSERT): Likewise.
45940         * tests/test-carray_list.c (ASSERT): Likewise.
45941         * tests/test-ceilf1.c (ASSERT): Likewise.
45942         * tests/test-ceilf2.c (ASSERT): Likewise.
45943         * tests/test-ceill.c (ASSERT): Likewise.
45944         * tests/test-count-one-bits.c (ASSERT): Likewise.
45945         * tests/test-fbufmode.c (ASSERT): Likewise.
45946         * tests/test-fflush2.c (ASSERT): Likewise.
45947         * tests/test-floorf1.c (ASSERT): Likewise.
45948         * tests/test-floorf2.c (ASSERT): Likewise.
45949         * tests/test-floorl.c (ASSERT): Likewise.
45950         * tests/test-fopen.c (ASSERT): Likewise.
45951         * tests/test-fpending.c (ASSERT): Likewise.
45952         * tests/test-fprintf-posix.c (ASSERT): Likewise.
45953         * tests/test-fpurge.c (ASSERT): Likewise.
45954         * tests/test-freadable.c (ASSERT): Likewise.
45955         * tests/test-freadahead.c (ASSERT): Likewise.
45956         * tests/test-freading.c (ASSERT): Likewise.
45957         * tests/test-freadptr.c (ASSERT): Likewise.
45958         * tests/test-freadptr2.c (ASSERT): Likewise.
45959         * tests/test-freadseek.c (ASSERT): Likewise.
45960         * tests/test-freopen.c (ASSERT): Likewise.
45961         * tests/test-frexp.c (ASSERT): Likewise.
45962         * tests/test-frexpl.c (ASSERT): Likewise.
45963         * tests/test-fseek.c (ASSERT): Likewise.
45964         * tests/test-fseeko.c (ASSERT): Likewise.
45965         * tests/test-fstrcmp.c (ASSERT): Likewise.
45966         * tests/test-ftell.c (ASSERT): Likewise.
45967         * tests/test-ftello.c (ASSERT): Likewise.
45968         * tests/test-func.c (ASSERT): Likewise.
45969         * tests/test-fwritable.c (ASSERT): Likewise.
45970         * tests/test-fwriting.c (ASSERT): Likewise.
45971         * tests/test-getdelim.c (ASSERT): Likewise.
45972         * tests/test-getline.c (ASSERT): Likewise.
45973         * tests/test-i-ring.c (ASSERT): Likewise.
45974         * tests/test-iconv-utf.c (ASSERT): Likewise.
45975         * tests/test-iconv.c (ASSERT): Likewise.
45976         * tests/test-isfinite.c (ASSERT): Likewise.
45977         * tests/test-isnand.c (ASSERT): Likewise.
45978         * tests/test-isnanf.c (ASSERT): Likewise.
45979         * tests/test-isnanl.h (ASSERT): Likewise.
45980         * tests/test-ldexpl.c (ASSERT): Likewise.
45981         * tests/test-linked_list.c (ASSERT): Likewise.
45982         * tests/test-linkedhash_list.c (ASSERT): Likewise.
45983         * tests/test-localename.c (ASSERT): Likewise.
45984         * tests/test-lseek.c (ASSERT): Likewise.
45985         * tests/test-mbscasecmp.c (ASSERT): Likewise.
45986         * tests/test-mbscasestr1.c (ASSERT): Likewise.
45987         * tests/test-mbscasestr2.c (ASSERT): Likewise.
45988         * tests/test-mbscasestr3.c (ASSERT): Likewise.
45989         * tests/test-mbscasestr4.c (ASSERT): Likewise.
45990         * tests/test-mbschr.c (ASSERT): Likewise.
45991         * tests/test-mbscspn.c (ASSERT): Likewise.
45992         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
45993         * tests/test-mbspbrk.c (ASSERT): Likewise.
45994         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
45995         * tests/test-mbsrchr.c (ASSERT): Likewise.
45996         * tests/test-mbsspn.c (ASSERT): Likewise.
45997         * tests/test-mbsstr1.c (ASSERT): Likewise.
45998         * tests/test-mbsstr2.c (ASSERT): Likewise.
45999         * tests/test-mbsstr3.c (ASSERT): Likewise.
46000         * tests/test-memchr2.c (ASSERT): Likewise.
46001         * tests/test-memmem.c (ASSERT): Likewise.
46002         * tests/test-open.c (ASSERT): Likewise.
46003         * tests/test-printf-frexp.c (ASSERT): Likewise.
46004         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46005         * tests/test-printf-posix.c (ASSERT): Likewise.
46006         * tests/test-quotearg.c (ASSERT): Likewise.
46007         * tests/test-rbtree_list.c (ASSERT): Likewise.
46008         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46009         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46010         * tests/test-round1.c (ASSERT): Likewise.
46011         * tests/test-roundf1.c (ASSERT): Likewise.
46012         * tests/test-roundl.c (ASSERT): Likewise.
46013         * tests/test-signbit.c (ASSERT): Likewise.
46014         * tests/test-sleep.c (ASSERT): Likewise.
46015         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46016         * tests/test-snprintf.c (ASSERT): Likewise.
46017         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46018         * tests/test-stat-time.c (ASSERT): Likewise.
46019         * tests/test-strcasestr.c (ASSERT): Likewise.
46020         * tests/test-strerror.c (ASSERT): Likewise.
46021         * tests/test-striconv.c (ASSERT): Likewise.
46022         * tests/test-striconveh.c (ASSERT): Likewise.
46023         * tests/test-striconveha.c (ASSERT): Likewise.
46024         * tests/test-strsignal.c (ASSERT): Likewise.
46025         * tests/test-strstr.c (ASSERT): Likewise.
46026         * tests/test-strtod.c (ASSERT): Likewise.
46027         * tests/test-trunc1.c (ASSERT): Likewise.
46028         * tests/test-trunc2.c (ASSERT): Likewise.
46029         * tests/test-truncf1.c (ASSERT): Likewise.
46030         * tests/test-truncf2.c (ASSERT): Likewise.
46031         * tests/test-truncl.c (ASSERT): Likewise.
46032         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46033         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46034         * tests/test-vasnprintf.c (ASSERT): Likewise.
46035         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46036         * tests/test-vasprintf.c (ASSERT): Likewise.
46037         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46038         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46039         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46040         * tests/test-vsnprintf.c (ASSERT): Likewise.
46041         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46042         * tests/test-wcwidth.c (ASSERT): Likewise.
46043         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46044         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46045         * tests/test-xvasprintf.c (ASSERT): Likewise.
46046         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46047         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46048         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46049         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46050         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46051         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46052         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46053         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46054         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46055         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46056         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46057         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46058         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46059         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46060         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46061         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46062         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46063         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46064         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46065         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46066         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46067         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46068         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46069         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46070         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46071         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46072         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46073         * tests/unictype/test-combining.c (ASSERT): Likewise.
46074         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46075         * tests/unictype/test-digit.c (ASSERT): Likewise.
46076         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46077         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46078         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46079         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46080         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46081         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46082         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46083         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46084         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46085         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46086         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46087         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46088         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46089         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46090         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46091         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46092         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46093         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46094         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46095         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46096         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46097         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46098         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46099         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46100         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46101         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46102         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46103         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46104         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46105         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46106         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46107         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46108         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46109         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46110         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46111         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46112         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46113         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46114         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46115         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46116         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46117         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46118         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46119         Reported by Eric Blake.
46120
46121 2008-04-11  Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/wchar.in.h: Tweak comment.
46124
46125 2008-04-11  Bruno Haible  <bruno@clisp.org>
46126
46127         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46128         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46129         gl_COMMON.
46130         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46131
46132 2008-04-11  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46135
46136 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46137
46138         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46139         of attempting to use non-existing /dev/*random.  Based on patch
46140         from Adam Strzelecki <ono@java.pl> in
46141         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46142
46143 2008-04-08  Bruno Haible  <bruno@clisp.org>
46144
46145         Add tentative support for emx+gcc.
46146         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46147         * lib/fpurge.c (fpurge): Likewise.
46148         * lib/freadable.c (freadable): Likewise.
46149         * lib/freadahead.c (freadahead): Likewise.
46150         * lib/freading.c (freading): Likewise.
46151         * lib/freadptr.c (freadptr): Likewise.
46152         * lib/freadseek.c (freadptrinc): Likewise.
46153         * lib/fseeko.c (rpl_fseeko): Likewise.
46154         * lib/fseterr.c (fseterr): Likewise.
46155         * lib/fwritable.c (fwritable): Likewise.
46156         * lib/fwriting.c (fwriting): Likewise.
46157         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46158
46159 2008-04-09  Eric Blake  <ebb9@byu.net>
46160
46161         Avoid some autoconf warnings.
46162         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46163         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46164         * m4/afs.m4 (gl_AFS): Likewise.
46165         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46166         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46168         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46169         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46170         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46171         (AC_CHECK_DECLS_ONCE): Likewise.
46172         Rename file...
46173         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46174         gnulib-tool requires autoconf 2.59 or better.
46175         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46176
46177 2008-04-08  Eric Blake  <ebb9@byu.net>
46178
46179         Use 'git describe --match' if present (added in git 1.5.5).
46180         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46181         if possible.
46182
46183 2008-04-08  Bruno Haible  <bruno@clisp.org>
46184
46185         Add tentative support for OpenServer.
46186         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46187         _ptr, _cnt.
46188         * lib/fpurge.c (fpurge): Likewise.
46189         * lib/freadable.c (freadable): Likewise.
46190         * lib/freadahead.c (freadahead): Likewise.
46191         * lib/freading.c (freading): Likewise.
46192         * lib/freadptr.c (freadptr): Likewise.
46193         * lib/freadseek.c (freadptrinc): Likewise.
46194         * lib/fseeko.c (rpl_fseeko): Likewise.
46195         * lib/fseterr.c (fseterr): Likewise.
46196         * lib/fwritable.c (fwritable): Likewise.
46197         * lib/fwriting.c (fwriting): Likewise.
46198         Reported by Roger Cornelius <rac@tenzing.org> and
46199         Brian K. White <brian@aljex.com>.
46200
46201 2008-04-06  Jim Meyering  <meyering@redhat.com>
46202
46203         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46204
46205 2008-04-06  Bruno Haible  <bruno@clisp.org>
46206
46207         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46208         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46209         * tests/test-printf-posix.sh: Likewise.
46210         * tests/test-vfprintf-posix.sh: Likewise.
46211         * tests/test-vprintf-posix.sh: Likewise.
46212         * tests/test-xprintf-posix.sh: Likewise.
46213
46214 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46215
46216         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46217         hide error from 'ls', needed on OS/2.
46218         Report by Elbert Pol <elbert.pol@gmail.com>.
46219
46220 2008-04-04  Eric Blake  <ebb9@byu.net>
46221
46222         Make test-fseeko.c failures meaningful.
46223         * tests/test-fseeko.c: Print line number on failure.
46224         * tests/test-fseek.c: Likewise.
46225         Reported by Nelson H. F. Beebe.
46226
46227         Improve strtod bug detection check.
46228         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46229         required for Solaris 10.
46230         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46231
46232 2008-04-04  Bruno Haible  <bruno@clisp.org>
46233
46234         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46235         by m4/setenv.m4.
46236
46237 2008-04-03  Eric Blake  <ebb9@byu.net>
46238
46239         Ensure sane .version contents.
46240         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46241         version string.
46242         * build-aux/git-version-gen: Improve documentation.
46243
46244         Make GNU make output nicer.
46245         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46246         MAKECMDGOALS to enforce message for all command line targets.  Set
46247         srcdir for use in maint.mk.
46248
46249         Another maintainer tweak.
46250         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46251         a target that regenerates version.
46252
46253 2008-04-03  Jim Meyering  <meyering@redhat.com>
46254
46255         vc-list-files: don't cause coreutils "make po-check" failure
46256         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46257
46258 2008-04-03  Eric Blake  <ebb9@byu.net>
46259
46260         Allow VPATH usage of vc-list-files.
46261         * build-aux/vc-list-files (scriptversion): Add timestamp.
46262         (options): Add --help, --version, -C.
46263         (CVS): Support installed cvsu.
46264
46265 2008-04-02  Bruno Haible  <bruno@clisp.org>
46266
46267         Avoid some "statement with no effect" warnings from gcc.
46268         * tests/test-wctype.c (main): Explicitly ignore unused values.
46269         Reported by Jim Meyering.
46270
46271 2008-04-02  Jim Meyering  <meyering@redhat.com>
46272
46273         Avoid some warnings from "gcc -Wshadow".
46274         * tests/test-frexp.c (exp): Define to a different identifier.
46275         * tests/test-frexpl.c (exp): Likewise.
46276
46277 2008-04-03  Jim Meyering  <meyering@redhat.com>
46278
46279         bootstrap: remove dangling *.[ch] symlinks from lib
46280         * build-aux/bootstrap [dangling symlink removal]: Move find's
46281         -depth option to precede all others, to avoid a warning.
46282         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46283
46284 2008-04-02  Bruno Haible  <bruno@clisp.org>
46285
46286         Avoid some warnings from "gcc -Wshadow".
46287         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46288         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46289         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46290         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46291         Reported by Jim Meyering.
46292
46293 2008-04-01  Bruno Haible  <bruno@clisp.org>
46294
46295         Fix test to work on IRIX 6.5 with cc.
46296         * tests/test-math.c (numeric_equal): New function.
46297         (main): Use it.
46298
46299 2008-04-01  Bruno Haible  <bruno@clisp.org>
46300
46301         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46302
46303 2008-04-01  Bruno Haible  <bruno@clisp.org>
46304
46305         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46306         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46307         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46308         (Depends-on): Remove math.
46309
46310         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46311         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46312         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46313         (Depends-on): Remove math.
46314
46315         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46316         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46317         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46318         (Depends-on): Remove math.
46319         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46320         (Depends-on): Remove math.
46321
46322         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46323         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46324         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46325         (Depends-on): Remove math.
46326         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46327         (Depends-on): Remove math.
46328
46329         * tests/test-round1.c: Include nan.h.
46330         (main): Use NaNd instead of NAN.
46331         * modules/round-tests (Files): Add tests/nan.h.
46332
46333         * tests/test-trunc1.c: Include nan.h.
46334         (main): Use NaNd instead of NAN.
46335         * modules/trunc-tests (Files): Add tests/nan.h.
46336
46337         * tests/test-roundf1.c: Include nan.h.
46338         (main): Use NaNf instead of NAN.
46339         * modules/roundf-tests (Files): Add tests/nan.h.
46340
46341         * tests/test-truncf1.c: Include nan.h.
46342         (main): Use NaNf instead of NAN.
46343         * modules/truncf-tests (Files): Add tests/nan.h.
46344
46345         * tests/test-ceilf1.c: Include nan.h.
46346         (main): Use NaNf instead of NAN.
46347         * modules/ceilf-tests (Files): Add tests/nan.h.
46348
46349         * tests/test-floorf1.c: Include nan.h.
46350         (main): Use NaNf instead of NAN.
46351         * modules/floorf-tests (Files): Add tests/nan.h.
46352
46353         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46354         (main): Use NaNf instead of NAN.
46355         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46356
46357         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46358         (main): Use NaNd instead of NAN.
46359         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46360
46361         * tests/test-frexp.c: Include nan.h.
46362         (main): Use NaNd instead of NAN.
46363         * modules/frexp-tests (Files): Add tests/nan.h.
46364
46365         * lib/isnan.c: Don't include <math.h>.
46366         (FUNC): Don't use NAN macro.
46367         * modules/isnand-nolibm (Depends-on): Remove math.
46368         * modules/isnanf-nolibm (Depends-on): Remove math.
46369         * modules/isnanl (Depends-on): Remove math.
46370         * modules/isnanl-nolibm (Depends-on): Remove math.
46371
46372         * tests/nan.h: New file.
46373
46374 2008-04-01  Eric Blake  <ebb9@byu.net>
46375
46376         Fix typos.
46377         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46378         values to be the right type.
46379
46380         For now, cater to gnulib strtod inaccuracies.
46381         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46382         fractional results.  While not as nice from a QoI perspective, it
46383         is a quicker patch than correctly implementing decimal to binary
46384         rounding.
46385
46386 2008-03-31  Eric Blake  <ebb9@byu.net>
46387
46388         Guarantee a definition of NAN.
46389         * lib/math.in.h (NAN): Define if missing.
46390         * tests/test-math.c (main): Test it.
46391         * doc/posix-headers/math.texi (math.h): Document this.
46392         * lib/isnan.c (rpl_isnand): Use it.
46393         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46394         * tests/test-floorf1.c (NaN): Likewise.
46395         * tests/test-frexp.c (NaN): Likewise.
46396         * tests/test-isnand.c (NaN): Likewise.
46397         * tests/test-isnanf.c (NaN): Likewise.
46398         * tests/test-round1.c (NaN): Likewise.
46399         * tests/test-roundf1.c (NaN): Likewise.
46400         * tests/test-snprintf-posix.h (NaN): Likewise.
46401         * tests/test-sprintf-posix.h (NaN): Likewise.
46402         * tests/test-trunc1.c (NaN): Likewise.
46403         * tests/test-truncf1.c (NaN): Likewise.
46404         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46405         * tests/test-vasprintf-posix.c (NaN): Likewise.
46406         * modules/isnand-nolibm (Depends-on): Add math.
46407         * modules/isnanf-nolibm (Depends-on): Likewise.
46408         * modules/isnanl (Depends-on): Likewise.
46409         * modules/isnanl-nolibm (Depends-on): Likewise.
46410         * modules/snprintf-posix-tests (Depends-on): Likewise.
46411         * modules/sprintf-posix-tests (Depends-on): Likewise.
46412         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46413         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46414         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46415         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46416
46417 2008-03-31  Bruno Haible  <bruno@clisp.org>
46418
46419         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46420         * doc/posix-functions/strtod.texi: Likewise.
46421
46422 2008-03-31  Bruno Haible  <bruno@clisp.org>
46423
46424         * tests/test-strtod.c (main): Don't use C99 syntax.
46425
46426 2008-03-31  Bruno Haible  <bruno@clisp.org>
46427
46428         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46429         Reported by Eric Blake.
46430
46431 2008-03-31  Jim Meyering  <meyering@redhat.com>
46432
46433         Don't compare actual signbit return values.
46434         * tests/test-strtod.c (main): Rather, compare only their
46435         zero/non-zero nature.
46436
46437 2008-03-31  Eric Blake  <ebb9@byu.net>
46438
46439         More strtod documentation.
46440         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46441         failures as distinct bugs.
46442
46443 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46444
46445         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46446         Problem reported by Erik Benada in
46447         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46448
46449 2008-03-30  Bruno Haible  <bruno@clisp.org>
46450
46451         * tests/test-strtod.c: Add comments about which assertion fails on which
46452         platform.
46453         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46454
46455 2008-03-30  Eric Blake  <ebb9@byu.net>
46456
46457         Test signbit behavior on zeros.
46458         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46459         (test_signbitd, test_signbitl): Likewise.
46460
46461         More strtod touchups.
46462         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46463         sign of negative underflow, for now.  Use .5, not .1.
46464         * doc/posix-functions/strtod.texi (strtod): Mention these
46465         limitations.
46466         Reported by Jim Meyering.
46467
46468 2008-03-30  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
46471         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
46472
46473 2008-03-30  Bruno Haible  <bruno@clisp.org>
46474
46475         Avoid failure when attempting to return empty iconv results on some
46476         platforms.
46477         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
46478         allocation, don't report ENOMEM when the resulting string is empty.
46479
46480 2008-03-30  Bruno Haible  <bruno@clisp.org>
46481
46482         Fix buffer overrun.
46483         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
46484         Don't consider the width for tmp_length. Check count against tmp_length
46485         before doing the padding. Ensure enough allocation during padding.
46486
46487 2008-03-30  Eric Blake  <ebb9@byu.net>
46488
46489         strtod touchups.
46490         * lib/strtod.c (strtod): Avoid compiler warnings.
46491         Reported by Jim Meyering.
46492
46493 2008-03-30  Bruno Haible  <bruno@clisp.org>
46494
46495         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
46496         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
46497         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
46498         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
46499         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
46500         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
46501         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
46502         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
46503
46504         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
46505         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
46506         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
46507         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
46508         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
46509         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
46510         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
46511         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
46512
46513         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
46514         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
46515         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
46516         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
46517         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
46518         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
46519         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
46520         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
46521
46522         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
46523         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
46524
46525         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
46526         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
46527
46528         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
46529         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
46530
46531         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
46532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
46533         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
46534
46535         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
46536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
46537         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
46538
46539         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
46540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
46541         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
46542
46543         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
46544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
46545         * modules/vasprintf (Depends-on): Add EOVERFLOW.
46546
46547         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
46548         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
46549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
46550         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
46551         (Depends-on): Add EOVERFLOW.
46552         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
46553         (Depends-on): Add EOVERFLOW.
46554         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46555         (Depends-on): Add EOVERFLOW.
46556         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
46557         (Depends-on): Add EOVERFLOW.
46558         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46559         (Depends-on): Add EOVERFLOW.
46560         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
46561         (Depends-on): Add EOVERFLOW.
46562         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46563         (Depends-on): Add EOVERFLOW.
46564         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
46565         (Depends-on): Add EOVERFLOW.
46566
46567         * lib/sprintf.c (EOVERFLOW): Remove fallback.
46568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
46569         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
46570
46571         * lib/snprintf.c (EOVERFLOW): Remove fallback.
46572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
46573         * modules/snprintf (Depends-on): Add EOVERFLOW.
46574
46575         * lib/poll.c (EOVERFLOW): Remove fallback.
46576         * modules/poll (Depends-on): Add EOVERFLOW.
46577
46578         * lib/getugroups.c (EOVERFLOW): Remove fallback.
46579         * modules/getugroups (Depends-on): Add EOVERFLOW.
46580
46581         * lib/getdelim.c (EOVERFLOW): Remove fallback.
46582         * modules/getdelim (Depends-on): Add EOVERFLOW.
46583
46584         * lib/ftell.c (EOVERFLOW): Remove fallback.
46585         * modules/ftell (Depends-on): Add EOVERFLOW.
46586
46587         * lib/fprintf.c (EOVERFLOW): Remove fallback.
46588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
46589         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
46590
46591         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
46592
46593         * modules/EOVERFLOW-tests: New file.
46594         * tests/test-EOVERFLOW.c: New file.
46595
46596         * modules/EOVERFLOW: New file.
46597         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
46598
46599 2008-03-30  Bruno Haible  <bruno@clisp.org>
46600
46601         Fix bug introduced on 2007-06-10.
46602         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
46603         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
46604
46605 2008-03-30  Bruno Haible  <bruno@clisp.org>
46606
46607         Improve freadseek's efficiency after ungetc.
46608         * lib/freadseek.c: Include freadahead.h.
46609         (freadptrinc): New function, extracted from freadseek.
46610         (freadseek): Use it in a loop. Use freadahead to determine the number
46611         of loop iterations.
46612         * modules/freadseek (Depends-on): Add freadahead.
46613         (configure.ac): Require AC_C_INLINE.
46614
46615 2008-03-30  Bruno Haible  <bruno@clisp.org>
46616
46617         * lib/freadseek.c (freadseek): Don't ignore the return value of
46618         freadptr.
46619
46620 2008-03-29  Eric Blake  <ebb9@byu.net>
46621
46622         Add hex float support.
46623         * modules/strtod (Depends-on): Add c-ctype.
46624         (Link): Mention POW_LIB.
46625         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
46626         whitespace between 'e' and exponent.
46627         * tests/test-strtod.c (main): Enable hex float tests.
46628         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
46629         now provides.
46630
46631         Document various strtod bugs, with some fixes.
46632         * doc/posix-functions/strtod.texi (strtod): Document bugs with
46633         "-0x", "inf", "nan", and hex constants.
46634         * doc/posix-functions/atof.texi (atof): Likewise.
46635         * modules/stdlib (Makefile.am): Support strtod.
46636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46637         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
46638         detect additional strtod bugs.
46639         * lib/stdlib.in.h (rpl_strtod): Add declarations.
46640         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
46641         bool where appropriate.  Parse 'inf' and 'nan'.
46642         * tests/test-strtod.c: New file.
46643         * modules/strtod (Depends-on): Add stdbool, stdlib.
46644         (configure.ac): Turn on module indicator.
46645         * modules/strtod-tests: New module.
46646
46647 2008-03-29  Eric Blake  <ebb9@byu.net>
46648
46649         Fix ftell on mingw.
46650         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
46651         * modules/ftell-tests (Depends-on): Add binary-io.
46652         * modules/ftello-tests (Depends-on): Likewise.
46653         * tests/test-ftell.c (main): Enhance test to cover behavior after
46654         ungetc.  Enforce binary mode.
46655         * tests/test-ftello.c (main): Likewise.
46656
46657         Pass test-freadseek on cygwin.
46658         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
46659         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
46660         ungetc buffer.
46661
46662         * tests/test-fflush2.c (main): Fix typo.
46663
46664 2008-03-29  Bruno Haible  <bruno@clisp.org>
46665
46666         * tests/test-fflush2.c (main): Temporarily disable the contents of
46667         this test.
46668         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
46669         Reported by Eric Blake.
46670
46671 2008-03-28  Simon Josefsson  <simon@josefsson.org>
46672
46673         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
46674         (GC_SHA224_DIGEST_SIZE): Add.
46675
46676         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
46677         (gc_hash_digest_length): Likewise.
46678         (gc_hash_buffer): Likewise.
46679
46680 2008-03-25  Bruno Haible  <bruno@clisp.org>
46681
46682         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
46683         detail which gettext release to use.
46684         Reported by Simon Josefsson.
46685
46686 2008-03-26  Jim Meyering  <meyering@redhat.com>
46687
46688         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
46689         * modules/gnumakefile (clean-GNUmakefile): Also, use
46690         test ... && ... || : syntax rather than if-then ... fi.
46691
46692         gnumakefile: Don't double-quote-expand $(VPATH) value.
46693         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
46694
46695 2008-03-24  Eric Blake  <ebb9@byu.net>
46696
46697         Alter GNUmakefile to install into top directory.
46698         * modules/maintainer-makefile: Split, and add dependency...
46699         * modules/gnumakefile: to this new module.
46700         * build-aux/GNUmakefile: Move...
46701         * top/GNUmakefile: ...here.
46702         * build-aux/maint.mk: Move...
46703         * top/maint.mk: ...here.
46704         * MODULES.html.sh (Support for maintaining...): Document new
46705         module.
46706
46707 2008-03-23  Bruno Haible  <bruno@clisp.org>
46708
46709         * gnulib-tool: New options --vc-files, --no-vc-files.
46710         (func_usage): Document them.
46711         (vc_files): New variable.
46712         (func_import): Consider vc_files.
46713         (func_create_testdir): Set vc_files to empty.
46714         Suggested by Jim Meyering and Karl Berry.
46715
46716 2008-03-23  Bruno Haible  <bruno@clisp.org>
46717
46718         Fix regex compilation error on HP-UX 11.
46719         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
46720         * modules/regex (Files): Add m4/mbstate_t.m4.
46721         Reported by Ton Voon <ton.voon@altinity.com>.
46722
46723 2008-03-23  Bruno Haible  <bruno@clisp.org>
46724
46725         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
46726
46727 2008-03-23  Eric Blake  <ebb9@byu.net>
46728             Bruno Haible  <bruno@clisp.org>
46729
46730         Install files from top/ in the destination directory.
46731         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46732         augmentation also for the files from top/.
46733         (func_import, func_create_testdir): Rewrite file names:
46734         top/filename -> filename.
46735
46736 2008-03-23  Bruno Haible  <bruno@clisp.org>
46737
46738         Tweak "gnulib --version" output.
46739         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
46740
46741 2008-03-23  Bruno Haible  <bruno@clisp.org>
46742
46743         Tweak "gnulib --version" output.
46744         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
46745         rather than contents of ChangeLog, when possible.
46746
46747 2008-03-21  Eric Blake  <ebb9@byu.net>
46748
46749         More --version tweaks.
46750         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
46751         date of last ChangeLog entry.
46752
46753 2008-03-21  Jim Meyering  <meyering@redhat.com>
46754
46755         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
46756
46757 2008-03-20  Eric Blake  <ebb9@byu.net>
46758
46759         VPATH fix.
46760         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
46761
46762 2008-03-20  Simon Josefsson  <simon@josefsson.org>
46763
46764         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
46765         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
46766
46767 2008-03-20  Eric Blake  <ebb9@byu.net>
46768
46769         Sync GNUmakefile with coreutils.
46770         * build-aux/GNUmakefile (have-Makefile): Rename...
46771         (_have-Makefile): ...to this, for namespace consideration.
46772         (GNUmakefile.cfg): Include, if present.
46773         (_autoreconf): Define a default.
46774         (_is-dist-target): New rule for rebuilds to pick up intra-release
46775         version.
46776         (maint-cfg.mk): Rename...
46777         (cfg.mk): ...to this.
46778
46779 2008-03-18  Jim Meyering  <meyering@redhat.com>
46780
46781         New script and module: mktempd
46782         * MODULES.html.sh (maint+release support): Add mktempd.
46783         * build-aux/mktempd: New file.
46784         * modules/mktempd: New file.
46785
46786 2008-03-15  Jim Meyering  <meyering@redhat.com>
46787
46788         Undo last change.
46789         * lib/sha1.c, lib/md5.c: 63 != ~63.
46790         Reported by Andreas Schwab.
46791
46792         sha1.c, md5.c: Hoist a redundant expression.
46793         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
46794         "ctx->buflen" only once, before calling *_process_block.
46795         * lib/md5.c (md5_process_bytes): Likewise.
46796
46797 2008-03-14  Eric Blake  <ebb9@byu.net>
46798
46799         Bump copyright year in files generated by gnulib-tool.
46800         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
46801         gnulib-tool, rather than hard-coding it.
46802
46803         Fix 'gnulib-tool --version' output to work with git.
46804         * gnulib-tool (func_gnulib_dir): New function, extracted from...
46805         (startup): ...here.
46806         (func_version): Use it to invoke git-version-gen, rather than
46807         relying on CVS keyword expansion.  Modernize wording.
46808         (cvsdatestamp, last_checkin_date, version): Kill unused
46809         variables.
46810
46811 2008-03-12  Jim Meyering  <meyering@redhat.com>
46812
46813         Recognize optional cast of the argument to free.
46814         * build-aux/useless-if-before-free: Update regexps.
46815
46816         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
46817
46818 2008-03-11  Bruno Haible  <bruno@clisp.org>
46819
46820         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
46821         by a single package.
46822         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
46823         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
46824         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
46825         Reported by Sam Steingold <sds@gnu.org>.
46826
46827 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46828
46829         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
46830         repositories.
46831
46832 2008-03-11  Bruno Haible  <bruno@clisp.org>
46833
46834         Avoid conflicts between local macro definitions.
46835         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46836         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
46837
46838 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
46839             Bruno Haible  <bruno@clisp.org>
46840
46841         Make va_copy work with some version of xlc on AIX 5.1.
46842         * lib/stdarg.in.h: New file.
46843         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
46844         On AIX, use a <stdarg.h> file substitute.
46845         * modules/stdarg (Files): Add lib/stdarg.in.h.
46846         (Depends-on): Add include_next.
46847         (Makefile.am): Build a stdarg.h substitute if requested.
46848         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
46849
46850 2008-03-10  Bruno Haible  <bruno@clisp.org>
46851
46852         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
46853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46854         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
46855
46856 2008-03-10  Bruno Haible  <bruno@clisp.org>
46857
46858         * modules/stdlib (Depends-on): Add include_next, remove
46859         absolute-header.
46860
46861 2008-03-09  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/freadahead.h (freadahead): Document more precisely.
46864         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
46865         the sum of both buffer sizes.
46866         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
46867         * NEWS: Document the change.
46868
46869 2008-03-09  Bruno Haible  <bruno@clisp.org>
46870
46871         Extend freadptr to return also the buffer size.
46872         * lib/freadptr.h (freadptr): Add sizep argument.
46873         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
46874         (freadptr): Add sizep argument. Determine buffer size like freadahead
46875         does.
46876         * tests/test-freadptr.c: Don't include freadahead.h.
46877         (main): Adapt for new calling convention of freadptr.
46878         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
46879         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
46880         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
46881         tests/test-freadptr2.sh.
46882         (Depends): Remove freadahead.
46883         (TESTS): Add test-freadptr2.sh.
46884         (check_PROGRAMS): Add test-freadptr2.
46885
46886 2008-03-09  Bruno Haible  <bruno@clisp.org>
46887
46888         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
46889         Report and solution by Simon Josefsson.
46890
46891 2008-03-06  Bruno Haible  <bruno@clisp.org>
46892
46893         Make fflush after ungetc work on BSD platforms.
46894         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
46895         * tests/test-fflush2.c: New file.
46896         * tests/test-fflush2.sh: New file.
46897         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
46898         tests/test-fflush2.c.
46899         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
46900         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
46901
46902 2008-03-06  Eric Blake  <ebb9@byu.net>
46903
46904         Likewise for ftello.
46905         * modules/ftello (Dependencies): Add extensions.
46906         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
46907
46908 2008-03-06  Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/fseeko (Dependencies): Add extensions.
46911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
46912         Needed on glibc systems.
46913
46914 2008-03-06  Bruno Haible  <bruno@clisp.org>
46915
46916         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
46917         email address.
46918         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46919
46920 2008-03-06  Bruno Haible  <bruno@clisp.org>
46921
46922         * users.txt: Add libgnupdf.
46923
46924 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46925
46926         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
46927         (Header File Substitutes, Function Substitutes,
46928         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
46929         (Build robot for gnulib): Fix typo.
46930
46931 2008-03-06  Bruno Haible  <bruno@clisp.org>
46932
46933         * doc/gnulib-tool.texi (VCS Issues): Small updates.
46934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46935
46936 2008-03-06  Bruno Haible  <bruno@clisp.org>
46937
46938         * doc/func.texi: New file, extracted from doc/gnulib.texi.
46939         * doc/gnulib.texi: Include it.
46940
46941 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46942
46943         * modules/func (License): Change license to unlimited; there was
46944         no LGPL parts in the module anyway.
46945
46946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46947
46948         * modules/__func__: Renamed to modules/func.
46949         * modules/__func__-tests: Renamed to modules/func-tests.
46950         * tests/test-__func__.c: Renamed to tests/test-func.c.
46951         * m4/__func__.m4: Renamed to m4/func.m4.
46952         * doc/gnulib.texi (__func__): Section renamed to func.
46953         Suggested by Eric Blake <ebb9@byu.net>.
46954
46955 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46956
46957         * doc/gnulib.texi (__func__): Use C99 terminology when talking
46958         about __func__.  Make example self-contained.  Suggested by Eric
46959         Blake <ebb9@byu.net>.
46960
46961         * tests/test-__func__.c (main): Avoid extraneous () around __func.
46962         Suggested by Eric Blake <ebb9@byu.net>.
46963
46964 2008-03-06  Simon Josefsson  <simon@josefsson.org>
46965
46966         * modules/__func__: New file.
46967         * modules/__func__-tests: New file.
46968         * tests/test-__func__.c: New file.
46969         * m4/__func__.m4: New file.
46970         * doc/gnulib.texi (__func__): Document __func__ module.
46971
46972 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46973
46974         * modules/byteswap (License): Re-license as LGPLv2+.
46975
46976 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46977
46978         * doc/Makefile: Add pdf target.
46979
46980 2008-03-05  Simon Josefsson  <simon@josefsson.org>
46981
46982         * modules/inline (License): Use 'unlimited', since there are only
46983         *.m4 files in this module.
46984
46985 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46986             Bruno Haible  <bruno@clisp.org>
46987
46988         Add support for HP C 7.1 on OpenVMS 8.3.
46989         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
46990
46991 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
46992
46993         Update VMS specifics.
46994         * lib/getopt.c [VMS]: Remove include of unixlib.h.
46995
46996 2008-03-02  Jim Meyering  <meyering@redhat.com>
46997
46998         Remove the last dependency on the "free" module.
46999         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47000         Reported by Bob Proulx.
47001
47002         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47003
47004         Remove useless "if" tests before free.  Deprecate "free" module.
47005         * doc/posix-functions/free.texi: Mention that this
47006         module is no longer useful.
47007         * modules/free (Notice): Say this module is obsolete.
47008         * modules/readutmp (Depends-on): Remove free.
47009         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47010         * lib/putenv.c (putenv): Likewise.
47011         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47012         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47013         * tests/test-c-strcasestr.c (main): Likewise.
47014         * tests/test-c-strstr.c (main): Likewise.
47015         * tests/test-mbscasestr1.c (main): Likewise.
47016         * tests/test-mbscasestr2.c (main): Likewise.
47017         * tests/test-mbsstr1.c (main): Likewise.
47018         * tests/test-mbsstr2.c (main): Likewise.
47019         * tests/test-memmem.c (main): Likewise.
47020         * tests/test-strcasestr.c (main): Likewise.
47021         * tests/test-striconv.c (main): Likewise.
47022         * tests/test-striconveh.c (main): Likewise.
47023         * tests/test-striconveha.c (main): Likewise.
47024         * tests/test-strstr.c (main): Likewise.
47025
47026         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47027
47028         bootstrap: sync from coreutils again
47029         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47030
47031 2008-03-01  Jim Meyering  <meyering@redhat.com>
47032
47033         bootstrap: sync from coreutils
47034         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47035         also when the target doesn't exist.
47036
47037 2008-03-01  Eric Blake  <ebb9@byu.net>
47038
47039         Fix bugs in last patch.
47040         * lib/memchr2.c (memchr2): Fix typo.
47041         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47042         extension.
47043         Reported by Bruce Korb.
47044
47045         New module 'memchr2'.
47046         * modules/memchr2: New file.
47047         * modules/memchr2-tests: Likewise.
47048         * lib/memchr2.h: Likewise.
47049         * lib/memchr2.c: Likewise, based on memchr.c.
47050         * tests/test-memchr2.c: New test.
47051         * MODULES.html.sh (String handling): Add memchr2.
47052
47053 2008-02-29  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/freadseek-tests: New file.
47056         * tests/test-freadseek.sh: New file.
47057         * tests/test-freadseek.c: New file.
47058
47059         New module 'freadseek'.
47060         * modules/freadseek: New file.
47061         * lib/freadseek.h: New file.
47062         * lib/freadseek.c: New file.
47063         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47064
47065 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47066
47067         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47068         wydawca.
47069
47070         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47071         program_invocation_name and program_invocation_short_name are
47072         present.
47073
47074 2008-02-28  Bruno Haible  <bruno@clisp.org>
47075
47076         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47077         * tests/test-freadptr.sh: Also test non-seekable stdin.
47078
47079 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47080
47081         * build-aux/bootstrap (source_base, m4_base)
47082         (doc_base, tests_base): New variables.
47083         (gnulib_tool_options): Do not hardcode base directories, use
47084         the above variables instead.
47085
47086 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47087
47088         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47089
47090 2008-02-28  Bruno Haible  <bruno@clisp.org>
47091
47092         * modules/freadptr-tests: New file.
47093         * tests/test-freadptr.sh: New file.
47094         * tests/test-freadptr.c: New file.
47095
47096         New module 'freadptr'.
47097         * modules/freadptr: New file.
47098         * lib/freadptr.h: New file.
47099         * lib/freadptr.c: New file.
47100         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47101
47102 2008-02-26  Karl Berry  <karl@freefriends.org>
47103
47104         Sync from Libtool:
47105         * libltdl/argz.c (argz_add, argz_count): New functions.
47106         * libltdl/argz.in.h: Declare them.
47107         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47108
47109 2008-02-22  Bruno Haible  <bruno@clisp.org>
47110
47111         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47112         is a pointer type.  Needed for HP-UX 10.
47113         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47114         * doc/posix-functions/gmtime_r.texi: Likewise.
47115         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47116
47117 2008-02-24  Bruno Haible  <bruno@clisp.org>
47118
47119         * modules/environ-tests: New file.
47120         * tests/test-environ.c: New file.
47121
47122         New module 'environ'.
47123         * modules/environ: New file.
47124         * lib/unistd.in.h (environ): New declaration.
47125         * m4/environ.m4: New file.
47126         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47127         after use.
47128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47129         HAVE_DECL_ENVIRON.
47130         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47131         HAVE_DECL_ENVIRON.
47132         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47133         wrong claim that 'environ' is missing on some systems.
47134         * modules/execute (Depends-on): Add environ.
47135         * lib/execute.c (environ): Remove fallback declaration.
47136         * modules/pipe (Depends-on): Add environ.
47137         * lib/pipe.c (environ): Remove fallback declaration.
47138         * modules/setenv (Depends-on): Add environ.
47139         * lib/setenv.c (environ): Remove fallback declaration.
47140         * modules/unsetenv (Depends-on): Add environ.
47141         * lib/unsetenv.c (environ): Remove fallback declaration.
47142         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47143         m4/environ.m4.
47144         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47145         (gl_PREREQ_UNSETENV): Likewise.
47146
47147 2008-02-24  Bruno Haible  <bruno@clisp.org>
47148
47149         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47150
47151 2008-02-20  Bob Proulx  <bob@proulx.com>
47152
47153         Enable use of older two part flavor 'git describe'.
47154         * build-aux/git-version-gen: If using the older two part flavor of
47155         git version then recreate the third part now present in the
47156         newer three part flavor of git describe.
47157
47158 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47159
47160         * lib/fts.c (fts_build): Typo correction to comment.
47161
47162 2008-02-17  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47165         generating no-op conflicts.
47166
47167 2008-02-17  Bruno Haible  <bruno@clisp.org>
47168
47169         Speed up by 10%.
47170         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47171         result_entries, rather than an index-based loop.
47172
47173 2008-02-17  Bruno Haible  <bruno@clisp.org>
47174
47175         Speed up by 25%.
47176         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47177         'hashcode_cached'.
47178         (entry_create): New function.
47179         (entry_hashcode): Use the cached hashcode if possible.
47180         (read_changelog_file, try_split_merged_entry): Use entry_create.
47181
47182 2008-02-17  Bruno Haible  <bruno@clisp.org>
47183
47184         Speed up from O(n^2) to O(n) for long ChangeLog files.
47185         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47186         (read_changelog_file): Change implementation of entries_reversed list
47187         to rbtreehash.
47188         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47189
47190 2008-02-17  Bruno Haible  <bruno@clisp.org>
47191
47192         New option --split-merged-entry.
47193         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47194         (find_paragraph_end, try_split_merged_entry): New functions.
47195         (long_options): Add option --split-merged-entry.
47196         (usage): Document option --split-merged-entry.
47197         (main): Implement option --split-merged-entry.
47198         Reported by Eric Blake.
47199
47200 2008-02-17  Bruno Haible  <bruno@clisp.org>
47201
47202         * lib/git-merge-changelog.c: Include c-strstr.h.
47203         (main): Support the "git pull --rebase" situation.
47204         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47205         Reported by Eric Blake.
47206
47207 2008-02-16  Eric Blake  <ebb9@byu.net>
47208
47209         Avoid doubling \ in common case of "c-maybe" quoting style.
47210         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47211         eliding outer quotes.
47212         * lib/quotearg.h: Document this.
47213         * tests/test-quotearg.c (result_strings, inputs, results_g)
47214         (flag_results, locale_results): Test it by adding a new string to
47215         each test group.
47216         (compare_strings): Test new string.
47217
47218 2008-02-13  Eric Blake  <ebb9@byu.net>
47219
47220         Avoid trigraph quoting in default output.
47221         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47222         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47223         unless explicitly requested.
47224         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47225
47226 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47227
47228         Don't rely on signed integer overflowing to negative value.
47229         * lib/getugroups.c (getugroups): Include <limits.h>.
47230         Instead, compare against INT_MAX, and increment only if the test passes.
47231
47232 2008-02-13  Jim Meyering  <meyering@redhat.com>
47233         and Eric Blake  <ebb9@byu.net>
47234
47235         Avoid shadowing warning and compile errors on Linux.
47236         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47237         forwarding macros on Linux.
47238         (dcgettext): Define a stub, for Linux.
47239         (results_g, main): Avoid warnings.
47240
47241 2008-02-12  Eric Blake  <ebb9@byu.net>
47242
47243         Silence warning in last patch.
47244         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47245
47246         Quotearg part 4: add tests, fix c-maybe colon quoting.
47247         * lib/quotearg.h: Improve documentation.
47248         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47249         escapes when adding outer quotes.  When quoting trigraphs, use
47250         valid C notation.  When quoting NUL, omit extra characters if next
47251         character is not digit.  Alter prototype.
47252         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47253         callers.
47254         * modules/quotearg-tests: New module.
47255         * tests/test-quotearg.c: New test.
47256
47257 2008-02-07  Eric Blake  <ebb9@byu.net>
47258
47259         Quotearg part 3: add flag to control outer quote elision.
47260         * lib/quotearg.h (c_maybe_quoting_style): New style.
47261         (enum quoting_flags): Better documentation of flags.
47262         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47263         c-maybe style.
47264         (quotearg_buffer_restyled): Handle new flag to elide outer
47265         quotes.
47266
47267         Quotearg part 2: add flag that can control NUL elision.
47268         * lib/quotearg.h (set_quoting_flags): New prototype.
47269         * lib/quotearg.c (struct quoting_options): Add flag field.
47270         (set_quoting_flags): New function.
47271         (quotearg_buffer_restyled): Add flags parameter.
47272         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47273         (quotearg_n_options): Set the flag, since length cannot be
47274         returned.
47275         (quoting_options_from_style): Default flags correctly.
47276
47277         Quotearg part 1: more wrappers, restore quotearg_char state.
47278         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47279         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47280         (quotearg_colon_mem): New wrappers.
47281         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47282         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47283         functions.
47284         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47285         (quotearg_colon_mem): New functions.
47286
47287 2008-02-11  Bruno Haible  <bruno@clisp.org>
47288
47289         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47290         library in the current directory: it does not work with parallel make.
47291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47292
47293 2008-02-11  Bruno Haible  <bruno@clisp.org>
47294
47295         * .gitattributes: New file.
47296
47297 2008-02-11  Jim Meyering  <meyering@redhat.com>
47298
47299         useless-if-before-free: Fix reversed exit values.
47300         * build-aux/useless-if-before-free: Use correct values
47301         for EXIT_MATCH and EXIT_NO_MATCH.
47302
47303         * build-aux/useless-if-before-free: Close stdout carefully.
47304
47305 2008-02-10  Bruno Haible  <bruno@clisp.org>
47306
47307         New module 'git-merge-changelog'.
47308         * modules/git-merge-changelog: New file.
47309         * lib/git-merge-changelog.c: New file.
47310
47311 2008-02-10  Jim Meyering  <meyering@redhat.com>
47312
47313         useless-if-before-free: New option: --list (-l).
47314
47315         useless-if-before-free: Don't exit immediately upon open failure.
47316         * build-aux/useless-if-before-free: Exit 2 for errors.
47317         Upon failure to open a file, don't exit immediately.
47318         Rather, just warn and continue with any remaining files.
47319
47320 2008-02-10  Bruno Haible  <bruno@clisp.org>
47321
47322         New abstract list operation 'node_set_value'.
47323         * lib/gl_list.h (gl_list_node_set_value): New function.
47324         (struct gl_list_implementation): New field node_set_value.
47325         * lib/gl_list.c (gl_list_node_set_value): New function.
47326         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47327         (gl_array_list_implementation): Update.
47328         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47329         (gl_carray_list_implementation): Update.
47330         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47331         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47332         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47333         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47334         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47335         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47336         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47337         Update.
47338         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47339         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47340         (gl_sublist_list_implementation): Update.
47341
47342 2008-02-10  Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47345         Needed when ELEMENT is #defined to 'some_type *'.
47346
47347 2008-02-10  Jim Meyering  <meyering@redhat.com>
47348
47349         New script and module: useless-if-before-free
47350         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47351         * build-aux/useless-if-before-free: New file.
47352         * modules/useless-if-before-free: New file.
47353
47354         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47355
47356         xstrtol_error: Fix typo.
47357         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47358         s/exit_failure/exit_status/.
47359
47360 2008-02-09  Jim Meyering  <meyering@redhat.com>
47361
47362         New script and module: gitlog-to-changelog
47363         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47364         * modules/gitlog-to-changelog: New file.
47365         * build-aux/gitlog-to-changelog: New file.
47366
47367 2008-02-08  Jim Meyering  <meyering@redhat.com>
47368
47369         Avoid two "parameter unused" warnings.
47370         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47371         Mark "st" as used.
47372
47373         Use "git COMMAND", not "git-COMMAND".
47374         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47375         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47376         * build-aux/git-version-gen: Use "git status", not "git-status".
47377
47378 2008-02-07  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47381         Avoids a crash on Windows Vista.
47382         Reported by Adam Strzelecki <ono@java.pl> via
47383         Simon Josefsson <simon@josefsson.org>.
47384
47385 2008-02-06  Bruno Haible  <bruno@clisp.org>
47386
47387         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47388         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47389         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47393         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47394         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47402         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47403         left-adjust flag.
47404         * tests/test-snprintf-posix.h (test_function): Likewise.
47405         * tests/test-sprintf-posix.h (test_function): Likewise.
47406         * tests/test-vasprintf-posix.c (test_function): Likewise.
47407         * doc/posix-functions/fprintf.texi: Update.
47408         * doc/posix-functions/printf.texi: Update.
47409         * doc/posix-functions/snprintf.texi: Update.
47410         * doc/posix-functions/sprintf.texi: Update.
47411         * doc/posix-functions/vfprintf.texi: Update.
47412         * doc/posix-functions/vprintf.texi: Update.
47413         * doc/posix-functions/vsnprintf.texi: Update.
47414         * doc/posix-functions/vsprintf.texi: Update.
47415         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47416
47417 2008-02-06  Bruno Haible  <bruno@clisp.org>
47418
47419         Fix bug introduced on 2008-01-26.
47420         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47421
47422 2008-02-06  Bruno Haible  <bruno@clisp.org>
47423
47424         Fix bug introduced on 2007-06-10.
47425         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47426         !NEED_PRINTF_FLAG_ZERO.
47427
47428 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47429
47430         getloadavg: use libperfstat on AIX5
47431         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47432
47433 2008-02-03  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/diffseq.h: Add comments about required #includes.
47436         Reported by Michael Biggs <gnulib@doubleplum.net>.
47437
47438 2008-02-01  Bruno Haible  <bruno@clisp.org>
47439
47440         * users.txt: Add gnuit.
47441
47442 2008-01-31  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/md4.c (set_uint32): Mark as inline.
47445         * lib/md5.c (set_uint32): Likewise.
47446         * lib/sha1.c (set_uint32): Likewise.
47447         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47448         * m4/md5.m4 (gl_MD5): Likewise.
47449         * m4/sha1.m4 (gl_SHA1): Likewise.
47450
47451 2008-01-31  Jim Meyering  <meyering@redhat.com>
47452
47453         Use "sizeof VAR", rather than a literal "4".
47454         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47455         * lib/md4.c (md4_read_ctx): Likewise.
47456         * lib/sha1.c (sha1_read_ctx): Likewise.
47457
47458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47459
47460         * tests/test-sha1.c: New file, based on test-md5.c.
47461
47462         * modules/crypto/sha1-tests: New file.
47463
47464 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47465
47466         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47467
47468 2008-01-31  Jim Meyering  <meyering@redhat.com>
47469
47470         Prefer "sizeof v" over the equivalent "4".
47471         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
47472         * lib/md5.c (set_uint32): Likewise.
47473         * lib/sha1.c (set_uint32): Likewise.
47474
47475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47476
47477         * lib/sha1.c (set_uint32): Mark function as static.
47478
47479 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47480
47481         md2: clarify comments to say that alignment is not required.
47482         * lib/md2.h: Remove warning about alignment in comment.
47483         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
47484         never been required.
47485
47486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47487
47488         md4: adapt alignment constraint fix from sha1.
47489         * lib/md4.c (set_uint32): New function, from sha1.c
47490         (md4_read_ctx): Use it.
47491         (md4_finish_ctx): Doc fix.
47492         * lib/md4.h: Doc fix.
47493
47494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47495
47496         md5: adapt alignment constraint fix from sha1.
47497         * lib/md5.c (set_uint32): New function, from sha1.c
47498         (md5_read_ctx): Use it.
47499         (md5_finish_ctx): Doc fix.
47500         * lib/md5.h: Doc fix.
47501
47502 2008-01-30  Peter Palfrader  <weasel@debian.org>
47503
47504         sha1: remove the result buffer alignment constraint
47505         * lib/sha1.c (set_uint32): New function.
47506         (sha1_read_ctx): Rewrite to remove the result buffer alignment
47507         constraint.
47508         (sha1_finish_ctx): Remove comment warning about alignment constraint.
47509         * lib/sha1.h: Likewise.
47510
47511 2008-01-30  Andreas Schwab  <schwab@suse.de>
47512             Bruno Haible  <bruno@clisp.org>
47513
47514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
47515         correct definition of LDBL_MIN_EXP.
47516
47517 2008-01-30  Karl Berry  <karl@gnu.org>
47518
47519         * config/srclist-update: try to preserve x bit on updates.
47520         * config/srclistvars.sh: update for karl.
47521
47522 2008-01-29  Jim Meyering  <meyering@redhat.com>
47523
47524         vasnprintf.c: Avoid warning about unused label
47525         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
47526         "overflow" label definition and associated code with the
47527         same cpp condition that guards the sole use of that label.
47528
47529 2008-01-26  Bruno Haible  <bruno@clisp.org>
47530
47531         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
47532         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
47533         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
47534         * lib/isnanl-nolibm.h (isnanl): Likewise.
47535         Reported by Paul Eggert <eggert@cs.ucla.edu>.
47536
47537 2008-01-26  Bruno Haible  <bruno@clisp.org>
47538
47539         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
47540         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
47541
47542 2008-01-26  Bruno Haible  <bruno@clisp.org>
47543
47544         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
47545         GCC >= 4.0 built-in.
47546         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
47547
47548 2008-01-26  Bruno Haible  <bruno@clisp.org>
47549
47550         Rename isnan, applicable to 'double' only, to isnand.
47551         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
47552         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
47553         (configure.ac): Update.
47554         (Include): Replace "isnan.h" with "isnand.h".
47555         * m4/isnand.m4: Renamed from m4/isnan.m4.
47556         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
47557         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
47558         instead of isnan.c.
47559         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
47560         instead of HAVE_ISNAN_IN_LIBC.
47561         (isnand): Renamed from isnan.
47562         * lib/isnand.c: New file.
47563         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
47564         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
47565         (Makefile.am): Update.
47566         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
47567         Include isnand.h instead of isnan.h.
47568         (main): Test isnand instead of isnan.
47569         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
47570         isnan-nolibm.
47571         * modules/frexp (Depends-on): Likewise.
47572         * modules/frexp-tests (Depends-on): Likewise.
47573         * modules/frexp-nolibm (Depends-on): Likewise.
47574         * modules/frexp-nolibm-tests (Depends-on): Likewise.
47575         * modules/isfinite (Depends-on): Likewise.
47576         * modules/round-tests (Depends-on): Likewise.
47577         * modules/signbit (Depends-on): Likewise.
47578         * modules/signbit-tests (Depends-on): Likewise.
47579         * modules/snprintf-posix (Depends-on): Likewise.
47580         * modules/sprintf-posix (Depends-on): Likewise.
47581         * modules/trunc-tests (Depends-on): Likewise.
47582         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47583         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47584         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47585         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47586         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47587         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47588         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47589         * modules/vasnprintf-posix (Depends-on): Likewise.
47590         * modules/vasprintf-posix (Depends-on): Likewise.
47591         * modules/vfprintf-posix (Depends-on): Likewise.
47592         * modules/vsnprintf-posix (Depends-on): Likewise.
47593         * modules/vsprintf-posix (Depends-on): Likewise.
47594         * lib/frexp.c: Include isnand.h instead of isnan.h.
47595         (ISNAN): Set to isnand instead of isnan.
47596         * lib/isfinite.c: Include isnand.h instead of isnan.h.
47597         (gl_isfinited): Use isnand instead of isnan.
47598         * lib/signbitd.c: Include isnand.h instead of isnan.h.
47599         (gl_signbitd): Use isnand instead of isnan.
47600         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
47601         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
47602         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
47603         (main): Use isnand instead of isnan.
47604         * tests/test-round1.c: Include isnand.h.
47605         (main): Use isnand instead of isnan.
47606         * tests/test-round2.c: Include isnand.h instead of isnan.h.
47607         (ISNAN): Set to isnand instead of isnan.
47608         * tests/test-trunc1.c: Include isnand.h.
47609         (main): Use isnand instead of isnan.
47610         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
47611         (equal): Use isnand instead of isnan.
47612         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
47613         isnand-nolibm.
47614         * NEWS: Mention the change.
47615
47616 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47617             Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
47620         the GCC builtins for signbits are present and set
47621         REPLACE_SIGNBIT_USING_GCC if so.
47622         * lib/math.in.h (signbit): Define using GCC builtins if
47623         REPLACE_SIGNBIT_USING_GCC is set.
47624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
47625         REPLACE_SIGNBIT_USING_GCC.
47626         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
47627
47628 2008-01-25  Jim Meyering  <meyering@redhat.com>
47629
47630         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
47631         * lib/poll.c: Include <config.h>, not "config.h".
47632         * tests/test-getaddrinfo.c: Likewise.
47633
47634 2008-01-25  Simon Josefsson  <simon@josefsson.org>
47635
47636         * modules/sockets-tests: New file.
47637
47638 2008-01-24  Simon Josefsson  <simon@josefsson.org>
47639
47640         * modules/sockets: New module, can be used to call WSA_Startup and
47641         WSA_Cleanup when needed.
47642
47643         * lib/sockets.h, lib/sockets.c: New files.
47644
47645         * m4/sockets.m4: New file.
47646
47647         * tests/test-sockets.c: New file.
47648
47649 2008-01-19  Bruno Haible  <bruno@clisp.org>
47650
47651         * doc/posix-headers: Renamed from doc/headers.
47652         * doc/posix-functions: Renamed from doc/functions.
47653         * doc/gnulib.texi: Update.
47654
47655 2008-01-19  Bruno Haible  <bruno@clisp.org>
47656
47657         * doc/glibc-functions/strcasestr.texi: Include contents of
47658         doc/functions/strcasestr.texi, fixing the list of platforms.
47659         * doc/functions/strcasestr.texi: Remove file.
47660
47661 2008-01-19  Bruno Haible  <bruno@clisp.org>
47662
47663         * doc/glibc-functions/memmem.texi: Include contents of
47664         doc/functions/memmem.texi.
47665         * doc/functions/memmem.texi: Remove file.
47666
47667 2008-01-18  Bruno Haible  <bruno@clisp.org>
47668
47669         * doc/glibc-functions/*.texi: New files.
47670         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
47671         to use the new files.
47672
47673 2008-01-17  Bruno Haible  <bruno@clisp.org>
47674
47675         * tests/test-gethostname.c (main): Fix printf statement.
47676
47677 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47678
47679         * modules/gethostname-tests: New file.
47680
47681         * tests/test-gethostname.c: New file.
47682
47683 2008-01-17  Simon Josefsson  <simon@josefsson.org>
47684
47685         * lib/gethostname.c: Include string.h unconditionally, strncpy is
47686         used by the UNAME case.  Reported by Bruno Haible
47687         <bruno@clisp.org>.
47688
47689 2008-01-17  Eric Blake  <ebb9@byu.net>
47690
47691         Convert c-strcasestr to be more efficient.
47692         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
47693         (Depends-on): Add c-strcase, remove malloca, strnlen.
47694         * tests/test-c-strcasestr.c (main): Enhance test.
47695         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
47696
47697 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47698
47699         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
47700         Use it in creating po/Makevars.
47701
47702 2008-01-15  Simon Josefsson  <simon@josefsson.org>
47703
47704         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
47705         Applications that requires it should initialize libgcrypt
47706         manually.
47707
47708 2008-01-16  Simon Josefsson  <simon@josefsson.org>
47709
47710         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
47711
47712 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
47713
47714         Fix problem with getdate on mingw32 reported by Simon Josefsson
47715         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
47716         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
47717         tzname", when deciding whether to declare tzname.
47718         * lib/strftime.c (tzname): Likewise.
47719
47720 2008-01-15  Bruno Haible  <bruno@clisp.org>
47721
47722         Work around a MacOS X 10.5 bug in frexpl().
47723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
47724         * doc/functions/frexpl.texi: Document the bug.
47725         Reported by Elias Pipping <pipping@gentoo.org>.
47726
47727 2008-01-14  Eric Blake  <ebb9@byu.net>
47728
47729         Touch up previous patch.
47730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
47731         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
47732
47733         Convert strcasestr module to use Two-Way algorithm.
47734         * modules/strcasestr-simple: New module, based on the old
47735         strcasestr, but with Two-Way rather than KMP.
47736         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
47737         * lib/string.in.h (rpl_strcasestr): Declare.
47738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
47739         performance.
47740         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
47741         * modules/string (Makefile.am): Support strcasestr.
47742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47743         * modules/strcasestr-tests (Depends-on): Check for alarm.
47744         * tests/test-strcasestr.c: Augment test.
47745         * lib/str-two-way.h: Clean up stray macro.
47746         * NEWS: Document new module.
47747         * MODULES.html.sh (string handling): Likewise.
47748         * doc/functions/strcasestr.texi: New file.
47749         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
47750         here, since it is not a POSIX function.
47751
47752 2008-01-14  Colin Watson  <cjwatson@debian.org>
47753             Bruno Haible  <bruno@clisp.org>
47754
47755         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
47756         works fine; if not, set REPLACE_STRSIGNAL.
47757         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
47758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47759         REPLACE_STRSIGNAL.
47760         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
47761         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
47762         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
47763
47764 2008-01-14  Bruno Haible  <bruno@clisp.org>
47765
47766         * modules/strsignal (Include): Change to <string.h>.
47767
47768 2008-01-14  Colin Watson  <cjwatson@debian.org>
47769
47770         * modules/argp (Notice): Add a notice recommending to change
47771         XGETTEXT_OPTIONS.
47772         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
47773
47774 2008-01-13  Colin Watson  <cjwatson@debian.org>
47775
47776         * modules/strsignal-tests: New file.
47777         * tests/test-strsignal.c: New file.
47778
47779         * lib/strsignal.c: New file, from glibc with modifications.
47780         * lib/siglist.h: New file, from glibc with modifications.
47781         * lib/string.in.h (strsignal): New declaration.
47782         * m4/strsignal.m4: New file.
47783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47784         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
47785         * modules/strsignal: New file.
47786         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
47787         HAVE_DECL_STRSIGNAL.
47788
47789 2008-01-13  Bruno Haible  <bruno@clisp.org>
47790
47791         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
47792         locale encoding is not ASCII. Needed for OpenBSD 4.0.
47793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47794         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47795
47796 2008-01-13  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
47799         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
47800         * lib/argp.h (__attribute__): Likewise.
47801         * lib/c-stack.c (__attribute__): Likewise.
47802         * lib/error.h (__attribute__): Likewise.
47803         * lib/fts.c (__attribute__): Likewise.
47804         * lib/openat.h (__attribute__): Likewise.
47805         * lib/stdio.in.h (__attribute__): Likewise.
47806         * lib/string.in.h (__attribute__): Likewise.
47807         * lib/utimens.c (__attribute__): Likewise.
47808         * lib/vasnprintf.h (__attribute__): Likewise.
47809         * lib/xalloc.h (__attribute__): Likewise.
47810         * lib/xprintf.h (__attribute__): Likewise.
47811         * lib/xstrtol.h (__attribute__): Likewise.
47812         * lib/xvasprintf.h (__attribute__): Likewise.
47813
47814 2008-01-12  Bruno Haible  <bruno@clisp.org>
47815
47816         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
47817         * doc/glibc-headers/a.out.texi: New file.
47818         * doc/glibc-headers/aliases.texi: New file.
47819         * doc/glibc-headers/alloca.texi: New file.
47820         * doc/glibc-headers/ar.texi: New file.
47821         * doc/glibc-headers/argp.texi: New file.
47822         * doc/glibc-headers/argz.texi: New file.
47823         * doc/glibc-headers/byteswap.texi: New file.
47824         * doc/glibc-headers/crypt.texi: New file.
47825         * doc/glibc-headers/endian.texi: New file.
47826         * doc/glibc-headers/envz.texi: New file.
47827         * doc/glibc-headers/err.texi: New file.
47828         * doc/glibc-headers/error.texi: New file.
47829         * doc/glibc-headers/execinfo.texi: New file.
47830         * doc/glibc-headers/fpu_control.texi: New file.
47831         * doc/glibc-headers/fstab.texi: New file.
47832         * doc/glibc-headers/fts.texi: New file.
47833         * doc/glibc-headers/getopt.texi: New file.
47834         * doc/glibc-headers/ieee754.texi: New file.
47835         * doc/glibc-headers/ifaddrs.texi: New file.
47836         * doc/glibc-headers/libintl.texi: New file.
47837         * doc/glibc-headers/mcheck.texi: New file.
47838         * doc/glibc-headers/mntent.texi: New file.
47839         * doc/glibc-headers/obstack.texi: New file.
47840         * doc/glibc-headers/paths.texi: New file.
47841         * doc/glibc-headers/printf.texi: New file.
47842         * doc/glibc-headers/pty.texi: New file.
47843         * doc/glibc-headers/resolv.texi: New file.
47844         * doc/glibc-headers/shadow.texi: New file.
47845         * doc/glibc-headers/sysexits.texi: New file.
47846         * doc/glibc-headers/ttyent.texi: New file.
47847
47848 2008-01-12  Jim Meyering  <meyering@redhat.com>
47849
47850         announce-gen: emit Gnulib's git-based version string.
47851         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
47852         New option --gnulib-version=V, where V is expected to be
47853         the output of running git describe in the gnulib directory.
47854         (get_tool_versions): Request feedback on xdelta.  I suspect it's
47855         not useful, and plan to stop publishing an xdelta file with each
47856         coreutils release.
47857
47858         * build-aux/announce-gen: Also check for lzma-compressed files.
47859
47860 2008-01-11  Bruno Haible  <bruno@clisp.org>
47861
47862         * tests/test-memmem.c (main): Increase maximum allowed time.
47863         * tests/test-strstr.c (main): Likewise.
47864
47865 2008-01-11  Bruno Haible  <bruno@clisp.org>
47866
47867         * doc/functions/memmem.texi: Add more precisions about platforms.
47868         * doc/functions/strstr.texi: Likewise.
47869
47870 2008-01-10  Eric Blake  <ebb9@byu.net>
47871
47872         * m4/strstr.m4: Delete cruft from copy-n-paste.
47873         Reported by Bruno Haible.
47874
47875 2008-01-10  Bruno Haible  <bruno@clisp.org>
47876
47877         Make c-strstr rely on strstr.
47878         * lib/c-strstr.c: Don't include str-kmp.h.
47879         (c_strstr): Define in terms of strstr.
47880         * modules/c-strstr (Files): Remove lib/str-kmp.h.
47881         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
47882
47883 2008-01-10  Bruno Haible  <bruno@clisp.org>
47884
47885         * doc/gnulib.texi (String Functions in C Locale): New section.
47886         * doc/c-ctype.texi: New file.
47887         * doc/c-strcase.texi: New file.
47888         * doc/c-strcaseeq.texi: New file.
47889         * doc/c-strcasestr.texi: New file.
47890         * doc/c-strstr.texi: New file.
47891         * doc/c-strtod.texi: New file.
47892         * doc/c-strtold.texi: New file.
47893
47894 2008-01-10  Eric Blake  <ebb9@byu.net>
47895
47896         * lib/relocatable.h: Fix a comment.
47897
47898 2008-01-10  Eric Blake  <ebb9@byu.net>
47899
47900         Share two-way algorithm.
47901         * lib/str-two-way.h: New file, merged from...
47902         * lib/memmem.c: ...here...
47903         * lib/strstr.c: ...and here.
47904         * modules/memmem (Files): Use it.
47905         * modules/strstr (Files): Likewise.
47906
47907         Avoid quadratic strstr implementations.
47908         * lib/strstr.c: New file.
47909         * m4/strstr.m4: Likewise.
47910         * modules/strstr: Likewise.
47911         * modules/strstr-tests: Likewise.
47912         * tests/test-strstr.c: Likewise.
47913         * lib/string.in.h (rpl_strstr): Declare.
47914         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
47915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
47916         * modules/string (Makefile.am): Likewise.
47917         * MODULES.html.sh (string handling): Mention new module.
47918         * doc/functions/strstr.texi (strstr): Document the bug.
47919
47920 2008-01-10  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/relocatable.h (relocate): State whether result is freshly
47923         allocated or not.
47924         * lib/relocatable.c (relocate): Return a freshly allocated string
47925         instead of a pointer to a privately held string.
47926         Reported by Sylvain Beucler <beuc@gnu.org>.
47927
47928 2008-01-10  Colin Watson  <cjwatson@debian.org>
47929
47930         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
47931         s/S_ISNLK/S_ISLNK/.
47932
47933 2008-01-09  Bruno Haible  <bruno@clisp.org>
47934
47935         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
47936         and other files.
47937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
47938         if it's only a guess.
47939         * modules/memmem: Simplify by depending on memmem-simple.
47940
47941 2008-01-09  Bruno Haible  <bruno@clisp.org>
47942
47943         Work around OpenBSD 4.0 tdelete() bug.
47944         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
47945         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
47946         macros and don't redefine the enum values.
47947         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
47948         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
47949         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
47950
47951 2008-01-09  Bruno Haible  <bruno@clisp.org>
47952
47953         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
47954         (main): Don't perform the tests if setlocale did not install a UTF-8
47955         locale. Needed on OpenBSD 4.0.
47956         * modules/wcwidth-tests (Depends-on): Add localcharset.
47957
47958 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
47961         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
47962         * NEWS: announce this.
47963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
47964
47965 2008-01-09  Simon Josefsson  <simon@josefsson.org>
47966         and Eric Blake  <ebb9@byu.net>
47967
47968         Add memmem-simple module.
47969         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
47970         (gl_FUNC_MEMMEM): Separate performance from presence checks.
47971         * modules/memmem-simple: New file.
47972         * modules/memmem (Description): Tweak.
47973         * MODULES.html.sh (string handling): Mention new module.
47974         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
47975         addressed by memmem-simple.
47976         * NEWS: Document the difference.
47977
47978 2008-01-09  Eric Blake  <ebb9@byu.net>
47979
47980         Give gcc some memmem optimization hints.
47981         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
47982         (strcasestr): Declare as pure.
47983         * modules/memmem (Maintainer): Claim my implementation.
47984
47985 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47986
47987         Support AIX 6.1 and higher.
47988         * build-aux/config.libpath: Likewise.
47989         * build-aux/config.rpath: Likewise.
47990
47991 2008-01-08  Jim Meyering  <meyering@redhat.com>
47992             Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
47995         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
47996         Reported by Peter Fales in
47997         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
47998
47999 2008-01-08  Bruno Haible  <bruno@clisp.org>
48000
48001         * modules/unictype/category-of (Depends-on): Add
48002         unictype/category-none.
48003         * modules/unictype/category-and-tests (Depends-on): Add
48004         unictype/category-{L,N,Lu,Nd}.
48005         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48006         * modules/unictype/category-or-tests (Depends-on): Add
48007         unictype/category-{L,N}.
48008         * modules/unictype/category-name-tests (Depends-on): Add
48009         unictype/category-{Z,Nl}.
48010         Reported by Simon Josefsson.
48011
48012 2008-01-08  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48015         convention better.
48016         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48017         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48018         Reported by Peter Miller <millerp@canb.auug.org.au>.
48019
48020 2008-01-08  Eric Blake  <ebb9@byu.net>
48021
48022         Rewrite memmem to guarantee linear complexity without malloc.
48023         * lib/memmem.c (memmem): Use Two-Way rather than
48024         Knuth-Morris-Pratt, to allow O(1) space usage.
48025         (critical_factorization, two_way_short_needle)
48026         (two_way_long_needle): New functions.
48027         (knuth_morris_pratt): Delete.
48028         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48029         Add stdint.
48030         * tests/test-memmem.c (main): Add tests for periodic needle and
48031         sublinear performance.
48032         * doc/functions/memmem.texi (memmem): Document other deficiencies
48033         in cygwin and older glibc.
48034
48035 2008-01-08  Bruno Haible  <bruno@clisp.org>
48036
48037         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48038         augmentation.
48039
48040 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48041
48042         Add a configure time option: --disable-acl.
48043         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48044         AC_ARG_ENABLE(acl).
48045
48046 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48047
48048         * tests/test-localename.c: Don't include obsolete "setenv.h".
48049
48050         * modules/localename-tests (Depends-on): Need unsetenv.
48051
48052 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48053
48054         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48055
48056 2008-01-06  Colin Watson  <cjwatson@debian.org>
48057
48058         * users.txt: Add man-db.
48059
48060 2008-01-07  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48063         previous section name.
48064
48065 2008-01-07  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/progname.c (set_program_name): Don't strip off a leading
48068         "lt-" prefix outside a .libs directory.
48069         Suggested by Paul Eggert.
48070
48071 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48072             Bruno Haible  <bruno@clisp.org>
48073
48074         Improve memory cleanup in 'relocatable' module.
48075         * lib/relocatable.h (compute_curr_prefix): Change return type to
48076         'char *'.
48077         * lib/relocatable.c (compute_curr_prefix): Change return type to
48078         'char *'. Free curr_installdir after use.
48079         (relocate): Free curr_prefix_better after use.
48080         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48081
48082 2008-01-01  Bruno Haible  <bruno@clisp.org>
48083
48084         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48085         failure on older glibc systems.
48086         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48087
48088 2008-01-05  Eric Blake  <ebb9@byu.net>
48089
48090         Avoid quadratic system memmem.
48091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48092         Reported by Ralf Wildenhues.
48093
48094         Fix memmem test for mingw.
48095         * modules/memmem-tests (configure.ac): Check for alarm.
48096         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48097         it.
48098         * doc/functions/memmem.texi: New file.
48099         * doc/gnulib.texi (Function Substitutes): Add memmem.
48100         Reported by Bruno Haible.
48101
48102 2008-01-04  Bruno Haible  <bruno@clisp.org>
48103
48104         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48105         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48106         gl_HEADER_STRING_H_DEFAULTS.
48107
48108 2008-01-04  Eric Blake  <ebb9@byu.net>
48109
48110         Shorten duration of memmem test.
48111         * tests/test-memmem.c (main): Use alarm to declare failure if test
48112         is taking too long.
48113         Reported by Ralf Wildenhues.
48114
48115 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48116
48117         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48118         string, needed by strerror.
48119
48120 2008-01-03  Colin Watson  <cjwatson@debian.org>
48121             Bruno Haible  <bruno@clisp.org>
48122
48123         * doc/gnulib-tool.texi (Localization): New section.
48124
48125 2008-01-02  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48128         variables to 'unsigned char *' type.
48129         Reported by Paul Eggert.
48130
48131 2008-01-02  Jim Meyering  <jim@meyering.net>
48132
48133         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48134
48135 2007-12-31  Jim Meyering  <jim@meyering.net>
48136
48137         Avoid use of private FTS type name.
48138         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48139
48140 2007-12-30  Karl Berry  <karl@gnu.org>
48141
48142         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48143         work around defect in Texinfo and/or the standalone Info browser.
48144
48145 2007-12-30  Bruno Haible  <bruno@clisp.org>
48146
48147         Unify 5 copies of the KMP code.
48148         * lib/str-kmp.h: New file.
48149         * lib/c-strcasestr.c: Include str-kmp.h.
48150         (knuth_morris_pratt): Remove function.
48151         (c_strcasestr): Update.
48152         * lib/c-strstr.c: Include str-kmp.h.
48153         (knuth_morris_pratt): Remove function.
48154         (c_strcasestr): Update.
48155         * lib/mbscasestr.c: Include str-kmp.h.
48156         (knuth_morris_pratt_unibyte): Remove function.
48157         * lib/mbsstr.c: Include str-kmp.h.
48158         (knuth_morris_pratt_unibyte): Remove function.
48159         * lib/strcasestr.c: Include str-kmp.h.
48160         (knuth_morris_pratt): Remove function.
48161         (strcasestr): Update.
48162         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48163         * modules/c-strstr (Files): Likewise.
48164         * modules/mbscasestr (Files): Likewise.
48165         * modules/mbsstr (Files): Likewise.
48166         * modules/strcasestr (Files): Likewise.
48167         Suggested by Paul Eggert.
48168
48169 2007-12-30  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48172         defined.
48173
48174 2007-12-30  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/xmalloca.h: Include xalloc.h.
48177         (xnmalloca): New macro.
48178
48179 2007-12-30  Bruno Haible  <bruno@clisp.org>
48180
48181         * lib/malloca.h (nmalloca): New macro.
48182         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48183         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48184         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48185         knuth_morris_pratt_multibyte): Likewise.
48186         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48187         knuth_morris_pratt_multibyte): Likewise.
48188         * lib/memmem.c (knuth_morris_pratt): Likewise.
48189         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48190
48191 2007-12-25  Bruno Haible  <bruno@clisp.org>
48192
48193         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48194         * lib/glob.c: Don't include openat.h.
48195         (link_exists2_p): Add back the code that deals with the
48196         !GLOB_ALTDIRFUNC case.
48197         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48198         let it do the filename concatenation.
48199         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48200         * modules/glob (Depends-on): Remove openat.
48201
48202 2007-12-31  Bruno Haible  <bruno@clisp.org>
48203
48204         * modules/dirfd (License): Change to LGPLv2+.
48205         Approved by Jim Meyering.
48206
48207 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48208
48209         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48210         when multiplying M by sizeof (size_t).
48211
48212 2007-12-10  Martin Lambers  <marlam@marlam.de>
48213
48214         Override getpagesize on mingw.
48215         * lib/getpagesize.c: New file.
48216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48217         * modules/getpagesize (Files): Add lib/getpagesize.c.
48218         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48220         REPLACE_GETPAGESIZE.
48221         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48222
48223 2007-12-25  Bruno Haible  <bruno@clisp.org>
48224
48225         * modules/localcharset (Notice): New field.
48226         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48227         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48228
48229 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48230             Bruno Haible  <bruno@clisp.org>
48231
48232         Avoid using the syntax symbol() in formatted documentation.
48233         * MODULES.html.sh (func_module): When replacing symbol() with a
48234         hyperlink, remove the parentheses. Show an error if some remain.
48235         Recognize and render the '...' syntax.
48236         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48237         Rework. Add paragraph about GCC's inlining.
48238         * doc/alloca.texi: Likewise.
48239         * doc/error.texi: Remove parentheses from symbol reference.
48240         * doc/gnulib-intro.texi: Likewise.
48241         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48242         * modules/fnmatch (Description): Reword to say "the ... function".
48243         * modules/full-read (Description): Likewise.
48244         * modules/full-write (Description): Likewise.
48245         * modules/safe-read (Description): Likewise.
48246         * modules/safe-write (Description): Likewise.
48247         * modules/strchrnul (Description): Likewise.
48248         * modules/trim (Description): Likewise.
48249         * modules/error (Description): Remove parentheses from symbol
48250         references.
48251         * modules/verror (Description): Likewise.
48252         Reported by Karl Berry.
48253
48254 2007-12-25  Bruno Haible  <bruno@clisp.org>
48255
48256         Fixup after 2007-10-16 commit.
48257         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48258
48259 2007-12-24  Bruno Haible  <bruno@clisp.org>
48260
48261         Make --enable-relocatable work with DESTDIR.
48262         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48263         to compute installdir from destprog.
48264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48265         also set the RELOC_DESTDIR variable.
48266         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
48267
48268 2007-12-24  Bruno Haible  <bruno@clisp.org>
48269
48270         Fix link error due to xalloc_die().
48271         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48272         of xreadlink.
48273         * lib/relocwrapper.c: Update comments.
48274         * build-aux/install-reloc: Remove xreadlink.c from file list.
48275         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48276         xreadlink.c.
48277         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
48278
48279 2007-12-24  Bruno Haible  <bruno@clisp.org>
48280
48281         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48282         * lib/setenv.h: Remove file.
48283         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48284         lib/setenv.h.
48285         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48286         (Depends-on): Add stdlib.
48287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48288         gl_FUNC_UNSETENV.
48289         (Include): Replace setenv.h with <stdlib.h>.
48290         * modules/unsetenv: New file.
48291         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48292         * lib/unsetenv.c: Include <stdlib.h> first.
48293         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48294         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48295         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48296         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48297         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48298         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48300         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48301         * doc/functions/unsetenv.texi: Update.
48302         * modules/xsetenv (Depends-on): Add unsetenv.
48303         * modules/getdate (Depends-on): Likewise.
48304         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48305         * lib/xsetenv.c: Don't include setenv.h.
48306         * lib/getdate.y: Likewise.
48307         * lib/relocwrapper.c: Likewise.
48308         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48309         (Depends-on): Add stdlib.
48310         * NEWS: Mention the changes.
48311         Reported by Đ›ĐµĐ²Đ°ÑˆĐµĐ² Đ˜Đ²Đ°Đ½ <octagram@bluebottle.com>.
48312
48313 2007-12-23  Bruno Haible  <bruno@clisp.org>
48314
48315         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48316         indentation.
48317
48318 2007-12-23  Bruno Haible  <bruno@clisp.org>
48319
48320         * lib/c-strcasestr.c: Add more comments.
48321         * lib/c-strstr.c: Likewise.
48322         * lib/mbscasestr.c: Likewise.
48323         * lib/mbsstr.c: Likewise.
48324         * lib/strcasestr.c: Likewise.
48325         * lib/memmem.c: Likewise.
48326
48327 2007-12-23  Bruno Haible  <bruno@clisp.org>
48328
48329         * tests/test-memmem.c: Include <string.h> first.
48330
48331 2007-12-22  Bruno Haible  <bruno@clisp.org>
48332
48333         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48334         the contents of $testsbase.
48335         Reported by Ralf Wildenhues.
48336
48337 2007-12-22  Bruno Haible  <bruno@clisp.org>
48338
48339         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48340         two variables local_ldadd_before, local_ldadd_last.
48341
48342 2007-12-20  Eric Blake  <ebb9@byu.net>
48343
48344         Work around circular library issue when cross-compiling.
48345         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48346         that progname.o does not need to pull in rpl_memcmp.
48347
48348 2007-12-19  Eric Blake  <ebb9@byu.net>
48349
48350         Fix memmem to avoid O(n^2) worst-case complexity.
48351         * lib/memmem.c (knuth_morris_pratt): New function.
48352         (memmem): Use it if first few naive iterations fail.
48353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48354         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48355         * modules/memchr (License): Likewise.
48356         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48357         malloca.
48358         * tests/test-memmem.c: Rewrite, borrowing ideas from
48359         test-mbsstr1.c; the old version wouldn't even compile!
48360         * modules/memmem-tests: New file.
48361         * lib/string.in.h (rpl_memmem): Add declaration.
48362         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48364         REPLACE_MEMMEM.
48365
48366 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48367
48368         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48369         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48370         before any system include files, and undef after them all.  This
48371         should fix a problem on VMS reported by John E. Malmberg in
48372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48373
48374 2007-12-17  Eric Blake  <ebb9@byu.net>
48375
48376         Revert addition of verify, for BSD/OS.
48377         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48378         can't handle large files, for the sake of obsolete platforms.
48379         * modules/fseeko (Depends-on): Remove verify.
48380         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48381         * doc/functions/ftello.texi (ftello): Likewise.
48382         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48383         Reported by Larry Jones.
48384
48385 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48386
48387         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48388         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48389
48390 2007-12-17  Jim Meyering  <meyering@redhat.com>
48391
48392         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48393         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48394         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48395         * modules/getcwd (Depends-on): Add openat.
48396         Reported by Petr Salinger.
48397
48398 2007-12-17  Bruno Haible  <bruno@clisp.org>
48399
48400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48401         avoid a segmentation fault of the configure test on x86_64 systems.
48402
48403 2007-12-15  Jim Meyering  <meyering@redhat.com>
48404
48405         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48406
48407 2007-12-13  Eric Blake  <ebb9@byu.net>
48408
48409         Another fseek test.
48410         * tests/test-fseek.c (main): Also test ungetc handling.
48411         * tests/test-fseeko.c (main): Likewise.
48412         * modules/fseeko (Depends-on): Add verify.
48413         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48414         large.
48415         Reported by Larry Jones.
48416
48417         Fix fseeko on mingw.
48418         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48419         seek.
48420
48421         Beef up fseek tests.
48422         * tests/test-fseek.c (main): Also test eof handling.
48423         * tests/test-fseeko.c (main): Likewise.
48424         Reported by Larry Jones.
48425
48426 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48427
48428         Fix fseeko on BSD-based platforms.
48429         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48430         successful seek.
48431
48432 2007-12-12  Eric Blake  <ebb9@byu.net>
48433
48434         Allow circular dependency of separate libtests.a
48435         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48436         when use_libtests.
48437
48438 2007-12-11  Eric Blake  <ebb9@byu.net>
48439
48440         Fix bug with -0.0L in previous patch.
48441         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48442         * tests/test-isnan.c (main): Also test on zeroes.
48443         * tests/test-isnanf.c (main): Likewise.
48444         * tests/test-isnanl.h (main): Likewise.
48445
48446         Detect pseudo-denormals on x86 even when cross-compiling.
48447         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48448         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48449         invalid bit patterns that happen to satisfy ==.
48450
48451         Avoid link failures with separate libtests.a.
48452         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48453         last, to satisfy circular dependencies.
48454
48455 2007-12-11  Eric Blake  <ebb9@byu.net>
48456         and Bruno Haible  <bruno@clisp.org>
48457
48458         Fix OpenBSD 4.0 <float.h> handling of long double.
48459         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48460         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48461         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48462
48463 2007-12-11  Jim Meyering  <meyering@redhat.com>
48464
48465         * users.txt: Add libvirt.
48466
48467         Support versions of autoconf prior to 2.59c.
48468         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
48469         if it is not already defined.
48470
48471 2007-12-09  Bruno Haible  <bruno@clisp.org>
48472
48473         Let 'gnulib-tool --import' collect sources needed for the tests in
48474         tests/ rather than in lib/.
48475         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
48476         argument. If true, add rules to generate libtests.a, and put libtests.a
48477         into $(LDADD). Consider source files in subdirectories and set
48478         uses_subdirs.
48479         (func_emit_initmacro_start, func_emit_initmacro_end,
48480         func_emit_initmacro_done): Pass all arguments explicitly.
48481         (func_import): Determine two module lists main_modules,
48482         testsrelated_modules. Determine use_libtests. Determine two variables
48483         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
48484         instead of just sed_transform_lib_file. Determine two variables
48485         main_files and testsrelated_files. Compute 'files' as the union of
48486         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
48487         func_add_or_update. In the generated gnulib-comp.m4, collect the
48488         object files for tests/ in different variables than those for lib/.
48489         Substitute LIBTESTS_LIBDEPS.
48490         (func_create_testdir): Combine the uses_subdirs results from
48491         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
48492
48493 2007-12-09  Bruno Haible  <bruno@clisp.org>
48494
48495         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
48496         the build-aux directory.
48497
48498 2007-12-09  Bruno Haible  <bruno@clisp.org>
48499
48500         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
48501         introduced on 2006-09-09.
48502
48503 2007-12-07  Jim Meyering  <meyering@redhat.com>
48504
48505         Let these macros work also with autoconf-2.59.
48506         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
48507         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
48508         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48509
48510 2007-12-06  Jim Meyering  <meyering@redhat.com>
48511
48512         Avoid a configure-time syntax error in gl_FUNC_ACL.
48513         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
48514         function in each branch, before testing the cache variable.
48515
48516 2007-12-04  Eric Blake  <ebb9@byu.net>
48517
48518         Make scripts executable.
48519         * build-aux/config.guess: Add execute permissions.
48520         * build-aux/config.sub: Likewise.
48521         * build-aux/gendocs.sh: Likewise.
48522
48523         Fix frexp on mingw.
48524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
48525         cross-compiling.
48526         * doc/functions/frexp.texi (frexp): Document the bug.
48527
48528         Make cygwin fseeko check more reliable.
48529         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
48530         version numbers, rather than unrelated feature check.
48531         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
48532         * doc/functions/ftello.texi (ftello): Likewise.
48533         Reported by Bruno Haible.
48534
48535         * m4/strerror.m4: Bump version number.
48536
48537 2007-12-03  Bruno Haible  <bruno@clisp.org>
48538
48539         * doc/functions/mprotect.texi: Mention the mingw problem.
48540
48541 2007-12-03  Eric Blake  <ebb9@byu.net>
48542
48543         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
48544         REPLACE_STRERROR is initialized before this macro.
48545
48546 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48547
48548         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
48549         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
48550         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
48551         put -lsec in even for programs other than 'ls'.  This fixes a problem
48552         for gettext reported by Bruno Haible in
48553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
48554         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
48555         Add support for Solaris 10.  This isn't efficient, but should get the
48556         job done for now.
48557
48558 2007-12-03  James Youngman  <jay@gnu.org>
48559
48560         * doc/regexprops-generic.texi: change "an close-group" to "a
48561         close-group" and "illegal" to "not allowed".
48562
48563 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48564
48565         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
48566         pr_byname.h. Needed for the rare case when the maintainer has done
48567         "make maintainer-clean" in the source directory and then attempts a
48568         build outside the source directory.
48569         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
48570         scripts_byname.h.
48571
48572 2007-12-02  Martin Lambers <marlam@marlam.de>
48573             Bruno Haible  <bruno@clisp.org>
48574
48575         * lib/getpagesize.h: Remove file.
48576         * lib/unistd.in.h: Include declaration of getpagesize here.
48577         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
48578         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
48579         HAVE_SYS_PARAM_H.
48580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
48581         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48582         * modules/getpagesize (Files): Remove lib/getpagesize.h.
48583         (Depends-on): Add unistd.
48584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48585         (Include): Use <unistd.h> instead of getpagesize.h.
48586         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
48587         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
48588         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
48589         gl_GETPAGESIZE invocation, already handled by module dependency.
48590         * lib/pagealign_alloc.c: Don't include getpagesize.h.
48591
48592 2007-12-02  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/strings-tests: New file.
48595         * tests/test-strings.c: New file.
48596
48597         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
48598         * lib/strings.in.h: New file.
48599         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
48600         * m4/strings_h.m4: New file.
48601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
48602         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
48603         * modules/strings: New file.
48604         * modules/string (Makefile.am): Update.
48605         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
48606         Reported by Karl Berry.
48607
48608 2007-12-01  Eric Blake  <ebb9@byu.net>
48609
48610         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
48611         accomodate fix in cygwin 1.5.25.
48612
48613 2007-12-01  Jim Meyering  <meyering@redhat.com>
48614
48615         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
48616         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
48617         that would inhibit utf8-optimization of a regexp containing line-
48618         or buffer-anchors, e.g., `^', `$'.
48619
48620 2007-11-30  Bruno Haible  <bruno@clisp.org>
48621
48622         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
48623         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
48624         glthread_recursive_lock_init.
48625         * lib/lock.c (glthread_recursive_lock_init)
48626         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
48627         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48628
48629 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
48630
48631         New function qset_acl, like set_acl but with syscall semantics.
48632         * lib/acl.h (qset_acl): New decl.
48633         * lib/acl.c (qset_acl): New function.
48634         (set_acl): Use new function.  Use more-consistent diagnostics.
48635
48636 2007-11-28  Jim Meyering  <meyering@redhat.com>
48637
48638         * modules/physmem (License): Change from GPL to LGPLv2+.
48639
48640 2007-11-26  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/vasnprintf.c (decode_long_double): Don't abort if the
48643         'long double' type has excess precision.
48644         Reported by Jim Meyering in
48645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
48646
48647 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48648
48649         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
48650         Sync from <http://gnu.org/licenses>.
48651         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
48652         with license text from same location.
48653         * doc/maintain.texi, doc/standards.texi:  Sync from
48654         <http://savannah.gnu.org/projects/gnustandards>.
48655
48656 2007-11-22  OndÅ™ej VaÅ¡Ă­k  <ovasik@redhat.com>
48657         and Jim Meyering  <meyering@redhat.com>
48658
48659         Adjust getdate' grammar to accept a slightly more regular language.
48660         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
48661         Before, the former was rejected.
48662         * lib/getdate.y (digits_to_date_time): New function, factored
48663         out of ...
48664         (number): ...here.  Just call digits_to_date_time.
48665         (hybrid): New non-terminal to handle an <unsigned number,
48666         signed relative offset> sequence consistently.
48667
48668 2007-11-18  Jim Meyering  <meyering@redhat.com>
48669
48670         Pull my changes from coreutils:
48671         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
48672         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
48673         use of $gnulib_tool_option_extras, so that it's separated from the
48674         preceding argument.
48675
48676         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
48677         * build-aux/bootstrap (cp_mark_as_generated): Create any required
48678         parent destination directories before copying a file into place.
48679
48680 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48681
48682         bootstrap: work also with 4-argument variant of AC_INIT
48683         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
48684
48685 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48686
48687         Port test-getaddrinfo to Solaris.
48688         Problem reported by Bruno Haible in
48689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
48690         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
48691         explanation of setting 'hints'.
48692         Don't reject an implementation merely because it returns EAI_SERVICE.
48693         (EAI_SERVICE): Define to 0 if not defined.
48694
48695 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         The license of gnu-make and posix-shell is now "GPLed build tool".
48698         * modules/gnu-make (License): Likewise.
48699         * modules/posix-shell (License): Likewise.
48700
48701         New module posix-shell, for determining a POSIX shell
48702         or perhaps something that is close enough to a POSIX shell.
48703         * m4/posix-shell.m4: New file.
48704         * modules/posix-shell: New file.
48705
48706         * MODULES.html.sh: Mention new module.
48707
48708         New module gnu-make, for determining whether we're using GNU Make.
48709         * m4/gnu-make.m4: New file.
48710         * modules/gnu-make: New file.
48711         * MODULES.html.sh: Mention new module.
48712
48713 2007-11-14  Jim Meyering  <meyering@redhat.com>
48714
48715         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
48716         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
48717         use this macro to create a function _definition_.
48718         Remove useless "#undef ARGMATCH_DIE".
48719
48720 2007-11-14  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/config.charset: Update for OpenBSD 4.1.
48723         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
48724
48725 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
48726
48727         Document 64-bit #if problems in stdint.texi.
48728         * doc/headers/stdint.texi (stdint.h): Mention problems with
48729         64-bit-#if, and how to work around them.
48730
48731         Don't insist on 'long long int' support in the preprocessor.  It
48732         breaks too many things.  For example, PRIdMAX still uses a 'long
48733         long int' format with the latest Sun compiler, even though
48734         HAVE_LONG_LONG_INT isn't defined due to that compiler's
48735         preprocessor problem.  This causes the latest coreutils to dump
48736         core on Solaris 10 sparc with the Sun C compiler.
48737         Instead, fix the 2007-10-16 problem in a different way, by evaluating
48738         the troublesome expressions at configure-time, not at #if-time.
48739         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
48740         preprocessor.
48741         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
48742         compile-time C checks, done at 'configure'-time.
48743         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
48744         * modules/inttypes (Makefile): Substitute the new symbols that
48745         gl_INTTYPES_H now generates.
48746         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
48747
48748 2007-11-12  Bruno Haible  <bruno@clisp.org>
48749
48750         Tests for Unicode character classification functions.
48751
48752         * modules/unictype/bidicategory-byname-tests: New file.
48753         * modules/unictype/bidicategory-name-tests: New file.
48754         * modules/unictype/bidicategory-of-tests: New file.
48755         * modules/unictype/bidicategory-test-tests: New file.
48756         * modules/unictype/block-list-tests: New file.
48757         * modules/unictype/block-of-tests: New file.
48758         * modules/unictype/block-test-tests: New file.
48759         * modules/unictype/category-C-tests: New file.
48760         * modules/unictype/category-Cc-tests: New file.
48761         * modules/unictype/category-Cf-tests: New file.
48762         * modules/unictype/category-Cn-tests: New file.
48763         * modules/unictype/category-Co-tests: New file.
48764         * modules/unictype/category-Cs-tests: New file.
48765         * modules/unictype/category-L-tests: New file.
48766         * modules/unictype/category-Ll-tests: New file.
48767         * modules/unictype/category-Lm-tests: New file.
48768         * modules/unictype/category-Lo-tests: New file.
48769         * modules/unictype/category-Lt-tests: New file.
48770         * modules/unictype/category-Lu-tests: New file.
48771         * modules/unictype/category-M-tests: New file.
48772         * modules/unictype/category-Mc-tests: New file.
48773         * modules/unictype/category-Me-tests: New file.
48774         * modules/unictype/category-Mn-tests: New file.
48775         * modules/unictype/category-N-tests: New file.
48776         * modules/unictype/category-Nd-tests: New file.
48777         * modules/unictype/category-Nl-tests: New file.
48778         * modules/unictype/category-No-tests: New file.
48779         * modules/unictype/category-P-tests: New file.
48780         * modules/unictype/category-Pc-tests: New file.
48781         * modules/unictype/category-Pd-tests: New file.
48782         * modules/unictype/category-Pe-tests: New file.
48783         * modules/unictype/category-Pf-tests: New file.
48784         * modules/unictype/category-Pi-tests: New file.
48785         * modules/unictype/category-Po-tests: New file.
48786         * modules/unictype/category-Ps-tests: New file.
48787         * modules/unictype/category-S-tests: New file.
48788         * modules/unictype/category-Sc-tests: New file.
48789         * modules/unictype/category-Sk-tests: New file.
48790         * modules/unictype/category-Sm-tests: New file.
48791         * modules/unictype/category-So-tests: New file.
48792         * modules/unictype/category-Z-tests: New file.
48793         * modules/unictype/category-Zl-tests: New file.
48794         * modules/unictype/category-Zp-tests: New file.
48795         * modules/unictype/category-Zs-tests: New file.
48796         * modules/unictype/category-and-not-tests: New file.
48797         * modules/unictype/category-and-tests: New file.
48798         * modules/unictype/category-byname-tests: New file.
48799         * modules/unictype/category-name-tests: New file.
48800         * modules/unictype/category-none-tests: New file.
48801         * modules/unictype/category-of-tests: New file.
48802         * modules/unictype/category-or-tests: New file.
48803         * modules/unictype/category-test-withtable-tests: New file.
48804         * modules/unictype/combining-class-tests: New file.
48805         * modules/unictype/ctype-alnum-tests: New file.
48806         * modules/unictype/ctype-alpha-tests: New file.
48807         * modules/unictype/ctype-blank-tests: New file.
48808         * modules/unictype/ctype-cntrl-tests: New file.
48809         * modules/unictype/ctype-digit-tests: New file.
48810         * modules/unictype/ctype-graph-tests: New file.
48811         * modules/unictype/ctype-lower-tests: New file.
48812         * modules/unictype/ctype-print-tests: New file.
48813         * modules/unictype/ctype-punct-tests: New file.
48814         * modules/unictype/ctype-space-tests: New file.
48815         * modules/unictype/ctype-upper-tests: New file.
48816         * modules/unictype/ctype-xdigit-tests: New file.
48817         * modules/unictype/decimal-digit-tests: New file.
48818         * modules/unictype/digit-tests: New file.
48819         * modules/unictype/mirror-tests: New file.
48820         * modules/unictype/numeric-tests: New file.
48821         * modules/unictype/property-alphabetic-tests: New file.
48822         * modules/unictype/property-ascii-hex-digit-tests: New file.
48823         * modules/unictype/property-bidi-arabic-digit-tests: New file.
48824         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
48825         * modules/unictype/property-bidi-block-separator-tests: New file.
48826         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
48827         * modules/unictype/property-bidi-common-separator-tests: New file.
48828         * modules/unictype/property-bidi-control-tests: New file.
48829         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
48830         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
48831         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
48832         * modules/unictype/property-bidi-european-digit-tests: New file.
48833         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
48834         * modules/unictype/property-bidi-left-to-right-tests: New file.
48835         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
48836         * modules/unictype/property-bidi-other-neutral-tests: New file.
48837         * modules/unictype/property-bidi-pdf-tests: New file.
48838         * modules/unictype/property-bidi-segment-separator-tests: New file.
48839         * modules/unictype/property-bidi-whitespace-tests: New file.
48840         * modules/unictype/property-byname-tests: New file.
48841         * modules/unictype/property-combining-tests: New file.
48842         * modules/unictype/property-composite-tests: New file.
48843         * modules/unictype/property-currency-symbol-tests: New file.
48844         * modules/unictype/property-dash-tests: New file.
48845         * modules/unictype/property-decimal-digit-tests: New file.
48846         * modules/unictype/property-default-ignorable-code-point-tests: New file.
48847         * modules/unictype/property-deprecated-tests: New file.
48848         * modules/unictype/property-diacritic-tests: New file.
48849         * modules/unictype/property-extender-tests: New file.
48850         * modules/unictype/property-format-control-tests: New file.
48851         * modules/unictype/property-grapheme-base-tests: New file.
48852         * modules/unictype/property-grapheme-extend-tests: New file.
48853         * modules/unictype/property-grapheme-link-tests: New file.
48854         * modules/unictype/property-hex-digit-tests: New file.
48855         * modules/unictype/property-hyphen-tests: New file.
48856         * modules/unictype/property-id-continue-tests: New file.
48857         * modules/unictype/property-id-start-tests: New file.
48858         * modules/unictype/property-ideographic-tests: New file.
48859         * modules/unictype/property-ids-binary-operator-tests: New file.
48860         * modules/unictype/property-ids-trinary-operator-tests: New file.
48861         * modules/unictype/property-ignorable-control-tests: New file.
48862         * modules/unictype/property-iso-control-tests: New file.
48863         * modules/unictype/property-join-control-tests: New file.
48864         * modules/unictype/property-left-of-pair-tests: New file.
48865         * modules/unictype/property-line-separator-tests: New file.
48866         * modules/unictype/property-logical-order-exception-tests: New file.
48867         * modules/unictype/property-lowercase-tests: New file.
48868         * modules/unictype/property-math-tests: New file.
48869         * modules/unictype/property-non-break-tests: New file.
48870         * modules/unictype/property-not-a-character-tests: New file.
48871         * modules/unictype/property-numeric-tests: New file.
48872         * modules/unictype/property-other-alphabetic-tests: New file.
48873         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
48874         * modules/unictype/property-other-grapheme-extend-tests: New file.
48875         * modules/unictype/property-other-id-continue-tests: New file.
48876         * modules/unictype/property-other-id-start-tests: New file.
48877         * modules/unictype/property-other-lowercase-tests: New file.
48878         * modules/unictype/property-other-math-tests: New file.
48879         * modules/unictype/property-other-uppercase-tests: New file.
48880         * modules/unictype/property-paired-punctuation-tests: New file.
48881         * modules/unictype/property-paragraph-separator-tests: New file.
48882         * modules/unictype/property-pattern-syntax-tests: New file.
48883         * modules/unictype/property-pattern-white-space-tests: New file.
48884         * modules/unictype/property-private-use-tests: New file.
48885         * modules/unictype/property-punctuation-tests: New file.
48886         * modules/unictype/property-quotation-mark-tests: New file.
48887         * modules/unictype/property-radical-tests: New file.
48888         * modules/unictype/property-sentence-terminal-tests: New file.
48889         * modules/unictype/property-soft-dotted-tests: New file.
48890         * modules/unictype/property-space-tests: New file.
48891         * modules/unictype/property-terminal-punctuation-tests: New file.
48892         * modules/unictype/property-test-tests: New file.
48893         * modules/unictype/property-titlecase-tests: New file.
48894         * modules/unictype/property-unassigned-code-value-tests: New file.
48895         * modules/unictype/property-unified-ideograph-tests: New file.
48896         * modules/unictype/property-uppercase-tests: New file.
48897         * modules/unictype/property-variation-selector-tests: New file.
48898         * modules/unictype/property-white-space-tests: New file.
48899         * modules/unictype/property-xid-continue-tests: New file.
48900         * modules/unictype/property-xid-start-tests: New file.
48901         * modules/unictype/property-zero-width-tests: New file.
48902         * modules/unictype/scripts-tests: New file.
48903         * modules/unictype/syntax-c-ident-tests: New file.
48904         * modules/unictype/syntax-c-whitespace-tests: New file.
48905         * modules/unictype/syntax-java-ident-tests: New file.
48906         * modules/unictype/syntax-java-whitespace-tests: New file.
48907         * tests/unictype/test-bidi_byname.c: New file.
48908         * tests/unictype/test-bidi_name.c: New file.
48909         * tests/unictype/test-bidi_of.c: New file.
48910         * tests/unictype/test-bidi_test.c: New file.
48911         * tests/unictype/test-block_list.c: New file.
48912         * tests/unictype/test-block_of.c: New file.
48913         * tests/unictype/test-block_test.c: New file.
48914         * tests/unictype/test-categ_and.c: New file.
48915         * tests/unictype/test-categ_and_not.c: New file.
48916         * tests/unictype/test-categ_byname.c: New file.
48917         * tests/unictype/test-categ_name.c: New file.
48918         * tests/unictype/test-categ_none.c: New file.
48919         * tests/unictype/test-categ_of.c: New file.
48920         * tests/unictype/test-categ_or.c: New file.
48921         * tests/unictype/test-categ_test_withtable.c: New file.
48922         * tests/unictype/test-combining.c: New file.
48923         * tests/unictype/test-decdigit.c: New file.
48924         * tests/unictype/test-digit.c: New file.
48925         * tests/unictype/test-mirror.c: New file.
48926         * tests/unictype/test-numeric.c: New file.
48927         * tests/unictype/test-pr_byname.c: New file.
48928         * tests/unictype/test-pr_test.c: New file.
48929         * tests/unictype/test-predicate-part1.h: New file.
48930         * tests/unictype/test-predicate-part2.h: New file.
48931         * tests/unictype/test-scripts.c: New file.
48932         * tests/unictype/test-sy_c_ident.c: New file.
48933         * tests/unictype/test-sy_java_ident.c: New file.
48934
48935         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
48936         for Unicode 5.0.0.
48937         * tests/unictype/test-categ_Cc.c: Likewise.
48938         * tests/unictype/test-categ_Cf.c: Likewise.
48939         * tests/unictype/test-categ_Cn.c: Likewise.
48940         * tests/unictype/test-categ_Co.c: Likewise.
48941         * tests/unictype/test-categ_Cs.c: Likewise.
48942         * tests/unictype/test-categ_L.c: Likewise.
48943         * tests/unictype/test-categ_Ll.c: Likewise.
48944         * tests/unictype/test-categ_Lm.c: Likewise.
48945         * tests/unictype/test-categ_Lo.c: Likewise.
48946         * tests/unictype/test-categ_Lt.c: Likewise.
48947         * tests/unictype/test-categ_Lu.c: Likewise.
48948         * tests/unictype/test-categ_M.c: Likewise.
48949         * tests/unictype/test-categ_Mc.c: Likewise.
48950         * tests/unictype/test-categ_Me.c: Likewise.
48951         * tests/unictype/test-categ_Mn.c: Likewise.
48952         * tests/unictype/test-categ_N.c: Likewise.
48953         * tests/unictype/test-categ_Nd.c: Likewise.
48954         * tests/unictype/test-categ_Nl.c: Likewise.
48955         * tests/unictype/test-categ_No.c: Likewise.
48956         * tests/unictype/test-categ_P.c: Likewise.
48957         * tests/unictype/test-categ_Pc.c: Likewise.
48958         * tests/unictype/test-categ_Pd.c: Likewise.
48959         * tests/unictype/test-categ_Pe.c: Likewise.
48960         * tests/unictype/test-categ_Pf.c: Likewise.
48961         * tests/unictype/test-categ_Pi.c: Likewise.
48962         * tests/unictype/test-categ_Po.c: Likewise.
48963         * tests/unictype/test-categ_Ps.c: Likewise.
48964         * tests/unictype/test-categ_S.c: Likewise.
48965         * tests/unictype/test-categ_Sc.c: Likewise.
48966         * tests/unictype/test-categ_Sk.c: Likewise.
48967         * tests/unictype/test-categ_Sm.c: Likewise.
48968         * tests/unictype/test-categ_So.c: Likewise.
48969         * tests/unictype/test-categ_Z.c: Likewise.
48970         * tests/unictype/test-categ_Zl.c: Likewise.
48971         * tests/unictype/test-categ_Zp.c: Likewise.
48972         * tests/unictype/test-categ_Zs.c: Likewise.
48973         * tests/unictype/test-ctype_alnum.c: Likewise.
48974         * tests/unictype/test-ctype_alpha.c: Likewise.
48975         * tests/unictype/test-ctype_blank.c: Likewise.
48976         * tests/unictype/test-ctype_cntrl.c: Likewise.
48977         * tests/unictype/test-ctype_digit.c: Likewise.
48978         * tests/unictype/test-ctype_graph.c: Likewise.
48979         * tests/unictype/test-ctype_lower.c: Likewise.
48980         * tests/unictype/test-ctype_print.c: Likewise.
48981         * tests/unictype/test-ctype_punct.c: Likewise.
48982         * tests/unictype/test-ctype_space.c: Likewise.
48983         * tests/unictype/test-ctype_upper.c: Likewise.
48984         * tests/unictype/test-ctype_xdigit.c: Likewise.
48985         * tests/unictype/test-decdigit.h: Likewise.
48986         * tests/unictype/test-digit.h: Likewise.
48987         * tests/unictype/test-numeric.h: Likewise.
48988         * tests/unictype/test-pr_alphabetic.c: Likewise.
48989         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
48990         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
48991         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
48992         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
48993         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
48994         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
48995         * tests/unictype/test-pr_bidi_control.c: Likewise.
48996         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
48997         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
48998         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
48999         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49000         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49001         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49002         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49003         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49004         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49005         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49006         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49007         * tests/unictype/test-pr_combining.c: Likewise.
49008         * tests/unictype/test-pr_composite.c: Likewise.
49009         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49010         * tests/unictype/test-pr_dash.c: Likewise.
49011         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49012         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49013         * tests/unictype/test-pr_deprecated.c: Likewise.
49014         * tests/unictype/test-pr_diacritic.c: Likewise.
49015         * tests/unictype/test-pr_extender.c: Likewise.
49016         * tests/unictype/test-pr_format_control.c: Likewise.
49017         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49018         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49019         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49020         * tests/unictype/test-pr_hex_digit.c: Likewise.
49021         * tests/unictype/test-pr_hyphen.c: Likewise.
49022         * tests/unictype/test-pr_id_continue.c: Likewise.
49023         * tests/unictype/test-pr_id_start.c: Likewise.
49024         * tests/unictype/test-pr_ideographic.c: Likewise.
49025         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49026         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49027         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49028         * tests/unictype/test-pr_iso_control.c: Likewise.
49029         * tests/unictype/test-pr_join_control.c: Likewise.
49030         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49031         * tests/unictype/test-pr_line_separator.c: Likewise.
49032         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49033         * tests/unictype/test-pr_lowercase.c: Likewise.
49034         * tests/unictype/test-pr_math.c: Likewise.
49035         * tests/unictype/test-pr_non_break.c: Likewise.
49036         * tests/unictype/test-pr_not_a_character.c: Likewise.
49037         * tests/unictype/test-pr_numeric.c: Likewise.
49038         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49039         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49040         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49041         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49042         * tests/unictype/test-pr_other_id_start.c: Likewise.
49043         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49044         * tests/unictype/test-pr_other_math.c: Likewise.
49045         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49046         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49047         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49048         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49049         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49050         * tests/unictype/test-pr_private_use.c: Likewise.
49051         * tests/unictype/test-pr_punctuation.c: Likewise.
49052         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49053         * tests/unictype/test-pr_radical.c: Likewise.
49054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49055         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49056         * tests/unictype/test-pr_space.c: Likewise.
49057         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49058         * tests/unictype/test-pr_titlecase.c: Likewise.
49059         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49060         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49061         * tests/unictype/test-pr_uppercase.c: Likewise.
49062         * tests/unictype/test-pr_variation_selector.c: Likewise.
49063         * tests/unictype/test-pr_white_space.c: Likewise.
49064         * tests/unictype/test-pr_xid_continue.c: Likewise.
49065         * tests/unictype/test-pr_xid_start.c: Likewise.
49066         * tests/unictype/test-pr_zero_width.c: Likewise.
49067         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49068         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49069
49070 2007-11-12  Bruno Haible  <bruno@clisp.org>
49071
49072         Unicode character classification functions.
49073         * lib/unictype.h: New file.
49074         * modules/unictype/base: New file.
49075         * modules/unictype/category-L: New file.
49076         * modules/unictype/category-Lu: New file.
49077         * modules/unictype/category-Ll: New file.
49078         * modules/unictype/category-Lt: New file.
49079         * modules/unictype/category-Lm: New file.
49080         * modules/unictype/category-Lo: New file.
49081         * modules/unictype/category-M: New file.
49082         * modules/unictype/category-Mn: New file.
49083         * modules/unictype/category-Mc: New file.
49084         * modules/unictype/category-Me: New file.
49085         * modules/unictype/category-N: New file.
49086         * modules/unictype/category-Nd: New file.
49087         * modules/unictype/category-Nl: New file.
49088         * modules/unictype/category-No: New file.
49089         * modules/unictype/category-P: New file.
49090         * modules/unictype/category-Pc: New file.
49091         * modules/unictype/category-Pd: New file.
49092         * modules/unictype/category-Ps: New file.
49093         * modules/unictype/category-Pe: New file.
49094         * modules/unictype/category-Pi: New file.
49095         * modules/unictype/category-Pf: New file.
49096         * modules/unictype/category-Po: New file.
49097         * modules/unictype/category-S: New file.
49098         * modules/unictype/category-Sm: New file.
49099         * modules/unictype/category-Sc: New file.
49100         * modules/unictype/category-Sk: New file.
49101         * modules/unictype/category-So: New file.
49102         * modules/unictype/category-Z: New file.
49103         * modules/unictype/category-Zs: New file.
49104         * modules/unictype/category-Zl: New file.
49105         * modules/unictype/category-Zp: New file.
49106         * modules/unictype/category-C: New file.
49107         * modules/unictype/category-Cc: New file.
49108         * modules/unictype/category-Cf: New file.
49109         * modules/unictype/category-Cs: New file.
49110         * modules/unictype/category-Co: New file.
49111         * modules/unictype/category-Cn: New file.
49112         * modules/unictype/category-or: New file.
49113         * modules/unictype/category-of: New file.
49114         * modules/unictype/category-test: New file.
49115         * modules/unictype/category-test-withtable: New file.
49116         * modules/unictype/category-byname: New file.
49117         * modules/unictype/category-none: New file.
49118         * modules/unictype/category-and: New file.
49119         * modules/unictype/category-and-not: New file.
49120         * modules/unictype/category-name: New file.
49121         * modules/unictype/combining-class: New file.
49122         * modules/unictype/category-all: New file.
49123         * modules/unictype/bidicategory-all: New file.
49124         * modules/unictype/bidicategory-byname: New file.
49125         * modules/unictype/bidicategory-name: New file.
49126         * modules/unictype/bidicategory-of: New file.
49127         * modules/unictype/bidicategory-test: New file.
49128         * modules/unictype/decimal-digit: New file.
49129         * modules/unictype/digit: New file.
49130         * modules/unictype/numeric: New file.
49131         * modules/unictype/mirror: New file.
49132         * modules/unictype/property-white-space: New file.
49133         * modules/unictype/property-alphabetic: New file.
49134         * modules/unictype/property-other-alphabetic: New file.
49135         * modules/unictype/property-not-a-character: New file.
49136         * modules/unictype/property-default-ignorable-code-point: New file.
49137         * modules/unictype/property-other-default-ignorable-code-point: New
49138         file.
49139         * modules/unictype/property-deprecated: New file.
49140         * modules/unictype/property-logical-order-exception: New file.
49141         * modules/unictype/property-variation-selector: New file.
49142         * modules/unictype/property-private-use: New file.
49143         * modules/unictype/property-unassigned-code-value: New file.
49144         * modules/unictype/property-uppercase: New file.
49145         * modules/unictype/property-other-uppercase: New file.
49146         * modules/unictype/property-lowercase: New file.
49147         * modules/unictype/property-other-lowercase: New file.
49148         * modules/unictype/property-titlecase: New file.
49149         * modules/unictype/property-soft-dotted: New file.
49150         * modules/unictype/property-id-start: New file.
49151         * modules/unictype/property-other-id-start: New file.
49152         * modules/unictype/property-id-continue: New file.
49153         * modules/unictype/property-other-id-continue: New file.
49154         * modules/unictype/property-xid-start: New file.
49155         * modules/unictype/property-xid-continue: New file.
49156         * modules/unictype/property-pattern-white-space: New file.
49157         * modules/unictype/property-pattern-syntax: New file.
49158         * modules/unictype/property-join-control: New file.
49159         * modules/unictype/property-grapheme-base: New file.
49160         * modules/unictype/property-grapheme-extend: New file.
49161         * modules/unictype/property-other-grapheme-extend: New file.
49162         * modules/unictype/property-grapheme-link: New file.
49163         * modules/unictype/property-bidi-control: New file.
49164         * modules/unictype/property-bidi-left-to-right: New file.
49165         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49166         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49167         * modules/unictype/property-bidi-european-digit: New file.
49168         * modules/unictype/property-bidi-eur-num-separator: New file.
49169         * modules/unictype/property-bidi-eur-num-terminator: New file.
49170         * modules/unictype/property-bidi-arabic-digit: New file.
49171         * modules/unictype/property-bidi-common-separator: New file.
49172         * modules/unictype/property-bidi-block-separator: New file.
49173         * modules/unictype/property-bidi-segment-separator: New file.
49174         * modules/unictype/property-bidi-whitespace: New file.
49175         * modules/unictype/property-bidi-non-spacing-mark: New file.
49176         * modules/unictype/property-bidi-boundary-neutral: New file.
49177         * modules/unictype/property-bidi-pdf: New file.
49178         * modules/unictype/property-bidi-embedding-or-override: New file.
49179         * modules/unictype/property-bidi-other-neutral: New file.
49180         * modules/unictype/property-hex-digit: New file.
49181         * modules/unictype/property-ascii-hex-digit: New file.
49182         * modules/unictype/property-ideographic: New file.
49183         * modules/unictype/property-unified-ideograph: New file.
49184         * modules/unictype/property-radical: New file.
49185         * modules/unictype/property-ids-binary-operator: New file.
49186         * modules/unictype/property-ids-trinary-operator: New file.
49187         * modules/unictype/property-zero-width: New file.
49188         * modules/unictype/property-space: New file.
49189         * modules/unictype/property-non-break: New file.
49190         * modules/unictype/property-iso-control: New file.
49191         * modules/unictype/property-format-control: New file.
49192         * modules/unictype/property-dash: New file.
49193         * modules/unictype/property-hyphen: New file.
49194         * modules/unictype/property-punctuation: New file.
49195         * modules/unictype/property-line-separator: New file.
49196         * modules/unictype/property-paragraph-separator: New file.
49197         * modules/unictype/property-quotation-mark: New file.
49198         * modules/unictype/property-sentence-terminal: New file.
49199         * modules/unictype/property-terminal-punctuation: New file.
49200         * modules/unictype/property-currency-symbol: New file.
49201         * modules/unictype/property-math: New file.
49202         * modules/unictype/property-other-math: New file.
49203         * modules/unictype/property-paired-punctuation: New file.
49204         * modules/unictype/property-left-of-pair: New file.
49205         * modules/unictype/property-combining: New file.
49206         * modules/unictype/property-composite: New file.
49207         * modules/unictype/property-decimal-digit: New file.
49208         * modules/unictype/property-numeric: New file.
49209         * modules/unictype/property-diacritic: New file.
49210         * modules/unictype/property-extender: New file.
49211         * modules/unictype/property-ignorable-control: New file.
49212         * modules/unictype/property-test: New file.
49213         * modules/unictype/property-byname: New file.
49214         * modules/unictype/property-all: New file.
49215         * modules/unictype/scripts: New file.
49216         * modules/unictype/scripts-all: New file.
49217         * modules/unictype/block-of: New file.
49218         * modules/unictype/block-test: New file.
49219         * modules/unictype/block-list: New file.
49220         * modules/unictype/block-all: New file.
49221         * modules/unictype/syntax-c-whitespace: New file.
49222         * modules/unictype/syntax-java-whitespace: New file.
49223         * modules/unictype/syntax-c-ident: New file.
49224         * modules/unictype/syntax-java-ident: New file.
49225         * modules/unictype/ctype-alnum: New file.
49226         * modules/unictype/ctype-alpha: New file.
49227         * modules/unictype/ctype-cntrl: New file.
49228         * modules/unictype/ctype-digit: New file.
49229         * modules/unictype/ctype-graph: New file.
49230         * modules/unictype/ctype-lower: New file.
49231         * modules/unictype/ctype-print: New file.
49232         * modules/unictype/ctype-punct: New file.
49233         * modules/unictype/ctype-space: New file.
49234         * modules/unictype/ctype-upper: New file.
49235         * modules/unictype/ctype-xdigit: New file.
49236         * modules/unictype/ctype-blank: New file.
49237         * lib/unictype/bidi_byname.c: New file.
49238         * lib/unictype/bidi_name.c: New file.
49239         * lib/unictype/bidi_of.c: New file.
49240         * lib/unictype/bidi_test.c: New file.
49241         * lib/unictype/bitmap.h: New file.
49242         * lib/unictype/block_test.c: New file.
49243         * lib/unictype/blocks.c: New file.
49244         * lib/unictype/categ_C.c: New file.
49245         * lib/unictype/categ_Cc.c: New file.
49246         * lib/unictype/categ_Cf.c: New file.
49247         * lib/unictype/categ_Cn.c: New file.
49248         * lib/unictype/categ_Co.c: New file.
49249         * lib/unictype/categ_Cs.c: New file.
49250         * lib/unictype/categ_L.c: New file.
49251         * lib/unictype/categ_Ll.c: New file.
49252         * lib/unictype/categ_Lm.c: New file.
49253         * lib/unictype/categ_Lo.c: New file.
49254         * lib/unictype/categ_Lt.c: New file.
49255         * lib/unictype/categ_Lu.c: New file.
49256         * lib/unictype/categ_M.c: New file.
49257         * lib/unictype/categ_Mc.c: New file.
49258         * lib/unictype/categ_Me.c: New file.
49259         * lib/unictype/categ_Mn.c: New file.
49260         * lib/unictype/categ_N.c: New file.
49261         * lib/unictype/categ_Nd.c: New file.
49262         * lib/unictype/categ_Nl.c: New file.
49263         * lib/unictype/categ_No.c: New file.
49264         * lib/unictype/categ_P.c: New file.
49265         * lib/unictype/categ_Pc.c: New file.
49266         * lib/unictype/categ_Pd.c: New file.
49267         * lib/unictype/categ_Pe.c: New file.
49268         * lib/unictype/categ_Pf.c: New file.
49269         * lib/unictype/categ_Pi.c: New file.
49270         * lib/unictype/categ_Po.c: New file.
49271         * lib/unictype/categ_Ps.c: New file.
49272         * lib/unictype/categ_S.c: New file.
49273         * lib/unictype/categ_Sc.c: New file.
49274         * lib/unictype/categ_Sk.c: New file.
49275         * lib/unictype/categ_Sm.c: New file.
49276         * lib/unictype/categ_So.c: New file.
49277         * lib/unictype/categ_Z.c: New file.
49278         * lib/unictype/categ_Zl.c: New file.
49279         * lib/unictype/categ_Zp.c: New file.
49280         * lib/unictype/categ_Zs.c: New file.
49281         * lib/unictype/categ_and.c: New file.
49282         * lib/unictype/categ_and_not.c: New file.
49283         * lib/unictype/categ_byname.c: New file.
49284         * lib/unictype/categ_name.c: New file.
49285         * lib/unictype/categ_none.c: New file.
49286         * lib/unictype/categ_of.c: New file.
49287         * lib/unictype/categ_or.c: New file.
49288         * lib/unictype/categ_test.c: New file.
49289         * lib/unictype/combining.c: New file.
49290         * lib/unictype/ctype_alnum.c: New file.
49291         * lib/unictype/ctype_alpha.c: New file.
49292         * lib/unictype/ctype_blank.c: New file.
49293         * lib/unictype/ctype_cntrl.c: New file.
49294         * lib/unictype/ctype_digit.c: New file.
49295         * lib/unictype/ctype_graph.c: New file.
49296         * lib/unictype/ctype_lower.c: New file.
49297         * lib/unictype/ctype_print.c: New file.
49298         * lib/unictype/ctype_punct.c: New file.
49299         * lib/unictype/ctype_space.c: New file.
49300         * lib/unictype/ctype_upper.c: New file.
49301         * lib/unictype/ctype_xdigit.c: New file.
49302         * lib/unictype/decdigit.c: New file.
49303         * lib/unictype/digit.c: New file.
49304         * lib/unictype/identsyntaxmap.h: New file.
49305         * lib/unictype/mirror.c: New file.
49306         * lib/unictype/numeric.c: New file.
49307         * lib/unictype/pr_alphabetic.c: New file.
49308         * lib/unictype/pr_ascii_hex_digit.c: New file.
49309         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49310         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49311         * lib/unictype/pr_bidi_block_separator.c: New file.
49312         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49313         * lib/unictype/pr_bidi_common_separator.c: New file.
49314         * lib/unictype/pr_bidi_control.c: New file.
49315         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49316         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49317         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49318         * lib/unictype/pr_bidi_european_digit.c: New file.
49319         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49320         * lib/unictype/pr_bidi_left_to_right.c: New file.
49321         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49322         * lib/unictype/pr_bidi_other_neutral.c: New file.
49323         * lib/unictype/pr_bidi_pdf.c: New file.
49324         * lib/unictype/pr_bidi_segment_separator.c: New file.
49325         * lib/unictype/pr_bidi_whitespace.c: New file.
49326         * lib/unictype/pr_byname.c: New file.
49327         * lib/unictype/pr_byname.gperf: New file.
49328         * lib/unictype/pr_combining.c: New file.
49329         * lib/unictype/pr_composite.c: New file.
49330         * lib/unictype/pr_currency_symbol.c: New file.
49331         * lib/unictype/pr_dash.c: New file.
49332         * lib/unictype/pr_decimal_digit.c: New file.
49333         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49334         * lib/unictype/pr_deprecated.c: New file.
49335         * lib/unictype/pr_diacritic.c: New file.
49336         * lib/unictype/pr_extender.c: New file.
49337         * lib/unictype/pr_format_control.c: New file.
49338         * lib/unictype/pr_grapheme_base.c: New file.
49339         * lib/unictype/pr_grapheme_extend.c: New file.
49340         * lib/unictype/pr_grapheme_link.c: New file.
49341         * lib/unictype/pr_hex_digit.c: New file.
49342         * lib/unictype/pr_hyphen.c: New file.
49343         * lib/unictype/pr_id_continue.c: New file.
49344         * lib/unictype/pr_id_start.c: New file.
49345         * lib/unictype/pr_ideographic.c: New file.
49346         * lib/unictype/pr_ids_binary_operator.c: New file.
49347         * lib/unictype/pr_ids_trinary_operator.c: New file.
49348         * lib/unictype/pr_ignorable_control.c: New file.
49349         * lib/unictype/pr_iso_control.c: New file.
49350         * lib/unictype/pr_join_control.c: New file.
49351         * lib/unictype/pr_left_of_pair.c: New file.
49352         * lib/unictype/pr_line_separator.c: New file.
49353         * lib/unictype/pr_logical_order_exception.c: New file.
49354         * lib/unictype/pr_lowercase.c: New file.
49355         * lib/unictype/pr_math.c: New file.
49356         * lib/unictype/pr_non_break.c: New file.
49357         * lib/unictype/pr_not_a_character.c: New file.
49358         * lib/unictype/pr_numeric.c: New file.
49359         * lib/unictype/pr_other_alphabetic.c: New file.
49360         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49361         * lib/unictype/pr_other_grapheme_extend.c: New file.
49362         * lib/unictype/pr_other_id_continue.c: New file.
49363         * lib/unictype/pr_other_id_start.c: New file.
49364         * lib/unictype/pr_other_lowercase.c: New file.
49365         * lib/unictype/pr_other_math.c: New file.
49366         * lib/unictype/pr_other_uppercase.c: New file.
49367         * lib/unictype/pr_paired_punctuation.c: New file.
49368         * lib/unictype/pr_paragraph_separator.c: New file.
49369         * lib/unictype/pr_pattern_syntax.c: New file.
49370         * lib/unictype/pr_pattern_white_space.c: New file.
49371         * lib/unictype/pr_private_use.c: New file.
49372         * lib/unictype/pr_punctuation.c: New file.
49373         * lib/unictype/pr_quotation_mark.c: New file.
49374         * lib/unictype/pr_radical.c: New file.
49375         * lib/unictype/pr_sentence_terminal.c: New file.
49376         * lib/unictype/pr_soft_dotted.c: New file.
49377         * lib/unictype/pr_space.c: New file.
49378         * lib/unictype/pr_terminal_punctuation.c: New file.
49379         * lib/unictype/pr_test.c: New file.
49380         * lib/unictype/pr_titlecase.c: New file.
49381         * lib/unictype/pr_unassigned_code_value.c: New file.
49382         * lib/unictype/pr_unified_ideograph.c: New file.
49383         * lib/unictype/pr_uppercase.c: New file.
49384         * lib/unictype/pr_variation_selector.c: New file.
49385         * lib/unictype/pr_white_space.c: New file.
49386         * lib/unictype/pr_xid_continue.c: New file.
49387         * lib/unictype/pr_xid_start.c: New file.
49388         * lib/unictype/pr_zero_width.c: New file.
49389         * lib/unictype/scripts.c: New file.
49390         * lib/unictype/sy_c_ident.c: New file.
49391         * lib/unictype/sy_c_whitespace.c: New file.
49392         * lib/unictype/sy_java_ident.c: New file.
49393         * lib/unictype/sy_java_whitespace.c: New file.
49394
49395         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49396         Unicode 5.0.0.
49397         * lib/unictype/blocks.h: Likewise.
49398         * lib/unictype/categ_C.h: Likewise.
49399         * lib/unictype/categ_Cc.h: Likewise.
49400         * lib/unictype/categ_Cf.h: Likewise.
49401         * lib/unictype/categ_Cn.h: Likewise.
49402         * lib/unictype/categ_Co.h: Likewise.
49403         * lib/unictype/categ_Cs.h: Likewise.
49404         * lib/unictype/categ_L.h: Likewise.
49405         * lib/unictype/categ_Ll.h: Likewise.
49406         * lib/unictype/categ_Lm.h: Likewise.
49407         * lib/unictype/categ_Lo.h: Likewise.
49408         * lib/unictype/categ_Lt.h: Likewise.
49409         * lib/unictype/categ_Lu.h: Likewise.
49410         * lib/unictype/categ_M.h: Likewise.
49411         * lib/unictype/categ_Mc.h: Likewise.
49412         * lib/unictype/categ_Me.h: Likewise.
49413         * lib/unictype/categ_Mn.h: Likewise.
49414         * lib/unictype/categ_N.h: Likewise.
49415         * lib/unictype/categ_Nd.h: Likewise.
49416         * lib/unictype/categ_Nl.h: Likewise.
49417         * lib/unictype/categ_No.h: Likewise.
49418         * lib/unictype/categ_P.h: Likewise.
49419         * lib/unictype/categ_Pc.h: Likewise.
49420         * lib/unictype/categ_Pd.h: Likewise.
49421         * lib/unictype/categ_Pe.h: Likewise.
49422         * lib/unictype/categ_Pf.h: Likewise.
49423         * lib/unictype/categ_Pi.h: Likewise.
49424         * lib/unictype/categ_Po.h: Likewise.
49425         * lib/unictype/categ_Ps.h: Likewise.
49426         * lib/unictype/categ_S.h: Likewise.
49427         * lib/unictype/categ_Sc.h: Likewise.
49428         * lib/unictype/categ_Sk.h: Likewise.
49429         * lib/unictype/categ_Sm.h: Likewise.
49430         * lib/unictype/categ_So.h: Likewise.
49431         * lib/unictype/categ_Z.h: Likewise.
49432         * lib/unictype/categ_Zl.h: Likewise.
49433         * lib/unictype/categ_Zp.h: Likewise.
49434         * lib/unictype/categ_Zs.h: Likewise.
49435         * lib/unictype/categ_of.h: Likewise.
49436         * lib/unictype/combining.h: Likewise.
49437         * lib/unictype/ctype_alnum.h: Likewise.
49438         * lib/unictype/ctype_alpha.h: Likewise.
49439         * lib/unictype/ctype_blank.h: Likewise.
49440         * lib/unictype/ctype_cntrl.h: Likewise.
49441         * lib/unictype/ctype_digit.h: Likewise.
49442         * lib/unictype/ctype_graph.h: Likewise.
49443         * lib/unictype/ctype_lower.h: Likewise.
49444         * lib/unictype/ctype_print.h: Likewise.
49445         * lib/unictype/ctype_punct.h: Likewise.
49446         * lib/unictype/ctype_space.h: Likewise.
49447         * lib/unictype/ctype_upper.h: Likewise.
49448         * lib/unictype/ctype_xdigit.h: Likewise.
49449         * lib/unictype/decdigit.h: Likewise.
49450         * lib/unictype/digit.h: Likewise.
49451         * lib/unictype/mirror.h: Likewise.
49452         * lib/unictype/numeric.h: Likewise.
49453         * lib/unictype/pr_alphabetic.h: Likewise.
49454         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49455         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49457         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49458         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49460         * lib/unictype/pr_bidi_control.h: Likewise.
49461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49463         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49464         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49465         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49466         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49467         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49468         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
49469         * lib/unictype/pr_bidi_pdf.h: Likewise.
49470         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
49471         * lib/unictype/pr_bidi_whitespace.h: Likewise.
49472         * lib/unictype/pr_combining.h: Likewise.
49473         * lib/unictype/pr_composite.h: Likewise.
49474         * lib/unictype/pr_currency_symbol.h: Likewise.
49475         * lib/unictype/pr_dash.h: Likewise.
49476         * lib/unictype/pr_decimal_digit.h: Likewise.
49477         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
49478         * lib/unictype/pr_deprecated.h: Likewise.
49479         * lib/unictype/pr_diacritic.h: Likewise.
49480         * lib/unictype/pr_extender.h: Likewise.
49481         * lib/unictype/pr_format_control.h: Likewise.
49482         * lib/unictype/pr_grapheme_base.h: Likewise.
49483         * lib/unictype/pr_grapheme_extend.h: Likewise.
49484         * lib/unictype/pr_grapheme_link.h: Likewise.
49485         * lib/unictype/pr_hex_digit.h: Likewise.
49486         * lib/unictype/pr_hyphen.h: Likewise.
49487         * lib/unictype/pr_id_continue.h: Likewise.
49488         * lib/unictype/pr_id_start.h: Likewise.
49489         * lib/unictype/pr_ideographic.h: Likewise.
49490         * lib/unictype/pr_ids_binary_operator.h: Likewise.
49491         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
49492         * lib/unictype/pr_ignorable_control.h: Likewise.
49493         * lib/unictype/pr_iso_control.h: Likewise.
49494         * lib/unictype/pr_join_control.h: Likewise.
49495         * lib/unictype/pr_left_of_pair.h: Likewise.
49496         * lib/unictype/pr_line_separator.h: Likewise.
49497         * lib/unictype/pr_logical_order_exception.h: Likewise.
49498         * lib/unictype/pr_lowercase.h: Likewise.
49499         * lib/unictype/pr_math.h: Likewise.
49500         * lib/unictype/pr_non_break.h: Likewise.
49501         * lib/unictype/pr_not_a_character.h: Likewise.
49502         * lib/unictype/pr_numeric.h: Likewise.
49503         * lib/unictype/pr_other_alphabetic.h: Likewise.
49504         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
49505         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
49506         * lib/unictype/pr_other_id_continue.h: Likewise.
49507         * lib/unictype/pr_other_id_start.h: Likewise.
49508         * lib/unictype/pr_other_lowercase.h: Likewise.
49509         * lib/unictype/pr_other_math.h: Likewise.
49510         * lib/unictype/pr_other_uppercase.h: Likewise.
49511         * lib/unictype/pr_paired_punctuation.h: Likewise.
49512         * lib/unictype/pr_paragraph_separator.h: Likewise.
49513         * lib/unictype/pr_pattern_syntax.h: Likewise.
49514         * lib/unictype/pr_pattern_white_space.h: Likewise.
49515         * lib/unictype/pr_private_use.h: Likewise.
49516         * lib/unictype/pr_punctuation.h: Likewise.
49517         * lib/unictype/pr_quotation_mark.h: Likewise.
49518         * lib/unictype/pr_radical.h: Likewise.
49519         * lib/unictype/pr_sentence_terminal.h: Likewise.
49520         * lib/unictype/pr_soft_dotted.h: Likewise.
49521         * lib/unictype/pr_space.h: Likewise.
49522         * lib/unictype/pr_terminal_punctuation.h: Likewise.
49523         * lib/unictype/pr_titlecase.h: Likewise.
49524         * lib/unictype/pr_unassigned_code_value.h: Likewise.
49525         * lib/unictype/pr_unified_ideograph.h: Likewise.
49526         * lib/unictype/pr_uppercase.h: Likewise.
49527         * lib/unictype/pr_variation_selector.h: Likewise.
49528         * lib/unictype/pr_white_space.h: Likewise.
49529         * lib/unictype/pr_xid_continue.h: Likewise.
49530         * lib/unictype/pr_xid_start.h: Likewise.
49531         * lib/unictype/pr_zero_width.h: Likewise.
49532         * lib/unictype/scripts.h: Likewise.
49533         * lib/unictype/scripts_byname.gperf: Likewise.
49534         * lib/unictype/sy_c_ident.h: Likewise.
49535         * lib/unictype/sy_c_whitespace.h: Likewise.
49536         * lib/unictype/sy_java_ident.h: Likewise.
49537         * lib/unictype/sy_java_whitespace.h: Likewise.
49538
49539         * lib/unictype/Makefile: New file.
49540         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
49541         glibc.
49542         * lib/unictype/3level.h: New file, copied from glibc.
49543         * lib/unictype/3levelbit.h: New file.
49544
49545 2007-11-11  Bruno Haible  <bruno@clisp.org>
49546
49547         * modules/gperf: New file.
49548         * modules/iconv_open (Depends-on): Add it.
49549         (Makefile.am): Remove the GPERF definition.
49550
49551 2007-11-11  Bruno Haible  <bruno@clisp.org>
49552
49553         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
49554         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
49555
49556 2007-11-11  Bruno Haible  <bruno@clisp.org>
49557
49558         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
49559         (usage): Remove function.
49560
49561 2007-11-11  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
49564         gl_FUNC_CEILF_LIBS.
49565         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
49566         gl_FUNC_CEIL_LIBS.
49567         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
49568         gl_FUNC_CEILL_LIBS.
49569         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
49570         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
49571         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
49572
49573 2007-11-11  Bruno Haible  <bruno@clisp.org>
49574
49575         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
49576         roundf were declared but do not exist on functions.
49577         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
49578         roundl were declared but do not exist on functions.
49579         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
49580         HAVE_FLOORL_AND_CEILL, respectively.
49581         Needed for Sun C on Solaris 10.
49582
49583 2007-11-11  Bruno Haible  <bruno@clisp.org>
49584
49585         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
49586         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
49587         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
49588         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
49589         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
49590         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
49591         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
49592         HAVE_DECL_ROUNDF.
49593         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
49594         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
49595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
49596         of HAVE_DECL_ROUND*.
49597         * modules/math (Makefile.am): Update.
49598
49599 2007-11-10  Bruno Haible  <bruno@clisp.org>
49600
49601         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
49602         ptrdiff_t as m4/intl.m4.
49603
49604 2007-11-10  Jim Meyering  <meyering@redhat.com>
49605
49606         Avoid link failure for the argmatch test.
49607         * tests/test-argmatch.c (usage): Define function to avoid a link
49608         failure: argmatch_die requires a usage function.
49609
49610 2007-11-09  Bruno Haible  <bruno@clisp.org>
49611
49612         * doc/functions/snprintf.texi: Mention BeOS deficiency.
49613         * doc/functions/vsnprintf.texi: Likewise.
49614         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
49615         with a size argument < 2.
49616
49617 2007-11-09  Bruno Haible  <bruno@clisp.org>
49618
49619         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
49620         buffer. Fixes an inefficiency introduced on 2007-11-03.
49621
49622 2007-11-09  Bruno Haible  <bruno@clisp.org>
49623
49624         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
49625         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
49626
49627 2007-11-08  Jim Meyering  <meyering@redhat.com>
49628
49629         Change cache variable name prefix "jm_" to "gl_" everywhere.
49630         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
49631         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
49632         * m4/uptime.m4: s/gl_/jm_/
49633
49634 2007-11-07  Bruno Haible  <bruno@clisp.org>
49635
49636         Update to GNU gettext 0.17.
49637         * m4/intl.m4: Update to GNU gettext 0.17.
49638         * m4/po.m4: Likewise.
49639         * modules/gettext (Files): Remove m4/ulonglong.m4.
49640         (configure.ac): Require gettext infrastructure from version 0.17.
49641
49642 2007-11-06  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
49645         symbolic values are not defined in a public header.
49646         * lib/freadable.c (freadable) [QNX]: Likewise.
49647         * lib/freadahead.c (freadahead) [QNX]: Likewise.
49648         * lib/freading.c (freading) [QNX]: Likewise.
49649         * lib/fseterr.c (fseterr) [QNX]: Likewise.
49650         * lib/fwritable.c (fwritable) [QNX]: Likewise.
49651         * lib/fwriting.c (fwriting) [QNX]: Likewise.
49652         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
49653         Reported by Alain Magloire.
49654
49655         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
49656
49657 2007-11-05  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
49660         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
49661         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
49662         Reported by Eric Blake.
49663
49664 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49665             Bruno Haible  <bruno@clisp.org>
49666
49667         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
49668         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
49669         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
49670         (malloc): Undefine also before including <stdlib.h>.
49671         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
49672         Needed on OSF/1 4.0.
49673
49674 2007-11-05  Jim Meyering  <meyering@redhat.com>
49675
49676         git-version-gen: sync from coreutils.
49677         * build-aux/git-version-gen: Add comments.
49678         Change the first '-' to '.' in the snapshot version string,
49679         e.g., 6.9-377-08144 -> 6.9.377-08144
49680         Remove first parameter.
49681         Don't declare a version "-dirty" merely because a time
49682         stamp has changed.
49683
49684 2007-11-04  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/lock.h: Protect all macro definitions containing an 'if'
49687         statement through a "do { ... } while (0)".
49688         * lib/tls.h: Likewise.
49689
49690 2007-11-04  Bruno Haible  <bruno@clisp.org>
49691
49692         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
49693
49694 2007-11-04  Bruno Haible  <bruno@clisp.org>
49695
49696         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
49697         * modules/fprintf-posix (Depends-on): Add nocrash.
49698         * modules/snprintf-posix (Depends-on): Likewise.
49699         * modules/sprintf-posix (Depends-on): Likewise.
49700         * modules/vasnprintf-posix (Depends-on): Likewise.
49701         * modules/vasprintf-posix (Depends-on): Likewise.
49702         * modules/vfprintf-posix (Depends-on): Likewise.
49703         * modules/vsnprintf-posix (Depends-on): Likewise.
49704         * modules/vsprintf-posix (Depends-on): Likewise.
49705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49706         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49707         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49708         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49711         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49712
49713 2007-11-04  Bruno Haible  <bruno@clisp.org>
49714
49715         * modules/nocrash: New file.
49716         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
49717         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
49718
49719 2007-11-04  Bruno Haible  <bruno@clisp.org>
49720
49721         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
49722         precision handling.
49723         * tests/test-vasprintf-posix.c (test_function): Likewise.
49724         * tests/test-snprintf-posix.h (test_function): Likewise.
49725         * tests/test-sprintf-posix.h (test_function): Likewise.
49726
49727         Fix *printf behaviour for large precisions on mingw and BeOS.
49728         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
49729         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
49730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
49731         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49733         gl_PRINTF_PRECISION and test its result. Invoke
49734         gl_PREREQ_VASNPRINTF_PRECISION.
49735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49736         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49742         * doc/functions/fprintf.texi: Update.
49743         * doc/functions/printf.texi: Update.
49744         * doc/functions/snprintf.texi: Update.
49745         * doc/functions/sprintf.texi: Update.
49746         * doc/functions/vfprintf.texi: Update.
49747         * doc/functions/vprintf.texi: Update.
49748         * doc/functions/vsnprintf.texi: Update.
49749         * doc/functions/vsprintf.texi: Update.
49750
49751 2007-11-04  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
49754
49755 2007-11-04  Bruno Haible  <bruno@clisp.org>
49756
49757         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
49758         Reported by Sylvain Beucler <beuc@gnu.org>.
49759
49760 2007-11-03  Bruno Haible  <bruno@clisp.org>
49761
49762         * tests/test-fprintf-posix2.sh: New file.
49763         * tests/test-fprintf-posix2.c: New file.
49764         * modules/fprintf-posix-tests (Files): Add them.
49765         (TESTS): Add test-fprintf-posix2.sh.
49766         (configure.ac): Check for getrlimit and setrlimit.
49767         (check_PROGRAMS): Add test-fprintf-posix2.
49768
49769         * tests/test-printf-posix2.sh: New file.
49770         * tests/test-printf-posix2.c: New file.
49771         * modules/printf-posix-tests (Files): Add them.
49772         (TESTS): Add test-printf-posix2.sh.
49773         (configure.ac): Check for getrlimit and setrlimit.
49774         (check_PROGRAMS): Add test-printf-posix2.
49775
49776         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
49777         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
49778         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
49779         (decode_double): New function, copied from decode_long_double.
49780         (scale10_round_decimal_decoded): New function, extracted from
49781         scale10_round_decimal_long_double.
49782         (scale10_round_decimal_long_double): Use it.
49783         (scale10_round_decimal_double): New function.
49784         (floorlog10): New function.
49785         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
49786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
49787         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49788         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49789         gl_PRINTF_ENOMEM and test its result. Invoke
49790         gl_PREREQ_VASNPRINTF_ENOMEM.
49791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49798         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
49799         * modules/snprintf-posix (Depends-on): Likewise.
49800         * modules/sprintf-posix (Depends-on): Likewise.
49801         * modules/vasnprintf-posix (Depends-on): Likewise.
49802         * modules/vasprintf-posix (Depends-on): Likewise.
49803         * modules/vfprintf-posix (Depends-on): Likewise.
49804         * modules/vsnprintf-posix (Depends-on): Likewise.
49805         * modules/vsprintf-posix (Depends-on): Likewise.
49806         * doc/functions/fprintf.texi: Update.
49807         * doc/functions/printf.texi: Update.
49808         * doc/functions/snprintf.texi: Update.
49809         * doc/functions/sprintf.texi: Update.
49810         * doc/functions/vfprintf.texi: Update.
49811         * doc/functions/vprintf.texi: Update.
49812         * doc/functions/vsnprintf.texi: Update.
49813         * doc/functions/vsprintf.texi: Update.
49814
49815 2007-11-03  Bruno Haible  <bruno@clisp.org>
49816
49817         * modules/frexp-nolibm-tests: New file.
49818
49819         * modules/frexp-nolibm: New file.
49820         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
49821
49822 2007-11-03  Bruno Haible  <bruno@clisp.org>
49823
49824         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
49825         value is C99 compliant.
49826         Needed for OSF/1 5.1.
49827
49828 2007-11-03  Bruno Haible  <bruno@clisp.org>
49829
49830         Fix out-of-memory handling of vasnprintf.
49831         * lib/printf-parse.c: Include <errno.h>.
49832         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
49833         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
49834         is already set.
49835
49836 2007-11-02  Eric Blake  <ebb9@byu.net>
49837
49838         Fix tests on cygwin.
49839         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
49840
49841 2007-11-01  Bruno Haible  <bruno@clisp.org>
49842
49843         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
49844         warning.
49845         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
49846         needed for POSIX compatibility.
49847
49848 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49849
49850         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
49851         for compatibility with GNU.
49852
49853 2007-11-01  Bruno Haible  <bruno@clisp.org>
49854
49855         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
49856         (putenv): Renamed from rpl_putenv. Change argument type from
49857         'const char *' to 'char *'.
49858         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
49859         of defining putenv in config.h, just set REPLACE_PUTENV.
49860         * modules/putenv (Depends-on): Add stdlib.
49861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49862         (Include): Use <stdlib.h>.
49863         * lib/stdlib.in.h (putenv): New declaration.
49864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
49865         REPLACE_PUTENV.
49866         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
49867         REPLACE_PUTENV.
49868         Needed for MacOS X 10.5.0.
49869         Reported by Peter O'Gorman <peter@pogma.com>.
49870
49871 2007-11-01  Jim Meyering  <meyering@redhat.com>
49872
49873         Treat an empty date string exactly like "0".
49874         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
49875         if the remaining date string (to be parsed) is empty, use "0".
49876         Reported by Mischa Molhoek and discussed in this thread:
49877         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
49878
49879 2007-10-31  Bruno Haible  <bruno@clisp.org>
49880
49881         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
49882         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
49883         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
49884         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
49885         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
49886         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
49887
49888 2007-10-31  Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
49891         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
49892         (AC_TYPE_LONG_LONG_INT): Use it.
49893         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
49894         it as well.
49895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
49896         to m4/longlong.m4.
49897         * modules/stdint (Files): Remove m4/ulonglong.m4.
49898         * modules/strtoull (Files): Use m4/longlong.m4 instead of
49899         m4/ulonglong.m4.
49900         * modules/strtoumax (Files): Likewise.
49901
49902 2007-10-30  Bruno Haible  <bruno@clisp.org>
49903
49904         * modules/xvasprintf-posix: New file.
49905         Suggested by Eric Blake.
49906
49907 2007-10-30  Bruno Haible  <bruno@clisp.org>
49908
49909         * modules/xprintf-posix-tests: New file.
49910         * tests/test-xprintf-posix.sh: New file.
49911         * tests/test-xprintf-posix.c: New file.
49912         * tests/test-xfprintf-posix.c: New file.
49913
49914         * modules/xprintf-posix: New file.
49915
49916 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49917
49918         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
49919         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
49920         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
49921
49922 2007-10-29  Bruno Haible  <bruno@clisp.org>
49923
49924         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
49925         contain the special marker '_cv_'.
49926         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49927         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49929         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49930         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49931         Reported by Ralf Wildenhues.
49932
49933 2007-10-29  Bruno Haible  <bruno@clisp.org>
49934
49935         * gnulib-tool (func_import): When --lgpl is not specified, set
49936         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
49937         GPLv3.
49938         Reported by Simon Josefsson.
49939
49940 2007-10-28  Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
49943         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
49944         HAVE_DECL_ISFINITE.
49945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49946         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
49947         HAVE_DECL_ISFINITE.
49948
49949 2007-10-28  Bruno Haible  <bruno@clisp.org>
49950
49951         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
49952         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
49953
49954 2007-10-28  Bruno Haible  <bruno@clisp.org>
49955
49956         Fix link errors with Sun C 5.0 on Solaris 10.
49957         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
49958         function is declared but not present in the compiler's libm.
49959         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49960         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49961         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
49962         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
49963         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
49964         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
49965         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
49966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
49967         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
49968         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
49969         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
49970         HAVE_DECL_FLOORL.
49971
49972 2007-10-28  Bruno Haible  <bruno@clisp.org>
49973
49974         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
49975         gl_FUNC_FLOORL. Cache the result.
49976         (gl_FUNC_FLOORL): Use it.
49977         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
49978         gl_FUNC_CEILL. Cache the result.
49979         (gl_FUNC_CEILL): Use it.
49980
49981         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
49982         gl_FUNC_FLOOR. Cache the result.
49983         (gl_FUNC_FLOOR): Use it.
49984         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
49985         gl_FUNC_CEIL. Cache the result.
49986         (gl_FUNC_CEIL): Use it.
49987
49988         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
49989         gl_FUNC_FLOORF. Cache the result.
49990         (gl_FUNC_FLOORF): Use it.
49991         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
49992         gl_FUNC_CEILF. Cache the result.
49993         (gl_FUNC_CEILF): Use it.
49994
49995 2007-10-28  Bruno Haible  <bruno@clisp.org>
49996
49997         * gnulib-tool: Allow specifying the LGPL version number through
49998         --lgpl=2 or --lgpl=3.
49999         (func_usage): Document --lgpl with argument.
50000         Handle --lgpl=... arguments.
50001         (func_import): Recognize also gl_LGPL calls with an argument. When
50002         --lgpl=2 is used and the module's license is just LGPL, report an
50003         error. Set sed_transform_lib_file according to the lgpl variable. In
50004         the generated files, use --lgpl or gl_LGPL invocations with argument,
50005         if necessary.
50006         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50007         an LGPv2+ license.
50008         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50009         gl_LGPL macro.
50010
50011 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50012             Bruno Haible  <bruno@clisp.org>
50013
50014         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50015         (u16_uctomb_aux): Likewise.
50016         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50017         !HAVE_INLINE.
50018         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50019
50020 2007-10-28  Bruno Haible  <bruno@clisp.org>
50021
50022         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50023         Invoke AM_GETTEXT_OPTION if it exists.
50024         * modules/vasprintf: Likewise.
50025         * modules/verror: Likewise.
50026         * modules/xprintf: Likewise.
50027         * modules/xvasprintf: Likewise.
50028
50029 2007-10-27  Ben Pfaff  <blp@gnu.org>
50030
50031         * lib/math.in.h: Define isfinite macro and prototypes for
50032         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50033         implementations.
50034         * m4/math_h.m4: New substitutions for isfinite module.
50035         * lib/isfinite.c: New file.
50036         * m4/isfinite.m4: New file.
50037         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50038         * modules/isfinite: New file.
50039         * modules/isfinite-tests: New file.
50040         * tests/tests-isfinite.c: New file.
50041         * doc/functions/isfinite.texi: Mention isfinite module.
50042         * MODULES.html.sh: Mention new module.
50043
50044 2007-10-27  Ben Pfaff  <blp@gnu.org>
50045
50046         Ralf Wildenhues reported that Tru64 4.0D declares the round
50047         functions but does not have definitions.
50048         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50049         cannot be found in any library, set the output variable to
50050         "missing" instead of "".
50051         * m4/round.m4: Also use our substitute if we cannot find round in
50052         any library, even if it is declared.
50053         * m4/roundf.m4: Likewise for roundf.
50054         * m4/roundl.m4: Likewise for roundl.
50055         * lib/math.in.h: Undefine roundf, round, roundl before defining
50056         their replacements, to allow for hypothetical systems where these
50057         may be defined as macros but not available in libraries.
50058
50059 2007-10-27  Bruno Haible  <bruno@clisp.org>
50060
50061         * doc/gnulib.texi: Invoke @firstparagraphindent.
50062         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50063         changes in gnulib.
50064         (Source changes): New section.
50065
50066 2007-10-26  Bruno Haible  <bruno@clisp.org>
50067
50068         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50069         borrowed from autoconf.
50070
50071 2007-10-26  Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50074         strerror returned the empty string. Needed on HP-UX 11.00.
50075
50076 2007-10-24  Micah Cowan  <micah@cowan.name>
50077
50078         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50079         * build-aux/bootstrap: Remove support for now-unnecessary option,
50080         --cvs-user, and envvars CVS_USER, CVS_RSH.
50081
50082 2007-10-24  Jim Meyering  <meyering@redhat.com>
50083
50084         Avoid diagnostics from sha1sum when there is no cached checksum.
50085         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50086         if the po.s1 file hasn't been created yet.
50087
50088         * build-aux/bootstrap: Sync from coreutils:
50089         2007-10-24  Jim Meyering  <meyering@redhat.com>
50090         Get gnulib from the git repository, not from an obsolete cvs one.
50091         * build-aux/bootstrap: Suggestion from Micah Cowan.
50092         2007-10-04  Jim Meyering  <jim@meyering.net>
50093         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50094         (update_po_files): Work also when there are no .po files in po/.
50095
50096 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * README: Append ".git" to git and cg examples.
50099         Problem reported by Benoit Sigoure.
50100
50101 2007-10-23  Micah Cowan  <micah@cowan.name>
50102
50103         * users.txt: Add wget.
50104
50105 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50106
50107         Fix linking of some unistdio tests on FreeBSD.
50108         * modules/unistdio/u16-vsnprintf-tests
50109         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50110         * modules/unistdio/u16-vsprintf-tests
50111         (test_u16_vsnprintf1_LDADD): Likewise.
50112         * modules/unistdio/u32-vsnprintf-tests
50113         (test_u32_vsnprintf1_LDADD): Likewise.
50114         * modules/unistdio/u32-vsprintf-tests
50115         (test_u32_vsprintf1_LDADD): Likewise.
50116         * modules/unistdio/u8-vsnprintf-tests
50117         (test_u8_vsnprintf1_LDADD): Likewise.
50118         * modules/unistdio/u8-vsprintf-tests
50119         (test_u8_vsprintf1_LDADD): Likewise.
50120         * modules/unistdio/ulc-vsnprintf-tests
50121         (test_ulc_vsnprintf1_LDADD): Likewise.
50122         * modules/unistdio/ulc-vsprintf-tests
50123         (test_ulc_vsprintf1_LDADD): Likewise.
50124
50125         Fix linking of some uniconv tests on FreeBSD.
50126         * modules/uniconv/u16-conv-from-enc-tests
50127         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50128         * modules/uniconv/u16-conv-to-enc-tests
50129         (test_u16_conv_to_enc_LDADD): Likewise.
50130         * modules/uniconv/u16-strconv-from-enc-tests
50131         (test_u16_strconv_from_enc_LDADD): Likewise.
50132         * modules/uniconv/u16-strconv-to-enc-tests
50133         (test_u16_strconv_to_enc_LDADD): Likewise.
50134         * modules/uniconv/u32-conv-from-enc-tests
50135         (test_u32_conv_from_enc_LDADD): Likewise.
50136         * modules/uniconv/u32-conv-to-enc-tests
50137         (test_u32_conv_to_enc_LDADD): Likewise.
50138         * modules/uniconv/u32-strconv-from-enc-tests
50139         (test_u32_strconv_from_enc_LDADD): Likewise.
50140         * modules/uniconv/u32-strconv-to-enc-tests
50141         (test_u32_strconv_to_enc_LDADD): Likewise.
50142         * modules/uniconv/u8-conv-from-enc-tests
50143         (test_u8_conv_from_enc_LDADD): Likewise.
50144         * modules/uniconv/u8-conv-to-enc-tests
50145         (test_u8_conv_to_enc_LDADD): Likewise.
50146         * modules/uniconv/u8-strconv-from-enc-tests
50147         (test_u8_strconv_from_enc_LDADD): Likewise.
50148         * modules/uniconv/u8-strconv-to-enc-tests
50149         (test_u8_strconv_to_enc_LDADD): Likewise.
50150
50151 2007-10-22  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50154         size.
50155
50156 2007-10-22  Eric Blake  <ebb9@byu.net>
50157
50158         Tweak x*printf documentation.
50159         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50160         variable name and comments.
50161         Suggested by Bruno Haible.
50162
50163 2007-10-22  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/acl.c (copy_acl): Fix file name in comment.
50166
50167 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50168
50169         Fix Tru64 problem with stdbool.h.
50170         * lib/stdbool.in.h (false, true):
50171         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50172         Don't declare as an enum in this situation; it runs afoul of Tru64.
50173         Problem reported by Steven M. Schweda in
50174         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50175
50176 2007-10-22  Eric Blake  <ebb9@byu.net>
50177
50178         Also wrap vf?printf.
50179         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50180         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50181         (xvprintf, xvfprintf): New functions.
50182
50183 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50184
50185         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50186         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50187
50188         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50189         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50190
50191 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50192
50193         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50194         by Bruno Haible.
50195
50196 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50197
50198         * lib/getloadavg.c
50199         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50200         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50201
50202         * tests/test-i-ring.c: Work for C89.
50203
50204 2007-10-22  Bruno Haible  <bruno@clisp.org>
50205
50206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50207         -1u, in preprocessor expression, so that we don't test for the bug
50208         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50210
50211 2007-10-22  Eric Blake  <ebb9@byu.net>
50212
50213         * tests/test-yesno.sh: Silence stderr during test.
50214
50215 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50216
50217         * modules/crypto/gc-camellia: New file.
50218
50219         * m4/gc-camellia.m4: New file.
50220
50221         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50222
50223         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50224
50225 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50226
50227         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50228         --help to stdout.  Reported by sms@antinode.org (Steven
50229         M. Schweda).
50230
50231 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50232
50233         * users.txt: Fix link to libksba.
50234
50235 2007-10-21  Ben Pfaff  <blp@gnu.org>
50236
50237         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50238         round.c roundf implementation that depends on floorf and ceilf to
50239         be tested unconditionally.
50240
50241 2007-10-21  Ben Pfaff  <blp@gnu.org>
50242
50243         * m4/check-libm-func.m4: Removed.
50244         * m4/check-math-lib.m4: New file.
50245         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50246         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50247         definition and lack of AC_LIBOBJ([roundf]).
50248         * m4/roundl.m4: Ditto, and similarly for roundl.
50249         * modules/round: Reference new m4 file.
50250         * modules/roundf: Ditto.
50251         * modules/roundl: Ditto.
50252         * tests/test-round2.c (main): Use ROUND instead of round.
50253         Bug report from Bruno Haible.
50254
50255 2007-10-21  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50258         context.
50259
50260 2007-10-21  Bruno Haible  <bruno@clisp.org>
50261
50262         * tests/test-wcwidth.c (main): Allow negative result for some control
50263         characters.
50264
50265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50266         Needed on OSF/1 5.1.
50267
50268 2007-10-21  Bruno Haible  <bruno@clisp.org>
50269
50270         * tests/test-floorf1.c: Include isnanf.h.
50271         (main): Use isnanf() instead of isnan().
50272         * tests/test-ceilf1.c: Include isnanf.h.
50273         (main): Use isnanf() instead of isnan().
50274         * tests/test-truncf1.c: Include isnanf.h.
50275         (main): Use isnanf() instead of isnan().
50276         * tests/test-roundf1.c: Include isnanf.h.
50277         (main): Use isnanf() instead of isnan().
50278
50279 2007-10-21  Eric Blake  <ebb9@byu.net>
50280
50281         * users.txt: Update URL for m4.
50282
50283 2007-10-21  Bruno Haible  <bruno@clisp.org>
50284
50285         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50286
50287 2007-10-21  Bruno Haible  <bruno@clisp.org>
50288
50289         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50290         Git's management files if the CVS files are not present.
50291
50292 2007-10-20  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50295         gcc-3.4.x.
50296
50297 2007-10-20  Ben Pfaff  <blp@gnu.org>
50298
50299         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50300         implementations.
50301         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50302         * lib/round.c: New file.
50303         * lib/roundf.c: New file.
50304         * lib/roundl.c: New file.
50305         * m4/round.m4: New file.
50306         * m4/roundf.m4: New file.
50307         * m4/roundl.m4: New file.
50308         * m4/check-libm-func-m4: New file.
50309         * modules/math: Replace round, roundf, roundl related @VARS@ in
50310         math.in.h.
50311         * modules/round: New file.
50312         * modules/round-tests: New file.
50313         * modules/roundf: New file.
50314         * modules/roundf-tests: New file.
50315         * modules/roundl: New file.
50316         * modules/roundl-tests: New file.
50317         * tests/test-round1.c: New file.
50318         * tests/test-round2.c: New file.
50319         * tests/test-roundf1.c: New file.
50320         * tests/test-roundf2.c: New file.
50321         * tests/test-roundl.c: New file.
50322         * doc/functions/round.texi: Mention round module.
50323         * doc/functions/roundf.texi: Mention roundf module.
50324         * doc/functions/roundl.texi: Mention roundl module.
50325         * MODULES.html.sh: Mention new modules.
50326         Thanks to Bruno Haible for suggestions.
50327
50328 2007-10-20  Jim Meyering  <meyering@redhat.com>
50329
50330         * lib/xprintf.c: Include <config.h> unconditionally.
50331
50332         Change xprintf's license to GPL.
50333         * modules/xprintf (License): s/LGPL/GPL/, since this module
50334         depends on modules (exit and exitfail) which are GPL.
50335         Suggestion from Bruno Haible.
50336
50337         xprintf fixes.
50338         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50339         Use a clearer diagnostic.
50340         Patch from Bruno Haible.
50341
50342 2007-10-20  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50345         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50347
50348 2007-10-20  Bruno Haible  <bruno@clisp.org>
50349
50350         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50351         precision in the comparison result > x - 1 or similar.
50352         * tests/test-ceilf2.c (correct_result_p): Likewise.
50353         * tests/test-truncf2.c (correct_result_p): Likewise.
50354         * tests/test-trunc2.c (correct_result_p): Likewise.
50355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50356
50357 2007-10-20  Bruno Haible  <bruno@clisp.org>
50358
50359         * modules/ceil: New file.
50360         * m4/ceil.m4: New file.
50361         * doc/functions/ceil.texi: Mention the 'ceil' module.
50362
50363 2007-10-20  Bruno Haible  <bruno@clisp.org>
50364
50365         * modules/floor: New file.
50366         * m4/floor.m4: New file.
50367         * doc/functions/floor.texi: Mention the 'floor' module.
50368
50369 2007-10-20  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50372         of %a.
50373         * modules/floorf-tests (Depends-on): Likewise.
50374         * modules/truncf-tests (Depends-on): Likewise.
50375         * modules/trunc-tests (Depends-on): Likewise.
50376         Reported by Ben Pfaff.
50377
50378 2007-10-19  Jim Meyering  <meyering@redhat.com>
50379
50380         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50381         Don't bother testing specific errno values.  Just test ferror.
50382
50383         New module: xprintf
50384         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50385
50386 2007-10-19  Bruno Haible  <bruno@clisp.org>
50387
50388         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50389         syntax.
50390         * modules/javaexec (Makefile.am): Likewise.
50391         * modules/relocatable-prog (Makefile.am): Likewise.
50392         Suggested by Jim Meyering.
50393
50394 2007-10-18  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50397         Reported by Jim Meyering.
50398
50399 2007-10-18  Eric Blake  <ebb9@byu.net>
50400
50401         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50402
50403 2007-10-18  Bruno Haible  <bruno@clisp.org>
50404
50405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50406         the format string into writable memory. Needed in Fortify conditions.
50407
50408 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50409             Bruno Haible  <bruno@clisp.org>
50410
50411         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50412         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50413         * modules/trim (Depends-on): Add mbchar.
50414         (configure.ac): Add gl_FUNC_MBRTOWC.
50415         (Makefile.am): Augment lib_SOURCES.
50416
50417 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         Modify glob.c to use fstatat and dirfd, to simplify it.
50420         Suggested by Eric Blake.
50421         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50422         Don't include <stdbool.h>; not used.
50423         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50424         (link_exists_p): Simplify implementation, since we can now assume
50425         dirfd and fstatat.
50426         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50427
50428 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50429
50430         * gnulib-tool (func_get_dependencies): Fix sed script to
50431         match only tests.
50432
50433 2007-10-17  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50436         allow locale names without encoding suffix.
50437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50439
50440 2007-10-16  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50443         * lib/getgroups.c (getgroups): Likewise.
50444         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50445
50446 2007-10-16  Bruno Haible  <bruno@clisp.org>
50447
50448         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50449         * modules/malloc-posix (License): Likewise.
50450         * modules/realloc-posix (License): Likewise.
50451         * modules/calloc-posix (License): Likewise.
50452         * modules/intprops (License): Change from GPL to LGPL, with
50453         Paul Eggert's approval.
50454
50455 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         Merge glibc changes into lib/glob.c.
50458
50459         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50460         2007-10-15 04:59:03 UTC.  Here are the changes:
50461
50462         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50463
50464         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50465
50466         * lib/glob.c: Add some branch prediction throughout.
50467
50468         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
50469
50470         [BZ #5103]
50471         * lib/glob.c (glob): Recognize patterns starting \/.
50472
50473         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
50474
50475         [BZ #3996]
50476         * lib/glob.c (attribute_hidden): Define if not defined.
50477         (glob): Unescape dirname, filename or username when needed and not
50478         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
50479         is NULL.  Handle unescaped [ in pattern without closing ].
50480         Don't pass GLOB_CHECK down to recursive glob for directories.
50481         (__glob_pattern_type): New function.
50482         (__glob_pattern_p): Implement using __glob_pattern_type.
50483         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
50484         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
50485         Remove unreachable code.
50486
50487         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
50488
50489         * lib/glob.c (glob_in_dir): Add some comments and asserts to
50490         explain why there are no leaks.
50491
50492         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
50493
50494         [BZ #3253]
50495         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
50496         time, rather allocate increasingly bigger arrays of pointers, if
50497         possible with alloca, if too large with malloc.
50498
50499 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50500
50501         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
50502         Problem reported by H.Merijn Brand in
50503         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
50504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
50505         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50506
50507 2007-10-15  Bruno Haible  <bruno@clisp.org>
50508
50509         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
50510         with explicit rpl_ prefix.
50511         * lib/fopen.c (fopen): Likewise.
50512         * lib/freopen.c (freopen): Likewise.
50513         * lib/iconv.c (iconv): Likewise.
50514         * lib/iconv_close.c (iconv_close): Likewise.
50515
50516 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50517
50518         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
50519
50520 2007-10-15  Bruno Haible  <bruno@clisp.org>
50521
50522         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
50523         <stddef.h> instead of <stdlib.h> since we only need NULL.
50524         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50525
50526 2007-10-15  Bruno Haible  <bruno@clisp.org>
50527
50528         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
50529         Replace paragraph talking about LIBOBJS.
50530         Reported by Colin Watson <cjwatson@debian.org>.
50531
50532 2007-10-15  Bruno Haible  <bruno@clisp.org>
50533
50534         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
50535         <stdlib.h> before using NULL.
50536
50537 2007-10-15  Simon Josefsson  <simon@josefsson.org>
50538
50539         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
50540         Reported by Albert Chin <china@thewrittenword.com>.
50541
50542 2007-10-14  Bruno Haible  <bruno@clisp.org>
50543
50544         * modules/iconv_open-utf-tests: New file.
50545         * tests/test-iconv-utf.c: New file.
50546
50547         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
50548         * modules/iconv_open-utf: New file.
50549         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
50550         (iconv, iconv_close): New declarations.
50551         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
50552         be defined.
50553         (iconv_open): Add special handling of conversion between UTF-8 and
50554         UTF-{16,32}{BE,LE}.
50555         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
50556         * lib/iconv_close.c: New file.
50557         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
50558         gl_FUNC_ICONV_OPEN.
50559         (gl_FUNC_ICONV_OPEN): Use it.
50560         (gl_FUNC_ICONV_OPEN_UTF): New macro.
50561         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
50562         and REPLACE_ICONV_UTF.
50563         * modules/iconv_open (Depends-on): Add c-strcase.
50564         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
50565         ICONV_CONST.
50566         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
50567
50568 2007-10-13  Albert Chin  <china@thewrittenword.com>
50569             Bruno Haible  <bruno@clisp.org>
50570
50571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
50572         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
50573
50574 2007-10-13  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
50577         defined, use the ISO C99 inline semantics.
50578         * lib/argp.h (ARGP_EI): Likewise.
50579
50580 2007-10-13  Bruno Haible  <bruno@clisp.org>
50581
50582         Handle 'inline' change in gcc 4.3.0.
50583         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
50584         argp_fmtstream_write, argp_fmtstream_set_lmargin,
50585         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
50586         argp_fmtstream_point): Disable 'extern' declaration if the function
50587         definition is going to be provided inline.
50588         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
50589         semantics, not the ISO C99 inline semantics.
50590         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
50591         'extern' declaration if the function definition is going to be provided
50592         inline.
50593         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
50594         the GNU C inline semantics, not the ISO C99 inline semantics. With
50595         GCC 4.2, avoid a warning.
50596
50597 2007-10-13  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/freading.h (freading): Enable the use of __freading for
50600         glibc >= 2.7.
50601         * lib/freading.c (freading): Likewise.
50602
50603 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50604
50605         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
50606         "warning: C99 inline functions are not supported; using GNU89".
50607
50608 2007-10-12  Bruno Haible  <bruno@clisp.org>
50609
50610         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
50611         of 2.
50612         * tests/test-ceilf2.c: New file.
50613         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
50614
50615         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
50616         * modules/ceilf-tests: Update.
50617
50618 2007-10-12  Bruno Haible  <bruno@clisp.org>
50619
50620         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
50621         of 2.
50622         * tests/test-floorf2.c: New file.
50623         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
50624
50625         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
50626         * modules/floorf-tests: Update.
50627
50628 2007-10-12  Bruno Haible  <bruno@clisp.org>
50629
50630         * tests/test-trunc2.c: New file.
50631         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
50632
50633         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
50634         * modules/trunc-tests: Update.
50635
50636 2007-10-12  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
50639         of 2.
50640         * tests/test-truncf2.c: New file.
50641         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
50642
50643         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
50644         * modules/truncf-tests: Update.
50645
50646 2007-10-11  Eric Blake  <ebb9@byu.net>
50647
50648         Don't claim strerror is broken on Interix.
50649         * doc/functions/strerror.texi (strerror): Known broken systems are
50650         now Solaris 8, and not Interix.
50651         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
50652         Interix on cross-compile.
50653         Reported by Martin Koeppe in
50654         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
50655
50656 2007-10-11  Bruno Haible  <bruno@clisp.org>
50657
50658         * modules/i-ring-tests: New file.
50659         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
50660         instead of assert.
50661
50662 2007-10-11  Bruno Haible  <bruno@clisp.org>
50663
50664         * modules/filenamecat-tests: New file.
50665         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
50666         * lib/filenamecat.c: Remove test code.
50667
50668 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50669
50670         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
50671
50672         * lib/strerror.c: Include <string.h> always, to test interface,
50673         and to remove the need for the dummy.
50674         Include intprops.h to compute width instead of doing it ourselves
50675         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
50676         (strerror): Define it to return NULL if there's no system strerror.
50677         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
50678         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
50679         ancient pre-strerror Unix systems well any more.  Saying "unknown
50680         system error" is enough.
50681         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
50682         simpler strerror.c implementation.
50683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
50684         Simplify the tests to reflect the simpler strerror implementation.
50685         * modules/strerror (Depends-on): Add intprops.
50686
50687 2007-10-09  Eric Blake  <ebb9@byu.net>
50688
50689         Silence test-fpending.
50690         * modules/fpending-tests (Files): Add wrapper script.
50691         * tests/test-fpending.sh: New file.
50692
50693 2007-10-09  Bruno Haible  <bruno@clisp.org>
50694
50695         * MODULES.html.sh (func_module): Don't create a hyperlink for
50696         function names like 'printf_frexp'.
50697         (Misc): Add crc, memxor.
50698         (Characteristics of floating types): New section.
50699         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
50700         isnanf-nolibm, signbit, trunc, truncf, truncl.
50701         (Enhancements for ISO C 99 functions): New subsection Input/output.
50702         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
50703         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
50704         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
50705         (Compatibility checks for POSIX:2001 functions): Add clock-time.
50706         (Enhancements for POSIX:2001 functions): Add chdir-long.
50707         (File system functions): Add areadlink, chdir-safer, read-file.
50708         Remove cycle-check.
50709         (File system as inode set): New section.
50710         (Date and time): Add gethrxtime.
50711         (Multithreading): Add openmp.
50712         (Internationalization functions): Add localename.
50713         (Unicode string functions): Add unistr/u*-mbsnlen.
50714         (Support for maintaining and releasing projects): Add git-version-gen.
50715         (Lone files): Remove directories.
50716
50717 2007-10-08  Ben Pfaff  <blp@gnu.org>
50718
50719         * lib/xmalloca.h: Fix typo in comment.
50720
50721 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50722
50723         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
50724         when avoiding problems with integer overflow.  Use a portable test
50725         instead.
50726
50727 2007-10-08  Simon Josefsson  <simon@josefsson.org>
50728
50729         * modules/dummy (License): Change to LGPLv2+.
50730         * modules/float (License): Likewise
50731         * modules/realloc (License): Likewise
50732         * modules/stdlib (License): Likewise
50733
50734 2007-10-07  Bruno Haible  <bruno@clisp.org>
50735
50736         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
50737         * floor.c (TWO_MANT_DIG): Likewise.
50738         * ceil.c (TWO_MANT_DIG): Likewise.
50739         Reported by Ben Pfaff.
50740
50741 2007-10-07  Bruno Haible  <bruno@clisp.org>
50742
50743         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
50744         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
50745         * lib/frexp.c (FUNC): Likewise.
50746         * lib/printf-frexp.h (printf_frexp): Likewise.
50747         * lib/printf-frexpl.h (printf_frexpl): Likewise.
50748         * lib/printf-frexp.c (FUNC): Likewise.
50749         Suggested by Jim Meyering.
50750
50751 2007-10-07  Jim Meyering  <meyering@redhat.com>
50752
50753         Make xnanosleep's integer overflow test more robust.
50754         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
50755         so that gcc-4.3.0 doesn't optimize away this test for overflow.
50756
50757 2007-10-07  Bruno Haible  <bruno@clisp.org>
50758
50759         * NEWS: Mention the license change.
50760
50761         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
50762         abbreviations in the modules files.
50763
50764         Change copyright notice from GPLv2+ to GPLv3+.
50765         * README: Change copyright notice.
50766         * MODULES.html.sh: Likewise.
50767         * build-aux/bootstrap.conf: Likewise.
50768         * build-aux/config.libpath: Likewise.
50769         * build-aux/csharpcomp.sh.in: Likewise.
50770         * build-aux/csharpexec.sh.in: Likewise.
50771         * build-aux/install-reloc: Likewise.
50772         * build-aux/javacomp.sh.in: Likewise.
50773         * build-aux/javaexec.sh.in: Likewise.
50774         * build-aux/ldd.sh.in: Likewise.
50775         * build-aux/reloc-ldflags: Likewise.
50776         * build-aux/relocatable.sh.in: Likewise.
50777         * build-aux/x-to-1.in: Likewise.
50778         * check-module: Likewise.
50779         * config/srclistvars.sh: Likewise.
50780         * gnulib-tool: Likewise.
50781         * lib/acl-internal.h: Likewise.
50782         * lib/acl.c: Likewise.
50783         * lib/acl.h: Likewise.
50784         * lib/acl_entries.c: Likewise.
50785         * lib/areadlink-with-size.c: Likewise.
50786         * lib/areadlink.c: Likewise.
50787         * lib/areadlink.h: Likewise.
50788         * lib/argmatch.c: Likewise.
50789         * lib/argmatch.h: Likewise.
50790         * lib/argp-ba.c: Likewise.
50791         * lib/argp-eexst.c: Likewise.
50792         * lib/argp-fmtstream.c: Likewise.
50793         * lib/argp-fmtstream.h: Likewise.
50794         * lib/argp-fs-xinl.c: Likewise.
50795         * lib/argp-help.c: Likewise.
50796         * lib/argp-namefrob.h: Likewise.
50797         * lib/argp-parse.c: Likewise.
50798         * lib/argp-pin.c: Likewise.
50799         * lib/argp-pv.c: Likewise.
50800         * lib/argp-pvh.c: Likewise.
50801         * lib/argp-xinl.c: Likewise.
50802         * lib/argp.h: Likewise.
50803         * lib/at-func.c: Likewise.
50804         * lib/atanl.c: Likewise.
50805         * lib/backupfile.c: Likewise.
50806         * lib/backupfile.h: Likewise.
50807         * lib/basename.c: Likewise.
50808         * lib/binary-io.h: Likewise.
50809         * lib/byteswap.in.h: Likewise.
50810         * lib/c-stack.c: Likewise.
50811         * lib/c-stack.h: Likewise.
50812         * lib/c-strcasestr.c: Likewise.
50813         * lib/c-strcasestr.h: Likewise.
50814         * lib/c-strstr.c: Likewise.
50815         * lib/c-strstr.h: Likewise.
50816         * lib/c-strtod.c: Likewise.
50817         * lib/calloc.c: Likewise.
50818         * lib/canon-host.c: Likewise.
50819         * lib/canon-host.h: Likewise.
50820         * lib/canonicalize-lgpl.c: Likewise.
50821         * lib/canonicalize.c: Likewise.
50822         * lib/canonicalize.h: Likewise.
50823         * lib/ceil.c: Likewise.
50824         * lib/ceilf.c: Likewise.
50825         * lib/ceill.c: Likewise.
50826         * lib/chdir-long.c: Likewise.
50827         * lib/chdir-long.h: Likewise.
50828         * lib/chdir-safer.c: Likewise.
50829         * lib/chdir-safer.h: Likewise.
50830         * lib/chown.c: Likewise.
50831         * lib/classpath.c: Likewise.
50832         * lib/classpath.h: Likewise.
50833         * lib/clean-temp.c: Likewise.
50834         * lib/clean-temp.h: Likewise.
50835         * lib/cloexec.c: Likewise.
50836         * lib/close-stream.c: Likewise.
50837         * lib/closein.c: Likewise.
50838         * lib/closein.h: Likewise.
50839         * lib/closeout.c: Likewise.
50840         * lib/closeout.h: Likewise.
50841         * lib/concat-filename.c: Likewise.
50842         * lib/copy-file.c: Likewise.
50843         * lib/copy-file.h: Likewise.
50844         * lib/count-one-bits.h: Likewise.
50845         * lib/crc.c: Likewise.
50846         * lib/crc.h: Likewise.
50847         * lib/creat-safer.c: Likewise.
50848         * lib/csharpcomp.c: Likewise.
50849         * lib/csharpcomp.h: Likewise.
50850         * lib/csharpexec.c: Likewise.
50851         * lib/csharpexec.h: Likewise.
50852         * lib/cycle-check.c: Likewise.
50853         * lib/cycle-check.h: Likewise.
50854         * lib/diacrit.c: Likewise.
50855         * lib/diacrit.h: Likewise.
50856         * lib/diffseq.h: Likewise.
50857         * lib/dirchownmod.c: Likewise.
50858         * lib/dirent.in.h: Likewise.
50859         * lib/dirfd.c: Likewise.
50860         * lib/dirfd.h: Likewise.
50861         * lib/dirname.c: Likewise.
50862         * lib/dirname.h: Likewise.
50863         * lib/dummy.c: Likewise.
50864         * lib/dup-safer.c: Likewise.
50865         * lib/dup2.c: Likewise.
50866         * lib/eealloc.h: Likewise.
50867         * lib/error.c: Likewise.
50868         * lib/error.h: Likewise.
50869         * lib/euidaccess.c: Likewise.
50870         * lib/exclude.c: Likewise.
50871         * lib/exclude.h: Likewise.
50872         * lib/execute.c: Likewise.
50873         * lib/execute.h: Likewise.
50874         * lib/exitfail.c: Likewise.
50875         * lib/exitfail.h: Likewise.
50876         * lib/expl.c: Likewise.
50877         * lib/fatal-signal.c: Likewise.
50878         * lib/fatal-signal.h: Likewise.
50879         * lib/fbufmode.c: Likewise.
50880         * lib/fbufmode.h: Likewise.
50881         * lib/fchdir.c: Likewise.
50882         * lib/fchmodat.c: Likewise.
50883         * lib/fchownat.c: Likewise.
50884         * lib/fcntl--.h: Likewise.
50885         * lib/fcntl-safer.h: Likewise.
50886         * lib/fcntl.in.h: Likewise.
50887         * lib/fd-safer.c: Likewise.
50888         * lib/fflush.c: Likewise.
50889         * lib/file-has-acl.c: Likewise.
50890         * lib/file-set.c: Likewise.
50891         * lib/file-type.c: Likewise.
50892         * lib/file-type.h: Likewise.
50893         * lib/fileblocks.c: Likewise.
50894         * lib/filemode.c: Likewise.
50895         * lib/filemode.h: Likewise.
50896         * lib/filename.h: Likewise.
50897         * lib/filenamecat.c: Likewise.
50898         * lib/filenamecat.h: Likewise.
50899         * lib/findprog.c: Likewise.
50900         * lib/findprog.h: Likewise.
50901         * lib/float.in.h: Likewise.
50902         * lib/floor.c: Likewise.
50903         * lib/floorf.c: Likewise.
50904         * lib/floorl.c: Likewise.
50905         * lib/fopen-safer.c: Likewise.
50906         * lib/fopen.c: Likewise.
50907         * lib/fpending.c: Likewise.
50908         * lib/fpending.h: Likewise.
50909         * lib/fprintf.c: Likewise.
50910         * lib/fprintftime.h: Likewise.
50911         * lib/fpucw.h: Likewise.
50912         * lib/fpurge.c: Likewise.
50913         * lib/fpurge.h: Likewise.
50914         * lib/freadable.c: Likewise.
50915         * lib/freadable.h: Likewise.
50916         * lib/freadahead.c: Likewise.
50917         * lib/freadahead.h: Likewise.
50918         * lib/freading.c: Likewise.
50919         * lib/freading.h: Likewise.
50920         * lib/free.c: Likewise.
50921         * lib/freopen.c: Likewise.
50922         * lib/frexp.c: Likewise.
50923         * lib/frexpl.c: Likewise.
50924         * lib/fseek.c: Likewise.
50925         * lib/fseterr.c: Likewise.
50926         * lib/fseterr.h: Likewise.
50927         * lib/fstatat.c: Likewise.
50928         * lib/fstrcmp.c: Likewise.
50929         * lib/fstrcmp.h: Likewise.
50930         * lib/fsusage.c: Likewise.
50931         * lib/fsusage.h: Likewise.
50932         * lib/ftell.c: Likewise.
50933         * lib/ftello.c: Likewise.
50934         * lib/fts-cycle.c: Likewise.
50935         * lib/fts.c: Likewise.
50936         * lib/fts_.h: Likewise.
50937         * lib/full-read.c: Likewise.
50938         * lib/full-read.h: Likewise.
50939         * lib/full-write.c: Likewise.
50940         * lib/full-write.h: Likewise.
50941         * lib/fwritable.c: Likewise.
50942         * lib/fwritable.h: Likewise.
50943         * lib/fwriteerror.c: Likewise.
50944         * lib/fwriteerror.h: Likewise.
50945         * lib/fwriting.c: Likewise.
50946         * lib/fwriting.h: Likewise.
50947         * lib/gcd.c: Likewise.
50948         * lib/gcd.h: Likewise.
50949         * lib/getcwd.c: Likewise.
50950         * lib/getdate.h: Likewise.
50951         * lib/getdate.y: Likewise.
50952         * lib/getdomainname.c: Likewise.
50953         * lib/getdomainname.h: Likewise.
50954         * lib/getgroups.c: Likewise.
50955         * lib/gethostname.c: Likewise.
50956         * lib/gethrxtime.c: Likewise.
50957         * lib/gethrxtime.h: Likewise.
50958         * lib/getloadavg.c: Likewise.
50959         * lib/getndelim2.c: Likewise.
50960         * lib/getndelim2.h: Likewise.
50961         * lib/getnline.c: Likewise.
50962         * lib/getnline.h: Likewise.
50963         * lib/getopt.c: Likewise.
50964         * lib/getopt.in.h: Likewise.
50965         * lib/getopt1.c: Likewise.
50966         * lib/getopt_int.h: Likewise.
50967         * lib/getpagesize.h: Likewise.
50968         * lib/getsubopt.c: Likewise.
50969         * lib/gettime.c: Likewise.
50970         * lib/getugroups.c: Likewise.
50971         * lib/getugroups.h: Likewise.
50972         * lib/getusershell.c: Likewise.
50973         * lib/gl_anyavltree_list1.h: Likewise.
50974         * lib/gl_anyavltree_list2.h: Likewise.
50975         * lib/gl_anyhash_list1.h: Likewise.
50976         * lib/gl_anyhash_list2.h: Likewise.
50977         * lib/gl_anylinked_list1.h: Likewise.
50978         * lib/gl_anylinked_list2.h: Likewise.
50979         * lib/gl_anyrbtree_list1.h: Likewise.
50980         * lib/gl_anyrbtree_list2.h: Likewise.
50981         * lib/gl_anytree_list1.h: Likewise.
50982         * lib/gl_anytree_list2.h: Likewise.
50983         * lib/gl_anytree_oset.h: Likewise.
50984         * lib/gl_anytreehash_list1.h: Likewise.
50985         * lib/gl_anytreehash_list2.h: Likewise.
50986         * lib/gl_array_list.c: Likewise.
50987         * lib/gl_array_list.h: Likewise.
50988         * lib/gl_array_oset.c: Likewise.
50989         * lib/gl_array_oset.h: Likewise.
50990         * lib/gl_avltree_list.c: Likewise.
50991         * lib/gl_avltree_list.h: Likewise.
50992         * lib/gl_avltree_oset.c: Likewise.
50993         * lib/gl_avltree_oset.h: Likewise.
50994         * lib/gl_avltreehash_list.c: Likewise.
50995         * lib/gl_avltreehash_list.h: Likewise.
50996         * lib/gl_carray_list.c: Likewise.
50997         * lib/gl_carray_list.h: Likewise.
50998         * lib/gl_linked_list.c: Likewise.
50999         * lib/gl_linked_list.h: Likewise.
51000         * lib/gl_linkedhash_list.c: Likewise.
51001         * lib/gl_linkedhash_list.h: Likewise.
51002         * lib/gl_list.c: Likewise.
51003         * lib/gl_list.h: Likewise.
51004         * lib/gl_oset.c: Likewise.
51005         * lib/gl_oset.h: Likewise.
51006         * lib/gl_rbtree_list.c: Likewise.
51007         * lib/gl_rbtree_list.h: Likewise.
51008         * lib/gl_rbtree_oset.c: Likewise.
51009         * lib/gl_rbtree_oset.h: Likewise.
51010         * lib/gl_rbtreehash_list.c: Likewise.
51011         * lib/gl_rbtreehash_list.h: Likewise.
51012         * lib/gl_sublist.c: Likewise.
51013         * lib/gl_sublist.h: Likewise.
51014         * lib/group-member.c: Likewise.
51015         * lib/group-member.h: Likewise.
51016         * lib/hard-locale.c: Likewise.
51017         * lib/hard-locale.h: Likewise.
51018         * lib/hash-pjw.c: Likewise.
51019         * lib/hash-pjw.h: Likewise.
51020         * lib/hash-triple.c: Likewise.
51021         * lib/hash.c: Likewise.
51022         * lib/hash.h: Likewise.
51023         * lib/human.c: Likewise.
51024         * lib/human.h: Likewise.
51025         * lib/i-ring.c: Likewise.
51026         * lib/i-ring.h: Likewise.
51027         * lib/idcache.c: Likewise.
51028         * lib/imaxabs.c: Likewise.
51029         * lib/imaxdiv.c: Likewise.
51030         * lib/inet_pton.c: Likewise.
51031         * lib/inet_pton.h: Likewise.
51032         * lib/intprops.h: Likewise.
51033         * lib/inttostr.c: Likewise.
51034         * lib/inttostr.h: Likewise.
51035         * lib/inttypes.in.h: Likewise.
51036         * lib/isapipe.c: Likewise.
51037         * lib/isdir.c: Likewise.
51038         * lib/isnan.c: Likewise.
51039         * lib/isnan.h: Likewise.
51040         * lib/isnanf.c: Likewise.
51041         * lib/isnanf.h: Likewise.
51042         * lib/isnanl-nolibm.h: Likewise.
51043         * lib/isnanl.c: Likewise.
51044         * lib/isnanl.h: Likewise.
51045         * lib/javacomp.c: Likewise.
51046         * lib/javacomp.h: Likewise.
51047         * lib/javaexec.c: Likewise.
51048         * lib/javaexec.h: Likewise.
51049         * lib/javaversion.c: Likewise.
51050         * lib/javaversion.h: Likewise.
51051         * lib/javaversion.java: Likewise.
51052         * lib/lbrkprop.h: Likewise.
51053         * lib/lchmod.h: Likewise.
51054         * lib/lchown.c: Likewise.
51055         * lib/ldexpl.c: Likewise.
51056         * lib/linebreak.c: Likewise.
51057         * lib/linebreak.h: Likewise.
51058         * lib/linebuffer.c: Likewise.
51059         * lib/linebuffer.h: Likewise.
51060         * lib/locale.in.h: Likewise.
51061         * lib/logl.c: Likewise.
51062         * lib/long-options.c: Likewise.
51063         * lib/long-options.h: Likewise.
51064         * lib/lstat.c: Likewise.
51065         * lib/lstat.h: Likewise.
51066         * lib/math.in.h: Likewise.
51067         * lib/mbchar.c: Likewise.
51068         * lib/mbchar.h: Likewise.
51069         * lib/mbfile.h: Likewise.
51070         * lib/mbiter.h: Likewise.
51071         * lib/mbscasecmp.c: Likewise.
51072         * lib/mbscasestr.c: Likewise.
51073         * lib/mbschr.c: Likewise.
51074         * lib/mbscspn.c: Likewise.
51075         * lib/mbslen.c: Likewise.
51076         * lib/mbsncasecmp.c: Likewise.
51077         * lib/mbsnlen.c: Likewise.
51078         * lib/mbspbrk.c: Likewise.
51079         * lib/mbspcasecmp.c: Likewise.
51080         * lib/mbsrchr.c: Likewise.
51081         * lib/mbssep.c: Likewise.
51082         * lib/mbsspn.c: Likewise.
51083         * lib/mbsstr.c: Likewise.
51084         * lib/mbstok_r.c: Likewise.
51085         * lib/mbswidth.c: Likewise.
51086         * lib/mbswidth.h: Likewise.
51087         * lib/mbuiter.h: Likewise.
51088         * lib/memcasecmp.c: Likewise.
51089         * lib/memcasecmp.h: Likewise.
51090         * lib/memchr.c: Likewise.
51091         * lib/memcmp.c: Likewise.
51092         * lib/memcoll.c: Likewise.
51093         * lib/memcoll.h: Likewise.
51094         * lib/memcpy.c: Likewise.
51095         * lib/memrchr.c: Likewise.
51096         * lib/mkancesdirs.c: Likewise.
51097         * lib/mkdir-p.c: Likewise.
51098         * lib/mkdir-p.h: Likewise.
51099         * lib/mkdir.c: Likewise.
51100         * lib/mkdirat.c: Likewise.
51101         * lib/mkdtemp.c: Likewise.
51102         * lib/mkstemp-safer.c: Likewise.
51103         * lib/mkstemp.c: Likewise.
51104         * lib/modechange.c: Likewise.
51105         * lib/modechange.h: Likewise.
51106         * lib/mountlist.c: Likewise.
51107         * lib/mountlist.h: Likewise.
51108         * lib/mpsort.c: Likewise.
51109         * lib/nanosleep.c: Likewise.
51110         * lib/obstack.c: Likewise.
51111         * lib/obstack.h: Likewise.
51112         * lib/open-safer.c: Likewise.
51113         * lib/open.c: Likewise.
51114         * lib/openat-die.c: Likewise.
51115         * lib/openat-priv.h: Likewise.
51116         * lib/openat-proc.c: Likewise.
51117         * lib/openat.c: Likewise.
51118         * lib/openat.h: Likewise.
51119         * lib/pagealign_alloc.c: Likewise.
51120         * lib/pagealign_alloc.h: Likewise.
51121         * lib/physmem.c: Likewise.
51122         * lib/physmem.h: Likewise.
51123         * lib/pipe-safer.c: Likewise.
51124         * lib/pipe.c: Likewise.
51125         * lib/pipe.h: Likewise.
51126         * lib/posixtm.c: Likewise.
51127         * lib/posixtm.h: Likewise.
51128         * lib/posixver.c: Likewise.
51129         * lib/printf-frexp.c: Likewise.
51130         * lib/printf-frexp.h: Likewise.
51131         * lib/printf-frexpl.c: Likewise.
51132         * lib/printf-frexpl.h: Likewise.
51133         * lib/printf.c: Likewise.
51134         * lib/progname.c: Likewise.
51135         * lib/progname.h: Likewise.
51136         * lib/progreloc.c: Likewise.
51137         * lib/putenv.c: Likewise.
51138         * lib/quote.c: Likewise.
51139         * lib/quote.h: Likewise.
51140         * lib/quotearg.c: Likewise.
51141         * lib/quotearg.h: Likewise.
51142         * lib/raise.c: Likewise.
51143         * lib/readline.c: Likewise.
51144         * lib/readline.h: Likewise.
51145         * lib/readlink.c: Likewise.
51146         * lib/readtokens.c: Likewise.
51147         * lib/readtokens.h: Likewise.
51148         * lib/readtokens0.c: Likewise.
51149         * lib/readtokens0.h: Likewise.
51150         * lib/readutmp.c: Likewise.
51151         * lib/readutmp.h: Likewise.
51152         * lib/realloc.c: Likewise.
51153         * lib/relocwrapper.c: Likewise.
51154         * lib/rename-dest-slash.c: Likewise.
51155         * lib/rename.c: Likewise.
51156         * lib/rmdir.c: Likewise.
51157         * lib/rpmatch.c: Likewise.
51158         * lib/safe-read.c: Likewise.
51159         * lib/safe-read.h: Likewise.
51160         * lib/safe-write.c: Likewise.
51161         * lib/safe-write.h: Likewise.
51162         * lib/same-inode.h: Likewise.
51163         * lib/same.c: Likewise.
51164         * lib/same.h: Likewise.
51165         * lib/save-cwd.c: Likewise.
51166         * lib/save-cwd.h: Likewise.
51167         * lib/savedir.c: Likewise.
51168         * lib/savedir.h: Likewise.
51169         * lib/savewd.c: Likewise.
51170         * lib/savewd.h: Likewise.
51171         * lib/search.in.h: Likewise.
51172         * lib/setenv.c: Likewise.
51173         * lib/setenv.h: Likewise.
51174         * lib/settime.c: Likewise.
51175         * lib/sh-quote.c: Likewise.
51176         * lib/sh-quote.h: Likewise.
51177         * lib/sig2str.c: Likewise.
51178         * lib/sig2str.h: Likewise.
51179         * lib/signal.in.h: Likewise.
51180         * lib/signbitd.c: Likewise.
51181         * lib/signbitf.c: Likewise.
51182         * lib/signbitl.c: Likewise.
51183         * lib/sigprocmask.c: Likewise.
51184         * lib/sincosl.c: Likewise.
51185         * lib/sleep.c: Likewise.
51186         * lib/sprintf.c: Likewise.
51187         * lib/sqrtl.c: Likewise.
51188         * lib/stat-time.h: Likewise.
51189         * lib/stdio--.h: Likewise.
51190         * lib/stdio-safer.h: Likewise.
51191         * lib/stdlib--.h: Likewise.
51192         * lib/stdlib-safer.h: Likewise.
51193         * lib/stdlib.in.h: Likewise.
51194         * lib/stpcpy.c: Likewise.
51195         * lib/stpncpy.c: Likewise.
51196         * lib/strchrnul.c: Likewise.
51197         * lib/strcspn.c: Likewise.
51198         * lib/strerror.c: Likewise.
51199         * lib/strftime.c: Likewise.
51200         * lib/strftime.h: Likewise.
51201         * lib/striconveh.c: Likewise.
51202         * lib/striconveh.h: Likewise.
51203         * lib/striconveha.c: Likewise.
51204         * lib/striconveha.h: Likewise.
51205         * lib/stripslash.c: Likewise.
51206         * lib/strnlen1.c: Likewise.
51207         * lib/strnlen1.h: Likewise.
51208         * lib/strtod.c: Likewise.
51209         * lib/strtoimax.c: Likewise.
51210         * lib/strtok_r.c: Likewise.
51211         * lib/strtol.c: Likewise.
51212         * lib/strtoll.c: Likewise.
51213         * lib/strtoul.c: Likewise.
51214         * lib/strtoull.c: Likewise.
51215         * lib/sysexits.in.h: Likewise.
51216         * lib/tempname.c: Likewise.
51217         * lib/tempname.h: Likewise.
51218         * lib/timespec.h: Likewise.
51219         * lib/tls.c: Likewise.
51220         * lib/tls.h: Likewise.
51221         * lib/tmpdir.c: Likewise.
51222         * lib/tmpdir.h: Likewise.
51223         * lib/tmpfile-safer.c: Likewise.
51224         * lib/tmpfile.c: Likewise.
51225         * lib/trigl.c: Likewise.
51226         * lib/trigl.h: Likewise.
51227         * lib/trim.c: Likewise.
51228         * lib/trim.h: Likewise.
51229         * lib/trunc.c: Likewise.
51230         * lib/truncf.c: Likewise.
51231         * lib/truncl.c: Likewise.
51232         * lib/tsearch.c: Likewise.
51233         * lib/unicodeio.c: Likewise.
51234         * lib/unicodeio.h: Likewise.
51235         * lib/unistd--.h: Likewise.
51236         * lib/unistd-safer.h: Likewise.
51237         * lib/unistdio/ulc-fprintf.c: Likewise.
51238         * lib/unistdio/ulc-vfprintf.c: Likewise.
51239         * lib/unlinkdir.c: Likewise.
51240         * lib/unlinkdir.h: Likewise.
51241         * lib/unlocked-io.h: Likewise.
51242         * lib/unsetenv.c: Likewise.
51243         * lib/userspec.c: Likewise.
51244         * lib/utime.c: Likewise.
51245         * lib/utimecmp.c: Likewise.
51246         * lib/utimecmp.h: Likewise.
51247         * lib/utimens.c: Likewise.
51248         * lib/verify.h: Likewise.
51249         * lib/verror.c: Likewise.
51250         * lib/verror.h: Likewise.
51251         * lib/version-etc-fsf.c: Likewise.
51252         * lib/version-etc.c: Likewise.
51253         * lib/version-etc.h: Likewise.
51254         * lib/vfprintf.c: Likewise.
51255         * lib/vprintf.c: Likewise.
51256         * lib/vsprintf.c: Likewise.
51257         * lib/w32spawn.h: Likewise.
51258         * lib/wait-process.c: Likewise.
51259         * lib/wait-process.h: Likewise.
51260         * lib/wcwidth.c: Likewise.
51261         * lib/write-any-file.c: Likewise.
51262         * lib/xalloc-die.c: Likewise.
51263         * lib/xalloc.h: Likewise.
51264         * lib/xasprintf.c: Likewise.
51265         * lib/xgetcwd.c: Likewise.
51266         * lib/xgetcwd.h: Likewise.
51267         * lib/xgetdomainname.c: Likewise.
51268         * lib/xgetdomainname.h: Likewise.
51269         * lib/xgethostname.c: Likewise.
51270         * lib/xmalloc.c: Likewise.
51271         * lib/xmalloca.c: Likewise.
51272         * lib/xmalloca.h: Likewise.
51273         * lib/xmemcoll.c: Likewise.
51274         * lib/xnanosleep.c: Likewise.
51275         * lib/xreadlink.c: Likewise.
51276         * lib/xreadlink.h: Likewise.
51277         * lib/xsetenv.c: Likewise.
51278         * lib/xsetenv.h: Likewise.
51279         * lib/xstriconv.c: Likewise.
51280         * lib/xstriconv.h: Likewise.
51281         * lib/xstrndup.c: Likewise.
51282         * lib/xstrndup.h: Likewise.
51283         * lib/xstrtod.c: Likewise.
51284         * lib/xstrtod.h: Likewise.
51285         * lib/xstrtol-error.c: Likewise.
51286         * lib/xstrtol.c: Likewise.
51287         * lib/xstrtol.h: Likewise.
51288         * lib/xtime.h: Likewise.
51289         * lib/xvasprintf.c: Likewise.
51290         * lib/xvasprintf.h: Likewise.
51291         * lib/yesno.c: Likewise.
51292         * lib/yesno.h: Likewise.
51293         * posix-modules: Likewise.
51294         * tests/test-alloca-opt.c: Likewise.
51295         * tests/test-arcfour.c: Likewise.
51296         * tests/test-arctwo.c: Likewise.
51297         * tests/test-argmatch.c: Likewise.
51298         * tests/test-argp-2.sh: Likewise.
51299         * tests/test-argp.c: Likewise.
51300         * tests/test-arpa_inet.c: Likewise.
51301         * tests/test-array_list.c: Likewise.
51302         * tests/test-array_oset.c: Likewise.
51303         * tests/test-atexit.c: Likewise.
51304         * tests/test-avltree_list.c: Likewise.
51305         * tests/test-avltree_oset.c: Likewise.
51306         * tests/test-avltreehash_list.c: Likewise.
51307         * tests/test-base64.c: Likewise.
51308         * tests/test-binary-io.c: Likewise.
51309         * tests/test-byteswap.c: Likewise.
51310         * tests/test-c-ctype.c: Likewise.
51311         * tests/test-c-strcasecmp.c: Likewise.
51312         * tests/test-c-strcasestr.c: Likewise.
51313         * tests/test-c-strncasecmp.c: Likewise.
51314         * tests/test-c-strstr.c: Likewise.
51315         * tests/test-canonicalize-lgpl.c: Likewise.
51316         * tests/test-canonicalize.c: Likewise.
51317         * tests/test-carray_list.c: Likewise.
51318         * tests/test-ceilf.c: Likewise.
51319         * tests/test-ceill.c: Likewise.
51320         * tests/test-count-one-bits.c: Likewise.
51321         * tests/test-crc.c: Likewise.
51322         * tests/test-dirname.c: Likewise.
51323         * tests/test-fbufmode.c: Likewise.
51324         * tests/test-fcntl.c: Likewise.
51325         * tests/test-fflush.c: Likewise.
51326         * tests/test-floorf.c: Likewise.
51327         * tests/test-floorl.c: Likewise.
51328         * tests/test-fopen.c: Likewise.
51329         * tests/test-fprintf-posix.c: Likewise.
51330         * tests/test-fprintf-posix.h: Likewise.
51331         * tests/test-fpurge.c: Likewise.
51332         * tests/test-freadable.c: Likewise.
51333         * tests/test-freadahead.c: Likewise.
51334         * tests/test-freading.c: Likewise.
51335         * tests/test-freopen.c: Likewise.
51336         * tests/test-frexp.c: Likewise.
51337         * tests/test-frexpl.c: Likewise.
51338         * tests/test-fseek.c: Likewise.
51339         * tests/test-fseeko.c: Likewise.
51340         * tests/test-fseterr.c: Likewise.
51341         * tests/test-fstrcmp.c: Likewise.
51342         * tests/test-ftell.c: Likewise.
51343         * tests/test-ftello.c: Likewise.
51344         * tests/test-fwritable.c: Likewise.
51345         * tests/test-fwriting.c: Likewise.
51346         * tests/test-getaddrinfo.c: Likewise.
51347         * tests/test-getpass.c: Likewise.
51348         * tests/test-gettimeofday.c: Likewise.
51349         * tests/test-hmac-md5.c: Likewise.
51350         * tests/test-hmac-sha1.c: Likewise.
51351         * tests/test-iconv.c: Likewise.
51352         * tests/test-iconvme.c: Likewise.
51353         * tests/test-inttypes.c: Likewise.
51354         * tests/test-isnan.c: Likewise.
51355         * tests/test-isnanf.c: Likewise.
51356         * tests/test-isnanl-nolibm.c: Likewise.
51357         * tests/test-isnanl.c: Likewise.
51358         * tests/test-isnanl.h: Likewise.
51359         * tests/test-ldexpl.c: Likewise.
51360         * tests/test-linked_list.c: Likewise.
51361         * tests/test-linkedhash_list.c: Likewise.
51362         * tests/test-locale.c: Likewise.
51363         * tests/test-localename.c: Likewise.
51364         * tests/test-lock.c: Likewise.
51365         * tests/test-lseek.c: Likewise.
51366         * tests/test-malloca.c: Likewise.
51367         * tests/test-math.c: Likewise.
51368         * tests/test-mbscasecmp.c: Likewise.
51369         * tests/test-mbscasestr1.c: Likewise.
51370         * tests/test-mbscasestr2.c: Likewise.
51371         * tests/test-mbscasestr3.c: Likewise.
51372         * tests/test-mbscasestr4.c: Likewise.
51373         * tests/test-mbschr.c: Likewise.
51374         * tests/test-mbscspn.c: Likewise.
51375         * tests/test-mbsncasecmp.c: Likewise.
51376         * tests/test-mbspbrk.c: Likewise.
51377         * tests/test-mbspcasecmp.c: Likewise.
51378         * tests/test-mbsrchr.c: Likewise.
51379         * tests/test-mbsspn.c: Likewise.
51380         * tests/test-mbsstr1.c: Likewise.
51381         * tests/test-mbsstr2.c: Likewise.
51382         * tests/test-mbsstr3.c: Likewise.
51383         * tests/test-md5.c: Likewise.
51384         * tests/test-memmem.c: Likewise.
51385         * tests/test-netinet_in.c: Likewise.
51386         * tests/test-open.c: Likewise.
51387         * tests/test-printf-frexp.c: Likewise.
51388         * tests/test-printf-frexpl.c: Likewise.
51389         * tests/test-printf-posix.c: Likewise.
51390         * tests/test-printf-posix.h: Likewise.
51391         * tests/test-rbtree_list.c: Likewise.
51392         * tests/test-rbtree_oset.c: Likewise.
51393         * tests/test-rbtreehash_list.c: Likewise.
51394         * tests/test-read-file.c: Likewise.
51395         * tests/test-rijndael.c: Likewise.
51396         * tests/test-search.c: Likewise.
51397         * tests/test-signbit.c: Likewise.
51398         * tests/test-sleep.c: Likewise.
51399         * tests/test-snprintf-posix.c: Likewise.
51400         * tests/test-snprintf-posix.h: Likewise.
51401         * tests/test-snprintf.c: Likewise.
51402         * tests/test-sprintf-posix.c: Likewise.
51403         * tests/test-sprintf-posix.h: Likewise.
51404         * tests/test-stat-time.c: Likewise.
51405         * tests/test-stdbool.c: Likewise.
51406         * tests/test-stdint.c: Likewise.
51407         * tests/test-stdio.c: Likewise.
51408         * tests/test-stdlib.c: Likewise.
51409         * tests/test-stpncpy.c: Likewise.
51410         * tests/test-strcasestr.c: Likewise.
51411         * tests/test-striconv.c: Likewise.
51412         * tests/test-striconveh.c: Likewise.
51413         * tests/test-striconveha.c: Likewise.
51414         * tests/test-string.c: Likewise.
51415         * tests/test-sys_select.c: Likewise.
51416         * tests/test-sys_socket.c: Likewise.
51417         * tests/test-sys_stat.c: Likewise.
51418         * tests/test-sys_time.c: Likewise.
51419         * tests/test-sysexits.c: Likewise.
51420         * tests/test-time.c: Likewise.
51421         * tests/test-tls.c: Likewise.
51422         * tests/test-trunc.c: Likewise.
51423         * tests/test-truncf.c: Likewise.
51424         * tests/test-truncl.c: Likewise.
51425         * tests/test-unistd.c: Likewise.
51426         * tests/test-vasnprintf-posix.c: Likewise.
51427         * tests/test-vasnprintf-posix2.c: Likewise.
51428         * tests/test-vasnprintf.c: Likewise.
51429         * tests/test-vasprintf-posix.c: Likewise.
51430         * tests/test-vasprintf.c: Likewise.
51431         * tests/test-verify.c: Likewise.
51432         * tests/test-vfprintf-posix.c: Likewise.
51433         * tests/test-vprintf-posix.c: Likewise.
51434         * tests/test-vsnprintf-posix.c: Likewise.
51435         * tests/test-vsnprintf.c: Likewise.
51436         * tests/test-vsprintf-posix.c: Likewise.
51437         * tests/test-wchar.c: Likewise.
51438         * tests/test-wctype.c: Likewise.
51439         * tests/test-wcwidth.c: Likewise.
51440         * tests/test-xstrtol.c: Likewise.
51441         * tests/test-xvasprintf.c: Likewise.
51442         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51443         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51447         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51448         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51449         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51450         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51451         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51452         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51453         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51454         * tests/uniname/test-uninames.c: Likewise.
51455         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51456         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51457         * tests/unistdio/test-u16-printf1.h: Likewise.
51458         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51459         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51460         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51461         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51462         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51463         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51464         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51465         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51466         * tests/unistdio/test-u32-printf1.h: Likewise.
51467         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51468         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51469         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51470         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51471         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51472         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51473         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51474         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
51475         * tests/unistdio/test-u8-printf1.h: Likewise.
51476         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51477         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51478         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51479         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51480         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51481         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51482         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51483         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
51484         * tests/unistdio/test-ulc-printf1.h: Likewise.
51485         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51486         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51487         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51488         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51489         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51490         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51491         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51492         * tests/uniwidth/test-u16-width.c: Likewise.
51493         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51494         * tests/uniwidth/test-u32-width.c: Likewise.
51495         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51496         * tests/uniwidth/test-u8-width.c: Likewise.
51497         * tests/uniwidth/test-uc_width.c: Likewise.
51498         * config/srclist-update: Likewise.
51499         (fixlicense): Update to GPLv3+.
51500
51501         Change copyright notice from LGPLv2.1+ to LGPLv3+.
51502         * tests/test-tsearch.c: Change copyright notice.
51503
51504         Change copyright notice from LGPLv2.0+ to LGPLv3+.
51505         * lib/c-strcaseeq.h: Change copyright notice.
51506         * lib/streq.h: Likewise.
51507         * lib/uniconv.h: Likewise.
51508         * lib/uniconv/u-conv-from-enc.h: Likewise.
51509         * lib/uniconv/u-conv-to-enc.h: Likewise.
51510         * lib/uniconv/u-strconv-from-enc.h: Likewise.
51511         * lib/uniconv/u-strconv-to-enc.h: Likewise.
51512         * lib/uniconv/u16-conv-from-enc.c: Likewise.
51513         * lib/uniconv/u16-conv-to-enc.c: Likewise.
51514         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
51515         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
51516         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
51517         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
51518         * lib/uniconv/u32-conv-from-enc.c: Likewise.
51519         * lib/uniconv/u32-conv-to-enc.c: Likewise.
51520         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
51521         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
51522         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
51523         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
51524         * lib/uniconv/u8-conv-from-enc.c: Likewise.
51525         * lib/uniconv/u8-conv-to-enc.c: Likewise.
51526         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
51527         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
51528         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
51529         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
51530         * lib/uniname.h: Likewise.
51531         * lib/uniname/uniname.c: Likewise.
51532         * lib/unistdio.h: Likewise.
51533         * lib/unistdio/u-asnprintf.h: Likewise.
51534         * lib/unistdio/u-asprintf.h: Likewise.
51535         * lib/unistdio/u-printf-args.c: Likewise.
51536         * lib/unistdio/u-printf-args.h: Likewise.
51537         * lib/unistdio/u-printf-parse.h: Likewise.
51538         * lib/unistdio/u-snprintf.h: Likewise.
51539         * lib/unistdio/u-sprintf.h: Likewise.
51540         * lib/unistdio/u-vasprintf.h: Likewise.
51541         * lib/unistdio/u-vsnprintf.h: Likewise.
51542         * lib/unistdio/u-vsprintf.h: Likewise.
51543         * lib/unistdio/u16-asnprintf.c: Likewise.
51544         * lib/unistdio/u16-asprintf.c: Likewise.
51545         * lib/unistdio/u16-printf-parse.c: Likewise.
51546         * lib/unistdio/u16-snprintf.c: Likewise.
51547         * lib/unistdio/u16-sprintf.c: Likewise.
51548         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
51549         * lib/unistdio/u16-u16-asprintf.c: Likewise.
51550         * lib/unistdio/u16-u16-snprintf.c: Likewise.
51551         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51552         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
51553         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
51554         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
51555         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
51556         * lib/unistdio/u16-vasnprintf.c: Likewise.
51557         * lib/unistdio/u16-vasprintf.c: Likewise.
51558         * lib/unistdio/u16-vsnprintf.c: Likewise.
51559         * lib/unistdio/u16-vsprintf.c: Likewise.
51560         * lib/unistdio/u32-asnprintf.c: Likewise.
51561         * lib/unistdio/u32-asprintf.c: Likewise.
51562         * lib/unistdio/u32-printf-parse.c: Likewise.
51563         * lib/unistdio/u32-snprintf.c: Likewise.
51564         * lib/unistdio/u32-sprintf.c: Likewise.
51565         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
51566         * lib/unistdio/u32-u32-asprintf.c: Likewise.
51567         * lib/unistdio/u32-u32-snprintf.c: Likewise.
51568         * lib/unistdio/u32-u32-sprintf.c: Likewise.
51569         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
51570         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
51571         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
51572         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
51573         * lib/unistdio/u32-vasnprintf.c: Likewise.
51574         * lib/unistdio/u32-vasprintf.c: Likewise.
51575         * lib/unistdio/u32-vsnprintf.c: Likewise.
51576         * lib/unistdio/u32-vsprintf.c: Likewise.
51577         * lib/unistdio/u8-asnprintf.c: Likewise.
51578         * lib/unistdio/u8-asprintf.c: Likewise.
51579         * lib/unistdio/u8-printf-parse.c: Likewise.
51580         * lib/unistdio/u8-snprintf.c: Likewise.
51581         * lib/unistdio/u8-sprintf.c: Likewise.
51582         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
51583         * lib/unistdio/u8-u8-asprintf.c: Likewise.
51584         * lib/unistdio/u8-u8-snprintf.c: Likewise.
51585         * lib/unistdio/u8-u8-sprintf.c: Likewise.
51586         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
51587         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
51588         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
51589         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
51590         * lib/unistdio/u8-vasnprintf.c: Likewise.
51591         * lib/unistdio/u8-vasprintf.c: Likewise.
51592         * lib/unistdio/u8-vsnprintf.c: Likewise.
51593         * lib/unistdio/u8-vsprintf.c: Likewise.
51594         * lib/unistdio/ulc-asnprintf.c: Likewise.
51595         * lib/unistdio/ulc-asprintf.c: Likewise.
51596         * lib/unistdio/ulc-printf-parse.c: Likewise.
51597         * lib/unistdio/ulc-snprintf.c: Likewise.
51598         * lib/unistdio/ulc-sprintf.c: Likewise.
51599         * lib/unistdio/ulc-vasnprintf.c: Likewise.
51600         * lib/unistdio/ulc-vasprintf.c: Likewise.
51601         * lib/unistdio/ulc-vsnprintf.c: Likewise.
51602         * lib/unistdio/ulc-vsprintf.c: Likewise.
51603         * lib/unistr.h: Likewise.
51604         * lib/unistr/u-cpy-alloc.h: Likewise.
51605         * lib/unistr/u-cpy.h: Likewise.
51606         * lib/unistr/u-endswith.h: Likewise.
51607         * lib/unistr/u-move.h: Likewise.
51608         * lib/unistr/u-set.h: Likewise.
51609         * lib/unistr/u-startswith.h: Likewise.
51610         * lib/unistr/u-stpcpy.h: Likewise.
51611         * lib/unistr/u-stpncpy.h: Likewise.
51612         * lib/unistr/u-strcat.h: Likewise.
51613         * lib/unistr/u-strcpy.h: Likewise.
51614         * lib/unistr/u-strcspn.h: Likewise.
51615         * lib/unistr/u-strdup.h: Likewise.
51616         * lib/unistr/u-strlen.h: Likewise.
51617         * lib/unistr/u-strncat.h: Likewise.
51618         * lib/unistr/u-strncpy.h: Likewise.
51619         * lib/unistr/u-strnlen.h: Likewise.
51620         * lib/unistr/u-strpbrk.h: Likewise.
51621         * lib/unistr/u-strspn.h: Likewise.
51622         * lib/unistr/u-strstr.h: Likewise.
51623         * lib/unistr/u-strtok.h: Likewise.
51624         * lib/unistr/u16-check.c: Likewise.
51625         * lib/unistr/u16-chr.c: Likewise.
51626         * lib/unistr/u16-cmp.c: Likewise.
51627         * lib/unistr/u16-cpy-alloc.c: Likewise.
51628         * lib/unistr/u16-cpy.c: Likewise.
51629         * lib/unistr/u16-endswith.c: Likewise.
51630         * lib/unistr/u16-mblen.c: Likewise.
51631         * lib/unistr/u16-mbsnlen.c: Likewise.
51632         * lib/unistr/u16-mbtouc-aux.c: Likewise.
51633         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
51634         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
51635         * lib/unistr/u16-mbtouc.c: Likewise.
51636         * lib/unistr/u16-mbtoucr.c: Likewise.
51637         * lib/unistr/u16-move.c: Likewise.
51638         * lib/unistr/u16-next.c: Likewise.
51639         * lib/unistr/u16-prev.c: Likewise.
51640         * lib/unistr/u16-set.c: Likewise.
51641         * lib/unistr/u16-startswith.c: Likewise.
51642         * lib/unistr/u16-stpcpy.c: Likewise.
51643         * lib/unistr/u16-stpncpy.c: Likewise.
51644         * lib/unistr/u16-strcat.c: Likewise.
51645         * lib/unistr/u16-strchr.c: Likewise.
51646         * lib/unistr/u16-strcmp.c: Likewise.
51647         * lib/unistr/u16-strcpy.c: Likewise.
51648         * lib/unistr/u16-strcspn.c: Likewise.
51649         * lib/unistr/u16-strdup.c: Likewise.
51650         * lib/unistr/u16-strlen.c: Likewise.
51651         * lib/unistr/u16-strmblen.c: Likewise.
51652         * lib/unistr/u16-strmbtouc.c: Likewise.
51653         * lib/unistr/u16-strncat.c: Likewise.
51654         * lib/unistr/u16-strncmp.c: Likewise.
51655         * lib/unistr/u16-strncpy.c: Likewise.
51656         * lib/unistr/u16-strnlen.c: Likewise.
51657         * lib/unistr/u16-strpbrk.c: Likewise.
51658         * lib/unistr/u16-strrchr.c: Likewise.
51659         * lib/unistr/u16-strspn.c: Likewise.
51660         * lib/unistr/u16-strstr.c: Likewise.
51661         * lib/unistr/u16-strtok.c: Likewise.
51662         * lib/unistr/u16-to-u32.c: Likewise.
51663         * lib/unistr/u16-to-u8.c: Likewise.
51664         * lib/unistr/u16-uctomb-aux.c: Likewise.
51665         * lib/unistr/u16-uctomb.c: Likewise.
51666         * lib/unistr/u32-check.c: Likewise.
51667         * lib/unistr/u32-chr.c: Likewise.
51668         * lib/unistr/u32-cmp.c: Likewise.
51669         * lib/unistr/u32-cpy-alloc.c: Likewise.
51670         * lib/unistr/u32-cpy.c: Likewise.
51671         * lib/unistr/u32-endswith.c: Likewise.
51672         * lib/unistr/u32-mblen.c: Likewise.
51673         * lib/unistr/u32-mbsnlen.c: Likewise.
51674         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
51675         * lib/unistr/u32-mbtouc.c: Likewise.
51676         * lib/unistr/u32-mbtoucr.c: Likewise.
51677         * lib/unistr/u32-move.c: Likewise.
51678         * lib/unistr/u32-next.c: Likewise.
51679         * lib/unistr/u32-prev.c: Likewise.
51680         * lib/unistr/u32-set.c: Likewise.
51681         * lib/unistr/u32-startswith.c: Likewise.
51682         * lib/unistr/u32-stpcpy.c: Likewise.
51683         * lib/unistr/u32-stpncpy.c: Likewise.
51684         * lib/unistr/u32-strcat.c: Likewise.
51685         * lib/unistr/u32-strchr.c: Likewise.
51686         * lib/unistr/u32-strcmp.c: Likewise.
51687         * lib/unistr/u32-strcpy.c: Likewise.
51688         * lib/unistr/u32-strcspn.c: Likewise.
51689         * lib/unistr/u32-strdup.c: Likewise.
51690         * lib/unistr/u32-strlen.c: Likewise.
51691         * lib/unistr/u32-strmblen.c: Likewise.
51692         * lib/unistr/u32-strmbtouc.c: Likewise.
51693         * lib/unistr/u32-strncat.c: Likewise.
51694         * lib/unistr/u32-strncmp.c: Likewise.
51695         * lib/unistr/u32-strncpy.c: Likewise.
51696         * lib/unistr/u32-strnlen.c: Likewise.
51697         * lib/unistr/u32-strpbrk.c: Likewise.
51698         * lib/unistr/u32-strrchr.c: Likewise.
51699         * lib/unistr/u32-strspn.c: Likewise.
51700         * lib/unistr/u32-strstr.c: Likewise.
51701         * lib/unistr/u32-strtok.c: Likewise.
51702         * lib/unistr/u32-to-u16.c: Likewise.
51703         * lib/unistr/u32-to-u8.c: Likewise.
51704         * lib/unistr/u32-uctomb.c: Likewise.
51705         * lib/unistr/u8-check.c: Likewise.
51706         * lib/unistr/u8-chr.c: Likewise.
51707         * lib/unistr/u8-cmp.c: Likewise.
51708         * lib/unistr/u8-cpy-alloc.c: Likewise.
51709         * lib/unistr/u8-cpy.c: Likewise.
51710         * lib/unistr/u8-endswith.c: Likewise.
51711         * lib/unistr/u8-mblen.c: Likewise.
51712         * lib/unistr/u8-mbsnlen.c: Likewise.
51713         * lib/unistr/u8-mbtouc-aux.c: Likewise.
51714         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
51715         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
51716         * lib/unistr/u8-mbtouc.c: Likewise.
51717         * lib/unistr/u8-mbtoucr.c: Likewise.
51718         * lib/unistr/u8-move.c: Likewise.
51719         * lib/unistr/u8-next.c: Likewise.
51720         * lib/unistr/u8-prev.c: Likewise.
51721         * lib/unistr/u8-set.c: Likewise.
51722         * lib/unistr/u8-startswith.c: Likewise.
51723         * lib/unistr/u8-stpcpy.c: Likewise.
51724         * lib/unistr/u8-stpncpy.c: Likewise.
51725         * lib/unistr/u8-strcat.c: Likewise.
51726         * lib/unistr/u8-strchr.c: Likewise.
51727         * lib/unistr/u8-strcmp.c: Likewise.
51728         * lib/unistr/u8-strcpy.c: Likewise.
51729         * lib/unistr/u8-strcspn.c: Likewise.
51730         * lib/unistr/u8-strdup.c: Likewise.
51731         * lib/unistr/u8-strlen.c: Likewise.
51732         * lib/unistr/u8-strmblen.c: Likewise.
51733         * lib/unistr/u8-strmbtouc.c: Likewise.
51734         * lib/unistr/u8-strncat.c: Likewise.
51735         * lib/unistr/u8-strncmp.c: Likewise.
51736         * lib/unistr/u8-strncpy.c: Likewise.
51737         * lib/unistr/u8-strnlen.c: Likewise.
51738         * lib/unistr/u8-strpbrk.c: Likewise.
51739         * lib/unistr/u8-strrchr.c: Likewise.
51740         * lib/unistr/u8-strspn.c: Likewise.
51741         * lib/unistr/u8-strstr.c: Likewise.
51742         * lib/unistr/u8-strtok.c: Likewise.
51743         * lib/unistr/u8-to-u16.c: Likewise.
51744         * lib/unistr/u8-to-u32.c: Likewise.
51745         * lib/unistr/u8-uctomb-aux.c: Likewise.
51746         * lib/unistr/u8-uctomb.c: Likewise.
51747         * lib/unitypes.h: Likewise.
51748         * lib/uniwidth.h: Likewise.
51749         * lib/uniwidth/cjk.h: Likewise.
51750         * lib/uniwidth/u16-strwidth.c: Likewise.
51751         * lib/uniwidth/u16-width.c: Likewise.
51752         * lib/uniwidth/u32-strwidth.c: Likewise.
51753         * lib/uniwidth/u32-width.c: Likewise.
51754         * lib/uniwidth/u8-strwidth.c: Likewise.
51755         * lib/uniwidth/u8-width.c: Likewise.
51756         * lib/uniwidth/width.c: Likewise.
51757
51758 2007-10-07  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
51761         The file is still under LGPL (see modules/inttypes).
51762
51763 2007-10-06  Bruno Haible  <bruno@clisp.org>
51764
51765         * modules/trunc (Dependencies): Add 'extensions'.
51766         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
51767         Reported by Ben Pfaff <blp@gnu.org>.
51768
51769 2007-10-06  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/freopen-tests: New file.
51772         * tests/test-freopen.c: New file.
51773
51774         * modules/fopen-tests: New file.
51775         * tests/test-fopen.c: New file.
51776
51777         * modules/fopen: New file.
51778         * lib/fopen.c: New file.
51779         * m4/fopen.m4: New file.
51780         * modules/freopen: New file.
51781         * lib/freopen.c: New file.
51782         * m4/freopen.m4: New file.
51783         * lib/stdio.in.h (fopen, freopen): New declarations.
51784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
51785         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51786         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
51787         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
51788         * doc/functions/fopen.texi: Mention the 'fopen' module.
51789         * doc/functions/freopen.texi: Mention the 'freopen' module.
51790
51791 2007-10-06  Bruno Haible  <bruno@clisp.org>
51792
51793         * modules/open-tests: New file.
51794         * tests/test-open.c: New file.
51795
51796         * modules/open: New file.
51797         * lib/open.c: New file.
51798         * m4/open.m4: New file.
51799         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
51800         lib/open.c does.
51801         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
51802         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
51803         macros.
51804         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
51805         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
51806         REPLACE_OPEN.
51807         * doc/functions/open.texi: Mention the 'open' module.
51808
51809 2007-10-04  Bruno Haible  <bruno@clisp.org>
51810
51811         * modules/ceill-tests: New file.
51812         * tests/test-ceill.c: New file.
51813
51814         * modules/ceill: New file.
51815         * lib/ceill.c: Replace entire file.
51816         * m4/ceill.m4: New file.
51817         * lib/math.in.h (ceill): Replace declaration.
51818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
51819         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
51820         * doc/functions/ceill.texi: Mention the 'ceill' module.
51821         * modules/mathl (Files): Remove lib/ceill.c.
51822         (Depends-on): Add ceill.
51823
51824 2007-10-04  Bruno Haible  <bruno@clisp.org>
51825
51826         * modules/ceilf-tests: New file.
51827         * tests/test-ceilf.c: New file.
51828
51829         * modules/ceilf: New file.
51830         * lib/ceil.c: New file.
51831         * lib/ceilf.c: New file.
51832         * m4/ceilf.m4: New file.
51833         * lib/math.in.h (ceilf): New declaration.
51834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
51835         HAVE_DECL_CEILF.
51836         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
51837         HAVE_DECL_CEILF.
51838         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
51839
51840 2007-10-04  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/floorl-tests: New file.
51843         * tests/test-floorl.c: New file.
51844
51845         * modules/floorl: New file.
51846         * lib/floorl.c: Replace entire file.
51847         * m4/floorl.m4: New file.
51848         * lib/math.in.h (floorl): Replace declaration.
51849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
51850         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
51851         * doc/functions/floorl.texi: Mention the 'floorl' module.
51852         * modules/mathl (Files): Remove lib/floorl.c.
51853         (Depends-on): Add floorl.
51854
51855 2007-10-04  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/floorf-tests: New file.
51858         * tests/test-floorf.c: New file.
51859
51860         * modules/floorf: New file.
51861         * lib/floor.c: New file.
51862         * lib/floorf.c: New file.
51863         * m4/floorf.m4: New file.
51864         * lib/math.in.h (floorf): New declaration.
51865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
51866         HAVE_DECL_FLOORF.
51867         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
51868         HAVE_DECL_FLOORF.
51869         * doc/functions/floorf.texi: Mention the 'floorf' module.
51870
51871 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
51872             Bruno Haible  <bruno@clisp.org>
51873
51874         Advertise for the Git server instead of the CVS server.
51875         * doc/gnulib-intro.texi (Steady Development): Mention the Git
51876         repository instead of the CVS one.
51877         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
51878         about all VCS systems generically.
51879         * doc/gnulib.texi (Introduction): Capitalize `Git'.
51880
51881 2007-10-04  Bruno Haible  <bruno@clisp.org>
51882
51883         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
51884         means.
51885         Reported by BenoĂ®t Sigoure <tsuna@lrde.epita.fr>.
51886
51887 2007-10-04  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/truncl-tests: New file.
51890         * tests/test-truncl.c: New file.
51891
51892         * modules/truncl: New file.
51893         * lib/truncl.c: New file.
51894         * m4/truncl.m4: New file.
51895         * lib/math.in.h (truncl): New declaration.
51896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
51897         HAVE_DECL_TRUNCL.
51898         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
51899         HAVE_DECL_TRUNCL.
51900         * doc/functions/truncl.texi: Mention the 'truncl' module.
51901
51902 2007-10-04  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/truncf-tests: New file.
51905         * tests/test-truncf.c: New file.
51906
51907         * modules/truncf: New file.
51908         * lib/trunc.c: Make paramerizable through USE_* macros.
51909         * lib/truncf.c: New file.
51910         * m4/truncf.m4: New file.
51911         * lib/math.in.h (truncf): New declaration.
51912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
51913         HAVE_DECL_TRUNCF.
51914         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
51915         HAVE_DECL_TRUNCF.
51916         * doc/functions/truncf.texi: Mention the 'truncf' module.
51917
51918 2007-10-03  Bruno Haible  <bruno@clisp.org>
51919
51920         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51921         augmentation also for tests modules.
51922         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
51923         * modules/atexit-tests (Makefile.am): Likewise.
51924         * modules/binary-io-tests (Makefile.am): Likewise.
51925         * modules/c-strcase-tests (Makefile.am): Likewise.
51926         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
51927         * modules/canonicalize-tests (Makefile.am): Likewise.
51928         * modules/closein-tests (Makefile.am): Likewise.
51929         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51930         * modules/freadahead-tests (Makefile.am): Likewise.
51931         * modules/fseek-tests (Makefile.am): Likewise.
51932         * modules/fseeko-tests (Makefile.am): Likewise.
51933         * modules/ftell-tests (Makefile.am): Likewise.
51934         * modules/ftello-tests (Makefile.am): Likewise.
51935         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
51936         * modules/isnanl-tests (Makefile.am): Likewise.
51937         * modules/lseek-tests (Makefile.am): Likewise.
51938         * modules/mbscasecmp-tests (Makefile.am): Likewise.
51939         * modules/mbscasestr-tests (Makefile.am): Likewise.
51940         * modules/mbschr-tests (Makefile.am): Likewise.
51941         * modules/mbscspn-tests (Makefile.am): Likewise.
51942         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
51943         * modules/mbspbrk-tests (Makefile.am): Likewise.
51944         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
51945         * modules/mbsrchr-tests (Makefile.am): Likewise.
51946         * modules/mbsspn-tests (Makefile.am): Likewise.
51947         * modules/mbsstr-tests (Makefile.am): Likewise.
51948         * modules/printf-posix-tests (Makefile.am): Likewise.
51949         * modules/snprintf-posix-tests (Makefile.am): Likewise.
51950         * modules/sprintf-posix-tests (Makefile.am): Likewise.
51951         * modules/tsearch-tests (Makefile.am): Likewise.
51952         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51953         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
51954         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
51955         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
51956         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
51957         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
51958         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51959         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51960         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
51961         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
51962         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51963         * modules/xstrtol-tests (Makefile.am): Likewise.
51964         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51965         * modules/yesno-tests (Makefile.am): Likewise.
51966
51967 2007-10-03  Bruno Haible  <bruno@clisp.org>
51968
51969         * modules/trunc-tests: New file.
51970         * tests/test-trunc.c: New file.
51971
51972         * modules/trunc: New file.
51973         * lib/trunc.c: New file.
51974         * m4/trunc.m4: New file.
51975         * lib/math.in.h (trunc): New declaration.
51976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
51977         HAVE_DECL_TRUNC.
51978         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
51979         HAVE_DECL_TRUNC.
51980         * doc/functions/trunc.texi: Mention the 'trunc' module.
51981
51982 2007-10-03  Bruno Haible  <bruno@clisp.org>
51983
51984         * tests/test-fpending.c: New file, mostly copied
51985         from coreutils/lib/t-fpending.c.
51986         * modules/fpending-tests: New file.
51987
51988 2007-10-03  Bruno Haible  <bruno@clisp.org>
51989
51990         Port the stdio extensions to QNX (untested).
51991         * lib/fseterr.c (fseterr): Add support for QNX.
51992         * lib/fbufmode.c (fbufmode): Likewise.
51993         * lib/freadable.c (freadable): Likewise.
51994         * lib/fwritable.c (fwritable): Likewise.
51995         * lib/freading.c (freading): Likewise.
51996         * lib/fwriting.c (fwriting): Likewise.
51997         * lib/freadahead.c (freadahed): Likewise.
51998         * lib/fpurge.c (fpurge): Likewise.
51999         * lib/fseeko.c (rpl_fseeko): Likewise.
52000
52001 2007-10-03  Bruno Haible  <bruno@clisp.org>
52002             Jim Meyering  <jim@meyering.net>
52003             Eric Blake  <ebb9@byu.net>
52004
52005         * doc/relocatable.texi: Use @command instead of @program.
52006
52007 2007-10-02  Jim Meyering  <jim@meyering.net>
52008
52009         Perform one more "_.h" -> ".in.h" substitution.
52010         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52011         instead of unistd_.h here, too.
52012
52013 2007-10-01  Bruno Haible  <bruno@clisp.org>
52014
52015         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52016         Needed for the alloca-opt module.
52017
52018 2007-09-30  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52021         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52022         alloca_.h.
52023         * lib/argz.in.h: Renamed from lib/argz_.h.
52024         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52025         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52026         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52027         byteswap_.h.
52028         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52029         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52030         dirent_.h.
52031         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52032         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52033         fcntl_.h.
52034         * lib/float.in.h: Renamed from lib/float_.h.
52035         * modules/float (Files, Makefile.am): Use float.in.h instead of
52036         float_.h.
52037         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52038         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52039         fnmatch_.h.
52040         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52041         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52042         getopt_.h.
52043         * lib/glob.in.h: Renamed from lib/glob_.h.
52044         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52045         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52046         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52047         iconv_.h.
52048         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52049         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52050         inttypes_.h.
52051         * lib/locale.in.h: Renamed from lib/locale_.h.
52052         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52053         locale_.h.
52054         * lib/math.in.h: Renamed from lib/math_.h.
52055         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52056         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52057         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52058         of netinet_in_.h. Add dependency.
52059         * lib/poll.in.h: Renamed from lib/poll_.h.
52060         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52061         * lib/search.in.h: Renamed from lib/search_.h.
52062         * modules/search (Files, Makefile.am): Use search.in.h instead of
52063         search_.h.
52064         * lib/signal.in.h: Renamed from lib/signal_.h.
52065         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52066         _signal.h.
52067         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52068         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52069         stdbool_.h.
52070         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52071         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52072         stdint_.h.
52073         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52074         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52075         stdio_.h.
52076         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52077         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52078         stdlib_.h.
52079         * lib/string.in.h: Renamed from lib/string_.h.
52080         * modules/string (Files, Makefile.am): Use string.in.h instead of
52081         string_.h.
52082         * doc/gnulib-tool.texi (Initial import): Update.
52083         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52084         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52085         of sys_select_.h. Add dependency.
52086         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52087         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52088         of sys_socket_.h.
52089         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52090         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52091         sys_stat_.h.
52092         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52093         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52094         sys_time_.h.
52095         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52096         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52097         sysexits_.h.
52098         * lib/time.in.h: Renamed from lib/time_.h.
52099         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52100         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52101         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52102         unistd_.h.
52103         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52104         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52105         wchar_.h.
52106         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52107         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52108         wctype_.h.
52109         * build-aux/bootstrap (slurp): Update.
52110         * lib/.cppi-disable: Update.
52111
52112 2007-09-30  Bruno Haible  <bruno@clisp.org>
52113
52114         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52115         Needed on BeOS.
52116
52117 2007-09-30  Bruno Haible  <bruno@clisp.org>
52118
52119         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52120
52121 2007-09-29  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52124
52125 2007-09-29  Bruno Haible  <bruno@clisp.org>
52126
52127         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52128         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52129         * build-aux/install-reloc: Compile also areadlink.c.
52130         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52131
52132 2007-09-29  Bruno Haible  <bruno@clisp.org>
52133
52134         * gnulib-tool (func_emit_initmacro_done): Indentation.
52135
52136 2007-09-29  Bruno Haible  <bruno@clisp.org>
52137
52138         * README: Add CVS checkout update instructions.
52139         Info from Bob Proulx <bob@proulx.com>.
52140
52141 2007-09-28  Eric Blake  <ebb9@byu.net>
52142
52143         Provide move-if-change.
52144         * build-aux/move-if-change: New file, based on best practice
52145         rather than any canonical upstream location.
52146
52147 2007-09-28  Jim Meyering  <jim@meyering.net>
52148
52149         Fix canonicalize loop-detection corner case.
52150         Do not attempt to stat the symlink values stored via seen_triple.
52151         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52152         on linux-2.6.18, (but not 2.6.22).
52153         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52154         triple_compare.  The former compares dev,ino,filename, while the latter
52155         would actually stat dirname(filename) when dev and ino were equal.
52156         * lib/hash-triple.c: Install <string.h>.
52157         (STREQ): Define.
52158         (triple_compare_ino_str): New function.
52159         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52160
52161 2007-09-28  Eric Blake  <ebb9@byu.net>
52162
52163         Enforce that AC_REPLACE_FUNCS files exist.
52164         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52165         override check for typos.
52166
52167         Fix test-closein on Solaris 10.
52168         * tests/test-closein.c (main): Don't assume stdin can be inherited
52169         closed on all systems.
52170         * tests/test-closein.sh: Likewise.
52171         Reported by Piotr Tarnowski.
52172
52173 2007-09-28  Jim Meyering  <jim@meyering.net>
52174
52175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52176
52177 2007-09-27  Jim Meyering  <jim@meyering.net>
52178
52179         canonicalize: Avoid a false-positive cycle failure.
52180         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52181         Sort.  Remove cycle-check.
52182         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52183         not cycle-check.h.
52184         (seen_triple): New function.
52185         (canonicalize_filename_mode): Use it instead of cycle-check.
52186         * tests/test-canonicalize.c: Add a test for this bug.
52187         * tests/test-canonicalize.sh: Set up and run the test.
52188
52189         New module, file-set, from coreutils.
52190         * modules/file-set: Define it.
52191         * lib/file-set.c, lib/file-set.h: Implement.
52192
52193         New module, hash-triple, from coreutils.
52194         * modules/hash-triple: Define it.
52195         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52196
52197 2007-09-25  Eric Blake  <ebb9@byu.net>
52198
52199         Fix strerror on Interix.
52200         * lib/string_.h (strerror): Declare replacement.
52201         * doc/functions/strerror.texi (strerror): Document the Interix
52202         shortcoming.
52203         * modules/string (Makefile.am): Support new hooks.
52204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52205         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52206         gl_FUNC_STRERROR_SEPARATE.
52207         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52208         * lib/strerror.c (rpl_strerror): Provide replacement.
52209         * modules/strerror (Depends-on): Add string.
52210         (configure.ac): Detect use of module.
52211         * tests/test-strerror.c: New file.
52212         * modules/strerror-tests: New test module.
52213         * modules/argp (Depends-on): Add strerror.
52214         * modules/error (Depends-on): Likewise.
52215         Reported by Martin Koeppe.
52216
52217 2007-09-24  Bruno Haible  <bruno@clisp.org>
52218
52219         * README: Update git instructions.
52220
52221 2007-09-24  Eric Blake  <ebb9@byu.net>
52222
52223         Revert fpending breakage from 2007-09-08.
52224         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52225         __fpending.c.
52226
52227 2007-09-24  Jim Meyering  <jim@meyering.net>
52228
52229         filenamecat.c: Add a test.
52230         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52231         showing how the function works when DIR is the empty string.
52232
52233 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52234
52235         * tests/test-canonicalize.sh: Turn on executable bit.
52236
52237 2007-09-19  Eric Blake  <ebb9@byu.net>
52238
52239         * README: Update CVS instructions.
52240
52241 2007-09-18  Bruno Haible  <bruno@clisp.org>
52242
52243         * modules/areadlink: New file.
52244         * lib/areadlink.h (areadlink): New declaration.
52245         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52246
52247 2007-09-17  Jim Meyering  <jim@meyering.net>
52248
52249         * lib/savewd.c (ESTALE) [!defined]: Define.
52250         Reported to be required on Interix by Martin Koeppe.
52251
52252 2007-09-17  Bruno Haible  <bruno@clisp.org>
52253
52254         * gnulib-tool (func_version): Use $version.
52255
52256 2007-09-16  Bruno Haible  <bruno@clisp.org>
52257
52258         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52259         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52260         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52261         Reported by Greg Schafer <gschafer@zip.com.au>.
52262
52263 2007-09-15  Bruno Haible  <bruno@clisp.org>
52264
52265         * gnulib-tool (sed): Try a little harder to make bash understand the
52266         alias.
52267         Reported by Bruce Korb <bruce.korb@gmail.com>.
52268
52269 2007-09-13  Eric Blake  <ebb9@byu.net>
52270
52271         * ChangeLog: Remove conflict markers.
52272
52273 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52274
52275         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52276         Reported by Bruno Haible <bruno@clisp.org>.
52277
52278 2007-09-12  Bruno Haible  <bruno@clisp.org>
52279
52280         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52281         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52282         is not defined.
52283
52284 2007-09-12  Eric Blake  <ebb9@byu.net>
52285
52286         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52288         Autoconf definition.
52289         * modules/euidaccess (Depends-on): Add extensions, for
52290         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52291         * modules/fnmatch (Depends-on): Likewise.
52292         * modules/getaddrinfo (Depends-on): Likewise.
52293         * modules/getdelim (Depends-on): Likewise.
52294         * modules/getline (Depends-on): Likewise.
52295         * modules/getsubopt (Depends-on): Likewise.
52296         * modules/gettext (Depends-on): Likewise.
52297         * modules/group-member (Depends-on): Likewise.
52298         * modules/mbchar (Depends-on): Likewise.
52299         * modules/memmem (Depends-on): Likewise.
52300         * modules/mempcpy (Depends-on): Likewise.
52301         * modules/memrchr (Depends-on): Likewise.
52302         * modules/pagealign_alloc (Depends-on): Likewise.
52303         * modules/readutmp (Depends-on): Likewise.
52304         * modules/stpcpy (Depends-on): Likewise.
52305         * modules/stpncpy (Depends-on): Likewise.
52306         * modules/strchrnul (Depends-on): Likewise.
52307         * modules/strndup (Depends-on): Likewise.
52308         * modules/strsep (Depends-on): Likewise.
52309         * modules/strverscmp (Depends-on): Likewise.
52310         * modules/vasprintf (Depends-on): Likewise.
52311         * modules/wcwidth (Depends-on): Likewise.
52312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52313         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52314         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52318         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52319         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52320         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52321         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52325         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52326         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52327         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52328         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52329         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52330         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52331         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52333         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52334         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52335         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52336         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52338         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52339         so that lock.m4 can be used in gettext without extensions module.
52340
52341 2007-09-11  Bruno Haible  <bruno@clisp.org>
52342
52343         * m4/isc-posix.m4: Remove file.
52344         Suggested by Eric Blake.
52345
52346 2007-09-11  Eric Blake  <ebb9@byu.net>
52347
52348         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52349
52350 2007-09-10  Bruno Haible  <bruno@clisp.org>
52351
52352         * posix-modules: Fix typo in error message.
52353         Reported by Matt <mkraai@beckman.com>.
52354
52355 2007-09-09  Bruno Haible  <bruno@clisp.org>
52356
52357         * doc/functions/getdelim.texi: Update list of platforms lacking the
52358         function.
52359         * doc/functions/getline.texi: Likewise.
52360
52361 2007-09-09  Jim Meyering  <jim@meyering.net>
52362
52363         * lib/hash.c (hash_initialize): Detect calloc failure.
52364         Reported by Bruno Haible.
52365
52366 2007-09-09  Bruno Haible  <bruno@clisp.org>
52367
52368         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52369         malloc or realloc fails.
52370
52371 2007-09-09  Bruno Haible  <bruno@clisp.org>
52372
52373         * modules/getcwd (Depends-on): Add malloc-posix.
52374         * modules/glob (Depends-on): Likewise.
52375         * modules/putenv (Depends-on): Likewise.
52376         * modules/strdup (Depends-on): Likewise.
52377         * modules/getdelim (Depends-on): Add realloc-posix.
52378         * modules/read-file (Depends-on): Likewise.
52379
52380 2007-09-09  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52383         (gl_FUNC_MALLOC_POSIX): Require it.
52384         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52385         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52386         * modules/realloc (Files): Add m4/malloc.m4.
52387         * modules/calloc (Files): Likewise.
52388
52389 2007-09-09  Bruno Haible  <bruno@clisp.org>
52390
52391         * modules/malloc-posix: New file.
52392         * modules/malloc (Depends-on): Add malloc-posix.
52393         * lib/malloc.c: Include errno.h.
52394         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52395         and a POSIX-compatible malloc into a single function. Set ENOMEM
52396         when returning NULL.
52397         * m4/malloc.m4: New file.
52398         * doc/functions/malloc.texi: Mention the malloc-posix module.
52399         * lib/stdlib_.h (malloc): New declaration.
52400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52401         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52402         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52403         and HAVE_MALLOC_POSIX.
52404
52405 2007-09-09  Bruno Haible  <bruno@clisp.org>
52406
52407         * modules/realloc-posix: New file.
52408         * modules/realloc (Depends-on): Add realloc-posix.
52409         * lib/realloc.c: Include errno.h.
52410         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52411         and a POSIX-compatible realloc into a single function. Set ENOMEM
52412         when returning NULL.
52413         * m4/realloc.m4: New file.
52414         * doc/functions/realloc.texi: Mention the realloc-posix module.
52415         * lib/stdlib_.h (realloc): New declaration.
52416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52417         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52418         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52419         and HAVE_REALLOC_POSIX.
52420
52421 2007-09-09  Bruno Haible  <bruno@clisp.org>
52422
52423         * modules/calloc-posix: New file.
52424         * modules/calloc (Depends-on): Add calloc-posix.
52425         * lib/calloc.c: Include errno.h.
52426         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52427         and a POSIX-compatible calloc into a single function. Set ENOMEM
52428         when returning NULL.
52429         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52430         * doc/functions/calloc.texi: Mention the calloc-posix module.
52431         * lib/stdlib_.h (calloc): New declaration.
52432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52433         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52434         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52435         and HAVE_CALLOC_POSIX.
52436
52437 2007-09-09  Bruno Haible  <bruno@clisp.org>
52438
52439         Allow for modules to show an arbitrary notice.
52440         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52441         * gnulib-tool: New option --extract-notice.
52442         (func_usage): Document it.
52443         (sed_extract_prog): Update.
52444         (func_get_notice): New function.
52445         (func_modules_notice): New function.
52446         (func_import, func_create_testdir): Invoke it.
52447         Suggested by Jim Meyering.
52448
52449 2007-09-09  Bruno Haible  <bruno@clisp.org>
52450
52451         * gnulib-tool: New options --verbose, --quiet.
52452         (func_usage): Document them.
52453         (verbose): New variable.
52454         (func_execute_command): New function.
52455         (func_import): Don't show the module list and the file list if
52456         $verbose < 0.
52457         (func_create_testdir): Likewise. Use func_execute_command.
52458         (func_create_megatestdir): Use func_execute_command.
52459
52460 2007-09-08  Bruno Haible  <bruno@clisp.org>
52461
52462         * gnulib-tool (func_import): Prefer rsync over wget when available,
52463         for fetching the PO files.
52464
52465 2007-09-08  Bruno Haible  <bruno@clisp.org>
52466
52467         * posix-modules: New file. Portions copied from gnulib-tool.
52468         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
52469
52470 2007-09-08  Jim Meyering  <jim@meyering.net>
52471
52472         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
52473         * lib/fpending.h: Rename from __fpending.h.
52474         * lib/fpending.c: Rename from __fpending.c.
52475         Include "fpending.h", not "__fpending.h".
52476         * lib/__fpending.h, lib/__fpending.c: Remove files.
52477         * modules/fpending (Files): Reflect new file names.
52478         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
52479
52480 2007-09-08  Bruno Haible  <bruno@clisp.org>
52481
52482         * m4/inttypes-h.m4: Remove stub file.
52483
52484 2007-09-07  Simon Josefsson  <simon@josefsson.org>
52485
52486         * doc/headers/stdint.texi: Discuss #include_next issue.
52487
52488 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * build-aux/bootstrap: Remove obsolete comment about wget --help.
52491
52492 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52493
52494         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
52495         in variable name.
52496
52497 2007-09-03  Jim Meyering  <jim@meyering.net>
52498
52499         New module: git-version-gen.
52500         * modules/git-version-gen: New file.
52501
52502         Import changes from coreutils for bootstrap script.
52503
52504         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
52505
52506         bootstrap: uses rsync to download the .po files
52507         * build-aux/bootstrap (po_download_command_format): New global.
52508         (download_po_files): Use rsync.
52509         (update_po_files): Don't remove .po files after download,
52510         so future rsync runs can take advantage of the copies.
52511
52512         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
52513
52514         Solve the unnecessary-.po-file-regeneration problem once and for all.
52515         * build-aux/bootstrap (download_po_files): New function, renamed from
52516         get_translations.  Now, downloads, but doesn't update LINGUAS.
52517         (update_po_files): New function.
52518
52519         bootstrap: Ignore more.
52520         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
52521         uniwidth to e.g., lib/.gitignore.
52522         (slurp): Handle the sys_stat_.h -> sys mapping, too.
52523
52524         * build-aux/bootstrap: New setting: vc_ignore.
52525         (insert_sorted_if_absent): Create $file if absent.
52526         Adapt to new, possibly empty, list: $vc_ignore.
52527
52528         bootstrap: generate more ignorable names
52529         * build-aux/bootstrap (slurp): When generating ignorable names,
52530         also map .sin to .sed, .gperf to .c, and .y to .c.
52531
52532 2007-09-03  Jim Meyering  <jim@meyering.net>
52533
52534         * build-aux/git-version-gen: New file, from coreutils.  For details, see
52535         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
52536
52537 2007-09-02  Bruno Haible  <bruno@clisp.org>
52538
52539         Fix mis-recognition of 'mcs' on QNX 6.
52540         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
52541         output contains the string "Mono".
52542         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
52543         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
52544
52545 2007-09-01  Bruno Haible  <bruno@clisp.org>
52546
52547         Fix collision between uniwidth/* and linebreak modules.
52548         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
52549         u32_width): Remove declarations.
52550         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
52551         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
52552         streq3, streq2, streq1, streq0): Remove functions.
52553         (STREQ): Remove macro.
52554         (is_cjk_encoding): Remove function.
52555         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
52556         (uc_width, u8_width, u16_width, u32_width): Remove functions.
52557         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
52558         * NEWS: Document the change.
52559
52560 2007-09-01  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/streq.h: Add double-inclusion guard.
52563
52564 2007-09-01  Karl Berry  <karl@gnu.org>
52565
52566         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
52567
52568 2007-08-28  Jim Meyering  <jim@meyering.net>
52569
52570         Rename mreadlink_with_size to areadlink_with_size.
52571         * NEWS: Document the change.
52572         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
52573         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
52574         * lib/mreadlink.h: Rename this to...
52575         * lib/areadlink.h: ...this.
52576         * modules/mreadlink-with-size: Rename this to...
52577         * modules/areadlink-with-size: ...this.
52578         * lib/canonicalize.c: Reflect the renaming.
52579         * modules/canonicalize: Likewise.
52580
52581 2007-08-26  Bruno Haible  <bruno@clisp.org>
52582
52583         * gnulib-tool (func_import): When deciding which files to remove,
52584         consider also dangling symbolic links.
52585         Reported by Eric Blake.
52586
52587 2007-08-26  Bruno Haible  <bruno@clisp.org>
52588
52589         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
52590
52591 2007-08-23  Simon Josefsson  <simon@josefsson.org>
52592
52593         * lib/readline.c: Don't include getline.h, the prototype is now
52594         found in stdio.h.
52595
52596 2007-08-23  Jim Meyering  <jim@meyering.net>
52597
52598         Getdelim touchup.
52599         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
52600         around the funlockfile call, since funlockfile never sets errno.
52601         Don't set errno upon failed realloc.
52602
52603 2007-08-22  Eric Blake  <ebb9@byu.net>
52604
52605         Getline touchups.
52606         * lib/getdelim.c (getdelim): Revert regression that required *n to
52607         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
52608         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
52609         getdelim, rather than whether implementation is missing.
52610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
52611         * lib/stdio_.h (getline): Also declare if replacement is
52612         required.
52613         * doc/functions/getdelim.texi: New file.
52614         * doc/functions/getline.texi: Likewise.
52615         * doc/gnulib.texi (Function Substitutes): Add new files.
52616         Reported by Bruno Haible.
52617
52618 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
52619
52620         * users.txt: Add Guile.
52621
52622 2007-08-22  Eric Blake  <ebb9@byu.net>
52623
52624         * tests/test-getdelim.c (main): Use remove, not unlink.
52625         * tests/test-getline.c (main): Likewise.
52626
52627         Move getline and getdelim into stdio.h, per POSIX 200x.
52628         * modules/getline (Files): Remove getline.h.
52629         (Depends-on): Add stdio.
52630         (configure.ac): Add module indicator.
52631         * modules/getdelim (Files): Remove getdelim.h.
52632         (Depends-on): Add stdio.
52633         (configure.ac): Add module indicator.
52634         * modules/stdio (Makefile.am): Work with new indicators.
52635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
52636         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
52637         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52638         * lib/getdelim.h: Delete.
52639         * lib/getline.h: Delete.
52640         * lib/stdio_.h (getdelim, getline): Declare.
52641         * modules/getdelim-tests: New module.
52642         * modules/getline-tests: Likewise.
52643         * tests/test-getdelim.c: New file.
52644         * tests/test-getline.c: Likewise.
52645         * NEWS: Document the change.
52646         * lib/getline.c: Update choice of header.
52647         * lib/csharpcomp.c: Likewise.
52648         * lib/getpass.c: Likewise.
52649         * lib/javacomp.c: Likewise.
52650         * lib/javaversion.c: Likewise.
52651         * lib/yesno.c: Likewise.
52652         * lib/getdelim.c: Likewise.
52653         (getdelim): Set errno on failure, and avoid memory leak.
52654
52655 2007-08-19  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/closein (Depends-on): Add freadahead.
52658         * lib/closein.c: Include freadahead.h.
52659         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
52660         is zero.
52661
52662 2007-08-19  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/freadahead-tests: New file.
52665         * tests/test-freadahead.sh: New file.
52666         * tests/test-freadahead.c: New file.
52667
52668         * modules/freadahead: New file.
52669         * lib/freadahead.h: New file.
52670         * lib/freadahead.c: New file.
52671         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
52672         fbufmode, fpurge, freadable, fwritable.
52673
52674 2007-08-19  Eric Blake  <ebb9@byu.net>
52675
52676         Test yesno in combination with closein.
52677         * lib/yesno.c (yesno): Document use of stdin.
52678         * modules/yesno-tests (Files): New module.
52679         * tests/test-yesno.c (main): New file.
52680         * tests/test-yesno.sh: Likewise.
52681
52682 2007-08-19  Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
52685         * lib/fseeko.c (rpl_fseeko): Likewise.
52686         * lib/fseterr.c (fseterr): Likewise.
52687
52688 2007-08-19  Bruno Haible  <bruno@clisp.org>
52689
52690         * tests/test-lseek.c (main): Disable a test for BeOS.
52691         * doc/functions/lseek.texi: Document the BeOS bug.
52692
52693 2007-08-19  Bruno Haible  <bruno@clisp.org>
52694             Eric Blake  <ebb9@byu.net>
52695
52696         * lib/lseek.c: Include <sys/stat.h>.
52697         (rpl_lseek): Add workaround code also for Unix platforms.
52698         Needed for BeOS.
52699         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
52700         * doc/functions/lseek.texi: Document BeOS definiency.
52701
52702 2007-08-18  Bruno Haible  <bruno@clisp.org>
52703
52704         * modules/fstrcmp-tests: New file.
52705         * tests/test-fstrcmp.c: New file.
52706
52707 2007-08-18  Bruno Haible  <bruno@clisp.org>
52708
52709         * modules/fstrcmp: New file, from GNU gettext with modifications.
52710         * lib/fstrcmp.h: New file, from GNU gettext.
52711         * lib/fstrcmp.c: New file, from GNU gettext.
52712         * MODULES.html.sh (String handling): Add fstrcmp.
52713
52714 2007-08-18  Bruno Haible  <bruno@clisp.org>
52715
52716         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
52717         'bool'.
52718         (diag, compareseq): Remove const from the ctxt argument.
52719         (USE_HEURISTIC): Undefine at the end.
52720
52721 2007-08-18  Jim Meyering  <jim@meyering.net>
52722
52723         New file: lib/idcache.h
52724         * NEWS: Mention the addition.
52725         * modules/idcache (Files): Add lib/idcache.h
52726         * lib/idcache.c: Include "idcache.h".
52727         Don't include <sys/types.h>.
52728         Add a FIXME comment.
52729         Move file-scoped "static" declarations to the top.
52730         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
52731
52732 2007-08-17  Bruno Haible  <bruno@clisp.org>
52733         and Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * MODULES.html.sh: Add diffseq.
52736         * modules/diffseq: New file.
52737         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
52738         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
52739
52740 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52741
52742         Import changes from coreutils for bootstrap script.
52743
52744         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
52745
52746         * build-aux/bootstrap (slurp): Work even in environments where
52747         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
52748         current code does not slurp files whose names start with ".", and
52749         this looks like it might be a troublesome area.
52750
52751         2007-07-11  Jim Meyering  <jim@meyering.net>
52752
52753         If there's a GPL vN copyright comment, require that N == 3.
52754
52755         2007-07-08  Jim Meyering  <jim@meyering.net>
52756
52757         Run the coreutils-specific code only if tests/Makefile.am.in exists.
52758         * build-aux/bootstrap (mam_template): Move definition out of loop.
52759
52760         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
52761
52762         * build-aux/bootstrap (symlink_to_dir): Rename function from
52763         symlink_to_gnulib.  Add a directory parameter.  Update all
52764         callers.
52765         (cp_mark_as_generated): Also check for -- and link to -- files in
52766         gl/.
52767
52768         2007-07-08  Jim Meyering  <jim@meyering.net>
52769
52770         Adapt to deeper hierarchy in gnulib.
52771         * build-aux/bootstrap (symlink_to_dir): If the destination
52772         directory doesn't exist, create it. This is required at least for
52773         "lib/uniwidth/cjk.h".
52774
52775         2007-05-15  Jim Meyering  <jim@meyering.net>
52776
52777         * build-aux/bootstrap: Now that generated Makefile.am files
52778         are no longer under version control, they must be created at
52779         bootstrap time.
52780
52781 2007-08-14  Ben Pfaff  <blp@gnu.org>
52782
52783         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
52784
52785 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
52788         given the changes below.
52789         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
52790         even on hosts that have padding bits beyond the supported 64.
52791
52792 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
52795         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
52796         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
52797         depends on it.
52798         (xstrtol_error): Remove.
52799         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
52800         but with a different signature.
52801         (ATTRIBUTE_NORETURN, __attribute__): New macros.
52802         * lib/xstrtol-error.c: Include exitfail.h.
52803         (xstrtol_fatal): New function, with a different signature from the
52804         old xstrtol_error, so that the caller need not worry about passing
52805         in an exit status, or about storage management of the option argument.
52806         (xstrtol_error): Now a static function.  Redo signature to
52807         implement xstrtol_fatal.  Output the correct number of hyphens in
52808         front of the option so that the caller need not worry about
52809         storage management.
52810         (N_): New macro.
52811         (_): Remove; not used now.
52812         * modules/xstrtol: Depend on getopt.
52813         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
52814         of old STRTOL_FATAL_ERROR macro.
52815         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
52816         of test program.
52817         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
52818         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
52819
52820 2007-08-08  Eric Blake  <ebb9@byu.net>
52821
52822         * lib/xstrtol-error.c: Add missing include.
52823
52824         Move xstrtol messages into gnulib domain, when --pobase is used.
52825         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
52826         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
52827         * modules/xstrtol (Files): Distribute new file.
52828         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
52829         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
52830         * tests/test-xstrtol.c: ...into new file.
52831         * tests/test-xstrtoul.c: Also test xstrtoul.
52832         * tests/test-xstrtoimax.c: Also test xstrtoimax.
52833         * tests/test-xstrtoumax.c: Also test xstrtoumax.
52834         * tests/test-xstrtol.sh: Drive the tests.
52835         * tests/test-xstrtoimax.sh: Likewise.
52836         * tests/test-xstrtoumax.sh: Likewise.
52837         * modules/xstrtol-tests: New module.
52838         * modules/xstrtoimax-tests: Likewise.
52839         * modules/xstrtoumax-tests: Likewise.
52840
52841 2007-08-08  Jim Meyering  <jim@meyering.net>
52842
52843         New function: mfile_name_concat.
52844         * lib/filenamecat.c (mfile_name_concat): New function, just like
52845         file_name_concat, but return NULL upon failure rather than exiting
52846         with a diagnostic.
52847         * lib/filenamecat.h: Declare it.
52848
52849 2007-08-07  Bruno Haible  <bruno@clisp.org>
52850
52851         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
52852         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
52853         warning from gcc.
52854         Reported by Eric Blake.
52855
52856 2007-08-07  Simon Josefsson  <simon@josefsson.org>
52857
52858         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
52859         * modules/crypto/arcfour (License): Likewise.
52860         * modules/crypto/des-tests (License): Likewise.
52861         * modules/crypto/gc-arctwo-tests (License): Likewise.
52862         * modules/crypto/gc-des-tests (License): Likewise.
52863         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
52864         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
52865         * modules/crypto/gc-md2-tests (License): Likewise.
52866         * modules/crypto/gc-md4-tests (License): Likewise.
52867         * modules/crypto/gc-md5-tests (License): Likewise.
52868         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
52869         * modules/crypto/gc-rijndael-tests (License): Likewise.
52870         * modules/crypto/gc-sha1-tests (License): Likewise.
52871         * modules/crypto/gc-tests (License): Likewise.
52872         * modules/crypto/hmac-md5 (License): Likewise.
52873         * modules/crypto/hmac-sha1 (License): Likewise.
52874         * modules/crypto/md2-tests (License): Likewise.
52875         * modules/crypto/md4-tests (License): Likewise.
52876         * modules/crypto/md5 (License): Likewise.
52877         * modules/crypto/rijndael (License): Likewise.
52878         * modules/crypto/sha1 (License): Likewise.
52879         * modules/memxor (License): Likewise.
52880
52881 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52882         and Bruno Haible  <bruno@clisp.org>
52883
52884         * NEWS: Describe interface changes to human, xstrtol.
52885         * lib/human.h: Include <xstrtol.h>.
52886         (human_options): Return enum strtol_error, not int.  Remove
52887         bool arg; take int * instead.
52888         * lib/human.c: Don't include "gettext.h".
52889         (_): Remove; no longer used.
52890         Don't include <xstrtol.h>, since human.h does it.
52891         (human_options): Adjust to abovementioned interface changes.
52892         Do not report error to stderr; that's now the caller's
52893         responsibility.
52894         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
52895         interface change.
52896         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
52897         Str, Argument_type_string.  All uses changed.  Put " argument"
52898         in diagnostics to make them clearer.  Change wording of suffix
52899         message for clarity.
52900         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
52901         Argument_type_string.
52902         (STRTOL_FATAL_WARN): Remove; no longer used.
52903         * modules/human (Depends-on): Remove gettext-h.
52904
52905 2007-08-06  Simon Josefsson  <simon@josefsson.org>
52906
52907         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
52908
52909 2007-07-31  Bruno Haible  <bruno@clisp.org>
52910
52911         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
52912         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
52913         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
52914
52915 2007-07-31  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
52918         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
52919
52920 2007-07-30  Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/base64 (License): Use the synonymous term "LGPLv2+".
52923         * modules/c-ctype (License): Likewise.
52924         * modules/c-strcase (License): Likewise.
52925         * modules/check-version (License): Likewise.
52926         * modules/iconv (License): Likewise.
52927         * modules/iconv_open (License): Likewise.
52928         * modules/read-file (License): Likewise.
52929         * modules/striconv (License): Likewise.
52930         * modules/strverscmp (License): Likewise.
52931         * modules/vasprintf (License): Likewise.
52932         * modules/crypto/des (License): Likewise.
52933         * modules/crypto/gc (License): Likewise.
52934         * modules/crypto/gc-arcfour (License): Likewise.
52935         * modules/crypto/gc-arctwo (License): Likewise.
52936         * modules/crypto/gc-des (License): Likewise.
52937         * modules/crypto/gc-hmac-md5 (License): Likewise.
52938         * modules/crypto/gc-hmac-sha1 (License): Likewise.
52939         * modules/crypto/gc-md2 (License): Likewise.
52940         * modules/crypto/gc-md4 (License): Likewise.
52941         * modules/crypto/gc-md5 (License): Likewise.
52942         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
52943         * modules/crypto/gc-random (License): Likewise.
52944         * modules/crypto/gc-rijndael (License): Likewise.
52945         * modules/crypto/gc-sha1 (License): Likewise.
52946         * modules/crypto/md2 (License): Likewise.
52947         * modules/crypto/md4 (License): Likewise.
52948
52949 2007-07-30  Jim Meyering  <jim@meyering.net>
52950
52951         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
52952         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
52953         it has valid stat data.  This bug would cause du not to count the
52954         sizes of inaccessible directories.
52955         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
52956         in <http://bugzilla.redhat.com/250077>.
52957
52958 2007-07-25  Peter O'Gorman  <peter@pogma.com>
52959             Bruno Haible  <bruno@clisp.org>
52960
52961         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
52962         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
52963         #include_next, gives a diagnostic about it, but reports no error in
52964         the exit code.
52965         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52966
52967 2007-07-24  Ben Pfaff  <blp@gnu.org>
52968
52969         Improve name: "count-one-bits" is better than "popcount".
52970         * MODULES.html.sh: Update name.
52971         * lib/popcount.h: Renamed lib/count-one-bits.h.
52972         (popcount): Renamed count_one_bits.
52973         (popcountl): Renamed count_one_bits_l.
52974         (popcountll): Renamed count_one_bits_ll.
52975         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
52976         * modules/popcount: Renamed module/count-one-bits.
52977         * modules/popcount-tests: Renamed module/count-one-bits-tests.
52978         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
52979
52980 2007-07-23  Ben Pfaff  <blp@gnu.org>
52981
52982         * lib/popcount.h (popcount32): Reduce size of constants, to allow
52983         better code generation, and add U to large constants to avoid
52984         warnings, in non-GCC case.
52985         Suggested by Bruno Haible.
52986
52987 2007-07-23  Ben Pfaff  <blp@gnu.org>
52988
52989         * lib/popcount.h: Use verify_true instead of if...abort.
52990         * modules/popcount: Depend on verify module.
52991         Suggested by Jim Meyering.
52992
52993 2007-07-23  Bruno Haible  <bruno@clisp.org>
52994
52995         * gnulib-tool (func_import): Create a .cvsignore file also when the
52996         directory is not yet in CVS but the toplevel directory is. When
52997         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
52998         Reported by Karl Berry.
52999
53000 2007-07-22  Ben Pfaff  <blp@gnu.org>
53001
53002         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53003         case.
53004         Suggested by Eric Blake.
53005
53006 2007-07-22  Ben Pfaff  <blp@gnu.org>
53007
53008         New module: popcount.
53009         * MODULES.html.sh: Add popcount.
53010         * modules/popcount: New file.
53011         * modules/popcount-tests: New file.
53012         * tests/test-popcount.c: New file.
53013         * lib/popcount.h: New file.
53014         * m4/popcount.m4: New file.
53015
53016 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * build-aux/announce-gen: Update to GPLv3.
53019
53020         * build-aux/config.guess: Update from config.
53021
53022 2007-07-21  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53025         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53026
53027 2007-07-20  Jim Meyering  <jim@meyering.net>
53028
53029         * check-module: Diagnose a self-dependency.
53030
53031 2007-07-19  Bruno Haible  <bruno@clisp.org>
53032
53033         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53034         empty.
53035         Reported by Eric Blake.
53036
53037 2007-07-18  Bruno Haible  <bruno@clisp.org>
53038
53039         * gnulib-tool: New options --po-base, --po-domain.
53040         (func_usage): Document them.
53041         (pobase, po_domain): New variables.
53042         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53043         DEFAULT_TEXT_DOMAIN.
53044         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53045         (func_import): Consider pobase and po_domain. Create a po/ directory.
53046         (func_create_testdir): Set pobase and po_domain to empty.
53047         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53048         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53049
53050 2007-07-18  Bruno Haible  <bruno@clisp.org>
53051
53052         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53053         EXTRA_DIST augmentation for files in build-aux/.
53054
53055 2007-07-16  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53058         * modules/getdelim (License): Likewise.
53059
53060 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53061
53062         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53063         * modules/d-type (License): Likewise.
53064         * modules/extensions (License): Likewise.
53065         * modules/fnmatch (License): Likewise.
53066         * modules/fseeko (License): Likewise.
53067         * modules/getaddrinfo (License): Likewise.
53068         * modules/getline (License): Likewise.
53069         * modules/getlogin_r (License): Likewise.
53070         * modules/getpass (License): Likewise.
53071         * modules/gettimeofday (License): Likewise.
53072         * modules/glob (License): Likewise.
53073         * modules/inet_ntop (License): Likewise.
53074         * modules/malloc (License): Likewise.
53075         * modules/malloca (License): Likewise.
53076         * modules/memmem (License): Likewise.
53077         * modules/mempcpy (License): Likewise.
53078         * modules/memset (License): Likewise.
53079         * modules/minmax (License): Likewise.
53080         * modules/mktime (License): Likewise.
53081         * modules/netinet_in (License): Likewise.
53082         * modules/pathmax (License): Likewise.
53083         * modules/poll (License): Likewise.
53084         * modules/regex (License): Likewise.
53085         * modules/snprintf (License): Likewise.
53086         * modules/stdbool (License): Likewise.
53087         * modules/stdint (License): Likewise.
53088         * modules/stdio (License): Likewise.
53089         * modules/strcase (License): Likewise.
53090         * modules/strcasestr (License): Likewise.
53091         * modules/strdup (License): Likewise.
53092         * modules/string (License): Likewise.
53093         * modules/strndup (License): Likewise.
53094         * modules/strnlen (License): Likewise.
53095         * modules/strpbrk (License): Likewise.
53096         * modules/strptime (License): Likewise.
53097         * modules/strsep (License): Likewise.
53098         * modules/sys_select (License): Likewise.
53099         * modules/sys_socket (License): Likewise.
53100         * modules/sys_stat (License): Likewise.
53101         * modules/sys_time (License): Likewise.
53102         * modules/time (License): Likewise.
53103         * modules/time_r (License): Likewise.
53104         * modules/timegm (License): Likewise.
53105         * modules/unistd (License): Likewise.
53106         * modules/vsnprintf (License): Likewise.
53107         * modules/wctype (License): Likewise.
53108
53109 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53110
53111         * modules/argz (License): LGPLv2+.
53112
53113 2007-07-15  Karl Berry  <karl@gnu.org>
53114
53115         * doc/gnulib.texi: revise node structure per new fdl.texi.
53116
53117 2007-07-14  Bruno Haible  <bruno@clisp.org>
53118
53119         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53120         the output file.
53121         * lib/uniname/uninames.h: Regenerated.
53122
53123 2007-07-14  Karl Berry  <karl@gnu.org>
53124
53125         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53126         omitting sectioning and index commands.
53127
53128 2007-07-13  Bruno Haible  <bruno@clisp.org>
53129
53130         New gnulib-tool option --more-symlinks.
53131         * gnulib-tool (func_usage): Document --more-symlinks.
53132         (do_copyrights): New variable.
53133         Recognize option --more-symlinks.
53134         (func_import): Don't add a copyright notice transform to
53135         sed_transform_lib_file if do_copyrights is empty.
53136
53137 2007-07-13  Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/vasnprintf.c (decimal_point_char): Define also if
53140         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53141         && !NEED_PRINTF_DIRECTIVE_A.
53142         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53143         Gary V. Vaughan <gary@gnu.org>.
53144
53145 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53146
53147         * lib/inttypes_.h: Undo previous change, since it was fixed
53148         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53149
53150 2007-07-13  Bruno Haible  <bruno@clisp.org>
53151
53152         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53153         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53154
53155 2007-07-13  Jim Meyering  <jim@meyering.net>
53156
53157         df: Don't fail for Tru64's "file-on-file mount".
53158         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53159         so we fall through and use statfs instead.  Details here:
53160         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53161         Reported by Albert Chin.
53162
53163 2007-07-13  Bruno Haible  <bruno@clisp.org>
53164
53165         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53166         * modules/configmake (License): Likewise.
53167         * modules/gettext (License): Likewise.
53168         * modules/gettext-h (License): Likewise.
53169         * modules/include_next (License): Likewise.
53170         * modules/link-warning (License): Likewise.
53171         * modules/localcharset (License): Likewise.
53172         * modules/localename (License): Likewise.
53173         * modules/lock (License): Likewise.
53174         * modules/relocatable-lib-lgpl (License): Likewise.
53175         * modules/size_max (License): Likewise.
53176         * modules/vasnprintf (License): Likewise.
53177         * modules/wchar (License): Likewise.
53178         * modules/xsize (License): Likewise.
53179
53180 2007-07-13  Bruno Haible  <bruno@clisp.org>
53181
53182         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53183         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53184
53185 2007-07-12  Bruno Haible  <bruno@clisp.org>
53186
53187         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53188         in the modules files.
53189
53190 2007-07-11  Karl Berry  <karl@gnu.org>
53191
53192         * MODULES.html.sh (func_module): use
53193          sed -e '\|^'"${includefile}"'$|d'
53194          instead of /.../d, to avoid errors on $includefile's containing /.
53195
53196 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53197
53198         * gnulib-tool (func_import): Avoid duplication of --avoid
53199         statements
53200         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53201         names to `_' in variable names.
53202
53203 2007-07-10  Eric Blake  <ebb9@byu.net>
53204
53205         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53206         * NEWS: Document this change.
53207
53208 2007-07-08  Bruno Haible  <bruno@clisp.org>
53209
53210         Update to Unicode 5.0.
53211         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53212         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53213         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53214         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53215         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53216         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53217         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53218         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53219         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53220         U+10A3F, U+1D242..U+1D244.
53221         (nonspacing_table_ind): Update.
53222         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53223         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53224
53225 2007-07-08  Bruno Haible  <bruno@clisp.org>
53226
53227         Update to Unicode 5.0.
53228         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53229         code transform. Extend the name index field of unicode_name_to_code and
53230         unicode_code_to_name from 16 to 24 bits.
53231         * lib/uniname/uniname.c (unicode_character_name,
53232         unicode_name_character): Add the range 0x12xxx to the code transform.
53233         * lib/uniname/uninames.h: Regenerated.
53234         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53235
53236 2007-07-07  Bruno Haible  <bruno@clisp.org>
53237
53238         * modules/wcwidth-tests: New file.
53239         * tests/test-wcwidth.c: New file.
53240
53241         Work around MacOS X wcwidth() bug.
53242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53243         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53244         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53245         original wcwidth in non-UTF-8 locales.
53246         * modules/wcwidth (Depends-on): Add localcharset, streq,
53247         uniwidth/width.
53248         * doc/functions/wcwidth.texi: Update.
53249
53250 2007-07-07  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53253         (wcwidth): New declaration.
53254         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53255         macros.
53256         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53257         here. Prepare for creating <wchar.h> unconditionally.
53258         * modules/wchar (Depends-on): Add link-warning.
53259         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53260         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53261         * lib/wcwidth.h: Remove file.
53262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53263         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53264         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53265         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53266         (Include): Replace wcwidth.h with <wchar.h>.
53267         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53268         * lib/mbchar.h: Don't include wcwidth.h.
53269         * lib/mbswidth.c: Likewise.
53270         * NEWS: Mention the change.
53271
53272 2007-07-07  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53275         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53276         definition with an external declaration.
53277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53278         defined as a function. Remove AC_C_INLINE requirement.
53279         * modules/wcwidth (Files): Add lib/wcwidth.c.
53280         (Makefile.am): Remove redundant statement.
53281
53282 2007-07-07  Bruno Haible  <bruno@clisp.org>
53283
53284         * MODULES.html.sh (Unicode string functions): Add the new modules.
53285
53286         * tests/uniwidth/test-u32-strwidth.c: New file.
53287         * modules/uniwidth/u32-strwidth-tests: New file.
53288
53289         * lib/uniwidth/u32-strwidth.c: New file.
53290         * modules/uniwidth/u32-strwidth: New file.
53291
53292         * tests/uniwidth/test-u16-strwidth.c: New file.
53293         * modules/uniwidth/u16-strwidth-tests: New file.
53294
53295         * lib/uniwidth/u16-strwidth.c: New file.
53296         * modules/uniwidth/u16-strwidth: New file.
53297
53298         * tests/uniwidth/test-u8-strwidth.c: New file.
53299         * modules/uniwidth/u8-strwidth-tests: New file.
53300
53301         * lib/uniwidth/u8-strwidth.c: New file.
53302         * modules/uniwidth/u8-strwidth: New file.
53303
53304         * tests/uniwidth/test-u32-width.c: New file.
53305         * modules/uniwidth/u32-width-tests: New file.
53306
53307         * lib/uniwidth/u32-width.c: New file.
53308         * modules/uniwidth/u32-width: New file.
53309
53310         * tests/uniwidth/test-u16-width.c: New file.
53311         * modules/uniwidth/u16-width-tests: New file.
53312
53313         * lib/uniwidth/u16-width.c: New file.
53314         * modules/uniwidth/u16-width: New file.
53315
53316         * tests/uniwidth/test-u8-width.c: New file.
53317         * modules/uniwidth/u8-width-tests: New file.
53318
53319         * lib/uniwidth/u8-width.c: New file.
53320         * modules/uniwidth/u8-width: New file.
53321
53322         * tests/uniwidth/test-uc_width.c: New file.
53323         * modules/uniwidth/width-tests: New file.
53324
53325         * lib/uniwidth/width.c: New file, from GNU libiconv.
53326         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53327         * modules/uniwidth/width: New file.
53328
53329         * lib/uniwidth.h: New file, from GNU libiconv.
53330         * modules/uniwidth/base: New file.
53331
53332 2007-07-07  Bruno Haible  <bruno@clisp.org>
53333
53334         * lib/uniname.h: New file, from GNU gettext.
53335         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53336         * lib/uniname/uninames.h: New file, from GNU gettext.
53337         * lib/uniname/uniname.c: New file, from GNU gettext.
53338         * tests/uniname/test-uninames.sh: New file.
53339         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53340         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53341         * modules/uniname/base: New file.
53342         * modules/uniname/uniname: New file.
53343         * modules/uniname/uniname-tests: New file.
53344         * MODULES.html.sh (Unicode string functions): Add the new modules.
53345
53346 2007-07-06  Bruno Haible  <bruno@clisp.org>
53347
53348         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53349
53350 2007-07-06  Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53353         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53354         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53355         include <sys/time.h>.
53356         Reported by Eric Blake.
53357
53358 2007-07-06  Eric Blake  <ebb9@byu.net>
53359
53360         Fix testing canonicalize on cygwin.
53361         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53362         Revert patch from 2007-06-19.
53363         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53364         canonicalize module is also in use.
53365         * tests/test-canonicalize.c: New file.
53366         * tests/test-canonicalize.sh: Likewise.
53367         * modules/canonicalize-tests: Likewise.
53368
53369 2007-07-06  Jim Meyering  <jim@meyering.net>
53370
53371         * lib/getugroups.c (getugroups): Detect getgrent failure.
53372         Adjust comment to reflect reality: this function may return -1.
53373
53374 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53375
53376         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53377         the new TP address.
53378         (usage): Fix typo
53379         (gnulib_mk): New variable.
53380
53381 2007-07-05  Jim Meyering  <jim@meyering.net>
53382
53383         Don't let endgrent clobber errno, no matter how improbable.
53384         * lib/getugroups.c (getugroups): Save and restore errno around
53385         endgrent call.
53386
53387         Close the group DB even when failing with 2^31 or more members.
53388         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53389
53390 2007-07-04  Jim Meyering  <jim@meyering.net>
53391
53392         * lib/getugroups.h: New file.
53393         * lib/getugroups.c: Include "getugroups.h".
53394         Remove uses of "register" keyword.
53395         Move local variable, "cp", down into scope where used.
53396         Give "username" parameter the "const" attribute.
53397         * modules/getugroups (Files): Add lib/getugroups.h
53398
53399 2007-07-04  Karl Berry  <karl@gnu.org>
53400
53401         * MODULES.html.sh (func_all_modules): Complete rename of
53402         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53403
53404 2007-07-02  Bruno Haible  <bruno@clisp.org>
53405
53406         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53407         mode, when inttypes.h comes from gnulib.
53408         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53409
53410 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53411
53412         * NEWS: Mention lgpl module name change.
53413
53414         * modules/lgpl-2.1: Renamed from lgpl.
53415
53416         * NEWS: Mention gpl module name change.
53417
53418         * modules/gpl-3.0: New file, based on gpl-2.0.
53419
53420         * modules/gpl-2.0: Renamed from gpl.
53421
53422         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53423         doc/gpl-2.0.texi.
53424
53425 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53428         #define __STDC_LIMIT_MACROS temporarily while including
53429         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53430         Problem reported by Joel E. Denny in
53431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53432
53433 2007-07-01  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/unistdio.h: New file.
53436         * lib/unistdio/u-asnprintf.h: New file.
53437         * lib/unistdio/u-asprintf.h: New file.
53438         * lib/unistdio/u-printf-args.c: New file.
53439         * lib/unistdio/u-printf-args.h: New file.
53440         * lib/unistdio/u-printf-parse.h: New file.
53441         * lib/unistdio/u-snprintf.h: New file.
53442         * lib/unistdio/u-sprintf.h: New file.
53443         * lib/unistdio/u-vasprintf.h: New file.
53444         * lib/unistdio/u-vsnprintf.h: New file.
53445         * lib/unistdio/u-vsprintf.h: New file.
53446         * lib/unistdio/ulc-asnprintf.c: New file.
53447         * lib/unistdio/ulc-asprintf.c: New file.
53448         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53449         * lib/unistdio/ulc-printf-parse.c: New file.
53450         * lib/unistdio/ulc-snprintf.c: New file.
53451         * lib/unistdio/ulc-sprintf.c: New file.
53452         * lib/unistdio/ulc-vasnprintf.c: New file.
53453         * lib/unistdio/ulc-vasprintf.c: New file.
53454         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53455         * lib/unistdio/ulc-vsnprintf.c: New file.
53456         * lib/unistdio/ulc-vsprintf.c: New file.
53457         * lib/unistdio/u8-asnprintf.c: New file.
53458         * lib/unistdio/u8-asprintf.c: New file.
53459         * lib/unistdio/u8-printf-parse.c: New file.
53460         * lib/unistdio/u8-snprintf.c: New file.
53461         * lib/unistdio/u8-sprintf.c: New file.
53462         * lib/unistdio/u8-vasnprintf.c: New file.
53463         * lib/unistdio/u8-vasprintf.c: New file.
53464         * lib/unistdio/u8-vsnprintf.c: New file.
53465         * lib/unistdio/u8-vsprintf.c: New file.
53466         * lib/unistdio/u8-u8-asnprintf.c: New file.
53467         * lib/unistdio/u8-u8-asprintf.c: New file.
53468         * lib/unistdio/u8-u8-snprintf.c: New file.
53469         * lib/unistdio/u8-u8-sprintf.c: New file.
53470         * lib/unistdio/u8-u8-vasnprintf.c: New file.
53471         * lib/unistdio/u8-u8-vasprintf.c: New file.
53472         * lib/unistdio/u8-u8-vsnprintf.c: New file.
53473         * lib/unistdio/u8-u8-vsprintf.c: New file.
53474         * lib/unistdio/u16-asnprintf.c: New file.
53475         * lib/unistdio/u16-asprintf.c: New file.
53476         * lib/unistdio/u16-printf-parse.c: New file.
53477         * lib/unistdio/u16-snprintf.c: New file.
53478         * lib/unistdio/u16-sprintf.c: New file.
53479         * lib/unistdio/u16-vasnprintf.c: New file.
53480         * lib/unistdio/u16-vasprintf.c: New file.
53481         * lib/unistdio/u16-vsnprintf.c: New file.
53482         * lib/unistdio/u16-vsprintf.c: New file.
53483         * lib/unistdio/u16-u16-asnprintf.c: New file.
53484         * lib/unistdio/u16-u16-asprintf.c: New file.
53485         * lib/unistdio/u16-u16-snprintf.c: New file.
53486         * lib/unistdio/u16-u16-sprintf.c: New file.
53487         * lib/unistdio/u16-u16-vasnprintf.c: New file.
53488         * lib/unistdio/u16-u16-vasprintf.c: New file.
53489         * lib/unistdio/u16-u16-vsnprintf.c: New file.
53490         * lib/unistdio/u16-u16-vsprintf.c: New file.
53491         * lib/unistdio/u32-asnprintf.c: New file.
53492         * lib/unistdio/u32-asprintf.c: New file.
53493         * lib/unistdio/u32-printf-parse.c: New file.
53494         * lib/unistdio/u32-snprintf.c: New file.
53495         * lib/unistdio/u32-sprintf.c: New file.
53496         * lib/unistdio/u32-vasnprintf.c: New file.
53497         * lib/unistdio/u32-vasprintf.c: New file.
53498         * lib/unistdio/u32-vsnprintf.c: New file.
53499         * lib/unistdio/u32-vsprintf.c: New file.
53500         * lib/unistdio/u32-u32-asnprintf.c: New file.
53501         * lib/unistdio/u32-u32-asprintf.c: New file.
53502         * lib/unistdio/u32-u32-snprintf.c: New file.
53503         * lib/unistdio/u32-u32-sprintf.c: New file.
53504         * lib/unistdio/u32-u32-vasnprintf.c: New file.
53505         * lib/unistdio/u32-u32-vasprintf.c: New file.
53506         * lib/unistdio/u32-u32-vsnprintf.c: New file.
53507         * lib/unistdio/u32-u32-vsprintf.c: New file.
53508         * tests/unistdio/test-ulc-asnprintf1.c: New file.
53509         * tests/unistdio/test-ulc-asnprintf1.h: New file.
53510         * tests/unistdio/test-ulc-printf1.h: New file.
53511         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
53512         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
53513         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
53514         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
53515         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
53516         * tests/unistdio/test-ulc-vasprintf1.c: New file.
53517         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
53518         * tests/unistdio/test-ulc-vsprintf1.c: New file.
53519         * tests/unistdio/test-u8-asnprintf1.c: New file.
53520         * tests/unistdio/test-u8-asnprintf1.h: New file.
53521         * tests/unistdio/test-u8-printf1.h: New file.
53522         * tests/unistdio/test-u8-vasnprintf1.c: New file.
53523         * tests/unistdio/test-u8-vasnprintf2.c: New file.
53524         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
53525         * tests/unistdio/test-u8-vasnprintf3.c: New file.
53526         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
53527         * tests/unistdio/test-u8-vasprintf1.c: New file.
53528         * tests/unistdio/test-u8-vsnprintf1.c: New file.
53529         * tests/unistdio/test-u8-vsprintf1.c: New file.
53530         * tests/unistdio/test-u16-asnprintf1.c: New file.
53531         * tests/unistdio/test-u16-asnprintf1.h: New file.
53532         * tests/unistdio/test-u16-printf1.h: New file.
53533         * tests/unistdio/test-u16-vasnprintf1.c: New file.
53534         * tests/unistdio/test-u16-vasnprintf2.c: New file.
53535         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
53536         * tests/unistdio/test-u16-vasnprintf3.c: New file.
53537         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
53538         * tests/unistdio/test-u16-vasprintf1.c: New file.
53539         * tests/unistdio/test-u16-vsnprintf1.c: New file.
53540         * tests/unistdio/test-u16-vsprintf1.c: New file.
53541         * tests/unistdio/test-u32-asnprintf1.c: New file.
53542         * tests/unistdio/test-u32-asnprintf1.h: New file.
53543         * tests/unistdio/test-u32-printf1.h: New file.
53544         * tests/unistdio/test-u32-vasnprintf1.c: New file.
53545         * tests/unistdio/test-u32-vasnprintf2.c: New file.
53546         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
53547         * tests/unistdio/test-u32-vasnprintf3.c: New file.
53548         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
53549         * tests/unistdio/test-u32-vasprintf1.c: New file.
53550         * tests/unistdio/test-u32-vsnprintf1.c: New file.
53551         * tests/unistdio/test-u32-vsprintf1.c: New file.
53552         * modules/unistdio/base: New file.
53553         * modules/unistdio/u-printf-args: New file.
53554         * modules/unistdio/ulc-asnprintf: New file.
53555         * modules/unistdio/ulc-asprintf: New file.
53556         * modules/unistdio/ulc-fprintf: New file.
53557         * modules/unistdio/ulc-printf-parse: New file.
53558         * modules/unistdio/ulc-snprintf: New file.
53559         * modules/unistdio/ulc-sprintf: New file.
53560         * modules/unistdio/ulc-vasnprintf: New file.
53561         * modules/unistdio/ulc-vasprintf: New file.
53562         * modules/unistdio/ulc-vfprintf: New file.
53563         * modules/unistdio/ulc-vsnprintf: New file.
53564         * modules/unistdio/ulc-vsprintf: New file.
53565         * modules/unistdio/u8-asnprintf: New file.
53566         * modules/unistdio/u8-asprintf: New file.
53567         * modules/unistdio/u8-printf-parse: New file.
53568         * modules/unistdio/u8-snprintf: New file.
53569         * modules/unistdio/u8-sprintf: New file.
53570         * modules/unistdio/u8-vasnprintf: New file.
53571         * modules/unistdio/u8-vasprintf: New file.
53572         * modules/unistdio/u8-vsnprintf: New file.
53573         * modules/unistdio/u8-vsprintf: New file.
53574         * modules/unistdio/u8-u8-asnprintf: New file.
53575         * modules/unistdio/u8-u8-asprintf: New file.
53576         * modules/unistdio/u8-u8-snprintf: New file.
53577         * modules/unistdio/u8-u8-sprintf: New file.
53578         * modules/unistdio/u8-u8-vasnprintf: New file.
53579         * modules/unistdio/u8-u8-vasprintf: New file.
53580         * modules/unistdio/u8-u8-vsnprintf: New file.
53581         * modules/unistdio/u8-u8-vsprintf: New file.
53582         * modules/unistdio/u16-asnprintf: New file.
53583         * modules/unistdio/u16-asprintf: New file.
53584         * modules/unistdio/u16-printf-parse: New file.
53585         * modules/unistdio/u16-snprintf: New file.
53586         * modules/unistdio/u16-sprintf: New file.
53587         * modules/unistdio/u16-vasnprintf: New file.
53588         * modules/unistdio/u16-vasprintf: New file.
53589         * modules/unistdio/u16-vsnprintf: New file.
53590         * modules/unistdio/u16-vsprintf: New file.
53591         * modules/unistdio/u16-u16-asnprintf: New file.
53592         * modules/unistdio/u16-u16-asprintf: New file.
53593         * modules/unistdio/u16-u16-snprintf: New file.
53594         * modules/unistdio/u16-u16-sprintf: New file.
53595         * modules/unistdio/u16-u16-vasnprintf: New file.
53596         * modules/unistdio/u16-u16-vasprintf: New file.
53597         * modules/unistdio/u16-u16-vsnprintf: New file.
53598         * modules/unistdio/u16-u16-vsprintf: New file.
53599         * modules/unistdio/u32-asnprintf: New file.
53600         * modules/unistdio/u32-asprintf: New file.
53601         * modules/unistdio/u32-printf-parse: New file.
53602         * modules/unistdio/u32-snprintf: New file.
53603         * modules/unistdio/u32-sprintf: New file.
53604         * modules/unistdio/u32-vasnprintf: New file.
53605         * modules/unistdio/u32-vasprintf: New file.
53606         * modules/unistdio/u32-vsnprintf: New file.
53607         * modules/unistdio/u32-vsprintf: New file.
53608         * modules/unistdio/u32-u32-asnprintf: New file.
53609         * modules/unistdio/u32-u32-asprintf: New file.
53610         * modules/unistdio/u32-u32-snprintf: New file.
53611         * modules/unistdio/u32-u32-sprintf: New file.
53612         * modules/unistdio/u32-u32-vasnprintf: New file.
53613         * modules/unistdio/u32-u32-vasprintf: New file.
53614         * modules/unistdio/u32-u32-vsnprintf: New file.
53615         * modules/unistdio/u32-u32-vsprintf: New file.
53616         * modules/unistdio/ulc-asnprintf-tests: New file.
53617         * modules/unistdio/ulc-vasnprintf-tests: New file.
53618         * modules/unistdio/ulc-vasprintf-tests: New file.
53619         * modules/unistdio/ulc-vsnprintf-tests: New file.
53620         * modules/unistdio/ulc-vsprintf-tests: New file.
53621         * modules/unistdio/u8-asnprintf-tests: New file.
53622         * modules/unistdio/u8-vasnprintf-tests: New file.
53623         * modules/unistdio/u8-vasprintf-tests: New file.
53624         * modules/unistdio/u8-vsnprintf-tests: New file.
53625         * modules/unistdio/u8-vsprintf-tests: New file.
53626         * modules/unistdio/u16-asnprintf-tests: New file.
53627         * modules/unistdio/u16-vasnprintf-tests: New file.
53628         * modules/unistdio/u16-vasprintf-tests: New file.
53629         * modules/unistdio/u16-vsnprintf-tests: New file.
53630         * modules/unistdio/u16-vsprintf-tests: New file.
53631         * modules/unistdio/u32-asnprintf-tests: New file.
53632         * modules/unistdio/u32-vasnprintf-tests: New file.
53633         * modules/unistdio/u32-vasprintf-tests: New file.
53634         * modules/unistdio/u32-vsnprintf-tests: New file.
53635         * modules/unistdio/u32-vsprintf-tests: New file.
53636         * MODULES.html.sh (Unicode string functions): Add the new modules.
53637
53638 2007-07-01  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/sprintf.c (sprintf): Limit the available length estimation,
53641         to avoid address wraparound.
53642         * lib/vsprintf.c (vsprintf): Likewise.
53643         * modules/sprintf-posix (Dependencies): Add stdint.
53644         * modules/vsprintf-posix (Dependencies): Likewise.
53645
53646 2007-07-01  Bruno Haible  <bruno@clisp.org>
53647
53648         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
53649         Windows PATH as well. Conservative double-quoting. Comments.
53650
53651 2007-07-01  Bruno Haible  <bruno@clisp.org>
53652             Eric Blake  <ebb9@byu.net>
53653             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53654
53655         * gnulib-tool (self_abspathname): Fix algorithm to cope with
53656         empty components in $PATH, denoting '.'.
53657
53658 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53659
53660         * gnulib-tool: Fix indentation.
53661         (func_create_megatestdir): Likewise.
53662         Report by Bruno Haible.
53663
53664 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53665
53666         Sync from Automake.
53667         * build-aux/gnupload: Fix shell portability issues with for loops.
53668         Report by Karl Berry.
53669
53670 2007-06-29  Simon Josefsson  <simon@josefsson.org>
53671
53672         * build-aux/maint.mk (POURL): Use translationproject.org.
53673
53674 2007-06-27  Simon Josefsson  <simon@josefsson.org>
53675             Bruno Haible  <bruno@clisp.org>
53676
53677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
53678         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
53679         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
53680         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
53681         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
53682
53683 2007-06-27  Bruno Haible  <bruno@clisp.org>
53684
53685         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
53686         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
53687
53688 2007-06-26  Karl Berry  <karl@gnu.org>
53689
53690         * MODULES.html.sh: remove xreadlink-with-size.
53691
53692 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53693
53694         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
53695         method that I hope also handles the double-include problem noted
53696         by Bruno Haible in
53697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
53698
53699 2007-06-23  Bruno Haible  <bruno@clisp.org>
53700
53701         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53702         Don't let the 'mostlyclean' target fail if the last subdirectory could
53703         not be removed.
53704         Reported by Karl Berry.
53705
53706 2007-06-23  Bruno Haible  <bruno@clisp.org>
53707
53708         * gnulib-tool (echo): Add a speedier workaround for ksh.
53709         * tests/test-echo.sh: Likewise.
53710
53711 2007-06-23  Bruno Haible  <bruno@clisp.org>
53712
53713         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
53714         * tests/test-echo.sh: Likewise.
53715
53716 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53717
53718         * gnulib-tool (IFS): Initialize early, so we don't set it to
53719         empty later.
53720         (self_abspathname): Rewrite algorithm to set it, reindent.
53721         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
53722         (func_create_megatestdir): Merge some sed scripts.
53723
53724 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
53727         exposed by Sun Studio 11 cc on Solaris 8.
53728
53729 2007-06-22  Bruno Haible  <bruno@clisp.org>
53730
53731         * gnulib-tool (echo): Ensure the echo primitive does not interpret
53732         backslashes.
53733         * tests/test-echo.sh: New file.
53734
53735 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53736
53737         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
53738         simplify `sed_replace_build_aux' scripts, they are portable but
53739         echoing them with `echo' is not.
53740         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
53741
53742 2007-06-21  Karl Berry  <karl@gnu.org>
53743
53744         * config/srclist.txt: guess we can't handle the licenses via
53745         srclist at the moment.
53746
53747 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * MODULES.html.sh: Add include_next.
53750         * modules/include_next: New file.
53751
53752 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
53755         INCLUDE_NEXT.
53756         (gl_CHECK_NEXT_HEADERS): New macro.
53757         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
53758         the obsolescent gl_ABSOLUTE_HEADER.
53759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
53760         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
53761         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53762         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53763         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
53764         * m4/math_h.m4 (gl_MATH_H): Likewise.
53765         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53766         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53767         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
53768         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53769         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
53770         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
53771         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
53772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
53775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53776         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
53777         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
53778         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53780         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53781         * m4/inttypes.m4 (gl_INTTYPES_H): Define
53782         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
53783         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
53784         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
53785         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
53786         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
53787         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
53788         * lib/float_.h: Likewise.
53789         * lib/inttypes_.h: Likewise.
53790         * lib/math_.h: Likewise.
53791         * lib/search_.h: Likewise.
53792         * lib/signal_.h: Likewise.
53793         * lib/stdint_.h: Likewise.
53794         * lib/stdio_.h: Likewise.
53795         * lib/stdlib_.h: Likewise.
53796         * lib/string_.h: Likewise.
53797         * lib/sys_stat_.h: Likewise.
53798         * lib/sys_time_.h: Likewise.
53799         * lib/time_.h: Likewise.
53800         * lib/unistd_.h: Likewise.
53801         * lib/wchar_.h: Likewise.
53802         * lib/wctype_.h: Likewise.
53803         * lib/dirent_.h: Likewise.
53804         * lib/iconv_.h: Likewise.
53805         * lib/locale_.h: Likewise.
53806         * lib/netinet_in_.h: Likewise.
53807         * lib/sys_select_.h: Likewise.
53808         * lib/sys_socket_.h: Likewise.
53809         * lib/sysexits_.h: Likewise.
53810         * modules/fcntl (Depends-on): Depend on include_next, not
53811         absolute_header.
53812         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
53813         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
53814         * modules/fchdir: Likewise.
53815         * modules/float: Likewise.
53816         * modules/iconv_open: Likewise.
53817         * modules/inttypes: Likewise.
53818         * modules/locale: Likewise.
53819         * modules/math: Likewise.
53820         * modules/netinet_in: Likewise.
53821         * modules/search: Likewise.
53822         * modules/signal: Likewise.
53823         * modules/stdint: Likewise.
53824         * modules/stdio: Likewise.
53825         * modules/stdlib: Likewise.
53826         * modules/string: Likewise.
53827         * modules/sys_select: Likewise.
53828         * modules/sys_socket: Likewise.
53829         * modules/sys_stat: Likewise.
53830         * modules/sys_time: Likewise.
53831         * modules/sysexits: Likewise.
53832         * modules/time: Likewise.
53833         * modules/unistd: Likewise.
53834         * modules/wchar: Likewise.
53835         * modules/wctype: Likewise.
53836         * modules/sys_stat: Change maintainer to "all".
53837         * modules/unistd: Likewise.
53838
53839 2007-06-20  Karl Berry  <karl@gnu.org>
53840
53841         * config/srclist.txt: track www changes in license files.
53842
53843 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
53844
53845         * build-aux/bootstrap: Remove stray dot.
53846         Make sure build_aux settings are honored when linking
53847         gnulib_extra_files.
53848
53849 2007-06-19  Eric Blake  <ebb9@byu.net>
53850
53851         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53852         Allow compilation on cygwin.
53853
53854 2007-06-19  Jim Meyering  <jim@meyering.net>
53855
53856         xreadlink-with-size: Remove module.  No longer used.
53857         Ex-callers now use xreadlink or mreadlink-with-size.
53858         * modules/xreadlink-with-size: Remove module.
53859         * lib/xreadlink-with-size.c: Remove file.
53860         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
53861         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
53862         just before the function definition *is* accurate.
53863
53864         Eliminate one way canonicalize_filename_mode could exit.
53865         * lib/canonicalize.c (canonicalize_filename_mode):
53866         Use mreadlink_with_size, not xreadlink_with_size.
53867
53868 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         Detect porting problems to FreeBSD/arm, which has time_t wider than
53871         long int.  Original problem reported for GNU diff by Xin Li in
53872         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
53873         * modules/getdate (Depends-on): Add intprops, verify.
53874         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
53875         is an integer type no wider than long int.
53876
53877 2007-06-18  Jim Meyering  <jim@meyering.net>
53878
53879         New module: mreadlink-with-size.
53880         * MODULES.html.sh: Add mreadlink-with-size.
53881         * modules/mreadlink-with-size: New module
53882         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
53883         not xreadlink-with-size.
53884         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
53885
53886 2007-06-16  Bruno Haible  <bruno@clisp.org>
53887
53888         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
53889         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
53890         Reported by Gary V. Vaughan <gary@gnu.org>.
53891
53892 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         Revamp lchown so that it lives in unistd.h where it belongs.
53895         * lib/lchown.h: Remove.
53896         * lib/dirchownmod.c: Don't include lib/lchown.h.
53897         * lib/fchownat.c: Likewise.
53898         * lib/openat.c: Likewise.
53899         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
53900         does not follow symlinks.
53901         (EOPNOTSUPP): Define if not defined.
53902         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
53903         is defined to 0.
53904         (lchown): New decl.
53905         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
53906         Do not check for lchown decl.
53907         Set REPLACE_LCHOWN.
53908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
53909         REPLACE_LCHOWN.
53910         * modules/chown: Make it clear it follows symlinks.
53911         * modules/lchown: Make it clear it doesn't follow symlinks.
53912         (Files): Remove lib/lchown.h
53913         (Depends-on): Add unistd.
53914         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
53915         (Include): Include <unistd.h>, not "lchown.h".
53916         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
53917         REPLACE_LCHOWN.
53918
53919 2007-06-15  Jim Meyering  <jim@meyering.net>
53920
53921         Change license (GPL to LGPL) of fsusage and dependents.
53922         * modules/fsusage (License): Change to LGPL.
53923         * modules/full-read (License): Likewise.
53924         * modules/full-write (License): Likewise.
53925         * modules/safe-read (License): Likewise.
53926         * modules/safe-write (License): Likewise.
53927
53928 2007-06-14  Ben Pfaff  <blp@gnu.org>
53929
53930         Missing part of allocsa -> malloca transition.
53931         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
53932         gl_MALLOCA.
53933
53934 2007-06-12  Bruno Haible  <bruno@clisp.org>
53935
53936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
53937         to ia64, x86_64, i386.
53938         Reported by Eric Blake.
53939
53940 2007-06-12  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
53943         cross-compiling to x86_64.
53944
53945 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
53948         glitch reported by Ralf Wildenhues in
53949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
53950
53951         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
53952         Vin Shelton.
53953
53954 2007-06-11  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
53957         replacement string.
53958         Reported by Eric Blake.
53959
53960 2007-06-10  Bruno Haible  <bruno@clisp.org>
53961
53962         Prepare vasnprintf code for use with Unicode strings.
53963         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
53964         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
53965         TYPE_U32_STRING.
53966         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
53967         a_u32_string variants.
53968         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53969         * lib/printf-args.c: Don't include config.h and the specification
53970         header if PRINTF_FETCHARGS is already defined.
53971         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
53972         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
53973         TYPE_U16_STRING, TYPE_U32_STRING.
53974         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
53975         u16_directive, u16_directives, u32_directive, u32_directives): New
53976         types.
53977         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
53978         New declarations.
53979         * lib/printf-parse.c: Don't include config.h and the specification
53980         header if PRINTF_PARSE is already defined. Eliminate the set of
53981         parameters for WIDE_CHAR_VERSION; the user of this file must provide
53982         them now. Include c-ctype.h.
53983         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
53984         directive and CHAR_T_ONLY_ASCII.
53985         * lib/vasnprintf.c: Don't include config.h and the specification header
53986         if VASNPRINTF is already defined.
53987         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
53988         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
53989         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
53990         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
53991         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
53992         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
53993         code accordingly.
53994         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
53995         pad_ourselves also in this case, with the 'c' and 's' directives, and
53996         with a different notion of "width".
53997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
53998
53999 2007-06-10  Bruno Haible  <bruno@clisp.org>
54000
54001         * modules/unistr/u32-mbsnlen: New file.
54002         * lib/unistr/u32-mbsnlen.c: New file.
54003
54004         * modules/unistr/u16-mbsnlen: New file.
54005         * lib/unistr/u16-mbsnlen.c: New file.
54006
54007         * modules/unistr/u8-mbsnlen: New file.
54008         * lib/unistr/u8-mbsnlen.c: New file.
54009
54010         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54011         declarations.
54012
54013 2007-06-10  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/string_.h (mbsnlen): New declaration.
54016         * lib/mbsnlen.c: New file.
54017         * m4/mbsnlen.m4: New file.
54018         * modules/mbsnlen: New file.
54019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54020         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54021         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54022
54023 2007-06-10  Bruno Haible  <bruno@clisp.org>
54024
54025         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54026
54027 2007-06-10  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54030         * lib/mbuiter.h: Likewise.
54031
54032 2007-06-10  Bruno Haible  <bruno@clisp.org>
54033
54034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54035         declaration.
54036
54037 2007-06-10  Karl Berry  <karl@gnu.org>
54038
54039         * config/srclist.txt: remove gettext entries, Bruno prefers
54040         to update individually.
54041
54042 2007-06-10  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54045         'maxlen'. Ensure only length + width bytes are allocated, not
54046         length + 1 + width.
54047
54048 2007-06-09  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54051         (CHAR_T): Remove macro.
54052         (VASNPRINTF): Update.
54053
54054 2007-06-09  Bruno Haible  <bruno@clisp.org>
54055
54056         * MODULES.html.sh (Unicode string functions): Add the new modules.
54057
54058         * modules/uniconv/u32-conv-to-enc: New file.
54059         * lib/uniconv/u32-conv-to-enc.c: New file.
54060         * modules/uniconv/u32-conv-to-enc-tests: New file.
54061         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54062
54063         * modules/uniconv/u16-conv-to-enc: New file.
54064         * lib/uniconv/u16-conv-to-enc.c: New file.
54065         * lib/uniconv/u-conv-to-enc.h: New file.
54066         * modules/uniconv/u16-conv-to-enc-tests: New file.
54067         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54068
54069         * modules/uniconv/u8-conv-to-enc: New file.
54070         * lib/uniconv/u8-conv-to-enc.c: New file.
54071         * modules/uniconv/u8-conv-to-enc-tests: New file.
54072         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54073
54074         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54075         u32_conv_to_encoding): New declarations.
54076
54077 2007-06-09  Bruno Haible  <bruno@clisp.org>
54078
54079         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54080
54081 2007-06-09  Bruno Haible  <bruno@clisp.org>
54082
54083         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54084         * modules/malloca: Renamed from modules/allocsa, updated.
54085         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54086         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54087         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54088         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54089         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54090         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54091         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54092         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54093         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54094         * modules/c-strcasestr (Depends-on): Update.
54095         * lib/c-strcasestr.c: Update.
54096         * modules/c-strstr (Depends-on): Update.
54097         * lib/c-strstr.c: Update.
54098         * modules/canonicalize-lgpl (Depends-on): Update.
54099         * lib/canonicalize-lgpl.c: Update.
54100         * modules/clean-temp (Depends-on): Update.
54101         * lib/clean-temp.c: Update.
54102         * modules/csharpcomp (Depends-on): Update.
54103         * lib/csharpcomp.c: Update.
54104         * modules/csharpexec (Depends-on): Update.
54105         * lib/csharpexec.c: Update.
54106         * modules/javacomp (Depends-on): Update.
54107         * lib/javacomp.c: Update.
54108         * modules/javaexec (Depends-on): Update.
54109         * lib/javaexec.c: Update.
54110         * modules/mbscasestr (Depends-on): Update.
54111         * lib/mbscasestr.c: Update.
54112         * modules/mbsstr (Depends-on): Update.
54113         * lib/mbsstr.c: Update.
54114         * modules/setenv (Depends-on): Update.
54115         * lib/setenv.c: Update.
54116         * modules/strcasestr (Depends-on): Update.
54117         * lib/strcasestr.c: Update.
54118         * modules/striconveha (Depends-on): Update.
54119         * lib/striconveha.c: Update.
54120         * modules/relocatable-prog-wrapper (Files): Update.
54121         * lib/relocwrapper.c: Update.
54122         * build-aux/install-reloc: Update.
54123         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54124
54125 2007-06-08  Bruno Haible  <bruno@clisp.org>
54126
54127         Port to uClibc.
54128         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54129         * lib/fpurge.c (fpurge): Likewise.
54130         * lib/freading.c (freading): Likewise.
54131         * lib/fseeko.c (rpl_fseeko): Likewise.
54132         * lib/fseterr.c (fseterr): Likewise.
54133         * lib/fwriting.c (fwriting): Likewise.
54134         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54135
54136 2007-06-08  Bruno Haible  <bruno@clisp.org>
54137
54138         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54139         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54140         * modules/gettext (Files): Add m4/intlmacosx.m4.
54141
54142 2007-06-07  Bruno Haible  <bruno@clisp.org>
54143
54144         * modules/localename-tests: New file.
54145         * tests/test-localename.c: New file.
54146
54147         New module 'localename'.
54148         * lib/localename.h: New file.
54149         * lib/localename.c: New file, from GNU gettext.
54150         * m4/localename.m4: New file.
54151         * modules/localename: New file.
54152
54153 2007-06-07  Bruno Haible  <bruno@clisp.org>
54154
54155         Work around the lack of <wchar.h> on some builds of uClibc.
54156         * doc/headers/wchar.texi: Update.
54157         * lib/wchar_.h: Include <wchar.h> only if it exists.
54158         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54159         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54160         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54161         doesn't exist.
54162         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54163         * modules/mbfile (Depends-on): Add wchar.
54164         * modules/mbiter (Depends-on): Likewise.
54165         * modules/mbuiter (Depends-on): Likewise.
54166         Reported by Simon Josefsson.
54167
54168 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         Work around problem reported by Steven M. Schweda in
54171         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54172         Tru64 5.1B with the Compaq compiler environment installed declares
54173         an 'isblank' function but does not define it in the C library.
54174         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54175         * lib/regex_internal.h (isblank): Likewise.
54176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54177         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54178
54179 2007-06-05  Bruno Haible  <bruno@clisp.org>
54180
54181         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54182         ia64.
54183         * modules/printf-safe: New file.
54184         * modules/fprintf-posix (Depends-on): Add printf-safe.
54185         * modules/printf-posix (Depends-on): Likewise.
54186         * modules/snprintf-posix (Depends-on): Likewise.
54187         * modules/sprintf-posix (Depends-on): Likewise.
54188         * modules/vasnprintf-posix (Depends-on): Likewise.
54189         * modules/vasprintf-posix (Depends-on): Likewise.
54190         * modules/vfprintf-posix (Depends-on): Likewise.
54191         * modules/vprintf-posix (Depends-on): Likewise.
54192         * modules/vsnprintf-posix (Depends-on): Likewise.
54193         * modules/vsprintf-posix (Depends-on): Likewise.
54194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54195         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54196         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54197         "no" on i386, x86_64, ia64.
54198         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54199         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54200         on i386, x86_64, ia64.
54201         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54202         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54203         on i386, x86_64, ia64.
54204         * tests/test-vasnprintf-posix.c: Include float.h.
54205         (LDBL80_WORDS): New macro.
54206         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54207         on i386, x86_64, ia64.
54208         * tests/test-vasprintf-posix.c: Include float.h.
54209         (LDBL80_WORDS): New macro.
54210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54211         on i386, x86_64, ia64.
54212         * tests/test-snprintf-posix.c: Include float.h.
54213         * tests/test-sprintf-posix.c: Likewise.
54214         * tests/test-vsnprintf-posix.c: Likewise.
54215         * tests/test-vsprintf-posix.c: Likewise.
54216
54217 2007-06-05  Bruno Haible  <bruno@clisp.org>
54218
54219         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54220         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54221         non-IEEE numbers on i386, x86_64, ia64.
54222         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54223         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54224         * tests/test-isnanl.h: Include float.h.
54225         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54226
54227 2007-06-05  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54230         also the %a / %A. Handle the %a / %A code before this extra handling.
54231
54232 2007-06-05  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54235         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54236
54237 2007-06-05  Bruno Haible  <bruno@clisp.org>
54238
54239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54240         typo in variable name.
54241
54242 2007-06-05  Eric Blake  <ebb9@byu.net>
54243
54244         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54245         Reported by Simon Josefsson.
54246
54247 2007-06-04  Bruno Haible  <bruno@clisp.org>
54248
54249         Avoid test failures on some PowerPC platforms.
54250         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54251         Define differently for PowerPC.
54252         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54253         Reported by Gary V. Vaughan <gary@gnu.org>.
54254
54255 2007-06-02  Bruno Haible  <bruno@clisp.org>
54256
54257         Fix test-stdint failure on FreeBSD/ia64.
54258         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54259         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54260         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54261         * doc/headers/stdint.texi: Update.
54262
54263 2007-06-01  Bruno Haible  <bruno@clisp.org>
54264
54265         * tests/test-binary-io.c (main): Pass a third argument to open().
54266         Reported by Gary V. Vaughan <gary@gnu.org>.
54267
54268 2007-06-01  Bruno Haible  <bruno@clisp.org>
54269
54270         * doc/functions/frexpl.texi: Update for mingw.
54271
54272 2007-06-01  Bruno Haible  <bruno@clisp.org>
54273
54274         * tests/test-lseek.c (main): Disable test of errno for invalid third
54275         argument.
54276         * doc/functions/lseek.texi: Update.
54277         Reported by Gary V. Vaughan <gary@gnu.org>.
54278
54279 2007-05-28  Bruno Haible  <bruno@clisp.org>
54280
54281         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54282
54283 2007-05-31  Eric Blake  <ebb9@byu.net>
54284
54285         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54286         cross compiling.
54287
54288 2007-05-30  Eric Blake  <ebb9@byu.net>
54289         and Bruno Haible  <bruno@clisp.org>
54290
54291         Work around mingw test failures exposed by m4-1.4.9b.
54292         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54293         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54294         moment.
54295
54296 2007-05-30  Bruno Haible  <bruno@clisp.org>
54297
54298         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54299         assuming that they are closed. Needed on HP-UX 11.
54300
54301 2007-05-29  Bruno Haible  <bruno@clisp.org>
54302
54303         Fix a problem with #include_next.
54304         * lib/dirent_.h: Split the double-inclusion guard.
54305         * lib/fcntl_.h: Likewise.
54306         * lib/float_.h: Likewise.
54307         * lib/iconv_.h: Likewise.
54308         * lib/inttypes_.h: Likewise.
54309         * lib/locale_.h: Likewise.
54310         * lib/math_.h: Likewise.
54311         * lib/netinet_in_.h: Likewise.
54312         * lib/search_.h: Likewise.
54313         * lib/signal_.h: Likewise.
54314         * lib/stdint_.h: Likewise.
54315         * lib/stdio_.h: Likewise.
54316         * lib/stdlib_.h: Likewise.
54317         * lib/string_.h: Likewise.
54318         * lib/sys_select_.h: Likewise.
54319         * lib/sys_socket_.h: Likewise.
54320         * lib/sys_stat_.h: Likewise.
54321         * lib/sys_time_.h: Likewise.
54322         * lib/sysexits_.h: Likewise.
54323         * lib/time_.h: Likewise.
54324         * lib/unistd_.h: Likewise.
54325         * lib/wchar_.h: Likewise.
54326         * lib/wctype_.h: Likewise.
54327
54328 2007-05-29  Bruno Haible  <bruno@clisp.org>
54329
54330         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54331         for the moment.
54332
54333 2007-05-29  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54336         invocation.
54337         Reported by Eric Blake.
54338
54339 2007-05-29  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54342         compiling case.
54343
54344 2007-05-29  Eric Blake  <ebb9@byu.net>
54345             Bruno Haible  <bruno@clisp.org>
54346
54347         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54348         cross compiles.
54349
54350 2007-05-28  Eric Blake  <ebb9@byu.net>
54351
54352         * modules/closein-tests (test_closein_LDADD): Support test on
54353         cygwin with libtool.
54354
54355 2007-05-28  Bruno Haible  <bruno@clisp.org>
54356
54357         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54358         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54359         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54360         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54361         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54362         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54363         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54364         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54365         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54366
54367 2007-05-28  Eric Blake  <ebb9@byu.net>
54368
54369         Unconditionally include <config.h> in unit tests.
54370         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54371         * tests/test-allocsa.c, tests/test-arcfour.c,
54372         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54373         tests/test-array_list.c, tests/test-array_oset.c,
54374         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54375         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54376         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54377         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54378         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54379         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54380         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54381         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54382         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54383         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54384         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54385         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54386         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54387         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54388         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54389         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54390         test-md5.c, test-memmem.c, test-printf-posix.c,
54391         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54392         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54393         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54394         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54395         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54396         test-vasnprintf-posix2.c, test-vasnprintf.c,
54397         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54398         test-vfprintf-posix.c, test-vprintf-posix.c,
54399         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54400         test-xvasprintf.c: Likewise.
54401
54402 2007-05-28  Bruno Haible  <bruno@clisp.org>
54403
54404         * gnulib-tool (func_import): Remember the --with-tests command-line
54405         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54406         Reported by Eric Blake.
54407
54408 2007-05-28  Bruno Haible  <bruno@clisp.org>
54409
54410         * modules/ftell-tests: New file.
54411         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54412         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54413
54414         * lib/ftell.c: New file.
54415         * modules/ftell: New file.
54416         * m4/ftell.m4: New file.
54417         * doc/functions/ftell.texi: Update.
54418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54419         REPLACE_FTELL.
54420         * lib/stdio_.h (rpl_ftell): New declaration.
54421         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54422         REPLACE_FTELL.
54423
54424 2007-05-28  Eric Blake  <ebb9@byu.net>
54425
54426         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54427
54428 2007-05-28  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/fseek-tests: New file.
54431         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54432         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54433
54434         * lib/fseek.c: New file.
54435         * modules/fseek: New file.
54436         * m4/fseek.m4: New file.
54437         * doc/functions/fseek.texi: Update.
54438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54439         REPLACE_FSEEK.
54440         * lib/stdio_.h (rpl_fseek): New declaration.
54441         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54442         REPLACE_FSEEK.
54443
54444 2007-05-28  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/stdio_.h (fflush): More comments.
54447
54448 2007-05-28  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54451         runtime test.
54452
54453 2007-05-28  Eric Blake  <ebb9@byu.net>
54454
54455         Improve lseek module.
54456         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54457         * lib/unistd_.h (lseek): Scale back link warning message.
54458         * tests/test-lseek.c: Beef up test.
54459         * tests/test-lseek.sh: Exercise more facets of lseek.
54460         Reported by Bruno Haible.
54461
54462 2007-05-28  Bruno Haible  <bruno@clisp.org>
54463
54464         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54465         to define.
54466
54467 2007-05-27  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
54470
54471 2007-05-27  Bruno Haible  <bruno@clisp.org>
54472
54473         * modules/openmp: New file.
54474         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
54475         Noah Misch.
54476
54477 2007-05-26  Bruno Haible  <bruno@clisp.org>
54478
54479         * modules/chdir-long (Depends-on): Add fchdir.
54480         * modules/chdir-safer (Depends-on): Likewise.
54481         * modules/fts (Depends-on): Likewise.
54482         * modules/fts-lgpl (Depends-on): Likewise.
54483         * modules/openat (Depends-on): Likewise.
54484         * modules/savewd (Depends-on): Likewise.
54485
54486 2007-05-24  Eric Blake  <ebb9@byu.net>
54487
54488         Fix lseek on mingw.
54489         * modules/lseek: New module.
54490         * m4/lseek.m4: New file.
54491         * lib/lseek.c: New file.
54492         * modules/lseek-tests: New file.
54493         * tests/test-lseek.c: New file.
54494         * tests/test-lseek.sh: New file.
54495         * MODULES.html.sh: Document lseek module.
54496         * modules/fflush (Depends-on): Add lseek, fseeko.
54497         * modules/fseeko (Depends-on): Likewise.
54498         * modules/ftello (Depends-on): Likewise.
54499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
54500         broken.
54501         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
54502         broken.
54503         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
54504         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
54505         * lib/ftello.c (rpl_ftello): Likewise.
54506         * tests/test-fseeko.c (main): Test this.
54507         * tests/test-fseeko.sh: Likewise.
54508         * tests/test-ftello.c (main): Likewise.
54509         * tests/test-ftello.sh: Likewise.
54510         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
54511         implies replacing fseek.
54512         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
54513         HAVE_FTELLO.
54514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
54515         * modules/unistd (Makefile.am): Likewise.
54516         * lib/unistd_.h (lseek): Declare a replacement.
54517         * doc/functions/lseek.texi (lseek): Document this fix.
54518         * doc/functions/fseek.texi (fseek): Likewise.
54519         * doc/functions/ftell.texi (ftell): Likewise.
54520
54521 2007-05-24  Bruno Haible  <bruno@clisp.org>
54522
54523         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
54524         in the printed representation of a NaN.
54525         * tests/test-vasprintf-posix.c (test_function): Likewise.
54526         * tests/test-snprintf-posix.h (test_function): Likewise.
54527         * tests/test-sprintf-posix.h (test_function): Likewise.
54528         Reported by Eric Blake.
54529
54530 2007-05-23  Eric Blake  <ebb9@byu.net>
54531
54532         Fix fseeko/ftello on cygwin 1.5.24.
54533         * doc/functions/fseeko.texi (fseeko): Document the fix.
54534         * doc/functions/ftello.texi (ftello): Document the fix.
54535         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
54536         * doc/functions/stdout.text (stdout): New file.
54537         * doc/functions/stderr.text (stderr): New file.
54538         * doc/gnulib.texi (Function Substitutes): Use new files.
54539         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
54540         prior to 1.7.0.
54541         * tests/test-ftello.c (main): Likewise for ftello.
54542         * tests/test-fseeko.sh: New file.
54543         * tests/test-ftello.sh: New file.
54544         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
54545         with seekable stdin.
54546         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
54547         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
54548         (gl_REPLACE_FSEEKO): New macro.
54549         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
54550         * modules/fseeko (Files): Distribute fseeko.c.
54551         * modules/ftello (Files): Distribute ftello.c.
54552         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
54553         mode.
54554         * lib/ftello.c (rpl_ftello): New file.
54555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
54556         fseeko, ftello.
54557         (gl_STDIN_LARGE_OFFSET): New macro.
54558         * modules/stdio (Makefile.am): Perform the replacement.
54559         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
54560
54561 2007-05-23  Bruno Haible  <bruno@clisp.org>
54562
54563         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
54564         GNULIB_POSIXCHECK is defined.
54565
54566 2007-05-21  Bruno Haible  <bruno@clisp.org>
54567
54568         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
54569         Check also the output for NaN arguments. When cross-compiling, guess
54570         no on IRIX.
54571         * lib/vasnprintf.c: Update comments.
54572         * tests/test-vasnprintf-posix.c (strisnan): New function.
54573         (test_function): Use it.
54574         * tests/test-vasprintf-posix.c (strisnan): New function.
54575         (test_function): Use it.
54576         * tests/test-snprintf-posix.h (strisnan): New function.
54577         (test_function): Use it.
54578         * tests/test-sprintf-posix.h (strisnan): New function.
54579         (test_function): Use it.
54580         Reported by Eric Blake.
54581
54582 2007-05-20  Bruno Haible  <bruno@clisp.org>
54583
54584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
54585         numbers that fails on BeOS.
54586         * doc/functions/frexpl.texi: Update.
54587
54588 2007-05-20  Jim Meyering  <jim@meyering.net>
54589
54590         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
54591         forced upon us by glibc-2.6.
54592
54593 2007-05-20  Bruno Haible  <bruno@clisp.org>
54594
54595         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
54596         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
54597         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
54598         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
54599         NEED_PRINTF_INFINITE.
54600         (is_infinitel): New function.
54601         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
54602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
54603         gl_PREREQ_VASNPRINTF_INFINITE.
54604         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
54605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54606         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
54607         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
54608         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
54609         gl_PREREQ_VASNPRINTF_INFINITE.
54610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54617         * doc/functions/fprintf.texi: Update.
54618         * doc/functions/printf.texi: Update.
54619         * doc/functions/snprintf.texi: Update.
54620         * doc/functions/sprintf.texi: Update.
54621         * doc/functions/vfprintf.texi: Update.
54622         * doc/functions/vprintf.texi: Update.
54623         * doc/functions/vsnprintf.texi: Update.
54624         * doc/functions/vsprintf.texi: Update.
54625
54626 2007-05-20  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
54629         was not found in libc.
54630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
54631
54632 2007-05-20  Bruno Haible  <bruno@clisp.org>
54633
54634         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54635         printed as "-nan" instead of "nan".
54636         * tests/test-vasprintf-posix.c (test_function): Likewise.
54637         * tests/test-snprintf-posix.h (test_function): Likewise.
54638         * tests/test-sprintf-posix.h (test_function): Likewise.
54639         Needed for HP-UX 11.
54640
54641 2007-05-20  Jim Meyering  <jim@meyering.net>
54642
54643         Fix buggy test for the fchownat-deref bug.
54644         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
54645         symlink required for the run-test.  Without it, this test would
54646         always declare that fchownat doesn't work, and client code would
54647         unnecessarily use the replacement function with fixed libc.
54648         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
54649         Reported by Greg Schafer.
54650
54651 2007-05-19  Bruno Haible  <bruno@clisp.org>
54652
54653         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
54654         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
54655         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
54656         Needed for IRIX 6.5 and Solaris 2.5.1.
54657
54658 2007-05-19  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
54661         (test_function): Skip tests involving -0.0 on platforms where
54662         -0.0 = 0.0.
54663         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
54664         (test_function): Skip tests involving -0.0 on platforms where
54665         -0.0 = 0.0.
54666         * tests/test-snprintf-posix.h (have_minus_zero): New function.
54667         (test_function): Skip tests involving -0.0 on platforms where
54668         -0.0 = 0.0.
54669         * tests/test-sprintf-posix.h (have_minus_zero): New function.
54670         (test_function): Skip tests involving -0.0 on platforms where
54671         -0.0 = 0.0.
54672         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
54673         tests.
54674         * tests/test-printf-posix.h (test_function): Likewise.
54675         * tests/test-printf-posix.output: Remove all -0.0 related results.
54676         Needed for IRIX 6.5.
54677
54678 2007-05-19  Bruno Haible  <bruno@clisp.org>
54679
54680         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
54681         printed as "nan0x7fffffff" instead of "nan".
54682         * tests/test-vasprintf-posix.c (test_function): Likewise.
54683         * tests/test-snprintf-posix.h (test_function): Likewise.
54684         * tests/test-sprintf-posix.h (test_function): Likewise.
54685         * tests/test-fprintf-posix.h (NaN): Remove macro.
54686         (test_function): Remove all NaN related tests.
54687         * tests/test-printf-posix.h (NaN): Remove macro.
54688         (test_function): Remove all NaN related tests.
54689         * tests/test-printf-posix.output: Remove all NaN related results.
54690         Needed for IRIX 6.5.
54691
54692 2007-05-19  Bruno Haible  <bruno@clisp.org>
54693
54694         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
54695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
54696
54697 2007-05-19  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/float_.h: New file.
54700         * m4/float_h.m4: New file.
54701         * modules/float: New file.
54702         * modules/isnanl (Dependencies): Add float.
54703         * modules/isnanl-nolibm (Dependencies): Likewise.
54704         * modules/mathl (Dependencies): Likewise.
54705         * modules/printf-frexpl (Dependencies): Likewise.
54706         * modules/signbit (Dependencies): Likewise.
54707         * modules/vasnprintf (Dependencies): Likewise.
54708         * doc/headers/float.texi: Update.
54709
54710 2007-05-19  Jim Meyering  <jim@meyering.net>
54711
54712         * lib/utimens.c (gl_futimens): Rename from futimens,
54713         now that glibc-2.6 declares futimens.
54714         * lib/utimens.h: Likewise.
54715
54716 2007-05-19  Bruno Haible  <bruno@clisp.org>
54717
54718         Avoid test failures on mingw.
54719         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
54720         * tests/test-printf-posix.sh: Likewise.
54721         * tests/test-vfprintf-posix.sh: Likewise.
54722         * tests/test-vprintf-posix.sh: Likewise.
54723
54724 2007-05-19  Bruno Haible  <bruno@clisp.org>
54725
54726         Fix *printf result for NaN, Inf, -0.0 on mingw.
54727         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
54728         * lib/vasnprintf.c: Include math.h and isnan.h.
54729         (is_infinite_or_zero): New function.
54730         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
54731         values in the %f, %F, %e, %E, %g, %G directives.
54732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
54733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54734         gl_PRINTF_INFINITE and test its result. Invoke
54735         gl_PREREQ_VASNPRINTF_INFINITE.
54736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54740         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54741         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54743         * doc/functions/fprintf.texi: Update.
54744         * doc/functions/printf.texi: Update.
54745         * doc/functions/snprintf.texi: Update.
54746         * doc/functions/sprintf.texi: Update.
54747         * doc/functions/vfprintf.texi: Update.
54748         * doc/functions/vprintf.texi: Update.
54749         * doc/functions/vsnprintf.texi: Update.
54750         * doc/functions/vsprintf.texi: Update.
54751
54752 2007-05-19  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
54755         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
54756         Instead of multiplying with 10^k, set extra_zeroes to k.
54757         (scale10_round_long_double): Remove function.
54758
54759 2007-05-18  Bruno Haible  <bruno@clisp.org>
54760
54761         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
54762         introduced on 2007-05-06.
54763
54764 2007-05-18  Bruno Haible  <bruno@clisp.org>
54765
54766         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
54767         %g directives.
54768         * tests/test-vasprintf-posix.c (test_function): Likewise.
54769         * tests/test-snprintf-posix.h (test_function): Likewise.
54770         * tests/test-sprintf-posix.h (test_function): Likewise.
54771
54772 2007-05-18  Bruno Haible  <bruno@clisp.org>
54773
54774         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
54775         (strmatch): New function.
54776         (test_function): Test the %f directive on numbers of various exponents.
54777         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
54778         (strmatch): New function.
54779         (test_function): Test the %f directive on numbers of various exponents.
54780         * tests/test-snprintf-posix.h (strmatch): New function.
54781         (test_function): Test the %f directive on numbers of various exponents.
54782         * tests/test-sprintf-posix.h (strmatch): New function.
54783         (test_function): Test the %f directive on numbers of various exponents.
54784         * tests/test-snprintf-posix.c (SIZEOF): New macro.
54785         * tests/test-sprintf-posix.c (SIZEOF): New macro.
54786         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
54787         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
54788
54789 2007-05-18  Bruno Haible  <bruno@clisp.org>
54790
54791         Add support for 'long double' number output.
54792         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
54793         * lib/vasnprintf.c: Include math.h and float+.h.
54794         (mp_limb_t): New type.
54795         (GMP_LIMB_BITS): New macro.
54796         (mp_twolimb_t): New type.
54797         (GMP_TWOLIMB_BITS): New macro.
54798         (mpn_t): New type.
54799         (multiply, divide, convert_to_decimal, decode_long_double,
54800         scale10_round_long_double, scale10_round_decimal_long_double,
54801         floorlog10l): New functions.
54802         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
54803         for the %f, %F, %e, %E, %g, %G directives.
54804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
54805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54806         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
54807         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
54808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54812         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54814         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54815         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
54816         * modules/snprintf-posix (Depends-on): Likewise.
54817         * modules/sprintf-posix (Depends-on): Likewise.
54818         * modules/vasnprintf-posix (Depends-on): Likewise.
54819         * modules/vasprintf-posix (Depends-on): Likewise.
54820         * modules/vfprintf-posix (Depends-on): Likewise.
54821         * modules/vsnprintf-posix (Depends-on): Likewise.
54822         * modules/vsprintf-posix (Depends-on): Likewise.
54823         * modules/vasnprintf (Files): Add lib/float+.h.
54824         * doc/functions/fprintf.texi: Update.
54825         * doc/functions/printf.texi: Update.
54826         * doc/functions/snprintf.texi: Update.
54827         * doc/functions/sprintf.texi: Update.
54828         * doc/functions/vfprintf.texi: Update.
54829         * doc/functions/vprintf.texi: Update.
54830         * doc/functions/vsnprintf.texi: Update.
54831         * doc/functions/vsprintf.texi: Update.
54832
54833 2007-05-18  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
54836
54837 2007-05-18  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
54840         for printing 64-bit integers. Needed for mingw.
54841
54842 2007-05-18  Bruno Haible  <bruno@clisp.org>
54843
54844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54845         gl_FUNC_FREXPL_WORKS.
54846         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
54847
54848 2007-05-18  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/frexpl-nolibm-tests: New file.
54851
54852         * modules/frexpl-nolibm: New file.
54853         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
54854
54855 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
54858         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54859         GCC 4.2, which otherwise issues a lot of warnings.
54860         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
54861         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
54862         Likewise.
54863         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
54864         * modules/iconv_open (iconv.h): Likewise.
54865         * modules/locale (locale.h): Likewise.
54866         * modules/netinet_in (netinet/in.h): Likewise.
54867         * modules/sys_select (sys_select.h): Likewise.
54868         * modules/sys_socket (sys/socket.h): Likewise.
54869         * modules/sys_stat (sys/stat.h): Likewise.
54870         * modules/sysexits (sysexits.h): Likewise.
54871         * modules/unistd (unistd.h): Likewise.
54872
54873 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54874
54875         * modules/closein-tests (Makefile.am): Distribute
54876         `test-closein.sh'.
54877
54878 2007-05-17  Bruno Haible  <bruno@clisp.org>
54879
54880         * tests/test-printf-posix.output: Renamed from
54881         tests/test-fprintf-posix.out.
54882         * modules/fprintf-posix-tests: Update.
54883         * modules/printf-posix-tests: Update.
54884         * modules/vfprintf-posix-tests: Update.
54885         * modules/vprintf-posix-tests: Update.
54886         * tests/test-fprintf-posix.sh: Update.
54887         * tests/test-printf-posix.sh: Update.
54888         * tests/test-vfprintf-posix.sh: Update.
54889         * tests/test-vprintf-posix.sh: Update.
54890         Reported by Ralf Wildenhues.
54891
54892 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54893
54894         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
54895         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
54896         GCC 4.2, which otherwise issues a lot of warnings.
54897         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
54898         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
54899         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
54900         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
54901         it should no longer be needed.
54902         * lib/string_.h: Likewise.
54903         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
54904         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
54905         * modules/inttypes (inttypes.h): Likewise.
54906         * modules/math (math.h): Likewise.
54907         * modules/search (search.h): Likewise.
54908         * modules/signal (signal.h): Likewise.
54909         * modules/stdint (stdint.h): Likewise.
54910         * modules/stdio (stdio.h): Likewise.
54911         * modules/stdlib (stdlib.h): Likewise.
54912         * modules/string (string.h): Likewise.
54913         * modules/sys_time (sys/time.h): Likewise.
54914         * modules/time (time.h): Likewise.
54915         * modules/wchar (wchar.h): Likewise.
54916         * modules/wctype (wtype.h): Likewise.
54917
54918 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54919
54920         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
54921
54922 2007-05-13  Bruno Haible  <bruno@clisp.org>
54923
54924         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
54925         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54926         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
54927         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54928         (gl_PREREQ_STRTOK_R): Don't require it here.
54929
54930 2007-05-13  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
54933         when used in C++ mode.
54934
54935 2007-05-12  Bruno Haible  <bruno@clisp.org>
54936
54937         * lib/linebuffer.h: Tweak doc.
54938         * lib/linebuffer.c: Likewise.
54939
54940 2007-05-12  James Youngman  <jay@gnu.org>
54941
54942         * lib/linebuffer.c (readlinebuffer_delim): New function,
54943         like readlinebuffer, but use a caller-specified delimiter.
54944         (readlinebuffer): Just call readlinebuffer_delim with '\n'
54945         as the delimiter.
54946         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
54947
54948 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54949
54950         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
54951         * modules/openat (Files): Remove openat-die.c.
54952         (Depends-on): Add openat-die.
54953         * modules/openat-die: New module.
54954
54955 2007-05-06  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
54958         Update with info about Cygwin.
54959         * doc/functions/fprintf.texi: Update.
54960         * doc/functions/printf.texi: Update.
54961         * doc/functions/snprintf.texi: Update.
54962         * doc/functions/sprintf.texi: Update.
54963         * doc/functions/vfprintf.texi: Update.
54964         * doc/functions/vprintf.texi: Update.
54965         * doc/functions/vsnprintf.texi: Update.
54966         * doc/functions/vsprintf.texi: Update.
54967         Reported by Eric Blake.
54968
54969 2007-05-06  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
54972         padding ourselves for the floating-point directives.
54973         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
54974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
54975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54976         gl_PRINTF_FLAG_ZERO and test its result. Invoke
54977         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
54978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
54980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54985         * tests/test-snprintf-posix.h (test_function): Also check the width
54986         and some flags in the %f directive.
54987         * tests/test-sprintf-posix.h (test_function): Likewise.
54988         * tests/test-vasnprintf-posix.c (test_function): Likewise.
54989         * tests/test-vasprintf-posix.c (test_function): Likewise.
54990         * doc/functions/fprintf.texi: Update.
54991         * doc/functions/printf.texi: Update.
54992         * doc/functions/snprintf.texi: Update.
54993         * doc/functions/sprintf.texi: Update.
54994         * doc/functions/vfprintf.texi: Update.
54995         * doc/functions/vprintf.texi: Update.
54996         * doc/functions/vsnprintf.texi: Update.
54997         * doc/functions/vsprintf.texi: Update.
54998
54999 2007-05-06  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55002         pass the ' flag character to sprintf or snprintf.
55003         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55006         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55007         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55015         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55016         flag.
55017         * tests/test-sprintf-posix.h (test_function): Likewise.
55018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55019         * tests/test-vasprintf-posix.c (test_function): Likewise.
55020         * doc/functions/fprintf.texi: Update.
55021         * doc/functions/printf.texi: Update.
55022         * doc/functions/snprintf.texi: Update.
55023         * doc/functions/sprintf.texi: Update.
55024         * doc/functions/vfprintf.texi: Update.
55025         * doc/functions/vprintf.texi: Update.
55026         * doc/functions/vsnprintf.texi: Update.
55027         * doc/functions/vsprintf.texi: Update.
55028
55029 2007-05-01  Bruno Haible  <bruno@clisp.org>
55030
55031         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55032
55033 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55034
55035         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55036         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55037
55038 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55039
55040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55041         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55043
55044 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55045
55046         * lib/argp-help.c (struct hol_entry): New member `ord'.
55047         (HOL_ENTRY_PTRCMP): Use ord for comparison
55048         (hol_sort): Initialize ord.
55049
55050 2007-05-01  Bruno Haible  <bruno@clisp.org>
55051
55052         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55053         Reported by Eric Blake.
55054         * doc/gnulib.texi (Function Substitutes): Update.
55055
55056 2007-05-01  Bruno Haible  <bruno@clisp.org>
55057
55058         * doc/functions.texi: Remove file, now redundant through
55059         doc/functions/*.texi.
55060
55061 2007-05-01  Bruno Haible  <bruno@clisp.org>
55062
55063         * modules/argp (Depends-on): Add sleep.
55064
55065 2007-05-01  Bruno Haible  <bruno@clisp.org>
55066
55067         * modules/sleep-tests: New file.
55068         * tests/test-sleep.c: New file.
55069
55070         * modules/sleep: New file.
55071         * lib/sleep.c: New file.
55072         * m4/sleep.m4: New file.
55073         * lib/unistd_.h (sleep): New declaration.
55074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55075         HAVE_SLEEP.
55076         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55077         * doc/functions/sleep.texi: Document the sleep module.
55078
55079 2007-05-01  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/sigprocmask.h: Remove file.
55082         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55083         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55085         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55086         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55087         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55088         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55089         HAVE_SIGSET_T as a shell variable.
55090         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55091         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55092         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55093         (Depends-on): Add signal. Remove verify.
55094         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55095         (Include): Mention <signal.h> instead of sigprocmask.h.
55096         * NEWS: Mention the change.
55097         * lib/fatal-signal.c: Don't include sigprocmask.h.
55098
55099 2007-05-01  Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/signal: New file.
55102         * lib/signal_.h: New file.
55103         * m4/signal_h.m4: New file.
55104
55105 2007-05-01  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55108         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55109         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55110         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55111
55112 2007-05-01  Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55115         configure time.
55116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55117         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55118         * modules/sys_stat (Makefile.am): Substitute their values into
55119         sys/stat.h.
55120
55121 2007-05-01  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55124         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55125         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55126
55127 2007-05-01  Bruno Haible  <bruno@clisp.org>
55128
55129         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55130         'assert' module here.
55131
55132 2007-05-01  Bruno Haible  <bruno@clisp.org>
55133
55134         * doc/functions/*.texi: New files.
55135         * doc/functions/google-ranking.txt: New file.
55136         * doc/gnulib.texi (Function Substitutes): New chapter.
55137         (ctime, inet_ntoa): Remove sections.
55138         * doc/ctime.texi: Remove file.
55139         * doc/inet_ntoa.texi: Remove file.
55140         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55141         dependencies.
55142         (%.info): New rule, specifying a --reference-limit.
55143
55144 2007-05-01  Bruno Haible  <bruno@clisp.org>
55145
55146         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55147
55148 2007-05-01  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55151         the portability of 'mkdir' to mingw systems.
55152
55153 2007-05-01  Bruno Haible  <bruno@clisp.org>
55154
55155         * doc/headers/google-ranking.txt: New file.
55156
55157 2007-04-30  Eric Blake  <ebb9@byu.net>
55158
55159         Prefer fseeko to fseek.
55160         * modules/getpass (Depends-on): Add fseeko.
55161         * lib/getpass.c (getpass): Use fseeko, not fseek.
55162
55163 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55164
55165         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55166         assumes the sorting is stable, while most qsort implementations
55167         are not.  Use argument addresses to ensure they never compare as
55168         equal.
55169
55170         * tests/test-argp-2.sh (usage-indent test): Fix output
55171         (func_compare): Restore diff options
55172         * tests/test-argp.c: Restore #include "progname.h"
55173
55174 2007-04-29  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55178         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55180         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55181         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55182         (TESTS, check_PROGRAMS): Add test-snprintf.
55183         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55184         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55185         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55186         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55187         assertions that fail on HP-UX, OSF/1, or IRIX.
55188         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55189
55190 2007-04-29  Bruno Haible  <bruno@clisp.org>
55191
55192         * MODULES.html.sh (posix_functions): Remove 'contents'.
55193
55194 2007-04-29  Karl Berry  <karl@gnu.org>
55195
55196         * config/srclist.txt (gendocs_template_min): new entry.
55197
55198 2007-04-29  Bruno Haible  <bruno@clisp.org>
55199
55200         Work around fpurge bug on BSD systems.
55201         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55203         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55204         fpurge to rpl_fpurge if the system already has this function.
55205         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55206         the case where the system already has this function. Correct invariants
55207         on BSD systems.
55208         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55209         BSD systems.
55210
55211 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55212
55213         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55214         proposed by Sven Verdoolaege.
55215
55216         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55217         options.
55218         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55219         (usage and help tests): Update
55220
55221 2007-04-29  Bruno Haible  <bruno@clisp.org>
55222
55223         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55224         Print more information in case of failure. Disable a test on BeOS.
55225
55226 2007-04-29  Bruno Haible  <bruno@clisp.org>
55227
55228         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55229         This helps debugging on systems on which no gdb is available.
55230
55231 2007-04-29  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/freading.h: Improve comments.
55234         * lib/fwriting.h: Likewise.
55235         * tests/test-freading.c (main): Don't check freading immediately after
55236         repositioning. Needed for glibc.
55237
55238 2007-04-29  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/freading.c (freading): Trivial simplification.
55241
55242 2007-04-28  Bruno Haible  <bruno@clisp.org>
55243
55244         * tests/test-fwriting.c (main): Also test the interaction between
55245         fflush and fwriting.
55246         * modules/fwriting-tests (Depends-on): Add fflush.
55247
55248         * tests/test-freading.c (main): Also test the interaction between
55249         fflush and freading.
55250         * modules/freading-tests (Depends-on): Add fflush.
55251
55252 2007-04-28  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55255         fseeko and ftello.
55256         Suggested by Eric Blake.
55257
55258 2007-04-28  Jim Meyering  <jim@meyering.net>
55259
55260         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55261         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55262         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55263
55264 2007-04-27  Eric Blake  <ebb9@byu.net>
55265
55266         * doc/headers/assert.texi (assert.h): Document assert module use.
55267
55268 2007-04-27  Bruno Haible  <bruno@clisp.org>
55269
55270         * doc/headers/*.texi: New files.
55271         * doc/gnulib.texi (Header File Substitutes): New chapter.
55272         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55273         dependencies.
55274         (standards.info ,standards.html, standards.dvi): Update dependencies.
55275         (mostlyclean, clean): New targets.
55276
55277 2007-04-27  Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55280         * modules/sysexits (Files, Makefile.am): Update.
55281
55282         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55283         * modules/sys_socket (Files, Makefile.am): Update.
55284
55285         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55286         * modules/sys_stat (Files, Makefile.am): Update.
55287
55288 2007-04-27  Eric Blake  <ebb9@byu.net>
55289
55290         * lib/freading.h: Improve comments.
55291         * lib/fwriting.h: Likewise.
55292         * lib/fflush.c: Likewise.
55293
55294         Fix closein for mingw.
55295         * modules/closein-tests: Add tests for closein.
55296         * tests/test-closein.c: New file.
55297         * tests/test-closein.sh: Likewise.
55298         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55299         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55300
55301 2007-04-27  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55304         version is < 6.
55305         * lib/math_.h [__DECC]: Likewise.
55306         * lib/stdio_.h [__DECC]: Likewise.
55307         * lib/stdlib_.h [__DECC]: Likewise.
55308         * lib/string_.h [__DECC]: Likewise.
55309         * lib/time_.h [__DECC]: Likewise.
55310         * lib/wchar_.h [__DECC]: Likewise.
55311         * lib/wctype_.h [__DECC]: Likewise.
55312
55313 2007-04-27  Bruno Haible  <bruno@clisp.org>
55314
55315         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55316
55317 2007-04-27  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/fflush.c: Add comments.
55320         * modules/fpurge-tests (Depends-on): Add fflush.
55321         * modules/freadable-tests (Depends-on): Likewise.
55322         * modules/fwritable-tests (Depends-on): Likewise.
55323
55324 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55325
55326         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55327         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55328         Report by Bruno Haible <bruno@clisp.org>.
55329
55330 2007-04-26  Eric Blake  <ebb9@byu.net>
55331
55332         Fix fflush on mingw.
55333         * modules/fflush (Depends-on): Add freading.
55334         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55335         but unread data.
55336
55337 2007-04-26  Eric Blake  <ebb9@byu.net>
55338         and Bruno Haible  <bruno@clisp.org>
55339
55340         Implement freading and fwriting.
55341         * lib/freading.c: New file.
55342         * lib/freading.h: Likewise.
55343         * m4/freading.m4: Likewise.
55344         * modules/freading: Likewise.
55345         * modules/freading-tests: Likewise.
55346         * tests/test-freading.c: Likewise.
55347         * lib/fwriting.c: New file.
55348         * lib/fwriting.h: Likewise.
55349         * m4/fwriting.m4: Likewise.
55350         * modules/fwriting: Likewise.
55351         * modules/fwriting-tests: Likewise.
55352         * tests/test-fwriting.c: Likewise.
55353         * MODULES.html.sh (File stream based Input/Output): Mention them.
55354
55355 2007-04-26  Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55358         'long' when we assume it.
55359         Suggested by Eric Blake.
55360
55361 2007-04-26  Bruno Haible  <bruno@clisp.org>
55362
55363         Ensure fseeko, ftello are declared on glibc systems.
55364         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55365         * modules/fseeko (configure.ac-early): Likewise.
55366         * modules/ftello (configure.ac-early): Likewise.
55367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55368         AC_FUNC_FSEEKO for this.
55369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55370         (gl_CHECK_FSEEKO): Remove macro.
55371
55372 2007-04-26  Bruno Haible  <bruno@clisp.org>
55373
55374         * tests/test-fflush.c (main): Also check the ftell result after
55375         fflush and fseek/fseeko.
55376         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55377         file descriptor position cache in the stream.
55378         * lib/fseeko.c (rpl_fseeko): Likewise.
55379
55380 2007-04-26  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/fflush-tests (Depends-on): Add fseeko.
55383
55384 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55386
55387         * lib/argz_.h: ensure error_t definition is obtained in same
55388         mechanism system argz.h would have.
55389         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55390         argz facilities are known bad.  Err on the side of caution if
55391         cross-compiling.
55392
55393 2007-04-25  Eric Blake  <ebb9@byu.net>
55394
55395         * lib/fpurge.c (includes): Use stdlib.h for free.
55396         * tests/test-fflush.c (main): Also test fflush-fseeko.
55397
55398 2007-04-25  Bruno Haible  <bruno@clisp.org>
55399
55400         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55401         * lib/fseeko.c: New file.
55402         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55403         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55404         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55405         gl_FUNC_FSEEKO.
55406         (gl_FUNC_FSEEKO): Invoke it.
55407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55408         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55409         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55410
55411 2007-04-25  Bruno Haible  <bruno@clisp.org>
55412
55413         * modules/fflush (Depends-on): Add ftello.
55414
55415 2007-04-25  Bruno Haible  <bruno@clisp.org>
55416
55417         * modules/ftello-tests: New file.
55418         * tests/test-ftello.c: New file.
55419
55420         * modules/ftello: New file.
55421         * m4/ftello.m4: New file.
55422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55423         HAVE_FTELLO.
55424         * lib/stdio_.h (ftello): New declaration.
55425         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55426         HAVE_FTELLO.
55427
55428 2007-04-25  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/fseeko-tests: New file.
55431         * tests/test-fseeko.c: New file.
55432
55433         * modules/fseeko: New file.
55434         * m4/fseeko.m4: New file.
55435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55436         HAVE_FSEEKO.
55437         * lib/stdio_.h (fseeko): New declaration.
55438         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55439         HAVE_FSEEKO.
55440
55441 2007-04-25  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55444
55445 2007-04-25  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55448         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55449         * tests/test-unistd.c: Likewise.
55450         * tests/test-fcntl.c: Likewise.
55451
55452 2007-04-23  Eric Blake  <ebb9@byu.net>
55453
55454         * lib/fflush.c: Fix missing include.
55455         Reported by Bruno Haible.
55456
55457 2007-04-23  Bruno Haible  <bruno@clisp.org>
55458
55459         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55460         Reported by Eric Blake.
55461
55462 2007-04-23  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55465
55466 2007-04-23  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
55469
55470 2007-04-23  Bruno Haible  <bruno@clisp.org>
55471
55472         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
55473         Needed on HP-UX 11.
55474
55475 2007-04-16  Eric Blake  <ebb9@byu.net>
55476
55477         Make fflush rely on fpurge.
55478         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
55479         open coding all variants.
55480         * modules/fflush (Depends-on): Add fpurge and unistd.
55481         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
55482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
55483
55484         Fix --with-tests compilation on cygwin.
55485         * modules/argmatch-tests (Makefile.am): List gnulib library first
55486         in LDADD.
55487         * modules/argp-tests (Makefile.am): Likewise.
55488         * modules/array-list-tests (Makefile.am): Likewise.
55489         * modules/array-oset-tests (Makefile.am): Likewise.
55490         * modules/avltree-list-tests (Makefile.am): Likewise.
55491         * modules/avltree-oset-tests (Makefile.am): Likewise.
55492         * modules/avltreehash-list-tests (Makefile.am): Likewise.
55493         * modules/carray-list-tests (Makefile.am): Likewise.
55494         * modules/dirname-tests (Makefile.am): Likewise.
55495         * modules/frexp-tests (Makefile.am): Likewise.
55496         * modules/isnanl-tests (Makefile.am): Likewise.
55497         * modules/linked-list-tests (Makefile.am): Likewise.
55498         * modules/linkedhash-list-tests (Makefile.am): Likewise.
55499         * modules/lock-tests (Makefile.am): Likewise.
55500         * modules/rbtree-list-tests (Makefile.am): Likewise.
55501         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55502         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
55503         * modules/tls-tests (Makefile.am): Likewise.
55504         * modules/tsearch-tests (Makefile.am): Likewise.
55505         * modules/xvasprintf-tests (Makefile.am): Likewise.
55506
55507         Fix fpurge for cygwin.
55508         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
55509         value.
55510         * modules/fpurge-tests (Depends-on): Clean up trash.
55511
55512 2007-04-16  Simon Josefsson  <simon@josefsson.org>
55513
55514         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
55515
55516         * m4/autobuild.m4: Re-indent.
55517
55518 2007-04-13  Bruno Haible  <bruno@clisp.org>
55519
55520         * modules/fpurge-tests: New file.
55521         * tests/test-fpurge.c: New file.
55522
55523         * modules/fpurge: New file.
55524         * lib/fpurge.h: New file.
55525         * lib/fpurge.c: New file.
55526         * m4/fpurge.m4: New file.
55527
55528 2007-04-13  Bruno Haible  <bruno@clisp.org>
55529
55530         * modules/fbufmode-tests: New file.
55531         * tests/test-fbufmode.c: New file.
55532
55533         * modules/fbufmode: New file.
55534         * lib/fbufmode.h: New file.
55535         * lib/fbufmode.c: New file.
55536         * m4/fbufmode.m4: New file.
55537
55538 2007-04-13  Bruno Haible  <bruno@clisp.org>
55539
55540         * modules/fwritable-tests: New file.
55541         * tests/test-fwritable.c: New file.
55542
55543         * modules/fwritable: New file.
55544         * lib/fwritable.h: New file.
55545         * lib/fwritable.c: New file.
55546         * m4/fwritable.m4: New file.
55547
55548 2007-04-13  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/freadable-tests: New file.
55551         * tests/test-freadable.c: New file.
55552
55553         * modules/freadable: New file.
55554         * lib/freadable.h: New file.
55555         * lib/freadable.c: New file.
55556         * m4/freadable.m4: New file.
55557
55558 2007-04-13  Bruno Haible  <bruno@clisp.org>
55559
55560         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
55561         MOSTLYCLEANFILES.
55562
55563 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
55566         gzip bootstrap.conf to avoid dragging in i18n machinery.
55567         (gnulib_tool_option): Use it.
55568
55569 2007-04-13  Bruno Haible  <bruno@clisp.org>
55570
55571         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
55572         %F directives.
55573         * tests/test-vasprintf-posix.c (test_function): Likewise.
55574         * tests/test-snprintf-posix.h (test_function): Likewise.
55575         * tests/test-sprintf-posix.h (test_function): Likewise.
55576         * tests/test-fprintf-posix.h (test_function): Likewise.
55577         * tests/test-printf-posix.h (test_function): Likewise.
55578         * tests/test-fprintf-posix.out: Likewise.
55579
55580 2007-04-13  Bruno Haible  <bruno@clisp.org>
55581
55582         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
55583         * modules/tls-tests (configure.ac): Likewise.
55584         Reported by Arto C. Nirkko <anirkko@insel.ch>.
55585
55586 2007-04-13  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/tls.c (glthread_tls_get): Fix return type.
55589         Patch by Arto C. Nirkko <anirkko@insel.ch>.
55590
55591 2007-04-12  Eric Blake  <ebb9@byu.net>
55592
55593         * modules/gettime (Depends-on): Remove gettime.
55594         Reported by Dmitry V. Levin.
55595
55596 2007-04-12  Bruno Haible  <bruno@clisp.org>
55597
55598         * modules/fflush (Include): Mention <stdio.h>.
55599         * modules/strtoimax (Include): Mention <inttypes.h>.
55600         * modules/strtoumax (Include): Likewise.
55601
55602 2007-04-12  Eric Blake  <ebb9@byu.net>
55603
55604         * .cvsignore: New file.
55605         * .gitignore: Likewise.
55606
55607 2007-04-12  Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
55610         not before, since $(LDADD) often contains libgnu.a.
55611         * modules/striconv-tests (test_striconv_LDADD): Likewise.
55612         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
55613         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
55614         Needed on Cygwin.
55615
55616 2007-04-12  Eric Blake  <ebb9@byu.net>
55617
55618         Work around glibc's failure to flush stdin on fclose.
55619         * lib/closein.c (close_stdin): Flush stdin before closing.
55620
55621         Work around glibc's failure to reset seekable stdin on exit.
55622         * modules/closein: New module.
55623         * lib/closein.c: New file.
55624         * lib/closein.h: Likewise.
55625         * m4/closein.m4: Likewise.
55626         * MODULES.html.sh (File stream based Input/Output): Document it.
55627
55628 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55629
55630         * gnulib-tool: Rename generated 'autobuild' script to
55631         'do-autobuild' in --create-megatestdir output.
55632
55633         * doc/gnulib.texi (Build robot for gnulib): Fix.
55634
55635 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55636
55637         * modules/sysexits (Depends-on): Add absolute-header.
55638
55639 2007-04-12  Eric Blake  <ebb9@byu.net>
55640
55641         No need to preserve errno on success.
55642         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
55643         Reported by Bruno Haible.
55644
55645 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55646
55647         * MODULES.html.sh (Support for maintaining and releasing
55648         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
55649
55650 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55651
55652         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
55653
55654 2007-04-12  Simon Josefsson  <simon@josefsson.org>
55655
55656         * modules/autobuild: New module.
55657
55658         * m4/autobuild.m4: New file.
55659
55660 2007-04-11  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
55663         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
55664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
55665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
55666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
55673         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55674         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
55676         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55677         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
55679         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55680         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
55682         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55683         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55684         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
55685         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55686         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
55688         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
55689         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
55690         Reported by Eric Blake.
55691
55692 2007-04-11  Bruno Haible  <bruno@clisp.org>
55693
55694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
55695
55696 2007-04-10  Bruno Haible  <bruno@clisp.org>
55697
55698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
55699         for NaN and Infinity. Needed on FreeBSD 6.1.
55700         * tests/test-vasnprintf-posix.c (test_function): Undo last change
55701         regarding results for "%010a" of Infinity and NaN.
55702         * tests/test-vasprintf-posix.c (test_function): Likewise.
55703         * tests/test-snprintf-posix.h (test_function): Likewise.
55704         * tests/test-sprintf-posix.h (test_function): Likewise.
55705         * tests/test-fprintf-posix.h (test_function): Likewise.
55706         * tests/test-printf-posix.h (test_function): Likewise.
55707         * tests/test-fprintf-posix.out: Likewise.
55708
55709 2007-04-10  Bruno Haible  <bruno@clisp.org>
55710
55711         * modules/locale-tests: New file.
55712         * tests/test-locale.c: New file.
55713
55714         * modules/locale: New file.
55715         * lib/locale_.h: New file.
55716         * m4/locale_h.m4: New file.
55717
55718 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
55719             Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
55722         be determined, test for availability of the copysignf, copysign,
55723         copysignl functions.
55724         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
55725         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
55726         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
55727
55728 2007-04-09  Eric Blake  <ebb9@byu.net>
55729
55730         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
55731         * modules/stdio (Makefile.am): Support fflush.
55732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55733         * modules/fflush: New file.
55734         * lib/fflush.c: Likewise.
55735         * m4/fflush.m4: Likewise.
55736         * modules/fflush-tests: New test.
55737         * tests/test-fflush.c: Likewise.
55738         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
55739
55740 2007-04-06  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
55743         (VASNPRINTF): Use signbit for faster determination whether to print a
55744         minus sign.
55745         * modules/vasnprintf (Files): Remove lib/float+.h.
55746         * modules/fprintf-posix (Depends-on): Add signbit.
55747         * modules/snprintf-posix (Depends-on): Likewise.
55748         * modules/sprintf-posix (Depends-on): Likewise.
55749         * modules/vasnprintf-posix (Depends-on): Likewise.
55750         * modules/vasprintf-posix (Depends-on): Likewise.
55751         * modules/vfprintf-posix (Depends-on): Likewise.
55752         * modules/vsnprintf-posix (Depends-on): Likewise.
55753         * modules/vsprintf-posix (Depends-on): Likewise.
55754
55755 2007-04-06  Bruno Haible  <bruno@clisp.org>
55756
55757         * tests/test-frexp.c (main): Test also the sign bit of zero results.
55758         * tests/test-frexpl.c (main): Likewise.
55759         * tests/test-ldexpl.c (main): Likewise.
55760         * modules/frexp-tests (Depends-on): Add signbit.
55761         * modules/frexpl-tests (Depdends-on): Likewise.
55762         * modules/ldexpl-tests (Depdends-on): Likewise.
55763
55764 2007-04-06  Bruno Haible  <bruno@clisp.org>
55765
55766         * modules/signbit-tests: New file.
55767         * tests/test-signbit.c: New file.
55768
55769         * modules/signbit: New file.
55770         * lib/signbitf.c: New file.
55771         * lib/signbitd.c: New file.
55772         * lib/signbitl.c: New file.
55773         * m4/signbit.m4: New file.
55774         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
55775         (signbit): New macro.
55776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
55777         REPLACE_SIGNBIT.
55778         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
55779         REPLACE_FREXPL into math.h.
55780
55781 2007-04-06  Bruno Haible  <bruno@clisp.org>
55782
55783         * modules/isnanf-nolibm-tests: New file.
55784         * tests/test-isnanf.c: New file.
55785
55786         * modules/isnanf-nolibm: New file.
55787         * lib/isnanf.h: New file.
55788         * lib/isnanf.c: New file.
55789         * lib/isnan.c: Consider the USE_FLOAT macro.
55790         * m4/isnanf.m4: New file.
55791
55792 2007-04-06  Bruno Haible  <bruno@clisp.org>
55793
55794         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
55795         (Link): New section.
55796
55797         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
55798
55799 2007-04-06  Bruno Haible  <bruno@clisp.org>
55800
55801         Assume the 'long double' type.
55802         * m4/longdouble.m4: Remove file.
55803         * config/srclist.txt: Don't mention longdouble.m4.
55804         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
55805         * lib/float+.h: Likewise.
55806         * lib/frexp.c: Likewise.
55807         * lib/printf-args.h: Likewise.
55808         * lib/printf-args.c: Likewise.
55809         * lib/printf-frexp.c: Likewise.
55810         * lib/printf-parse.c: Likewise.
55811         * lib/vasnprintf.c: Likewise.
55812         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
55813         * m4/intl.m4: Likewise.
55814         * m4/isnanl.m4: Likewise.
55815         * m4/printf.m4: Likewise.
55816         * m4/printf-frexpl.m4: Likewise.
55817         * m4/vasnprintf.m4: Likewise.
55818         * modules/allocsa (Files): Remove m4/longdouble.m4.
55819         * modules/gettext (Files): Likewise.
55820         * modules/relocatable-prog-wrapper (Files): Likewise.
55821         * modules/vasnprintf (Files): Likewise.
55822         * modules/isnanl (Files): Likewise.
55823         (Include): Simplify.
55824         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
55825         (Include): Simplify.
55826         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
55827         (Include): Simplify.
55828         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
55829         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55830         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
55831         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55832         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55834         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
55835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55836         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
55837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55838         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
55839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
55840         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
55841         * tests/test-isnanl.c: Likewise.
55842         * tests/test-snprintf-posix.h: Likewise.
55843         * tests/test-sprintf-posix.h: Likewise.
55844         * tests/test-vasnprintf-posix.c: Likewise.
55845         * tests/test-vasnprintf-posix2.c: Likewise.
55846         * tests/test-vasprintf-posix.c: Likewise.
55847
55848 2007-04-06  Bruno Haible  <bruno@clisp.org>
55849
55850         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
55851         * lib/math_.h [__DECC]: Include the overridden include file through
55852         #include_next, outside the double-inclusion guard.
55853         * lib/stdio_.h [__DECC]: Likewise.
55854         * lib/stdlib_.h [__DECC]: Likewise.
55855         * lib/string_.h [__DECC]: Likewise.
55856         * lib/time_.h [__DECC]: Likewise.
55857         * lib/wchar_.h [__DECC]: Likewise.
55858         * lib/wctype_.h [__DECC]: Likewise.
55859         * lib/inttypes_.h [__DECC]: Likewise.
55860         Reported by Albert Chin <china@thewrittenword.com> in
55861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
55862
55863 2007-04-04  Eric Blake  <ebb9@byu.net>
55864
55865         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
55866         1.5.x.
55867
55868 2007-04-04  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
55871         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
55872
55873 2007-04-04  Bruno Haible  <bruno@clisp.org>
55874
55875         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
55876         results for "%010a" of Infinity and NaN.
55877         * tests/test-vasprintf-posix.c (test_function): Likewise.
55878         * tests/test-snprintf-posix.h (test_function): Likewise.
55879         * tests/test-sprintf-posix.h (test_function): Likewise.
55880         * tests/test-fprintf-posix.h (test_function): Remove these tests.
55881         * tests/test-printf-posix.h (test_function): Likewise.
55882         * tests/test-fprintf-posix.out: Update.
55883         Needed for FreeBSD 6.1.
55884
55885 2007-04-04  Bruno Haible  <bruno@clisp.org>
55886
55887         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
55888         directly used by the gnulib modules nor by gnulib-tool.
55889
55890 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * DEPENDENCIES: Give overall description of version dependency
55893         desirability.  Use more-typical names for apps.
55894         Add shell, coreutils, diffutils, grep, tar, gzip.
55895
55896 2007-04-04  Simon Josefsson  <simon@josefsson.org>
55897
55898         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
55899
55900 2007-04-04  Karl Berry  <karl@gnu.org>
55901
55902         * MODULES.html.sh (func_module): missing '.
55903
55904 2007-04-03  Bruno Haible  <bruno@clisp.org>
55905
55906         * modules/argmatch-tests (Makefile.am): New variable
55907         test_argmatch_LDADD.
55908         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
55909         * modules/array-list-tests (Makefile.am): New variable
55910         test_array_list_LDADD.
55911         * modules/array-oset-tests (Makefile.am): New variable
55912         test_array_oset_LDADD.
55913         * modules/avltree-list-tests (Makefile.am): New variable
55914         test_avltree_list_LDADD.
55915         * modules/avltree-oset-tests (Makefile.am): New variable
55916         test_avltree_oset_LDADD.
55917         * modules/avltreehash-list-tests (Makefile.am): New variable
55918         test_avltreehash_list_LDADD.
55919         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
55920         test_canonicalize_lgpl_LDADD.
55921         * modules/carray-list-tests (Makefile.am): New variable
55922         test_carray_list_LDADD.
55923         * modules/dirname-tests (Makefile.am): New variable
55924         test_dirname_LDADD.
55925         * modules/linked-list-tests (Makefile.am): New variable
55926         test_linked_list_LDADD.
55927         * modules/linkedhash-list-tests (Makefile.am): New variable
55928         test_linkedhash_list_LDADD.
55929         * modules/rbtree-list-tests (Makefile.am): New variable
55930         test_rbtree_list_LDADD.
55931         * modules/rbtree-oset-tests (Makefile.am): New variable
55932         test_rbtree_oset_LDADD.
55933         * modules/rbtreehash-list-tests (Makefile.am): New variable
55934         test_rbtreehash_list_LDADD.
55935         * modules/xvasprintf-tests (Makefile.am): New variable
55936         test_xvasprintf_LDADD.
55937         Reported by Eric Blake.
55938
55939 2007-04-03  Eric Blake  <ebb9@byu.net>
55940
55941         * DEPENDENCIES: Weaken m4 requirements.
55942
55943 2007-04-03  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
55946         * modules/isnanl-tests (configure.ac): Likewise.
55947
55948 2007-04-03  Ben Pfaff  <blp@gnu.org>
55949
55950         * modules/iconv_open: Add $(srcdir)/ to source directory
55951         references in Makefile fragments that call gperf, to fix VPATH
55952         builds.
55953
55954 2007-04-03  Bruno Haible  <bruno@clisp.org>
55955
55956         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
55957         * lib/ldexpl.c: Undo last change.
55958
55959 2007-04-03  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/printf-frexpl (Depends-on): Undo last change.
55962         (Files): Add m4/ldexpl.m4.
55963
55964 2007-04-03  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
55967         * modules/isnanl (Link): New section.
55968
55969         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
55970         * modules/frexp (Link): New section.
55971
55972         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
55973         * modules/frexpl (Link): New section.
55974
55975         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
55976         * modules/ldexpl (Link): New section.
55977
55978 2007-04-03  Bruno Haible  <bruno@clisp.org>
55979
55980         * modules/TEMPLATE-EXTENDED: New file.
55981         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
55982
55983 2007-04-03  Bruno Haible  <bruno@clisp.org>
55984
55985         * DEPENDENCIES: New file.
55986         Suggested by Simon Josefsson.
55987
55988 2007-04-03  Bruno Haible  <bruno@clisp.org>
55989
55990         * doc/gnulib.texi: Escape @.
55991
55992 2007-04-03  James Youngman  <jay@gnu.org>
55993         and Paul Eggert  <eggert@cs.ucla.edu>
55994
55995         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
55996         birthtime on all systems that have birthtime, not just those which
55997         use st_birthtimensec rather than st_birthtim.  Putting zero in
55998         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
55999         that the birth time is not available for files on an NFS mount.
56000
56001 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56002
56003         * modules/memxor: Move back from crypto/, suggested by Bruno.
56004         * modules/crypto/hmac-sha1: Fix memxor dependency.
56005
56006         * modules/crypto/gc: Moved from ../.
56007
56008 2007-04-02  Eric Blake  <ebb9@byu.net>
56009
56010         * lib/ldexpl.c (includes): Avoid libm.
56011
56012         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56013
56014 2007-04-02  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56017         on IRIX.
56018
56019 2007-04-02  Bruno Haible  <bruno@clisp.org>
56020
56021         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56022         x86 or x86_64 platforms running MacOS X.
56023         Reported by Ryan Schmidt <@ryandesign.com>.
56024
56025 2007-04-02  Bruno Haible  <bruno@clisp.org>
56026
56027         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56028         i386.
56029
56030 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56031
56032         * modules/crypto/arcfour: Moved from ../.
56033         * modules/crypto/arcfour-tests: Moved from ../.
56034         * modules/crypto/arctwo: Moved from ../.
56035         * modules/crypto/arctwo-tests: Moved from ../.
56036         * modules/crypto/des: Moved from ../.
56037         * modules/crypto/des-tests: Moved from ../.
56038         * modules/crypto/gc-arcfour: Moved from ../.
56039         * modules/crypto/gc-arcfour-tests: Moved from ../.
56040         * modules/crypto/gc-arctwo: Moved from ../.
56041         * modules/crypto/gc-arctwo-tests: Moved from ../.
56042         * modules/crypto/gc-des: Moved from ../.
56043         * modules/crypto/gc-des-tests: Moved from ../.
56044         * modules/crypto/gc-hmac-md5: Moved from ../.
56045         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56046         * modules/crypto/gc-hmac-sha1: Moved from ../.
56047         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56048         * modules/crypto/gc-md2: Moved from ../.
56049         * modules/crypto/gc-md2-tests: Moved from ../.
56050         * modules/crypto/gc-md4: Moved from ../.
56051         * modules/crypto/gc-md4-tests: Moved from ../.
56052         * modules/crypto/gc-md5: Moved from ../.
56053         * modules/crypto/gc-md5-tests: Moved from ../.
56054         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56055         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56056         * modules/crypto/gc-random: Moved from ../.
56057         * modules/crypto/gc-rijndael: Moved from ../.
56058         * modules/crypto/gc-rijndael-tests: Moved from ../.
56059         * modules/crypto/gc-sha1: Moved from ../.
56060         * modules/crypto/gc-sha1-tests: Moved from ../.
56061         * modules/crypto/gc-tests: Moved from ../.
56062         * modules/crypto/hmac-md5: Moved from ../.
56063         * modules/crypto/hmac-md5-tests: Moved from ../.
56064         * modules/crypto/hmac-sha1: Moved from ../.
56065         * modules/crypto/hmac-sha1-tests: Moved from ../.
56066         * modules/crypto/md2: Moved from ../.
56067         * modules/crypto/md2-tests: Moved from ../.
56068         * modules/crypto/md4: Moved from ../.
56069         * modules/crypto/md4-tests: Moved from ../.
56070         * modules/crypto/md5: Moved from ../.
56071         * modules/crypto/md5-tests: Moved from ../.
56072         * modules/crypto/memxor: Moved from ../.
56073         * modules/crypto/rijndael: Moved from ../.
56074         * modules/crypto/rijndael-tests: Moved from ../.
56075         * modules/crypto/sha1: Moved from ../.
56076
56077 2007-03-30  James Youngman  <jay@gnu.org>
56078
56079         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56080         rename() to change the ctime of a file (because ctime is unaffected
56081         by rename on jfs2 on AIX 5.1).
56082         (main): Start by doing cleanup, in case a previous run failed leaving
56083         test files behind.
56084
56085 2007-03-31  Bruno Haible  <bruno@clisp.org>
56086
56087         Support old proprietary implementations of iconv.
56088         * modules/iconv_open: New file.
56089         * lib/iconv_.h: New file.
56090         * m4/iconv_h.m4: New file.
56091         * lib/iconv_open.c: New file.
56092         * lib/iconv_open-aix.gperf: New file.
56093         * lib/iconv_open-hpux.gperf: New file.
56094         * lib/iconv_open-irix.gperf: New file.
56095         * lib/iconv_open-osf.gperf: New file.
56096         * m4/iconv_open.m4: New file.
56097         * modules/linebreak (Depends-on): Add iconv_open.
56098         * modules/striconv (Depends-on): Likewise.
56099         * modules/striconveh (Depends-on): Likewise.
56100         * modules/unicodeio (Depends-on): Likewise.
56101         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56102         (iconv_t)(-1).
56103         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56104         conversion if cd is (iconv_t)(-1).
56105         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56106         is not possible.
56107
56108 2007-03-31  Bruno Haible  <bruno@clisp.org>
56109
56110         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56111         work on Solaris either. Protect also second use of "autodetect_jp".
56112
56113 2007-03-31  Bruno Haible  <bruno@clisp.org>
56114
56115         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56116         the function is not present.
56117
56118 2007-03-31  Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56121         the function is not present.
56122
56123 2007-03-31  Bruno Haible  <bruno@clisp.org>
56124
56125         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56126         a bug in HP-UX iconv_open().
56127
56128 2007-03-31  Bruno Haible  <bruno@clisp.org>
56129
56130         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56131         (Mathematics <math.h>): New section, add fpieee.
56132         (Input/output <stdio.h>): Add fseterr.
56133         (Mathematics <math.h>): New section, add printf-frexp.
56134         (Container data structures): Add sublist.
56135         (Core language properties): Add fpucw, inline.
56136         (Functions for greatest-width integer types <inttypes.h>): Add
56137         imaxabs, imaxdiv, inttypes.
56138         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56139         isnanl-nolibm, ldexp.
56140         (Mathematics <math.h>): New section, add printf-frexpl.
56141         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56142         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56143         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56144         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56145         (Unicode string functions): Add unistr/u*-mbtoucr.
56146         (Java): Add javacomp-script, javaexec-script.
56147         (C#): Add csharpcomp-script, csharpexec-script.
56148         (Support for building libraries and executables): Add havelib,
56149         relocatable-*.
56150         (Support for maintaining and releasing projects): Renamed from
56151         'Support for maintaining and release projects'. Add announce-gen.
56152
56153 2007-03-31  Bruno Haible  <bruno@clisp.org>
56154
56155         * README: Talk primarily about git.
56156         (git and CVS): Renamed from CVS.
56157         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56158         gnulib is available through git.
56159         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56160
56161 2007-03-30  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56164         * lib/poll_.h: Likewise.
56165         * lib/stat_.h: Likewise.
56166         * lib/sys_time_.h: Likewise.
56167         * lib/sysexit_.h: Likewise.
56168         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56169         * lib/stdbool_.h: Likewise.
56170         * lib/byteswap_.h: Add double-inclusion guard.
56171
56172 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56173
56174         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56175
56176 2007-03-30  Karl Berry  <karl@gnu.org>
56177
56178         * config/srclist-update: double space after USA in the license
56179         substitution, since that's how it's usually (?) written.
56180
56181 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56182
56183         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56184         reported by Bruno Haible.
56185
56186 2007-03-29  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56189         a bug in AIX iconv().
56190
56191 2007-03-29  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/ldexpl-tests: New file.
56194         * tests/test-ldexpl.c: New file.
56195
56196 2007-03-29  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/ldexpl.c: Include fpucw.h.
56199         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56200         multiplication.
56201         * modules/ldexpl (Depends-on): Add fpucw.
56202
56203 2007-03-29  Bruno Haible  <bruno@clisp.org>
56204
56205         * modules/ldexpl: New file.
56206         * m4/ldexpl.m4: New file.
56207         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56208         set.
56209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56210         REPLACE_LDEXPL.
56211         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56212         REPLACE_LDEXPL.
56213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56214         gl_FUNC_LDEXPL_WORKS.
56215         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56216         * modules/mathl (Files): Remove lib/ldexpl.c.
56217         (Depends-on): Add ldexpl.
56218
56219 2007-03-29  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56222
56223 2007-03-29  Bruno Haible  <bruno@clisp.org>
56224
56225         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56226         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56227         and possibly also HP-UX.
56228         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56229         work on AIX, IRIX, HP-UX, OSF/1.
56230         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56231         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56232         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56233         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56234         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56235         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56236
56237 2007-03-29  Bruno Haible  <bruno@clisp.org>
56238
56239         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56240
56241 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56244         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56245
56246 2007-03-29  Eric Blake  <ebb9@byu.net>
56247
56248         * lib/acl-internal.h: Remove redundant include.
56249         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56250         Cygwin when a file is locked.
56251
56252 2007-03-29  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56255         file.
56256         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56257
56258 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56261         try to remove a parent directory if the child couldn't be removed
56262         (except for the first rmdir, which could fail because the child
56263         doesn't exist).  Problem reported by Jeff Blaine in
56264         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56265
56266 2007-03-28  Bruno Haible  <bruno@clisp.org>
56267
56268         * lib/striconveh.c (utf8conv_carefully): New function.
56269         (mem_cd_iconveh_internal): Invoke it.
56270
56271 2007-03-28  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56274         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56275         input.
56276         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56277         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56278         unistr/u8-uctomb.
56279
56280 2007-03-28  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/unistr/u8-mbtoucr: New file.
56283         * lib/unistr/u8-mbtoucr.c: New file.
56284         * modules/unistr/u16-mbtoucr: New file.
56285         * lib/unistr/u16-mbtoucr.c: New file.
56286         * modules/unistr/u16-mbtoucr: New file.
56287         * lib/unistr/u16-mbtoucr.c: New file.
56288         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56289
56290 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56291             Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56294         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56295         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56296
56297         * m4/stdio_h.m4: Add stubs for vasprintf too.
56298
56299         * modules/stdio: Support vasprintf in sed command.
56300
56301         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56302         vasprintf.h.  Add stdio module indicator.
56303
56304         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56305         vasprintf.h.
56306
56307         * lib/vasprintf.h: File removed.
56308
56309         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56310         * lib/vasprintf.c: Ditto.
56311         * lib/xvasprintf.c: Ditto.
56312         * tests/test-vasprintf-posix.c: Ditto.
56313         * tests/test-vasprintf.c: Ditto.
56314
56315 2007-03-27  Bruno Haible  <bruno@clisp.org>
56316
56317         Make vasnprintf multithread-safe.
56318         * lib/vasnprintf.c (decimal_point_char): New function.
56319         (VASNPRINTF): Use it.
56320         Suggested by Simon Josefsson.
56321
56322 2007-03-27  Eric Blake  <ebb9@byu.net>
56323
56324         Support sub-second birthtime on cygwin.
56325         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56326         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56327         (get_stat_birthtime): Also work with st_birthtim.
56328
56329 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56332         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56333         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56334         (get_stat_birthtime_ns): Simplify compile-time tests.
56335         (get_stat_birthtime): Change the API to look like
56336         get_stat_mtime etc., except return a negative tv_nsec on error.
56337         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56338         Don't check for "spare" fields.
56339         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56340         or for struct stat.st_birthtime, as these tests aren't used.
56341         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56342
56343 2007-03-27  Bruno Haible  <bruno@clisp.org>
56344
56345         * lib/stat-time.h: Include <sys/stat.h>.
56346
56347 2007-03-27  James Youngman  <jay@gnu.org>
56348
56349         * lib/stat-time.h (get_stat_birthtime): New function for
56350           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56351         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56352           and its variants.
56353         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56354         * modules/stat-time-test: New file.
56355         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56356
56357 2007-03-26  Bruno Haible  <bruno@clisp.org>
56358
56359         Better support of signalling NaNs.
56360         * lib/atanl.c: Include isnanl.h.
56361         (atanl): Perform test for NaN at the beginning of the function and
56362         through a call to isnanl.
56363         * lib/cosl.c: Include isnanl.h.
56364         (cosl): Perform test for NaN at the beginning of the function and
56365         through a call to isnanl.
56366         * lib/ldexpl.c: Include isnanl.h.
56367         (ldexpl): Perform test for NaN through a call to isnanl.
56368         * lib/logl.c: Include isnanl.h.
56369         (logl): Perform test for NaN at the beginning of the function and
56370         through a call to isnanl.
56371         * lib/sinl.c: Include isnanl.h.
56372         (sinl): Perform test for NaN at the beginning of the function and
56373         through a call to isnanl.
56374         * lib/sqrtl.c: Include isnanl.h.
56375         (sqrtl): Perform test for NaN at the beginning of the function and
56376         through a call to isnanl.
56377         * lib/tanl.c: Include isnanl.h.
56378         (tanl): Perform test for NaN at the beginning of the function and
56379         through a call to isnanl.
56380         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56381         * modules/mathl (Depends-on): Add isnanl.
56382
56383 2007-03-26  Eric Blake  <ebb9@byu.net>
56384
56385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56386         regression in logic sense of previous patch.
56387
56388 2007-03-26  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56391         unportable shell command "if ! ...".
56392         Reported by Ralf Wildenhues.
56393
56394 2007-03-25  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56397         <sysexits.h> file, and only add EX_CONFIG.
56398         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56399         absolute file name and whether it is sufficient. Substitute also
56400         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56401         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56402         ABSOLUTE_SYSEXITS_H into sysexits.h.
56403
56404 2007-03-25  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56407         hints is NULL.
56408
56409 2007-03-25  Bruno Haible  <bruno@clisp.org>
56410
56411         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56412         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56413
56414 2007-03-25  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/vasnprintf.c: Include langinfo.h.
56417         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56418         multithread-safe.
56419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56422         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56428         Reported by Simon Josefsson.
56429
56430 2007-03-25  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56433         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56434         * modules/vasnprintf (Depends-on): Add stdint.
56435
56436 2007-03-25  Bruno Haible  <bruno@clisp.org>
56437
56438         * modules/fpieee: New file.
56439         * m4/fpieee.m4: New file.
56440         * modules/isnan-nolibm (Depends-on): Add fpieee.
56441         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56442         * modules/isnanl (Depends-on): Add fpieee.
56443
56444 2007-03-25  Bruno Haible  <bruno@clisp.org>
56445
56446         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56447
56448 2007-03-25  Bruno Haible  <bruno@clisp.org>
56449
56450         Avoid test failures on IRIX 6.5.
56451         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56452         (main): Use it.
56453         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56454         macros.
56455         (main): Use them.
56456
56457 2007-03-25  Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56460         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56461         exists but doesn't work.
56462         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56463         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56465         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56466         math.h.
56467
56468 2007-03-25  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
56471         returns inf. Needed on IRIX 6.5.
56472
56473 2007-03-25  Bruno Haible  <bruno@clisp.org>
56474
56475         * tests/test-frexpl.c: Include isnanl-nolibm.h.
56476         (main): Use isnanl instead of x != x idiom.
56477         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
56478
56479         * tests/test-frexp.c: Include isnan.h.
56480         (main): Use isnan instead of x != x idiom.
56481         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
56482
56483 2007-03-25  Bruno Haible  <bruno@clisp.org>
56484
56485         * tests/test-frexp.c (NaN): New function/macro.
56486         (main): Use it instead of 0.0 / 0.0.
56487         * tests/test-isnan.c (NaN): New function/macro.
56488         (main): Use it instead of 0.0 / 0.0.
56489         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
56490         (test_function): Use it instead of 0.0 / 0.0.
56491         * tests/test-vasprintf-posix.c (NaN): New function/macro.
56492         (test_function): Use it instead of 0.0 / 0.0.
56493         * tests/test-snprintf-posix.h (NaN): New function/macro.
56494         (test_function): Use it instead of 0.0 / 0.0.
56495         * tests/test-sprintf-posix.h (NaN): New function/macro.
56496         (test_function): Use it instead of 0.0 / 0.0.
56497         * tests/test-fprintf-posix.h (NaN): New function/macro.
56498         (test_function): Use it instead of 0.0 / 0.0.
56499         * tests/test-printf-posix.h (NaN): New function/macro.
56500         (test_function): Use it instead of 0.0 / 0.0.
56501
56502         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
56503
56504 2007-03-25  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
56507
56508 2007-03-25  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/regexec.c (merge_state_with_log): Make static.
56511
56512 2007-03-25  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/trigl.c (kernel_rem_pio2): Make static.
56515
56516 2007-03-25  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/sincosl.c (sincosl_table): Make static.
56519
56520 2007-03-25  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
56523         if the compiler does not support C99.
56524
56525 2007-03-25  Bruno Haible  <bruno@clisp.org>
56526
56527         * modules/time (Makefile.am): Ensure all rule action lines start with a
56528         tab.
56529
56530 2007-03-24  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/tsearch-tests: New file.
56533         * tests/test-tsearch.sh: New file.
56534         * tests/test-tsearch.c: New file, mostly copied from glibc.
56535
56536         * modules/search-tests: New file.
56537         * tests/test-search.c: New file.
56538
56539         * modules/search: New file.
56540         * lib/search_.h: New file, incorporating lib/tsearch.h.
56541         * m4/search_h.m4: New file.
56542         * lib/tsearch.h: Remove file.
56543         * lib/tsearch.c: Include search.h instead of tsearch.h.
56544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
56545         HAVE_TSEARCH.
56546         * modules/tsearch (Files): Remove lib/tsearch.h.
56547         (Depends-on): Add search.
56548         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
56549         (Include): Change tsearch.h into search.h.
56550
56551 2007-03-24  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/fpucw: New file.
56554         * lib/fpucw.h: New file.
56555         * lib/frexp.c: Include fpucw.h.
56556         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56557         (FUNC): Use them.
56558         * lib/printf-frexp.c: Include fpucw.h.
56559         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
56560         (FUNC): Use them.
56561         * lib/vasnprintf.c: Include fpucw.h.
56562         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
56563         'long double' calculations.
56564         * tests/test-frexpl.c: Include fpucw.h.
56565         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56566         * tests/test-printf-frexpl.c: Include fpucw.h.
56567         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
56568         * modules/frexpl (Depends-on): Add fpucw.
56569         * modules/printf-frexpl (Depends-on): Likewise.
56570         * modules/fprintf-posix (Depends-on): Likewise.
56571         * modules/snprintf-posix (Depends-on): Likewise.
56572         * modules/sprintf-posix (Depends-on): Likewise.
56573         * modules/vasnprintf-posix (Depends-on): Likewise.
56574         * modules/vasprintf-posix (Depends-on): Likewise.
56575         * modules/vfprintf-posix (Depends-on): Likewise.
56576         * modules/vsnprintf-posix (Depends-on): Likewise.
56577         * modules/vsprintf-posix (Depends-on): Likewise.
56578         * modules/frexpl-tests (Depends-on): Likewise.
56579         * modules/printf-frexpl-tests (Depends-on): Likewise.
56580
56581 2007-03-24  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/float+.h: New file.
56584         * lib/isnan.c: Include float+.h.
56585         (SIZE): New macro.
56586         (FUNC): Compare only SIZE bytes of the value.
56587         * lib/vasnprintf.c: Include float+.h.
56588         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
56589         SIZEOF_LDBL or SIZEOF_DBL bytes.
56590         * modules/isnan-nolibm (Files): Add lib/float+.h.
56591         * modules/isnanl-nolibm (Files): Add lib/float+.h.
56592         * modules/isnanl (Files): Add lib/float+.h.
56593         * modules/vasnprintf (Files): Add lib/float+.h.
56594
56595 2007-03-24  Bruno Haible  <bruno@clisp.org>
56596
56597         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
56598         include isnanl-nolibm.h.
56599
56600 2007-03-24  Bruno Haible  <bruno@clisp.org>
56601
56602         * tests/test-read-file.c (main): Don't produce spurious output for
56603         expected situations. Make the test fail if it encountered unexpected
56604         results.
56605
56606 2007-03-24  Bruno Haible  <bruno@clisp.org>
56607
56608         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
56609         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
56610
56611 2007-03-24  Bruno Haible  <bruno@clisp.org>
56612
56613         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
56614
56615 2007-03-24  Bruno Haible  <bruno@clisp.org>
56616
56617         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
56618         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
56619
56620         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
56621         * modules/utf8-ucs4: Turn into a symbolic link to module
56622         unistr/u8-mbtouc.
56623
56624         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
56625         utf8-ucs4-unsafe.
56626         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
56627         unistr/u8-mbtouc-unsafe.
56628
56629         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
56630         * modules/utf16-ucs4: Turn into a symbolic link to module
56631         unistr/u16-mbtouc.
56632
56633         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
56634         utf16-ucs4-unsafe.
56635         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
56636         unistr/u16-mbtouc-unsafe.
56637
56638         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
56639         * modules/ucs4-utf8: Turn into a symbolic link to module
56640         unistr/u8-ubtomb.
56641
56642         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
56643         * modules/ucs4-utf16: Turn into a symbolic link to module
56644         unistr/u16-ubtomb.
56645
56646 2007-03-24  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
56649         Enable the function only if HAVE_INLINE.
56650         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
56651         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56652         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
56653         Enable the function only if HAVE_INLINE.
56654         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
56655         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
56656         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
56657         Enable the function only if HAVE_INLINE.
56658         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
56659         Enable the function only if HAVE_INLINE.
56660         * modules/utf8-ucs4: Update.
56661         * modules/utf8-ucs4-unsafe: Update.
56662         * modules/utf16-ucs4: Update.
56663         * modules/utf16-ucs4-unsafe: Update.
56664         * modules/ucs4-utf8: Update.
56665         * modules/ucs4-utf16: Update.
56666
56667 2007-03-24  Bruno Haible  <bruno@clisp.org>
56668
56669         * lib/utf8-ucs4.h: Remove file.
56670         * lib/utf8-ucs4-unsafe.h: Remove file.
56671         * lib/utf16-ucs4.h: Remove file.
56672         * lib/utf16-ucs4-unsafe.h: Remove file.
56673         * lib/ucs4-utf8.h: Remove file.
56674         * lib/ucs4-utf16.h: Remove file.
56675         * lib/unistr.h: Include their previous contents.
56676         * m4/utf-ucs4.m4: Remove file.
56677         * m4/ucs4-utf.m4: Remove file.
56678         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
56679         (Depends-on): Add unistr/base.
56680         (configure.ac): Remove gl_UTF_UCS4.
56681         (Makefile.am): Update.
56682         (Include): Change to unistr.h.
56683         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
56684         (Depends-on): Add unistr/base.
56685         (configure.ac): Remove gl_UTF_UCS4.
56686         (Makefile.am): Update.
56687         (Include): Change to unistr.h.
56688         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
56689         (Depends-on): Add unistr/base.
56690         (configure.ac): Remove gl_UTF_UCS4.
56691         (Makefile.am): Update.
56692         (Include): Change to unistr.h.
56693         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
56694         (Depends-on): Add unistr/base.
56695         (configure.ac): Remove gl_UTF_UCS4.
56696         (Makefile.am): Update.
56697         (Include): Change to unistr.h.
56698         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
56699         (Depends-on): Add unistr/base.
56700         (configure.ac): Remove gl_UCS4_UTF.
56701         (Makefile.am): Update.
56702         (Include): Change to unistr.h.
56703         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
56704         (Depends-on): Add unistr/base.
56705         (configure.ac): Remove gl_UCS4_UTF.
56706         (Makefile.am): Update.
56707         (Include): Change to unistr.h.
56708         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
56709         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
56710         utf8-ucs4-unsafe.h.
56711         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
56712         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
56713         utf16-ucs4-unsafe.h.
56714         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
56715         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
56716         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
56717         * lib/unistr/u8-strchr.c: Likewise.
56718         * lib/unistr/u8-strrchr.c: Likewise.
56719         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
56720         * lib/unistr/u16-strchr.c: Likewise.
56721         * lib/unistr/u16-strrchr.c: Likewise.
56722         * lib/striconveh.c: Update.
56723         * lib/linebreak.c: Update.
56724
56725 2007-03-24  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
56728         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
56729
56730 2007-03-22  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
56733
56734 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         * MODULES.html.sh (File system functions): New module write-any-file.
56737         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
56738         * m4/write-any-file.m4: New files.
56739
56740 2007-03-23  Eric Blake  <ebb9@byu.net>
56741
56742         * gnulib-tool: Rearrange space-tab sequences, since some editors
56743         like to eat them.
56744
56745 2007-03-23  Eric Blake  <ebb9@byu.net>
56746
56747         * lib/version-etc.c (version_etc_va): Update license wording to
56748         be more concise.  Recommended by Richard Stallman.
56749
56750 2007-03-22  Bruno Haible  <bruno@clisp.org>
56751
56752         * lib/poll.c (MSG_PEEK): New fallback definition.
56753
56754 2007-03-22  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
56757         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
56758         (main): Update.
56759         Fixes a compilation error on BeOS.
56760
56761 2007-03-22  Bruno Haible  <bruno@clisp.org>
56762
56763         * modules/frexpl-tests: New file.
56764         * tests/test-frexpl.c: New file.
56765
56766         * modules/frexpl: New file.
56767         * m4/frexpl.m4: New file.
56768         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
56769         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
56770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
56771         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
56772         (Depends-on): Add frexpl. Remove isnanl-nolibm.
56773         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
56774
56775 2007-03-22  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/frexpl.c: Share code with lib/frexp.c.
56778         * modules/mathl (Files): Add lib/frexp.c.
56779         (Depends-on): Add isnanl-nolibm.
56780
56781 2007-03-22  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/printf-frexp (Files): Add m4/frexp.m4.
56784         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
56785         only if the found frexp function actually works.
56786
56787 2007-03-22  Bruno Haible  <bruno@clisp.org>
56788
56789         * lib/frexp.c: Remove older implementation that uses divisions.
56790
56791 2007-03-21  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/frexp-tests: New file.
56794         * tests/test-frexp.c: New file.
56795
56796         * modules/frexp: New file.
56797         * lib/frexp.c: New file.
56798         * m4/frexp.m4: New file.
56799         * lib/math_.h (frexp): New declaration.
56800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
56801         REPLACE_FREXP.
56802         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
56803
56804 2007-03-21  Bruno Haible  <bruno@clisp.org>
56805
56806         * modules/isnanl-tests: New file.
56807         * tests/test-isnanl.c: New file.
56808
56809         * modules/isnanl: New file.
56810         * lib/isnanl.h: New file.
56811         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
56812         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
56813         gl_FUNC_ISNANL_WORKS.
56814         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
56815         New macros.
56816
56817 2007-03-21  Bruno Haible  <bruno@clisp.org>
56818
56819         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
56820         lib/isnanl.h.
56821         (Include): Update.
56822         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
56823         * lib/vasnprintf.c: Update.
56824         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
56825         tests/test-isnanl.h, remove tests/test-isnanl.c.
56826         (Makefile.am): Update.
56827         * tests/test-isnanl-nolibm.c: New file.
56828         * tests/test-isnanl.h: New file.
56829         * tests/test-isnanl.c: Remove file.
56830
56831 2007-03-21  Jim Meyering  <jim@meyering.net>
56832
56833         When trying to open ".", treat ESTALE like EACCES.
56834         * lib/savewd.c (savewd_save): Resort to forking not just upon
56835         failure with EACCES, but also when errno is ESTALE.
56836
56837 2007-03-20  Bruno Haible  <bruno@clisp.org>
56838
56839         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
56840         Needed on AIX 5.1. Reported by Matthew Woehlke.
56841
56842 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         Suggestions by Bruno Haible:
56845         * lib/acl-internal.h: Include "gettext.h" rather than rolling
56846         our own.
56847         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
56848         * modules/acl (Depends-on): Add gettext.
56849
56850 2007-03-19  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/iconvme: Remove file.
56853         * lib/iconvme.h: Remove file.
56854         * lib/iconvme.c: Remove file.
56855         * m4/iconvme.m4: Remove file.
56856
56857 2007-03-19  Bruno Haible  <bruno@clisp.org>
56858
56859         * doc/relocatable-maint.texi: Break long shell script line.
56860         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56861
56862 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56863
56864         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
56865         handle file_has_acl.
56866         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
56867         * lib/acl.c: Move header inclusions and related macro defns into
56868         lib/acl-internal.h.
56869         (S_ISLNK): Remove defn, since that's now done for us.
56870         (file_has_acl): Move to lib/file-has-acl.c.
56871         Call acl_trivial if available.  This is the crucial part of the fix.
56872         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
56873         shared within the library.  Rewrite a bit, partly to make it compatible
56874         with the GNU coding style.
56875         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
56876         Remove unnecessary double-quotes.
56877         Don't test for acl_to_text; the build will catch that.
56878         Replace acl_entries if it doesn't exist and it is needed.
56879         Check for -lsec and acl_trivial (as used on Solaris 10).
56880         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
56881         lib/file-has-acl.c.
56882         (Depends-on): Add sys_stat, for S_ISLNK.
56883
56884 2007-03-19  Ben Pfaff  <blp@gnu.org>
56885
56886         * doc/gnulib.texi: Fix typos.
56887         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
56888
56889 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
56890
56891         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
56892         If size is zero here, buf must be zero.
56893
56894 2007-03-19  Simon Josefsson  <simon@josefsson.org>
56895
56896         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
56897         <bruno@clisp.org>.
56898
56899 2007-03-18  Bruno Haible  <bruno@clisp.org>
56900
56901         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
56902         Suggested by Eric Blake.
56903
56904 2007-03-18  Ben Pfaff  <blp@gnu.org>
56905
56906         * doc/relocatable.texi: Recommend using as prefix a directory
56907         that does not exist and will never be created.  Based on
56908         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
56909         and others.
56910
56911 2007-03-17  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/fchownat.c: Include lchown.h.
56914
56915 2007-03-17  Bruno Haible  <bruno@clisp.org>
56916
56917         Fix endless loop when the given allocated size was > INT_MAX.
56918         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
56919         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
56920         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
56921         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
56922         * lib/sprintf.c (sprintf): Likewise.
56923
56924 2007-03-17  Bruno Haible  <bruno@clisp.org>
56925
56926         * tests/test-argp-2.sh (func_compare): Output a context diff.
56927
56928 2007-03-17  Bruno Haible  <bruno@clisp.org>
56929
56930         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
56931         locale's decimal-point character.
56932
56933 2007-03-17  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
56936         before comparing it. Needed because on some platforms (e.g. x86) a
56937         'long double' occupies less bytes than sizeof (long double).
56938
56939 2007-03-17  Bruno Haible  <bruno@clisp.org>
56940
56941         * tests/test-crc.c (main): Make printf statements 64-bit clean.
56942         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
56943         * tests/test-getaddrinfo.c (simple): Likewise.
56944         * tests/test-read-file.c (main): Likewise.
56945
56946 2007-03-17  Bruno Haible  <bruno@clisp.org>
56947
56948         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
56949
56950 2007-03-17  Bruno Haible  <bruno@clisp.org>
56951
56952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
56953         unused variable.
56954
56955 2007-03-17  Bruno Haible  <bruno@clisp.org>
56956
56957         * tests/test-c-strcasecmp.c: Include c-strcase.h.
56958         * tests/test-c-strncasecmp.c: Likewise.
56959
56960 2007-03-17  Bruno Haible  <bruno@clisp.org>
56961
56962         * modules/stdlib (Depends-on): Add unistd.
56963         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
56964         Needed for MacOS X 10.3.
56965
56966 2007-03-17  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/unistr/u-strdup.h: Include <stdlib.h>.
56969
56970 2007-03-17  Bruno Haible  <bruno@clisp.org>
56971
56972         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
56973
56974 2007-03-17  Bruno Haible  <bruno@clisp.org>
56975
56976         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
56977         to reflect files copied from gnulib (with or without modifications).
56978         Suggested by Jim Meyering.
56979
56980 2007-03-17  Eric Blake  <ebb9@byu.net>
56981
56982         * NEWS: Document stdlib change from 2007-02-18.
56983
56984 2007-03-17  Jim Meyering  <jim@meyering.net>
56985
56986         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
56987         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
56988         someone uses a name containing shell meta-characters.
56989         Reported by Alfred M. Szmidt.
56990
56991         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
56992
56993 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
56994
56995         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
56996         and copy gettext configuration files only if configure.ac contains
56997         a use of AM_GNU_GETTEXT_VERSION.
56998
56999 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57000
57001         * build-aux/bootstrap (gnulib_name): New variable.
57002         (gnulib_tool_options): Use it.
57003
57004 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57005
57006         * tests/test-des.c: Use new namespace.
57007
57008 2007-03-15  Bruno Haible  <bruno@clisp.org>
57009
57010         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57011         Reported by James Youngman <jay@gnu.org>.
57012
57013 2007-03-15  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57016         declared prototype. Needed with cc on OSF/1 5.1.
57017
57018 2007-03-15  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57021         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57022         (struct gl_list_implementation): Add dispose_fn argument to the
57023         'create_empty', 'create' methods.
57024         (struct gl_list_impl_base): Add field 'dispose_fn'.
57025         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57026         argument.
57027         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57028         dispose_fn argument.
57029         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57030         dispose_fn on the dropped values.
57031         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57032         dispose_fn argument.
57033         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57034         dropped values.
57035         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57036         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57037         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57038         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57039         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57040         argument.
57041         (gl_tree_list_free): Call dispose_fn on the dropped values.
57042         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57043         the dropped values.
57044         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57045         Add dispose_fn argument.
57046         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57047         Call dispose_fn on the dropped values.
57048         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57049         Add dispose_fn argument.
57050         (gl_sublist_create): Initialize the 'dispose_fn' field.
57051         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57052         * tests/test-array_list.c (main): Update.
57053         * tests/test-carray_list.c (main): Update.
57054         * tests/test-avltree_list.c (main): Update.
57055         * tests/test-rbtree_list.c (main): Update.
57056         * tests/test-avltreehash_list.c (main): Update.
57057         * tests/test-rbtreehash_list.c (main): Update.
57058         * tests/test-linked_list.c (main): Update.
57059         * tests/test-linkedhash_list.c (main): Update.
57060         * tests/test-array_oset.c (main): Update.
57061
57062 2007-03-15  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57065         (gl_oset_create_empty): Add dispose_fn argument.
57066         (struct gl_oset_implementation): Add dispose_fn argument to
57067         'create_empty' method.
57068         (struct gl_oset_impl_base): Add dispose_fn field.
57069         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57070         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57071         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57072         values.
57073         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57074         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57075         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57076         dropped value.
57077         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57078         dropped value.
57079         * tests/test-array_oset.c (main): Update.
57080         * tests/test-avltree_oset.c (main): Update.
57081         * tests/test-rbtree_oset.c (main): Update.
57082         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57083
57084 2007-03-13  Bruno Haible  <bruno@clisp.org>
57085
57086         * tests/test-stdbool.c (i): Update after last patch.
57087
57088 2007-03-12  Bruno Haible  <bruno@clisp.org>
57089
57090         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57091         the iswprint macro. Needed on Solaris 2.5.1.
57092
57093 2007-03-12  Bruno Haible  <bruno@clisp.org>
57094
57095         * tests/test-printf-frexp.c (main): Declare x as volatile.
57096
57097 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57098
57099         * doc/gnulib.texi (Build robot for gnulib): New section.
57100
57101 2007-03-12  Jim Meyering  <jim@meyering.net>
57102
57103         * build-aux/bootstrap: New file.
57104         * build-aux/bootstrap.conf: New file, from coreutils.
57105
57106 2007-03-11  Bruno Haible  <bruno@clisp.org>
57107
57108         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57109
57110 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57111
57112         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57113         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57114         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57115
57116 2007-03-11  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57119         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57120
57121 2007-03-11  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57124         formula. Needed for SunPRO C 5.0.
57125
57126 2007-03-11  Bruno Haible  <bruno@clisp.org>
57127
57128         * modules/long-options (Depends-on): Add getopt.
57129
57130 2007-03-11  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/modechange (Depends-on): Add stdbool.
57133
57134 2007-03-11  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/i-ring (Depends-on): Add stdbool.
57137
57138 2007-03-11  Bruno Haible  <bruno@clisp.org>
57139
57140         * modules/gc-des (Depends-on): Add stdbool.
57141
57142 2007-03-11  Bruno Haible  <bruno@clisp.org>
57143
57144         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57145
57146 2007-03-11  Bruno Haible  <bruno@clisp.org>
57147
57148         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57149
57150 2007-03-11  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57153
57154 2007-03-11  Bruno Haible  <bruno@clisp.org>
57155
57156         * lib/vasnprintf.c (sprintf): Undefine.
57157
57158 2007-03-11  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57161         initializers in SunPRO C and Compaq C compilers.
57162
57163 2007-03-11  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57166         decrementing code ANSI C compliant.
57167
57168 2007-03-11  Bruno Haible  <bruno@clisp.org>
57169
57170         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57171         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57172
57173 2007-03-11  Bruno Haible  <bruno@clisp.org>
57174
57175         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57176         <stdbool.h> substitute doesn't pass.
57177
57178 2007-03-11  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57181
57182 2007-03-11  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57185         script, for submission to autobuild.josefsson.org.
57186
57187 2007-03-10  Bruno Haible  <bruno@clisp.org>
57188
57189         * modules/canonicalize-lgpl-tests: New file.
57190         * tests/test-canonicalize-lgpl.sh: New file.
57191         * tests/test-canonicalize-lgpl.c: New file.
57192
57193         * modules/c-strcase-tests: New file.
57194         * tests/test-c-strcase.sh: New file.
57195         * tests/test-c-strcasecmp.c: New file.
57196         * tests/test-c-strncasecmp.c: New file.
57197
57198         * modules/atexit-tests: New file.
57199         * tests/test-atexit.sh: New file.
57200         * tests/test-atexit.c: New file.
57201
57202 2007-03-10  Bruno Haible  <bruno@clisp.org>
57203
57204         * tests/test-binary-io.sh: Use temporary filenames that are not so
57205         likely to clash with those of other tests (in a parallel make).
57206         * tests/test-binary-io.c: Likewise.
57207
57208 2007-03-10  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57211         fallback; use #error instead.
57212         Suggested by Simon Josefsson.
57213
57214 2007-03-10  Bruno Haible  <bruno@clisp.org>
57215
57216         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57217         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57218         first and the last.
57219
57220 2007-03-10  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57223
57224 2007-03-10  Bruno Haible  <bruno@clisp.org>
57225
57226         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57227         "make distcheck".
57228         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57229         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57230         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57231
57232 2007-03-10  Bruno Haible  <bruno@clisp.org>
57233
57234         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57235         variable.
57236         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57237         variable.
57238
57239 2007-03-09  Eric Blake  <ebb9@byu.net>
57240         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57241
57242         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57243         types are not being provided by gnulib.
57244         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57245         types are supported.
57246
57247 2007-03-10  Bruno Haible  <bruno@clisp.org>
57248
57249         * lib/stdio_.h (__attribute__): New macro.
57250         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57251         vsprintf): Specify __attribute__ __format__ for GCC.
57252         Suggested by Eric Blake.
57253
57254 2007-03-09  Bruno Haible  <bruno@clisp.org>
57255
57256         * modules/printf-posix-tests: New file.
57257         * tests/test-printf-posix.sh: New file.
57258         * tests/test-printf-posix.c: New file.
57259
57260         * modules/printf-posix: New file.
57261         * lib/printf.c: New file.
57262         * m4/printf-posix-rpl.m4: New file.
57263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57264         REPLACE_PRINTF.
57265         * lib/stdio_.h (printf): New declaration.
57266         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57267         ____strfmon____): New macros.
57268         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57269         REPLACE_PRINTF.
57270
57271 2007-03-09  Bruno Haible  <bruno@clisp.org>
57272
57273         * tests/test-vasnprintf-posix2.sh: New file.
57274         * tests/test-vasnprintf-posix2.c: New file.
57275         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57276         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57277         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57278
57279         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57280         a locale dependent decimal point, rather than always '.'.
57281
57282 2007-03-09  Eric Blake  <ebb9@byu.net>
57283
57284         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57285         spite of platforms like Tandem/NSK that define it to -1.
57286
57287 2007-03-08  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/vprintf-posix-tests: New file.
57290         * tests/test-vprintf-posix.sh: New file.
57291         * tests/test-vprintf-posix.c: New file.
57292         * tests/test-printf-posix.h: New file.
57293
57294         * modules/vprintf-posix: New file.
57295         * lib/vprintf.c: New file.
57296         * m4/vprintf-posix.m4: New file.
57297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57298         REPLACE_VPRINTF.
57299         * lib/stdio_.h (vprintf): New declaration.
57300         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57301         REPLACE_VPRINTF.
57302
57303 2007-03-08  Bruno Haible  <bruno@clisp.org>
57304
57305         * modules/fprintf-posix-tests: New file.
57306         * tests/test-fprintf-posix.sh: New file.
57307         * tests/test-fprintf-posix.c: New file.
57308
57309         * modules/fprintf-posix: New file.
57310         * lib/fprintf.c: New file.
57311         * m4/fprintf-posix.m4: New file.
57312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57313         REPLACE_FPRINTF.
57314         * lib/stdio_.h (fprintf): New declaration.
57315         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57316         REPLACE_FPRINTF.
57317
57318 2007-03-08  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/vfprintf-posix-tests: New file.
57321         * tests/test-vfprintf-posix.sh: New file.
57322         * tests/test-vfprintf-posix.c: New file.
57323         * tests/test-fprintf-posix.h: New file.
57324         * tests/test-fprintf-posix.out: New file.
57325
57326         * modules/vfprintf-posix: New file.
57327         * lib/vfprintf.c: New file.
57328         * m4/vfprintf-posix.m4: New file.
57329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57330         REPLACE_VFPRINTF.
57331         * lib/stdio_.h (vfprintf): New declaration.
57332         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57333         REPLACE_VFPRINTF.
57334
57335 2007-03-08  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57338
57339 2007-03-08  Bruno Haible  <bruno@clisp.org>
57340
57341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57342         instead of 'expr' invocations.
57343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57348         Suggested by Paul Eggert.
57349
57350 2007-03-08  Bruno Haible  <bruno@clisp.org>
57351
57352         * modules/fseterr-tests: New file.
57353         * tests/test-fseterr.c: New file.
57354
57355         * modules/fseterr: New file.
57356         * lib/fseterr.h: New file.
57357         * lib/fseterr.c: New file.
57358
57359 2007-03-08  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57362         * lib/getopt_.h: Likewise.
57363         * lib/mbswidth.h: Likewise.
57364         * lib/setenv.h: Likewise.
57365         * lib/vasnprintf.h: Likewise.
57366         * lib/vasprintf.h: Likewise.
57367         * lib/verror.h: Likewise.
57368         * lib/xsetenv.h: Likewise.
57369         * lib/xvasprintf.h: Likewise.
57370
57371 2007-03-08  Jim Meyering  <jim@meyering.net>
57372
57373         * users.txt: Add parted.
57374
57375         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57376
57377 2007-03-07  Bruno Haible  <bruno@clisp.org>
57378
57379         * m4/printf.m4: Make the shell script snippets copy&pastable.
57380
57381 2007-03-02  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/netinet_in_.h: New file.
57384         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57385         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57386         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57387         (Depends-on): Add absolute-header.
57388         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57389         into netinet/in.h.
57390
57391 2007-03-03  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/sys_select_.h: New file.
57394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57395         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57396         * modules/sys_select (Files): Add lib/sys_select_.h.
57397         (Depends-on): Add absolute-header.
57398         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57399         into sys/select.h.
57400
57401 2007-03-02  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57404         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57405         values.
57406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57407         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57408         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57409         * modules/sys_socket (Depends-on): Add absolute-header.
57410         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57411         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57412         (Include): Remove requirement of inclusion of <sys/types.h>.
57413
57414 2007-03-02  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/byteswap_.h (bswap_32): Fix formula.
57417
57418 2007-03-06  Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/sprintf-posix-tests: New file.
57421         * tests/test-sprintf-posix.c: New file.
57422
57423         * modules/sprintf-posix: New file.
57424         * lib/sprintf.c: New file.
57425         * m4/sprintf-posix.m4: New file.
57426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57427         REPLACE_SPRINTF.
57428         * lib/stdio_.h (sprintf): New declaration.
57429         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57430         REPLACE_SPRINTF.
57431
57432 2007-03-06  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/vsprintf-posix-tests: New file.
57435         * tests/test-vsprintf-posix.c: New file.
57436         * tests/test-sprintf-posix.h: New file.
57437
57438         * modules/vsprintf-posix: New file.
57439         * lib/vsprintf.c: New file.
57440         * m4/vsprintf-posix.m4: New file.
57441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57442         REPLACE_VSPRINTF.
57443         * lib/stdio_.h (vsprintf): New declaration.
57444         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57445         REPLACE_VSPRINTF.
57446
57447 2007-03-06  Bruno Haible  <bruno@clisp.org>
57448
57449         * modules/vsnprintf (Depend-on): Remove minmax.
57450
57451 2007-03-06  Bruno Haible  <bruno@clisp.org>
57452
57453         * modules/snprintf-posix-tests: New file.
57454         * tests/test-snprintf-posix.c: New file.
57455
57456         * modules/snprintf-posix: New file.
57457         * m4/snprintf-posix.m4: New file.
57458         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57459         gl_FUNC_SNPRINTF.
57460         (gl_FUNC_SNPRINTF): Invoke it.
57461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57462         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57463         is set.
57464         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57465
57466 2007-03-06  Bruno Haible  <bruno@clisp.org>
57467
57468         * modules/vsnprintf-posix-tests: New file.
57469         * tests/test-vsnprintf-posix.c: New file.
57470         * tests/test-snprintf-posix.h: New file.
57471
57472         * modules/vsnprintf-posix: New file.
57473         * m4/vsnprintf-posix.m4: New file.
57474         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
57475         gl_FUNC_VSNPRINTF.
57476         (gl_FUNC_VSNPRINTF): Invoke it.
57477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
57478         * lib/stdio_.h (vsnprintf): Define as a replacement if
57479         REPLACE_VSNPRINTF is set.
57480         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
57481
57482 2007-03-06  Bruno Haible  <bruno@clisp.org>
57483
57484         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
57485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
57486
57487 2007-03-06  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
57490         (asinl): Declare also if HAVE_DECL_ASINL is set.
57491         (atanl): Declare also if HAVE_DECL_ATANL is set.
57492         (ceill): Declare also if HAVE_DECL_CEILL is set.
57493         (cosl): Declare also if HAVE_DECL_COSL is set.
57494         (expl): Declare also if HAVE_DECL_EXPL is set.
57495         (floorl): Declare also if HAVE_DECL_FLOORL is set.
57496         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
57497         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
57498         (logl): Declare also if HAVE_DECL_LOGL is set.
57499         (sinl): Declare also if HAVE_DECL_SINL is set.
57500         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
57501         (tanl): Declare also if HAVE_DECL_TANL is set.
57502         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
57503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
57504         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
57505         declaration of frexpl, ldexpl.
57506         * modules/printf-frexpl (Depends-on): Add math.
57507         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
57508
57509 2007-03-05  Bruno Haible  <bruno@clisp.org>
57510
57511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
57512         frexpl and ldexpl are declared.
57513         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
57514
57515 2007-03-05  Bruno Haible  <bruno@clisp.org>
57516
57517         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
57518         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
57519
57520 2007-03-05  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/stdio_.h: Include <stddef.h>.
57523
57524 2007-03-05  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
57527
57528 2007-03-05  Bruno Haible  <bruno@clisp.org>
57529
57530         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
57531         NetBSD 4, from Ralf Wildenhues.
57532
57533 2007-03-04  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/vasprintf.h: Update #if logic for the case when the functions
57536         exist but are overridden.
57537
57538 2007-03-04  Bruno Haible  <bruno@clisp.org>
57539
57540         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
57541         implementations: glibc-2.4 and MacOS X 10.3.
57542         * tests/test-vasnprintf-posix.c (test_function): Test also the case
57543         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
57544         * tests/test-vasprintf-posix.c (test_function): Likewise.
57545
57546 2007-03-04  Bruno Haible  <bruno@clisp.org>
57547
57548         * modules/vasprintf-posix-tests: New file.
57549         * tests/test-vasprintf-posix.c: New file.
57550
57551         * modules/vasprintf-posix: New file.
57552         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
57553         defined.
57554         * m4/vasprintf-posix.m4: New file.
57555         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
57556         gl_FUNC_VASPRINTF.
57557         (gl_FUNC_VASPRINTF): Invoke it.
57558         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
57559         here.
57560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
57561
57562 2007-03-04  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
57565         REPLACE_GETTIMEOFDAY.
57566         * modules/sys_time (Makefile.am): Likewise.
57567         * m4/sys_time_h.m4: Likewise.
57568         * m4/gettimeofday.m4: Likewise.
57569
57570 2007-03-04  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/vasnprintf-posix-tests: New file.
57573         * tests/test-vasnprintf-posix.c: New file.
57574
57575         * modules/vasnprintf-posix: New file.
57576         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
57577         printf-frexpl.h.
57578         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
57579         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
57580         REPLACE_VASNPRINTF is defined.
57581         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
57582         gl_FUNC_VASNPRINTF.
57583         (gl_FUNC_VASNPRINTF): Invoke it.
57584         * m4/vasnprintf-posix.m4: New file.
57585         * m4/printf.m4: New file.
57586
57587 2007-03-04  Bruno Haible  <bruno@clisp.org>
57588
57589         Compile progreloc.c only if --enable-relocatable is specified.
57590         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
57591         if --enable-relocatable was specified.
57592         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
57593         lib_SOURCES.
57594
57595 2007-03-04  Jim Meyering  <jim@meyering.net>
57596
57597         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
57598         Use it consistently, rather than enumerating errno constants.
57599
57600 2007-03-04  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/xvasprintf-tests: New file.
57603         * tests/test-xvasprintf.c: New file.
57604
57605         * modules/vasprintf-tests: New file.
57606         * tests/test-vasprintf.c: New file.
57607
57608         * modules/vasnprintf-tests: New file.
57609         * tests/test-vasnprintf.c: New file.
57610
57611         * modules/vsnprintf-tests: New file.
57612         * tests/test-vsnprintf.c: New file.
57613
57614         * modules/snprintf-tests: New file.
57615         * tests/test-snprintf.c: New file.
57616
57617 2007-03-04  Bruno Haible  <bruno@clisp.org>
57618
57619         Compile relocatable.c only if --enable-relocatable is specified.
57620         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
57621         gl_RELOCATABLE_LIBRARY.
57622         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
57623         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
57624         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
57625         gl_RELOCATABLE_LIBRARY.
57626         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
57627         (Makefile.am): Remove lib_SOURCES.
57628         * modules/relocatable-lib-lgpl (configure.ac): Invoke
57629         gl_RELOCATABLE_LIBRARY.
57630         (Makefile.am): Remove lib_SOURCES.
57631         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
57632         always.
57633         * modules/relocatable-prog-wrapper (configure.ac): Invoke
57634         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
57635
57636 2007-03-04  Bruno Haible  <bruno@clisp.org>
57637
57638         * modules/argmatch-tests: New file.
57639         * tests/test-argmatch.c: New file.
57640
57641         * tests/test-allocsa.c (main): Halve the number of loop runs.
57642
57643         * modules/alloca-opt-tests: New file.
57644         * tests/test-alloca-opt.c: New file.
57645
57646 2007-03-04  Jim Meyering  <jim@meyering.net>
57647
57648         Work around difference between Linux ACLs and Solaris 10 ZFS.
57649         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
57650         for EINVAL.
57651
57652 2007-03-03  Bruno Haible  <bruno@clisp.org>
57653
57654         * modules/relocatable-prog (Depends-on): Add back progreloc's
57655         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
57656
57657 2007-03-03  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
57660         * modules/relocatable-lib: New file.
57661
57662 2007-03-03  Bruno Haible  <bruno@clisp.org>
57663
57664         * modules/relocatable-prog: Renamed from modules/relocatable.
57665         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
57666
57667 2007-03-03  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/relocatable-script (Files): Add doc/relocatable.texi,
57670         m4/relocatable-lib.m4.
57671         (Depends-on): Remove 'relocatable'.
57672         (configure.ac): Add gl_RELOCATABLE_NOP.
57673
57674 2007-03-03  Bruno Haible  <bruno@clisp.org>
57675
57676         * modules/relocatable-prog-wrapper: New file.
57677         * modules/relocatable (Depends-on): Add it. Remove all other
57678         dependencies except progname.
57679         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
57680
57681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
57682         (gl_FUNC_STRERROR): Nop.
57683         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
57684
57685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
57686         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
57687
57688         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
57689         (gl_FUNC_READLINK): Update.
57690
57691         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
57692
57693 2007-03-03  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/xreadlink.c: Include <unistd.h> unconditionally.
57696         * modules/xreadlink (Depends-on): Add unistd.
57697         * modules/xreadlink-with-size (Depends-on): Likewise.
57698
57699 2007-03-03  Bruno Haible  <bruno@clisp.org>
57700
57701         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
57702         extracted from gt_FUNC_SETENV.
57703         (gt_FUNC_SETENV): Remove macro.
57704         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
57705         remove gt_FUNC_SETENV.
57706
57707 2007-03-03  Bruno Haible  <bruno@clisp.org>
57708
57709         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
57710         ENABLE_RELOCATABLE here.
57711         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
57712
57713 2007-03-03  Bruno Haible  <bruno@clisp.org>
57714
57715         * modules/rbtreehash-list-tests (Depends-on): Add progname.
57716         * tests/test-rbtreehash_list.c: Include progname.h.
57717         (main): Call set_program_name.
57718
57719         * modules/rbtree-oset-tests (Depends-on): Add progname.
57720         * tests/test-rbtree_oset.c: Include progname.h.
57721         (main): Call set_program_name.
57722
57723         * modules/rbtree-list-tests (Depends-on): Add progname.
57724         * tests/test-rbtree_list.c: Include progname.h.
57725         (main): Call set_program_name.
57726
57727         * modules/linked-list-tests (Depends-on): Add progname.
57728         * tests/test-linked_list.c: Include progname.h.
57729         (main): Call set_program_name.
57730
57731 2007-03-03  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
57734         All uses of __restrict changed to _Restrict_.
57735         * lib/glob_.h (__restrict): Remove macro.
57736
57737 2007-03-02  Bruno Haible  <bruno@clisp.org>
57738
57739         * modules/gettext (configure.ac): Require gettext infrastructure
57740         from version 0.16.1.
57741
57742 2007-03-02  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/linkedhash-list-tests (Depends-on): Add progname.
57745         * tests/test-linkedhash_list.c: Include progname.h.
57746         (main): Call set_program_name.
57747
57748         * modules/carray-list-tests (Depends-on): Add progname.
57749         * tests/test-carray_list.c: Include progname.h.
57750         (main): Call set_program_name.
57751
57752         * modules/avltreehash-list-tests (Depends-on): Add progname.
57753         * tests/test-avltreehash_list.c: Include progname.h.
57754         (main): Call set_program_name.
57755
57756         * modules/avltree-oset-tests (Depends-on): Add progname.
57757         * tests/test-avltree_oset.c: Include progname.h.
57758         (main): Call set_program_name.
57759
57760         * modules/avltree-list-tests (Depends-on): Add progname.
57761         * tests/test-avltree_list.c: Include progname.h.
57762         (main): Call set_program_name.
57763
57764         * modules/array-oset-tests (Depends-on): Add progname.
57765         * tests/test-array_oset.c: Include progname.h.
57766         (main): Call set_program_name.
57767
57768         * modules/array-list-tests (Depends-on): Add progname.
57769         * tests/test-array_list.c: Include progname.h.
57770         (main): Call set_program_name.
57771
57772         * modules/argp-tests (Depends-on): Add progname.
57773         * tests/test-argp.c: Include argp.h first. Include progname.h.
57774         (main): Call set_program_name.
57775
57776 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
57777
57778         * doc/gnulib-tool.texi (Initial import): Reword description of
57779         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
57780         limited effect even if defined after the first system include.
57781
57782 2007-03-01  Bruno Haible  <bruno@clisp.org>
57783
57784         * build-aux/config.libpath: Update to libtool-1.5.22.
57785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57786
57787 2007-03-01  Bruno Haible  <bruno@clisp.org>
57788
57789         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
57790         foo_CFLAGS.
57791         Reported by Ralf Wildenhues.
57792
57793 2007-03-01  Bruno Haible  <bruno@clisp.org>
57794
57795         * build-aux/install-reloc: Remove object files left over by some
57796         compilers.
57797         Reported by Ralf Wildenhues.
57798
57799 2007-03-01  Bruno Haible  <bruno@clisp.org>
57800
57801         * build-aux/install-reloc: Break long lines.
57802
57803 2007-03-01  Bruno Haible  <bruno@clisp.org>
57804
57805         * doc/relocatable.texi: Document that it may not work on OpenBSD.
57806         Reported by Ralf Wildenhues.
57807
57808 2007-03-01  Bruno Haible  <bruno@clisp.org>
57809
57810         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
57811         include ordering constraints.
57812
57813 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57814
57815         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
57816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
57817         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
57818         as another example.
57819         * lib/time_.h: Fix misspelling.
57820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57821         Require gl_HEADER_TIME_H_DEFAULTS.
57822         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
57823         * m4/time_r.m4 (gl_TIME_R): Likewise.
57824         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
57825
57826 2007-03-01  Bruno Haible  <bruno@clisp.org>
57827
57828         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
57829         * m4/utimens.m4 (gl_UTIMENS): Likewise.
57830
57831 2007-03-01  Jim Meyering  <jim@meyering.net>
57832
57833         * modules/xreadlink (Maintainer): Add my name.
57834         * modules/xreadlink-with-size (Depends-on): Alphabetize.
57835
57836 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
57837             Bruno Haible  <bruno@clisp.org>
57838
57839         * build-aux/install-reloc: Compile also c-ctype.c.
57840         * build-aux/relocatable.sh.in: New file.
57841         * doc/relocatable.texi: New file.
57842         * doc/relocatable-maint.texi: New file.
57843         * doc/gnulib.texi: Include relocatable-maint.texi.
57844         * lib/progreloc.c: Include unistd.h unconditionally.
57845         * lib/relocwrapper.c: Include unistd.h unconditionally.
57846         Include c-ctype.h.
57847         (add_dotbin): Use c_tolower.
57848         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
57849         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
57850         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
57851         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
57852         to m4/relocatable-lib.m4.
57853         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
57854         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
57855         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
57856         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
57857         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
57858         * modules/relocatable: New file.
57859         * modules/relocatable-lib: New file.
57860         * modules/relocatable-script: New file.
57861
57862 2007-02-28  Bruno Haible  <bruno@clisp.org>
57863
57864         Import --enable-relocatable infrastructure.
57865         * build-aux/config.libpath: New file, from GNU gettext.
57866         * build-aux/install-reloc: New file, from GNU gettext.
57867         * build-aux/reloc-ldflags: New file, from GNU gettext.
57868         * lib/relocatable.h: New file, from GNU gettext.
57869         * lib/relocatable.c: New file, from GNU gettext.
57870         * lib/relocwrapper.c: New file, from GNU gettext.
57871         * m4/relocatable.m4: New file, from GNU gettext.
57872
57873 2007-02-28  Bruno Haible  <bruno@clisp.org>
57874
57875         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
57876
57877         * modules/xreadlink: New file, from GNU gettext with modifications.
57878         * lib/xreadlink.c: New file, from GNU gettext.
57879         * lib/xreadlink.h: Add comments.
57880         (xreadlink): New declaration.
57881
57882         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
57883         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
57884         lib/xreadlink-with-size.c.
57885         (configure.ac): Remove gl_XREADLINK invocation.
57886         (Makefile.am): Augment lib_SOURCES.
57887         * m4/xreadlink.m4: Remove file.
57888         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
57889         (xreadlink_with_size): Renamed from xreadink.
57890         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
57891         * modules/canonicalize (Depends-on): Replace xreadlink with
57892         xreadlink-with-size.
57893         * lib/canonicalize.c (canonicalize_filename_mode): Update.
57894
57895 2007-02-25  Jim Meyering  <jim@meyering.net>
57896
57897         * build-aux/announce-gen: When complaining about excess arguments,
57898         list them.
57899
57900 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         * README: Document signed integer overflow situation more
57903         accurately.
57904
57905 2007-02-25  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
57908         'a' or 'A' conversion.
57909
57910 2007-02-25  Bruno Haible  <bruno@clisp.org>
57911
57912         * modules/filename: Renamed from modules/pathname.
57913         (Files): Replace lib/pathname.h with lib/filename.h. Replace
57914         lib/concatpath.c with lib/concat-filename.c.
57915         (Makefile.am): Update.
57916         (Include): Replace pathname.h with filename.h.
57917         * lib/filename.h: Renamed from lib/pathname.h.
57918         (concatenated_filename): Renamed from concatenated_pathname.
57919         * lib/concat-filename.c: Renamed from lib/concatpath.c.
57920         (concatenated_filename): Renamed from concatenated_pathname.
57921         * lib/findprog.c: Include filename.h instead of pathname.h.
57922         (find_in_path): Update.
57923         * lib/javacomp.c: Include filename.h instead of pathname.h.
57924         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57925         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57926         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57927         is_oldgcj_14_13_usable, is_javac_usable): Update.
57928         * lib/javaexec.c: Include filename.h instead of pathname.h.
57929         (execute_java_class): Update.
57930         * modules/findprog: Update.
57931         * modules/javacomp: Update.
57932         * modules/javaexec: Update.
57933         * MODULES.html.sh (File system functions): Add 'filename', remove
57934         'pathname'.
57935
57936 2007-02-25  Bruno Haible  <bruno@clisp.org>
57937
57938         * modules/printf-frexpl-tests: New file.
57939         * tests/test-printf-frexpl.c: New file.
57940
57941         * modules/printf-frexpl: New file.
57942         * lib/printf-frexpl.h: New file.
57943         * lib/printf-frexpl.c: New file.
57944         * m4/printf-frexpl.m4: New file.
57945
57946 2007-02-25  Bruno Haible  <bruno@clisp.org>
57947
57948         * modules/printf-frexp-tests: New file.
57949         * tests/test-printf-frexp.c: New file.
57950
57951         * modules/printf-frexp: New file.
57952         * lib/printf-frexp.h: New file.
57953         * lib/printf-frexp.c: New file.
57954         * m4/printf-frexp.m4: New file.
57955
57956 2007-02-25  Bruno Haible  <bruno@clisp.org>
57957
57958         Assume automake >= 1.10 for the tests.
57959         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
57960         * modules/arctwo-tests: Likewise.
57961         * modules/argp-tests: Likewise.
57962         * modules/avltree-list-tests: Likewise.
57963         * modules/avltree-oset-tests: Likewise.
57964         * modules/avltreehash-list-tests: Likewise.
57965         * modules/carray-list-tests: Likewise.
57966         * modules/crc-tests: Likewise.
57967         * modules/des-tests: Likewise.
57968         * modules/gc-arcfour-tests: Likewise.
57969         * modules/gc-arctwo-tests: Likewise.
57970         * modules/gc-des-tests: Likewise.
57971         * modules/gc-hmac-md5-tests: Likewise.
57972         * modules/gc-hmac-sha1-tests: Likewise.
57973         * modules/gc-md2-tests: Likewise.
57974         * modules/gc-md4-tests: Likewise.
57975         * modules/gc-md5-tests: Likewise.
57976         * modules/gc-pbkdf2-sha1-tests: Likewise.
57977         * modules/gc-rijndael-tests: Likewise.
57978         * modules/gc-sha1-tests: Likewise.
57979         * modules/gc-tests: Likewise.
57980         * modules/getaddrinfo-tests: Likewise.
57981         * modules/hmac-md5-tests: Likewise.
57982         * modules/hmac-sha1-tests: Likewise.
57983         * modules/linked-list-tests: Likewise.
57984         * modules/linkedhash-list-tests: Likewise.
57985         * modules/lock-tests: Likewise.
57986         * modules/md2-tests: Likewise.
57987         * modules/md4-tests: Likewise.
57988         * modules/md5-tests: Likewise.
57989         * modules/rbtree-list-tests: Likewise.
57990         * modules/rbtree-oset-tests: Likewise.
57991         * modules/rbtreehash-list-tests: Likewise.
57992         * modules/read-file-tests: Likewise.
57993         * modules/rijndael-tests: Likewise.
57994         * modules/stdint-tests: Likewise.
57995         * modules/tls-tests: Likewise.
57996
57997 2007-02-24  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58000         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58001         function; instead check whether isnan with a double argument links.
58002         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58003         function; instead check whether isnan with a 'long double' argument
58004         links.
58005         Reported by Eric Blake <ebb9@byu.net>.
58006
58007 2007-02-24  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58010         defined.
58011         * lib/isnanl.c: Remove all code. Just include isnan.c.
58012         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58013
58014 2007-02-25  Jim Meyering  <jim@meyering.net>
58015
58016         Avoid conflicting types for 'unsetenv' on FreeBSD.
58017         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58018         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58019         in stdlib.h.
58020
58021 2007-02-24  Bruno Haible  <bruno@clisp.org>
58022
58023         * modules/isnanl-nolibm-tests: New file.
58024         * tests/test-isnanl.c: New file.
58025
58026         * modules/isnanl-nolibm: New file.
58027         * lib/isnanl.h: New file.
58028         * lib/isnanl.c: New file.
58029         * m4/isnanl.m4: New file.
58030
58031 2007-02-24  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/isnan-nolibm-tests: New file.
58034         * tests/test-isnan.c: New file.
58035
58036         * modules/isnan-nolibm: New file.
58037         * lib/isnan.h: New file.
58038         * lib/isnan.c: New file.
58039         * m4/isnan.m4: New file.
58040
58041 2007-02-24  Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58044         assume that an exponent fits in 20 bits.
58045
58046 2007-02-24  Jim Meyering  <jim@meyering.net>
58047
58048         * m4/regex.m4: Update the description of the configure-time option,
58049         --without-included-regex, to state accurately what the defaults are,
58050         and perhaps to give people an idea why using this option is risky.
58051
58052 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58053
58054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58055         loops on small arguments.  This attempts to avoid the problem
58056         Bruno Haible reported for AIX 4.3.2 in
58057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58058
58059 2007-02-23  Bruno Haible  <bruno@clisp.org>
58060
58061         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58062         Needed for help2man.
58063
58064 2007-02-23  Karl Berry  <karl@gnu.org>
58065
58066         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58067         exists, foo.h should be cvs-ignored, not committed.
58068
58069 2007-02-23  Eric Blake  <ebb9@byu.net>
58070
58071         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58072         * lib/stat-time.h (includes): Likewise.
58073         * lib/utimecmp.c (includes): Likewise.
58074         * lib/utimens.h (includes): Likewise.
58075         * lib/getdate.y (includes): Also include "timespec.h" for use
58076         internal to the module.
58077         * modules/utimens (Depends-on): Revert yesterday's patch.
58078         * modules/nanosleep (Depends-on): Add missing dependency.
58079
58080 2007-02-22  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/glob.c: Don't include getlogin_r.h.
58083
58084 2007-02-22  Jim Meyering  <jim@meyering.net>
58085
58086         * modules/utimens (Depends-on): Add timespec, required for
58087         utimens.h's inclusion of timespec.h.
58088
58089 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58092         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58093         Schwab in
58094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58095         I'll try to think of a better way to fix the Solaris problem.
58096
58097         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58098         like glibc; on Solaris 10, it fails with errno == EINVAL.
58099         POSIX says the behavior is unspecified if the first argument is NULL,
58100         so play it safe and never pass NULL to the system getcwd.
58101
58102 2007-02-21  Jim Meyering  <jim@meyering.net>
58103
58104         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58105         of gettimeofday.  It would conflict with the one now always
58106         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58107         an IRIX 6.5 build failure.
58108
58109 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58110
58111         Minor fixups to port to Solaris 10 with Sun C 5.8.
58112         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58113         * modules/getcwd (Depends-on): Add dirfd.
58114         * lib/putenv.c (putenv): #undef it.
58115         (rpl_putenv): New decl.
58116         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58117
58118 2007-02-20  Bruno Haible  <bruno@clisp.org>
58119
58120         * modules/stdio-tests: New file.
58121         * tests/test-stdio.c: New file.
58122
58123         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58124         (Depends-on): Add stdio.
58125         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58126         (Include): Use <stdio.h> instead of vsnprintf.h.
58127         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58128         HAVE_DECL_VSNPRINTF.
58129         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58130
58131         * modules/snprintf (Files): Remove lib/snprintf.h.
58132         (Depends-on): Add stdio.
58133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58134         (Include): Use <stdio.h> instead of snprintf.h.
58135         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58136         HAVE_DECL_SNPRINTF.
58137         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58138         * lib/getaddrinfo.c: Likewise.
58139
58140         * modules/stdio: New file.
58141         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58142         * lib/snprintf.h: Remove file.
58143         * lib/vsnprintf.h: Remove file.
58144         * lib/.cppi-disable: Remove snprintf.h.
58145         * m4/stdio_h.m4: New file.
58146         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58147
58148 2007-02-20  Jim Meyering  <jim@meyering.net>
58149
58150         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58151         used by e.g., mingw.  From Bruno Haible.
58152
58153 2007-02-19  Bruno Haible  <bruno@clisp.org>
58154
58155         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58156         warnings.
58157         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58158
58159 2007-02-19  Bruno Haible  <bruno@clisp.org>
58160
58161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58162         from mingw users.
58163
58164 2007-02-19  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58167         warnings.
58168         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58169
58170 2007-02-19  Jim Meyering  <jim@meyering.net>
58171
58172         Don't use FD after a successful "fdopendir (fd)".
58173         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58174         Reset it by calling dirfd on the just-obtained DIR*.
58175
58176         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58177         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58178
58179 2007-02-18  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/readlink.c: Include <unistd.h>.
58182         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58183         HAVE_READLINK.
58184         * modules/readlink (Depends-on): Add unistd.
58185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58186         (Include): Add <unistd.h>.
58187
58188         * lib/getlogin_r.h: Remove file.
58189         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58190         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58191         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58192         HAVE_DECL_GETLOGIN_R.
58193         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58195         (Include): Use <unistd.h> instead of getlogin_r.h.
58196
58197         * lib/getcwd.h: Remove file.
58198         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58199         * lib/xgetcwd.c: Likewise.
58200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58201         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58202         * modules/getcwd (Files): Remove lib/getcwd.h.
58203         (Depends-on): Add unistd.
58204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58205         (Include): Use <unistd.h> instad of getcwd.h.
58206
58207         * lib/ftruncate.c: Include <unistd.h> first.
58208         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58209         Set HAVE_FTRUNCATE.
58210         * modules/ftruncate (Depends-on): Add unistd.
58211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58212
58213         * lib/fchdir.c: Include <unistd.h> first.
58214         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58216         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58217         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58218         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58219
58220         * lib/dup2.c: Include <unistd.h> first.
58221         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58222         HAVE_DUP2.
58223         * modules/dup2 (Depends-on): Add unistd.
58224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58225
58226         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58227         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58228         REPLACE_CHOWN. Don't define chown as a macro here.
58229         * modules/chown (Depends-on): Add unistd.
58230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58231
58232         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58233         Add definition for GL_LINK_WARNING.
58234         (chown, dup2): New declarations.
58235         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58236         link warning.
58237         (ftruncate): New declaration.
58238         (getcwd): New declaration, taken from old getcwd.h.
58239         (getlogin_r): New declaration, taken from old getlogin_r.h.
58240         (readlink): New declaration.
58241         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58242         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58243         (gl_PREREQ_UNISTD): Remove macro.
58244         (gl_UNISTD_MODULE_INDICATOR): New macro.
58245         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58246         many new variables. Don't set UNISTD_H.
58247         * modules/unistd (Description): Change.
58248         (Depends-on): Add link-warning.
58249         (configure.ac): Update.
58250         (Makefile.am): Create unistd.h always. Substitute many new variables
58251         into it.
58252
58253 2007-02-18  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58256         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58257         HAVE_GETSUBOPT.
58258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58259         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58260         * lib/getsubopt.h: Remove file.
58261         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58262         (Depends-on): Add stdlib.
58263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58264         (Includes): Use <stdlib.h> instead of getsubopt.h.
58265         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58266         Set HAVE_GETSUBOPT.
58267         * lib/getsubopt.c: Don't include getsubopt.h.
58268
58269 2007-02-18  Bruno Haible  <bruno@clisp.org>
58270
58271         * modules/fchdir (Depends-on): Add dup2.
58272
58273 2007-02-18  Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/stdlib_.h: Handle glibc's special invocation convention
58276         specially.
58277
58278 2007-02-18  Bruno Haible  <bruno@clisp.org>
58279
58280         * modules/stdlib-tests: New file.
58281         * tests/test-stdlib.c: New file.
58282
58283         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58284         (Depends-on): Add stdlib.
58285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58286         (Includes): Use <stdlib.h> instead of mkstemp.h.
58287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58288         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58289         * lib/mkstemp.c: Don't include mkstemp.h.
58290         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58291         * lib/stdlib--.h: Don't include mkstemp.h.
58292
58293         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58294         (Depends-on): Add stdlib.
58295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58296         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58297         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58298         HAVE_MKDTEMP.
58299         * lib/mkdtemp.c: Don't include mkdtemp.h.
58300         * lib/clean-temp.c: Don't include mkdtemp.h.
58301
58302         * modules/exit (Files): Remove lib/exit.h.
58303         (Depends-on): Add stdlib.
58304         (Makefile.am): Remove lib_SOURCES.
58305         (Include): Use <stdlib.h> instead of exit.h.
58306         * lib/argmatch.c: Don't include exit.h.
58307         * lib/execute.c: Likewise.
58308         * lib/pagealign_alloc.c: Likewise.
58309         * lib/pipe.c: Likewise.
58310         * lib/wait-process.c: Likewise.
58311         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58312         * lib/exitfail.c: Likewise.
58313         * lib/savewd.c: Likewise.
58314         * lib/xsetenv.c: Likewise.
58315
58316         * modules/stdlib: New file.
58317         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58318         and extra comments about mkstemp().
58319         * lib/exit.h: Remove file.
58320         * lib/mkdtemp.h: Remove file.
58321         * lib/mkstemp.h: Remove file.
58322         * m4/stdlib_h.m4: New file.
58323         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58324
58325 2007-02-18  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/math-tests: New file.
58328         * tests/test-math.c: New file.
58329
58330         * modules/math: New file.
58331         * modules/mathl (Files): Remove lib/mathl.h.
58332         (Depends-on): Add math.
58333         (Makefile.am): Don't mention mathl.h.
58334         (Include): Use <math.h> instead of mathl.h.
58335         * lib/math_.h: New file.
58336         * lib/mathl.h: Remove file.
58337         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58338         mathl.h.
58339         * lib/asinl.c: Likewise.
58340         * lib/atanl.c: Likewise.
58341         * lib/ceill.c: Likewise.
58342         * lib/cosl.c: Likewise.
58343         * lib/expl.c: Likewise.
58344         * lib/floorl.c: Likewise.
58345         * lib/frexpl.c: Likewise.
58346         * lib/ldexpl.c: Likewise.
58347         * lib/logl.c: Likewise.
58348         * lib/sincosl.c: Likewise.
58349         * lib/sinl.c: Likewise.
58350         * lib/sqrtl.c: Likewise.
58351         * lib/tanl.c: Likewise.
58352         * lib/trigl.c: Likewise.
58353         * m4/math_h.m4: New file.
58354         * MODULES.html.sh (Mathematics): Add math.
58355
58356 2007-02-17  Bruno Haible  <bruno@clisp.org>
58357
58358         * modules/wctype-tests: New file.
58359         * tests/test-wctype.c: New file.
58360
58361         * modules/wchar-tests: New file.
58362         * tests/test-wchar.c: New file.
58363
58364         * modules/unistd-tests: New file.
58365         * tests/test-unistd.c: New file.
58366
58367         * modules/time-tests: New file.
58368         * tests/test-time.c: New file.
58369
58370         * modules/sysexits-tests: New file.
58371         * tests/test-sysexits.c: New file.
58372
58373         * modules/sys_time-tests: New file.
58374         * tests/test-sys_time.c: New file.
58375
58376         * modules/sys_stat-tests: New file.
58377         * tests/test-sys_stat.c: New file.
58378
58379         * modules/sys_socket-tests: New file.
58380         * tests/test-sys_socket.c: New file.
58381
58382         * modules/sys_select-tests: New file.
58383         * tests/test-sys_select.c: New file.
58384
58385         * modules/string-tests: New file.
58386         * tests/test-string.c: New file.
58387
58388         * modules/stdbool-tests: New file.
58389         * tests/test-stdbool.c: New file.
58390
58391         * modules/netinet_in-tests: New file.
58392         * tests/test-netinet_in.c: New file.
58393
58394         * modules/inttypes-tests: New file.
58395         * tests/test-inttypes.c: New file.
58396
58397         * modules/fcntl-tests: New file.
58398         * tests/test-fcntl.c: New file.
58399
58400         * modules/byteswap-tests: New file.
58401         * tests/test-byteswap.c: New file.
58402
58403         * modules/arpa_inet-tests: New file.
58404         * tests/test-arpa_inet.c: New file.
58405
58406 2007-02-17  Bruno Haible  <bruno@clisp.org>
58407
58408         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58409         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58410         if the corresponding module is not enabled. Emit link warnings if
58411         the function is used nevertheless.
58412         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58413         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58414         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58415         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58416         * modules/inttypes (Depends-on): Add link-warning.
58417         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58418         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58419         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58420         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58421         * modules/imaxdiv (configure.ac): Likewise.
58422         * modules/strtoimax (configure.ac): Likewise.
58423         * modules/strtoumax (configure.ac): Likewise.
58424
58425 2007-02-17  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58428         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58430         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58431
58432 2007-02-17  Bruno Haible  <bruno@clisp.org>
58433
58434         * modules/link-warning: New file.
58435         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58436         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58437         * modules/string (Depends-on): Add link-warning.
58438         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58439         string.h.
58440         * MODULES.html.sh (Support for building libraries and executables): Add
58441         link-warning.
58442
58443 2007-02-17  Bruno Haible  <bruno@clisp.org>
58444
58445         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58446         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58447         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58448         long lines.
58449
58450 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58451             Bruno Haible  <bruno@clisp.org>
58452
58453         * modules/tmpfile: New file.
58454         * lib/tmpfile.c: New file.
58455         * m4/tmpfile.m4: New file.
58456         * MODULES.html.sh (func_all_modules): New section "Input/output".
58457
58458 2007-02-15  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58461         (supports_delete_on_close): New function.
58462         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58463
58464 2007-02-14  Bruno Haible  <bruno@clisp.org>
58465
58466         * modules/mbspcasecmp-tests: New file.
58467         * tests/test-mbspcasecmp.sh: New file.
58468         * tests/test-mbspcasecmp.c: New file.
58469
58470         New module mbspcasecmp.
58471         * modules/mbspcasecmp: New file.
58472         * lib/mbspcasecmp.c: New file.
58473         * lib/string_.h (strncasecmp): Change warning message.
58474         (mbspcasecmp): New declaration.
58475         * m4/mbspcasecmp.m4: New file.
58476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58477         GNULIB_MBSPCASECMP.
58478         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
58479         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
58480
58481 2007-02-14  Bruno Haible  <bruno@clisp.org>
58482
58483         * modules/mbsncasecmp-tests: New file.
58484         * tests/test-mbsncasecmp.sh: New file.
58485         * tests/test-mbsncasecmp.c: New file.
58486
58487         New module mbsncasecmp.
58488         * modules/mbsncasecmp: New file.
58489         * lib/mbsncasecmp.c: New file.
58490         * lib/string_.h (mbsncasecmp): New declaration.
58491         * m4/mbsncasecmp.m4: New file.
58492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58493         GNULIB_MBSNCASECMP.
58494         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
58495         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
58496
58497 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
58500         Verify that it doesn't overlap with our flags.
58501         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
58502         do not have the desired effect in multibyte locales; instead, use
58503         mbscasecmp.
58504         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
58505         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
58506         we don't require GNU fnmatch ourselves (if our users require it, they
58507         should do so explicitly).
58508
58509         Fix regex code so it doesn't rely on strcasecmp.
58510         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
58511         Otherwise, include gnulib's langinfo.h.
58512         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
58513         undesirable behavior in non-C locales.  Instead, rely on localecharset.
58514         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
58515         * modules/regex (FILES): Remove m4/codeset.m4.
58516         (Depends-on): Add localcharset.  Remove strcase.
58517
58518 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58519
58520         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
58521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58522
58523 2007-02-13  Bruno Haible  <bruno@clisp.org>
58524
58525         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
58526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58527
58528 2007-02-12  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
58531         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
58532         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
58533         time warning rather than a link error.
58534
58535 2007-02-12  Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
58538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58540
58541 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
58544         args, not 2.
58545
58546 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         New module 'time', so that apps can include <time.h> as per
58549         POSIX and GNU instead of separate include files like time_r.h
58550         and timegm.h.  This implementation tries out a simpler approach
58551         for replacing decls in standard include files (as compared to
58552         the string module), somewhat as an experiment.
58553
58554         * config/srclist.txt: Comment out mktime.c for now.
58555         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
58556         since it doesn't apply any more.  Use generic wording instead.
58557         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
58558         'time'.
58559         * lib/time_.h, m4/time_h.m4, modules/time: New files.
58560         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
58561         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
58562         Don't include <sys/types.h>; no longer needed since we assume C89.
58563         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
58564         * lib/strftime.c: Likewise.
58565         * lib/time_r.c: Likewise.
58566         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
58567         * lib/nanosleep.c: Include <time.h> first, to check interface.
58568         * lib/strptime.c: Likewise.
58569         * lib/time_r.c: Likewise.
58570         * lib/timegm.c: Likewise.
58571         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
58572         needed.
58573         * lib/timegm.c: Don't include timegm.h; no longer needed.
58574         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
58575         time.h now handles any problems in that area.
58576         (struct timespec, nanosleep): Remove; time.h now arranges for these.
58577         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
58578         that time.h defines struct timespec.
58579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
58580         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
58581         handles that.
58582         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
58583         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
58584         needed.  Set REPLACE_LOCALTIME.
58585         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
58586         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
58587         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
58588         nanosleep; time_h.m4 now does that.  Don't require
58589         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
58590         module handles this now.
58591         * modules/getdate (Depends-on): Remove timespec.  Add time.
58592         * modules/nanosleep (Depends-on): Likewise.
58593         * modules/stat-time (Depends-on): Likewise.
58594         * modules/nanosleep (Include): Include time.h, not timespec.h.
58595         * modules/strptime (Files): Remove lib/strptime.h.
58596         (Depends-on): Add extensions, time.
58597         (Include): Include time.h, not strptime.h.
58598         * modules/time_r (Files): Remove lib/time_r.h.
58599         (Depends-on): Add time.
58600         (Include): Include time.h, not time_r.h.
58601         * modules/timegm: Likewise.
58602         * modules/timespec (Description): Now does timespec-related decls
58603         of our own, instead of struct timespec itself.
58604         (Depends-on): Add time; remove extensions.
58605         (Maintainer): Add self.
58606         * modules/utimecmp (Depends-on): Add time; remove timespec.
58607         * modules/utimens (Depends-on): Likewise.
58608         * modules/xnanosleep (Depends-on): Likewise.
58609
58610 2007-02-11  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/c-strstr.c: Include allocsa.h.
58613         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58614         * lib/c-strcasestr.c: Include allocsa.h.
58615         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58616         * lib/strcasestr.c: Include allocsa.h.
58617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
58618         * lib/mbsstr.c: Include allocsa.h.
58619         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58620         allocsa/freesa instead of malloc/free.
58621         * lib/mbscasestr.c: Include allocsa.h.
58622         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
58623         allocsa/freesa instead of malloc/free.
58624         * modules/c-strstr (Depends-on): Add allocsa.
58625         * modules/c-strcasestr (Depends-on): Likewise.
58626         * modules/strcasestr (Depends-on): Likewise.
58627         * modules/mbsstr (Depends-on): Likewise.
58628         * modules/mbscasestr (Depends-on): Likewise.
58629
58630 2007-02-11  Bruno Haible  <bruno@clisp.org>
58631
58632         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
58633
58634         * modules/mbsspn-tests: New file.
58635         * tests/test-mbsspn.sh: New file.
58636         * tests/test-mbsspn.c: New file.
58637
58638 2007-02-11  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
58641
58642         * modules/mbspbrk-tests: New file.
58643         * tests/test-mbspbrk.sh: New file.
58644         * tests/test-mbspbrk.c: New file.
58645
58646 2007-02-11  Bruno Haible  <bruno@clisp.org>
58647
58648         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
58649         unneeded cast.
58650
58651         * modules/mbscspn-tests: New file.
58652         * tests/test-mbscspn.sh: New file.
58653         * tests/test-mbscspn.c: New file.
58654
58655 2007-02-11  Bruno Haible  <bruno@clisp.org>
58656
58657         * modules/mbscasecmp-tests: New file.
58658         * tests/test-mbscasecmp.sh: New file.
58659         * tests/test-mbscasecmp.c: New file.
58660
58661 2007-02-11  Bruno Haible  <bruno@clisp.org>
58662
58663         Ensure O(n) worst-case complexity of mbscasestr.
58664         * lib/mbscasestr.c: Include stdbool.h.
58665         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58666         functions.
58667         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
58668         the bookkeeping indicates that it's worth it.
58669         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
58670
58671         * modules/mbscasestr-tests: New file.
58672         * tests/test-mbscasestr1.c: New file.
58673         * tests/test-mbscasestr2.sh: New file.
58674         * tests/test-mbscasestr2.c: New file.
58675         * tests/test-mbscasestr3.sh: New file.
58676         * tests/test-mbscasestr3.c: New file.
58677         * tests/test-mbscasestr4.sh: New file.
58678         * tests/test-mbscasestr4.c: New file.
58679         * m4/locale-tr.m4: New file.
58680
58681 2007-02-11  Bruno Haible  <bruno@clisp.org>
58682
58683         Ensure O(n) worst-case complexity of mbsstr.
58684         * lib/mbsstr.c: Include stdbool.h.
58685         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
58686         functions.
58687         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
58688         bookkeeping indicates that it's worth it.
58689         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
58690
58691         * modules/mbsstr-tests: New file.
58692         * tests/test-mbsstr1.c: New file.
58693         * tests/test-mbsstr2.sh: New file.
58694         * tests/test-mbsstr2.c: New file.
58695         * tests/test-mbsstr3.sh: New file.
58696         * tests/test-mbsstr3.c: New file.
58697         * m4/locale-fr.m4: New file.
58698
58699 2007-02-11  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/mbsrchr.c (mbsrchr): Fix bug.
58702
58703         * modules/mbsrchr-tests: New file.
58704         * tests/test-mbsrchr.sh: New file.
58705         * tests/test-mbsrchr.c: New file.
58706
58707 2007-02-11  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/mbschr.c (mbschr): Fix bug.
58710
58711         * modules/mbschr-tests: New file.
58712         * tests/test-mbschr.sh: New file.
58713         * tests/test-mbschr.c: New file.
58714         * m4/locale-zh.m4: New file.
58715
58716 2007-02-11  Bruno Haible  <bruno@clisp.org>
58717
58718         Support for copying multibyte string iterators.
58719         * lib/mbiter.h: Include <string.h>.
58720         (mbiter_multi_copy): New function.
58721         (mbi_copy): New macro.
58722         * lib/mbuiter.h: Include <string.h>.
58723         (mbuiter_multi_copy): New function.
58724         (mbui_copy): New macro.
58725
58726 2007-02-11  Bruno Haible  <bruno@clisp.org>
58727
58728         New module mbslen.
58729         * modules/mbslen: New file.
58730         * lib/mbslen.c: New file.
58731         * lib/string_.h (mbslen): New declaration.
58732         * m4/mbslen.m4: New file.
58733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58734         GNULIB_MBSLEN.
58735         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
58736         * MODULES.html.sh (Internationalization functions): Add mbslen.
58737
58738 2007-02-11  Bruno Haible  <bruno@clisp.org>
58739
58740         Ensure O(n) worst-case complexity of strcasestr substitute.
58741         * lib/strcasestr.c: Include stdbool.h.
58742         (knuth_morris_pratt): New function.
58743         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58744         bookkeeping indicates that it's worth it.
58745         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
58746
58747         * modules/strcasestr-tests: New file.
58748         * tests/test-strcasestr.c: New file.
58749
58750 2007-02-11  Bruno Haible  <bruno@clisp.org>
58751
58752         Ensure O(n) worst-case complexity of c_strcasestr.
58753         * lib/c-strcasestr.c: Include stdbool.h, string.h.
58754         (knuth_morris_pratt): New function.
58755         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
58756         the bookkeeping indicates that it's worth it.
58757         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
58758
58759         * modules/c-strcasestr-tests: New file.
58760         * tests/test-c-strcasestr.c: New file.
58761
58762 2007-02-11  Bruno Haible  <bruno@clisp.org>
58763
58764         Ensure O(n) worst-case complexity of c_strstr.
58765         * lib/c-strstr.c: Include stdbool.h, string.h.
58766         (knuth_morris_pratt): New function.
58767         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
58768         bookkeeping indicates that it's worth it.
58769         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
58770
58771         * lib/c-strstr.c: Complete rewrite for maintainability.
58772
58773         * modules/c-strstr-tests: New file.
58774         * tests/test-c-strstr.c: New file.
58775
58776 2007-02-11  Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
58779         5.2.1 and earlier, whereby \055 was treated just like the range
58780         delimiter '-'.
58781         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58782
58783 2007-02-08  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/regex (Depends-on): Add stdbool.
58786         Reported by Dalibor Topic <robilad@kaffe.org>.
58787
58788 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
58791         Prefer returning from main to exiting from it.
58792         Remove unnecessary parens after sizeof.
58793
58794 2007-02-05  Bruno Haible  <bruno@clisp.org>
58795
58796         New module mbssep.
58797         * modules/mbssep: New file.
58798         * lib/mbssep.c: New file.
58799         * lib/string_.h (strsep): Add a conditional link warning.
58800         (mbssep): New declaration.
58801         * m4/mbssep.m4: New file.
58802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58803         GNULIB_MBSSEP.
58804         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
58805         * MODULES.html.sh (Internationalization functions): Add mbssep.
58806
58807 2007-02-05  Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
58810         Optimize search in case of 1 delimiter.
58811
58812 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58813
58814         * lib/acl.h: Include sys/types.h before sys/acl.h.
58815
58816 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
58817
58818         Merge upstream fix for glibc bugzilla #3957:
58819
58820         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
58821
58822         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
58823         bit for RE_HAT_LISTS_NOT_NEWLINE.
58824         (build_charclass_op): Remove bogus comment.
58825
58826 2007-02-05  Simon Josefsson  <simon@josefsson.org>
58827
58828         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
58829
58830 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58831
58832         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
58833         * lib/memmem.c [!defined _LIBC]: Include config.h.
58834
58835 2007-02-04  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
58838         warning message.
58839
58840 2007-02-04  Bruno Haible  <bruno@clisp.org>
58841
58842         New module mbstok_r.
58843         * modules/mbstok_r: New file.
58844         * lib/mbstok_r.c: New file.
58845         * lib/string_.h (strtok_r): Change argument names to match the
58846         comments. Add a conditional link warning.
58847         (mbstok_r): New declaration.
58848         * m4/mbstok_r.m4: New file.
58849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58850         GNULIB_MBSTOK_R.
58851         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
58852         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
58853
58854 2007-02-04  Bruno Haible  <bruno@clisp.org>
58855
58856         New module mbsspn.
58857         * modules/mbsspn: New file.
58858         * lib/mbsspn.c: New file.
58859         * lib/string_.h (strspn): Add a conditional link warning.
58860         (mbsspn): New declaration.
58861         * m4/mbsspn.m4: New file.
58862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58863         GNULIB_MBSSPN.
58864         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
58865         * MODULES.html.sh (Internationalization functions): Add mbsspn.
58866
58867 2007-02-04  Bruno Haible  <bruno@clisp.org>
58868
58869         New module mbspbrk.
58870         * modules/mbspbrk: New file.
58871         * lib/mbspbrk.c: New file.
58872         * lib/string_.h (strpbrk): Add a conditional link warning.
58873         (mbspbrk): New declaration.
58874         * m4/mbspbrk.m4: New file.
58875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58876         GNULIB_MBSPBRK.
58877         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
58878         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
58879
58880 2007-02-04  Bruno Haible  <bruno@clisp.org>
58881
58882         New module mbscspn.
58883         * modules/mbscspn: New file.
58884         * lib/mbscspn.c: New file.
58885         * lib/string_.h (strcspn): Add a conditional link warning.
58886         (mbscspn): New declaration.
58887         * m4/mbscspn.m4: New file.
58888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58889         GNULIB_MBSCSPN.
58890         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
58891         * MODULES.html.sh (Internationalization functions): Add mbscspn.
58892
58893 2007-02-04  Bruno Haible  <bruno@clisp.org>
58894
58895         New module mbscasestr, reduced goal of strcasestr.
58896         * modules/mbscasestr: New file.
58897         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
58898         (mbscasestr): Renamed from strcasestr.
58899         * lib/strcasestr.c: Don't include mbuiter.h.
58900         (strcasestr): Remove support for multibyte locales.
58901         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
58902         Change the conditional link warning.
58903         (mbscasestr): New declaration.
58904         * m4/mbscasestr.m4: New file.
58905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
58906         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
58907         REPLACE_STRCASESTR.
58908         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
58909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58910         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
58912         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
58913         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
58914         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
58915         (Depends-on): Remove mbuiter.
58916         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
58917
58918 2007-02-04  Bruno Haible  <bruno@clisp.org>
58919
58920         Simplify handling of strncasecmp.
58921         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
58922         the conditional link warning.
58923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58924         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
58925         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
58926         * modules/strcase (configure.ac): Don't invoke
58927         gl_STRING_MODULE_INDICATOR.
58928         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
58929
58930 2007-02-04  Bruno Haible  <bruno@clisp.org>
58931
58932         New module mbscasecmp, reduced goal of strcasecmp.
58933         * modules/mbscasecmp: New file.
58934         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
58935         (mbscasecmp): Renamed from strcasecmp.
58936         * lib/strcasecmp.c: Don't include mbuiter.h.
58937         (strcasecmp): Remove support for multibyte locales.
58938         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
58939         Change the conditional link warning.
58940         (mbscasecmp): New declaration.
58941         * m4/mbscasecmp.m4: New file.
58942         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
58943         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
58944         REPLACE_STRCASECMP.
58945         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
58946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58947         GNULIB_MBSCASECMP.
58948         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
58949         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
58950         * modules/strcase (Files): Remove m4/mbrtowc.m4.
58951         (Depends-on): Remove mbuiter.
58952         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
58953
58954 2007-02-04  Bruno Haible  <bruno@clisp.org>
58955
58956         New module mbsstr. Remove module strstr.
58957         * modules/mbsstr: New file.
58958         * modules/strstr: Remove file.
58959         * lib/mbsstr.c: Renamed from lib/strstr.c.
58960         (mbsstr): Renamed from strstr.
58961         * lib/string_.h (strstr): Remove declaration. Change the conditional
58962         link warning.
58963         (mbsstr): New declaration.
58964         * m4/mbsstr.m4: New file.
58965         * m4/strstr.m4: Remove file.
58966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
58967         REPLACE_STRSTR.
58968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
58969         Don't initialize GNULIB_STRSTR.
58970         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
58971         substitute GNULIB_STRSTR and REPLACE_STRSTR.
58972         * MODULES.html.sh (Internationalization functions): Add mbsstr.
58973         (Support for systems lacking ANSI C 89): Remove strstr.
58974
58975 2007-02-04  Bruno Haible  <bruno@clisp.org>
58976
58977         New module mbsrchr.
58978         * modules/mbsrchr: New file.
58979         * lib/mbsrchr.c: New file.
58980         * lib/string_.h (strrchr): Add a conditional link warning.
58981         (mbsrchr): New declaration.
58982         * m4/mbsrchr.m4: New file.
58983         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58984         GNULIB_MBSRCHR.
58985         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
58986         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
58987
58988 2007-02-04  Bruno Haible  <bruno@clisp.org>
58989
58990         New module mbschr.
58991         * modules/mbschr: New file.
58992         * lib/mbschr.c: New file.
58993         * lib/string_.h (strchr): Add a conditional link warning.
58994         (mbschr): New declaration.
58995         * m4/mbschr.m4: New file.
58996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
58997         GNULIB_MBSCHR.
58998         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
58999         * MODULES.html.sh (Internationalization functions): Add mbschr.
59000
59001 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59002
59003         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59004
59005         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59006
59007 2007-02-04  Bruno Haible  <bruno@clisp.org>
59008
59009         New module description section 'configure.ac-early'.
59010         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59011         (func_get_autoconf_early_snippet): New function.
59012         (func_import, func_create_testdir): Use it. Remove special cases for
59013         modules 'extensions' and 'lock'.
59014         * modules/extensions (configure.ac-early): Require
59015         gl_USE_SYSTEM_EXTENSIONS.
59016         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59017
59018 2007-02-04  Bruno Haible  <bruno@clisp.org>
59019
59020         Make use of gcj-4.3's -fsource and -ftarget option.
59021         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59022         and if so try the options -fsource and -ftarget.
59023         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59024         source_version, ftarget_option, target_version arguments.
59025         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59026         (is_envjavac_oldgcj_14_14_usable): Renamed from
59027         is_envjavac_gcj_14_14_usable.
59028         (is_envjavac_oldgcj_14_13_usable): Renamed from
59029         is_envjavac_gcj_14_13_usable.
59030         (is_gcj_present): Update.
59031         (is_gcj_43, is_gcj43_usable): New functions.
59032         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59033         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59034         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59035         try the options -fsource and -ftarget.
59036
59037 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59038
59039         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59040         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59041         larger value.
59042
59043 2007-02-03  Jim Meyering  <jim@meyering.net>
59044
59045         Give tools a better chance to allocate space for very large buffers.
59046         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59047
59048         Make pwd and readlink work also when run with an unreadable parent dir
59049         on systems with openat support.
59050         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59051         provided getcwd function, even when we have openat support.
59052         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59053
59054 2007-02-02  Bruno Haible  <bruno@clisp.org>
59055
59056         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59057         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59058         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59059         portability problems if one of these functions is only used on specific
59060         platforms.
59061         Reported by Paul Eggert.
59062
59063 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59066         is causing more trouble than it's curing.
59067         * lib/regex_internal.h (__mempcpy): Remove.
59068         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59069         (and make the code a tad smaller to boot).
59070         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59071
59072 2007-02-02  Jim Meyering  <jim@meyering.net>
59073
59074         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59075         section, not in the Makefile.am: one.
59076
59077 2007-02-02  Eric Blake  <ebb9@byu.net>
59078
59079         * lib/strchrnul.c: Always include config.h first.
59080
59081         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59082         gnulib strstr is not necessary here.
59083
59084 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59085
59086         * m4/socklen.m4: Fix typo.
59087
59088 2007-02-02  Eric Blake  <ebb9@byu.net>
59089
59090         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59091         * modules/netinet_in (Makefile.am): Likewise.
59092
59093 2007-02-01  Bruno Haible  <bruno@clisp.org>
59094
59095         * lib/string_.h (GL_LINK_WARNING): New macro.
59096         (strcasecmp, strstr, strcasestr): If provided by the system,
59097         conditionally define as a macro that leads to a warning instead of to
59098         an error.
59099         (strncasecmp): Conditionally define as a macro that leads to a warning.
59100
59101 2007-02-01  Karl Berry  <karl@gnu.org>
59102
59103         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59104
59105 2007-02-01  Bruno Haible  <bruno@clisp.org>
59106
59107         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59108         renamings.
59109
59110 2007-02-01  Eric Blake  <ebb9@byu.net>
59111
59112         * modules/regex (Depends-on): Revert dependence on mempcpy.
59113         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59114         module's definition of mempcpy.
59115         Reported by Paul Eggert.
59116
59117 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59120         the symbol XYZ before redefining it.  This fixes a problem with
59121         programs that don't use XYZ, when compiled on systems that define
59122         XYZ to something else.
59123
59124 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59125
59126         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59127         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59128         writeable to group or other and (2) is intended to have a special
59129         mode bit that is set or cleared.  In such a case, the directory
59130         should be neither group- nor other-writeable until the special
59131         mode bits are right.
59132
59133 2007-01-31  Eric Blake  <ebb9@byu.net>
59134
59135         * modules/mountlist (Depends-on): Add strstr.
59136
59137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59138         bug.
59139         * modules/string (Makefile.am): Remove redundant replacement.
59140         * modules/regex (Depends-on): Add mempcpy.
59141
59142 2007-01-31  Bruno Haible  <bruno@clisp.org>
59143
59144         New module description field 'Link'.
59145         * gnulib-tool (func_usage): Document --extract-link-directive.
59146         (sed_extract_prog): Recognize 'Link' directive.
59147         (func_get_link_directive): New function.
59148         (func_import): Show summary of link directives.
59149         Handle --extract-link-directive option.
59150         * modules/acl (Link): New section.
59151         * modules/clock-time (Link): New section.
59152         * modules/euidaccess (Link): New section.
59153         * modules/gettext (Link): New section.
59154         * modules/iconv (Link): New section.
59155         * modules/lock (Link): New section.
59156         * modules/nanosleep (Link): New section.
59157         * modules/readline (Link): New section.
59158
59159 2007-01-27  Bruno Haible  <bruno@clisp.org>
59160
59161         Enforce the use of gnulib modules for unportable <string.h> functions.
59162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59163         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59164         (gl_HEADER_STRING_H_BODY): Require it.
59165         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59166         the symbol XYZ to one that gives a link error.
59167         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59168         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59169         * modules/mempcpy (configure.ac): Likewise.
59170         * modules/memrchr (configure.ac): Likewise.
59171         * modules/stpcpy (configure.ac): Likewise.
59172         * modules/stpncpy (configure.ac): Likewise.
59173         * modules/strcase (configure.ac): Likewise.
59174         * modules/strcasestr (configure.ac): Likewise.
59175         * modules/strchrnul (configure.ac): Likewise.
59176         * modules/strdup (configure.ac): Likewise.
59177         * modules/strndup (configure.ac): Likewise.
59178         * modules/strnlen (configure.ac): Likewise.
59179         * modules/strpbrk (configure.ac): Likewise.
59180         * modules/strsep (configure.ac): Likewise.
59181         * modules/strstr (configure.ac): Likewise.
59182         * modules/strtok_r (configure.ac): Likewise.
59183
59184 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59185
59186         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59187
59188 2007-01-30  Jim Meyering  <jim@meyering.net>
59189
59190         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59191
59192 2007-01-29  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59195         * lib/execute.c: Likewise.
59196         * lib/pipe.c: Likewise.
59197         * lib/printf-args.h: Likewise.
59198         * lib/printf-args.c: Likewise.
59199         * lib/printf-parse.c: Likewise.
59200         * lib/vasnprintf.c: Likewise.
59201
59202 2007-01-29  Eric Blake  <ebb9@byu.net>
59203
59204         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59205         declaration.
59206
59207 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59208
59209         * lib/strptime.h (strptime): Use 'restrict' for args where
59210         POSIX requires this.
59211         * lib/strptime.c (strptime): Likewise.
59212         Change license notice from LGPL to GPL, since gnulib-tool will
59213         change this as needed.
59214         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59215         defined.
59216         Include "strptime.h" first, to check interface.
59217         Do not #undef _LIBC and _NL_CURRENT.
59218         Do not include <stdlib.h>; no longer needed.
59219         Include "time_r.h" and declare ptime_locale_status
59220         only if _LIBC is not defined.
59221         (__P): Remove unused macro.
59222         (match_string): Bring back glibc version, but use it only if _LIBC
59223         is defined.
59224         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59225         Remove unnecessary assertion and abort() call.
59226         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59227         * m4/strptime.m4: Fix serial number comment.
59228         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59229         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59230         (Depends-on): Add time_r.
59231
59232 2007-01-29  Bruno Haible  <bruno@clisp.org>
59233
59234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59235         strptime.
59236         * modules/strptime (Depends-on): Add stdbool.
59237         * lib/strptime.h: Include <time.h> always. Add comments.
59238
59239 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59240
59241         * modules/strptime: New file.
59242         * lib/strptime.h: New file.
59243         * lib/strptime.c: New file.
59244         * m4/strptime.m4: New file.
59245
59246 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59247
59248         * MODULES.html.sh: New module mpsort.
59249         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59250
59251         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59252         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59253         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59254         All uses changed.
59255         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59256         All uses changed.
59257         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59258         to _Restrict_.
59259         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59260         the parameter matches the prototype.
59261
59262 2007-01-28  Jim Meyering  <jim@meyering.net>
59263
59264         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59265         sys/time.h here, reverting that part of the previous patch:
59266         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59267
59268 2007-01-28  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59271         value of $(SYS_TIME_H).
59272         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59273         remove it conditionally, too. [added by Jim Meyering]
59274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59276         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59277         GETTIMEOFDAY_REPLACEMENT to 1.
59278
59279 2007-01-28  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59282         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59284         Set UNISTD_H instead of UNISTD_H2.
59285         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59286
59287 2007-01-28  Bruno Haible  <bruno@clisp.org>
59288
59289         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59290         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59291
59292 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59293
59294         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59295         (func_create_testdir): Ensure C locale for `grep' and `tr'
59296         character ranges.
59297         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59298         ACLOCAL_AMFLAGS parsing state machine.
59299
59300 2007-01-27  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/unistr/base: Update.
59303
59304 2007-01-27  Bruno Haible  <bruno@clisp.org>
59305
59306         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59307         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59308         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59309         modules/unistr/u32-mbtouc.
59310         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59311         * lib/unistr.h: Update.
59312         * lib/linebreak.c: Update.
59313         * modules/unistr/u32-mbtouc: Renamed from
59314         modules/unistr/u32-mbtouc-safe.
59315         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59316         * lib/unistr.h: Update.
59317         * lib/unistr/u32-to-u8.c: Update.
59318         * lib/unistr/u32-to-u16.c: Update.
59319
59320 2007-01-27  Bruno Haible  <bruno@clisp.org>
59321
59322         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59323         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59324         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59325         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59326         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59327         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59328         modules/unistr/u16-mbtouc.
59329         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59330         * lib/unistr.h: Update.
59331         * lib/linebreak.c: Update.
59332         * modules/linebreak: Update.
59333         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59334         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59335         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59336         * modules/unistr/u16-mbtouc: Renamed from
59337         modules/unistr/u16-mbtouc-safe.
59338         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59339         * lib/unistr.h: Update.
59340         * lib/unistr/u16-to-u8.c: Update.
59341         * modules/unistr/u16-to-u8: Update.
59342         * lib/unistr/u16-to-u32.c: Update.
59343         * modules/unistr/u16-to-u32: Update.
59344
59345 2007-01-27  Bruno Haible  <bruno@clisp.org>
59346
59347         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59348         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59349         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59350         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59351         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59352         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59353         modules/unistr/u8-mbtouc.
59354         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59355         * lib/unistr.h: Update.
59356         * lib/striconveh.c: Update.
59357         * modules/striconveh: Update.
59358         * lib/linebreak.c: Update.
59359         * modules/linebreak: Update.
59360         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59361         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59362         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59363         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59364         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59365         * lib/unistr.h: Update.
59366         * lib/striconveh.c: Update.
59367         * modules/striconveh: Update.
59368         * lib/unistr/u8-to-u16.c: Update.
59369         * modules/unistr/u8-to-u16: Update.
59370         * lib/unistr/u8-to-u32.c: Update.
59371         * modules/unistr/u8-to-u32: Update.
59372
59373 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59374
59375         Sync from Libtool.
59376         * lib/argz.c: Do not include strings.h nor memory.h, include
59377         string.h unconditionally.  Patch by Simon Josefsson.
59378
59379 2007-01-27  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59382         from gl_HEADER_STRING_H_BODY.
59383         (gl_HEADER_STRING_H_BODY): Require it.
59384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59385         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59387         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59388         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59389         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59391         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59392         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59394         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59395         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59396         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59399
59400 2007-01-27  Bruno Haible  <bruno@clisp.org>
59401
59402         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59403         check_PROGRAMS into noinst_PROGRAMS.
59404         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59405         check_PROGRAMS in this case.
59406         (func_import): Set for_test to false.
59407         (func_create_testdir): Set for_test to true.
59408
59409 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59410             Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59413         (Depends-on): Add string.
59414         (Includes): Use <string.h> instead of strcasestr.h.
59415         * modules/string (Makefile.am): Also substitute the value of
59416         REPLACE_STRCASESTR.
59417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59418         assume strcasestr is declared in <string.h> not <strings.h>. Also
59419         set REPLACE_STRCASESTR.
59420         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59421         REPLACE_STRCASESTR.
59422         * lib/strcasestr.h: Remove file.
59423         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59424         * lib/string_.h (strcasestr): New declaration.
59425
59426 2007-01-27  Bruno Haible  <bruno@clisp.org>
59427
59428         * lib/string_.h: Use 'extern'.
59429
59430 2007-01-27  Jim Meyering  <jim@meyering.net>
59431
59432         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59433         of set-but-not-used local, "q".
59434
59435         * lib/mempcpy.c: Include <config.h> before <string.h>.
59436         This fixes a compilation error on HP-UX, due to the system's
59437         "restrict"-using mempcpy prototype.
59438
59439 2007-01-26  Bruno Haible  <bruno@clisp.org>
59440
59441         Small optimization.
59442         * lib/javacomp.c: Include c-strstr.h.
59443          (is_envjavac_gcj): Use c_strstr instead of strstr.
59444         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59445
59446 2007-01-26  Bruno Haible  <bruno@clisp.org>
59447
59448         * MODULES.html.sh (Unicode string functions): Add the new modules.
59449
59450         * modules/uniconv/u32-strconv-to-locale: New file.
59451         * lib/uniconv/u32-strconv-to-locale.c: New file.
59452
59453         * modules/uniconv/u16-strconv-to-locale: New file.
59454         * lib/uniconv/u16-strconv-to-locale.c: New file.
59455
59456         * modules/uniconv/u8-strconv-to-locale: New file.
59457         * lib/uniconv/u8-strconv-to-locale.c: New file.
59458
59459         * modules/uniconv/u32-strconv-from-locale: New file.
59460         * lib/uniconv/u32-strconv-from-locale.c: New file.
59461
59462         * modules/uniconv/u16-strconv-from-locale: New file.
59463         * lib/uniconv/u16-strconv-from-locale.c: New file.
59464
59465         * modules/uniconv/u8-strconv-from-locale: New file.
59466         * lib/uniconv/u8-strconv-from-locale.c: New file.
59467
59468         * modules/uniconv/u32-strconv-to-enc: New file.
59469         * lib/uniconv/u32-strconv-to-enc.c: New file.
59470         * modules/uniconv/u32-strconv-to-enc-tests: New file.
59471         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
59472
59473         * modules/uniconv/u16-strconv-to-enc: New file.
59474         * lib/uniconv/u16-strconv-to-enc.c: New file.
59475         * lib/uniconv/u-strconv-to-enc.h: New file.
59476         * modules/uniconv/u16-strconv-to-enc-tests: New file.
59477         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
59478
59479         * modules/uniconv/u8-strconv-to-enc: New file.
59480         * lib/uniconv/u8-strconv-to-enc.c: New file.
59481         * modules/uniconv/u8-strconv-to-enc-tests: New file.
59482         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
59483
59484         * modules/uniconv/u32-strconv-from-enc: New file.
59485         * lib/uniconv/u32-strconv-from-enc.c: New file.
59486         * modules/uniconv/u32-strconv-from-enc-tests: New file.
59487         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
59488
59489         * modules/uniconv/u16-strconv-from-enc: New file.
59490         * lib/uniconv/u16-strconv-from-enc.c: New file.
59491         * modules/uniconv/u16-strconv-from-enc-tests: New file.
59492         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
59493
59494         * modules/uniconv/u8-strconv-from-enc: New file.
59495         * lib/uniconv/u8-strconv-from-enc.c: New file.
59496         * lib/uniconv/u-strconv-from-enc.h: New file.
59497         * modules/uniconv/u8-strconv-from-enc-tests: New file.
59498         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
59499
59500         * modules/uniconv/u32-conv-from-enc: New file.
59501         * lib/uniconv/u32-conv-from-enc.c: New file.
59502         * modules/uniconv/u32-conv-from-enc-tests: New file.
59503         * tests/uniconv/test-u32-conv-from-enc.c: New file.
59504
59505         * modules/uniconv/u16-conv-from-enc: New file.
59506         * lib/uniconv/u16-conv-from-enc.c: New file.
59507         * lib/uniconv/u-conv-from-enc.h: New file.
59508         * modules/uniconv/u16-conv-from-enc-tests: New file.
59509         * tests/uniconv/test-u16-conv-from-enc.c: New file.
59510
59511         * modules/uniconv/u8-conv-from-enc: New file.
59512         * lib/uniconv/u8-conv-from-enc.c: New file.
59513         * modules/uniconv/u8-conv-from-enc-tests: New file.
59514         * tests/uniconv/test-u8-conv-from-enc.c: New file.
59515
59516         * modules/uniconv/base: New file.
59517         * lib/uniconv.h: New file.
59518
59519 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         * doc/gnulib-tool.texi (Initial import): Update to match current
59522         behavior with strdup module.
59523         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
59524         * lib/memmem.h: Remove; all uses removed.  This is now done
59525         by <string.h>.
59526         * lib/mempcpy.h: Likewise.
59527         * lib/memrchr.h: Likewise.
59528         * lib/stpcpy.h: Likewise.
59529         * lib/stpncpy.h: Likewise.
59530         * lib/strcase.h: Likewise.
59531         * lib/strchrnul.h: Likewise.
59532         * lib/strdup.h: Likewise.
59533         * lib/strndup.h: Likewise.
59534         * lib/strnlen.h: Likewise.
59535         * lib/strpbrk.h: Likewise.
59536         * lib/strsep.h: Likewise.
59537         * lib/strstr.h: Likewise.
59538         * lib/strtok_r.h: Likewise.
59539         * lib/string_.h: New file.
59540         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
59541         Rely on <string.h> instead.
59542         * lib/canon-host.c: Likewise.
59543         * lib/chdir-long.c: Likewise.
59544         * lib/concatpath.c: Likewise.
59545         * lib/exclude.c: Likewise.
59546         * lib/fchdir.c: Likewise.
59547         * lib/getaddrinfo.c: Likewise.
59548         * lib/getcwd.c: Likewise.
59549         * lib/getsubopt.c: Likewise.
59550         * lib/glob.c: Likewise.
59551         * lib/hard-locale.c: Likewise.
59552         * lib/iconvme.c: Likewise.
59553         * lib/javacomp.c: Likewise.
59554         * lib/mempcpy.c: Likewise.
59555         * lib/memrchr.c: Likewise.
59556         * lib/regex_internal.h: Likewise.
59557         * lib/stpncpy.c: Likewise.
59558         * lib/strcasecmp.c: Likewise.
59559         * lib/strchrnul.c: Likewise.
59560         * lib/strdup.c: Likewise.
59561         * lib/striconv.c: Likewise.
59562         * lib/striconveh.c: Likewise.
59563         * lib/striconveha.c: Likewise.
59564         * lib/strncasecmp.c: Likewise.
59565         * lib/strndup.c: Likewise.
59566         * lib/strnlen.c: Likewise.
59567         * lib/strsep.c: Likewise.
59568         * lib/strstr.c: Likewise.
59569         * lib/strtok_r.c: Likewise.
59570         * lib/userspec.c: Likewise.
59571         * lib/w32spawn.h: Likewise.
59572         * lib/xstrndup.c: Likewise.
59573         * lib/mountlist.c (strstr): Remove decl.
59574         * m4/string_h.m4: New file.
59575         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
59576         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
59577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
59578         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
59579         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
59580         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
59581         Set REPLACE_STRCASECMP if necessary.
59582         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
59583         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
59584         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
59585         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
59586         HAVE_DECL_STRDUP if necessary.
59587         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
59588         since gl_FUNC_STRNDUP does that now.
59589         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
59590         Check for decl here...
59591         (gl_PREREQ_STRNLEN): ... not here.
59592         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
59593         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
59594         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
59595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
59596         necessary.
59597         * modules/string: New file.
59598         * modules/memmem (Files): Remove special-purpose include file.
59599         (Depends-on): Add string.
59600         (Include): Include <string.h>, not the removed file.
59601         * modules/mempcpy: Likewise.
59602         * modules/memrchr: Likewise.
59603         * modules/stpcpy: Likewise.
59604         * modules/stpncpy: Likewise.
59605         * modules/strcase: Likewise.
59606         * modules/strchrnul: Likewise.
59607         * modules/strdup: Likewise.
59608         * modules/strndup: Likewise.
59609         * modules/strnlen: Likewise.
59610         * modules/strpbrk: Likewise.
59611         * modules/strsep: Likewise.
59612         * modules/strstr: Likewise.
59613         * modules/strtok_r: Likewise.
59614         * tests/test-dirname.c: Don't include "strdup.h", since
59615         <string.h> now suffices.
59616         * tests/test-memmem.c: Don't include "memmem.h", since
59617         <string.h> now suffices.
59618
59619 2007-01-25  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
59622         *resultp is 0.
59623
59624         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
59625         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
59626         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
59627         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
59628
59629         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
59630         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
59631         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
59632         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
59633         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
59634         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
59635
59636 2007-01-24  Bruno Haible  <bruno@clisp.org>
59637
59638         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
59639         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
59640         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
59641         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
59642         gl_FUNC_FTS_CORE.
59643         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
59644         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
59645         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59646         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
59647         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
59648         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
59649         gl_FUNC_FCHOWNAT.
59650         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
59651         gl_FUNC_STRFTIME.
59652         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
59653         Reported by Ralf Wildenhues.
59654
59655 2007-01-24  Bruno Haible  <bruno@clisp.org>
59656
59657         Drop AC_REQUIRE calls that are redundant with the module dependencies.
59658         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
59659         gl_GETADDRINFO.
59660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
59661         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
59662         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
59663
59664 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
59667         Don't use 'exit'; just return from 'main'.
59668         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
59669
59670         * lib/fnmatch_.h: Readjust white space and comments to match
59671         glibc, to avoid spurious diffs.
59672
59673 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
59676         2004-12-01 change by Jakub Jelinek, since this code won't compile
59677         if !LIBC.  Problem reported by Bob Proulx.
59678
59679 2007-01-23  Bruno Haible  <bruno@clisp.org>
59680
59681         * lib/striconveh.c: Include c-strcaseeq.h.
59682         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
59683         * modules/striconveh (Depends-on): Add c-strcaseeq.
59684
59685 2007-01-23  Bruno Haible  <bruno@clisp.org>
59686
59687         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
59688
59689         * modules/c-strcaseeq: New file.
59690         * lib/c-strcaseeq.h: New file.
59691
59692         * modules/streq: New file.
59693         * lib/streq.h: New file.
59694
59695 2007-01-23  Bruno Haible  <bruno@clisp.org>
59696
59697         * modules/striconveha-tests: New file.
59698         * tests/test-striconveha.c: New file.
59699
59700         * lib/striconveha.h: Include <stdbool.h>.
59701         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
59702         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
59703         (mem_iconveha_notranslit): Renamed from mem_iconveha.
59704         (mem_iconveha): New function.
59705         (str_iconveha_notranslit): Renamed from str_iconveha.
59706         (str_iconveha): New function.
59707         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
59708         c-strcase.
59709
59710 2007-01-23  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
59713         encodings without forgiving before trying any encoding with handler.
59714         (str_iconveha): Try all encodings without forgiving before trying any
59715         encoding with handler.
59716
59717 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         Import the following changes from libc.
59720
59721         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59722
59723         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
59724
59725         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59726
59727         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
59728         normal_bracket label.
59729
59730         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
59731
59732         [BZ #361]
59733         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
59734         to normal_bracket after fetching the next character.
59735
59736 2007-01-22  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
59739         argument.
59740         * lib/striconveh.c (iconv_carefully_1): New function.
59741         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
59742         argument.
59743         (str_cd_iconveh): Update.
59744         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
59745         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
59746         * tests/test-striconveh.c (MAGIC): New macro.
59747         (new_offsets): New function.
59748         (main): Test call with and without offsets.
59749
59750 2007-01-22  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
59753         * modules/sys_select (Makefile.am): Likewise.
59754         * modules/sys_socket (Makefile.am): Likewise.
59755         * modules/sys_time (Makefile.am): Likewise.
59756
59757 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * modules/gettimeofday (License): Change from GPL to LGPL, since
59760         gettimeofday is a library function.
59761
59762 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59763
59764         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
59765
59766 2007-01-21  Bruno Haible  <bruno@clisp.org>
59767
59768         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
59769
59770 2007-01-21  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/striconveha: New file.
59773         * lib/striconveha.h: New file.
59774         * lib/striconveha.c: New file.
59775         * MODULES.html.sh (Internationalization functions): Add striconveha.
59776         * lib/striconv.c (str_iconv): Optimize the case of an empty input
59777         string.
59778         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
59779
59780 2007-01-21  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
59783         * lib/striconveh.c (str_iconveh): Likewise.
59784
59785 2007-01-21  Bruno Haible  <bruno@clisp.org>
59786
59787         * lib/striconveh.h (mem_iconveh): New declaration.
59788         * lib/striconveh.c (mem_iconveh): New function.
59789         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
59790
59791 2007-01-21  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
59794
59795         * lib/striconveh.h (mem_cd_iconveh): Change specification.
59796         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
59797         original result buffer.
59798         (str_cd_iconveh): Update.
59799         * tests/test-striconveh.c (main): Update.
59800
59801         * lib/striconv.h (mem_cd_iconv): Change specification.
59802         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
59803         result buffer.
59804         (str_cd_iconv): Update.
59805         * tests/test-striconv.c (main): Update.
59806
59807 2007-01-21  Bruno Haible  <bruno@clisp.org>
59808
59809         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
59810
59811 2007-01-20  Jim Meyering  <jim@meyering.net>
59812
59813         * lib/userspec.c (parse_with_separator): If a user or group string
59814         starts with "+", skip the corresponding name-to-ID look-up, since
59815         such a look-up must fail: user and group names may not include "+".
59816
59817 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         * lib/poll.c: Include sys/time.h and time.h unconditionally,
59820         since we now assume the sys_time module.
59821         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
59822         check for sys/time.h; no longer needed.
59823         * modules/poll (Depends-on): Depend on sys_time.
59824
59825 2007-01-18  Bruno Haible  <bruno@clisp.org>
59826
59827         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
59828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59829
59830         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
59831         gettimeofday.
59832
59833         * tests/test-gettimeofday.c: Include <time.h>.
59834         (dummy): Remove variable.
59835
59836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
59837         gl_HEADER_SYS_TIME_H.
59838         (gl_HEADER_SYS_TIME_H): New macro.
59839
59840         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
59841         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
59843         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
59844         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
59846         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
59847         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59848         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
59849         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
59850         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59851
59852         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
59853         last change; it caused a compilation error when cross-compiling to
59854         Cygwin.
59855
59856 2007-01-18  Jim Meyering  <jim@meyering.net>
59857
59858         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
59859         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
59860         than the race-prone "test -d sys || mkdir sys".
59861         (configure.ac): Use AC_PROG_MKDIR_P.
59862         * modules/sys_select: Likewise.
59863         * modules/sys_socket: Likewise.
59864         * modules/sys_time: Likewise.
59865
59866 2007-01-18  Eric Blake  <ebb9@byu.net>
59867
59868         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
59869         replace gettimeofday.
59870         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
59871         name, to avoid infinite recursion.
59872
59873 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
59874
59875         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
59876         module sys_time.
59877         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
59878         assume timespec.h defines struct timeval.
59879         * lib/settime.c: Likewise.
59880         * lib/utimens.c: Likewise.
59881         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
59882         since we now assume the gettimeofday module.
59883         * lib/tempname.c (__gen_tempname): Likewise.
59884         * lib/gettimeofday.h: Remove.
59885         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
59886         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
59887         Include <time.h>, for 'time()'.
59888         (localtime_buffer_addr): Also use this workaround if
59889         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
59890         to simplify the uses.  All uses changed.
59891         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
59892         that #undef is inside {}, and 'const' follows type name consistently.
59893         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
59894         (gettimeofday): Do not use the maximum possible value for
59895         tv->tv_usec, since that might break usages other than ls.c.
59896         Instead, we'll leave ls.c alone.  This undoes today's patch
59897         by Bruno.  Add a compile-time warning for 1s-clock resolution;
59898         we've never observed the problem but might as well keep the
59899         canary.
59900         * lib/nanosleep.c: Include timespec.h first, for interface check.
59901         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
59902         now assume the sys_time module.
59903         * lib/tempname.c: Likewise.
59904         * lib/timespec.h: Likewise.
59905         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
59906         needed.
59907         * lib/strftime.c: Likewise.
59908         * lib/timespec.h: Likewise.
59909         * lib/posixtm.c: Include posixtm.h first, for interface check.
59910         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
59911         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
59912         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
59913         * lib/sys_time_.h: New file.
59914         * lib/timespec.h (struct timespec): Use long int, not long.
59915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59916         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
59917         Remove obsolescent call to AC_HEADER_TIME.
59918         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
59921         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
59922         Likewise.
59923         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
59924         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
59925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
59926         into the sys_time module.  Check for gettimeofday just once.
59927         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
59928         for gettimeofday signature to just check the signature.  Merely
59929         compile it, since linking doesn't test signature.  Improve test for
59930         whether gettimeofday.o is actually needed.
59931         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
59932         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
59933         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
59934         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59935         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
59936         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
59937         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
59938         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
59939         than worrying about sys/time.h.
59940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59941         Don't bother worrying about TIME_WITH_SYS_TIME.
59942         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59943         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
59944         * m4/sys_time_h.m4: New file.
59945         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
59946         Don't include sys/time.h.  Return from main rather than exiting.
59947         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
59948         all uses changed.
59949         * modules/gethrxtime (Depends-on): Add sys_time.
59950         * modules/gettime (Depends-on): Likewise.
59951         * modules/gettimeofday (Depends-on): Likewise.
59952         * modules/nanosleep (Depends-on): Likewise.
59953         * modules/settime (Depends-on): Likewise.
59954         * modules/tempname (Depends-on): Likewise.
59955         * modules/utimens (Depends-on): Likewise.
59956         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
59957         (Include): Change back to <sys/time.h>.
59958         (Maintainer): Add self.
59959         * modules/sys_time: New file.
59960         * modules/tempname (Depends-on): Add gettimeofday.
59961         * tests/test-gettimeofday.c: Include <sys/time.h>
59962         rather than gettimeofday.h.
59963
59964 2007-01-17  Bruno Haible  <bruno@clisp.org>
59965
59966         * gnulib-tool (func_get_license): Revert last patch. Instead, let
59967         the license default to GPL.
59968         (func_create_testdir): Don't complain if a module is LGPL and its
59969         tests module depends on GPLed modules.
59970
59971 2007-01-17  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/gettimeofday.c (gettimeofday): Add code for the case
59974         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
59975         maximum possible value for tv->tv_usec, rather than the minimum one.
59976
59977 2005-10-08  Martin Lambers  <marlam@marlam.de>
59978 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59979 2007-01-16  Bruno Haible  <bruno@clisp.org>
59980
59981         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
59982         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
59983         gl_FUNC_GETTIMEOFDAY.
59984         (Include): Add gettimeofday.h.
59985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
59986         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
59987         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
59988         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
59989         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
59990         * lib/gettimeofday.h: New file.
59991         * lib/gettimeofday.c: Include <sys/timeb.h>.
59992         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
59993         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
59994         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
59995         fall back on time().
59996
59997         * tests/test-gettimeofday.c: New file.
59998         * modules/gettimeofday-tests: New file.
59999
60000 2007-01-16  Eric Blake  <ebb9@byu.net>
60001
60002         * modules/fnmatch (Depends-on): Depend on wchar.
60003         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60004         * m4/fnmatch.m4: Likewise.
60005         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60006         * m4/mbchar.m4: Likewise.
60007         * modules/mbswidth (Depends-on): Depend on wchar.
60008         * lib/mbswidth.c: Assume <wchar.h>.
60009         * m4/mbswidth.m4: Likewise.
60010         * modules/quotearg (Depends-on): Depend on wchar.
60011         * lib/quotearg.c: Assume <wchar.h>.
60012         * m4/quotearg.m4: Likewise.
60013         * modules/regex (Depends-on): Depend on wchar.
60014         * lib/regex_internal.h: Assume <wchar.h>.
60015         * m4/regex.m4: Likewise.
60016         * modules/stdint (Depends-on): Depend on wchar.
60017         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60018         * m4/stdint.m4: Likewise.
60019         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60020         * modules/strftime (Depends-on): Depend on wchar.
60021         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60022         * modules/strtol (Depends-on): Depend on wchar.
60023         * lib/strtol.c: Assume <wchar.h>.
60024         * modules/wcwidth (Depends-on): Depend on wchar.
60025         * lib/wcwidth.h: Assume <wchar.h>.
60026         * m4/wcwidth.m4: Likewise.
60027
60028 2007-01-16  Bruno Haible  <bruno@clisp.org>
60029
60030         * modules/csharpexec-script: New, created from...
60031         * modules/csharpexec: ... this.
60032
60033 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60034
60035         * modules/javaexec-script: New, created from...
60036         * modules/javaexec: ... this.
60037
60038 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60039
60040         * modules/poll (Dependencies): Add sys_select.
60041
60042 2007-01-15  Jim Meyering  <jim@meyering.net>
60043
60044         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60045         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60046         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60047         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60048
60049 2007-01-15  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/striconveh: New file.
60052         * lib/striconveh.h: New file.
60053         * lib/striconveh.c: New file.
60054         * MODULES.html.sh (Internationalization functions): Add striconveh.
60055
60056         * modules/striconveh-tests: New file.
60057         * tests/test-striconveh.c: New file.
60058
60059 2007-01-15  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60062         not from GNU libiconv or GNU libc.
60063
60064 2007-01-15  Bruno Haible  <bruno@clisp.org>
60065
60066         * doc/gnulib-intro.texi (Copyright): Explain the different license
60067         terms for module descriptions, autoconf macros, tests, documentation.
60068
60069 2007-01-14  Bruno Haible  <bruno@clisp.org>
60070
60071         * modules/striconv-tests: New file.
60072         * tests/test-striconv.c: New file.
60073
60074 2007-01-14  Bruno Haible  <bruno@clisp.org>
60075
60076         * modules/iconv-tests: New file.
60077         * tests/test-iconv.c: New file.
60078
60079 2007-01-14  Bruno Haible  <bruno@clisp.org>
60080
60081         * gnulib-tool (func_get_license): For test modules, use the license of
60082         the main module.
60083
60084 2007-01-14  Bruno Haible  <bruno@clisp.org>
60085
60086         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60087         if iconv is found to exist.
60088
60089 2007-01-14  Bruno Haible  <bruno@clisp.org>
60090
60091         * modules/c-ctype-tests: New file.
60092         * tests/test-c-ctype.c: New file.
60093
60094 2007-01-14  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/binary-io-tests: New file.
60097         * tests/test-binary-io.sh: New file.
60098         * tests/test-binary-io.c: New file.
60099
60100 2007-01-14  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/array-oset-tests: New file.
60103         * tests/test-array_oset.c: New file.
60104
60105 2007-01-14  Bruno Haible  <bruno@clisp.org>
60106
60107         * modules/array-list-tests: New file.
60108         * tests/test-array_list.c: New file.
60109
60110 2007-01-14  Bruno Haible  <bruno@clisp.org>
60111
60112         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60113         and make.
60114         Reported by Simon Josefsson in
60115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60116
60117 2007-01-14  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/allocsa-tests: New file.
60120         * tests/test-allocsa.c: New file.
60121
60122 2007-01-14  Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/fchdir (Depends-on): Add absolute-header.
60125         * modules/unistd (Depends-on): Likewise.
60126
60127 2006-12-30  Bruno Haible  <bruno@clisp.org>
60128
60129         * modules/fchdir: New file.
60130         * modules/unistd (Files): Add lib/unistd_.h.
60131         (Makefile.am): Generate unistd.h from unistd_.h.
60132         * lib/fchdir.c: New file.
60133         * lib/dirent_.h: New file.
60134         * lib/unistd_.h: New file.
60135         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60136         * m4/fchdir.m4: New file.
60137         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60138         (gl_HEADER_UNISTD): Invoke it.
60139         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60140         function.
60141         * lib/backupfile.c (opendir, closedir): Undefine.
60142         * lib/chown.c (open, close): Undefine.
60143         * lib/clean-temp.c (open, close): Undefine.
60144         * lib/copy-file.c (open, close): Undefine.
60145         * lib/execute.c (open, close): Undefine.
60146         * lib/fsusage.c (open, close): Undefine.
60147         * lib/gc-gnulib.c (open, close): Undefine.
60148         * lib/getcwd.c (opendir, closedir): Undefine.
60149         * lib/glob.c (opendir, closedir): Undefine.
60150         * lib/javacomp.c (open, close): Undefine.
60151         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60152         * lib/openat-proc.c (open, close): Undefine.
60153         * lib/pagealign_alloc.c (open, close): Undefine.
60154         * lib/pipe.c (open, close): Undefine.
60155         * lib/progreloc.c (open, close): Undefine.
60156         * lib/savedir.c (opendir, closedir): Undefine.
60157         * lib/utime.c (open, close): Undefine.
60158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60159
60160 2007-01-10  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60163
60164 2007-01-12  Eric Blake  <ebb9@byu.net>
60165
60166         Provide a robust <wchar.h>.  Further simplifications are now
60167         possible in other modules, but not included here.
60168         * modules/wchar: New module.
60169         * m4/wchar.m4: New file.
60170         * lib/wchar_.h: Likewise.
60171         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60172         of the new module.
60173         * MODULES.html.sh (Extended multibyte and wide character utilities):
60174         New section.
60175
60176 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60177
60178         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60179         to a reasonable default for memory allocation.
60180         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60181         file system that reports garbage st_size values for symlinks.
60182         Problem reported by Liyang Hu.
60183
60184 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60185
60186         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60187         Emacs .#* auto-save files).
60188
60189 2007-01-11  Bruno Haible  <bruno@clisp.org>
60190
60191         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60192         directory.
60193
60194 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         Use @...@ consistently in lib/wctype_.h.
60197         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60198         on it being set to 1 or 0.
60199         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60200         go back to AC_SUBSTing it.
60201         * modules/wctype (Makefile.am): Undo previous change.
60202
60203 2007-01-10  Eric Blake  <ebb9@byu.net>
60204
60205         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60206         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60207         * modules/wctype (Makefile.am): Likewise.
60208         Reported by Chris McGuire.
60209
60210 2007-01-10  Jim Meyering  <jim@meyering.net>
60211
60212         fts.c: a small readability/maintainability improvement
60213         * lib/fts.c (fts_read): Make this code slightly more readable and
60214         maintainable by hoisting the "sp->fts_cur = p" assignments to
60215         immediately follow the statements that set P.  Derived from
60216         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60217
60218 2007-01-10  Eric Blake  <ebb9@byu.net>
60219
60220         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60221         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60223         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60224         Reported by Chris McGuire.
60225
60226 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60227
60228         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60229         in sed script.
60230
60231 2007-01-09  Bruno Haible  <bruno@clisp.org>
60232
60233         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60234         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60235         variables.
60236         (func_module): Use them.
60237
60238 2007-01-09  Bruno Haible  <bruno@clisp.org>
60239
60240         * modules/unistr/base: New file.
60241         * lib/unistr.h: New file.
60242
60243         * modules/unistr/u8-to-u16: New file.
60244         * lib/unistr/u8-to-u16.c: New file.
60245
60246         * modules/unistr/u8-to-u32: New file.
60247         * lib/unistr/u8-to-u32.c: New file.
60248
60249         * modules/unistr/u16-to-u8: New file.
60250         * lib/unistr/u16-to-u8.c: New file.
60251
60252         * modules/unistr/u16-to-u32: New file.
60253         * lib/unistr/u16-to-u32.c: New file.
60254
60255         * modules/unistr/u32-to-u8: New file.
60256         * lib/unistr/u32-to-u8.c: New file.
60257
60258         * modules/unistr/u32-to-u16: New file.
60259         * lib/unistr/u32-to-u16.c: New file.
60260
60261         * modules/unistr/u8-check: New file.
60262         * modules/unistr/u16-check: New file.
60263         * modules/unistr/u32-check: New file.
60264         * lib/unistr/u8-check.c: New file.
60265         * lib/unistr/u16-check.c: New file.
60266         * lib/unistr/u32-check.c: New file.
60267
60268         * modules/unistr/u8-chr: New file.
60269         * modules/unistr/u16-chr: New file.
60270         * modules/unistr/u32-chr: New file.
60271         * lib/unistr/u8-chr.c: New file.
60272         * lib/unistr/u16-chr.c: New file.
60273         * lib/unistr/u32-chr.c: New file.
60274
60275         * modules/unistr/u8-cmp: New file.
60276         * modules/unistr/u16-cmp: New file.
60277         * modules/unistr/u32-cmp: New file.
60278         * lib/unistr/u8-cmp.c: New file.
60279         * lib/unistr/u16-cmp.c: New file.
60280         * lib/unistr/u32-cmp.c: New file.
60281
60282         * modules/unistr/u8-cpy: New file.
60283         * modules/unistr/u16-cpy: New file.
60284         * modules/unistr/u32-cpy: New file.
60285         * lib/unistr/u8-cpy.c: New file.
60286         * lib/unistr/u16-cpy.c: New file.
60287         * lib/unistr/u32-cpy.c: New file.
60288         * lib/unistr/u-cpy.h: New file.
60289
60290         * modules/unistr/u8-cpy-alloc: New file.
60291         * modules/unistr/u16-cpy-alloc: New file.
60292         * modules/unistr/u32-cpy-alloc: New file.
60293         * lib/unistr/u8-cpy-alloc.c: New file.
60294         * lib/unistr/u16-cpy-alloc.c: New file.
60295         * lib/unistr/u32-cpy-alloc.c: New file.
60296         * lib/unistr/u-cpy-alloc.h: New file.
60297
60298         * modules/unistr/u8-endswith: New file.
60299         * modules/unistr/u16-endswith: New file.
60300         * modules/unistr/u32-endswith: New file.
60301         * lib/unistr/u8-endswith.c: New file.
60302         * lib/unistr/u16-endswith.c: New file.
60303         * lib/unistr/u32-endswith.c: New file.
60304         * lib/unistr/u-endswith.h: New file.
60305
60306         * modules/unistr/u8-mblen: New file.
60307         * modules/unistr/u16-mblen: New file.
60308         * modules/unistr/u32-mblen: New file.
60309         * lib/unistr/u8-mblen.c: New file.
60310         * lib/unistr/u16-mblen.c: New file.
60311         * lib/unistr/u32-mblen.c: New file.
60312
60313         * modules/unistr/u8-mbtouc: New file.
60314         * modules/unistr/u16-mbtouc: New file.
60315         * modules/unistr/u32-mbtouc: New file.
60316         * lib/unistr/u8-mbtouc.c: New file.
60317         * lib/unistr/u16-mbtouc.c: New file.
60318         * lib/unistr/u32-mbtouc.c: New file.
60319
60320         * modules/unistr/u8-mbtouc-safe: New file.
60321         * modules/unistr/u16-mbtouc-safe: New file.
60322         * modules/unistr/u32-mbtouc-safe: New file.
60323         * lib/unistr/u8-mbtouc-safe.c: New file.
60324         * lib/unistr/u16-mbtouc-safe.c: New file.
60325         * lib/unistr/u32-mbtouc-safe.c: New file.
60326
60327         * modules/unistr/u8-move: New file.
60328         * modules/unistr/u16-move: New file.
60329         * modules/unistr/u32-move: New file.
60330         * lib/unistr/u8-move.c: New file.
60331         * lib/unistr/u16-move.c: New file.
60332         * lib/unistr/u32-move.c: New file.
60333         * lib/unistr/u-move.h: New file.
60334
60335         * modules/unistr/u8-next: New file.
60336         * modules/unistr/u16-next: New file.
60337         * modules/unistr/u32-next: New file.
60338         * lib/unistr/u8-next.c: New file.
60339         * lib/unistr/u16-next.c: New file.
60340         * lib/unistr/u32-next.c: New file.
60341
60342         * modules/unistr/u8-prev: New file.
60343         * modules/unistr/u16-prev: New file.
60344         * modules/unistr/u32-prev: New file.
60345         * lib/unistr/u8-prev.c: New file.
60346         * lib/unistr/u16-prev.c: New file.
60347         * lib/unistr/u32-prev.c: New file.
60348
60349         * modules/unistr/u8-set: New file.
60350         * modules/unistr/u16-set: New file.
60351         * modules/unistr/u32-set: New file.
60352         * lib/unistr/u8-set.c: New file.
60353         * lib/unistr/u16-set.c: New file.
60354         * lib/unistr/u32-set.c: New file.
60355         * lib/unistr/u-set.h: New file.
60356
60357         * modules/unistr/u8-startswith: New file.
60358         * modules/unistr/u16-startswith: New file.
60359         * modules/unistr/u32-startswith: New file.
60360         * lib/unistr/u8-startswith.c: New file.
60361         * lib/unistr/u16-startswith.c: New file.
60362         * lib/unistr/u32-startswith.c: New file.
60363         * lib/unistr/u-startswith.h: New file.
60364
60365         * modules/unistr/u8-stpcpy: New file.
60366         * modules/unistr/u16-stpcpy: New file.
60367         * modules/unistr/u32-stpcpy: New file.
60368         * lib/unistr/u8-stpcpy.c: New file.
60369         * lib/unistr/u16-stpcpy.c: New file.
60370         * lib/unistr/u32-stpcpy.c: New file.
60371         * lib/unistr/u-stpcpy.h: New file.
60372
60373         * modules/unistr/u8-stpncpy: New file.
60374         * modules/unistr/u16-stpncpy: New file.
60375         * modules/unistr/u32-stpncpy: New file.
60376         * lib/unistr/u8-stpncpy.c: New file.
60377         * lib/unistr/u16-stpncpy.c: New file.
60378         * lib/unistr/u32-stpncpy.c: New file.
60379         * lib/unistr/u-stpncpy.h: New file.
60380
60381         * modules/unistr/u8-strcat: New file.
60382         * modules/unistr/u16-strcat: New file.
60383         * modules/unistr/u32-strcat: New file.
60384         * lib/unistr/u8-strcat.c: New file.
60385         * lib/unistr/u16-strcat.c: New file.
60386         * lib/unistr/u32-strcat.c: New file.
60387         * lib/unistr/u-strcat.h: New file.
60388
60389         * modules/unistr/u8-strchr: New file.
60390         * modules/unistr/u16-strchr: New file.
60391         * modules/unistr/u32-strchr: New file.
60392         * lib/unistr/u8-strchr.c: New file.
60393         * lib/unistr/u16-strchr.c: New file.
60394         * lib/unistr/u32-strchr.c: New file.
60395
60396         * modules/unistr/u8-strcmp: New file.
60397         * modules/unistr/u16-strcmp: New file.
60398         * modules/unistr/u32-strcmp: New file.
60399         * lib/unistr/u8-strcmp.c: New file.
60400         * lib/unistr/u16-strcmp.c: New file.
60401         * lib/unistr/u32-strcmp.c: New file.
60402
60403         * modules/unistr/u8-strcpy: New file.
60404         * modules/unistr/u16-strcpy: New file.
60405         * modules/unistr/u32-strcpy: New file.
60406         * lib/unistr/u8-strcpy.c: New file.
60407         * lib/unistr/u16-strcpy.c: New file.
60408         * lib/unistr/u32-strcpy.c: New file.
60409         * lib/unistr/u-strcpy.h: New file.
60410
60411         * modules/unistr/u8-strcspn: New file.
60412         * modules/unistr/u16-strcspn: New file.
60413         * modules/unistr/u32-strcspn: New file.
60414         * lib/unistr/u8-strcspn.c: New file.
60415         * lib/unistr/u16-strcspn.c: New file.
60416         * lib/unistr/u32-strcspn.c: New file.
60417         * lib/unistr/u-strcspn.h: New file.
60418
60419         * modules/unistr/u8-strdup: New file.
60420         * modules/unistr/u16-strdup: New file.
60421         * modules/unistr/u32-strdup: New file.
60422         * lib/unistr/u8-strdup.c: New file.
60423         * lib/unistr/u16-strdup.c: New file.
60424         * lib/unistr/u32-strdup.c: New file.
60425         * lib/unistr/u-strdup.h: New file.
60426
60427         * modules/unistr/u8-strlen: New file.
60428         * modules/unistr/u16-strlen: New file.
60429         * modules/unistr/u32-strlen: New file.
60430         * lib/unistr/u8-strlen.c: New file.
60431         * lib/unistr/u16-strlen.c: New file.
60432         * lib/unistr/u32-strlen.c: New file.
60433         * lib/unistr/u-strlen.h: New file.
60434
60435         * modules/unistr/u8-strmblen: New file.
60436         * modules/unistr/u16-strmblen: New file.
60437         * modules/unistr/u32-strmblen: New file.
60438         * lib/unistr/u8-strmblen.c: New file.
60439         * lib/unistr/u16-strmblen.c: New file.
60440         * lib/unistr/u32-strmblen.c: New file.
60441
60442         * modules/unistr/u8-strmbtouc: New file.
60443         * modules/unistr/u16-strmbtouc: New file.
60444         * modules/unistr/u32-strmbtouc: New file.
60445         * lib/unistr/u8-strmbtouc.c: New file.
60446         * lib/unistr/u16-strmbtouc.c: New file.
60447         * lib/unistr/u32-strmbtouc.c: New file.
60448
60449         * modules/unistr/u8-strncat: New file.
60450         * modules/unistr/u16-strncat: New file.
60451         * modules/unistr/u32-strncat: New file.
60452         * lib/unistr/u8-strncat.c: New file.
60453         * lib/unistr/u16-strncat.c: New file.
60454         * lib/unistr/u32-strncat.c: New file.
60455         * lib/unistr/u-strncat.h: New file.
60456
60457         * modules/unistr/u8-strncmp: New file.
60458         * modules/unistr/u16-strncmp: New file.
60459         * modules/unistr/u32-strncmp: New file.
60460         * lib/unistr/u8-strncmp.c: New file.
60461         * lib/unistr/u16-strncmp.c: New file.
60462         * lib/unistr/u32-strncmp.c: New file.
60463
60464         * modules/unistr/u8-strncpy: New file.
60465         * modules/unistr/u16-strncpy: New file.
60466         * modules/unistr/u32-strncpy: New file.
60467         * lib/unistr/u8-strncpy.c: New file.
60468         * lib/unistr/u16-strncpy.c: New file.
60469         * lib/unistr/u32-strncpy.c: New file.
60470         * lib/unistr/u-strncpy.h: New file.
60471
60472         * modules/unistr/u8-strnlen: New file.
60473         * modules/unistr/u16-strnlen: New file.
60474         * modules/unistr/u32-strnlen: New file.
60475         * lib/unistr/u8-strnlen.c: New file.
60476         * lib/unistr/u16-strnlen.c: New file.
60477         * lib/unistr/u32-strnlen.c: New file.
60478         * lib/unistr/u-strnlen.h: New file.
60479
60480         * modules/unistr/u8-strpbrk: New file.
60481         * modules/unistr/u16-strpbrk: New file.
60482         * modules/unistr/u32-strpbrk: New file.
60483         * lib/unistr/u8-strpbrk.c: New file.
60484         * lib/unistr/u16-strpbrk.c: New file.
60485         * lib/unistr/u32-strpbrk.c: New file.
60486         * lib/unistr/u-strpbrk.h: New file.
60487
60488         * modules/unistr/u8-strrchr: New file.
60489         * modules/unistr/u16-strrchr: New file.
60490         * modules/unistr/u32-strrchr: New file.
60491         * lib/unistr/u8-strrchr.c: New file.
60492         * lib/unistr/u16-strrchr.c: New file.
60493         * lib/unistr/u32-strrchr.c: New file.
60494
60495         * modules/unistr/u8-strspn: New file.
60496         * modules/unistr/u16-strspn: New file.
60497         * modules/unistr/u32-strspn: New file.
60498         * lib/unistr/u8-strspn.c: New file.
60499         * lib/unistr/u16-strspn.c: New file.
60500         * lib/unistr/u32-strspn.c: New file.
60501         * lib/unistr/u-strspn.h: New file.
60502
60503         * modules/unistr/u8-strstr: New file.
60504         * modules/unistr/u16-strstr: New file.
60505         * modules/unistr/u32-strstr: New file.
60506         * lib/unistr/u8-strstr.c: New file.
60507         * lib/unistr/u16-strstr.c: New file.
60508         * lib/unistr/u32-strstr.c: New file.
60509         * lib/unistr/u-strstr.h: New file.
60510
60511         * modules/unistr/u8-strtok: New file.
60512         * modules/unistr/u16-strtok: New file.
60513         * modules/unistr/u32-strtok: New file.
60514         * lib/unistr/u8-strtok.c: New file.
60515         * lib/unistr/u16-strtok.c: New file.
60516         * lib/unistr/u32-strtok.c: New file.
60517         * lib/unistr/u-strtok.h: New file.
60518
60519         * modules/unistr/u8-uctomb: New file.
60520         * modules/unistr/u16-uctomb: New file.
60521         * modules/unistr/u32-uctomb: New file.
60522         * lib/unistr/u8-uctomb.c: New file.
60523         * lib/unistr/u16-uctomb.c: New file.
60524         * lib/unistr/u32-uctomb.c: New file.
60525
60526         * MODULES.html.sh (Unicode string functions): Add the new modules.
60527
60528 2007-01-08  Bruno Haible  <bruno@clisp.org>
60529
60530         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
60531         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
60532         subdirectories.
60533
60534 2007-01-08  Karl Berry  <karl@gnu.org>
60535
60536         * doc/error.texi: mention that main() fns must set program_name
60537         when progname is used.
60538
60539 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
60542         WCTYPE_H is empty, for the benefit of builds from non-distclean
60543         directories.  Problem reported by Eric Blake in
60544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
60545
60546 2007-01-08  Bruno Haible  <bruno@clisp.org>
60547
60548         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
60549         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
60550         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
60551         PROVIDE_CANONICALIZE_FILENAME_MODE.
60552         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
60553
60554 2007-01-08  Bruno Haible  <bruno@clisp.org>
60555
60556         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
60557         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
60558         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
60559         * lib/fts.c: Likewise.
60560         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
60561
60562 2006-12-25  Bruno Haible  <bruno@clisp.org>
60563
60564         * modules/utf8-ucs4-safe: New file.
60565         * lib/utf8-ucs4-safe.h: New file.
60566         * lib/unistr/utf8-ucs4-safe.c: New file.
60567
60568         * modules/utf16-ucs4-safe: New file.
60569         * lib/utf16-ucs4-safe.h: New file.
60570         * lib/unistr/utf16-ucs4-safe.c: New file.
60571
60572         * MODULES.html.sh (Unicode string functions): Add the new modules.
60573
60574 2007-01-08  Bruno Haible  <bruno@clisp.org>
60575
60576         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
60577         (Depends-on): Add unitypes.
60578         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60579         (u8_mbtouc_aux): Move out to separate file.
60580         (u8_mbtouc): Use ucs4_t, uint8_t types.
60581         * lib/unistr/utf8-ucs4.c: New file.
60582
60583         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
60584         (Depends-on): Add unitypes.
60585         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
60586         (u16_mbtouc_aux): Move out to separate file.
60587         (u16_mbtouc): Use ucs4_t, uint16_t types.
60588         * lib/unistr/utf16-ucs4.c: New file.
60589
60590         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
60591         (Depends-on): Add unitypes.
60592         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
60593         (u8_uctomb_aux): Move out to separate file.
60594         (u8_uctomb): Use ucs4_t, uint8_t types.
60595         * lib/unistr/ucs4-utf8.c: New file.
60596
60597         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
60598         (Depends-on): Add unitypes.
60599         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
60600         (u16_uctomb_aux): Move out to separate file.
60601         (u16_uctomb): Use ucs4_t, uint16_t types.
60602         * lib/unistr/ucs4-utf16.c: New file.
60603
60604 2006-12-25  Bruno Haible  <bruno@clisp.org>
60605
60606         * modules/unitypes: New file.
60607         * lib/unitypes.h: New file.
60608         * MODULES.html.sh (func_all_modules): New section "Unicode string
60609         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
60610         this section. Add unitypes.
60611
60612 2007-01-08  Bruno Haible  <bruno@clisp.org>
60613
60614         Avoid variable names that conflict with those from libtool.
60615         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
60616         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
60617         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
60618         library_names_spec to acl_library_names_spec, hardcode_* to
60619         acl_hardcode_*.
60620         Reported by Ralf Wildenhues.
60621
60622 2007-01-08  Bruno Haible  <bruno@clisp.org>
60623
60624         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
60625         definition.
60626         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
60627         definition.
60628         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
60629         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
60630         definition.
60631         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
60632         definition.
60633         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
60634         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
60635         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
60636         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
60637         definition.
60638         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
60639         definition.
60640         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
60641         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
60642         GC_USE_<algorithm>.
60643         * lib/gc-libgcrypt.c: Likewise.
60644         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
60645         * modules/gc-arctwo (configure.ac): Likewise.
60646         * modules/gc-des (configure.ac): Likewise.
60647         * modules/gc-hmac-md5 (configure.ac): Likewise.
60648         * modules/gc-hmac-sha1 (configure.ac): Likewise.
60649         * modules/gc-md2 (configure.ac): Likewise.
60650         * modules/gc-md4 (configure.ac): Likewise.
60651         * modules/gc-md5 (configure.ac): Likewise.
60652         * modules/gc-random (configure.ac): Likewise.
60653         * modules/gc-rijndael (configure.ac): Likewise.
60654         * modules/gc-sha1 (configure.ac): Likewise.
60655
60656 2007-01-08  Bruno Haible  <bruno@clisp.org>
60657
60658         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
60659         macro definition.
60660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
60661         definition.
60662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
60663         definition.
60664         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
60665         * modules/fcntl-safer (configure.ac): Likewise.
60666         * modules/fopen-safer (configure.ac): Likewise.
60667         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
60668         GNULIB_FWRITEERROR macro definition.
60669
60670 2007-01-08  Bruno Haible  <bruno@clisp.org>
60671
60672         * m4/gnulib-common.m4: New file.
60673         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
60674         (func_get_filelist): Add m4/gnulib-common.m4.
60675
60676 2007-01-08  Bruno Haible  <bruno@clisp.org>
60677
60678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
60679         command.
60680
60681 2007-01-08  Jim Meyering  <jim@meyering.net>
60682
60683         Use a more robust test for a "can't happen" condition.
60684         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
60685         narrowed the st_size value.  Presuming the "can't happen" condition
60686         is true, that narrowing could conceivably convert an invalid st_size
60687         value into a valid one.  Instead, use a change based on Matthew
60688         Woehlke's original patch.
60689
60690         Slight readability improvement: use an assert-like macro
60691         in place of literal "abort ()" uses.
60692         * lib/fts.c (fts_assert): Define.
60693         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
60694         Use this macro instead of a bare 'abort'.
60695
60696 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
60697
60698         Don't worry about using IRIX 5.3's wctype.h broken definitions;
60699         simply work around them.
60700         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
60701         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
60702         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
60703         declaring.
60704         Don't bother to define as macros, since the standard doesn't require it.
60705         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
60706         longer worry about IRIX 5.3.
60707         (HAVE_WCTYPE_CTMP_BUG): Remove.
60708
60709 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60710
60711         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
60712         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
60713         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60714         Problems reported by Georg Schwarz for IRIX 5.3.
60715
60716         * gnulib-tool (autoconf_minversion): Take the maximum version number
60717         found, not the minimum.  Problem reported by James Youngman.
60718
60719 2007-01-03  Karl Berry  <karl@gnu.org>
60720
60721         * doc/error.texi: new file, explaining interaction with progname.
60722         * doc/gnulib.texi: include it.  Update copyright.
60723
60724 2007-01-03  Simon Josefsson  <simon@josefsson.org>
60725
60726         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
60727         AC_CANONICAL_HOST, to improve autobuild outputs.
60728
60729 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
60730             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60731
60732         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
60733         sockets, server sockets, and other file descriptors.  Count errors
60734         to compute the return value.  Reorder the code a bit to be easier
60735         to follow.  Don't set event bits that were not requested (except
60736         POLLERR and POLLHUP).
60737
60738 2007-01-01  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
60741
60742 2007-01-03  Jim Meyering  <jim@meyering.net>
60743
60744         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
60745
60746 2007-01-02  Bruno Haible  <bruno@clisp.org>
60747
60748         * modules/settime (Include): Require timespec.h.
60749         * modules/nanosleep (Include): Likewise.
60750
60751 2007-01-01  Bruno Haible  <bruno@clisp.org>
60752
60753         * gnulib-tool (func_emit_copyright_notice): Bump year.
60754         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
60755
60756 2007-01-01  Bruno Haible  <bruno@clisp.org>
60757
60758         Improve support for OpenBSD.
60759         * build-aux/config.rpath (libname_spec): Export.
60760         (library_names_spec): New variable. Export.
60761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
60762         library_names_spec from the config.rpath output. Locate shared library
60763         through the name pattern in library_names_spec.
60764
60765 2007-01-01  Eric Blake  <ebb9@byu.net>
60766
60767         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
60768
60769 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
60770
60771         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
60772         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
60773         assume the C locale, and avoid an "eval" that could cause trouble.
60774         Problem with SORT reported by Bob Proulx.
60775
60776         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
60777         Define.  Trivial patch from Henning Nielsen Lund, originally
60778         sent to bug-grep@gnu.org today.
60779
60780 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
60783         struct stat.  Problem reported by Henning Nielsen Lund.
60784         * lib/acl.c: Include acl.h first, to check interface.  Don't
60785         bother to include sys/types.h and sys/stat.h again.
60786
60787 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         Import the following change from libc; problem reported by
60790         Sven Verdoolaege.
60791
60792         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
60793
60794         [BZ #1373]
60795         * lib/argp.h: Remove __NTH for __argp_usage inline function.
60796
60797 2006-12-28  Jim Meyering  <jim@meyering.net>
60798
60799         * build-aux/announce-gen: Do not assume that the package
60800         builds any of tar.gz, tar.bz2, and .xdelta files.
60801         Suggestion from Simon Josefsson.
60802
60803 2006-12-28  Simon Josefsson  <simon@josefsson.org>
60804
60805         * modules/announce-gen: New file.
60806
60807 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * lib/mbchar.h: Just include <wctype.h>; the wctype module
60810         handles its gotchas now.
60811         * lib/mbswidth.c: Likewise.
60812         * lib/wcwidth.h: Likewise.
60813         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
60814         and iswcntrl; the wctype module does this stuff now.
60815         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60817         * modules/mbchar (Depends-on): Add wctype.
60818         * modules/mbswidth (Depends-on): Likewise.
60819         * modules/wcwidth (Depends-on): Likewise.
60820
60821 2006-12-27  Eric Blake  <ebb9@byu.net>
60822
60823         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
60824         module uses more than what <wctype.h> is required to provide.
60825
60826 2006-12-26  Eric Blake  <ebb9@byu.net>
60827
60828         * gnulib-tool (sed_extract_prog): Avoid space-tab.
60829
60830 2006-12-26  Eric Blake  <ebb9@byu.net>
60831
60832         * modules/absolute-header: New module.
60833         * modules/fcntl (Depends-on): Depend on it.
60834         * modules/inttypes (Depends-on): Likewise.
60835         * modules/stdint (Depends-on): Likewise.
60836         * modules/sys_stat (Depends-on): Likewise.
60837         * modules/wctype (Depends-on): Likewise.
60838         * MODULES.html.sh (Support for building libraries and
60839         executables): Document it.
60840
60841 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60842
60843         * gnulib-tool (SED): Remove, undoing previous change.
60844         The problem was that it broke coreutils on Solaris, because
60845         "sed --posix" leaked into a makefile.
60846         (sed): New alias, if 'alias' and GNU sed.
60847
60848 2006-12-24  Jim Meyering  <jim@meyering.net>
60849
60850         Work around an fchownat bug in glibc-2.4:
60851         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
60852         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
60853         in spite of the -P option.
60854         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
60855         New macros.
60856         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
60857         * modules/openat (Files): Add lib/fchownat.c.
60858         * lib/openat.c (fchownat): Don't define here.  Move to...
60859         * lib/fchownat.c: ...this new file.
60860
60861 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         Fix bug reported by Bruno Haible in
60864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
60865         where quotearg.c didn't compile on Mac OS X 10.2 because it
60866         lacks <wchar.h> and wint_t.
60867         * lib/wctype_.h (__wctype_wint_t): New type.
60868         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
60869         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
60870         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
60871         Arg is now of type __wctype_wint_t, not wint_t.
60872         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
60873         substitute HAVE_WINT_T.
60874         * modules/wctype (Files): Add m4/wint_t.m4.
60875         (wctype.h): Substitute HAVE_WINT_T.
60876
60877 2006-12-23  Bruno Haible  <bruno@clisp.org>
60878
60879         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
60880
60881 2006-12-23  Bruno Haible  <bruno@clisp.org>
60882
60883         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
60884         S_ISLNK.
60885         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
60886         mingw.
60887
60888 2006-12-22  Bruno Haible  <bruno@clisp.org>
60889
60890         * lib/copy-file.c: Include acl.h.
60891         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
60892         Close the file descriptors only after being done with copy_acl.
60893         * modules/copy-file (Depends-on): Add acl.
60894
60895 2006-12-22  Bruno Haible  <bruno@clisp.org>
60896
60897         * gnulib-tool (SED): New variable.
60898         Use $SED instead of sed everywhere.
60899
60900 2006-12-22  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/no-c++: New file.
60903         * m4/no-c++.m4: New file.
60904         * MODULES.html.sh (Support for building libraries and executables):
60905         Add no-c++.
60906
60907 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60910         Include <limits.h>, and use its INT_MAX to rewrite the
60911         j loop so that it does not overflow 'int'.  Problem reported by
60912         Ralf Wildenhues in
60913         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
60914         Play it safe by shifting left by 1 rather than multiplying by 2,
60915         as GCC is less likely to optimize this away when the value
60916         is signed (when it assumes overflow leads to undefined behavior).
60917         Also, don't assume time_t uses two's complement.
60918
60919 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         * MODULES.html.sh: New module wctype.
60922         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
60923         * lib/fnmatch.c: Don't bother to include <wchar.h> before
60924         <wctype.h>, since the new wctype module should fix this.
60925         * lib/quotearg.c: Include <wctype.h> unconditionally, since
60926         the wctype module should arrange for it.
60927         * lib/regex_internal.h: Likewise.
60928         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
60929         since the wctype module should handle this now.
60930         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
60931         * modules/fnmatch (Depends-on): Add wctype.
60932         * modules/quotearg (Depends-on): Likewise.
60933         * modules/regex (Depends-on): Likewise.
60934
60935 2006-12-19  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/strdup.h [C++]: Wrap definitions in extern "C".
60938         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
60939
60940 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60941
60942         * modules/savewd (Depends-on): Fix dependency on fcntl.
60943
60944 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
60947         conforms to C99, rather than relying on the user's environment
60948         setting of STDINT_H.
60949
60950 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60951         and Eric Blake  <ebb9@byu.net>
60952
60953         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
60954         This is more consistent with the other defines here.
60955         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
60956         Port to z/OS.  Problem reported by Paul Gilmartin.
60957         Change local vars to use gl_ prefix rather than ac_.
60958         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
60959         with other defines.
60960         * modules/double-slash-root: New module.
60961         * modules/dirname (Files): Remove m4/double-slash-root.m4.
60962         (Depends-on): Add double-slash-root.
60963         * MODULES.html.sh (File system functions): Mention new module.
60964
60965 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
60966
60967         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
60968         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
60969         This is for the benefit of gzip, which doesn't do i18n.
60970
60971 2006-12-12  Jim Meyering  <jim@meyering.net>
60972
60973         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
60974         Reported by Andreas Schwab <schwab@suse.de>.
60975
60976 2006-12-12  Bruno Haible  <bruno@clisp.org>
60977
60978         Merge these changes.
60979         2006-09-05  Bruno Haible  <bruno@clisp.org>
60980         * lib/iconvme.c (iconv_string): No need to save and restore errno when
60981         iconv_alloc succeeded.
60982         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
60983         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
60984         test for " && dest " at the end - dest is always != NULL there. Call
60985         iconv with 4xNULL arguments initially, to reset the state. Call iconv
60986         with 2xNULL arguments, also to flush the state storage. Handle the
60987         IRIX iconv behaviour. Realloc the final result, to throw away unused
60988         memory.
60989
60990 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
60991
60992         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
60993         and fchmodat unconditionally, since glibc 2.4 has them.
60994         Problem reported by Arkadiusz Miskiewicz.
60995
60996 2006-12-10  Bruno Haible  <bruno@clisp.org>
60997
60998         * gnulib-tool (func_import): Show the include files only for those
60999         modules that are copied and specified.
61000         Reported by Karl Berry.
61001
61002 2006-12-08  Jim Meyering  <jim@meyering.net>
61003
61004         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61005         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61006
61007         * build-aux/announce-gen: Add two new options, both optional:
61008         --bootstrap-tools=TOOL_LIST
61009               a comma-separated list of tools, e.g.,
61010               autoconf,automake,bison,gnulib
61011         --gnulib-snapshot-date=DATE
61012               if gnulib is in the bootstrap tool list,
61013               then report this as the snapshot date.
61014               If not specified, use the current date/time.
61015               If you specify a date here, be sure it's UTC.
61016
61017 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61018
61019         * tests/test-argp-2.sh: Fix test to match actual output.
61020         (func_compare): Fix sed script to be portable.
61021
61022 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61023
61024         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61025         workaround for this case.  It is not autoconfigured now; offhand
61026         it's hard to see how to autoconfigure it.
61027
61028 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61031         a directory that is about to be chowned.  Such a directory's
61032         initial file permissions should permit the owner only and this
61033         should not be changed until after the chown, since the group and
61034         other bits would be incorrect if they granted permission before
61035         the chown.
61036
61037         Fix porting problem for iswctype reported by Georg Schwarz in:
61038         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61039         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61040         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61041         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61042         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61043
61044 2006-12-03  Jim Meyering  <jim@meyering.net>
61045
61046         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61047         p->fts_statp may not yet be defined.
61048         (fts_read): Instead, set it in the caller, once p->fts_statp is
61049         sure to be defined, and corresponds to a top-level directory.
61050         This bug made du -x fail.  Here's the coreutils test case:
61051         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61052         Reported by Mike Frysinger.
61053
61054 2006-12-01  Jim Meyering  <jim@meyering.net>
61055
61056         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61057         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61058         Reported by Simon Josefsson.
61059
61060 2006-11-30  Jim Meyering  <jim@meyering.net>
61061
61062         * m4/warning.m4: Use the all-permissive copyright notice
61063         recommended by RMS (rather than LGPL).
61064         * m4/vararrays.m4: Likewise.
61065         * m4/flexmember.m4: Likewise.
61066
61067 2006-11-29  Bruno Haible  <bruno@clisp.org>
61068
61069         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61070         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61071         using +=.
61072         Reported by Simon Josefsson <simon@josefsson.org>.
61073
61074 2006-11-28  James Youngman <jay@gnu.org>
61075
61076         * README: Advise users that they might find the bug-gnulib@gnu.org
61077         and autotools-announce@gnu.org mailing lists useful.
61078
61079 2006-11-28  Bruno Haible  <bruno@clisp.org>
61080
61081         * m4/ptrdiff_max.m4: Remove file.
61082
61083 2006-11-21  Bruno Haible  <bruno@clisp.org>
61084
61085         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61086         _AC_COMPUTE_INT.
61087         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61088         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61089         _AC_COMPUTE_INT.
61090         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61091         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61092         _AC_COMPUTE_INT.
61093         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61094
61095 2006-11-28  Jim Meyering  <jim@meyering.net>
61096
61097         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61098         warning from "gcc -Wshadow" about shadowing the builtin.
61099
61100 2006-11-27  Bruno Haible  <bruno@clisp.org>
61101
61102         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61103         _AC_COMPUTE_INT.
61104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61105
61106 2006-11-27  Bruno Haible  <bruno@clisp.org>
61107             Paul Eggert  <eggert@cs.ucla.edu>
61108
61109         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61110
61111 2006-11-26  Bruno Haible  <bruno@clisp.org>
61112
61113         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61114         noinst_LTLIBRARIES.
61115
61116 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61117             Bruno Haible  <bruno@clisp.org>
61118
61119         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61120         if compiling with "gcc -ansi".
61121
61122 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         Fix some incompatibilities with gcc -ansi -pedantic.
61125         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61126         if compiling pedantically with GCC, unless it's C99 or later.
61127         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61128         it mishandles gcc -ansi -pedantic as well.
61129         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61130         if gcc -pedantic.
61131         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61132         initializers for struct if -pedantic, unless it's C99 or later.
61133
61134 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61135
61136         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61137         Don't close an fd more than once. Identical atimes indicate
61138         success, not failure.
61139
61140 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61141
61142         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61143
61144 2006-11-23  Jim Meyering  <jim@meyering.net>
61145
61146         * build-aux/announce-gen: New file.  From coreutils.
61147
61148 2006-11-22  Jim Meyering  <jim@meyering.net>
61149
61150         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61151         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61152         (fts_read): Use a temporary to narrow the overused st_size member
61153         before using it in a switch statement.  Reported by Matthew Woehlke.
61154
61155         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61156         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61157
61158 2006-11-20  Bruno Haible  <bruno@clisp.org>
61159
61160         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61161         changequote instead of pairs of brackets.
61162         Reported by Andreas Schwab <schwab@suse.de>.
61163
61164 2006-11-21  Jim Meyering  <jim@meyering.net>
61165
61166         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61167         so as to remain compatible with older compilers.
61168         Patch from Michael Deutschmann.
61169
61170 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * MODULES.html.sh (File system functions): Add openat.
61173
61174         * lib/openat.h (rpl_fstatat): New macro, if
61175         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61176         (fstatat): Define to rpl_fstatat under the same conditions,
61177         unless COMPILING_FSTATAT.
61178         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61179         seems to have the bug.
61180         * lib/fstatat.c: New file.
61181         * modules/openat (Files): Add it.
61182
61183 2006-11-20  Bruno Haible  <bruno@clisp.org>
61184
61185         * Makefile: New file.
61186
61187 2006-11-20  Jim Meyering  <jim@meyering.net>
61188
61189         The beginnings of syntax-related checks for gnulib.
61190         * lib/Makefile: New file.
61191         * lib/t-idcache: New script.  Ensure that the two halves of
61192         idcache.c stay in sync.
61193
61194         * lib/idcache.c: Adjust comments in user- and group- portions to
61195         be more accurate, and to be consistent with one another.
61196
61197 2006-11-20  Jim Meyering  <jim@meyering.net>
61198
61199         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61200         continue using the flexible array member (thus, this module performs
61201         half as many malloc calls), with the addition that...
61202         (getgroup, getuser): Consistently record a non-match via an empty
61203         "name" string, and map an empty string match to a NULL return value.
61204         * modules/idcache (Depends-on): Re-add flexmember.
61205
61206         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61207         (getuidbyname, getgroup, getgidbyname): Likewise.
61208
61209         Use cleaner syntax: NULL rather than 0.
61210         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61211
61212 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61215         It mishandled the case where the group was missing.
61216         Problem reported by Greg Schafer.
61217         * modules/idcache: Likewise.
61218
61219 2006-11-18  Jim Meyering  <jim@meyering.net>
61220
61221         * check-module (%exempt_header): Add exception for some
61222         conditionally-included headers.
61223
61224         * modules/i-ring (Depends-on): Add verify.
61225         (License): Change to LGPL.
61226
61227 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61230         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61231         and inttostr.h.  Use snprintf rather than uinttostr, so that
61232         LGPLed code doesn't depend on GPLed.
61233
61234 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * modules/inline (License): Change from GPL to LGPL.
61237
61238 2006-11-17  Jim Meyering  <jim@meyering.net>
61239
61240         * modules/d-type (License): Switch to LGPL.
61241
61242 2006-11-15  Bruno Haible  <bruno@clisp.org>
61243
61244         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61245
61246 2006-11-15  Eric Blake  <ebb9@byu.net>
61247
61248         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61249         the module dependency.
61250
61251 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61252             Bruno Haible  <bruno@clisp.org>
61253
61254         * gnulib-tool (func_create_testdir): Add license consistency check.
61255
61256 2006-11-15  Eric Blake  <ebb9@byu.net>
61257
61258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61259         random "(cached)" in configure output.
61260
61261 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61262
61263         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61264         test for conforming inttypes.h is both announced and cached.
61265
61266         * MODULES.html.sh (seen_modules, seen_files): New variables.
61267         (func_module): Rewrite to use a few less gnulib-tool and sed
61268         invocations.  Avoid a couple of quadratic algorithms for ...
61269         (missed_modules, missed_files): ... these, with ...
61270         (func_append, func_tmpdir): ... these new functions, from
61271         gnulib-tool.  Analogously, install traps for cleanup.
61272
61273         * tests/test-gc.c (main): Remove unused variables.
61274         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61275
61276 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61277
61278         * modules/inttostr (License): Change to LGPL.
61279
61280 2006-11-14  Eric Blake  <ebb9@byu.net>
61281
61282         * modules/tempname (License): Change to LGPL.
61283
61284 2006-11-14  Eric Blake  <ebb9@byu.net>
61285
61286         * doc/functions.texi (Function Portability): *printf functions on
61287         Cygwin now understand all POSIX size specifiers.
61288
61289 2006-11-14  Bruno Haible  <bruno@clisp.org>
61290
61291         * modules/c-ctype (License): Change to LGPL.
61292
61293 2006-11-12  Bruno Haible  <bruno@clisp.org>
61294
61295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61296         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61297         for GNOME libraries, for which the include files are installed in
61298         subdirectories of $prefix/include.
61299
61300 2006-11-12  Bruno Haible  <bruno@clisp.org>
61301
61302         * m4/lib-link.m4: Require at least autoconf-2.54.
61303         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61304         name to underscores for the --with option.
61305
61306 2006-11-13  Bruno Haible  <bruno@clisp.org>
61307
61308         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61309         the tests directory.
61310         Reported by Ralf Wildenhues.
61311
61312 2006-11-13  Bruno Haible  <bruno@clisp.org>
61313
61314         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61315         (func_emit_initmacro_end): Undo the override here.
61316         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61317         Works around the famous automake error in coreutils.
61318
61319 2006-11-13  Eric Blake  <ebb9@byu.net>
61320
61321         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61322         element, not its node.
61323
61324 2006-11-12  Bruno Haible  <bruno@clisp.org>
61325
61326         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61327         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61328
61329 2006-11-12  Bruno Haible  <bruno@clisp.org>
61330
61331         * gnulib-tool: New option --local-symlink.
61332         (func_usage): Document it.
61333         (lsymbolic): New variable.
61334         (func_import, func_create_testdir): If --symlink was not specified,
61335         test whether --local-symlink was specified and the file comes from
61336         the local_gnulib_dir.
61337
61338 2006-11-12  Bruno Haible  <bruno@clisp.org>
61339
61340         * gnulib-tool (func_ln): New function.
61341         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61342
61343 2006-11-12  Bruno Haible  <bruno@clisp.org>
61344
61345         Finish support for source files in subdirectories.
61346         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61347         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61348         AUTOMAKE_OPTIONS.
61349         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61350
61351 2006-11-12  Bruno Haible  <bruno@clisp.org>
61352
61353         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61354         EXTRA_lib_SOURCES augmentation.
61355         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61356
61357 2006-11-12  Jim Meyering  <jim@meyering.net>
61358
61359         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61360         file descriptors.  This also averts a failure on systems with
61361         native openat support when a traversed directory lacks "x" access.
61362         * lib/fts_.h: Include "i-ring.h"
61363         (struct FTS) [fts_fd_ring]: New member.
61364         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61365         (FCHDIR): Add parentheses.
61366         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61367         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61368         When descending, rather than simply closing the previous
61369         fts_cwd_fd value, push that file descriptor onto the ring.
61370         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61371         (fts_open): Initialize the new fd_ring member.
61372         (fts_close): Clear the ring.
61373         (fts_safe_changedir): When possible, use our new fd_ring to skip
61374         the diropen and fstat and dev/ino comparison that would normally
61375         accompany a virtual `chdir ("..")'.
61376
61377         * modules/fts (Depends-on): Add i-ring.
61378         * modules/i-ring: New module.
61379         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61380         * m4/i-ring.m4: New file.
61381
61382 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61383
61384         * gnulib-tool (func_create_testdir): Fix replacement of
61385         `build-aux' in configure.ac.  Run autotools in gltests
61386         subdirectory.
61387         (func_create_testdir, func_create_megatestdir, test): There is
61388         no need for '--force' in most autotool invocations in a new
61389         tree.  Actually fail the whole test if any of the tools, or the
61390         configure or make stages fail.
61391
61392         Sync from Automake.
61393         * build-aux/gnupload: Revert last change.  Add pointer to upload
61394         instructions of the GNU Maintenance Instructions.
61395         Suggestion by Karl Berry.
61396
61397 2006-11-10  Jim Meyering  <jim@meyering.net>
61398
61399         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61400
61401 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61404         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61405         (bind_textdomain_codeset) [! ENABLE_NLS]:
61406         Evaluate all the arguments.  That way, callers get compatible behavior
61407         if the arguments have side effects.  Also, it avoids some GCC
61408         diagnostics in some cases; Joel E. Denny reported problems when Bison
61409         was configured with --enable-gcc-warnigs.
61410
61411 2006-11-10  Jim Meyering  <jim@meyering.net>
61412
61413         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61414         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61415         account.
61416
61417 2006-11-10  Jim Meyering  <jim@meyering.net>
61418
61419         * modules/inline: New file/module.
61420         * modules/xalloc (Files): Remove m4/inline.m4.
61421         (Depends-on): Add inline, instead.
61422         * modules/oset: Likewise.
61423         * modules/list: Likewise.
61424
61425 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61428         Problem reported by Matthew Woehlke.
61429
61430 2006-11-09  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/tempname.c (gen_tempname): Remove variant that invokes
61433         __gen_tempname.
61434         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61435         __gen_tempname.
61436
61437 2006-11-08  Bruno Haible  <bruno@clisp.org>
61438
61439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61440         to 'yes' instead of 'cross-compiling'.
61441
61442 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/quotearg.h (quotearg_free): New decl.
61445         * lib/quotearg.c (quotearg_free): New function.
61446         (slot0, nslots, slotvec0, slotvec):
61447         Now file-scope so that quotearg_free can get at them.
61448
61449 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61450
61451         Sync from Automake.
61452         * build-aux/gnupload: Add missing 'gnu' to example URL.
61453         Report by Karl Berry.
61454
61455 2006-11-08  Bruno Haible  <bruno@clisp.org>
61456
61457         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61458         Suggested by Paul Eggert.
61459
61460 2006-11-08  Jim Meyering  <jim@meyering.net>
61461
61462         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61463         It's already included if !_LIBC.
61464         (fts_safe_changedir): Add a comment.
61465
61466 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
61469         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
61470         Matthew Woehlke.
61471
61472         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
61473         definitions up, to avoid colliding with change below.
61474         (static_inline) [HAVE_INLINE]: New macro.
61475         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
61476         Provide extern decls when !HAVE_INLINE.  Do not define unless
61477         static_inline is defined, either by us or by xmalloc.c.  Use
61478         static_inline rather than static inline.
61479         (XCALLOC): Optimize sizeof(T) = 1 case.
61480         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
61481
61482 2006-11-07  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
61485         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
61486         AC_C_INLINE.
61487         * modules/xalloc (Files): Add m4/inline.m4.
61488
61489 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61490
61491         * README: Fix typo.
61492         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
61493         (Miscellanous Notes): ...from this.
61494
61495 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
61498         Mention that offsetof should be used instead of sizeof.
61499         From Bruno Haible.
61500
61501 2006-11-07  Bruno Haible  <bruno@clisp.org>
61502
61503         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
61504
61505 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61508         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
61509         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61510         (gl_tree_add_before, gl_tree_add_after):
61511         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
61512         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
61513         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61514         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
61515         (gl_linked_add_after, gl_linked_add_at): Likewise.
61516         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
61517         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
61518         (gl_tree_add_before, gl_tree_add_after): Likewise.
61519         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
61520         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
61521         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61522
61523 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61524
61525         * lib/gl_oset.h: Use C comment style, not C++ comment style.
61526
61527 2006-11-06  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/inline.m4: New file.
61530         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
61531         * modules/list (Files): Add m4/inline.m4.
61532         * modules/oset (Files): Likewise.
61533
61534 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         * lib/idcache.c: Include <stddef.h>, for offsetof.
61537         (struct userid.name): Change from char * to a flexible array member.
61538         All uses changed.
61539         * modules/idcache (Depends-on): Add flexmember.
61540
61541         * MODULES.html.sh (Core language properties): New module flexmember.
61542         * modules/flexmember, m4/flexmember.m4: New files.
61543
61544         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
61545         inline functions that are identical with the old xnmalloc_inline,
61546         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
61547         that we can avoid some unnecessary integer multiplications and
61548         divisions in the common case where the element size is known at
61549         compile time.
61550         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
61551         needed.
61552         (xnboundedmalloc): Remove.
61553         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
61554         arguments, for consistency with rest of this header.
61555         (xcharalloc): Rewrite using XNMALLOC.
61556         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
61557         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
61558         versions have been moved to lib/xalloc.h and renamed to be the
61559         non-*_inline versions.
61560         (xmalloc, xrealloc): Implement without reference to the xnmalloc
61561         and xnrealloc functions, since those functions are now inline and
61562         now call us.
61563         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
61564         renaming described above.
61565         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
61566         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
61567         captures the dependency in AC_C_INLINE.
61568
61569         New module canonicalize-lgpl, proposed by Charles Wilson in
61570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
61571         with a few small changes afterwards.
61572         * MODULES.html.sh (File system functions): New module
61573         canonicalize-lgpl.
61574         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
61575         and canonicalize_file_name.
61576         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
61577         * modules/canonicalize-lgpl: New files.
61578
61579 2006-11-05  Bruno Haible  <bruno@clisp.org>
61580
61581         * gnulib-tool (func_import, func_create_testdir): Create directories
61582         also for files in subdirectories of lib/.
61583
61584 2006-11-05  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
61587         ANSI C compliant.
61588
61589 2006-11-03  Bruno Haible  <bruno@clisp.org>
61590
61591         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
61592         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
61593         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
61594         (xnboundedmalloc): New inline function.
61595         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
61596         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
61597         xmalloc.
61598         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
61599         xmalloc.
61600         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
61601         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
61602         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
61603         xmalloc.
61604         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61605         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
61606         xmalloc.
61607         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
61608         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61609         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
61610         xmalloc.
61611         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
61612         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
61613         gl_tree_add_after): Use XMALLOC instead of xmalloc.
61614         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
61615         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
61616         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
61617         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
61618
61619 2006-11-03  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/c-ctype.h [C++]: Define functions without name mangling.
61622         * lib/fwriteerror.h [C++]: Likewise.
61623         * lib/gcd.h [C++]: Likewise.
61624         * lib/linebreak.h [C++]: Likewise.
61625
61626 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
61629         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
61630         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
61631         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61632         Check for functions and headers just once.
61633         Check for declaration of canonicalize_file_name.
61634         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
61635
61636 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61637
61638         * gnulib-tool (func_import): Fix typo in actioncmd.
61639
61640 2006-11-02  Bruno Haible  <bruno@clisp.org>
61641
61642         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
61643         newline sequence in the Makefile.am snippet as a space, like "make"
61644         does.
61645         Reported by Roger Persson <perrog@gmail.com>.
61646
61647 2006-11-01  Bruno Haible  <bruno@clisp.org>
61648
61649         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
61650         already declared in <string.h>.
61651         * lib/strcase.h (strncasecmp): Don't declare it if yes.
61652
61653 2006-11-01  Bruno Haible  <bruno@clisp.org>
61654
61655         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
61656         * lib/strcase.h: Include <string.h>.
61657         (strcasecmp): Define to rpl_strcasecmp here.
61658
61659 2006-11-01  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
61662
61663 2006-11-01  Eric Blake  <ebb9@byu.net>
61664
61665         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
61666
61667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
61668
61669 2006-10-29  Bruno Haible  <bruno@clisp.org>
61670
61671         Make it compile in C++ mode.
61672         * lib/full-write.c (full_rw): Add a cast.
61673
61674 2006-11-01  Bruno Haible  <bruno@clisp.org>
61675
61676         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
61677         be POSIX compliant.
61678         Reported by Roger Persson <perrog@gmail.com>.
61679
61680 2006-11-01  Eric Blake  <ebb9@byu.net>
61681
61682         * lib/getopt_.h: Fix comments.
61683
61684 2006-10-31  Eric Blake  <ebb9@byu.net>
61685
61686         * modules/tmpdir (Depends-on): Add sys_stat.
61687         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
61688         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
61689         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
61690         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
61691         tempname.
61692
61693 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         Avoid some C++ diagnostics reported by Bruno Haible.
61696         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
61697         xmalloc.
61698         (quotearg_alloc): Use xcharalloc rather than xmalloc.
61699         (struct slotvec): Move to top level.
61700         (quotearg_n_options): Rewrite to avoid xmalloc.
61701         * lib/xalloc.h (xcharalloc): New function.
61702         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
61703         [defined __cplusplus]: Add function template that provides result
61704         type propagation.  This part of the change is from Bruno Haible.
61705
61706 2006-10-29  Bruno Haible  <bruno@clisp.org>
61707
61708         Make it compile in C++ mode.
61709         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
61710         * lib/strnlen1.c (strnlen1): Cast memchr result.
61711         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
61712         * lib/clean-temp.c (string_equals, string_hash): Add casts.
61713         (create_temp_dir): Rename local variable 'template'.
61714         (compile_csharp_using_sscli): Add cast.
61715         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
61716         * lib/findprog.c (find_in_path): Likewise.
61717         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
61718         * lib/wait-process.c (register_slave_subprocess): Likewise.
61719
61720 2006-10-22  Bruno Haible  <bruno@clisp.org>
61721
61722         * modules/tsearch: New file.
61723         * lib/tsearch.h: New file.
61724         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
61725         * m4/tsearch.m4: New file.
61726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
61727
61728 2006-10-29  Eric Blake  <ebb9@byu.net>
61729
61730         * lib/arcfour.c: Assume config.h.
61731         * lib/arctwo.c: Likewise.
61732         * lib/base64.c: Likewise.
61733         * lib/check-version.c: Likewise.
61734         * lib/crc.c: Likewise.
61735         * lib/des.c: Likewise.
61736         * lib/gc-gnulib.c: Likewise.
61737         * lib/gc-libgcrypt.c: Likewise.
61738         * lib/gc-pbkdf2-sha1.c: Likewise.
61739         * lib/getaddrinfo.c: Likewise.
61740         * lib/getdelim.c: Likewise.
61741         * lib/getline.c: Likewise.
61742         * lib/hmac-md5.c: Likewise.
61743         * lib/hmac-sha1.c: Likewise.
61744         * lib/iconvme.c: Likewise.
61745         * lib/md2.c: Likewise.
61746         * lib/md4.c: Likewise.
61747         * lib/memxor.c: Likewise.
61748         * lib/read-file.c: Likewise.
61749         * lib/readline.c: Likewise.
61750         * lib/rijndael-alg-fst.c: Likewise.
61751         * lib/rijndael-api-fst.c: Likewise.
61752         * lib/xgetdomainname.c: Likewise.
61753
61754 2006-10-28  Eric Blake  <ebb9@byu.net>
61755
61756         * lib/xstrndup.c: Assume config.h.
61757
61758 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
61761         stat-macros.h is now for our own macros, whereas stat_h is for
61762         macros in the <sys/stat.h> name space.
61763         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
61764         (STAT_MACROS_H): Remove.
61765         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
61766         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
61767         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
61768         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
61769         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
61770         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
61771         Move these macros to ...
61772         * lib/stat_.h: here.  Don't include stat-macros.h.
61773         * lib/canonicalize.c: Don't include stat-macros.h.
61774         * lib/chown.c: Likewise.
61775         * lib/euidaccess.c: Likewise.
61776         * lib/file-type.c: Likewise.
61777         * lib/filemode.c: Likewise.
61778         * lib/glob.c: Likewise.
61779         * lib/isapipe.c: Likewise.
61780         * lib/lchown.c: Likewise.
61781         * lib/lstat.c: Likewise.
61782         * lib/mkdir-p.c: Likewise.
61783         * lib/rmdir.c: Likewise.
61784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
61785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
61786         unless mkdir isn't declared, to speed up 'configure'.
61787         Always create sys/stat.h, since it's unlikely any real sys/stat.h
61788         would define all the S_* symbols.
61789         * modules/canonicalize (Depends-on):
61790         Depend on sys_stat, not stat-macros.
61791         * modules/chown: Likewise.
61792         * modules/euidaccess: Likewise.
61793         * modules/filemode: Likewise.
61794         * modules/file-type: Likewise.
61795         * modules/glob: Likewise.
61796         * modules/isapipe: Likewise.
61797         * modules/lchown: Likewise.
61798         * modules/lstat: Likewise.
61799         * modules/mkancesdirs: Likewise.
61800         * modules/rmdir: Likewise.
61801         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
61802         * modules/modechange: Likewise.
61803         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
61804         (configure.ac): Remove gl_STAT_MACROS.
61805         * modules/sys_stat (Depends-on): Remove stat-macros.
61806
61807 2006-10-27  Bruno Haible  <bruno@clisp.org>
61808
61809         * m4/signed.m4: Remove file.
61810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
61811         invocation.
61812         * modules/vasnprintf (Files): Remove m4/signed.m4.
61813
61814 2006-10-27  Bruno Haible  <bruno@clisp.org>
61815
61816         Update to GNU gettext 0.16.
61817         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
61818         m4/inttypes-h.m4, m4/signed.m4.
61819         * m4/gettext.m4: Update to GNU gettext 0.16.
61820         * m4/intl.m4: New file, from GNU gettext.
61821         * m4/intldir.m4: New file, from GNU gettext.
61822         * config/srclist.txt: Update
61823
61824 2006-10-27  Eric Blake  <ebb9@byu.net>
61825
61826         * MODULES.html.sh: Document tempname.
61827         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
61828         dependencies.
61829         (Files): Move lib/tempname.c...
61830         * modules/tempname: ...to this new module.
61831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
61832         (gl_PREREQ_TEMPNAME): Move...
61833         * m4/tempname.m4: ...to this new file.
61834         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
61835         * modules/sys_stat (Depends-on): Add stat-macros.
61836         * lib/stat_.h (includes): Pick up stat macros.
61837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
61838         if stat macros are broken.
61839         * lib/tempname.c (includes): No need to include "stat-macros.h".
61840         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
61841         (direxists, __path_search) [!_LIBC]: Don't compile these in
61842         gnulib; the tmpdir module covers that.
61843         * lib/tempname.h: New file.
61844
61845 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         * COPYING: Explain how gnulib-tool converts licence headers.
61848         Almost all wording by Eric Blake.
61849
61850 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
61851
61852         * lib/mbchar.h (is_basic_table): Make read-only.
61853         * lib/mbchar.c (is_basic_table): Likewise.
61854         Reported by John Darrington.
61855
61856 2006-10-25  Bruno Haible  <bruno@clisp.org>
61857
61858         * lib/progname.h (set_program_name): Undefine before defining.
61859
61860 2006-10-25  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
61863         false for non-gcc C++ compilers.
61864         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61865
61866 2006-10-24  Bruno Haible  <bruno@clisp.org>
61867
61868         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
61869         iconv implementations like Irix iconv.
61870
61871 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         * modules/vararrays: New file.
61874         * m4/vararrays.m4: New file, taken from diffutils.
61875         * MODULES.html.sh: New module vararrays.
61876
61877 2006-10-24  Karl Berry  <karl@gnu.org>
61878
61879         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
61880         Don't call GNU Unix.
61881
61882 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61883
61884         * users.txt: Add Libtool.
61885
61886         Sync from Libtool:
61887
61888         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
61891         to gnulib's policy of including config.h unconditionally.
61892
61893 2006-10-24  Bruno Haible  <bruno@clisp.org>
61894
61895         * modules/wcwidth (Files): Add m4/wint_t.m4.
61896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
61897         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
61898
61899 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
61902         to pacify GCC with some -W flags enabled.  Problem reported by
61903         Bruno Haible.
61904
61905 2006-10-24  Jim Meyering  <jim@meyering.net>
61906
61907         * MODULES.html.sh: Remove uinttostr.  It's not a module.
61908         Reported by Karl Berry.
61909
61910 2006-10-23  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
61913
61914 2006-10-24  Bruno Haible  <bruno@clisp.org>
61915
61916         * lib/gl_list.h: Use C comment style, not C++ comment style.
61917
61918 2006-10-23  Eric Blake  <ebb9@byu.net>
61919
61920         * lib/getaddrinfo.c (includes): Add missing include.
61921
61922 2006-10-23  Bruno Haible  <bruno@clisp.org>
61923             Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         Ability to rename obstack_free.
61926         * lib/obstack.h (__obstack_free): New macro. Declare instead of
61927         obstack_free.
61928         (obstack_free): Invoke the __obstack_free macro.
61929         * lib/obstack.c (obstack_free): Use __obstack_free macro.
61930
61931 2006-10-23  Bruno Haible  <bruno@clisp.org>
61932             Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
61935         __argc, __argv from the declaration. (They are defined as macros on
61936         mingw.)
61937
61938 2006-10-22  Bruno Haible  <bruno@clisp.org>
61939
61940         * doc/gnulib-intro.texi: New file.
61941         * doc/gnulib.texi: Include it.
61942
61943 2006-10-21  Bruno Haible  <bruno@clisp.org>
61944
61945         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
61946         "Introduction", "Miscellanous Notes", "Particular Modules".
61947
61948 2006-10-21  Bruno Haible  <bruno@clisp.org>
61949
61950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61951         Change mostlyclean-local rule to avoid sh syntax error from bash
61952         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
61953
61954 2006-10-23  Jim Meyering  <jim@meyering.net>
61955
61956         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
61957         in place of snprintf.
61958
61959         * modules/inttostr (Files): Add lib/uinttostr.c.
61960         * lib/uinttostr.c (inttostr): New file/function.
61961         * lib/inttostr.h (uinttostr): Declare.
61962         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
61963         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61964         Add uinttostr.
61965         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
61966
61967 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61968
61969         * lib/canonicalize.c (ELOOP): Define if not already defined.
61970         Problem reported by Bruno Haible in
61971         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
61972
61973 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
61976         Problem reported by Perry Smith and Ville Laurikari.
61977
61978         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
61979         uses.
61980
61981 2006-10-19  Bruno Haible  <bruno@clisp.org>
61982
61983         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
61984         for mingw.
61985
61986 2006-10-19  Bruno Haible  <bruno@clisp.org>
61987
61988         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
61989         Needed for mingw.
61990
61991 2006-10-19  Bruno Haible  <bruno@clisp.org>
61992
61993         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
61994
61995 2006-10-19  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
61998         it.
61999
62000 2006-10-19  Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62003         invocation.
62004
62005 2006-10-19  Bruno Haible  <bruno@clisp.org>
62006
62007         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62008         mountlist by default.
62009
62010 2006-10-16  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/c-strstr.c: Include c-strstr.h.
62013
62014 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62015
62016         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62017         in a slash.
62018
62019 2006-10-18  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/lock.h [C++]: Wrap definitions in extern "C".
62022
62023 2006-10-18  Bruno Haible  <bruno@clisp.org>
62024
62025         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62026         gl_LIBOBJS list.
62027
62028 2006-10-18  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62031
62032 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62033
62034         * lib/xstrtol.h: Include gettext.h.
62035         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62036         Problem reported by Eric Blake.
62037         * modules/xstrtol (Depends-on): Add gettext-h.
62038
62039 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62040
62041         * lib/strftime.c (advance): New macro.
62042         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62043         incomplete type, so you can't add 0 to it.  Problem and patch
62044         reported by Eelco Dolstra for dietlibc.
62045
62046 2006-10-18  Jim Meyering  <jim@meyering.net>
62047
62048         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62049         type for a local, and rename it: s/up/user_proc/.
62050
62051 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62052
62053         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62054         READ_UTMP_USER_PROCESS.
62055         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62056
62057 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62060         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62061
62062 2006-10-17  Eric Blake  <ebb9@byu.net>
62063
62064         * lib/sigprocmask.c (sigprocmask): Fix typo.
62065
62066         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62067
62068         * modules/clean-temp (Makefile.am): Don't add to make output...
62069         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62070         config.h.
62071
62072 2006-10-17  Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62075         differently if DEFAULT_TEXT_DOMAIN is set.
62076
62077 2006-10-16  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/clean-temp.c: Include fwriteerror.h.
62080
62081 2006-10-16  Bruno Haible  <bruno@clisp.org>
62082
62083         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62084
62085 2006-10-16  Bruno Haible  <bruno@clisp.org>
62086
62087         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62088         * lib/sigprocmask.h: Include <sys/types.h>.
62089         (sigset_t): Use the system's definition if present.
62090
62091 2006-10-17  Eric Blake  <ebb9@byu.net>
62092
62093         * lib/xvasprintf.c (includes): Assume config.h.
62094         * lib/xasprintf.c (includes): Likewise.
62095
62096 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62097
62098         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62099         at least as wide as intmax_t.
62100
62101 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62102
62103         (Imported from Automake.)
62104         * build-aux/gnupload: Update to version 1.1 of directive file.
62105
62106 2006-10-16  Eric Blake  <ebb9@byu.net>
62107
62108         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62109         match Automake 1.10a.
62110
62111 2006-10-14  Bruno Haible  <bruno@clisp.org>
62112
62113         * modules/sigprocmask: New file.
62114         * lib/sigprocmask.h: New file.
62115         * lib/sigprocmask.c: New file.
62116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62117         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62118         request sigprocmask.o.
62119         (gl_PREREQ_SIGPROCMASK): New macro.
62120         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62121         (Depends-on): Add sigprocmask.
62122         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62123         gt_SIGNALBLOCKING. Test for 'raise' only once.
62124         * lib/fatal-signal.c: Include sigprocmask.h.
62125         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62126         unblock_fatal_signals): Define always.
62127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62128         sigprocmask.
62129
62130 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62131
62132         Sync from Automake.
62133         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62134         which incorrectly sets the mode of an existing destination
62135         directory.  In some cases the unpatched install-sh could do the
62136         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62137         system.  We hope this is rare in practice, but it's clearly worth
62138         fixing.  Problem reported by Alex Unleashed in
62139         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62140         Also, don't bother to check for -m bugs unless we're using -m;
62141         suggested by Stepan Kasal.
62142
62143 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62144
62145         Sync from Automake.
62146         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62147         `-c' flag, so they appear at the same position as in %FASTDEP%
62148         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62149         which ignores unknown options only after the first non-option.
62150         Bug report against M4 by Nelson H. F. Beebe.
62151
62152 2006-10-13  Jim Meyering  <jim@meyering.net>
62153
62154         Fix a bug in yesterday's change.
62155         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62156         p->fts_statp->st_dev would be used uninitialized.
62157         Ensures that we always call fts_stat on the very first entry.
62158         Miklos Szeredi reported that find -xdev stopped working.
62159
62160 2006-10-12  Bruno Haible  <bruno@clisp.org>
62161
62162         * gnulib-tool (func_get_automake_snippet): Append an automatically
62163         computed EXTRA_DIST augmentation.
62164         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62165         * modules/alloca-opt (Makefile.am): Likewise.
62166         * modules/allocsa (Makefile.am): Likewise.
62167         * modules/arcfour (Makefile.am): Likewise.
62168         * modules/arctwo (Makefile.am): Likewise.
62169         * modules/argmatch (Makefile.am): Likewise.
62170         * modules/argz (Makefile.am): Likewise.
62171         * modules/atexit (Makefile.am): Likewise.
62172         * modules/backupfile (Makefile.am): Likewise.
62173         * modules/byteswap (Makefile.am): Likewise.
62174         * modules/c-strtod (Makefile.am): Likewise.
62175         * modules/c-strtold (Makefile.am): Likewise.
62176         * modules/calloc (Makefile.am): Likewise.
62177         * modules/canon-host (Makefile.am): Likewise.
62178         * modules/canonicalize (Makefile.am): Likewise.
62179         * modules/chdir-long (Makefile.am): Likewise.
62180         * modules/chdir-safer (Makefile.am): Likewise.
62181         * modules/check-version (Makefile.am): Likewise.
62182         * modules/chown (Makefile.am): Likewise.
62183         * modules/cloexec (Makefile.am): Likewise.
62184         * modules/close-stream (Makefile.am): Likewise.
62185         * modules/closeout (Makefile.am): Likewise.
62186         * modules/crc (Makefile.am): Likewise.
62187         * modules/csharpexec (Makefile.am): Likewise.
62188         * modules/cycle-check (Makefile.am): Likewise.
62189         * modules/des (Makefile.am): Likewise.
62190         * modules/dev-ino (Makefile.am): Likewise.
62191         * modules/dirfd (Makefile.am): Likewise.
62192         * modules/dirname (Makefile.am): Likewise.
62193         * modules/dup2 (Makefile.am): Likewise.
62194         * modules/eealloc (Makefile.am): Likewise.
62195         * modules/error (Makefile.am): Likewise.
62196         * modules/euidaccess (Makefile.am): Likewise.
62197         * modules/exclude (Makefile.am): Likewise.
62198         * modules/exitfail (Makefile.am): Likewise.
62199         * modules/fcntl-safer (Makefile.am): Likewise.
62200         * modules/fcntl (Makefile.am): Likewise.
62201         * modules/file-type (Makefile.am): Likewise.
62202         * modules/fileblocks (Makefile.am): Likewise.
62203         * modules/filemode (Makefile.am): Likewise.
62204         * modules/filenamecat (Makefile.am): Likewise.
62205         * modules/fnmatch (Makefile.am): Likewise.
62206         * modules/fopen-safer (Makefile.am): Likewise.
62207         * modules/fpending (Makefile.am): Likewise.
62208         * modules/fprintftime (Makefile.am): Likewise.
62209         * modules/free (Makefile.am): Likewise.
62210         * modules/fsusage (Makefile.am): Likewise.
62211         * modules/ftruncate (Makefile.am): Likewise.
62212         * modules/fts (Makefile.am): Likewise.
62213         * modules/gc-arcfour (Makefile.am): Likewise.
62214         * modules/gc-des (Makefile.am): Likewise.
62215         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62216         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62217         * modules/gc-md4 (Makefile.am): Likewise.
62218         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62219         * modules/gc-sha1 (Makefile.am): Likewise.
62220         * modules/gc (Makefile.am): Likewise.
62221         * modules/getaddrinfo (Makefile.am): Likewise.
62222         * modules/getcwd (Makefile.am): Likewise.
62223         * modules/getdelim (Makefile.am): Likewise.
62224         * modules/getdomainname (Makefile.am): Likewise.
62225         * modules/getgroups (Makefile.am): Likewise.
62226         * modules/gethostname (Makefile.am): Likewise.
62227         * modules/gethrxtime (Makefile.am): Likewise.
62228         * modules/getline (Makefile.am): Likewise.
62229         * modules/getloadavg (Makefile.am): Likewise.
62230         * modules/getlogin_r (Makefile.am): Likewise.
62231         * modules/getndelim2 (Makefile.am): Likewise.
62232         * modules/getopt (Makefile.am): Likewise.
62233         * modules/getpagesize (Makefile.am): Likewise.
62234         * modules/getpass-gnu (Makefile.am): Likewise.
62235         * modules/getpass (Makefile.am): Likewise.
62236         * modules/getsubopt (Makefile.am): Likewise.
62237         * modules/gettime (Makefile.am): Likewise.
62238         * modules/gettimeofday (Makefile.am): Likewise.
62239         * modules/getugroups (Makefile.am): Likewise.
62240         * modules/getusershell (Makefile.am): Likewise.
62241         * modules/glob (Makefile.am): Likewise.
62242         * modules/group-member (Makefile.am): Likewise.
62243         * modules/hard-locale (Makefile.am): Likewise.
62244         * modules/hash (Makefile.am): Likewise.
62245         * modules/hmac-md5 (Makefile.am): Likewise.
62246         * modules/hmac-sha1 (Makefile.am): Likewise.
62247         * modules/human (Makefile.am): Likewise.
62248         * modules/idcache (Makefile.am): Likewise.
62249         * modules/imaxabs (Makefile.am): Likewise.
62250         * modules/imaxdiv (Makefile.am): Likewise.
62251         * modules/inet_ntop (Makefile.am): Likewise.
62252         * modules/inet_pton (Makefile.am): Likewise.
62253         * modules/intprops (Makefile.am): Likewise.
62254         * modules/inttostr (Makefile.am): Likewise.
62255         * modules/inttypes (Makefile.am): Likewise.
62256         * modules/isapipe (Makefile.am): Likewise.
62257         * modules/javaversion (Makefile.am): Likewise.
62258         * modules/lchmod (Makefile.am): Likewise.
62259         * modules/lchown (Makefile.am): Likewise.
62260         * modules/localcharset (Makefile.am): Likewise.
62261         * modules/long-options (Makefile.am): Likewise.
62262         * modules/lstat (Makefile.am): Likewise.
62263         * modules/malloc (Makefile.am): Likewise.
62264         * modules/mathl (Makefile.am): Likewise.
62265         * modules/mbchar (Makefile.am): Likewise.
62266         * modules/md2 (Makefile.am): Likewise.
62267         * modules/md4 (Makefile.am): Likewise.
62268         * modules/md5 (Makefile.am): Likewise.
62269         * modules/memcasecmp (Makefile.am): Likewise.
62270         * modules/memchr (Makefile.am): Likewise.
62271         * modules/memcmp (Makefile.am): Likewise.
62272         * modules/memcoll (Makefile.am): Likewise.
62273         * modules/memcpy (Makefile.am): Likewise.
62274         * modules/memmem (Makefile.am): Likewise.
62275         * modules/memmove (Makefile.am): Likewise.
62276         * modules/mempcpy (Makefile.am): Likewise.
62277         * modules/memrchr (Makefile.am): Likewise.
62278         * modules/memset (Makefile.am): Likewise.
62279         * modules/memxor (Makefile.am): Likewise.
62280         * modules/mkancesdirs (Makefile.am): Likewise.
62281         * modules/mkdir-p (Makefile.am): Likewise.
62282         * modules/mkdir (Makefile.am): Likewise.
62283         * modules/mkdtemp (Makefile.am): Likewise.
62284         * modules/mkstemp (Makefile.am): Likewise.
62285         * modules/mktime (Makefile.am): Likewise.
62286         * modules/modechange (Makefile.am): Likewise.
62287         * modules/mountlist (Makefile.am): Likewise.
62288         * modules/nanosleep (Makefile.am): Likewise.
62289         * modules/obstack (Makefile.am): Likewise.
62290         * modules/openat (Makefile.am): Likewise.
62291         * modules/pagealign_alloc (Makefile.am): Likewise.
62292         * modules/pathmax (Makefile.am): Likewise.
62293         * modules/physmem (Makefile.am): Likewise.
62294         * modules/poll (Makefile.am): Likewise.
62295         * modules/posixtm (Makefile.am): Likewise.
62296         * modules/posixver (Makefile.am): Likewise.
62297         * modules/putenv (Makefile.am): Likewise.
62298         * modules/quote (Makefile.am): Likewise.
62299         * modules/quotearg (Makefile.am): Likewise.
62300         * modules/raise (Makefile.am): Likewise.
62301         * modules/read-file (Makefile.am): Likewise.
62302         * modules/readline (Makefile.am): Likewise.
62303         * modules/readlink (Makefile.am): Likewise.
62304         * modules/readtokens (Makefile.am): Likewise.
62305         * modules/readutmp (Makefile.am): Likewise.
62306         * modules/realloc (Makefile.am): Likewise.
62307         * modules/regex (Makefile.am): Likewise.
62308         * modules/rename-dest-slash (Makefile.am): Likewise.
62309         * modules/rename (Makefile.am): Likewise.
62310         * modules/rijndael (Makefile.am): Likewise.
62311         * modules/rmdir (Makefile.am): Likewise.
62312         * modules/rpmatch (Makefile.am): Likewise.
62313         * modules/safe-read (Makefile.am): Likewise.
62314         * modules/safe-write (Makefile.am): Likewise.
62315         * modules/same-inode (Makefile.am): Likewise.
62316         * modules/same (Makefile.am): Likewise.
62317         * modules/save-cwd (Makefile.am): Likewise.
62318         * modules/savedir (Makefile.am): Likewise.
62319         * modules/setenv (Makefile.am): Likewise.
62320         * modules/settime (Makefile.am): Likewise.
62321         * modules/sha1 (Makefile.am): Likewise.
62322         * modules/sig2str (Makefile.am): Likewise.
62323         * modules/snprintf (Makefile.am): Likewise.
62324         * modules/stat-macros (Makefile.am): Likewise.
62325         * modules/stat-time (Makefile.am): Likewise.
62326         * modules/stdbool (Makefile.am): Likewise.
62327         * modules/stdint (Makefile.am): Likewise.
62328         * modules/stdlib-safer (Makefile.am): Likewise.
62329         * modules/stpcpy (Makefile.am): Likewise.
62330         * modules/stpncpy (Makefile.am): Likewise.
62331         * modules/strcase (Makefile.am): Likewise.
62332         * modules/strcasestr (Makefile.am): Likewise.
62333         * modules/strchrnul (Makefile.am): Likewise.
62334         * modules/strcspn (Makefile.am): Likewise.
62335         * modules/strdup (Makefile.am): Likewise.
62336         * modules/strerror (Makefile.am): Likewise.
62337         * modules/strftime (Makefile.am): Likewise.
62338         * modules/strndup (Makefile.am): Likewise.
62339         * modules/strnlen (Makefile.am): Likewise.
62340         * modules/strpbrk (Makefile.am): Likewise.
62341         * modules/strsep (Makefile.am): Likewise.
62342         * modules/strstr (Makefile.am): Likewise.
62343         * modules/strtod (Makefile.am): Likewise.
62344         * modules/strtoimax (Makefile.am): Likewise.
62345         * modules/strtok_r (Makefile.am): Likewise.
62346         * modules/strtol (Makefile.am): Likewise.
62347         * modules/strtoll (Makefile.am): Likewise.
62348         * modules/strtoul (Makefile.am): Likewise.
62349         * modules/strtoull (Makefile.am): Likewise.
62350         * modules/strtoumax (Makefile.am): Likewise.
62351         * modules/strverscmp (Makefile.am): Likewise.
62352         * modules/sys_socket (Makefile.am): Likewise.
62353         * modules/sys_stat (Makefile.am): Likewise.
62354         * modules/sysexits (Makefile.am): Likewise.
62355         * modules/time_r (Makefile.am): Likewise.
62356         * modules/timegm (Makefile.am): Likewise.
62357         * modules/timespec (Makefile.am): Likewise.
62358         * modules/tmpfile-safer (Makefile.am): Likewise.
62359         * modules/trim (Makefile.am): Likewise.
62360         * modules/unistd-safer (Makefile.am): Likewise.
62361         * modules/unlinkdir (Makefile.am): Likewise.
62362         * modules/unlocked-io (Makefile.am): Likewise.
62363         * modules/userspec (Makefile.am): Likewise.
62364         * modules/utime (Makefile.am): Likewise.
62365         * modules/utimecmp (Makefile.am): Likewise.
62366         * modules/utimens (Makefile.am): Likewise.
62367         * modules/vasnprintf (Makefile.am): Likewise.
62368         * modules/vasprintf (Makefile.am): Likewise.
62369         * modules/vsnprintf (Makefile.am): Likewise.
62370         * modules/xalloc (Makefile.am): Likewise.
62371         * modules/xgetcwd (Makefile.am): Likewise.
62372         * modules/xnanosleep (Makefile.am): Likewise.
62373         * modules/xreadlink (Makefile.am): Likewise.
62374         * modules/xstrtod (Makefile.am): Likewise.
62375         * modules/xstrtol (Makefile.am): Likewise.
62376         * modules/xstrtold (Makefile.am): Likewise.
62377         * modules/yesno (Makefile.am): Likewise.
62378         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62379
62380 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * modules/error (Makefile.am): Distribute files through
62383         EXTRA_DIST, not lib_SOURCES.
62384
62385 2006-10-12  Eric Blake  <ebb9@byu.net>
62386
62387         * modules/error (Makefile.am): Distribute files in /lib.
62388         * modules/obstack (Makefile.am): Likewise.
62389
62390 2006-10-12  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/acl (Makefile.am): Distribute all files in lib/ through
62393         EXTRA_DIST.
62394         * modules/arcfour (Makefile.am): Likewise.
62395         * modules/arctwo (Makefile.am): Likewise.
62396         * modules/argmatch (Makefile.am): Likewise.
62397         * modules/argz (Makefile.am): Likewise.
62398         * modules/atexit (Makefile.am): Likewise.
62399         * modules/backupfile (Makefile.am): Likewise.
62400         * modules/c-strtod (Makefile.am): Likewise.
62401         * modules/c-strtold (Makefile.am): Likewise.
62402         * modules/calloc (Makefile.am): Likewise.
62403         * modules/canon-host (Makefile.am): Likewise.
62404         * modules/canonicalize (Makefile.am): Likewise.
62405         * modules/chdir-long (Makefile.am): Likewise.
62406         * modules/chdir-safer (Makefile.am): Likewise.
62407         * modules/check-version (Makefile.am): Likewise.
62408         * modules/chown (Makefile.am): Likewise.
62409         * modules/cloexec (Makefile.am): Likewise.
62410         * modules/close-stream (Makefile.am): Likewise.
62411         * modules/closeout (Makefile.am): Likewise.
62412         * modules/crc (Makefile.am): Likewise.
62413         * modules/cycle-check (Makefile.am): Likewise.
62414         * modules/des (Makefile.am): Likewise.
62415         * modules/dirfd (Makefile.am): Likewise.
62416         * modules/dirname (Makefile.am): Likewise.
62417         * modules/dup2 (Makefile.am): Likewise.
62418         * modules/euidaccess (Makefile.am): Likewise.
62419         * modules/exclude (Makefile.am): Likewise.
62420         * modules/exitfail (Makefile.am): Likewise.
62421         * modules/fcntl-safer (Makefile.am): Likewise.
62422         * modules/file-type (Makefile.am): Likewise.
62423         * modules/fileblocks (Makefile.am): Likewise.
62424         * modules/filemode (Makefile.am): Likewise.
62425         * modules/filenamecat (Makefile.am): Likewise.
62426         * modules/fnmatch (Makefile.am): Likewise.
62427         * modules/fopen-safer (Makefile.am): Likewise.
62428         * modules/fpending (Makefile.am): Likewise.
62429         * modules/fprintftime (Makefile.am): Likewise.
62430         * modules/free (Makefile.am): Likewise.
62431         * modules/fsusage (Makefile.am): Likewise.
62432         * modules/ftruncate (Makefile.am): Likewise.
62433         * modules/fts (Makefile.am): Likewise.
62434         * modules/gc (Makefile.am): Likewise.
62435         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62436         * modules/getaddrinfo (Makefile.am): Likewise.
62437         * modules/getcwd (Makefile.am): Likewise.
62438         * modules/getdelim (Makefile.am): Likewise.
62439         * modules/getdomainname (Makefile.am): Likewise.
62440         * modules/getgroups (Makefile.am): Likewise.
62441         * modules/gethostname (Makefile.am): Likewise.
62442         * modules/gethrxtime (Makefile.am): Likewise.
62443         * modules/getline (Makefile.am): Likewise.
62444         * modules/getloadavg (Makefile.am): Likewise.
62445         * modules/getlogin_r (Makefile.am): Likewise.
62446         * modules/getopt (Makefile.am): Likewise.
62447         * modules/getpass (Makefile.am): Likewise.
62448         * modules/getpass-gnu (Makefile.am): Likewise.
62449         * modules/getsubopt (Makefile.am): Likewise.
62450         * modules/gettime (Makefile.am): Likewise.
62451         * modules/gettimeofday (Makefile.am): Likewise.
62452         * modules/getugroups (Makefile.am): Likewise.
62453         * modules/getusershell (Makefile.am): Likewise.
62454         * modules/glob (Makefile.am): Likewise.
62455         * modules/group-member (Makefile.am): Likewise.
62456         * modules/hard-locale (Makefile.am): Likewise.
62457         * modules/hash (Makefile.am): Likewise.
62458         * modules/hmac-md5 (Makefile.am): Likewise.
62459         * modules/hmac-sha1 (Makefile.am): Likewise.
62460         * modules/human (Makefile.am): Likewise.
62461         * modules/idcache (Makefile.am): Likewise.
62462         * modules/imaxabs (Makefile.am): Likewise.
62463         * modules/imaxdiv (Makefile.am): Likewise.
62464         * modules/inet_ntop (Makefile.am): Likewise.
62465         * modules/inet_pton (Makefile.am): Likewise.
62466         * modules/inttostr (Makefile.am): Likewise.
62467         * modules/isapipe (Makefile.am): Likewise.
62468         * modules/lchown (Makefile.am): Likewise.
62469         * modules/long-options (Makefile.am): Likewise.
62470         * modules/lstat (Makefile.am): Likewise.
62471         * modules/malloc (Makefile.am): Likewise.
62472         * modules/mathl (Makefile.am): Likewise.
62473         * modules/mbchar (Makefile.am): Likewise.
62474         * modules/md2 (Makefile.am): Likewise.
62475         * modules/md4 (Makefile.am): Likewise.
62476         * modules/md5 (Makefile.am): Likewise.
62477         * modules/memcasecmp (Makefile.am): Likewise.
62478         * modules/memchr (Makefile.am): Likewise.
62479         * modules/memcmp (Makefile.am): Likewise.
62480         * modules/memcoll (Makefile.am): Likewise.
62481         * modules/memcpy (Makefile.am): Likewise.
62482         * modules/memmem (Makefile.am): Likewise.
62483         * modules/memmove (Makefile.am): Likewise.
62484         * modules/mempcpy (Makefile.am): Likewise.
62485         * modules/memrchr (Makefile.am): Likewise.
62486         * modules/memset (Makefile.am): Likewise.
62487         * modules/memxor (Makefile.am): Likewise.
62488         * modules/mkancesdirs (Makefile.am): Likewise.
62489         * modules/mkdir (Makefile.am): Likewise.
62490         * modules/mkdir-p (Makefile.am): Likewise.
62491         * modules/mkdtemp (Makefile.am): Likewise.
62492         * modules/mkstemp (Makefile.am): Likewise.
62493         * modules/mktime (Makefile.am): Likewise.
62494         * modules/modechange (Makefile.am): Likewise.
62495         * modules/mountlist (Makefile.am): Likewise.
62496         * modules/nanosleep (Makefile.am): Likewise.
62497         * modules/openat (Makefile.am): Likewise.
62498         * modules/pagealign_alloc (Makefile.am): Likewise.
62499         * modules/physmem (Makefile.am): Likewise.
62500         * modules/poll (Makefile.am): Likewise.
62501         * modules/posixtm (Makefile.am): Likewise.
62502         * modules/posixver (Makefile.am): Likewise.
62503         * modules/putenv (Makefile.am): Likewise.
62504         * modules/quote (Makefile.am): Likewise.
62505         * modules/quotearg (Makefile.am): Likewise.
62506         * modules/raise (Makefile.am): Likewise.
62507         * modules/read-file (Makefile.am): Likewise.
62508         * modules/readline (Makefile.am): Likewise.
62509         * modules/readlink (Makefile.am): Likewise.
62510         * modules/readtokens (Makefile.am): Likewise.
62511         * modules/readutmp (Makefile.am): Likewise.
62512         * modules/realloc (Makefile.am): Likewise.
62513         * modules/regex (Makefile.am): Likewise.
62514         * modules/rename (Makefile.am): Likewise.
62515         * modules/rename-dest-slash (Makefile.am): Likewise.
62516         * modules/rijndael (Makefile.am): Likewise.
62517         * modules/rmdir (Makefile.am): Likewise.
62518         * modules/rpmatch (Makefile.am): Likewise.
62519         * modules/safe-read (Makefile.am): Likewise.
62520         * modules/safe-write (Makefile.am): Likewise.
62521         * modules/same (Makefile.am): Likewise.
62522         * modules/save-cwd (Makefile.am): Likewise.
62523         * modules/savedir (Makefile.am): Likewise.
62524         * modules/setenv (Makefile.am): Likewise.
62525         * modules/settime (Makefile.am): Likewise.
62526         * modules/sha1 (Makefile.am): Likewise.
62527         * modules/sig2str (Makefile.am): Likewise.
62528         * modules/snprintf (Makefile.am): Likewise.
62529         * modules/stdlib-safer (Makefile.am): Likewise.
62530         * modules/stpcpy (Makefile.am): Likewise.
62531         * modules/stpncpy (Makefile.am): Likewise.
62532         * modules/strcase (Makefile.am): Likewise.
62533         * modules/strcasestr (Makefile.am): Likewise.
62534         * modules/strchrnul (Makefile.am): Likewise.
62535         * modules/strcspn (Makefile.am): Likewise.
62536         * modules/strdup (Makefile.am): Likewise.
62537         * modules/strerror (Makefile.am): Likewise.
62538         * modules/strftime (Makefile.am): Likewise.
62539         * modules/strndup (Makefile.am): Likewise.
62540         * modules/strnlen (Makefile.am): Likewise.
62541         * modules/strpbrk (Makefile.am): Likewise.
62542         * modules/strsep (Makefile.am): Likewise.
62543         * modules/strstr (Makefile.am): Likewise.
62544         * modules/strtod (Makefile.am): Likewise.
62545         * modules/strtoimax (Makefile.am): Likewise.
62546         * modules/strtok_r (Makefile.am): Likewise.
62547         * modules/strtol (Makefile.am): Likewise.
62548         * modules/strtoll (Makefile.am): Likewise.
62549         * modules/strtoul (Makefile.am): Likewise.
62550         * modules/strtoull (Makefile.am): Likewise.
62551         * modules/strtoumax (Makefile.am): Likewise.
62552         * modules/strverscmp (Makefile.am): Likewise.
62553         * modules/time_r (Makefile.am): Likewise.
62554         * modules/timegm (Makefile.am): Likewise.
62555         * modules/tmpfile-safer (Makefile.am): Likewise.
62556         * modules/unistd-safer (Makefile.am): Likewise.
62557         * modules/unlinkdir (Makefile.am): Likewise.
62558         * modules/userspec (Makefile.am): Likewise.
62559         * modules/utime (Makefile.am): Likewise.
62560         * modules/utimecmp (Makefile.am): Likewise.
62561         * modules/utimens (Makefile.am): Likewise.
62562         * modules/vasnprintf (Makefile.am): Likewise.
62563         * modules/vasprintf (Makefile.am): Likewise.
62564         * modules/vsnprintf (Makefile.am): Likewise.
62565         * modules/xalloc (Makefile.am): Likewise.
62566         * modules/xgetcwd (Makefile.am): Likewise.
62567         * modules/xnanosleep (Makefile.am): Likewise.
62568         * modules/xreadlink (Makefile.am): Likewise.
62569         * modules/xstrtod (Makefile.am): Likewise.
62570         * modules/xstrtol (Makefile.am): Likewise.
62571         * modules/xstrtold (Makefile.am): Likewise.
62572         * modules/yesno (Makefile.am): Likewise.
62573
62574 2006-10-12  Jim Meyering  <jim@meyering.net>
62575
62576         * m4/getloadavg.m4: Revert the change below.
62577
62578         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
62579         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
62580         fail with a symlink, which is what coreutils' ./bootstrap now
62581         creates by default.
62582
62583 2006-10-12  Bruno Haible  <bruno@clisp.org>
62584
62585         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
62586         mingw.
62587         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
62588         MSVC and mingw explicitly.
62589
62590 2006-10-11  Simon Josefsson  <jas@extundo.com>
62591             Bruno Haible  <bruno@clisp.org>
62592
62593         Add support for multiple gnulib-tool invocations in the scope of a
62594         single configure.ac file.
62595         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
62596         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
62597         with the same contents as the _LIBADD variable.
62598         (func_emit_initmacro_start, func_emit_initmacro_end,
62599         func_emit_initmacro_done): New functions.
62600         (func_import, func_create_testdir): Invoke them. Allow the identifiers
62601         gl_LIBOBJS and gl_LTLIBOBJS.
62602
62603 2006-10-11  Bruno Haible  <bruno@clisp.org>
62604
62605         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
62606         (func_create_testdir): Don't create po/Makefile.am, don't invoke
62607         autoreconf. Instead, invoke autopoint explicitly but move back the
62608         *.m4 files from gnulib.
62609
62610 2006-10-11  Bruno Haible  <bruno@clisp.org>
62611
62612         * gnulib-tool (func_usage): Make module names after --create-testdir
62613         optional.
62614         (func_create_testdir): If no module was specified, use nearly all
62615         modules.
62616
62617 2006-10-12  Jim Meyering  <jim@meyering.net>
62618
62619         Big performance improvement for fts-based tools that use FTS_NOSTAT.
62620         Avoid spurious inode-mismatch problems on non-POSIX file systems.
62621         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
62622         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
62623         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
62624         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
62625         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
62626         (fts_set_stat_required): New function.
62627         (fts_open): Defer the calls to fts_stat, if possible or requested.
62628         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
62629         into fts_stat itself.
62630         (fts_read): Perform any required (deferred) fts_stat call.
62631         (fts_build): Likewise, for the directory we're about to open and read.
62632         In the readdir loop, carefully decide whether each entry will require
62633         an eventual call to fts_stat, using dirent.d_type info if available.
62634         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
62635         a command line argument into this function.  Update all callers.
62636         Map a return value of FTS_DOT to FTS_D for a command line argument.
62637         * modules/fts (Depends-on): Add d-type.  Alphabetize.
62638         Thanks to Miklos Szeredi for his tenacity and for the initial
62639         bug report about "find" failing on a FUSE-based file system.
62640
62641         * lib/fts.c (fts_open): Use consistent indentation.
62642
62643 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
62646         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
62647         reported by Jim Meyering.  All uses of cache variables renamed
62648         to match Autoconf's.
62649         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
62650         the other one.
62651
62652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62653         Fix misspelling in diagnostic.
62654
62655 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
62658         defined.  Problem reported by Matthew Woehlke.
62659
62660         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
62661         Add support for Tandem NonStop R series.
62662         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
62663         Use new macro.
62664
62665         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
62666         (has_trailing_slash): Omit size arg; all callers changed.
62667         Omit 'inline', since it doesn't help performance and we'd
62668         need to configure it.
62669         Don't count //, ///, etc. as having a trailing slash.
62670         As a side effect, this removes a C99ism reported by Matthew Woehlke.
62671         (rpl_rename_dest_slash): On failure, use rename's errno rather
62672         than (in some cases) an incorrect or junk errno.
62673         Simplify code by removing need to compute length; this does
62674         cause it to make two passes instead of one over the file name,
62675         but it's worth it.
62676
62677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
62678         change, since Autoconf's version may no longer be appropriate now
62679         that we are using CVS Autoconf's version.  Add support for Tandem.
62680
62681 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62682             Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
62685         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
62686         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
62687         gl_AC_TYPE_LONG_LONG.
62688
62689         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
62690         instead of HAVE_LONG_LONG.
62691         * lib/printf-args.c (printf_fetchargs): Likewise.
62692         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62693         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62694         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
62695         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
62696         gl_AC_TYPE_LONG_LONG.
62697
62698 2006-10-11  Bruno Haible  <bruno@clisp.org>
62699
62700         * m4/longlong.m4: Add comments.
62701         * m4/ulonglong.m4: Likewise.
62702
62703 2006-10-10  Bruno Haible  <bruno@clisp.org>
62704
62705         Make it possible to #define stpcpy, strdup to aliases.
62706         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
62707         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
62708
62709 2006-10-10  Bruno Haible  <bruno@clisp.org>
62710
62711         Make it possible to #define gcd to an alias.
62712         * lib/gcd.c: Include config.h.
62713
62714 2006-10-10  Bruno Haible  <bruno@clisp.org>
62715
62716         Make it possible to #define c_isascii to an alias.
62717         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
62718         defined. Undefine the macros before defining them, to avoid gcc
62719         warnings.
62720         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
62721         define NO_C_CTYPE_MACROS early.
62722
62723 2006-10-10  Bruno Haible  <bruno@clisp.org>
62724
62725         Make it possible to #define set_program_name to an alias.
62726         * lib/progname.c: Don't undefine set_program_name; instead, undefine
62727         ENABLE_RELOCATABLE early.
62728
62729 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62730
62731         Port to Tandem NSK OSS, which has 64-bit signed int but at most
62732         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
62733         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
62734         More generally, don't assume that 64-bit signed int is available
62735         if unsigned int is, and vice versa.
62736         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
62737         unsigned symbols, not on their signed counterparts.
62738         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
62739         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
62740         (UINT64_C, UINTMAX_C):
62741         Likewise.
62742         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
62743         unsigned counterparts.
62744         (Have_long_long, Unsigned): New macros.
62745         (Int): Renamed from INT.
62746         (strtoimax): Use the new macros.
62747         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
62748         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
62749         * modules/inttypes (inttypes.h): Substitute
62750         HAVE_UNSIGNED_LONG_LONG_INT.
62751         * modules/stdint (stdint.h): Likewise.
62752         (Files): Add m4/ulonglong.m4.
62753
62754 2006-10-10  Bruno Haible  <bruno@clisp.org>
62755
62756         Fix a gcc -Wshadow warning.
62757         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
62758         to 'bucket'.
62759         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
62760         gl_linked_indexof_from_to): Likewise.
62761         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
62762         Likewise.
62763         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
62764         Likewise.
62765         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
62766         Reported by Eric Blake.
62767
62768 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
62771         for NetBSD.  Problem reported by Bruno Haible.
62772
62773 2006-10-09  Jim Meyering  <jim@meyering.net>
62774
62775         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
62776         Patch from Bruno Haible.
62777
62778 2006-10-09  Jim Meyering  <jim@meyering.net>
62779
62780         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
62781         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
62782         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
62783
62784 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62785
62786         Don't include <config.h> twice; this doesn't work in some cases,
62787         e.g., when config.h has "#define intmax_t long long int" and
62788         we include <config.h>, <inttypes.h>, <config.h> in that order.
62789         Problem reported by Matthew Woehlke in:
62790         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
62791         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
62792         * lib/fts-cycle.c: Don't include config.h.
62793         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
62794         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
62795         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
62796         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
62797         inttypes.h.
62798         * lib/xstrtoumax.c: Likewise.
62799         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
62800         __strtol and the like, so that this module is more like its siblings.
62801         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
62802         Remove; no longer needed now that we assume gnulib inttypes.h.
62803
62804 2006-10-08  Bruno Haible  <bruno@clisp.org>
62805
62806         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
62807         option.
62808
62809 2006-10-07  Jim Meyering  <jim@meyering.net>
62810
62811         * modules/inttypes (inttypes.h): Revert what seems to have been
62812         an inadvertent part of today's change: use "|", not "/" in the
62813         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62814
62815 2006-10-07  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/sublist: New file.
62818
62819 2006-10-07  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
62822         * modules/argz (argz.h): Likewise.
62823         * modules/arpa_inet (arpa/inet.h): Likewise.
62824         * modules/byteswap (byteswap.h): Likewise.
62825         * modules/configmake (configmake.h): Likewise.
62826         * modules/fcntl (fcntl.h): Likewise.
62827         * modules/fnmatch (fnmatch.h): Likewise.
62828         * modules/getopt (getopt.h): Likewise.
62829         * modules/glob (glob.h): Likewise.
62830         * modules/inttypes (inttypes.h): Likewise.
62831         * modules/netinet_in (netinet/in.h): Likewise.
62832         * modules/poll (poll.h): Likewise.
62833         * modules/stdbool (stdbool.h): Likewise.
62834         * modules/stdint (stdint.h): Likewise.
62835         * modules/sys_select (sys/select.h): Likewise.
62836         * modules/sys_socket (sys/socket.h): Likewise.
62837         * modules/sys_stat (sys/stat.h): Likewise.
62838         * modules/sysexits (sysexits.h): Likewise.
62839         * modules/unistd (unistd.h): Likewise.
62840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62841         Add a "DO NOT EDIT" comment to the generated file.
62842         (func_import): Likewise for gnulib-comp.m4.
62843
62844 2006-10-07  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/gl_sublist.h: New file.
62847         * lib/gl_sublist.c: New file.
62848
62849 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
62852         name (relative to the original working directory) and the file
62853         name component (relative to the temporary working directory).  All
62854         callers changed.
62855         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
62856         * lib/mkdir-p.c (make_dir_parents): Likewise.
62857         * lib/mkdir-p.h (make_dir_parents): Likewise.
62858
62859 2006-10-06  Eric Blake  <ebb9@byu.net>
62860
62861         Define several macros for use by the clean-temp module.
62862         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
62863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
62864         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
62865
62866         * lib/clean-temp.h (close_stream_temp): New declaration.
62867         * lib/clean-temp.c (includes): Pull in headers according to what
62868         other modules are in use.
62869         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
62870
62871 2006-10-06  Bruno Haible  <bruno@clisp.org>
62872
62873         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
62874         instead of fopen, fwriteerror.
62875
62876 2006-10-06  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
62879         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
62880         int.
62881         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
62882         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
62883         Return an error indicator.
62884         Suggested by Eric Blake.
62885
62886 2006-10-06  Bruno Haible  <bruno@clisp.org>
62887
62888         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
62889         Reported by Eric Blake.
62890
62891 2006-10-06  Bruno Haible  <bruno@clisp.org>
62892
62893         * modules/closeout (Description): Mention stderr too.
62894
62895 2006-10-06  Bruno Haible  <bruno@clisp.org>
62896         and Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * lib/closeout.c (close_stdout): Also close stderr.
62899         * lib/closeout.h: Update comment.
62900
62901 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
62904         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
62905         * lib/dirchownmod.c: Include lchown.h.
62906         * lib/lchown.c: Don't include files that lchown.h now includes.
62907         Don't declare chown, since lchown.h now does that.
62908         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
62909         (lchown): Define to rpl_chown if lchown is declared but
62910         does not exist.  Declare using a prototype if lchown is not
62911         declared.  Add a copyright notice.
62912         * lib/mkstemp.h: Include <unistd.h>.
62913         * lib/openat.c: Include lchown.h.
62914
62915         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
62916         we now test for that separately.
62917         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
62918         rather than O_NOFOLLOW, when testing whether it's possible to
62919         avoid a race condition reliably.
62920         * lib/savewd.c (savewd_chdir): Likewise.
62921
62922         Remove macros that are no longer needed now that stdint.h is
62923         reliable.
62924         * lib/fsusage.c (UINTMAX_MAX): Remove.
62925         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
62926         * lib/utimecmp.c (SIZE_MAX): Remove.
62927
62928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
62929
62930         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
62931         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
62932         O_NOATIME works.
62933
62934 2006-10-05  Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/gl_list.h (gl_sortedlist_search_from_to,
62937         gl_sortedlist_indexof_from_to): New declarations.
62938         (gl_list_implementation): New fields sortedlist_search_from_to,
62939         sortedlist_indexof_from_to.
62940         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
62941         inline functions.
62942         * lib/gl_list.c (gl_sortedlist_search_from_to,
62943         gl_sortedlist_indexof_from_to): New functions.
62944         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
62945         function.
62946         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
62947         (gl_array_sortedlist_search_from_to): New function.
62948         (gl_array_list_implementation): Update.
62949         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
62950         function.
62951         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
62952         (gl_carray_sortedlist_search_from_to): New function.
62953         (gl_carray_list_implementation): Update.
62954         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
62955         gl_linked_sortedlist_indexof_from_to): New functions.
62956         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62957         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62958         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
62959         gl_tree_sortedlist_indexof_from_to): New functions.
62960         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62961         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62962         Update.
62963         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62964         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
62965         Update.
62966
62967 2006-10-05  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
62970         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
62971         (struct gl_list_implementation): Add fields search_from_to,
62972         indexof_from_to. Remove fields search, indexof.
62973         (gl_list_search): Use the search_from_to method.
62974         (gl_list_search_from, gl_list_search_from_to): New functions.
62975         (gl_list_indexof): Use the indexof_from_to method.
62976         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62977         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
62978         (gl_list_search_from, gl_list_search_from_to): New functions.
62979         (gl_list_indexof): Use the indexof_from_to method.
62980         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
62981         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
62982         gl_array_indexof. Add start_index, end_index arguments.
62983         (gl_array_search_from_to): Renamed from gl_array_search. Add
62984         start_index, end_index arguments.
62985         (gl_array_remove, gl_array_list_implementation): Update.
62986         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
62987         gl_carray_indexof. Add start_index, end_index arguments.
62988         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
62989         start_index, end_index arguments.
62990         (gl_carray_remove, gl_carray_list_implementation): Update.
62991         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
62992         gl_linked_search. Add start_index, end_index arguments.
62993         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
62994         start_index, end_index arguments.
62995         (gl_linked_remove): Update.
62996         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62997         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62998         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
62999         field to 'size_t'.
63000         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63001         gl_tree_search. Add start_index, end_index arguments.
63002         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63003         start_index, end_index arguments.
63004         (gl_tree_remove): Update.
63005         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63006         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63007         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63008         function.
63009         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63010         gl_tree_search. Add start_index, end_index arguments.
63011         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63012         start_index, end_index arguments.
63013         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63014         Update.
63015         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63016
63017 2006-10-05  Bruno Haible  <bruno@clisp.org>
63018
63019         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63020
63021         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63022         fwriteerror_temp): New declarations.
63023         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63024         (descriptors): New variable.
63025         (cleanup): First, close the descriptors.
63026         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63027         fclose_temp, fwriteerror_temp): New functions.
63028
63029 2006-10-04  Jim Meyering  <jim@meyering.net>
63030
63031         * lib/fts.c (fts_open): Tiny comment change.
63032
63033 2006-10-04  Bruno Haible  <bruno@clisp.org>
63034
63035         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63036         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63037         gl_LOCK_BODY.
63038         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63039         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63040         gl_LOCK_EARLY_BODY.
63041         (gl_LOCK): Require gl_LOCK_BODY.
63042
63043 2006-10-04  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63046         (gl_oset_search_atleast): New declaration.
63047         (struct gl_oset_implementation): Add field 'search_atleast'.
63048         (gl_oset_search_atleast): New inline function.
63049         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63050         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63051         (gl_array_oset_implementation): Update.
63052         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63053         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63054         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63055
63056 2006-10-04  Bruno Haible  <bruno@clisp.org>
63057
63058         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63059
63060 2006-10-03  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63063         from gl_avltreehash_list_implementation.
63064
63065 2006-10-03  Bruno Haible  <bruno@clisp.org>
63066
63067         * lib/gl_oset.c (gl_oset_add): Fix return type.
63068
63069 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63070
63071         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63072
63073 2006-10-02  Eric Blake  <ebb9@byu.net>
63074
63075         * modules/strnlen (Depends-on): Add extensions.
63076
63077 2006-10-02  Eric Blake  <ebb9@byu.net>
63078
63079         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63080         definition in 2.60+.
63081
63082 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63083
63084         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63085         checks.
63086
63087 2006-10-02  Bruno Haible  <bruno@clisp.org>
63088
63089         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63090         to the AUTOMAKE_OPTIONS.
63091         Reported by Jim Meyering.
63092
63093 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63094
63095         Work around bug in Solaris 10 /proc file system:
63096         /proc/self/fd/NNN/.. isn't the parent directory of
63097         the directory whose file descriptor is NNN.  This needs to
63098         be worked around at run time, not compile time, since a
63099         program might be built on Solaris 8, where things work, and
63100         run on Solaris 10.
63101         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63102         to use the following interface instead:
63103         (OPENAT_BUFFER_SIZE): New macro.
63104         (openat_proc_name): New function.
63105         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63106         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63107         Likewise.
63108         * lib/openat-proc.c: New file.
63109         * modules/openat (Files): Add lib/openat-proc.c.
63110         (Depends-on): Add same-inode, stdbool.
63111         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63112
63113 2006-09-29  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63116         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63117         argument. Set stdout_closed before testing for ferror, not after.
63118         (fwriteerror, fwriteerror_no_ebadf): New functions.
63119
63120 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63121
63122         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63123
63124 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63125
63126         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63127         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63128
63129 2006-09-28  Jim Meyering  <jim@meyering.net>
63130
63131         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63132         Include <unistd.h>.
63133
63134 2006-09-28  Bruno Haible  <bruno@clisp.org>
63135
63136         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63137         * modules/linkedhash-list (Depends-on): Likewise.
63138         * modules/rbtreehash-list (Depends-on): Likewise.
63139
63140 2006-09-28  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/strndup.h: Simplify the redefinition of strndup.
63143         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63144         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63145
63146 2006-09-28  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63149         * lib/gl_linkedhash_list.c: Likewise.
63150         * lib/gl_rbtreehash_list.c: Likewise.
63151
63152 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63153
63154         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63155         getaddrinfo.
63156
63157         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63158         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63159         it causes <stdio_ext.h> to cause a compile-time error.
63160         Problem reported by Nelson H. F. Beebe.
63161         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63162         of HAVE_DECL___PENDING.
63163
63164         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63166         declaration.
63167
63168 2006-09-27  Jim Meyering  <jim@meyering.net>
63169
63170         This file could end up with a definition for a function
63171         named __strndup, rather than rpl_strndup on a system with
63172         incomplete weak_alias support.
63173         * lib/strndup.c (strndup): Rename from __strndup.
63174         Remove #defines that used to map __strndup to strndup.
63175         Don't use K&R prototypes.
63176         Remove LIBC-related code, since this file is not sync'd with glibc.
63177         * lib/strndup.h: Revamp, accordingly.
63178         * m4/strndup.m4: Modernize.
63179
63180 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63181
63182         * modules/savewd (Depends-on): Add 'raise'.
63183         * lib/savewd.c: Include <signal.h>, for 'raise'.
63184
63185 2006-09-26  Jim Meyering  <jim@meyering.net>
63186
63187         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63188         when we detect Darwin 8.7.0's acl_get_file bug.
63189         Rearrange to perform the new (below) run-test while $LIBS
63190         contains any acl-related library.  Set USE_ACL at the end.
63191         (gl_ACL_GET_FILE): New function.
63192
63193 2006-09-26  Eric Blake  <ebb9@byu.net>
63194
63195         * lib/verror.c: Include <config.h> unconditionally.
63196
63197 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * modules/clock-time (Maintainer): Add self.
63200         * modules/getlogin_r (Depends-on): Add extensions.
63201
63202 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63203
63204         * modules/clock-time: New module.
63205         * modules/nanosleep (Depends-on): Add clock-time.
63206         * modules/gethrxtime (Depends-on): Likewise.
63207         * modules/gettime (Depends-on): Likewise.
63208         * modules/settime (Depends-on): Likewise.
63209
63210         * modules/fts-lgpl: Depend on openat.
63211         * modules/mkancesdirs: Depend on savewd.
63212         * modules/mkdir-p: Likewise.
63213
63214 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63215
63216         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63217
63218         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63219         `gl_have_arbitrary_file_name_length_limit' to
63220         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63221         actually works between configure runs.
63222
63223 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63224             Bruno Haible  <bruno@clisp.org>
63225
63226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63227
63228 2006-09-25  Jim Meyering  <jim@meyering.net>
63229
63230         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63231         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63232
63233 2006-09-25  Eric Blake  <ebb9@byu.net>
63234
63235         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63236         exec's in 2006-09-18 patch when shuffling fds.
63237
63238 2006-09-25  Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63241         Reported by Jim Meyering.
63242
63243 2006-09-24  Jim Meyering  <jim@meyering.net>
63244
63245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63246         compare a pointer against a literal "0".  That caused failures with
63247         at least HP-UX's hpcc.
63248
63249 2006-09-22  Simon Josefsson  <jas@extundo.com>
63250
63251         * modules/gc-sha1:
63252         * modules/gc-md4:
63253         * modules/gc-hmac-sha1:
63254         * modules/gc-hmac-md5:
63255         * modules/gc-des:
63256         * modules/gc-arcfour: Distribute more files.
63257
63258 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63259
63260         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63261         (gl_linked_iterator_from_to): Initialize struct completely.
63262         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63263         (gl_tree_iterator_from_to): Likewise
63264         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63265         * lib/gl_array_list.c [lint] (gl_array_iterator)
63266         (gl_array_iterator_from_to): Likewise.
63267         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63268         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63269         (gl_carray_iterator_from_to): Likewise.
63270
63271         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63272         * lib/md4.c (md4_process_block): Remove unused variable.
63273         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63274         parentheses for clarity.
63275
63276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63277
63278         * modules/bison-i18n (Depends-on): Add gettext.
63279
63280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63281
63282         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63283         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63284         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63285         also add missing comma that caused broken test.
63286         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63287         stdlib.h, for `abort'.
63288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63289         variables.
63290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63291         include unistd.h if present, for `rmdir'.
63292         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63293         variables.
63294         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63295         in the process include standard headers for prototypes.
63296         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63297         gets declared on GNU/Linux.
63298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63299         unistd.h, for `rmdir'.
63300         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63301
63302         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63303         always true.
63304         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63305
63306         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63307
63308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63309
63310         * gnulib-tool (func_version): Create output all at once.  This
63311         may help avoid triggering unnecessary SIGPIPEs, and at any
63312         rate it doesn't hurt.
63313
63314 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63315             Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63318         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63319         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63320
63321         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63322         (gl_FUNC_VASPRINTF): Invoke it.
63323
63324 2006-09-22  Bruno Haible  <bruno@clisp.org>
63325
63326         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63327         getloadavg.c as first argument.
63328
63329 2006-09-22  Bruno Haible  <bruno@clisp.org>
63330
63331         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63332         at the beginning of the gl_INIT macro.
63333         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63334         gl_GETLOADAVG.
63335
63336 2006-09-22  Bruno Haible  <bruno@clisp.org>
63337
63338         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63339         module.
63340         Suggested by Ralf Wildenhues.
63341
63342 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63343
63344         Import this patch from libc:
63345
63346         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63347
63348         * lib/regex_internal.c (re_string_reconstruct): Handle
63349         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63350         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63351         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63352         re_string_context_at.
63353
63354         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63355         now requires it.
63356         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63357         gl_REGEX now does it for us.
63358         (gl_REGEX): Add test taken from
63359         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63360
63361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63362         Check that large offsets work.  Modernize Autoconf usages.
63363         Prefer "yes" to mean a good thing rather than a bad.
63364         Don't put "#define mkstemp" in config.h, as this might interfere
63365         with standard system headers that "#define mkstemp mkstemp64".
63366
63367         * modules/mkstemp (Depends-on): Add extensions, so that
63368         mkstemp is visible on some platforms.
63369         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63370         (Include): Change to "mkstemp.h" from <stdlib.h>.
63371         (Files): Add mkstemp.h.
63372
63373         * lib/mkstemp.h: New file, since some standard headers
63374         #define mkstemp.
63375         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63376         Include "mkstemp.h".
63377         Make the _LIBC code resemble glibc original more,
63378         e.g., use K&R style.
63379         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63380         (mkstemp): Remove, since mkstemp.h does this for us.
63381         * lib/stdlib--.h: Include mkstemp.h.
63382
63383         Import this patch from libc:
63384
63385         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63386
63387         * lib/tempname.c (__gen_tempname): Change attempts_min
63388         into a macro.  Use preprocessor to decide how to initialize
63389         attempts [Coverity CID 67].
63390
63391 2006-09-20  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/mkdtemp.c: Import from libc.
63394         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63395                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63396                 attempts_min into a macro.  Use preprocessor to decide how to
63397                 initialize attempts [Coverity CID 67].
63398         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63399                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63400                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63401
63402 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63403
63404         * gnulib-tool (func_exit): New function, to allow to pass the
63405         exit status portably through the trap.  Use everywhere.
63406         (--help, --version): Signal a write error.
63407         (trap): catch SIGPIPE, for write errors.
63408         Exit at the end of the trap, with the correct exit status.
63409
63410 2006-09-19  Karl Berry  <karl@gnu.org>
63411
63412         * doc/gnulib.texi: note about the license texinfo files.
63413
63414 2006-09-19  Eric Blake  <ebb9@byu.net>
63415
63416         * gnulib-tool: Avoid space-tab.
63417
63418 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63421         that prevented coreutils 6.1 from building.  Problem reported
63422         by Petter Reinholdtsen.
63423
63424 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * gnulib-tool (avoidlist): Fix typo that broke options like
63427         --avoid=lock that are used by coreutils bootstrap.
63428
63429 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63430
63431         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63432         more systematically.
63433
63434 2006-09-18  Jim Meyering  <jim@meyering.net>
63435
63436         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63437
63438 2006-09-18  Bruno Haible  <bruno@clisp.org>
63439
63440         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63441
63442 2006-09-18  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63445         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63446         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63447         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63448         * m4/gettext.m4: Require autoconf >= 2.52.
63449         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63450         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63451         of gl_cv_header_inttypes_h.
63452
63453 2006-09-18  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/javaversion.c: Include configmake.h.
63456
63457 2006-09-18  Bruno Haible  <bruno@clisp.org>
63458
63459         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63460         avoid that the while loops be executed in a subshell.
63461
63462 2006-09-18  Bruno Haible  <bruno@clisp.org>
63463
63464         * MODULES.html.sh (func_module): Break long lines.
63465         Suggested by Bruce Korb <bkorb@gnu.org>.
63466
63467 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63468
63469         Speed up by a factor of 1.12.
63470         * gnulib-tool (nl): New variable.
63471         (func_import): Rewrite include directive extraction to only read each
63472         directive once.
63473
63474 2006-09-17  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/javaversion (Makefile.am): Remove DEFS setting.
63477         (Depends-on): Add configmake, for PKGDATADIR definition.
63478
63479 2006-09-17  Bruno Haible  <bruno@clisp.org>
63480
63481         * gnulib-tool (func_create_testdir): Rewrite all files at once.
63482
63483 2006-09-17  Bruno Haible  <bruno@clisp.org>
63484
63485         * gnulib-tool (func_append): New function, stolen from libtool.m4.
63486         (func_modules_transitive_closure, func_modules_add_dummy,
63487         func_modules_to_filelist, func_import, func_create_testdir,
63488         func_create_megatestdir, ...): Use it wherever possible.
63489         Suggested by Ralf Wildenhues.
63490
63491 2006-09-16  Karl Berry  <karl@gnu.org>
63492
63493         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
63494         to avoid sectioning errors.
63495         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
63496         [ifinfo]: blank line after @center-ed titles.
63497         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
63498         Spell FSF address consistently with others.
63499         (These changes approved by rms.)
63500
63501 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63502
63503         Speed up by a factor of 1.61.
63504         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
63505         already checked module names again.
63506
63507 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63508
63509         Speed up by a factor of 1.13.
63510         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
63511         for new_files, and the input to func_add_or_update.
63512
63513 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63514
63515         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
63516         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
63517
63518 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * modules/mkancesdirs (Depends-on): Add fcntl.
63521         * modules/savewd: New file.
63522         * MODULES.html.sh (File system functions): Add savewd.
63523
63524         * modules/configmake (Makefile.am): Add support for the
63525         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
63526
63527 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * m4/savewd.m4: New file.
63530
63531 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
63534         (dirchownmod): New arg FD.  All callers changed.
63535         Use FD rather than opening the directory ourself, as opening is
63536         now the caller's responsibility.
63537         * lib/dirchownmod.h: Likewise.
63538         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
63539         hosts that require <sys/types.h> before <sys/stat.h>.  Include
63540         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
63541         (test_dir): Remove.
63542         (mkancesdirs): Return length of prefix of FILE that has already
63543         been made, or -2 if there is a child doing the work.  Redo
63544         algorithm so that it is O(N) rather than O(N**2).  Optimize away
63545         ".", and treat ".." specially since it might stray back into
63546         already-created areas.  Use a subprocess if necessary.  New arg
63547         WD; all users changed.  MAKE_DIR function should now return 1
63548         if it creates a directory that is not readable.  Return -2 if
63549         a child process is spun off.
63550         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
63551         Adjust signature to match code.
63552         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
63553         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
63554         all users changed.
63555         * lib/savewd.c, lib/savewd.h: New files.
63556
63557 2006-09-15  Jim Meyering  <jim@meyering.net>
63558
63559         * modules/rename-dest-slash: New module.
63560         * MODULES.html.sh (posix_compat): Add it here.
63561
63562         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
63563
63564 2006-09-15  Jim Meyering  <jim@meyering.net>
63565
63566         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
63567         file.
63568
63569         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
63570
63571 2006-09-15  Jim Meyering  <jim@meyering.net>
63572
63573         * lib/rename-dest-slash.c (has_trailing_slash): Use
63574         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
63575         (rpl_rename_dest_slash): Perform the cheaper trailing slash
63576         test before testing whether SRC is a directory.
63577         Suggestions from Bruno Haible.
63578
63579         Avoid a warning about an unused variable.
63580         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
63581         into the #ifdef block where it's used.
63582
63583         * lib/rename-dest-slash.c: New file.
63584
63585 2006-09-14  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/allocsa.c: Include <config.h> unconditionally.
63588         * lib/asnprintf.c: Likewise.
63589         * lib/asprintf.c: Likewise.
63590         * lib/c-strcasecmp.c: Likewise.
63591         * lib/c-strcasestr.c: Likewise.
63592         * lib/c-strncasecmp.c: Likewise.
63593         * lib/c-strstr.c: Likewise.
63594         * lib/classpath.c: Likewise.
63595         * lib/clean-temp.c: Likewise.
63596         * lib/concatpath.c: Likewise.
63597         * lib/copy-file.c: Likewise.
63598         * lib/csharpcomp.c: Likewise.
63599         * lib/csharpexec.c: Likewise.
63600         * lib/execute.c: Likewise.
63601         * lib/fatal-signal.c: Likewise.
63602         * lib/findprog.c: Likewise.
63603         * lib/fwriteerror.c: Likewise.
63604         * lib/gl_array_list.c: Likewise.
63605         * lib/gl_array_oset.c: Likewise.
63606         * lib/gl_avltree_list.c: Likewise.
63607         * lib/gl_avltree_oset.c: Likewise.
63608         * lib/gl_avltreehash_list.c: Likewise.
63609         * lib/gl_carray_list.c: Likewise.
63610         * lib/gl_linked_list.c: Likewise.
63611         * lib/gl_linkedhash_list.c: Likewise.
63612         * lib/gl_list.c: Likewise.
63613         * lib/gl_oset.c: Likewise.
63614         * lib/gl_rbtree_list.c: Likewise.
63615         * lib/gl_rbtree_oset.c: Likewise.
63616         * lib/gl_rbtreehash_list.c: Likewise.
63617         * lib/imaxabs.c: Likewise.
63618         * lib/imaxdiv.c: Likewise.
63619         * lib/javacomp.c: Likewise.
63620         * lib/javaexec.c: Likewise.
63621         * lib/javaversion.c: Likewise.
63622         * lib/linebreak.c: Likewise.
63623         * lib/localcharset.c: Likewise.
63624         * lib/lock.c: Likewise.
63625         * lib/mbchar.c: Likewise.
63626         * lib/mbswidth.c: Likewise.
63627         * lib/mkdtemp.c: Likewise.
63628         * lib/pipe.c: Likewise.
63629         * lib/printf-args.c: Likewise.
63630         * lib/printf-parse.c: Likewise.
63631         * lib/progname.c: Likewise.
63632         * lib/progreloc.c: Likewise.
63633         * lib/readlink.c: Likewise.
63634         * lib/sh-quote.c: Likewise.
63635         * lib/stpcpy.c: Likewise.
63636         * lib/stpncpy.c: Likewise.
63637         * lib/strcasecmp.c: Likewise.
63638         * lib/strcasestr.c: Likewise.
63639         * lib/strcspn.c: Likewise.
63640         * lib/striconv.c: Likewise.
63641         * lib/strncasecmp.c: Likewise.
63642         * lib/strnlen1.c: Likewise.
63643         * lib/strstr.c: Likewise.
63644         * lib/strtok_r.c: Likewise.
63645         * lib/tls.c: Likewise.
63646         * lib/tmpdir.c: Likewise.
63647         * lib/unicodeio.c: Likewise.
63648         * lib/unsetenv.c: Likewise.
63649         * lib/vasnprintf.c: Likewise.
63650         * lib/vasprintf.c: Likewise.
63651         * lib/wait-process.c: Likewise.
63652         * lib/xallocsa.c: Likewise.
63653         * lib/xsetenv.c: Likewise.
63654         * lib/xstriconv.c: Likewise.
63655
63656 2006-09-13  Simon Josefsson  <jas@extundo.com>
63657
63658         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
63659         that internally, suggested by Ralf Wildenhues
63660         <Ralf.Wildenhues@gmx.de>.
63661
63662 2006-09-13  Simon Josefsson  <jas@extundo.com>
63663
63664         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
63665         @LIBOBJS@.
63666         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63667
63668 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63669
63670         * lib/_fpending.c: Include <config.h> unconditionally, since we no
63671         longer worry about uses that don't define HAVE_CONFIG_H.
63672         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
63673         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
63674         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
63675         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
63676         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
63677         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
63678         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
63679         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
63680         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
63681         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
63682         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
63683         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
63684         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
63685         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
63686         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
63687         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
63688         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
63689         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
63690         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
63691         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
63692         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
63693         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
63694         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
63695         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
63696         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
63697         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
63698         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
63699         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
63700         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
63701         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
63702         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
63703         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
63704         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
63705         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
63706         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
63707         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
63708         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
63709         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
63710         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
63711         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
63712         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
63713         Likewise.
63714
63715 2006-09-13  Eric Blake  <ebb9@byu.net>
63716
63717         * lib/getopt.c: Fix typo in last commit.
63718
63719 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63720
63721         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
63722         dgettext.
63723
63724 2006-09-12  Jim Meyering  <jim@meyering.net>
63725
63726         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
63727         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
63728         Reported by Nelson H. F. Beebe.
63729
63730 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63731
63732         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
63733         program_invocation_name and program_invocation_short_name are
63734         initialized.
63735         * lib/argp-namefrob.h: Move declarations of program_invocation_name
63736         and program_invocation_short_name to argp.h, so they are visible
63737         to user programs.
63738         * lib/argp.h: Likewise
63739
63740 2006-09-10  Bruno Haible  <bruno@clisp.org>
63741
63742         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63743         m4/inttypes_h.m4, m4/uintmax_t.m4.
63744
63745 2006-09-10  Bruno Haible  <bruno@clisp.org>
63746
63747         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
63748         gl_AC_TYPE_UINTMAX_T.
63749
63750 2006-09-10  Bruno Haible  <bruno@clisp.org>
63751
63752         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
63753
63754 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63755
63756         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
63757         convention.  Text proposed by Bruno Haible.
63758         (struct argp_option): Document the use of N_() wrappers.
63759
63760         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
63761         '\v', and translate the two parts separately, instead of feeding
63762         the whole string to gettext.  This allows to exclude
63763         '\v' from the strings visible to the translator by writing doc
63764         strings as N_("..") "\v" N_("..").
63765
63766 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         * config/srclist.txt: Undo latest change; the bug was fixed.
63769
63770 2006-09-09  Bruno Haible  <bruno@clisp.org>
63771
63772         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
63773         assignments if building a library without libtool.
63774         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
63775         in func_emit_lib_Makefile_am.
63776         (func_import): When building a static library libfoo.a, arrange to
63777         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
63778         (func_create_testdir): Likewise.
63779         * modules/gc (configure.ac, Makefile.am): If building statically,
63780         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
63781         * modules/iconvme (configure.ac, Makefile.am): Likewise.
63782         * modules/striconv (configure.ac, Makefile.am): Likewise.
63783         Based on a suggestion by Ralf Wildenhues.
63784
63785 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63788         Check for unistd.h too, since Autoconf doesn't assume POSIX.
63789         Also:
63790
63791         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63792         Add year_2050_test to catch glibc bug 2821
63793         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63794
63795         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63796         Prefer #ifdef to #if.
63797
63798         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
63799         Return from 'main' instead of calling 'exit'.
63800
63801 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * lib/mktime.c (guess_time_tm): Fix bug where mktime
63804         returned the maximum time_t value rather than (time_t) -1.
63805         Problem originally reported by William Bardwell
63806         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
63807
63808         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63809         Moved to here ...
63810         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
63811         ... from here.
63812
63813 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63814
63815         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
63816         2821 is fixed.
63817
63818 2006-09-08  Jim Meyering  <jim@meyering.net>
63819
63820         Don't make generated files read-only.  That would bother too many
63821         people.  However, do retain the ability to work when targets are
63822         read-only: remove the destination and temporary files before writing
63823         them (when generated via sed or echo), or by using the -f option for
63824         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
63825         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63826         * modules/byteswap, modules/configmake, modules/fcntl:
63827         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63828         * modules/localcharset, modules/netinet_in, modules/poll:
63829         * modules/stdbool, modules/stdint, modules/sys_select:
63830         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63831
63832 2006-09-08  Jim Meyering  <jim@meyering.net>
63833
63834         Avoid new build failure on FreeBSD 6.0.
63835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
63836         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
63837         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
63838
63839 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63840
63841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
63842
63843 2006-09-07  Jim Meyering  <jim@meyering.net>
63844
63845         Fix global typo in last change: use chmod u-w, not chmod u-x.
63846         Spotted by Paul Eggert and Bruce Korb.
63847         * modules/alloca-opt, modules/argz, modules/arpa_inet:
63848         * modules/byteswap, modules/configmake, modules/fcntl:
63849         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
63850         * modules/localcharset, modules/netinet_in, modules/poll:
63851         * modules/stdbool, modules/stdint, modules/sys_select:
63852         * modules/sys_socket, modules/sys_stat, modules/sysexits:
63853
63854 2006-09-06  Jim Meyering  <jim@meyering.net>
63855
63856         Make generated files be read-only.
63857         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
63858         Ensure that each generated file is now read-only.
63859         * modules/argz: Likewise.
63860         * modules/arpa_inet: Likewise.
63861         * modules/byteswap: Likewise.
63862         * modules/configmake: Likewise.
63863         * modules/fcntl: Likewise.
63864         * modules/fnmatch: Likewise.
63865         * modules/getopt: Likewise.
63866         * modules/glob: Likewise.
63867         * modules/inttypes: Likewise.
63868         * modules/netinet_in: Likewise.
63869         * modules/poll: Likewise.
63870         * modules/stdbool: Likewise.
63871         * modules/stdint: Likewise.
63872         * modules/sys_select: Likewise.
63873         * modules/sys_socket: Likewise.
63874         * modules/sys_stat: Likewise.
63875         * modules/sysexits: Likewise.
63876         * modules/localcharset: Same as above, but continue using temporary
63877         file named "t-$@" (why different?) rather than the "$@-t" used
63878         everywhere else.
63879
63880         * modules/sysexits (Makefile.am): Replace literal occurrences
63881         of "sysexit.h" more readable, and more consistent, "$@".
63882
63883 2006-09-06  Bruno Haible  <bruno@clisp.org>
63884
63885         * modules/striconv: New file.
63886         * modules/xstriconv: New file.
63887         * MODULES.html.sh (Internationalization functions): Add striconv,
63888         xstriconv.
63889
63890 2006-09-06  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
63893         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
63894         not using libtool correctly.
63895
63896 2006-09-06  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/striconv.h: New file.
63899         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
63900         iconvstring.c.
63901         * lib/xstriconv.h: New file.
63902         * lib/xstriconv.c: New file.
63903
63904 2006-09-06  Bruno Haible  <bruno@clisp.org>
63905
63906         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63907         lib_..._LDFLAGS.
63908
63909 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63910
63911         * lib/argz_.h: Sync from Libtool.
63912
63913         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
63914                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63915
63916         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
63917
63918 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63919
63920         * modules/trim: New file.
63921
63922 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
63923
63924         * lib/trim.h: New file.
63925         * lib/trim.c: New file.
63926
63927 2006-09-05  Bruno Haible  <bruno@clisp.org>
63928
63929         * MODULES.html.sh (String handling): Add trim.
63930
63931 2006-09-04  Karl Berry  <karl@gnu.org>
63932
63933         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
63934         until next release.
63935
63936 2006-09-03  Bruno Haible  <bruno@clisp.org>
63937
63938         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
63939         correctly.
63940
63941 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
63944         not gl_GETLOADAVG.  Omit unneeded semicolons.
63945         Problems reported by Ralf Wildenhues in
63946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63947         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
63948         at the end, which is the usual gnulib style.
63949
63950         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
63951         of doing all the work ourselves.
63952         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
63953         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
63954
63955 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
63958         Problem reported by Ralf Wildenhues in
63959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
63960
63961         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
63962         HAVE_STRUCT_STATFS_F_FSTYPENAME.
63963
63964 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
63967         yesterday's patch by changing test -n to test -z.
63968
63969 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * modules/getloadavg (Files): Add m4/getloadavg.m4.
63972         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
63973         the former is now obsolescent.
63974
63975         * modules/chdir-long (Depends-on): Add fcntl.
63976
63977 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
63980         obsolescent, and programs should use gnulib instead.
63981         * m4/getloadavg.m4: New file, with contents taken from Autoconf
63982         but with prefixes changed.
63983
63984 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63985
63986         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
63987         or stdbool.h, because they might not exist while configuring.
63988
63989         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
63990         Don't include unistd.h or limits.h; not needed, since chdir-long.h
63991         does that for us.
63992         (O_DIRECTORY): Remove.
63993
63994 2006-08-31  Eric Blake  <ebb9@byu.net>
63995
63996         * gnulib-tool: Don't let emacs change spaces to TAB.
63997
63998 2006-08-31  Bruno Haible  <bruno@clisp.org>
63999
64000         * gnulib-tool: When calling func_import more than once, do it in a
64001         subshell.
64002         Reported by Eric Blake <ebb9@byu.net>.
64003
64004 2006-08-31  Bruno Haible  <bruno@clisp.org>
64005
64006         * gnulib-tool (nl): Remove variable.
64007         (sed_transform_lib_file): Use more robust test for config-h module.
64008         (func_import): Fix typo in 2006-08-25 patch.
64009
64010 2006-08-31  Bruno Haible  <bruno@clisp.org>
64011
64012         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64013         specified, augment Makefile.am variables instead of assigning them.
64014
64015 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64016
64017         Work around a bug in both the Linux and SunOS 64-bit kernels:
64018         nanosleep mishandles sleeps for longer than 2**31 seconds.
64019         Problem reported by Frank v Waveren in
64020         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64022         Check for nanosleep bug.
64023         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64024
64025 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         Work around a bug in both the Linux and SunOS 64-bit kernels:
64028         nanosleep mishandles sleeps for longer than 2**31 seconds.
64029         Problem reported by Frank v Waveren in
64030         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64031         * lib/nanosleep.c (BILLION): New constant.
64032         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64033         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64034         implementation.
64035
64036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * modules/nanosleep (Depends-on): Add gettime.
64039
64040 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64041         and Simon Josefsson  <jas@extundo.com>
64042         and Oskar Liljeblad  <oskar@osk.mine.nu>
64043
64044         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64045         * gnulib-tool (func_import): New license type 'unmodifiable license
64046         text'.
64047         * modules/fdl: Use it.  Longer description.
64048         * module/gpl, module/lgpl: New files.
64049
64050 2006-08-30  Jim Meyering  <jim@meyering.net>
64051
64052         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64053         shadowing the parameter.
64054
64055 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64056
64057         Sync from Libtool:
64058
64059         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64060
64061         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64062         sharing with gnulib.  Report by Eric Blake.
64063
64064 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * modules/isapipe: New file.
64067         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64068
64069 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64070
64071         * modules/configmake (Makefile.am): Add a comment, and omit
64072         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64073         by Bruno Haible.
64074
64075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         * m4/isapipe.m4: New file.
64078
64079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * lib/isapipe.c, lib/isapipe.h: New files.
64082
64083 2006-08-29  Jim Meyering  <jim@meyering.net>
64084
64085         * modules/configmake (Makefile.am): Make configmake.h depend on
64086         Makefile.  Otherwise, a stale configmake.h could hang around.
64087
64088 2006-08-29  Eric Blake  <ebb9@byu.net>
64089
64090         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64091         resolution of upstream bug 3044.
64092
64093 2006-08-29  Bruno Haible  <bruno@clisp.org>
64094
64095         * modules/localcharset (Depends-on): Add configmake.
64096         (Makefile.am): Remove setting of LIBDIR through DEFS.
64097
64098 2006-08-29  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64101         defined.
64102
64103 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         * modules/fcntl: New file.
64106         * modules/chdir-safer (Depends-on): Add fcntl.
64107         * modules/fts: Likewise.
64108         * modules/mkdir-p: Likewise.
64109
64110         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64111         This undoes the most recent change, since we're now addressing the
64112         problem in a different way.
64113
64114         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64115         into output, since the output might be called Makefile.am even
64116         if $makefile_name is something different.
64117         (func_import): Use $makefile_am rather than
64118         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64119         empty.
64120
64121         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64122
64123 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64126         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64127         recent change to stdint.m4, since we're now addressing the problem in a
64128         different way.
64129
64130 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * m4/fcntl_h.m4: New file.
64133
64134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * lib/fcntl_.h: New file.
64137         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64138         the fcntl module.
64139         * lib/dirchownmod.c: Likewise.
64140         * lib/fts.c: Likewise.
64141
64142         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64143         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64144         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64145         just before including <inttypes.h>, to avoid circular inclusion.
64146
64147 2006-08-28  Jim Meyering  <jim@meyering.net>
64148
64149         * doc/visibility.texi: Actually read and correct the grammar of the
64150         sentence affected by yesterday's change.
64151
64152 2006-08-28  Eric Blake  <ebb9@byu.net>
64153
64154         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64155         needs wrapper.
64156
64157 2006-08-28  Eric Blake  <ebb9@byu.net>
64158
64159         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64160
64161 2006-08-28  Eric Blake  <ebb9@byu.net>
64162
64163         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64164
64165 2006-08-28  Bruno Haible  <bruno@clisp.org>
64166
64167         * modules/c-strstr: New file, from GNU gettext.
64168         * MODULES.html.sh (String handling): Add c-strstr.
64169
64170 2006-08-28  Bruno Haible  <bruno@clisp.org>
64171
64172         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64173         macros.
64174         Reported by Eric Blake.
64175
64176 2006-08-28  Bruno Haible  <bruno@clisp.org>
64177
64178         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64179         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64180         * lib/vasprintf.c: Include errno.h, limits.h.
64181         (EOVERFLOW): New fallback definition.
64182         (vasprintf): Test here whether the string length is > INT_MAX.
64183         * lib/vsnprintf.c: Include errno.h, limits.h.
64184         (EOVERFLOW): New fallback definition.
64185         (vsnprintf): Fix bug when generated string was too long for the buffer.
64186         Test here whether the string length is > INT_MAX.
64187
64188 2006-08-28  Bruno Haible  <bruno@clisp.org>
64189
64190         * lib/inttypes_.h (SCNX*): Remove definitions.
64191         Reported by Eric Blake.
64192
64193 2006-08-28  Bruno Haible  <bruno@clisp.org>
64194
64195         * lib/c-strstr.h: New file, from GNU gettext.
64196         * lib/c-strstr.c: New file, from GNU gettext.
64197
64198 2006-08-28  Bruno Haible  <bruno@clisp.org>
64199
64200         * gnulib-tool: Reorder some statements.
64201
64202 2006-08-28  Bruno Haible  <bruno@clisp.org>
64203
64204         * gnulib-tool: New option --makefile-name.
64205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64206         $makefile_name.
64207         (func_import): Write $makefile_name to the cache file, and read it from
64208         there unless explicitly specified. Use $makefile_name as file name
64209         instead of Makefile.am. Adjust the recommendations accordingly.
64210
64211 2006-08-28  Bruno Haible  <bruno@clisp.org>
64212
64213         * gnulib-tool (func_verify_module): Check against misapplying patch.
64214
64215 2006-08-28  Bruno Haible  <bruno@clisp.org>
64216
64217         * gnulib-tool (func_relativize, func_relconcat): New functions.
64218         Give an error if --local-dir is given with --update.
64219         Remove trailing slashes from $local_gnulib_dir.
64220         (func_import): Store the relativized $local_gnulib_dir in
64221         gnulib-cache.m4, and read it from there if not specified explicitly.
64222
64223 2006-08-28  Bruno Haible  <bruno@clisp.org>
64224
64225         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64226         is the current directory. Respect also $local_gnulib_dir.
64227
64228 2006-08-28  Bruno Haible  <bruno@clisp.org>
64229             Simon Josefsson  <jas@extundo.com>
64230
64231         BeOS portability.
64232         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64233
64234 2006-08-27  Jim Meyering  <jim@meyering.net>
64235
64236         * doc/visibility.texi: Remove duplicate word: "pointer".
64237
64238 2006-08-26  Bruno Haible  <bruno@clisp.org>
64239
64240         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64241         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64242         (Makefile.am): Create inttypes.h from inttypes_.h.
64243         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64244
64245         * modules/imaxabs: New file.
64246
64247         * modules/imaxdiv: New file.
64248
64249 2006-08-26  Bruno Haible  <bruno@clisp.org>
64250
64251         * m4/inttypes.m4: New file.
64252         * m4/_inttypes_h.m4: Remove file.
64253         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64254         PRI_MACROS_BROKEN.
64255         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64256
64257         * m4/imaxabs.m4: New file.
64258
64259         * m4/imaxdiv.m4: New file.
64260
64261 2006-08-26  Bruno Haible  <bruno@clisp.org>
64262
64263         * lib/inttypes_.h: New file.
64264         * lib/inttypes.h: Remove file.
64265         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64266
64267         * lib/imaxabs.c: New file.
64268
64269         * lib/imaxdiv.c: New file.
64270
64271 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         New config-h module, so that "make" output needn't be cluttered
64274         by -DHAVE_CONFIG_H.
64275         * MODULES.html.sh (Support for building libraries and executables):
64276         Add config-h.
64277         * modules/config-h: New file.
64278         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64279         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64280         the config-h module is used.
64281
64282         New configmake module, so that "make" output needn't be cluttered
64283         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64284         * MODULES.html.sh (Support for building libraries and executables):
64285         Add configmake.
64286         * modules/configmake: New file.
64287
64288 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * m4/config-h.m4: New file.
64291
64292 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * config/srclist.txt: Add elisp-comp.
64295
64296 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * MODULES.html.sh (Support for building libraries and executables):
64299         Add elisp-comp.
64300         * build-aux/elisp-comp: New file.
64301         * modules/elisp-comp: New file.
64302
64303 2006-08-24  Bruno Haible  <bruno@clisp.org>
64304
64305         * gnulib-tool (func_create_testdir): Use non-default values of
64306         sourcebase and m4base.
64307
64308 2006-08-24  Bruno Haible  <bruno@clisp.org>
64309
64310         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64311         HTML structure.
64312
64313 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * modules/openat (Depends-on): Add lchown.
64316
64317 2006-08-23  Bruno Haible  <bruno@clisp.org>
64318
64319         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64320         of gl_LOCK_EARLY instead of gl_LOCK.
64321
64322 2006-08-23  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64325         on OSF/1 to no.
64326         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64327
64328 2006-08-23  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64331         as unusable.
64332
64333         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64334         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64335         (gl_LOCK): New macro.
64336
64337 2006-08-22  Simon Josefsson  <jas@extundo.com>
64338
64339         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64340         to md5 module.
64341
64342 2006-08-22  Simon Josefsson  <jas@extundo.com>
64343
64344         * MODULES.html.sh: Add "Support for maintaining and release
64345         projects".
64346
64347         * build-aux/gnupload: New file, from coreutils.
64348
64349 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         Avoid the need for AC_LIBSOURCES in m4 macros.
64352         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64353         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64354         * modules/check-version (EXTRA_DIST): Add check-version.h.
64355         * modules/crc (EXTRA_DIST): Add crc.h.
64356         * modules/des (EXTRA_DIST): Add des.h.
64357         * modules/gc (EXTRA_DIST): Add gc.h.
64358         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64359         * modules/getline (EXTRA_DIST): Add getline.h.
64360         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64361         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64362         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64363         * modules/md2 (EXTRA_DIST): Add md2.h.
64364         * modules/md4 (EXTRA_DIST): Add md4.h.
64365         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64366         * modules/read-file (EXTRA_DIST): Add read-file.h.
64367         * modules/readline (EXTRA_DIST): Add readline.h.
64368         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64369         rijndael-api-fst.h.
64370
64371 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         * m4/rijndael.m4 (gl_ARCFOUR):
64374         * m4/arctwo.m4 (gl_ARCTWO):
64375         * m4/check-version.m4 (gl_CHECK_VERSION):
64376         * m4/crc.m4 (gl_CRC):
64377         * m4/des.m4 (gl_DES):
64378         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64379         * m4/gc.m4 (gl_GC):
64380         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64381         * m4/getline.m4 (gl_FUNC_GETLINE):
64382         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64383         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64384         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64385         * m4/md2.m4 (gl_MD2):
64386         * m4/md4.m4 (gl_MD4):
64387         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64388         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64389         * m4/readline.m4 (gl_FUNC_READLINE):
64390         * m4/rijndael.m4 (gl_RIJNDAEL):
64391         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64392         to get the necessary .h files and whatnot.
64393
64394 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64397         gnulib rather than the other way around.
64398         * config/srclistvars.sh (COREUTILS): Remove.
64399
64400 2006-08-22  Jim Meyering  <jim@meyering.net>
64401
64402         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64403
64404         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64405
64406 2006-08-22  Eric Blake  <ebb9@byu.net>
64407
64408         * modules/regexprops-generic: New file.
64409         * MODULES.html.sh (Support for building documentation): List it.
64410
64411 2006-08-22  Eric Blake  <ebb9@byu.net>
64412
64413         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64414         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64416         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64417
64418 2006-08-22  Bruno Haible  <bruno@clisp.org>
64419
64420         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64421         and lib_LTLIBRARIES like the other lib_* variables.
64422
64423 2006-08-22  Bruno Haible  <bruno@clisp.org>
64424
64425         * build-aux/x-to-1.in: New file, from GNU gettext.
64426
64427 2006-08-22  Bruno Haible  <bruno@clisp.org>
64428
64429         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64430         <utmpx.h> exists.
64431
64432 2006-08-22  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64435         <utmpx.h> exists.
64436
64437 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         BeOS portability.
64440         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64441         exist.
64442         Problem reported by Bruno Haible.
64443
64444 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64445
64446         Avoid the need for AC_LIBSOURCES in m4 macros.
64447         * modules/acl (EXTRA_DIST): Add acl.h.
64448         * modules/argmatch (Files): Add m4/argmatch.m4.
64449         (configure.ac): Add gl_ARGMATCH.
64450         (EXTRA_DIST): Renamed from lib_SOURCES, for
64451         consistency with the other modules.  Remove argmatch.c.
64452         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64453         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64454         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64455         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64456         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64457         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64458         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64459         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64460         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64461         * modules/closeout (EXTRA_DIST): Add closeout.h.
64462         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64463         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64464         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64465         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64466         dirname.h; remove basename.c and stripslash.c.
64467         * modules/exclude (EXTRA_DIST): Add exclude.h.
64468         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
64469         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
64470         * modules/file-type (EXTRA_DIST): Add file-type.h.
64471         * modules/filemode (EXTRA_DIST): Add filemode.h.
64472         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
64473         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64474         * modules/fpending (EXTRA_DIST): Add __fpending.h.
64475         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
64476         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
64477         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
64478         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
64479         * modules/getdate (EXTRA_DIST): Add getdate.c.
64480         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
64481         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
64482         * modules/getpass (EXTRA_DIST): Add getpass.h.
64483         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
64484         * modules/group-member (EXTRA_DIST): Add group-member.h.
64485         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
64486         * modules/hash (EXTRA_DIST): Add hash.h.
64487         * modules/human (EXTRA_DIST): Add human.h.
64488         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
64489         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
64490         * modules/lchown (EXTRA_DIST): Add lchown.h.
64491         * modules/long-options (EXTRA_DIST): Add long-options.h.
64492         * modules/lstat (EXTRA_DIST): Add lstat.h.
64493         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
64494         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
64495         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
64496         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
64497         * modules/memxor (EXTRA_DIST): Add memxor.h.
64498         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
64499         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
64500         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
64501         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
64502         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
64503         * modules/physmem (EXTRA_DIST): Add physmem.h.
64504         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
64505         * modules/posixver (EXTRA_DIST): Add posixver.h.
64506         * modules/quote (EXTRA_DIST): Add quote.h.
64507         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
64508         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
64509         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
64510         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
64511         regex_internal.h regexec.c.
64512         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
64513         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
64514         * modules/same (EXTRA_DIST): Add same.h.
64515         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
64516         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
64517         * modules/savedir (EXTRA_DIST): Add savedir.h.
64518         * modules/sha1 (EXTRA_DIST): Add sha1.h.
64519         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
64520         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
64521         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
64522         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
64523         * modules/strdup (EXTRA_DIST): Add strdup.h.
64524         * modules/strftime (EXTRA_DIST): Add strftime.h.
64525         * modules/strndup (EXTRA_DIST): Add strndup.h.
64526         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
64527         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
64528         * modules/time_r (EXTRA_DIST): Add time_r.h.
64529         * modules/timespec (EXTRA_DIST): Add timespec.h.
64530         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
64531         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
64532         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
64533         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
64534         * modules/userspec (EXTRA_DIST): Add userspec.h.
64535         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
64536         * modules/utimens (EXTRA_DIST): Add utimens.h.
64537         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
64538         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
64539         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
64540         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
64541         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
64542         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
64543         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
64544         * modules/yesno (EXTRA_DIST): Add yesno.h.
64545
64546 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64547
64548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
64549
64550         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
64551         * m4/dev-ino.m4, same-inode.m4: Remove.
64552
64553         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
64554         * m4/acl.m4 (AC_FUNC_ACL):
64555         * m4/backupfile.m4 (gl_BACKUPFILE):
64556         * m4/c-strtod.m4 (gl_C99_STRTOLD):
64557         * m4/canon-host.m4 (gl_CANON_HOST):
64558         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64559         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
64560         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
64561         * m4/cloexec.m4 (gl_CLOEXEC):
64562         * m4/close-stream.m4 (gl_CLOSE_STREAM):
64563         * m4/closeout.m4 (gl_CLOSEOUT):
64564         * m4/dirfd.m4 (gl_FUNC_DIRFD):
64565         * m4/dirname.m4 (gl_DIRNAME):
64566         * m4/exclude.m4 (gl_EXCLUDE):
64567         * m4/exitfail.m4 (gl_EXITFAIL):
64568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
64569         * m4/file-type.m4 (gl_FILE_TYPE):
64570         * m4/filemode.m4 (gl_FILEMODE):
64571         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
64572         * m4/fpending.m4 (gl_FUNC_FPENDING):
64573         * m4/fprintftime.m4 (gl_FPRINTFTIME):
64574         * m4/fts.m4 (gl_FUNC_FTS):
64575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
64576         * m4/getdate.m4 (gl_GETDATE):
64577         * m4/gethrxtime.m4 (gl_GETHRXTIME):
64578         * m4/getpagesize.m4 (gl_GETPAGESIZE):
64579         * m4/getpass.m4 (gl_FUNC_GETPASS):
64580         * m4/gettime.m4 (gl_GETTIME):
64581         * m4/getugroups.m4 (gl_GETUGROUPS):
64582         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
64583         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
64584         * m4/hard-locale.m4 (gl_HARD_LOCALE):
64585         * m4/hash.m4 (gl_HASH):
64586         * m4/idcache.m4 (gl_IDCACHE):
64587         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
64588         * m4/lchown.m4 (gl_FUNC_LCHOWN):
64589         * m4/long-options.m4 (gl_LONG_OPTIONS):
64590         * m4/lstat.m4 (gl_FUNC_LSTAT):
64591         * m4/md5.m4 (gl_MD5):
64592         * m4/memcasecmp.m4 (gl_MEMCASECMP):
64593         * m4/memcoll.m4 (gl_MEMCOLL):
64594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
64595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
64596         * m4/memxor.m4 (gl_MEMXOR):
64597         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
64598         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
64599         * m4/modechange.m4 (gl_MODECHANGE):
64600         * m4/mountlist.m4 (gl_MOUNTLIST):
64601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64602         * m4/openat.m4 (gl_FUNC_OPENAT):
64603         * m4/pathmax.m4 (gl_PATHMAX):
64604         * m4/physmem.m4 (gl_PHYSMEM):
64605         * m4/posixtm.m4 (gl_POSIXTM):
64606         * m4/posixver.m4 (gl_POSIXVER):
64607         * m4/quote.m4 (gl_QUOTE):
64608         * m4/quotearg.m4 (gl_QUOTEARG):
64609         * m4/readtokens.m4 (gl_READTOKENS):
64610         * m4/readutmp.m4 (gl_READUTMP):
64611         * m4/regex.m4 (gl_REGEX):
64612         * m4/safe-read.m4 (gl_SAFE_READ):
64613         * m4/safe-write.m4 (gl_SAFE_WRITE):
64614         * m4/same.m4 (gl_SAME):
64615         * m4/save-cwd.m4 (gl_SAVE_CWD):
64616         * m4/savedir.m4 (gl_SAVEDIR):
64617         * m4/settime.m4 (gl_SETTIME):
64618         * m4/sha1.m4 (gl_SHA1):
64619         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
64620         * m4/stat-macros.m4 (gl_STAT_MACROS):
64621         * m4/stat-time.m4 (gl_STAT_TIME):
64622         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
64623         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
64624         * m4/strdup.m4 (gl_FUNC_STRDUP):
64625         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
64626         * m4/strndup.m4 (gl_FUNC_STRNDUP):
64627         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
64628         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
64629         * m4/time_r.m4 (gl_TIME_R):
64630         * m4/timespec.m4 (gl_TIMESPEC):
64631         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
64632         * m4/unlinkdir.m4 (gl_UNLINKDIR):
64633         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
64634         * m4/userspec.m4 (gl_USERSPEC):
64635         * m4/utimecmp.m4 (gl_UTIMECMP):
64636         * m4/utimens.m4 (gl_UTIMENS):
64637         * m4/xalloc.m4 (gl_XALLOC):
64638         * m4/xgetcwd.m4 (gl_XGETCWD):
64639         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
64640         * m4/xreadlink.m4 (gl_XREADLINK):
64641         * m4/xstrtod.m4 (gl_XSTRTOD):
64642         * m4/yesno.m4 (gl_YESNO):
64643         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64644         to get the necessary .h files and whatnot.
64645
64646 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
64647             Bruno Haible  <bruno@clisp.org>
64648
64649         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
64650         /bin/sh understanding of '!' conditional negation.
64651
64652 2006-08-21  Jim Meyering  <jim@meyering.net>
64653
64654         * modules/openat (Depends-on): Really alphabetize.
64655
64656         * modules/acl (Depends-on): Add error and quote.
64657
64658         * check-module (find_included_lib_files): Add at-func.c to the
64659         ok-to-include-more-than-once white list.
64660
64661         * modules/openat (Depends-on): Add lstat.  Alphabetize.
64662
64663 2006-08-21  Bruno Haible  <bruno@clisp.org>
64664
64665         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64666         Emit a pkgdata_DATA variable only if some snippets add contents to it.
64667         Reported by Martin Lambers <marlam@marlam.de>.
64668
64669 2006-08-21  Bruno Haible  <bruno@clisp.org>
64670
64671         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
64672         specify an installation location, don't emit a noinst_LIBRARIES or
64673         noinst_LTLIBRARIES assignment.
64674
64675 2006-08-21  Bruno Haible  <bruno@clisp.org>
64676
64677         BeOS portability.
64678         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
64679         BeOS has mbrtowc() but no <wctype.h>.
64680
64681 2006-08-21  Bruno Haible  <bruno@clisp.org>
64682
64683         BeOS portability.
64684         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
64685         exist.
64686
64687 2006-08-21  Bruno Haible  <bruno@clisp.org>
64688
64689         BeOS portability.
64690         * lib/mbchar.h: Include <wctype.h> only if it exists.
64691
64692 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         Remove files that are no longer needed by their respective modules.
64695         * m4/obstack.m4: Remove.
64696         * m4/strerror_r.m4: Remove.
64697         * m4/uint32_t.m4: Remove.
64698         * m4/uintptr_t.m4: Remove.
64699         * m4/ullong_max.m4: Remove.
64700         * m4/xstrtoimax.m4: Remove.
64701         * m4/xstrtoumax.m4: Remove.
64702
64703         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
64704         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
64705         dependencies now capture this.
64706
64707         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
64708         Do not use AC_LIBSOURCES, since gnulib modules now do this.
64709         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
64710         * m4/human.m4 (gl_HUMAN): Likewise.
64711         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
64712         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
64713
64714         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
64715
64716         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
64717         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
64718         stdint.
64719         * m4/human.m4 (gl_HUMAN): Likewise.
64720         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
64721         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
64722         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64723         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64724         * m4/xstrtol (gl_XSTRTOL): Likewise.
64725
64726         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
64727         AC_TYPE_LONG_LONG_INT.
64728         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
64729         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
64730         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
64731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
64732
64733         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
64734         on stdbool.
64735
64736         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
64737         (gl_PREREQ_XSTRTOUL): Remove.
64738
64739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
64740
64741         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
64742         mode.
64743
64744 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         Add and change modules to make it easier for coreutils to use
64747         gnulib-tool.
64748         * modules/backupfile (Files): Remove m4/d-ino.m4.
64749         (Depends-on): Add d-ino.
64750         * modules/cycle-check (Depends-on): Add stdint.
64751         (lib_SOURCES): Add cycle-check.h.
64752         * modules/d-ino: New module.
64753         * modules/d-type: New module.
64754         * modules/error (Files): Remove m4/strerror_r.m4.
64755         * modules/filemode (Files): Add m4/st_dm_mode.m4.
64756         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64757         m4/inttypes_h.m4, m4/uintmax_t.m4.
64758         (Depends-on): Add stdint.
64759         (lib_SOURCES): Add fsusage.h.
64760         * modules/getcwd (Files): Remove d-ino.m4.
64761         (Depends-on): Add d-ino.
64762         * modules/getndelim2 (Depends-on): Add stdint.
64763         * modules/glob (Files): Remove m4/d-type.m4.
64764         (Depends-on): Add d-type.
64765         * modules/host-os: New module.
64766         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
64767         m4/inttypes_h.m4, m4/uintmax_t.m4.
64768         * Depends-on: Add stdint.
64769         (lib_SOURCES): Add human.h.
64770         * modules/inttostr (Files): Remove m4/intmax_t.m4,
64771         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
64772         m4/uintmax_t.m4, m4/ulonglong.m4.
64773         (Depends-on): Add stdint.
64774         (EXTRA_DIST): Add inttostr.h.
64775         * modules/lchmod: New module.
64776         * modules/link-follow: New module.
64777         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
64778         (Depends-on): Add lchmod.
64779         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
64780         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
64781         (Depends-on): Add stdint.
64782         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
64783         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
64784         (Depends-on): Add stdint.
64785         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
64786         * modules/perl: New module.
64787         * modules/regex (Depends-on): Add stdint.
64788         * modules/rmdir-errno: New module.
64789         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64790         m4/intmax_t.m4.
64791         (Depends-on): Add stdint.
64792         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
64793         m4/uintmax_t.m4.
64794         (Depends-on): Add stdint.
64795         * modules/unlink-busy: New module.
64796         * modules/utimecmp (Depends-on): Add stdint.
64797         * modules/uptime: New module.
64798         * modules/winsz-ioctl: New module.
64799         * modules/winsz-termios: New module.
64800         * modules/xnanosleep (Depends-on): Add nanosleep.
64801         * modules/ullong_max: Remove.
64802         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
64803         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
64804         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
64805         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
64806         (Depends-on): Add inttypes.
64807         (lib_SOURCES): Add xstrtol.h.
64808         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
64809         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
64810         * MODULES.html.sh: Move 'assert' into the assert section.
64811         Move 'dummy' into the linking section.
64812         Remove ullong_max.
64813         Add section for compatibility checks for POSIX:2001 functions,
64814         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
64815         winsz-ioctl, and winsz-termios into it.
64816         Add lchmod.
64817         Add top-level Misc section and put host-os, perl, and uptime
64818         into it.
64819
64820 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64821
64822         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
64823         now assume the stdint module.  Do not include inttypes.h.
64824         * lib/fsusage.h: Likewise.
64825         * lib/getndelim2.c: Likewise.
64826         * lib/human.h: Likewise.
64827         * lib/inttostr.h: Likewise.
64828         * lib/obstack.c: Likewise.
64829         * lib/regex_internal.h: Likewise.
64830         * lib/tempname.c: Likewise.
64831         * lib/utimecmp.c: Likewise.
64832         * lib/xstrtol.h: Likewise.
64833
64834         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
64835
64836         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
64837         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
64838         * lib/xtime.h: Likewise.
64839
64840 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * modules/openat (Files): Add lib/fchmodat.c.
64843         Fixes problem reported by Jay Youngman.
64844
64845 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64846
64847         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
64848         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
64849
64850 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
64851             Bruno Haible  <bruno@clisp.org>
64852
64853         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
64854         and is a script that invokes bison. Tighten the code. Add comments.
64855
64856 2006-08-18  Jim Meyering  <jim@meyering.net>
64857
64858         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
64859         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
64860         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
64861         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
64862
64863 2006-08-18  Bruno Haible  <bruno@clisp.org>
64864
64865         * modules/bison-i18n: New file.
64866         * MODULES.html.sh (Internationalization functions): Add it.
64867
64868 2006-08-18  Bruno Haible  <bruno@clisp.org>
64869
64870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
64871         sys/statvfs.h. When getmntinfo was found, check its declaration and
64872         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
64873
64874 2006-08-18  Bruno Haible  <bruno@clisp.org>
64875
64876         * m4/bison-i18n.m4: New file, from bison.
64877
64878 2006-08-18  Bruno Haible  <bruno@clisp.org>
64879
64880         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
64881         (ME_DUMMY): Treat "kernfs" as a dummy.
64882         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
64883
64884 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64885
64886         Update from coreutils.
64887
64888         2006-08-15  Jim Meyering  <jim@meyering.net>
64889
64890         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
64891
64892         2006-01-17  Jim Meyering  <jim@meyering.net>
64893
64894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
64895
64896         2006-01-11  Jim Meyering  <jim@meyering.net>
64897
64898         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
64899         Check for the lchmod function.
64900
64901 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64902
64903         Update from coreutils.
64904
64905         * lib/__fpending.h: Add copyright notice.
64906         * lib/fprintftime.h: Likewise.
64907         * lib/savedir.c: Use (C) in copyright notice.
64908         * lib/savedir.h: Likewise.
64909
64910         2006-08-15  Jim Meyering  <jim@meyering.net>
64911
64912         * lib/at-func.c: New file, with the logic of all emulated at-functions.
64913         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
64914         in support of the EXPECTED_ERRNO macro.
64915         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
64916         definitions.  Instead, define the appropriate symbols and include
64917         "at-func.c".
64918         * lib/mkdirat.c (mkdirat): Likewise.
64919         * lib/fchmodat.c (fchmodat): Likewise.
64920         (ENOSYS): Remove definition.
64921         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
64922         it.  Don't include "unistd--.h" -- it wasn't ever used.
64923
64924         2006-01-17  Jim Meyering  <jim@meyering.net>
64925
64926         Rewrite fts.c not to change the current working directory,
64927         by using openat, fstatat, fdopendir, etc..
64928
64929         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
64930         (HAVE_OPENAT_SUPPORT): Define.
64931         [_LIBC] (fchdir): Don't undef or define; no longer used.
64932         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
64933         Now, this `function' always succeeds, and consumes its file descriptor
64934         parameter -- so callers must not close such FDs.  Update callers.
64935         (diropen_fd, opendirat, cwd_advance_fd): New functions.
64936         (diropen): Add parameter, SP.  Adjust all callers.
64937         Implement using diropen_fd, rather than open.
64938         (fts_open): Initialize new member, fts_cwd_fd.
64939         Remove fts_rft-setting code.
64940         (fts_close): Close fts_cwd_fd, if necessary.
64941         (__opendir2): Define in terms of opendir or opendirat,
64942         depending on whether the FST_NOCHDIR flag is set.
64943         (fts_build): Since fts_safe_changedir consumes its FD, and since
64944         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
64945         and close the dup'd file descriptor upon failure.
64946         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
64947         (fts_safe_changedir): Tweak semantics to reflect that this function
64948         now calls cwd_advance_fd and hence consumes its FD argument.
64949         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
64950         [struct FTS] (fts_rft): Remove now-unused member.
64951         [struct FTS] (fts_cycle.state): Improve comment.
64952
64953         * lib/openat.c (openat_needs_fchdir): New function.
64954         * lib/openat.h (openat_needs_fchdir): Declare it.
64955
64956 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64957
64958         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
64959         Problem and fix reported by PĂ¡draig Brady in
64960         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
64961
64962 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
64965
64966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         * lib/memcoll.c (memcoll): Optimize for the common case where the
64969         arguments are bytewise equal.
64970
64971 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64972
64973         * doc/regexprops-generic.texi: Add a copyright notice.
64974
64975 2006-08-15  Bruno Haible  <bruno@clisp.org>
64976
64977         * modules/tmpdir (License): Change to LGPL.
64978
64979 2006-08-15  Bruno Haible  <bruno@clisp.org>
64980
64981         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
64982         module.
64983
64984 2006-08-14  Simon Josefsson  <jas@extundo.com>
64985
64986         * config/srclist.txt: Add gnupload.
64987
64988 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         Change copyright notice from LGPL 2 to GPL 2, since that's the
64991         standard form used in the gnulib repository.
64992         * tests/test-lock.c: Likewise.
64993         * tests/test-stdint.c: Likewise.
64994         * tests/test-tls.c: Likewise.
64995
64996         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
64997         prelude-manager.  User shorter URLs for GNU projects, without '?'.
64998         Add copyright notice.
64999
65000         * check-module: Add copyright notice.  Output a copyright
65001         notice if "--version" is specified.
65002         * modules/COPYING: New file.
65003         * tests/test-getaddrinfo.c: Add copyright notice.
65004         * tests/test-verify.c: Likewise.
65005
65006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65007
65008         Change copyright notice from LGPL 2 to GPL 2, since that's the
65009         standard form used in the gnulib repository.
65010         * lib/lock.c: LGPL -> GPL.
65011         * lib/lock.h: Likewise.
65012         * lib/strnlen1.c: Likewise.
65013         * lib/strnlen1.h: Likewise.
65014         * lib/tls.c: Likewise.
65015         * lib/tls.h: Likewise.
65016         * lib/tmpdir.c: Likewise.
65017
65018         * lib/TODO: Remove; this belongs only in coreutils.
65019
65020 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         Add copyright notices to long-enough files that lack them, since
65023         otherwise the files aren't clearly free.  Use the same notice that
65024         getdate.texi already uses.
65025         * doc/alloca-opt.texi: Add copyright notice.
65026         * doc/alloca.texi: Likewise.
65027         * doc/ctime.texi: Likewise.
65028         * doc/functions.texi: Likewise.
65029         * doc/gcd.texi: Likewise.
65030         * doc/gnulib-tool.texi: Likewise.
65031         * doc/inet_ntoa.texi: Likewise.
65032         * doc/visibility.texi: Likewise.
65033
65034         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65035         * doc/quote.texi: Add copyright notice.
65036
65037         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65038         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65039         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65040         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65041         is now obsolete, and give a pointer to the Sun list.
65042         Add copyright notice.
65043
65044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * config/srclistvars.sh: Add copyright notice.
65047
65048 2006-08-14  Eric Blake  <ebb9@byu.net>
65049
65050         Import the following change from libc:
65051
65052         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65053
65054         Upstream bug 2997.
65055         * lib/misc/error.c: Add space between program name and message if file
65056         name is missing.
65057
65058 2006-08-12  Karl Berry  <karl@gnu.org>
65059
65060         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65061         remove, these originate in gnulib now.
65062
65063 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65064
65065         * doc/Makefile (standards.info standards.html standards.dvi):
65066         Also depend on make-stds.texi.
65067
65068 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65071         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65072
65073         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65074         in wchar_t.  Problem reported by Eric Blake.
65075
65076         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65077         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65078         Also, help the compiler to keep LEN in a register.
65079
65080 2006-08-11  Eric Blake  <ebb9@byu.net>
65081
65082         * users.txt: Sort.  Add tar.
65083
65084 2006-08-11  Bruno Haible  <bruno@clisp.org>
65085
65086         * users.txt: New file.
65087
65088 2006-08-11  Bruno Haible  <bruno@clisp.org>
65089
65090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65091         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65092
65093 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * modules/snprintf (Depends-on): Remove minmax.
65096         (Maintainer): Add self and Bruno.
65097
65098 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65101         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65102         (EOVERFLOW): Define if the system does not.
65103         Do not include "minmax.h"; it wasn't used.
65104         (snprintf): Don't assume size_t promotes to an unsigned type.
65105         Fix bug when generated string was too long for the buffer: the
65106         buffer's contents are supposed to be the initial prefix of the
65107         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65108         exceeds INT_MAX; do the check ourselves.
65109
65110         Import the following changes from libc:
65111
65112         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65113
65114         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65115         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65116         set wc to the byte which couldn't be converted.
65117         (re_string_reconstruct): Don't clear valid_raw_len before calling
65118         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65119         tip_context using re_string_context_at.
65120
65121         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65122
65123         * lib/posix/regex.h: g++ still cannot handled [restrict].
65124
65125         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65126
65127         * lib/posix/regex.h: Remove special handling for VMS.
65128
65129 2006-08-10  Jim Meyering  <jim@meyering.net>
65130
65131         * modules/same-inode: New module.
65132         * modules/dev-ino: New module.
65133         * modules/cycle-check: Depend on these modules, rather than simply
65134         including their .h files.
65135         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65136         required via m4/cycle-check.m4.
65137         * modules/same: Depend on new same-inode module, rather than
65138         including same-inode.h.
65139         * modules/chdir-safer: New file.
65140
65141         * modules/chown (Depends-on): Add stat-macros.
65142
65143 2006-08-10  Jim Meyering  <jim@meyering.net>
65144
65145         * m4/cycle-check.m4: New file.
65146         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65147         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65148
65149 2006-08-10  Eric Blake  <ebb9@byu.net>
65150
65151         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65152         in from original proposal.
65153
65154 2006-08-10  Eric Blake  <ebb9@byu.net>
65155         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65156
65157         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65158         namespace.
65159
65160 2006-08-10  Bruno Haible  <bruno@clisp.org>
65161
65162         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65163         as well.
65164
65165 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         Sync from coreutils.
65168
65169         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65170
65171         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65172         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65173
65174 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * modules/restrict: Remove; no longer needed now that we assume
65177         Autoconf 2.59 or later.
65178         * MODULES.html.sh: Remove 'restrict'.
65179         * modules/argp (Depends-on): Remove 'restrict'.
65180         * modules/base64 (Depends-on): Likewise.
65181         * modules/gc (Depends-on): Likewise.
65182         * modules/getaddrinfo (Depends-on): Likewise.
65183         * modules/glob (Depends-on): Likewise.
65184         * modules/inet_ntop (Depends-on): Likewise.
65185         * modules/inet_pton (Depends-on): Likewise.
65186         * modules/memxor (Depends-on): Likewise.
65187         * modules/regex (Depends-on): Likewise.
65188         * modules/strtok_r (Depends-on): Likewise.
65189         * modules/time_r (Depends-on): Likewise.
65190
65191 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65192
65193         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65194         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65196         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65197         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65198         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65199         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65200         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65201
65202         Merge from coreutils.
65203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65204         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65206         * m4/time_r.m4 (gl_TIME_R): Likewise.
65207
65208 2006-08-09  Karl Berry  <karl@gnu.org>
65209
65210         * config/srclist.txt: no more gettext-tools, per Bruno.
65211
65212 2006-08-08  Eric Blake  <ebb9@byu.net>
65213
65214         * modules/verror: New module.
65215         * MODULES.html.sh: Document it.
65216
65217 2006-08-08  Eric Blake  <ebb9@byu.net>
65218
65219         * lib/verror.h, lib/verror.c: New files.
65220
65221 2006-08-08  Eric Blake  <ebb9@byu.net>
65222
65223         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65224         verror_at_line output complies with GNU Coding Standards even when
65225         file is NULL.
65226
65227 2006-08-07  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65230         versions of AIX.
65231         Reported by Ralf Wildenhues.
65232
65233 2006-08-07  Bruno Haible  <bruno@clisp.org>
65234
65235         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65236         in an AC_DEFUN. Needed so that the autoconf snippets can use
65237         AC_REQUIRE.
65238
65239 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65240
65241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65242         Initialize pkgdata_DATA.
65243         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65244         overriding it.
65245
65246 2006-08-06  Eric Blake  <ebb9@byu.net>
65247
65248         * lib/error.h: Fold in some upstream changes from glibc.
65249         * lib/error.c: Likewise.
65250
65251 2006-08-04  Bruno Haible  <bruno@clisp.org>
65252
65253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65254         Make the mostlyclean-local rule depend on mostlyclean-generic.
65255         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65256
65257 2006-07-31  Bruno Haible  <bruno@clisp.org>
65258
65259         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65260         <stdlib.h>, <string.h>.
65261
65262 2006-07-30  Bruno Haible  <bruno@clisp.org>
65263
65264         * modules/readlink (License): Change to LGPL.
65265
65266 2006-07-30  Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65269         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65270         set PKGDATADIR to point to it.
65271
65272 2006-07-30  Bruno Haible  <bruno@clisp.org>
65273
65274         * modules/csharpexec (configure.ac): Comment out macro invocation.
65275         * modules/javaexec (configure.ac): Likewise.
65276         * modules/javacomp-script (configure.ac): Likewise.
65277
65278         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65279
65280 2006-07-30  Bruno Haible  <bruno@clisp.org>
65281
65282         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65283         linked-list.
65284
65285 2006-07-30  Bruno Haible  <bruno@clisp.org>
65286
65287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65288
65289 2006-07-30  Bruno Haible  <bruno@clisp.org>
65290
65291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65292         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65293         get removed.
65294
65295 2006-07-29  Bruno Haible  <bruno@clisp.org>
65296
65297         Make it possible for gnulib-tool to work with locally modified or
65298         augmented gnulib repositories.
65299         * gnulib-tool (func_usage): Document --local-dir option.
65300         (local_gnulib_dir): New variable.
65301         Handle --local-dir option.
65302         (func_lookup_file): New function.
65303         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65304         (func_get_description, func_get_filelist, func_get_description,
65305         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65306         func_get_automake_snippet, func_get_include_directive,
65307         func_get_license, func_get_maintainer): Use func_lookup_file.
65308         (func_import, func_create_testdir): Use func_lookup_file.
65309
65310 2006-07-29  Bruno Haible  <bruno@clisp.org>
65311
65312         * modules/setenv (Depends-on): Add unistd.
65313
65314 2006-07-29  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65317
65318 2006-07-29  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65321
65322 2006-07-29  Bruno Haible  <bruno@clisp.org>
65323
65324         * gnulib-tool (import, update): If there is no Makefile.am, look at
65325         aclocal.m4, instead of bailing out.
65326
65327 2006-07-29  Bruno Haible  <bruno@clisp.org>
65328
65329         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65330         Categorize the options by when they are useful.
65331
65332 2006-07-29  Bruno Haible  <bruno@clisp.org>
65333
65334         * gnulib-tool (func_usage): Document option --no-libtool.
65335         Handle option --no-libtool.
65336         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65337         for changed semantics of $libtool variable.
65338         (func_import): Likewise. If libtool is not used, show this through
65339         an option --no-libtool.
65340         (func_create_testdir): Update.
65341
65342 2006-07-29  Bruno Haible  <bruno@clisp.org>
65343
65344         * gnulib-tool (func_import): Extend error message about missing
65345         --doc-base.
65346
65347 2006-07-29  Bruno Haible  <bruno@clisp.org>
65348
65349         * gnulib-tool (func_import): Don't create the $docbase directory if
65350         there is no file to store there.
65351
65352 2006-07-29  Bruno Haible  <bruno@clisp.org>
65353
65354         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65355         relevant, look for configure.ac there, not in the current directory.
65356         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65357
65358 2006-07-29  Bruno Haible  <bruno@clisp.org>
65359
65360         * gnulib-tool (SORT): New variable.
65361         (func_usage): Undocument --assume-autoconf option.
65362         Remove --assume-autoconf option handling.
65363         (autoconf_minversion): Determine from the contents of configure.ac.
65364         (func_import): Remove autoconf_minversion handling.
65365         Suggested by Eric Blake.
65366
65367 2006-07-29  Bruno Haible  <bruno@clisp.org>
65368
65369         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65370
65371 2006-07-29  Bruno Haible  <bruno@clisp.org>
65372
65373         * config/srclist.txt (*setenv.[ch]): Remove rules.
65374
65375 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65376
65377         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65378
65379 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65380
65381         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65382         arpa/inet.h.
65383
65384 2006-07-28  Simon Josefsson  <jas@extundo.com>
65385
65386         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65387         * modules/inet_pton (Depends-on): Likewise.
65388
65389 2006-07-28  Simon Josefsson  <jas@extundo.com>
65390
65391         * m4/netinet_in_h.m4: New file.
65392
65393 2006-07-28  Simon Josefsson  <jas@extundo.com>
65394
65395         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65396         #include's.
65397
65398 2006-07-28  Simon Josefsson  <jas@extundo.com>
65399
65400         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65401         #include's.
65402
65403 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65406         setgid on directories only if they set these bits.
65407         * lib/modechange.h: Remove obsolete comment about masks.
65408
65409 2006-07-28  Eric Blake  <ebb9@byu.net>
65410
65411         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65412         macro expansion.
65413
65414 2006-07-28  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65417
65418 2006-07-28  Bruno Haible  <bruno@clisp.org>
65419
65420         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65421
65422 2006-07-28  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65425         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65426         Define fallbacks.
65427         Avoids link error on FreeBSD 4.x.
65428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65429
65430         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65431         encoding.
65432         * lib/mbswidth.c (iswcntrl): Likewise.
65433
65434 2006-07-27  Bruno Haible  <bruno@clisp.org>
65435
65436         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65437         test.
65438
65439 2006-07-27  Bruno Haible  <bruno@clisp.org>
65440
65441         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65442         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65443         defined.
65444
65445 2006-07-26  Eric Blake  <ebb9@byu.net>
65446
65447         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65448
65449 2006-07-26  Eric Blake  <ebb9@byu.net>
65450
65451         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65452         like mingw that lack mkstemp.
65453         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65454         avoid compilation warning on mingw.
65455
65456 2006-07-26  Bruno Haible  <bruno@clisp.org>
65457
65458         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65459         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65460         INT_FAST*_MIN, INTPTR_MIN.
65461
65462 2006-07-25  Bruno Haible  <bruno@clisp.org>
65463
65464         * modules/version-etc (Depends-on): Add stdarg.
65465
65466 2006-07-25  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
65469         complex commands.
65470
65471 2006-07-25  Bruno Haible  <bruno@clisp.org>
65472
65473         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
65474         defined in <stdarg.h> or config.h.
65475
65476 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65477
65478         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
65479         (gl_STDIO_SAFER): Remove.
65480
65481 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * MODULES.html.sh (File stream based Input/Output):
65484         Add fopen-safer, tmpfile-safer; remove stdio-safer.
65485         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
65486         * modules/fopen-safer, modules/tmpfile-safer: New files.
65487         * modules/stdio-safer: Remove.
65488
65489 2006-07-24  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/tmpdir: New file.
65492         * MODULES.html.sh (File system functions): Add it.
65493
65494 2006-07-24  Bruno Haible  <bruno@clisp.org>
65495
65496         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
65497         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
65498
65499 2006-07-24  Bruno Haible  <bruno@clisp.org>
65500
65501         * modules/clean-temp: New file.
65502
65503 2006-07-24  Bruno Haible  <bruno@clisp.org>
65504
65505         * m4/tmpdir.m4: New file, from GNU gettext.
65506
65507 2006-07-24  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/tmpdir.h: New file, from GNU gettext.
65510         * lib/tmpdir.c: New file, from GNU gettext.
65511
65512 2006-07-24  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/clean-temp.h: New file, from GNU gettext.
65515         * lib/clean-temp.c: New file, from GNU gettext.
65516
65517 2006-07-23  Eric Blake  <ebb9@byu.net>
65518
65519         * modules/stdio-safer (Files): Add tmpfile-safer.c.
65520         (Depends-on): Add binary-io.
65521
65522 2006-07-23  Eric Blake  <ebb9@byu.net>
65523
65524         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
65525
65526 2006-07-23  Eric Blake  <ebb9@byu.net>
65527
65528         * lib/tmpfile-safer.c: New file.
65529         * lib/stdio-safer.h (fopen_safer): Add prototype.
65530         * lib/stdio--.h (tmpfile): Make safer.
65531
65532 2006-07-23  Bruno Haible  <bruno@clisp.org>
65533
65534         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
65535         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
65536         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
65537         gl_linked_remove_at): Use it.
65538
65539 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65540         and Simon Josefsson <jas@extundo.com>
65541
65542         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
65543
65544         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
65545
65546 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * modules/close-stream: New file.
65549         * modules/closeout (Description): Make it clear that it exits
65550         with a diagnostic on error.
65551         (Depends-on): Add close-stream.  Remove fpending, stdbool.
65552         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
65553
65554 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * m4/close-stream.m4: New file.
65557
65558 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * lib/close-stream.c, lib/close-stream.h: New files.
65561
65562 2006-07-22  Bruno Haible  <bruno@clisp.org>
65563
65564         Merge from GNU gettext 0.15.
65565
65566         2006-05-01  Bruno Haible  <bruno@clisp.org>
65567
65568                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
65569
65570         2006-07-22  Bruno Haible  <bruno@clisp.org>
65571
65572                 * modules/javaversion: New file.
65573                 * MODULES.html.sh (Java): Add javaversion.
65574
65575         2006-03-12  Bruno Haible  <bruno@clisp.org>
65576
65577                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
65578
65579         2005-12-04  Bruno Haible  <bruno@clisp.org>
65580
65581                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
65582                 (untested).
65583
65584         2006-06-21  Bruno Haible  <bruno@clisp.org>
65585
65586                 Avoid warnings from recent versions of mcs.
65587                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
65588                 -o, -L, -r any more. Use options documented since mcs-1.0
65589                 instead. Similarly for -g.
65590
65591         2005-12-04  Bruno Haible  <bruno@clisp.org>
65592
65593                 * build-aux/csharpcomp.sh.in: Suffix for resources is
65594                 .resources, not .resource.
65595
65596         2005-07-09  Bruno Haible  <bruno@clisp.org>
65597
65598                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
65599                 add a .dll suffix.
65600                 Reported by Mark Junker <mjscod@gmx.de>.
65601
65602         2006-07-22  Bruno Haible  <bruno@clisp.org>
65603
65604                 * modules/gettext: Upgrade to gettext-0.15.
65605                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
65606                 m4/visibility.m4.
65607                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
65608
65609 2006-07-22  Bruno Haible  <bruno@clisp.org>
65610
65611         Merge from GNU gettext 0.15.
65612
65613         2006-03-25  Bruno Haible  <bruno@clisp.org>
65614
65615                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
65616
65617         2006-07-21  Bruno Haible  <bruno@clisp.org>
65618
65619                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
65620                 "1.1".
65621
65622         2006-05-09  Bruno Haible  <bruno@clisp.org>
65623
65624                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
65625                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
65626                 for the conftestver execution.
65627
65628         2006-05-01  Bruno Haible  <bruno@clisp.org>
65629
65630                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
65631                 optional target-version argument. Verify that the compiler
65632                 groks source of the specified source-version, or add -source
65633                 option as necessary. Verify that the compiler produces
65634                 bytecode in the specified target-version, or add -target and
65635                 -source options as necessary. Make the result of the test
65636                 available as variable CONF_JAVAC. Also log error output in
65637                 config.log.
65638
65639         2006-03-11  Bruno Haible  <bruno@clisp.org>
65640
65641                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
65642
65643         2006-05-09  Bruno Haible  <bruno@clisp.org>
65644
65645                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
65646                 CLASSPATH_SEPARATOR to a semicolon.
65647
65648         2006-03-12  Bruno Haible  <bruno@clisp.org>
65649
65650                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
65651                 available as variable CONF_JAVA, for subsequent autoconf
65652                 tests. Also log error output in config.log.
65653
65654         2006-07-19  Bruno Haible  <bruno@clisp.org>
65655
65656                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
65657                 that getline works on glibc2 systems. Needed to avoid trouble
65658                 in relocatable.c.
65659                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
65660
65661         2005-12-04  Bruno Haible  <bruno@clisp.org>
65662
65663                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
65664                 launcher (untested).
65665
65666         2005-12-04  Bruno Haible  <bruno@clisp.org>
65667
65668                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
65669
65670         2006-07-22  Bruno Haible  <bruno@clisp.org>
65671
65672                 * gettext.m4: Update from GNU gettext-0.15.
65673                 * nls.m4: Likewise.
65674                 * po.m4: Likewise.
65675                 * inttypes-pri.m4: Likewise.
65676                 * inttypes-h.m4: Renamed from inttypes.m4.
65677                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
65678
65679 2006-07-22  Bruno Haible  <bruno@clisp.org>
65680
65681         Merge from GNU gettext 0.15.
65682
65683         2005-07-05  Bruno Haible  <bruno@clisp.org>
65684
65685                 * printf-args.c (printf_fetchargs): Work around broken
65686                 definition of wint_t on mingw.
65687
65688         2005-02-12  Bruno Haible  <bruno@clisp.org>
65689
65690                 * xallocsa.h: Add extern "C" for C++.
65691
65692         2006-05-17  Bruno Haible  <bruno@clisp.org>
65693
65694                 Cygwin portability.
65695                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
65696
65697         2006-04-30  Bruno Haible  <bruno@clisp.org>
65698
65699                 * progreloc.c: Include <mach-o/dyld.h> if available.
65700                 (find_executable): Use _NSGetExecutablePath when possible.
65701
65702         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65703
65704                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
65705                 function.
65706
65707         2005-12-29  Bruno Haible  <bruno@clisp.org>
65708
65709                 * progreloc.c (set_program_name_and_installdir): Fix
65710                 compilation error.
65711
65712         2005-12-04  Bruno Haible  <bruno@clisp.org>
65713
65714                 Cygwin portability.
65715                 * progreloc.c: Include <windows.h> also on Cygwin.
65716                 (find_executable): Add support for Cygwin.
65717                 (set_program_name_and_installdir): Handle also platforms with
65718                 nonempty EXEEXT.
65719
65720         2006-07-11  Bruno Haible  <bruno@clisp.org>
65721
65722                 * javacomp.c: Fix a comment.
65723                 Reported by Jim Meyering.
65724
65725         2006-04-30  Bruno Haible  <bruno@clisp.org>
65726
65727                 * javacomp.h (compile_java_class): Add source_version,
65728                 target_version arguments.
65729                 * javacomp.c: Rewritten to choose only a compiler that
65730                 respects the specified source_version and target_version.
65731
65732         2006-06-27  Bruno Haible  <bruno@clisp.org>
65733
65734                 Assume correct S_ISDIR macro.
65735                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
65736
65737         2006-07-22  Bruno Haible  <bruno@clisp.org>
65738
65739                 * javaversion.h: New file, from GNU gettext.
65740                 * javaversion.c: New file, from GNU gettext.
65741                 * javaversion.java: New file, from GNU gettext.
65742                 * javaversion.class: New file, from GNU gettext.
65743
65744         2006-05-17  Bruno Haible  <bruno@clisp.org>
65745
65746                 Cygwin portability.
65747                 * javaexec.c (execute_java_class): Test for jview program
65748                 also on Cygwin.
65749
65750         2006-04-09  Bruno Haible  <bruno@clisp.org>
65751
65752                 * fatal-signal.c: Don't include string.h.
65753                 (at_fatal_signal): Use a copying loop instead of memcpy.
65754
65755         2005-12-04  Bruno Haible  <bruno@clisp.org>
65756
65757                 * csharpexec.c: Add support for 'clix' launcher (untested).
65758                 (execute_csharp_using_sscli): New function.
65759                 (execute_csharp_program): Call it.
65760
65761         2006-06-21  Bruno Haible  <bruno@clisp.org>
65762
65763                 Avoid warnings from recent versions of mcs.
65764                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
65765                 -o, -L, -r any more. Use options documented since mcs-1.0
65766                 instead. Similarly for -g.
65767
65768         2005-07-09  Bruno Haible  <bruno@clisp.org>
65769
65770                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
65771                 add a .dll suffix.
65772                 Reported by Mark Junker <mjscod@gmx.de>.
65773
65774         2006-06-17  Bruno Haible  <bruno@clisp.org>
65775
65776                 * config.charset: Update for NetBSD 3.0.
65777
65778         2006-05-17  Bruno Haible  <bruno@clisp.org>
65779
65780                 Cygwin portability.
65781                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
65782
65783         2006-05-16  Bruno Haible  <bruno@clisp.org>
65784
65785                 * localcharset.c [CYGWIN]: Include <windows.h>.
65786                 (get_charset_aliases): For Cygwin, return the same CPxxx
65787                 aliases list as under WIN32.
65788                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
65789                 the environment variables. Fall back to GetACP().
65790
65791         2006-04-05  Bruno Haible  <bruno@clisp.org>
65792
65793                 * config.charset: Update Juan Manuel Guerrero's address.
65794
65795         2005-02-12  Bruno Haible  <bruno@clisp.org>
65796
65797                 * allocsa.h: Add extern "C" for C++.
65798
65799         2005-02-10  Bruno Haible  <bruno@clisp.org>
65800
65801                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
65802                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
65803
65804         2006-07-22  Bruno Haible  <bruno@clisp.org>
65805
65806                 * gettext.h: Update to GNU gettext-0.15.
65807
65808 2006-07-22  Bruno Haible  <bruno@clisp.org>
65809
65810         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
65811         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
65812         lib-prefix.m4, longdouble.m4, ssize_t.m4.
65813
65814 2006-07-21  Eric Blake  <ebb9@byu.net>
65815
65816         * modules/stdlib-safer: New file.
65817         * MODULES.html.sh (File stream based Input/Output): Add
65818         stdlib-safer.
65819
65820 2006-07-21  Eric Blake  <ebb9@byu.net>
65821
65822         * lib/stdlib-safer.h: New file from coreutils, required by
65823         stdlib--.h.
65824
65825 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
65828
65829 2006-07-20  Bruno Haible  <bruno@clisp.org>
65830
65831         * gnulib-tool: Recognize new option --assume-autoconf.
65832         (autoconf_minversion): New variable.
65833         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
65834
65835 2006-07-20  Bruno Haible  <bruno@clisp.org>
65836
65837         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
65838
65839 2006-07-19  Derek R. Price  <derek@ximbiot.com>
65840
65841         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
65842         Reindent and repaginate.
65843
65844 2006-07-19  Derek Price  <derek@ximbiot.com>
65845
65846         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
65847         Correct grammar.
65848
65849 2006-07-17  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/list: New file.
65852         * modules/array-list: New file.
65853         * modules/carray-list, modules/carray-list-tests: New files.
65854         * modules/linked-list, modules/linked-list-tests: New files.
65855         * modules/avltree-list, modules/avltree-list-tests: New files.
65856         * modules/rbtree-list, modules/rbtree-list-tests: New files.
65857         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
65858         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
65859         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
65860         * modules/oset: New file.
65861         * modules/array-oset: New file.
65862         * modules/avltree-oset, modules/avltree-oset-tests: New files.
65863         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
65864         * tests/test-carray_list.c: New file.
65865         * tests/test-linked_list.c: New file.
65866         * tests/test-avltree_list.c: New file.
65867         * tests/test-rbtree_list.c: New file.
65868         * tests/test-linkedhash_list.c: New file.
65869         * tests/test-avltreehash_list.c: New file.
65870         * tests/test-rbtreehash_list.c: New file.
65871         * tests/test-avltree_oset.c: New file.
65872         * tests/test-rbtree_oset.c: New file.
65873         * MODULES.html.sh (Container data structures): New section.
65874
65875 2006-07-17  Bruno Haible  <bruno@clisp.org>
65876
65877         * m4/gl_list.m4: New file.
65878
65879 2006-07-17  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/gl_list.h: New file.
65882         * lib/gl_list.c: New file.
65883         * lib/gl_array_list.h: New file.
65884         * lib/gl_array_list.c: New file.
65885         * lib/gl_carray_list.h: New file.
65886         * lib/gl_carray_list.c: New file.
65887         * lib/gl_linked_list.h: New file.
65888         * lib/gl_linked_list.c: New file.
65889         * lib/gl_anylinked_list1.h: New file.
65890         * lib/gl_anylinked_list2.h: New file.
65891         * lib/gl_avltree_list.h: New file.
65892         * lib/gl_avltree_list.c: New file.
65893         * lib/gl_anyavltree_list1.h: New file.
65894         * lib/gl_anyavltree_list2.h: New file.
65895         * lib/gl_rbtree_list.h: New file.
65896         * lib/gl_rbtree_list.c: New file.
65897         * lib/gl_anyrbtree_list1.h: New file.
65898         * lib/gl_anyrbtree_list2.h: New file.
65899         * lib/gl_anytree_list1.h: New file.
65900         * lib/gl_anytree_list2.h: New file.
65901         * lib/gl_linkedhash_list.h: New file.
65902         * lib/gl_linkedhash_list.c: New file.
65903         * lib/gl_anyhash_list1.h: New file.
65904         * lib/gl_anyhash_list2.h: New file.
65905         * lib/gl_avltreehash_list.h: New file.
65906         * lib/gl_avltreehash_list.c: New file.
65907         * lib/gl_rbtreehash_list.h: New file.
65908         * lib/gl_rbtreehash_list.c: New file.
65909         * lib/gl_anytreehash_list1.h: New file.
65910         * lib/gl_anytreehash_list2.h: New file.
65911
65912         * lib/gl_oset.h: New file.
65913         * lib/gl_oset.c: New file.
65914         * lib/gl_array_oset.h: New file.
65915         * lib/gl_array_oset.c: New file.
65916         * lib/gl_avltree_oset.h: New file.
65917         * lib/gl_avltree_oset.c: New file.
65918         * lib/gl_rbtree_oset.h: New file.
65919         * lib/gl_rbtree_oset.c: New file.
65920         * lib/gl_anytree_oset.h: New file.
65921
65922 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * m4/mkancesdirs.m4: New file.
65925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
65926         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
65927         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
65928         it.
65929
65930 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
65933         * lib/mkancesdirs.h: New files.
65934         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
65935         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
65936         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
65937         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
65938         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
65939         callers changed.  Revamp internals significantly, by not
65940         attempting to create directories that are temporarily more
65941         permissive than the final results.  Do not attempt to use
65942         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
65943         This removes some race conditions, fixes some bugs, and simplifies
65944         things.  Use new dirchownmod function to do owner and mode changes.
65945         * lib/mkdir-p.h: Likewise.
65946         * lib/modechange.c (octal_to_mode): New function.
65947         (struct mode_change): New member mentioned.
65948         (make_node_op_equals): New arg mentioned.  All callers changed.
65949         (mode_compile): Keep track of which mode bits the user has explicitly
65950         mentioned.
65951         (mode_adjust): New arg DIR, so that we implement the X op correctly.
65952         New arg PMODE_BITS, to keep track of which mode bits the user
65953         mentioned; it treats S_ISUID and S_ISGID speciall.
65954         All callers changed.
65955         * lib/modechange.h: Likewise.
65956
65957 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         * MODULES.html.sh: Add mkancestors.
65960         * modules/mkancesdirs: New module.
65961         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
65962         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
65963         The chdir-safer and afs files are now orphans; I'll remove them
65964         unless someone speaks up.
65965         Add lib/dirchownmod.c, lib/dirchownmod.h.
65966         (Depends-on): Remove alloca, chown, save-cwd, dirname.
65967         Add lchown, mkancesdirs.
65968         (Maintainer): Add self.
65969
65970 2006-07-15  Karl Berry  <karl@gnu.org>
65971
65972         * gnulib-tool: help message wording/arrangement.
65973
65974 2006-07-14  Simon Josefsson  <jas@extundo.com>
65975
65976         * doc/gnulib.texi (Libtool and Windows): New section.
65977
65978 2006-07-12  Simon Josefsson  <jas@extundo.com>
65979
65980         * modules/gendocs (License): Fix license, approved by Karl.
65981
65982 2006-07-12  Eric Blake  <ebb9@byu.net>
65983
65984         * MODULES.html.sh: Add gendocs.
65985
65986 2006-07-11  Eric Blake  <ebb9@byu.net>
65987
65988         * modules/fdl: New module, to install doc/fdl.texi.
65989         * MODULES.html.sh: Add new section for documentation modules.
65990         * gnulib-tool: Avoid space-tab.
65991         (--doc-base): New option, to manage files from doc.
65992
65993 2006-07-11  Eric Blake  <ebb9@byu.net>
65994
65995         * m4/absolute-header.m4: Fix comments to match recent change.
65996
65997 2006-07-11  Eric Blake  <ebb9@byu.net>
65998
65999         * gnulib-tool: List --doc-base before --tests-base.
66000
66001 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66002
66003         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66004
66005 2006-07-11  Bruno Haible  <bruno@clisp.org>
66006
66007         * README: Mention where to put documentation.
66008
66009 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66010
66011         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66012
66013 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66014
66015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66016         to stdint.m4.
66017
66018 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66021         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66022         "no/such/file/stdint.h" when there is no such file, so that
66023         the resulting C code can be parsed by dodgy compilers.
66024         Problems reported by Bob Proulx.
66025
66026 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66027
66028         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66029         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66030         macros into the GNU _D_EXACT_NAMLEN.
66031         * lib/savedir.c:  Likewise.
66032         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66033
66034 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66035         and Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66038         * m4/savedir.m4:
66039         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66040         macros into the GNU _D_EXACT_NAMLEN.
66041
66042 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66045         around the absolute name, to work around a problem with the HP-UX
66046         11.23 native C compiler, reported by Bob Proulx.
66047
66048 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         * doc/maintain.texi, make-stds.texi: Sync from
66051         <http://savannah.gnu.org/projects/gnustandards>.
66052
66053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66056
66057 2006-07-09  Jim Meyering  <jim@meyering.net>
66058
66059         * m4/glob.m4: Remove a doubled word in a comment.
66060
66061 2006-07-09  Jim Meyering  <jim@meyering.net>
66062
66063         * lib/argp-pv.c: Remove a doubled word in a comment.
66064         * lib/check-version.c (check_version): Likewise.
66065         * lib/javacomp.c (compile_java_class): Likewise.
66066
66067 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66070         for the benefit of people using Autoconf 2.60.  If you want to
66071         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66072         (or m4/onceonly.m4, if pre-2.57) manually.
66073
66074 2006-07-08  Jim Meyering  <jim@meyering.net>
66075
66076         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66077         comment.
66078         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66079         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66080         comment.
66081
66082 2006-07-08  Jim Meyering  <jim@meyering.net>
66083
66084         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66085
66086 2006-07-07  Simon Josefsson  <jas@extundo.com>
66087
66088         * tests/test-crc.c: Change expected crc value, the test vector
66089         were probably computed using the old broken crc.c?
66090
66091 2006-07-06  Simon Josefsson  <jas@extundo.com>
66092
66093         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66094         now the canonical place for the M4 file).
66095
66096         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66097         from the sys_socket dependency now.
66098
66099         * modules/inet_pton (Files): Ditto.
66100
66101         * modules/inet_ntop (Files): Ditto.
66102
66103 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66104
66105         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66106         not gl_PREREQ_GETUSERSHELL.
66107
66108 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66109
66110         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66111         with only one argument, for Autoconf 2.60.
66112         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66113         expand to nothing, so add a shell command to avoid syntax error.
66114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66115
66116 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66117
66118         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66119
66120 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66123         no longer needed.  Check for isblank decl.
66124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66125         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66126         of existence.
66127
66128 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66129
66130         * lib/getloadavg.c: Use __VMS, not VMS.
66131         * lib/getopt.c: Likewise.
66132         * lib/getpagesize.h: Likewise.
66133         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66134         and probably does not work.
66135
66136 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66137
66138         * lib/.cppi-disable: Add wcwidth.
66139         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66140         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66141         (ISGRAPH): Remove.  All uses changed to isgraph.
66142         (FOLD) [!defined _LIBC]: Remove special case.
66143         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66144         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66145         HAVE_ISBLANK.
66146         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66147         case.
66148
66149 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66150
66151         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66152         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66153         brackets.  Other minor changes to suppress some compiler
66154         warnings.
66155
66156 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66157         and Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66160         of invoking obsolescent AC_HEADER_DIRENT macro.
66161         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66162         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66163         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66164         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66165         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66166         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66167         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66168         * m4/readdir.m4: Remove; no longer needed.
66169
66170 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66171         and Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66174         Don't worry about this obsolete case any more.
66175         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66176         directories.
66177         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66178         worry about this obsolete case any more.
66179         * lib/fts.c: Likewise.
66180         * lib/getcwd.c: Likewise.
66181         * lib/glob.h: Likewise.
66182         * lib/savedir.c: Likewise.
66183
66184 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66187         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66188         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66189         needed.
66190         All uses removed.
66191         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66192         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66193         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66194         needed.
66195         * m4/getdate.m4 (gl_GETDATE): Likewise.
66196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66197         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66200         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66202         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66203         needed.
66204
66205 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66206
66207         * lib/memcasecmp.c: Include <limits.h>.
66208         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66209         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66210         Don't assume isdigit succeeds only on '0' through '9'.
66211
66212 2006-07-05  Eric Blake  <ebb9@byu.net>
66213
66214         * modules/getaddrinfo (Depends-on): Add snprintf.
66215
66216 2006-07-05  Eric Blake  <ebb9@byu.net>
66217
66218         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66219         to avoid 'header present but could not be compiled' on cygwin.
66220
66221 2006-07-05  Eric Blake  <ebb9@byu.net>
66222
66223         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66224         missing from netdb.h.
66225         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66226
66227 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66228
66229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66230         no longer needed.
66231         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66232         * m4/getdate.m4 (gl_GETDATE): Likewise.
66233         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66234         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66235         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66236         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66237         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66238
66239 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66240
66241         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66242         All uses of is_space replaced by isspace.
66243         * lib/exit.h: Don't talk about STDC_HEADERS.
66244         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66245         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66246         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66247         replaced by isprint etc.
66248         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66249         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66250         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66251         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66252         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66253         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66254
66255 2006-07-05  Bruno Haible  <bruno@clisp.org>
66256
66257         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66258         the function exists, before testing against AIX.
66259         Reported by Martin Lambers <marlam@marlam.de>.
66260
66261 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66264         From Mark D. Baushke.
66265
66266 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66267
66268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66269         to the absolute name, not just one, to bypass Sun C 5.8's
66270         "warning: #include of /usr/include/... may be non-portable".
66271
66272 2006-07-04  Eric Blake  <ebb9@byu.net>
66273
66274         * modules/dirname-tests: New test module.
66275         * tests/test-dirname.c: New file, replacing dirname.c
66276         TEST_DIRNAME section that was recently deleted.
66277
66278 2006-07-04  Bruno Haible  <bruno@clisp.org>
66279
66280         Assume ANSI C header files and <ctype.h> functions.
66281         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66282         (mbsnwidth): Use isprint, iscntrl instead.
66283
66284 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         Merge from coreutils.
66287         * MODULES.html.sh: Add xstrtold.
66288         * modules/xstrtold: New file.
66289         * modules/cycle-check (Files): Add lib/same-inode.h.
66290         * modules/dirname (Files): Add m4/double-slash-root.m4.
66291         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66292         * modules/mkdir-p (Files): Add lib/same-inode.h.
66293         * modules/same (Files): Add lib/same-inode.h.
66294
66295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66298         This is to keep the terminology clean; POSIX talks about
66299         "absolute pathnames", not "full pathnames", but the GNU
66300         Coding Standards say to use "path" for something else;
66301         so use "absolute" to keep both sides happy.
66302         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66303         Set gl_absolute_header, not gl_full_header_path.
66304         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66305         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66306         All uses changed.
66307
66308         Merge from coreutils.
66309
66310         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66313         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66314         want to require the building of c-strtod.o.
66315         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66316         needs -lm directly.
66317         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66318
66319         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66322         --as-needed option if available.  Problem reported by Albert Chin in
66323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66324         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66325         cc merely issues a bunch of annoying warnings for --as-needed
66326         (this problem was reported by Bob Proulx).  Also, try linking with
66327         -lm to detect a bug in binutils 2.16 (this problem was reported
66328         by Ralf Wildenhues).
66329
66330         2006-06-18  Jim Meyering  <jim@meyering.net>
66331
66332         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66334         macro.
66335         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66336         also check for glibc-2.4's abort-inducing bug.
66337
66338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66339         Low-probability clean-up should be to use rmdir to get rid of
66340         the just-created directory, not unlink.
66341
66342         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66343         configure fail, and request a bug report to inform us about it.
66344         Add a comment that, barring reports to the contrary, in 2007 we'll
66345         assume ftruncate is universally available.
66346
66347         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66350
66351         2006-03-12  Jim Meyering  <jim@meyering.net>
66352
66353         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66355         * m4/same.m4 (gl_SAME): Likewise.
66356         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66357
66358         2006-03-11  Eric Blake  <ebb9@byu.net>
66359
66360         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66361         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66362         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66363         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66364
66365 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66368         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66369         reported by Mark D. Baushke, one in
66370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66371
66372         Merge from coreutils.
66373
66374         * lib/.cppi-disable: Add stdint_.h.
66375         * lib/.cvsignore: Add stdint.h.
66376
66377         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66380         both double and long double versions.
66381         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66382         * lib/xstrtold.c: New file.
66383         * lib/xstrtod.h (xstrtold): New decl.
66384
66385         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         * lib/filemode.c (setst): Remove.
66388         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66389         (arguably) clearer, and the generated code is a bit smaller on my
66390         Debian GNU/Linux stable x86 host.
66391
66392         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66395         Assume that filemode.h includes sys/types.h and sys/stat.h.
66396         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66397         (ftypelet): Reorder to put common cases first, for efficiency.
66398         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66399         to do 'M'.
66400         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66401         of 10, for compatibility with FreeBSD.  All callers changed.
66402         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66403         types that can't be deduced solely from st_mode.  First arg is now a
66404         const pointer.
66405         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66406         (strmode): Renamed from mode_string.
66407         (filemodestring): New decl.
66408         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66409         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66410         needed.
66411         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66412
66413         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66416         fsusage.h now does that.  Include fsusage.h first, to test interface.
66417         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66418         at most one method (the old code could have generated decls that
66419         didn't conform to C89, not that this was ever exercised).
66420         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66421
66422         2006-03-19  Jim Meyering  <jim@meyering.net>
66423
66424         Work even in a chroot where d_ino values for entries in "/"
66425         don't match the stat.st_ino values for the same names.
66426         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66427         number, iterate through all entries again, using lstat instead.
66428         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66429         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66430
66431         * lib/getcwd.c (__getcwd): Clarify a comment.
66432         Use memcpy in place of a call to strcpy.
66433
66434         2006-03-12  Jim Meyering  <jim@meyering.net>
66435
66436         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66437         matches that of the current directory (which we're about to chdir ".."
66438         out of), then save the dev-ino of the parent, instead.
66439
66440         * lib/same-inode.h (SAME_INODE): New file/macro.
66441         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66442         Include "same-inode.h", instead.
66443         * lib/same.c: Likewise.
66444         * lib/cycle-check.h: Include "same-inode.h".
66445         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66446         * lib/cycle-check.c (SAME_INODE): Remove definition.
66447         * lib/root-dev-ino.h: Include "same-inode.h".
66448
66449         2006-03-11  Eric Blake  <ebb9@byu.net>
66450
66451         * lib/same.c (same_name): s/base_name/last_component/
66452         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66453         * lib/filenamecat.c (file_name_concat): Likewise.
66454
66455         2006-03-11  Eric Blake  <ebb9@byu.net>,
66456                     Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66459         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66460         drive prefix.
66461         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66462         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66463         (last_component): New method.
66464         * lib/dirname.c (dir_len): Determine when drive letters need a
66465         subsequent slash.  Preserve // when it is special.
66466         (dir_name): Don't append dot when drive letter is absolute.
66467         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66468         * lib/basename.c (base_name): New semantics - malloc the result.
66469         Preserve // when it is special.  Preserve relative files that look
66470         like drive letters.
66471         (base_len): Preserve // when it is special.
66472         (last_component): New method, similar to old base_name semantics.
66473         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
66474         base_name.  Strip redundant slashes from ///.
66475
66476 2006-07-03  Jim Meyering  <jim@meyering.net>
66477
66478         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
66479         macro is used before the first cycle_check call.
66480
66481 2006-07-03  Eric Blake  <ebb9@byu.net>
66482
66483         * modules/dirname (Depends-on): Add xstrndup.
66484
66485 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
66488         test cases, so that config.log is a bit easier to follow.
66489
66490 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
66493         both are 64 bits, since this seems to be the tradition, and this
66494         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
66495         we ever run into a host that prefers long long to long in this
66496         case, we'll need another configure-time test.  Problem reported by
66497         Jim Meyering.
66498
66499 2006-07-02  Eric Blake  <ebb9@byu.net>
66500
66501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
66502
66503 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66504
66505         * modules/inttypes (Depends-on): No longer depends on stdint.
66506         * modules/stdint (Description): Say more about assumptions.
66507         Say that the fast types might differ.  Say macros are used.
66508         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
66509         (Makefile.am): Revise list of substituted symbols to match
66510         new stdint.m4.
66511         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
66512         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
66513         * tests/test-stdint.c (verify_same_types)
66514         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
66515         the code conforms to C99/C89.
66516         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
66517         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
66518
66519 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
66522         but fix a bug, by requiring at least 64 bits.
66523         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66524         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
66525         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
66526         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
66527
66528         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
66529         changes.  Make 2.59 a prerequisite.  Check and substitute for
66530         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
66531         inttypes.h.  Do not use special include files; just use the
66532         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
66533         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
66534         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
66535         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
66536         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
66537         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
66538         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
66539         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
66540         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
66541         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
66542         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
66543         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
66544         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
66545         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
66546         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
66547         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
66548         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
66549         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
66550         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
66551         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
66552         WINT_MAX.  Check for C99 conformance more strictly, by detecting
66553         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
66554         not check for things that C99 does not require, e.g., int8_t.  If
66555         a test isn't needed unless <stdint.h> isn't working, and is
66556         unlikely to be needed for any other reason, then don't do it
66557         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
66558         size_t, since we assume C89 freestanding at least.  Do not check
66559         for sig_atomic_t, wchar_t, or wint_t, since the code now does
66560         the right thing even if the types are not defined.  Instead use:
66561         (gl_STDINT_TYPE_PROPERTIES): New macro.
66562         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
66563         testing whether <sys/types.h> clashes, as Autoconf does this for
66564         us now.  All uses removed.
66565         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
66566         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
66567         (gl_CHECK_TYPE_SAME):
66568         Remove; no longer needed.
66569         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
66570         exists, since we'll return 0 anyway in that case.
66571         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
66572
66573 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
66576         possible collision with system files.
66577         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
66578         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
66579         WCHAR_MIN and WCHAR_MAX in this case.
66580         (<stddef.h>): Do not include; no longer needed.
66581         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
66582         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
66583         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
66584         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
66585         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
66586         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
66587         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
66588         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
66589         !defined(__c99))]: Include in this case too, since it's harmless
66590         now.
66591         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
66592         dangerous to do so.
66593         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
66594         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
66595         (_STDINT_MIN, _STDINT_MAX): New macros.
66596         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
66597         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
66598         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
66599         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
66600         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
66601         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
66602         macros, not typedefs; this simplifies things quite a bit.
66603         Use long int for all types narrower than int64_t.
66604         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
66605         Define in terms of long long int or int64_t or long int,
66606         not int64_t or int32_t.  This saves some compile-time testing.
66607         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
66608         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
66609         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
66610         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
66611         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
66612         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
66613         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
66614         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
66615         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
66616         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
66617         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66618         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66619         undef any previous version and define our own version, for
66620         simplicity and consistency with the new macros for types.
66621         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
66622         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
66623         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
66624         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
66625         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
66626         @WINT_T_SUFFIX@ to keep things simple here.
66627         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
66628         Simplify by assuming typical 8/16/32/64 host, since we're
66629         already doing that elsewhere anyway.
66630         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
66631         and assume long long int is 64 bits if available.  This
66632         speeds up 'configure'.
66633
66634 2006-07-01  Eric Blake  <ebb9@byu.net>
66635
66636         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
66637         Reported by Andreas Buening.
66638
66639 2006-07-01  Eric Blake  <ebb9@byu.net>
66640
66641         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
66642
66643 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66644
66645         * lib/getaddrinfo.c: fixed typo
66646
66647 2006-06-29  Jim Meyering  <jim@meyering.net>
66648
66649         * modules/strftime (Maintainer): Add my name, since with the
66650         FPRINTFTIME changes strftime.c has forked from glibc.
66651
66652 2006-06-29  Eric Blake  <ebb9@byu.net>
66653
66654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
66655
66656 2006-06-29  Eric Blake  <ebb9@byu.net>
66657
66658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
66659
66660 2006-06-29  Eric Blake  <ebb9@byu.net>
66661
66662         * lib/stat_.h: New file.
66663
66664 2006-06-29  Eric Blake  <ebb9@byu.net>
66665
66666         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
66667         unused static function.
66668
66669 2006-06-29  Eric Blake  <ebb9@byu.net>
66670
66671         * doc/functions.texi (Function Portability): Document missing lstat
66672         on mingw.
66673
66674 2006-06-29  Eric Blake  <ebb9@byu.net>
66675
66676         * MODULES.html.sh: Add sys_stat.
66677         * modules/sys_stat: New module.
66678         * modules/mkstemp (Depends-on): Add sys_stat.
66679
66680 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66681
66682         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
66683
66684 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66685
66686         * m4/c-bs-a.m4: Removed.
66687
66688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
66689
66690         * lib/strftime.c: Assume strftime() exists.
66691
66692 2006-06-29  Derek Price  <derek@ximbiot.com>
66693
66694         * modules/c-bs-a: Removed - \a is C89.
66695         * MODULES.html.sh: Remove c-bs-a.
66696
66697 2006-06-29  Bruno Haible  <bruno@clisp.org>
66698
66699         * modules/wcwidth (License): Change to LGPL.
66700
66701 2006-06-28  Simon Josefsson  <jas@extundo.com>
66702
66703         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
66704         on _WIN32.
66705
66706         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
66707         getnameinfo.
66708
66709 2006-06-28  Simon Josefsson  <jas@extundo.com>
66710
66711         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
66712
66713 2006-06-28  Simon Josefsson  <jas@extundo.com>
66714
66715         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
66716         functions there.  It will succeed on Windows XP, but on Windows
66717         2000 and (presumably) earlier, it will fail, and use the internal
66718         re-implementation.
66719         (use_win32_p): New function.
66720         (getaddrinfo): Use strtoul on servname, to support numeric ports.
66721         Support AI_NUMERICSERV to disable getservbyname.
66722         (getnameinfo): New function, only supports
66723         NI_NUMERICHOST|NI_NUMERICSERV for now.
66724
66725         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
66726         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
66727         getnameinfo.
66728
66729 2006-06-28  Eric Blake  <ebb9@byu.net>
66730
66731         * modules/wcwidth: New file.
66732         * modules/mbchar (Depends-on): Add wcwidth.
66733         * modules/mbswidth (Depends-on): Add wcwidth.
66734         * MODULES.html.sh: Add wcwidth.
66735
66736 2006-06-28  Eric Blake  <ebb9@byu.net>
66737
66738         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
66739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
66740
66741 2006-06-28  Eric Blake  <ebb9@byu.net>
66742
66743         * lib/xvasprintf.h: Fix comments.
66744
66745 2006-06-28  Eric Blake  <ebb9@byu.net>
66746
66747         * lib/mbchar.h (wcwidth): Include wcwidth.h.
66748         * lib/mbswidth.c (wcwidth): Move from here...
66749         * lib/wcwidth.h: ...to this new file.
66750
66751 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66752
66753         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
66754
66755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
66756         it's obsolete.
66757         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
66758
66759 2006-06-28  Derek R. Price  <derek@ximbiot.com>
66760
66761         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
66762         Autoconf 2.60 says this stuff was obsolete.
66763
66764 2006-06-28  Bruno Haible  <bruno@clisp.org>
66765
66766         * modules/wcwidth (Files): Add m4/wchar_t.m4.
66767
66768 2006-06-28  Bruno Haible  <bruno@clisp.org>
66769
66770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
66771         gt_TYPE_WCHAR_T.
66772
66773 2006-06-28  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
66776         declaration for wcwidth.
66777         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
66778
66779 2006-06-28  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/mkdtemp.c [MINGW]: Include <io.h>.
66782         (mkdir): Define using _mkdir.
66783
66784 2006-06-28  Bruno Haible  <bruno@clisp.org>
66785
66786         * lib/getaddrinfo.h: Fix POSIX URL.
66787         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
66788         _WIN32.
66789         (use_win32_p): Make static.
66790         (getaddrinfo): Reject service name if it is empty or does not consist
66791         solely of decimal digits, or if its value is > 65535.
66792         (getnameinfo): Remove useless casts.
66793
66794 2006-06-27  Simon Josefsson  <jas@extundo.com>
66795
66796         * modules/sys_select: New file, suggested by Bruno Haible, Paul
66797         Eggert and Martin Lambers.
66798
66799 2006-06-27  Simon Josefsson  <jas@extundo.com>
66800
66801         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
66802         Eggert and Martin Lambers.
66803
66804 2006-06-27  Bruno Haible  <bruno@clisp.org>
66805
66806         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
66807         result to 0, not to empty.
66808         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
66809
66810 2006-06-27  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
66813
66814 2006-06-26  Simon Josefsson  <jas@extundo.com>
66815
66816         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
66817         present.
66818
66819 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
66822         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
66823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
66824
66825 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
66826
66827         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
66828
66829 2006-06-26  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
66832
66833 2006-06-26  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
66836
66837 2006-06-26  Bruno Haible  <bruno@clisp.org>
66838
66839         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
66840         SGI C compiler in pre-C99 mode.
66841         Suggested by Mark D. Baushke and Larry Jones.
66842
66843 2006-06-26  Bruno Haible  <bruno@clisp.org>
66844
66845         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
66846         WCHAR_MAX.
66847         Reported by Mark D. Baushke and Larry Jones.
66848
66849 2006-06-26  Bruno Haible  <bruno@clisp.org>
66850
66851         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
66852         in pre-C99 mode.
66853         Suggested by Mark D. Baushke and Larry Jones.
66854
66855 2006-06-23  Simon Josefsson  <jas@extundo.com>
66856             Bruno Haible  <bruno@clisp.org>
66857
66858         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
66859         Emit mostlyclean-local rule.
66860         (func_emit_tests_Makefile_am): Likewise.
66861         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
66862
66863 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
66864
66865         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
66866
66867 2006-06-23  Bruno Haible  <bruno@clisp.org>
66868
66869         * tests/test-stdint.c: Update to match ISO C 99 Technical
66870         Corrigendum 1.
66871
66872 2006-06-23  Bruno Haible  <bruno@clisp.org>
66873
66874         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
66875
66876 2006-06-23  Bruno Haible  <bruno@clisp.org>
66877
66878         * lib/stdint_.h: Treat IRIX like OpenBSD.
66879
66880 2006-06-23  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
66883         ISO C 99 Technical Corrigendum 1.
66884
66885 2006-06-22  Simon Josefsson  <jas@extundo.com>
66886
66887         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
66888         MinGW.
66889
66890 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
66893         needed.  Some compiler complained about some of them.  Problem reported
66894         by Larry Jones in
66895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
66896
66897 2006-06-21  Simon Josefsson  <jas@extundo.com>
66898
66899         * tests/test-getaddrinfo.c: New file.
66900
66901         * modules/getaddrinfo-tests: New file.
66902
66903         * MODULES.html.sh: Add inet_pton.
66904
66905         * modules/inet_pton: New file.
66906
66907 2006-06-21  Simon Josefsson  <jas@extundo.com>
66908
66909         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
66910         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
66911         of using the (limited) gnulib implementation on Windows XP.
66912
66913         * m4/inet_pton.m4: New file.
66914
66915 2006-06-21  Simon Josefsson  <jas@extundo.com>
66916
66917         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
66918         variable.
66919
66920         * lib/socket_.h: Don't define WINVER.
66921
66922         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
66923         slightly modified to work in gnulib.
66924
66925 2006-06-21  Simon Josefsson  <jas@extundo.com>
66926
66927         * doc/gnulib.texi (Windows sockets): Add.
66928
66929 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * lib/read-file.c (fread_file): Start with buffer allocation of
66932         0 bytes rather than 1 byte; this simplifies the code.
66933         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
66934         code to free buffer and save/restore errno.
66935         (internal_read_file): Remove unused local.
66936
66937 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
66940         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
66941         Problem reported by Denis Excoffier in
66942         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
66943
66944 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66945
66946         * modules/sys_socket, modules/socklen: Include sys/types since
66947         FreeBSD 4.x's sys/socket.h needs it.
66948
66949 2006-06-19  Simon Josefsson  <jas@extundo.com>
66950
66951         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
66952
66953 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
66956
66957 2006-06-19  Bruno Haible  <bruno@clisp.org>
66958
66959         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
66960         and FULL_PATH_INTTYPES_H in angle brackets.
66961         Reported by Mark D. Baushke <mdb@gnu.org>.
66962
66963 2006-06-17  Eric Blake  <ebb9@byu.net>
66964
66965         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
66966         errno.
66967
66968 2006-06-17  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
66971         <sys/inttypes.h>.
66972
66973 2006-06-17  Bruno Haible  <bruno@clisp.org>
66974
66975         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
66976         whether errno is declared. Assume <errno.h> declares errno.
66977
66978 2006-06-17  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
66981
66982 2006-06-17  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
66985         problem on Solaris 2.5.1.
66986
66987 2006-06-16  Eric Blake  <ebb9@byu.net>
66988
66989         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
66990         * lib/unicodeio.c [!defined errno]: Likewise.
66991         * lib/strtol.c [!defined errno]: Likewise.
66992         * lib/strtod.c [!defined errno]: Likewise.
66993
66994 2006-06-15  Eric Blake  <ebb9@byu.net>
66995
66996         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
66997
66998 2006-06-15  Eric Blake  <ebb9@byu.net>
66999
67000         * config/srclist.txt (ssize_t.m4): Lose sync.
67001
67002 2006-06-15  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/stdint (Files): Include m4/full-header-path.m4,
67005         m4/size_max.m4, m4/wchar_t.m4.
67006         (Makefile.am): Many more substitutions.
67007         * modules/stdint-tests: New file.
67008         * tests/test-stdint.c: New file.
67009
67010 2006-06-15  Bruno Haible  <bruno@clisp.org>
67011
67012         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67013         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67014         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67015         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67016         gl_CHECK_TYPE_SAME): New macros.
67017
67018 2006-06-15  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67021
67022 2006-06-15  Bruno Haible  <bruno@clisp.org>
67023
67024         * lib/stdint_.h: Rewritten to be fully auto-configured.
67025         Fixes bug on HP-UX/IA64.
67026
67027 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * lib/getdate.y (__attribute__): Don't define if already defined.
67030         Problem reported by Larry Jones.
67031         * lib/utimens.c (__attribute__): Likewise.
67032
67033 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67036         reported by Andreas Schwab.
67037
67038 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67039             Bruno Haible  <bruno@clisp.org>
67040
67041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67042         check for the declaration of strnlen and a run test that exposes the
67043         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67044         rpl_strndup.
67045
67046 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67047             Bruno Haible  <bruno@clisp.org>
67048
67049         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67050
67051 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67052
67053         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67054         compile test, for Tru64 4.0D.
67055
67056 2006-05-28  Karl Berry  <karl@gnu.org>
67057
67058         * config/srclist.txt (printf-args.c): lose sync.
67059
67060 2006-05-26  Martin Lambers  <marlam@marlam.de>
67061
67062         * lib/getpass.c: Updates the test for the native W32 API, and adds
67063         missing includes, thus fixing compilation warnings.
67064
67065 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67066
67067         * lib/exclude.c (exclude_fnmatch): New function.
67068         (excluded_file_name): Call exclude_fnmatch.
67069         * lib/exclude.h (excluded_file_name): New prototype
67070
67071 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * lib/tempname.c (small_open, large_open): New macros.
67074         (__open, __open64) [!_LIBC]: Remove.
67075         (__gen_tempname): Use small_open and large_open instead of __open
67076         and __open64.  This fixes a portability bug on HP-UX 11.11i
67077         reported by Simon Wing-Tang in
67078         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67079
67080 2006-05-24  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67083         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67084         Reported by Thorsten Maerz <torte@netztorte.de> via
67085         Aaron Stone <aaron@serendipity.cx>.
67086
67087 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67090         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67091         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67092         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67093         not really conditional on the cache.
67094         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67095
67096 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67099         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67100         (my_usleep): Don't mishandle maximum value.
67101
67102 2006-05-19  Jim Meyering  <jim@meyering.net>
67103
67104         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67105
67106 2006-05-17  Bruno Haible  <bruno@clisp.org>
67107
67108         Cygwin portability.
67109         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67110
67111 2006-05-17  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/stdint_.h: Fix recognition of Cygwin.
67114
67115 2006-05-15  Bruno Haible  <bruno@clisp.org>
67116
67117         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67118         on libtool patch by Ralf Wildenhues.
67119
67120 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67123         test for C99 conformance; (bool) 0.5 is an integer constant
67124         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67125         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67126
67127 2006-05-11  Simon Josefsson  <jas@extundo.com>
67128
67129         * m4/xvasprintf.m4: Fix obvious typo.
67130
67131 2006-05-11  Jim Meyering  <jim@meyering.net>
67132
67133         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67134         James Lemley.
67135
67136 2006-05-10  Simon Josefsson  <jas@extundo.com>
67137
67138         * lib/md4.c: Typo fix, update copyright years.
67139         (K1, K2): Don't use L because it turn computations into 64-bit on
67140         64-bit platforms.
67141
67142 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67145         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67146         unwanted sign propagation, e.g., on hosts with 64-bit int.
67147         There still are some problems with reeelly weird theoretical hosts
67148         (e.g., 33-bit int) but it's not worth worrying about now.
67149         * lib/sha1.c (rol): Likewise.
67150         (K1, K2, K3, K4): Remove unnecessary L suffix.
67151
67152 2006-05-10  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/des.c: Cast to avoid warnings.
67155
67156 2006-05-09  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67159         (Depends-on): Depend also on xsize, stdarg.
67160         (configure.ac): Add gl_XVASPRINTF.
67161
67162 2006-05-09  Bruno Haible  <bruno@clisp.org>
67163
67164         * m4/xvasprintf.m4: New file.
67165
67166 2006-05-09  Bruno Haible  <bruno@clisp.org>
67167
67168         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67169         (EOVERFLOW): Define fallback value.
67170         (xstrcat): New function.
67171         (xvasprintf): Recognize the special case of a string concatenation.
67172
67173 2006-05-08  Eric Blake  <ebb9@byu.net>
67174
67175         * gnulib-tool (func_version): Base copyright year on CVS date.
67176         (func_emit_copyright_notice): New function.
67177         (func_emit_lib_Makefile_am): Use it.
67178         (func_emit_tests_Makefile_am): Likewise.
67179         (func_import): Likewise.
67180
67181 2006-05-08  Bruno Haible  <bruno@clisp.org>
67182
67183         * modules/stdarg: New file.
67184         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67185
67186 2006-05-08  Bruno Haible  <bruno@clisp.org>
67187
67188         * m4/stdarg.m4: New file, from GNU gettext.
67189
67190 2006-05-08  Bruno Haible  <bruno@clisp.org>
67191
67192         * config/srclist.txt (build-aux/config.rpath): different from latest
67193         release.
67194
67195 2006-05-08  Bruno Haible  <bruno@clisp.org>
67196
67197         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67198
67199 2006-05-05  Jim Meyering  <jim@meyering.net>
67200
67201         * m4/warning.m4: New file, derived from bison's file by the same name.
67202
67203 2006-05-03  Bruno Haible  <bruno@clisp.org>
67204
67205         * lib/stdint_.h: Shorter URL.
67206         * lib/inttypes.h: Likewise.
67207
67208 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67209
67210         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67211
67212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * lib/verify.h: Document the internals better.  Most of this change
67215         was written by Bruno Haible.
67216
67217 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67218
67219         * doc/verify.texi: New file, partly based on a proposal by
67220         Bruno Haible.
67221
67222 2006-05-02  Bruno Haible  <bruno@clisp.org>
67223
67224         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67225         test from here...
67226         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67227
67228 2006-04-29  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67231         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67232
67233 2006-04-29  Bruno Haible  <bruno@clisp.org>
67234
67235         * gnulib-tool: Make --update option actually work.
67236
67237 2006-04-29  Bruno Haible  <bruno@clisp.org>
67238
67239         * doc/gcd.texi: New file.
67240         * doc/gnulib.texi: Include it.
67241
67242 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67243
67244         * lib/getdate.y (get_date): When adding relative date, start with the
67245         initial time, not with the result of the first mktime call.
67246
67247 2006-04-25  Bruno Haible  <bruno@clisp.org>
67248
67249         * gnulib-tool (func_import): Output the include directives in three
67250         blocks, sorted separately.
67251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67252
67253 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67256         to define main with arguments, for C++.  Reported by Eric Blake.
67257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67258         Prefer 'int main ()' to 'int main (void)', for C++.
67259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67261         for 'main', for C99 and C++.
67262
67263 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67264
67265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67266         Don't assume that exit status -1 is valid.
67267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67268         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67269         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67270         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67271         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67272         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67273         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67274         functions can be used without declaring them, or that you can
67275         exit with status -1.
67276         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67277
67278 2006-04-24  Karl Berry  <karl@gnu.org>
67279
67280         * config/srclist.txt (longdouble.m4): sync lost.
67281
67282 2006-04-24  Eric Blake  <ebb9@byu.net>
67283
67284         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67285
67286 2006-04-24  Bruno Haible  <bruno@clisp.org>
67287
67288         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67289         poll() implementation in AIX.
67290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67291
67292 2006-04-24  Bruno Haible  <bruno@clisp.org>
67293
67294         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67295         assigned exactly once.
67296
67297 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67298             Bruno Haible  <bruno@clisp.org>
67299
67300         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67301         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67302         for AM_CPPFLAGS.
67303
67304 2006-04-23  Bruno Haible  <bruno@clisp.org>
67305
67306         * modules/copy-file: Depend on unistd.
67307         * modules/execute: Likewise.
67308         * modules/fatal-signal: Likewise.
67309         * modules/findprog: Likewise.
67310         * modules/mkdtemp : Likewise.
67311         * modules/pipe: Likewise.
67312         * modules/wait-process: Likewise.
67313
67314 2006-04-23  Bruno Haible  <bruno@clisp.org>
67315
67316         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67317         condition was already detected.
67318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67319
67320 2006-04-23  Bruno Haible  <bruno@clisp.org>
67321
67322         * lib/copy-file.c: Include <unistd.h> unconditionally.
67323         * lib/execute.c: Likewise.
67324         * lib/fatal-signal.c: Likewise.
67325         * lib/findprog.c: Likewise.
67326         * lib/mkdtemp.c: Likewise.
67327         * lib/pipe.h: Likewise.
67328         * lib/pipe.c: Likewise.
67329         * lib/wait-process.h: Likewise.
67330
67331 2006-04-23  Bruno Haible  <bruno@clisp.org>
67332
67333         * gnulib-tool (func_usage): Fix --import description. Document
67334         --update.
67335         (func_import): Create temporary file in a temporary directory, if
67336         --dry-run is specified. Silence errors from 'grep' when there are no
67337         m4 files in $m4dir.
67338         (func_create_testdir): Silence errors from 'grep' when there are no
67339         m4 files in $m4dir.
67340         Reported by Karl Berry <karl@freefriends.org>.
67341
67342 2006-04-20  Bruno Haible  <bruno@clisp.org>
67343
67344         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67345         one argument, so that the code will be portable to Autoconf 2.60.
67346         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67348         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67349
67350 2006-04-19  Derek Price  <derek@ximbiot.com>
67351             Eric Blake  <ebb9@byu.net>
67352
67353         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67354         rather than "/full/path.h".  Update comment to match.  Shorten &
67355         generalize m4_translit call via AS_TR_CPP.
67356
67357 2006-04-19  Derek Price  <derek@ximbiot.com>
67358             Eric Blake  <ebb9@byu.net>
67359
67360         * lib/inttypes.h: Correct grammar in comment.
67361
67362 2006-04-18  Derek Price  <derek@ximbiot.com>
67363             Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         * modules/inttypes: New file.
67366         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67367
67368 2006-04-18  Derek Price  <derek@ximbiot.com>
67369             Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67372         New files.
67373
67374 2006-04-18  Derek Price  <derek@ximbiot.com>
67375             Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/inttypes.h: New file.
67378         * lib/strtoimax.c: Assume <inttypes.h>.
67379
67380 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67381
67382         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67383         isn't mounted.  Problem reported by Kir Kolyshkin.
67384
67385 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67388         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67389         Derek R. Price.
67390         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67391         implementation.
67392
67393 2006-04-12  Eric Blake  <ebb9@byu.net>
67394
67395         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67396         is now done automatically by the corresponding Autoconf macro.
67397
67398 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67401         time_r.h.
67402
67403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         Merge regex changes from libc, removing some of our
67406         POSIX-conformance changes that were rejected and redoing them in a
67407         less-intrusive way.
67408
67409         * lib/regcomp.c (re_compile_internal, init_dfa):
67410         Length arg is now size_t, not Idx.  All uses changed.
67411         (peek_token): Forward decl now says internal_function.
67412         (__re_error_msgid, __re_error_msgid_idx):
67413         Now static rather than extern with attribute_hidden.
67414         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67415         For some reason libc prefers K&R style defns for external functions.
67416         (regerror) [!defined _LIBC]: Likewise.
67417         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67418         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67419         (build_range_exp, build_collating_symbol):
67420         Use K&R-style defn.
67421         (re_compile_fastmap): Use '\0' to memset, not 0.
67422         (utf8_sb_map): Make the calculations more obvious.
67423         (init_dfa, parse_bracket_exp, build_charclass_op):
67424         Call calloc and cast result, as glibc does.
67425         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67426         (build_range_exp, build_collating_symbol):
67427         Now internal functions.
67428
67429         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67430
67431         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67432         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67433         Don't depend on VMS; depend on __VMS instead, for POSIX
67434         namespace cleanness.
67435         (regoff_t): Define to ssize_t, not long int.
67436
67437         Remove the REG_ macros named below.  Instead, make the old names
67438         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67439         __USE_GNU_REGEX.
67440         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67441         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67442         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67443         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67444         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67445         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67446         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67447         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67448         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67449         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67450         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67451         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67452         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67453         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67454         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67455         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67456         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67457         (REG_NREGS):
67458         Remove.  All uses replaced by the old RE_* names.
67459         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67460         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67461         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67462         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67463         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67464         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67465         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67466         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67467         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67468         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
67469         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
67470         Don't bother having these macros be independent of each others'
67471         values, since they no longer exist in the POSIX name space.
67472
67473         Rename the following member names back to their old names,
67474         unless !__USE_GNU_REGEX.  All uses changed back.
67475         (buffer): Renamed from re_buffer.
67476         (allocated): Renamed from re_allocated.
67477         (used): Renamed from re_used.
67478         (syntax): Renamed from re_syntax.
67479         (fastmap): Renamed from re_fastmap.
67480         (translate): Renamed from re_translate.
67481         (can_be_null): Renamed from re_can_be_null.
67482         (regs_allocated): Renamed from re_regs_allocated.
67483         (fastmap_accurate): Renamed from re_fastmap_accurate.
67484         (no_sub): Renamed from re_no_sub.
67485         (not_bol): Renamed from re_not_bol.
67486         (not_eol): Renamed from re_not_eol.
67487         (newline_anchor): Renamed from re_newline_anchor.
67488         (num_regs): Renamed from rm_num_regs.
67489         (start): Renamed from rm_start.
67490         (end): Renamed from rm_end.
67491
67492         (free_state): Move up a bit.
67493
67494         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
67495         #define to be empty.
67496         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
67497         when that is what is intended.
67498         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
67499         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
67500         (MAX): New macro.
67501         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
67502         All uses changed back to re_malloc, etc.  It's now the caller's
67503         responsibility to check for overflow; all callers changed.
67504         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
67505         (re_x2nrealloc): Remove.
67506         (free_state): Remove decl.
67507
67508         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
67509         (re_set_registers, re_exec):
67510         Use K&R-style defn.
67511
67512         2006-01-31  Roland McGrath  <roland@redhat.com>
67513
67514         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
67515         Reported by Mike Frysinger <vapier@gentoo.org>.
67516
67517         2006-01-15  Andreas Jaeger  <aj@suse.de>
67518
67519         [BZ #1950]
67520         * lib/regex_internal.c (re_string_reconstruct): Adjust for
67521         build_wcs_upper_buffer change.
67522         (build_wcs_upper_buffer): Change return type.
67523
67524         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
67525
67526         * lib/regex_internal.h: Include <stdint.h> if available.
67527
67528         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
67529
67530         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
67531
67532         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67533
67534         * lib/regcomp.c: Adjust for changed secondary hash function.
67535
67536         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
67537
67538         * lib/regex.h: Pretty printing.
67539         Clean up namespace a bit.
67540
67541         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
67542
67543         * lib/regexec.c (update_cur_sifted_state, check_arrival,
67544         check_arrival_add_next_nodes): Avoid using uninitialized variable.
67545
67546         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67547                     Ulrich Drepper  <drepper@redhat.com>
67548
67549         [BZ #1302]
67550         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
67551         changed.
67552         (bitset_word_t): Renamed from bitset_word.  All uses changed.
67553
67554         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
67555
67556         [BZ #281]
67557         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
67558         * lib/regcomp.c: Remove unnecessary uses of
67559         unsigned RE_TRANSLATE_TYPE.
67560         * lib/regex_internal.h: Likewise.
67561         * lib/regex_internal.c: Likewise.
67562         * lib/regexec.c: Likewise.
67563         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
67564
67565         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
67566
67567         * lib/regexec.c (find_recover_state): Remove unnecessary
67568         initialization.
67569         (transit_state_bkref): Make DFA a const pointer.
67570         (get_subexp): Likewise.
67571         (check_arrival): Likewise.
67572         (update_cur_sifted_state): Likewise.
67573         (re_search_internal): Likewise.
67574         (prune_impossible_nodes): Likewise.
67575         (acquire_init_state_context): Likewise.
67576         (proceed_next_node): Likewise.
67577         (set_regs): Likewise.
67578         (free_fail_stack_return): Likewise.
67579         (check_arrival_expand_ecl): Mark DFA parameter as const.
67580         (check_arrival_expand_ecl_sub): Likewise.
67581         (check_subexp_limits): Likewise.
67582         (sub_epsilon_src_nodes):  Likewise.
67583         (add_epsilon_src_nodes):  Likewise.
67584         (merge_state_array): Likewise.
67585         (update_regs): Likewise.
67586         (build_trtable): Likewise.
67587         (sift_states_backward): Mark MCTX parameter as const.
67588         (build_sifted_states): Likewise.
67589         (update_cur_sifted_state): Likewise.
67590         (sift_states_mkref): Likewise.
67591         (check_arrival_expand_ecl): Mark eclosure as const.
67592         (check_dst_limits_calc_pos_1): Likewise.
67593         * lib/regex_internal.h (re_match_context_t): Make dfa a const
67594         pointer.
67595
67596         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
67597
67598         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
67599         (transit_state_sb): Likewise.
67600         (transit_state_mb): Likewise.
67601         (sift_states_iter_mb): Likewise.
67602         (check_arrival_add_next_nodes): Likewise.
67603         (check_node_accept_bytes): Change first parameter to pointer-to-const.
67604         [_LIBC] (re_search_2_stub): Use mempcpy.
67605
67606         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
67607         mbrtowc for very simple UTF-8 case.
67608
67609         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
67610         a pointer-to-const.
67611         (re_acquire_state_context): Likewise.
67612         * lib/regex_internal.h: Adjust prototypes.
67613
67614         * lib/regex.c: Prevent using C++ compilers.
67615
67616         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
67617         (re_acquire_state_context): Likewise.
67618
67619 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * modules/regex (Depends-on): Add ssize_t.
67622
67623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
67626         translation table.
67627
67628 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
67631
67632 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
67633             Bruno Haible  <bruno@clisp.org>
67634
67635         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
67636         <sys/types.h> and <inttypes.h>.
67637
67638 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67639
67640         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
67641         `__error_t_defined', so argp.h will not typedef the former.
67642
67643 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
67646         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
67647         glibc names.  Even if glibc is changed to conform to POSIX, the
67648         traditional names will be available anyway, since regex depends on
67649         the extensions module.  Also, fix a longstanding typo in the
67650         implementation of Spencer ERE test #75 from grep 2.3.  Problems
67651         reported by Emanuele Giaquinta.  Also, change sense of cached
67652         variable, so that the message makes sense.
67653
67654 2006-03-24  Simon Josefsson  <jas@extundo.com>
67655
67656         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
67657         including some doc fixes.
67658         (base64_encode_alloc): Fix +1 bug on allocation failures.
67659
67660 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67661
67662         * lib/base64.c (base64_encode): Do not read past end of array with
67663         unsanitized input on systems with CHAR_BIT > 8.
67664
67665 2006-03-24  Eric Blake  <ebb9@byu.net>
67666
67667         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
67668
67669 2006-03-22  Karl Berry  <karl@gnu.org>
67670
67671         * config/srclist.txt (*setenv.[ch]): get from coreutils.
67672         * config/srclistvars.sh (COREUTILS): new var.
67673
67674 2006-03-17  Jim Meyering  <jim@meyering.net>
67675
67676         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
67677         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
67678
67679 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
67682         no longer needs it.  Instead, check that regoff_t is as least
67683         as wide as ptrdiff_t.
67684
67685         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
67686         so that our regex.h stays compatible with the installed regex.
67687         This is helpful for installers who configure --without-included-regex.
67688         Problem reported by Emanuele Giaquinta.
67689
67690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
67693         Typedef to long int, not to off_, as POSIX will likely change
67694         in that direction.
67695
67696 2006-03-15  Eric Blake  <ebb9@byu.net>
67697
67698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
67699
67700 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67701
67702         * lib/argp-help.c (validate_uparams): Fix typo
67703         * lib/argp-parse.c (argp_default_options): Consistently begin help
67704         messages with a lowercase letter.
67705
67706 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
67707
67708         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
67709         overrun buffers and shouldn't be used (much as gets shouldn't be
67710         used).
67711         * lib/time_r.c (asctime_r, ctime_r): Likewise.
67712
67713 2006-03-08  Simon Josefsson  <jas@extundo.com>
67714
67715         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
67716         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67717
67718 2006-03-08  Simon Josefsson  <jas@extundo.com>
67719
67720         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
67721         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67722
67723 2006-03-08  Simon Josefsson  <jas@extundo.com>
67724
67725         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
67726         signal that configure disabled the device.
67727
67728 2006-03-08  Simon Josefsson  <jas@extundo.com>
67729
67730         * build-aux/maint.mk: Fix refresh-po, to handle no translated
67731         languages.
67732
67733 2006-03-07  Simon Josefsson  <jas@extundo.com>
67734
67735         * modules/getopt (Depends-on): Add unistd.
67736
67737         * modules/unistd: New file.
67738
67739 2006-03-07  Simon Josefsson  <jas@extundo.com>
67740
67741         * modules/gc-random: New file.
67742
67743 2006-03-07  Simon Josefsson  <jas@extundo.com>
67744
67745         * m4/unistd_h.m4: New file.
67746
67747 2006-03-07  Simon Josefsson  <jas@extundo.com>
67748
67749         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
67750         test to be side-effect free by storing the result in the cache
67751         variable gl_cv_lib_readline, and moving the assignment of
67752         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
67753         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67754
67755 2006-03-07  Simon Josefsson  <jas@extundo.com>
67756
67757         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
67758         error on missing devices (the functions will return an error).
67759
67760         * m4/gc.m4: Move random stuff to gc-random.m4
67761
67762 2006-03-07  Simon Josefsson  <jas@extundo.com>
67763
67764         * lib/unistd_.h: New file.
67765
67766 2006-03-07  Simon Josefsson  <jas@extundo.com>
67767
67768         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
67769
67770 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67771
67772         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
67773         Problem reported by Juan Manuel Guerrero.
67774
67775 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
67778         the unistd module.
67779         * lib/getlogin_r.c: Likewise.
67780         * lib/getlogin_r.h: Likewise.
67781         * lib/glob.c: Likewise.
67782         * lib/pagealign_alloc.c: Likewise.
67783         * lib/unistd_.h: Remove; no longer needed.
67784
67785 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67788         Add unistd.
67789         * modules/c-stack (Depends-on): Add unistd.
67790         * modules/getlogin_r: Likewise.
67791         * modules/glob: Likewise.
67792         * modules/pagealign_alloc: Likewise.
67793         * modules/unistd (Files): Remove lib/unistd_.h.
67794         (EXTRA_DIST): Remove.
67795         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
67796         need unistd_.h.
67797         (MOSTLYCLEANFILES): Remove unistd.h-t.
67798
67799 2006-03-03  Simon Josefsson  <jas@extundo.com>
67800
67801         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
67802
67803 2006-03-03  Simon Josefsson  <jas@extundo.com>
67804
67805         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
67806         libidn and bison.
67807
67808 2006-03-03  Simon Josefsson  <jas@extundo.com>
67809
67810         * build-aux/maint.mk: Add indent target.
67811
67812 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
67813
67814         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
67815         our replacement poll.h in any case, to avoid a differing
67816         declaration from a system header.  Seen on AIX.
67817
67818 2006-03-01  Simon Josefsson  <jas@extundo.com>
67819
67820         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
67821         <kasal@ucw.cz>.
67822
67823 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67824
67825         * modules/gettime (Depends-on): Add extensions module.
67826         * modules/nanosleep (Depends-on): Likewise.
67827         * modules/settime (Depends-on): Likewise.
67828
67829 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67830
67831         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
67832         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
67833         pedantically.
67834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67835         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
67836
67837         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
67838         not "==".  Reported by Ralf Wildenhues.
67839
67840 2006-03-01  Karl Berry  <karl@gnu.org>
67841
67842         * doc/Copyright/request-*: new files, synced from gnuorg.
67843
67844 2006-03-01  Karl Berry  <karl@gnu.org>
67845
67846         * config/srclist.txt (Copyright/*): new entries.
67847
67848 2006-02-28  Simon Josefsson  <jas@extundo.com>
67849
67850         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
67851
67852 2006-02-27  Simon Josefsson  <jas@extundo.com>
67853
67854         * lib/base64.h: Indent #define's.  From Jim Meyering
67855         <jim@meyering.net>.
67856
67857 2006-02-27  Jim Meyering  <jim@meyering.net>
67858
67859         Revert the change of 2006-02-24, so these files can continue
67860         to be sync'd from gettext.
67861         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
67862         of `config.h'.
67863
67864 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * modules/intprops: New file.
67867         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67868         Add intprops.
67869         * modules/getloadavg (Files): Remove lib/intprops.h.
67870         (Depends-on): Add intprops.
67871         * modules/human: Likewise.
67872         * modules/inttostr: Likewise.
67873         * modules/openat: Likewise.
67874         * modules/sig2str: Likewise.
67875         * modules/userspec: Likewise.
67876         * modules/utimecmp: Likewise.
67877         * modules/xnanosleep: Likewise.
67878         * modules/xstrtol: Likewise.
67879
67880 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
67881
67882         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
67883         * modules/lock-tests (TESTS): Use $(EXEEXT).
67884         * modules/tls-tests: Likewise.
67885         * modules/argp-tests: Likewise.
67886         (check_PROGRAMS): New var, replacing...
67887         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
67888
67889 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67890
67891         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
67892         `config.h'.
67893
67894 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
67897
67898 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67899
67900         Sync from coreutils.
67901         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
67902         gl_CHDIR_SAFER.
67903
67904 2006-02-22  Jim Meyering  <jim@meyering.net>
67905
67906         Sync from coreutils.
67907         * m4/chdir-safer.m4: New file.
67908
67909 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67910
67911         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
67912         AT_FDCWD exceeds INT_MAX.
67913         * lib/openat.h (AT_FDCWD): Likewise.
67914
67915 2006-02-17  Eric Blake  <address@hidden>
67916
67917         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
67918
67919 2006-02-16  Simon Josefsson  <jas@extundo.com>
67920
67921         * modules/getaddrinfo (Depends-on): Add sys_socket.
67922
67923 2006-02-15  Simon Josefsson  <jas@extundo.com>
67924
67925         * build-aux/maint.mk: Add dsyntax-check rule.
67926
67927 2006-02-15  Eric Blake  <ebb9@byu.net>
67928
67929         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
67930         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
67931         'present but cannot compile' warnings on cygwin.
67932         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
67933         use ws2tcpip.h if sys/socket.h works.
67934         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
67935         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
67936
67937 2006-02-14  Simon Josefsson  <jas@extundo.com>
67938
67939         * modules/maintainer-makefile (Files): Rename.
67940
67941         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
67942         and (the local) Makefile.cfg to maint-cfg.mk.
67943
67944         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
67945         to the latter.
67946
67947         * modules/maintainer-makefile: New module.
67948
67949         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
67950         severaly stripped to make it possible to build it up from scratch
67951         with reliable tests.
67952
67953         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
67954         fixes to permit overriding the default actions when configure and
67955         makefile are not available.
67956
67957 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         Sync from coreutils.
67960         * modules/lstat (Depends-on): Don't depend on xalloc.
67961         (License): Change from GPL to LGPL, since this is now simply a
67962         replacement for a libc function.
67963
67964 2006-02-14  Jim Meyering  <jim@meyering.net>
67965
67966         Sync from coreutils.
67967
67968         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
67969         failure on deficient systems, and simplify gnulib lgpl dependencies.
67970         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
67971         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
67972
67973         * lib/xalloc-die.c: Remove unused definition of N_.
67974
67975 2006-02-14  Jim Meyering  <jim@meyering.net>
67976
67977         Sync from coreutils.
67978         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
67979         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
67980         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
67981         double-quote uses of that variable, to accommodate the rare case in
67982         which getmntent is available in none of the libraries checked.  This
67983         happens at least on FreeBSD 5.0.
67984
67985 2006-02-13  Simon Josefsson  <jas@extundo.com>
67986
67987         * gnulib-tool (Usage): Fix --import, from
67988         karl@freefriends.org (Karl Berry).
67989
67990 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
67991
67992         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
67993
67994 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
67995
67996         * lib/argp-namefrob.h: Restore changes accidentally lost during the
67997         "autoupdate" on 2005-12-12.
67998
67999 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * modules/closeout (Depends-on): Remove atexit.
68002
68003 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68006         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68007
68008 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68009
68010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68011         __EXTENSIONS__ if this causes compilation to fail.  Problem
68012         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68013         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68014
68015 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68018         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68020         All uses changed.
68021
68022 2006-01-26  Simon Josefsson  <jas@extundo.com>
68023
68024         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68025         prototype is visible on mingw32.
68026
68027         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68028         for mingw32.
68029
68030         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68031         mingw32).
68032
68033 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68036         attempt to open for write; this always fails, at least on POSIX
68037         hosts.  This reinstates the 2006-01-09 change, which was
68038         inadvertently removed.
68039
68040 2006-01-26  Bruno Haible  <bruno@clisp.org>
68041
68042         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68043         Reported by Paul Eggert.
68044
68045 2006-01-26  Bruno Haible  <bruno@clisp.org>
68046             Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * lib/stdbool_.h (_Bool)
68049         [(! (defined __cplusplus || defined __BEOS__)
68050           && !defined __GNUC__
68051           && !(defined __HP_cc || defined __xlc__
68052                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68053                || defined __sgi))]:
68054         #define to signed char in these cases too; this simplifies
68055         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68056         etc., separately) and makes it more conservative.
68057
68058 2006-01-25  Simon Josefsson  <jas@extundo.com>
68059
68060         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68061         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68062         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68063
68064 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68065
68066         * lib/argp-namefrob.h: Bugfix. Remove stray #
68067
68068 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68071         so that we test the test.
68072         Check for yet another HP-UX cc bug involving *bool |= bool.
68073
68074 2006-01-25  Karl Berry  <karl@gnu.org>
68075
68076         * config/srclist.txt (vasnprintf.c): sync lost.
68077
68078 2006-01-25  Jim Meyering  <jim@meyering.net>
68079
68080         Sync from the stable (b5) branch of coreutils:
68081
68082         * lib/fts.c (fts_children): Don't let close() clobber errno from
68083         failed fchdir().
68084
68085         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68086         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68087         a dangling symlink.  That can also happen at least for ELOOP.
68088         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68089         FYI, this bug predates the inclusion of fts.c in coreutils.
68090
68091         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68092         in their own block, so pre-c99 compilers don't object.
68093
68094         Avoid the double-free (first in fts_read, second in fts_close) that
68095         would occur when an `active' directory is made inaccessible (e.g.,
68096         via chmod a-x) during a traversal.
68097         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68098         before returning.  Reproduce this failure by
68099         mkdir -p a/b; cd a; chmod a-x . b
68100         Reported by Stavros Passas.
68101
68102 2006-01-25  Jim Meyering  <jim@meyering.net>
68103
68104         * lib/fileblocks.c: Remove more useless parentheses.
68105         * lib/readutmp.h: Likewise.
68106
68107 2006-01-25  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68110         warnings.
68111         Reported by Paul Eggert.
68112
68113 2006-01-25  Bruno Haible  <bruno@clisp.org>
68114
68115         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68116         rid of a trap command. For Solaris sh.
68117         Reported by Mark D. Baushke <mdb@gnu.org>.
68118
68119 2006-01-24  Simon Josefsson  <jas@extundo.com>
68120
68121         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68122         Bruno.
68123
68124 2006-01-24  Karl Berry  <karl@gnu.org>
68125
68126         * config/srclist.txt (argp-namefrob.h): sync lost.
68127
68128 2006-01-24  Jim Meyering  <jim@meyering.net>
68129
68130         * modules/openat (Files): Add lib/intprops.h.
68131         From Mark D. Baushke.
68132
68133 2006-01-24  Jim Meyering  <jim@meyering.net>
68134
68135         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68136         Reported by Mark D. Baushke.
68137
68138 2006-01-24  Jim Meyering  <jim@meyering.net>
68139
68140         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68141
68142 2006-01-24  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/strnlen (Maintainer): Change from glibc to all.
68145
68146 2006-01-24  Bruno Haible  <bruno@clisp.org>
68147
68148         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68149         Patch by Paul Eggert.
68150
68151 2006-01-24  Bruno Haible  <bruno@clisp.org>
68152
68153         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68154         already has it.
68155         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68156         2005-11-26.
68157
68158         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68159         'signed char' to avoid problems with the built-in _Bool type.
68160         Reported by Paul Eggert on 2005-11-26.
68161
68162 2006-01-24  Bruno Haible  <bruno@clisp.org>
68163
68164         * gnulib-tool (func_import): Avoid constructing complicated sed
68165         expressions inside backquote.
68166         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68167
68168 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68169
68170         These changes imported from libc.
68171         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68172         test and two separate function calls.
68173         * lib/strndup.c (__strndup): Add libc_hidden_def.
68174
68175 2006-01-23  Simon Josefsson  <jas@extundo.com>
68176
68177         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68178         Remove the test_*_SOURCES variable: automake infers it by default.
68179         * modules/tls-tests: Likewise.
68180
68181 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         Work around porting bugs reported by Dieter in
68184         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68185         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68186         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68187         Include "getopt.h" first, to check interface.
68188         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68189         !HAVE_DECL_GETENV.
68190         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68191         (__strndup): Revert to K&R-style function dfns, the glibc style.
68192         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68193         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68194         Include strnlen.h first, to get prototype properly.
68195         (strnlen): Renamed from __strnlen.
68196         Remove weak alias.
68197
68198 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68201
68202 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * config/srclist.txt: Adjust to reflect glibc reorganization.
68205         This affects only comments.
68206
68207 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68208
68209          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68210          Reported by Bruce Korb <bkorb@gnu.org>.
68211
68212 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68215         to pacify gcc -Wswitch-default.
68216
68217 2006-01-22  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68220         temporary buffer for sprintf, take into account the precision also
68221         for 'd', 'i', 'u', 'o', 'x', 'X'.
68222
68223 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68224
68225         * modules/argp-tests: New module
68226         * tests/test-argp.c: New file
68227         * tests/test-argp-2.sh: New file
68228
68229 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68230
68231         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68232         (__argp_base_name): Removed
68233         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68234         typo.
68235         (__argp_base_name): Provide macro definition or extern declaration
68236         depending on the configuration
68237
68238 2006-01-20  Simon Josefsson  <jas@extundo.com>
68239
68240         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68241
68242 2006-01-20  Simon Josefsson  <jas@extundo.com>
68243
68244         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68245
68246 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68249         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68250         Suggested by Bruno Haible.
68251
68252 2006-01-20  Karl Berry  <karl@gnu.org>
68253
68254         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68255         until changes propagate, I guess.
68256
68257 2006-01-19  Simon Josefsson  <jas@extundo.com>
68258
68259         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68260
68261 2006-01-19  Simon Josefsson  <jas@extundo.com>
68262
68263         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68264
68265 2006-01-19  Simon Josefsson  <jas@extundo.com>
68266
68267         * gnulib-tool: Set check_PROGRAMS.
68268
68269         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68270         modules/des-tests, modules/gc-arcfour-tests,
68271         modules/gc-arctwo-tests, modules/gc-des-tests,
68272         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68273         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68274         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68275         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68276         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68277         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68278         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68279         test_*_SOURCES.
68280
68281 2006-01-18  Simon Josefsson  <jas@extundo.com>
68282
68283         * modules/socklen (Depends-on): Depend on sys_socket.
68284
68285 2006-01-18  Simon Josefsson  <jas@extundo.com>
68286
68287         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68288         modules/des-tests, modules/gc-arcfour-tests,
68289         modules/gc-arctwo-tests, modules/gc-des-tests,
68290         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68291         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68292         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68293         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68294         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68295         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68296         $(EXEEXT) to automake TESTS variable, for mingw32.
68297
68298 2006-01-17  Simon Josefsson  <jas@extundo.com>
68299
68300         * modules/socklen (Include): Need sys/socket.h.
68301
68302 2006-01-17  Bruno Haible  <bruno@clisp.org>
68303
68304         * modules/ssize_t (Include): Add <sys/types.h>.
68305
68306 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68309         it's not portable and it doesn't work with cross-compiles.
68310         Problem reported by Bruno Haible.  Fix missing-$ typo in
68311         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68312         -zignore from being used with Sun's C compiler.
68313
68314 2006-01-12  Simon Josefsson  <jas@extundo.com>
68315
68316         * lib/base64.c: Fix warning, reported by Bruno Haible
68317         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68318
68319 2006-01-12  Bruno Haible  <bruno@clisp.org>
68320
68321         * modules/ldd: New file.
68322         * build-aux/ldd.sh.in: New file.
68323         * MODULES.html.sh (Support for building libraries and executables): Add
68324         ldd.
68325
68326 2006-01-12  Bruno Haible  <bruno@clisp.org>
68327
68328         * m4/ldd.m4: New file.
68329
68330 2006-01-12  Bruno Haible  <bruno@clisp.org>
68331
68332         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68333         endless loop while replacing $auxdir with build-aux.
68334
68335 2006-01-11  Simon Josefsson  <jas@extundo.com>
68336
68337         * lib/stdint_.h (SIZE_MAX): Add missing (.
68338
68339 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68340
68341         Sync from coreutils.
68342         * lib/md5.c: Fix commentary typos.
68343         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68344         * lib/md5.h (__attribute__): Remove; unused.
68345         * lib/sha1.c: Fix commentary to match md5 better.
68346         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68347         so that we don't need to worry about alignment.  All uses changed.
68348         This merges the 2005-10-28 md5 change into sha1.
68349
68350 2006-01-11  Jim Meyering  <jim@meyering.net>
68351
68352         Sync from coreutils.
68353         * lib/md5.c (OP): Fix spacing.
68354
68355 2006-01-11  Bruno Haible  <bruno@clisp.org>
68356
68357         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68358         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68359         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68360
68361 2006-01-11  Bruno Haible  <bruno@clisp.org>
68362
68363         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68364         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68365         the "early" section as well.
68366
68367 2006-01-11  Bruno Haible  <bruno@clisp.org>
68368
68369         Avoid "ar: no archive members specified" error on MacOS X.
68370         * gnulib-tool (func_modules_add_dummy): New function.
68371         (func_import, func_create_testdir): Invoke it.
68372
68373 2006-01-11  Bruno Haible  <bruno@clisp.org>
68374
68375         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68376         with $auxdir in AC_CONFIG_FILES statements.
68377
68378 2006-01-11  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68381         Initialize also noinst_HEADERS to empty.
68382
68383 2006-01-11  Bruno Haible  <bruno@clisp.org>
68384
68385         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68386         variables.
68387         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68388         autoreconf.
68389
68390 2006-01-11  Bruno Haible  <bruno@clisp.org>
68391
68392         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68393         overridable by the user.
68394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68395
68396 2006-01-10  Simon Josefsson  <jas@extundo.com>
68397
68398         * modules/sys_socket: New file.
68399
68400 2006-01-10  Simon Josefsson  <jas@extundo.com>
68401
68402         * m4/sys_socket_h.m4: New file.
68403
68404 2006-01-10  Simon Josefsson  <jas@extundo.com>
68405
68406         * lib/socket_.h: New file.
68407
68408 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68409
68410         * modules/readutmp (Maintainer): Add myself.
68411
68412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68415         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68416         People who are still concerned with buggy memcmp implementations
68417         can invoke gl_FUNC_MEMCMP themselves.
68418
68419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * lib/regex_internal.h (BITSET_WORD_BITS):
68422         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68423         preprocessor mishandles large unsigned values as if they were signed.
68424         Problem reported by Claudio Fontana in
68425         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68426
68427 2006-01-10  Jim Meyering  <jim@meyering.net>
68428
68429         Avoid the double-free (first in fts_read, second in fts_close) that
68430         would occur when an `active' directory is made inaccessible (e.g.,
68431         via chmod a-x) during a traversal.
68432         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68433         before returning.  Reproduce this failure by
68434         mkdir -p a/b; cd a; chmod a-x . b
68435         Reported by Stavros Passas.
68436
68437         Sync from coreutils.
68438         * lib/sha1.c: Tweak grammar in a comment.
68439
68440 2006-01-10  Jim Meyering  <jim@meyering.net>
68441
68442         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68443         Patch by Joerg Sonnenberger.
68444
68445 2006-01-10  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/readutmp: Depend on module free.
68448         * modules/strtok_r: Depend on module restrict.
68449
68450 2006-01-10  Bruno Haible  <bruno@clisp.org>
68451
68452         * modules/gettext (configure.ac): Add an invocation of
68453         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68454
68455 2006-01-10  Bruno Haible  <bruno@clisp.org>
68456
68457         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68458         Reported by Werner Lemberg <wl@gnu.org>.
68459
68460 2006-01-10  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/localcharset.c: Update from GNU gettext.
68463
68464 2006-01-10  Bruno Haible  <bruno@clisp.org>
68465
68466         * lib/argp.h (__const): Remove macro. Use const instead.
68467         * lib/argp-fmtstream.h (__const): Likewise.
68468         * lib/glob_.h (__const): Remove macro.
68469         * lib/glob-libc.h: Use const instead of __const.
68470
68471 2006-01-10  Bruno Haible  <bruno@clisp.org>
68472
68473         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
68474         variable.
68475         Needed to avoid an automake error regarding the 'gettext' module.
68476
68477 2006-01-09  Simon Josefsson  <jas@extundo.com>
68478
68479         * modules/inet_ntop (Depends-on): Add restrict.
68480
68481 2006-01-09  Simon Josefsson  <jas@extundo.com>
68482
68483         * modules/gc-rijndael-tests (License): Put under LGPL.
68484
68485         * modules/gc-des-tests (License): Likewise.
68486
68487         * modules/gc-arcfour-tests (License): Likewise.
68488
68489         * modules/gc-arctwo-tests (License): Likewise.
68490
68491         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
68492
68493         * modules/gc-hmac-sha1-tests (Files): Likewise.
68494
68495         * modules/gc-hmac-md5-tests (License): Likewise.
68496
68497         * modules/gc-sha1-tests (License): Likewise.
68498
68499         * modules/gc-md5-tests (License): Likewise.
68500
68501         * modules/gc-md4-tests (License): Likewise.
68502
68503         * modules/gc-md2-tests (License): Likewise.
68504
68505         * modules/gc-tests (License): Likewise.
68506
68507         * modules/des-tests (License): Likewise.
68508
68509         * modules/md4-tests (License): Likewise.
68510
68511         * modules/md2-tests (License): Likewise.
68512
68513 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         Sync from coreutils:
68516
68517         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
68518         * modules/lib-ignore: New file.
68519         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
68520         chdir-safer.m4, lchmod.m4.
68521         * modules/openat: Add mkdirat.c, openat-priv.h.
68522
68523 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         Sync from coreutils.
68526         * m4/lib-ignore.m4: New file.
68527         * m4/lchmod.m4: New file.
68528
68529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         Sync from coreutils.
68532         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
68533         for write access: POSIX says that must fail.
68534         * lib/fts.c (diropen): Likewise.
68535         * lib/save-cwd.c (save_cwd): Likewise.
68536         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
68537         well, for minor improvements on hosts that lack O_DIRECTORY.
68538         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
68539         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
68540         Fall back on chown if open failed with EACCES.
68541
68542         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
68543         Report an error at compile-time if only a 1-second nominal clock
68544         resolution is found.
68545
68546         * lib/lchmod.h: New file.
68547         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
68548         (make_dir_parents): Use lchown rather than chown, and
68549         lchmod rather than chmod.
68550
68551         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
68552         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
68553         "proc" reported by n0dalus.
68554
68555         * lib/mountlist.c: Include <limits.h>.
68556         (dev_from_mount_options)
68557         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
68558         New function.  It no longer assumes "dev=" has the System V meaning
68559         on Linux (since it doesn't).  It also parses "dev=" more carefully.
68560         (read_file_system_list)
68561         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
68562         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
68563         dev= in that case.
68564
68565         * lib/posixtm.h (PDS_PRE_2000): New macro.
68566         * lib/posixtm.c (year): Arg is now syntax_bits rather than
68567         allow_century.  All usages changed.  Reject dates outside the range
68568         1969-1999 if PDS_PRE_2000 is used.
68569
68570 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         Sync from coreutils.
68573         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
68574         (Time of day items): Mention the possibility of leap seconds.
68575         Problem reported by Dr. David Alan Gilbert.
68576
68577 2006-01-09  Jim Meyering  <jim@meyering.net>
68578
68579         Sync from coreutils.
68580
68581         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
68582
68583         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
68584
68585         * lib/modechange.c (mode_compile): Reject an invalid mode string
68586         that starts with an octal digit.  From Andreas Gruenbacher.
68587
68588         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
68589         and dup to open_safer and dup_safer, respectively.
68590         (openat_permissive): Fix typo in comment.
68591
68592         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
68593         "gettext.h"; either no longer needed or are guaranteed by openat.h.
68594         (_): Remove; no longer needed.
68595         (openat): Renamed from rpl_openat; no need for rpl_openat
68596         since openat.h renames openat for us.
68597         Replace most of the body with a call to openat_permissive,
68598         to avoid duplicate code.
68599         Port to (probably hypothetical) environments were mode_t is
68600         wider than int.
68601         (openat_permissive): Require mode arg, so that we can check
68602         types better.  Put it just after flags.  Change cwd failure
68603         indicator from pointer-to-bool to pointer-to-errno-value.
68604         All callers changed.
68605         Invoke openat_save_fail and/or openat_restore_fail if
68606         cwd_errno is null, so that openat can call us.
68607         (openat_permissive, fdopendir, fstatat, unlinkat):
68608         Simplify errno handling to avoid some duplicate code,
68609         as it's OK to set errno on success.
68610         * lib/openat.h: Revamp code so that function macros depend on
68611         __OPENAT_PREFIX only, not also on AT_FDCWD.
68612         (openat_ro): Remove.  Caller changed to use openat_permissive.
68613         (openat_permissive): Now a macro, if not a function.
68614         (openat_restore_fail, openat_save_fail): Now always functions,
68615         since mkdirat needs them even if __OPENAT_PREFIX is defined.
68616
68617         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
68618         and openat.c.
68619         * lib/mkdirat.c: Include openat-priv.h.
68620         Remove definitions of macros defined therein.
68621         * lib/openat.c: Likewise.
68622
68623         * lib/mkdirat.c (mkdirat): New file and function.
68624         * lib/openat.h (mkdirat): Declare.
68625
68626         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
68627
68628         * lib/openat.h (openat_permissive): Declare.
68629         (openat_ro): Define.
68630
68631         * lib/openat.c (EXPECTED_ERRNO): New macro.
68632         (openat_permissive): New function -- used in remove.c rewrite.
68633         (all functions): Set errno just before returning, only if there
68634         was an actual failure.
68635         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
68636
68637         Emulate openat-family functions using Linux's procfs, if possible.
68638         Idea and some code based on Ulrich Drepper's glibc changes.
68639
68640         * lib/openat.c: (BUILD_PROC_NAME): New macro.
68641         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
68642         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
68643         before falling back on save_cwd and restore_cwd.
68644         (fdopendir, fstatat, unlinkat): Likewise.
68645
68646         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
68647         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
68648
68649         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
68650         as second argument to va_arg.  Otherwise, some versions of gcc
68651         warn that `if this code is reached, the program will abort'.
68652
68653 2006-01-09  Jim Meyering  <jim@meyering.net>
68654
68655         Sync from coreutils.
68656         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
68657         Require openat-priv.h.
68658
68659 2006-01-09  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/strnlen (Include): Use strnlen.h.
68662
68663 2006-01-09  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
68666
68667 2006-01-09  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/sysexit_.h (EX_OK): New macro.
68670         Suggested by Martin Lambers <marlam@marlam.de>.
68671
68672 2006-01-09  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
68675         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
68676
68677 2006-01-09  Bruno Haible  <bruno@clisp.org>
68678
68679         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
68680         numbers.
68681
68682 2006-01-09  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
68685         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
68686         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
68687         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
68688
68689 2006-01-09  Bruno Haible  <bruno@clisp.org>
68690
68691         * build-aux/javacomp.sh.in: New file, moved from lib/.
68692         * modules/javacomp-script (Files): Update.
68693         (configure.ac): Add AC_CONFIG_FILES invocation.
68694         (EXTRA_DIST): Remove variable.
68695
68696         * build-aux/javaexec.sh.in: New file, moved from lib/.
68697         * modules/javaexec (Files): Update.
68698         (configure.ac): Add AC_CONFIG_FILES invocation.
68699         (EXTRA_DIST): Remove javaexec.sh.in.
68700
68701         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
68702         * modules/csharpcomp-script (Files): Update.
68703         (configure.ac): Add AC_CONFIG_FILES invocation.
68704         (EXTRA_DIST): Remove variable.
68705
68706         * build-aux/csharpexec.sh.in: New file, moved from lib/.
68707         * modules/csharpexec (Files): Update.
68708         (configure.ac): Add AC_CONFIG_FILES invocation.
68709         (EXTRA_DIST): Remove csharpexec.sh.in.
68710
68711 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68712
68713         Sync from coreutils.
68714
68715         Add POSIX ACL support
68716         * lib/acl.h (copy_acl, set_acl): Add declarations.
68717         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
68718         systems other than Linux.
68719         (chmod_or_fchmod): New function: use fchmod when possible,
68720         and chmod otherwise.
68721         (file_has_acl): Add a POSIX ACL implementation, with a
68722         Linux-specific subcase.
68723         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
68724         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
68725         acls are unsupported.
68726         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
68727         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
68728         are unsupported.
68729
68730 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
68731
68732         Sync from coreutils.
68733         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
68734
68735 2006-01-07  Bruno Haible  <bruno@clisp.org>
68736
68737         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
68738         gl_EARLY.
68739
68740 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * lib/strftime.c (tzname): Don't declare if it is already #defined.
68743         Problem reported for Mingw by Mark Junker.
68744
68745 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * README: Gnulib normally doesn't generate a tarball.
68748
68749 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
68752         long int, not int, for nanosecond counts, so that people who are
68753         used to POSIX struct timespec won't be surprised.  Reported by Jim
68754         Meyering.
68755
68756 2005-12-28  Bruno Haible  <bruno@clisp.org>
68757
68758         * build-aux/config.rpath: Update from GNU gettext.
68759
68760 2005-12-16  Jim Meyering  <jim@meyering.net>
68761
68762         * modules/fprintftime: New module.
68763         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
68764
68765 2005-12-16  Jim Meyering  <jim@meyering.net>
68766
68767         * m4/fprintftime.m4: New file.
68768
68769 2005-12-16  Jim Meyering  <jim@meyering.net>
68770
68771         * lib/fprintftime.c, lib/fprintftime.h: New files.
68772
68773 2005-12-15  Simon Josefsson  <jas@extundo.com>
68774
68775         * modules/socklen (configure.ac): Fix M4 macro name, to align with
68776         new m4/socklen.m4.
68777
68778 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68779
68780         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
68781         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
68782
68783 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68784
68785         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
68786         * lib/argp-help.c (fill_in_uparams): Check if the constructed
68787         struct uparams is valid. Fall back to the default values if it is
68788         not.
68789
68790 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68791
68792         * modules/argp (Files): Add argp-pin.c
68793         (Depends-on): dirname
68794         (lib_SOURCES): Add argp-pin.c
68795
68796 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68797
68798         * m4/argp.m4:  Check if program_invocation_name and
68799         program_invocation_short_name are declared and define appropriate
68800         macros if they are not.
68801
68802 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68803
68804         * lib/argp-help.c (__argp_base_name): New function
68805         (__argp_short_program_name): Rewrite using __argp_base_name
68806         * lib/argp-namefrob.h: Define program_invocation_name and
68807         program_invocation_short_name if requested
68808         (__argp_base_name): Add prototype
68809         * lib/argp-parse.c (argp_def): Use gettext wrappers
68810         (argp_default_parser): Use __argp_base_name
68811         * lib/argp-pin.c: New file. Defines program_invocation_name and
68812         program_invocation_short_name on systems that lack them.
68813
68814 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
68817         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68818         porting problem reported by Georg Schwarz in
68819         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68820
68821 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
68824         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
68825         porting problem reported by Georg Schwarz in
68826         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
68827
68828 2005-12-05  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
68831         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
68832         Reported by Mark Junker <mjscod@gmx.de>.
68833
68834 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
68837         Use implementation from Albert Chin, with some
68838         comments/corrections by Stepan Kasal and myself.
68839
68840 2005-12-02  Bruno Haible  <bruno@clisp.org>
68841
68842         * gnulib-tool (func_import): Accept GPLed build tool modules when
68843         --lgpl is given.
68844         * modules/csharpcomp-script: New file.
68845         * modules/csharpcomp: Depend on it.
68846         * modules/javacomp-script: New file.
68847         * modules/javacomp: Depend on it.
68848         Suggested by Simon Josefsson.
68849
68850 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
68853         statement, to work around an HP-UX 10.20 compiler bug reported by
68854         Peter O'Gorman.
68855
68856 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * modules/savedir (Depends-on): Add openat.
68859
68860 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
68861
68862         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
68863         (uintmax_t) [defined uintmax_t]: Do not declare.
68864         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
68865         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
68866         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
68867         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
68868         sake of portability to weird hosts that C allows (though we don't
68869         know of any practical examples).
68870
68871         * lib/savedir.h (fdsavedir): New decl.
68872         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
68873         contains most of the former guts of savedir.
68874         (savedir): Use savedirstream.
68875         Include "openat.h".
68876
68877 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * modules/obstack (Files): Add m4/ulonglong.m4.
68880         Problem reported by Davide Angelocola.
68881
68882 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
68885         coreutils no longer futzes with rounding modes.
68886
68887 2005-11-14  Jim Meyering  <jim@meyering.net>
68888
68889         * lib/mkstemp-safer.c: Include <config.h>, required for possible
68890         replacement of mkstemp.
68891
68892 2005-11-10  Simon Josefsson  <jas@extundo.com>
68893
68894         * lib/readline.c: Remove EOL.
68895
68896 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * modules/gethrxtime (Depends-on): Add gettime.
68899
68900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
68903         or gettimeofday; no longer needed.
68904
68905 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
68908         time business.
68909         (gethrxtime) [! (HAVE_NANOUPTIME
68910         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
68911         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
68912         our own approximation.
68913
68914 2005-11-08  Eric Blake  <ebb9@byu.net>
68915
68916         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68917
68918 2005-11-08  Eric Blake  <ebb9@byu.net>
68919
68920         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
68921
68922 2005-11-04  Bruno Haible  <bruno@clisp.org>
68923
68924         * gnulib-tool: Implement --update mode.
68925
68926 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         Fix porting problem reported by Theodoros V. Kalamatianos.
68929         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
68930         Don't assume that futimes failing means we must fail.
68931
68932 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
68935         variables to suggest the intended function of the PATH_MAX check.
68936
68937 2005-10-30  Kean Johnston  <jkj@sco.com>
68938
68939         Trivial changes to support SCO systems.
68940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
68941         as PATH_MAX.
68942         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
68943         where __ptr is null when no I/O is pending.
68944
68945 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
68948         leave errno alone.  Problem reported by Dmitry V. Levin.
68949
68950 2005-10-28  Simon Josefsson  <jas@extundo.com>
68951
68952         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
68953         Test more.
68954
68955         * tests/test-gc-md2.c, tests/test-md2.c: New files.
68956
68957         * modules/md2, modules/md2-tests: New files.
68958
68959 2005-10-28  Simon Josefsson  <jas@extundo.com>
68960
68961         * m4/inet_ntop.m4: More tests.
68962
68963         * m4/gc-md2.m4, md2.m4: New file.
68964
68965 2005-10-28  Simon Josefsson  <jas@extundo.com>
68966
68967         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
68968         "restrict" keywords, as per POSIX.  Protect the function
68969         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
68970         Don't use K&R prototypes.  Check the sprintf return values.
68971         Re-define EAFNOSUPPORT if not present.  Indent.
68972
68973         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
68974         suggested by Bruno Haible <bruno@clisp.org>.
68975
68976         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
68977
68978         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
68979
68980         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
68981         libgcrypt).
68982
68983         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
68984
68985         * lib/md2.h, lib/md2.c: New files.
68986
68987 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
68990         errno alone.  Problem reported by Frederic Jolliton.
68991
68992 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * modules/verify (License): Change from GPL to LGPL.  This is a
68995         tiny module and there are apparently near-equivalents that are
68996         under the BSD license.
68997
68998 2005-10-24  Simon Josefsson  <jas@extundo.com>
68999
69000         * modules/sha1: Relicense to LGPL.
69001
69002 2005-10-24  Simon Josefsson  <jas@extundo.com>
69003
69004         * lib/md4.h: Shrink buffer size, now that we changed the type.
69005
69006 2005-10-23  Simon Josefsson  <jas@extundo.com>
69007
69008         * gnulib-tool (func_import): Fix --tests-base.
69009
69010 2005-10-22  Simon Josefsson  <jas@extundo.com>
69011
69012         * modules/arcfour (Depends-on): Need stdint.
69013
69014 2005-10-22  Simon Josefsson  <jas@extundo.com>
69015
69016         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69017         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69018
69019 2005-10-22  Simon Josefsson  <jas@extundo.com>
69020
69021         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69022         suggested by Bruno Haible <bruno@clisp.org>.
69023
69024 2005-10-22  Simon Josefsson  <jas@extundo.com>
69025
69026         * lib/crc.h: Include stddef.h, for size_t.
69027
69028 2005-10-22  Simon Josefsson  <jas@extundo.com>
69029
69030         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69031         arcfour_context struct (simplify test vector testing in GNU
69032         Shishi).
69033
69034 2005-10-21  Simon Josefsson  <jas@extundo.com>
69035
69036         * modules/des, modules/des-tests: New files.
69037
69038         * modules/gc-des, modules/gc-des-tests: New files.
69039
69040         * tests/test-des.c, tests/test-gc-des.c: New file.
69041
69042 2005-10-21  Simon Josefsson  <jas@extundo.com>
69043
69044         * modules/arctwo, modules/arctwo-tests: New files.
69045
69046         * tests/test-arctwo.c: New file.
69047
69048         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69049
69050         * tests/test-gc-arctwo.c: New file.
69051
69052 2005-10-21  Simon Josefsson  <jas@extundo.com>
69053
69054         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69055         Bruno Haible <bruno@clisp.org>.
69056
69057         * m4/gc-des.m4: New file.
69058
69059 2005-10-21  Simon Josefsson  <jas@extundo.com>
69060
69061         * m4/arctwo.m4: New file.
69062
69063         * m4/gc-arctwo.m4: New file.
69064
69065 2005-10-21  Simon Josefsson  <jas@extundo.com>
69066
69067         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69068         block.
69069
69070 2005-10-21  Simon Josefsson  <jas@extundo.com>
69071
69072         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69073         <bruno@clisp.org>.
69074
69075         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69076
69077         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69078         Bruno Haible <bruno@clisp.org>.
69079
69080         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69081         <bruno@clisp.org>.
69082
69083 2005-10-21  Simon Josefsson  <jas@extundo.com>
69084
69085         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69086
69087 2005-10-21  Simon Josefsson  <jas@extundo.com>
69088
69089         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69090
69091 2005-10-21  Simon Josefsson  <jas@extundo.com>
69092
69093         * lib/des.h, lib/des.c: New files.
69094
69095         * lib/gc-gnulib.c: Support DES.c
69096
69097 2005-10-21  Simon Josefsson  <jas@extundo.com>
69098
69099         * lib/arctwo.h, lib/arctwo.c: New files.
69100
69101         * lib/gc-gnulib.c: Support ARCTWO.
69102
69103 2005-10-21  Simon Josefsson  <jas@extundo.com>
69104
69105         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69106         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69107
69108 2005-10-21  Simon Josefsson  <jas@extundo.com>
69109
69110         * gnulib-tool (func_import, func_create_testdir): Define automake
69111         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69112         Makefile.am snippet),
69113         suggested by Bruno Haible <bruno@clisp.org>.
69114
69115         * modules/gc (Makefile.am): Use it.
69116
69117 2005-10-21  Bruno Haible  <bruno@clisp.org>
69118
69119         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69120         patch.
69121
69122 2005-10-19  Simon Josefsson  <jas@extundo.com>
69123
69124         * tests/test-gc-rijndael.c: New file.
69125
69126         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69127
69128 2005-10-19  Simon Josefsson  <jas@extundo.com>
69129
69130         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69131         interface too.
69132
69133 2005-10-19  Simon Josefsson  <jas@extundo.com>
69134
69135         * tests/test-gc-arcfour.c: New file.
69136
69137         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69138
69139 2005-10-19  Simon Josefsson  <jas@extundo.com>
69140
69141         * modules/gc-md4, modules/gc-md4-tests: New file.
69142
69143         * tests/test-gc-md4.c: New file.
69144
69145 2005-10-19  Simon Josefsson  <jas@extundo.com>
69146
69147         * m4/gc-md4.m4: New file.
69148
69149 2005-10-19  Simon Josefsson  <jas@extundo.com>
69150
69151         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69152         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69153         <kasal@ucw.cz>.
69154
69155 2005-10-19  Simon Josefsson  <jas@extundo.com>
69156
69157         * m4/gc-arcfour.m4: New file.
69158
69159         * m4/gc-rijndael.m4: New file.
69160
69161 2005-10-19  Simon Josefsson  <jas@extundo.com>
69162
69163         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69164
69165 2005-10-19  Simon Josefsson  <jas@extundo.com>
69166
69167         * lib/gc-gnulib.c: Support ARCFOUR.
69168
69169 2005-10-19  Simon Josefsson  <jas@extundo.com>
69170
69171         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69172         support.
69173
69174         * lib/gc.h: Add ECB enum type.
69175
69176         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69177
69178 2005-10-18  Simon Josefsson  <jas@extundo.com>
69179
69180         * tests/test-md5.c: New file.
69181
69182         * modules/md5-tests: New file.
69183
69184 2005-10-18  Simon Josefsson  <jas@extundo.com>
69185
69186         * tests/test-md4.c: New file.
69187
69188         * modules/md4, modules/md4-tests: New files.
69189
69190 2005-10-18  Simon Josefsson  <jas@extundo.com>
69191
69192         * m4/md4.m4: New file.
69193
69194 2005-10-18  Simon Josefsson  <jas@extundo.com>
69195
69196         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69197
69198 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69199
69200         * gnulib-tool (func_create_testdir): Omit the second check whether
69201         BUILT_SOURCES in nonempty.
69202
69203 2005-10-17  Simon Josefsson  <jas@extundo.com>
69204
69205         * tests/test-rijndael.c: New file.
69206
69207 2005-10-17  Simon Josefsson  <jas@extundo.com>
69208
69209         * modules/sha1: Depend on stdint instead of md5.
69210
69211         * modules/md5: Depend on stdint, remove uint32_t.
69212
69213 2005-10-17  Simon Josefsson  <jas@extundo.com>
69214
69215         * modules/gc-sha1-tests: New file.
69216
69217         * tests/test-gc-sha1.c: New file.
69218
69219 2005-10-17  Simon Josefsson  <jas@extundo.com>
69220
69221         * m4/md5.m4: Remove call to uint32_t.m4.
69222
69223 2005-10-17  Simon Josefsson  <jas@extundo.com>
69224
69225         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69226
69227         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69228         md5.h.
69229
69230         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69231
69232         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69233
69234 2005-10-17  Simon Josefsson  <jas@extundo.com>
69235
69236         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69237
69238 2005-10-17  Simon Josefsson  <jas@extundo.com>
69239
69240         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69241
69242 2005-10-17  Simon Josefsson  <jas@extundo.com>
69243
69244         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69245
69246         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69247
69248 2005-10-17  Bruno Haible  <bruno@clisp.org>
69249
69250         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69251         that it can also be used in a test.
69252
69253 2005-10-16  Bruno Haible  <bruno@clisp.org>
69254
69255         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69256         TESTS_ENVIRONMENT, so that individual tests can augment it.
69257
69258         * gnulib-tool (func_create_testdir): Use an intermediate target for
69259         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69260         macros, like $(ALLOCA_H), which cannot be passed through the command
69261         line.
69262
69263 2005-10-15  Simon Josefsson  <jas@extundo.com>
69264
69265         * modules/rijndael-tests: New file.
69266
69267         * modules/rijndael: New file.
69268
69269 2005-10-15  Simon Josefsson  <jas@extundo.com>
69270
69271         * m4/rijndael.m4: New file.
69272
69273 2005-10-15  Simon Josefsson  <jas@extundo.com>
69274
69275         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69276
69277         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69278
69279 2005-10-14  Simon Josefsson  <jas@extundo.com>
69280
69281         * tests/test-arcfour.c: New file.
69282
69283         * modules/arcfour, modules/arcfour-tests: New files.
69284
69285 2005-10-14  Simon Josefsson  <jas@extundo.com>
69286
69287         * m4/arcfour.m4: New file.
69288
69289 2005-10-14  Simon Josefsson  <jas@extundo.com>
69290
69291         * lib/arcfour.h, lib/arcfour.c: New files.
69292
69293 2005-10-14  Roland McGrath  <roland@redhat.com>
69294
69295         Import from libc.  [BZ #1331]
69296         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69297         macro argument.
69298         Reported by Matej Vela <vela@debian.org>.
69299
69300 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69303         include <wchar.h>; no longer needed.
69304
69305 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69306
69307         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69308
69309 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69310         and  Ulrich Drepper  <drepper@redhat.com>
69311
69312         Import from libc.
69313         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69314         instead of inline stream orientation test and two separate
69315         function calls.  Pay no attention to USE_IN_LIBIO.
69316
69317 2005-10-13  Simon Josefsson  <jas@extundo.com>
69318
69319         * modules/gc-hmac-md5-tests: New file.
69320
69321         * tests/test-gc-hmac-sha1.c: New file.
69322
69323         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69324
69325         * modules/gc-hmac-md5-tests: New file.
69326
69327         * tests/test-gc-md5.c: New file.
69328
69329         * modules/gc-md5-tests: New file.
69330
69331 2005-10-13  Simon Josefsson  <jas@extundo.com>
69332
69333         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69334         Move memory allocation outside of loop.
69335
69336 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69339         intermediate directory is in a read-only file system.  Problem
69340         reported by Eric Blake.
69341
69342 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69343
69344         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69345
69346 2005-10-12  Simon Josefsson  <jas@extundo.com>
69347
69348         * tests/test-hmac-sha1.c: New file.
69349
69350         * modules/hmac-sha1-tests: New file.
69351
69352         * modules/hmac-sha1: New file.
69353
69354 2005-10-12  Simon Josefsson  <jas@extundo.com>
69355
69356         * modules/gc-sha1: New file.
69357
69358 2005-10-12  Simon Josefsson  <jas@extundo.com>
69359
69360         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69361
69362         * tests/test-gc-pbkdf2-sha1.c: New file.
69363
69364 2005-10-12  Simon Josefsson  <jas@extundo.com>
69365
69366         * modules/gc-md5, modules/gc-hmac-md5: New files.
69367
69368         * modules/gc (Files): Remove md5, memxor and hmac files.
69369
69370 2005-10-12  Simon Josefsson  <jas@extundo.com>
69371
69372         * m4/gc-pbkdf2-sha1.m4: New file.
69373
69374         * m4/gc-hmac-sha1.m4: New file.
69375
69376         * m4/gc-sha1: New file.
69377
69378         * m4/hmac-sha1.m4: New file.
69379
69380 2005-10-12  Simon Josefsson  <jas@extundo.com>
69381
69382         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69383
69384         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69385
69386 2005-10-12  Simon Josefsson  <jas@extundo.com>
69387
69388         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69389         suggested by Bruno Haible <bruno@clisp.org>.
69390
69391 2005-10-12  Simon Josefsson  <jas@extundo.com>
69392
69393         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69394
69395 2005-10-12  Simon Josefsson  <jas@extundo.com>
69396
69397         * lib/gc-pbkdf2-sha1.c: New file.
69398
69399         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69400
69401 2005-10-12  Simon Josefsson  <jas@extundo.com>
69402
69403         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69404
69405         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69406
69407 2005-10-12  Simon Josefsson  <jas@extundo.com>
69408
69409         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69410         GC_USE_HMAC_MD5, respectively.
69411
69412         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69413         (gc_md5): Fix typo.
69414
69415         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69416
69417         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69418
69419         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69420
69421 2005-10-12  Bruno Haible  <bruno@clisp.org>
69422
69423         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69424         Reported by Stepan Kasal <kasal@ucw.cz>.
69425
69426 2005-10-11  Simon Josefsson  <jas@extundo.com>
69427
69428         * tests/test-crc.c: New file.
69429
69430         * modules/crc, modules/crc-tests: New files.
69431
69432 2005-10-11  Simon Josefsson  <jas@extundo.com>
69433
69434         * m4/crc.m4: New file.
69435
69436 2005-10-11  Simon Josefsson  <jas@extundo.com>
69437
69438         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69439
69440         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69441
69442         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69443
69444 2005-10-11  Simon Josefsson  <jas@extundo.com>
69445
69446         * lib/crc.h, lib/crc.c: New files.
69447
69448         * lib/gc.h (gc_hash_buffer): Add doc.
69449
69450 2005-10-11  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/c-strcasestr: New file.
69453         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69454
69455 2005-10-11  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/c-strcase: New file.
69458         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69459
69460 2005-10-11  Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/strcasecmp.c: Include limits.h.
69463         (strcasecmp): Avoid integer overflow on exotic platforms.
69464         * lib/strncasecmp.c: Include limits.h.
69465         (strncasecmp): Avoid integer overflow on exotic platforms.
69466         Reported by Paul Eggert.
69467
69468 2005-10-11  Bruno Haible  <bruno@clisp.org>
69469
69470         * lib/c-strcasestr.h: New file, from GNU gettext.
69471         * lib/c-strcasestr.c: New file, from GNU gettext.
69472
69473 2005-10-11  Bruno Haible  <bruno@clisp.org>
69474
69475         * lib/c-strcase.h: New file, from GNU gettext.
69476         * lib/c-strcasecmp.c: New file, from GNU gettext.
69477         * lib/c-strncasecmp.c: New file, from GNU gettext.
69478
69479 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * modules/mempcpy (License): GPL -> LGPL.
69482         * modules/strchrnul (License): Likewise.
69483         * modules/sysexits (License): Likewise.
69484
69485 2005-10-08  Simon Josefsson  <jas@extundo.com>
69486
69487         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
69488
69489 2005-10-07  Simon Josefsson  <jas@extundo.com>
69490
69491         * m4/memxor.m4: Remove gl_C_RESTRICT call.
69492
69493 2005-10-06  Simon Josefsson  <jas@extundo.com>
69494
69495         * tests/test-hmac-md5.c: New file.
69496
69497         * modules/hmac-md5-tests: New file.
69498
69499         * modules/hmac-md5: New file.
69500
69501 2005-10-06  Simon Josefsson  <jas@extundo.com>
69502
69503         * m4/hmac-md5.m4: New file.
69504
69505         * m4/memxor.m4: Require gl_C_RESTRICT.
69506
69507 2005-10-06  Simon Josefsson  <jas@extundo.com>
69508
69509         * lib/memxor.c (memxor): Avoid casts and warnings.
69510
69511 2005-10-06  Simon Josefsson  <jas@extundo.com>
69512
69513         * lib/hmac-md5.c: New file.
69514
69515         * lib/hmac.h: New file.
69516
69517 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
69520         promotes to int, not unsigned int, to catch the AIX 5.3
69521         compiler bug.
69522
69523 2005-10-05  Simon Josefsson  <jas@extundo.com>
69524
69525         * modules/memxor: New file.
69526
69527         * modules/iconv (Files): Move config.rpath to havelib, it is used
69528         there.
69529
69530         * modules/havelib (Files): Add config.rpath.
69531
69532 2005-10-05  Simon Josefsson  <jas@extundo.com>
69533
69534         * m4/memxor.m4: New file.
69535
69536 2005-10-05  Simon Josefsson  <jas@extundo.com>
69537
69538         * lib/memxor.c (memxor): Fix compiler error.
69539
69540         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
69541         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
69542
69543         * lib/memxor.h, lib/memxor.c: New files.
69544
69545         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
69546         we assume all systems have it, suggested by Jim Meyering
69547         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
69548         any systems lack sys/socket.h; mingw32 is known to lack it, but we
69549         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
69550         same reasons.
69551
69552 2005-10-05  Simon Josefsson  <jas@extundo.com>
69553
69554         * config/srclist.txt: Add glibc bug 1423 for md5.h.
69555
69556 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
69559         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
69560         needed, since the source code now assumes these .h files.
69561
69562 2005-10-05  Derek Price  <derek@ximbiot.com>
69563
69564         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
69565
69566 2005-10-05  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/stdint (License): Change to LGPL.
69569
69570 2005-10-04  Simon Josefsson  <jas@extundo.com>
69571
69572         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
69573         D. Baushke" <mdb@gnu.org>.
69574
69575 2005-10-04  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/verify.h (verify_true): Provide alternative definition for C++.
69578
69579 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
69580
69581         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
69582         (SSIZE_MAX): New macro, if not already defined.
69583         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
69584         than 2 GiB.
69585
69586 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         Sync from coreutils.
69589         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
69590         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
69591         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
69592         ULLONG_MAX doesn't work with 2.7.2.1.
69593
69594 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
69597         From Ben Pfaff.
69598
69599         * modules/exclude (Depends-on): Depend on verify.
69600         * modules/strtoimax (Depends-on): Likewise.
69601         * modules/utimecmp (Depends-on): Likewise.
69602
69603 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
69604
69605         * lib/exclude.c: Include verify.h.
69606         (verify): Remove.  All callers changed to use verify.h's version.
69607         * lib/strtoimax.c: Likewise.
69608         * lib/utimecmp.c: Likewis.e
69609
69610         Sync from coreutils.
69611         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
69612         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
69613         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
69614         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
69615         bother returning ENOSYS if settimeofday or stime fails; just let
69616         them return whatever errno they want to return.
69617         * lib/utimens.c: Include unistd.h, for dup2.
69618         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
69619         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
69620
69621 2005-10-02  Jim Meyering  <jim@meyering.net>
69622
69623         Sync from coreutils.
69624         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
69625         from glibc-2.2.5 that fails for read-only files.
69626
69627 2005-10-02  Jim Meyering  <jim@meyering.net>
69628
69629         Sync from coreutils.
69630         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
69631         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
69632         `#if HAVE_CONFIG_H'.
69633         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
69634         Remove AT_FDCWD test.
69635         Do not consume the fd unless successful.
69636         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
69637         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
69638         block, so that we don't even try to compile it if settimeofday is
69639         available.  This works around a compilation failure on OSF1 V5.1,
69640         due to stime requiring a `long int*' while tv_sec is `int'.
69641
69642 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
69643
69644         Sync from coreutils.
69645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
69646         against `yes', rather than just testing for nonempty.
69647
69648 2005-10-01  Simon Josefsson  <jas@extundo.com>
69649
69650         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
69651         and Darwin.
69652
69653         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
69654         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
69655         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
69656         freeaddrinfo and gai_strerror are declared by the POSIX headers.
69657         Check if struct addrinfo is declared.
69658
69659 2005-10-01  Simon Josefsson  <jas@extundo.com>
69660
69661         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
69662         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
69663         AI_* and EAI_* definitions.  Protect function declarations.
69664
69665 2005-10-01  Jim Meyering  <jim@meyering.net>
69666
69667         Sync from coreutils.
69668
69669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
69670         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
69671         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
69672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69673         in the inet and nsl libraries.  Required on Solaris 5.7.
69674
69675 2005-10-01  Jim Meyering  <jim@meyering.net>
69676
69677         Sync from coreutils.
69678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
69679         in the inet and nsl libraries.  Required on Solaris 5.7.
69680
69681 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
69682
69683         * lib/getdelim.c (getdelim): Remove unused variables.
69684
69685 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
69688         so that the code works even with ancient cpp.  Portability problem
69689         with GCC 2.7.2.1 reported by Thomas M.Ott.
69690
69691 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69692
69693         * modules/regex (Depends-on): Add strcase.
69694
69695         * modules/gethostname (Licence): Change from GPL to LGPL, since
69696         gethostname.c is a trivial implementation of a standard library
69697         function.
69698         * modules/poll (License): Change from GPL to LGPL, since it's
69699         derived from LGPL code.
69700
69701 2005-09-27  Jim Meyering  <jim@meyering.net>
69702
69703         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
69704         HAVE_CONFIG_H.
69705
69706         * lib/intprops.h (signed_type_or_expr__): Define.
69707         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
69708         for unsigned types.
69709
69710 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * lib/verify.h (verify_expr): Remove, replacing with:
69713         (verify_true): New macro that returns true instead of void.
69714         (verify_type__): Remove.
69715         (verify): Use verify_true rather than verify_type__.
69716
69717 2005-09-26  Bruno Haible  <bruno@clisp.org>
69718
69719         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
69720         is necessary.
69721         (lib_SOURCES): Remove mbchar.c.
69722         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
69723         (Files): Add m4/mbrtowc.m4.
69724         * modules/mbiter: Likewise.
69725         * modules/mbuiter: Likewise.
69726
69727 2005-09-26  Bruno Haible  <bruno@clisp.org>
69728
69729         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
69730         compile mbchar.c if they are not both present.
69731         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
69732         * m4/mbiter.m4 (gl_MBITER): Likewise.
69733         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
69734         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
69735         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
69736
69737 2005-09-25  Jim Meyering  <jim@meyering.net>
69738
69739         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
69740         also uses socklen_t.
69741
69742 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * lib/utimens.c (ENOSYS): Define if not already defined.
69745         (futimens): Support having a null PATH if the file descriptor
69746         is nonnegative.
69747
69748         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
69749         Remove.
69750         (__attribute): Define to empty unless GCC 3.1 or later.
69751         This works around a core dump on OpenBSD 3.4, which has GCC
69752         2.95.3, which dumps core when given __attribute__(()).  It also
69753         simplifies other tests, since we really don't want to bother with
69754         worrying about which ancient version of GCC supported what.
69755         Original problem reported by Yoann Vandoorselaere, with part of
69756         the fix suggested by Derek Price.
69757
69758 2005-09-24  Jim Meyering  <jim@meyering.net>
69759
69760         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
69761         so we can once again use a positive bitfield width of 1 -- now we
69762         don't have to explain why we were using a bitfield width of 2.
69763
69764 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
69767         and similarly for the other external symbols.  Problem reported
69768         by James Gallager.
69769
69770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
69771         bug reported by Jim Meyering.
69772
69773         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
69774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
69775         not needed, since socklen is a prerequisite module.
69776
69777 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
69780         Problem reported by Eric Blake.
69781         (getaddrinfo): Initialize se so that it's not garbage.
69782         Redo internal storage allocation so that it doesn't make unportable
69783         assumptions about alignment.
69784         Fix a memory leak.
69785
69786         * lib/utimens.c (futimens): Use futimesat if available.
69787         Prefer it to futimes since it doesn't have the futimes bug.
69788
69789         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
69790         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
69791         Instead, declare a function that returns a pointer to an array,
69792         and use verify_type__ to declare the size of the array.
69793         Problem and germ of a solution reported by Bruno Haible.
69794         (verify_type__): Use 2, not 1, for bitfield size, to avoid
69795         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
69796
69797 2005-09-23  Jim Meyering  <jim@meyering.net>
69798
69799         Sync from coreutils.
69800         Correct build failure (socklen_t not defined) on at least
69801         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
69802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
69803
69804 2005-09-23  Jim Meyering  <jim@meyering.net>
69805
69806         * modules/getaddrinfo (Depends-on): Add socklen.
69807
69808 2005-09-23  Bruno Haible  <bruno@clisp.org>
69809
69810         * tests/test-verify.c: New file.
69811
69812 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         Sync from coreutils.
69815
69816         * modules/argmatch (Depends-on): Add verify.
69817         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
69818         unistd-safer.
69819         * modules/save-cwd (Depends-on): Likewise.
69820
69821         * modules/openat (Files): Add lib/openat-die.c.
69822         (Depends-on): Remove error, exitfail.
69823         Add dirname.
69824
69825         * modules/verify: New file.
69826         * MODULES.html.sh (Diagnostics <assert.h>): New section,
69827         with "verify" module.
69828
69829 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69830
69831         Sync from coreutils.
69832
69833         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
69834         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
69835         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
69836         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
69837         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
69838         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
69839         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
69840         Don't bother checking for string.h, stdlib.h, unistd.h.
69841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
69842         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
69843         module's job.
69844         * m4/jm-macros.m4 (gl_MACROS): Likewise.
69845         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
69846
69847         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
69848         (gl_GETDATE): Use it.
69849
69850         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
69851
69852 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         Sync from coreutils.
69855
69856         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
69857         stat-time.h.
69858         * lib/argmatch.h: Include verify.h
69859         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
69860         (ARGMATCH_ASSERT): Remove; unused.
69861         * lib/canonicalize.c: Assume STDC_HEADERS.
69862         * lib/exclude.c: Include "strcase.h".
69863         * lib/regex_internal.h [!defined _LIBC]: Likewise.
69864         * lib/getusershell.c: Include stdio--.h rather than stdio.h
69865         and stdio-safer.h.
69866         (getusershell): Call fopen, not fopen_safer.
69867         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
69868         Do not include unistd-safer.h.
69869         (save_cwd): Don't call fd_safer; no longer needed
69870         now that we include fcntl--.h.
69871
69872         * lib/getdate.y (relative_time): New type.
69873         (RELATIVE_TIME_0): New constant.
69874         (parser_control): Use relative_time instead of doing it ourselves.
69875         (%union): Add new relative_time rel member.
69876         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
69877         Now typeless.
69878         (relunit, relunit_snumber): Now of type rel.
69879         (zone, rel, relunit, get_date): Adjust to above changes.
69880
69881         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
69882         Do not include unistd-safer.h.
69883         (getloadavg): Don't call fd_safer; no longer needed
69884         now that we include fcntl--.h.
69885
69886         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
69887         (make_dir_parents): Treat ENOSYS like EEXIST.
69888
69889         Improve quality of diagnostics on restore_cwd failure.
69890         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
69891         (make_dir_parents): Last arg is now int * (for errno), not bool *.
69892         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
69893         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
69894         each time through the loop.  Do not diagnose restore_cwd failure;
69895         that is the caller's job (and perhaps the caller does not care).
69896
69897         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
69898         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
69899         If the file already exists but is not a directory, don't bother
69900         to try to make its parents.
69901         Close potential file descriptor leak if we can't chdir("/") (!).
69902         Don't always return true if chdir($PWD) fails; return true only
69903         if the requested action was done successfully (except for the
69904         chdir($PWD)).
69905         Don't log final directory unless we actually made it.
69906         Refactor to avoid duplicate code to fix up permissions.
69907         Don't attempt to fix up parent permissions if chdir($PWD) fails.
69908
69909         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
69910         to make it a bit faster and (I hope) clearer.
69911         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
69912         Fix bug in formats like %2N.
69913
69914         * lib/verify.h: New file.
69915
69916 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         Sync from coreutils.
69919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
69920
69921 2005-09-22  Jim Meyering  <jim@meyering.net>
69922
69923         Sync from coreutils.
69924
69925         * m4/lstat.m4 (gl_FUNC_LSTAT):
69926         Use AC_LIBSOURCES to require lstat.c and lstat.h.
69927         Remove obsolete comment.
69928         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
69929         * m4/xstrtod.m4: Likewise.
69930
69931         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
69932
69933 2005-09-22  Jim Meyering  <jim@meyering.net>
69934
69935         Sync from coreutils.
69936
69937         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
69938
69939         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
69940         the .tm_year member, since otherwise gcc-4.0 would now warn about
69941         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
69942
69943         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
69944         order to avoid an unsuppressible warning from gcc on 64-bit systems.
69945
69946         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
69947         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
69948         when run in a time zone for which daylight savings time is in effect
69949         for the starting date.
69950
69951         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
69952         stop us from restricting permissions of just-created absolute-named
69953         directories.
69954         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
69955         to restore initial working directory.
69956         * lib/mkdir-p.c (make_dir_parents): New parameter:
69957         different_working_dir, to tell caller if/when we change the working
69958         directory and are unable to return to the initial one.
69959         * lib/mkdir-p.h (make_dir_parents): Update prototype.
69960         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
69961         `return false'.  This fixes a bug introduced on 2004-07-30.
69962
69963         * lib/openat.c (fdopendir): Be sure to close the supplied
69964         file descriptor before returning.  This makes our replacement
69965         implementation a little closer to Solaris's, where fdopendir
69966         ties the file descriptor to the returned DIR* pointer.
69967         * lib/openat.c (unlinkat): New function.
69968         * lib/openat.h (unlinkat): Add prototype.
69969         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
69970         (openat_restore_fail): Rename from openat_restore_die.
69971         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
69972
69973         Provide an alternative to exiting immediately upon save_cwd or
69974         restore_cwd failure.  Now, an application can arrange e.g.,
69975         to perform a longjump in that case.
69976         * lib/openat.c: Include dirname.h.
69977         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
69978         (rpl_openat, fdopendir, fstatat): Call openat_save_die
69979         and openat_restore_die rather than calling error directly.
69980         Don't include "error.h" or "exitfail.h"; they're no longer needed.
69981
69982         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
69983         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
69984         define.
69985
69986         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
69987         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
69988                             int utc, int nanoseconds);
69989         Background:
69990         date should not have to allocate a megabyte of virtual memory to
69991         handle a format argument like +%1048575T.  When implemented with
69992         strftime, it must allocate such a buffer, use strftime to fill it
69993         in, print it, then free it.
69994         With fprintftime, it simply prints everything and exits.
69995         With no need for memory allocation, that's one fewer way to fail.
69996         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
69997         optional field width, not before, so we accept %9:z, not %:9z.
69998         (my_strftime): Be sure to use L_('x') for literals.
69999
70000         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70001         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70002         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70003         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70004         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70005         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70006         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70007         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70008         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70009         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70010         * lib/xgethostname.c, lib/xreadlink.c:
70011         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70012
70013         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70014         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70015         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70016         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70017         and don't include <sys/file.h>).
70018
70019 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70020
70021         Sync from coreutils.
70022
70023         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70024         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70025         [!LDAV_DONE]: Avoid unused variable warning.
70026
70027 2005-09-21  Bruno Haible  <bruno@clisp.org>
70028
70029         * lib/unicodeio.h (unicode_to_mb): New declaration.
70030
70031 2005-09-20  Derek Price  <derek@ximbiot.com>
70032
70033         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70034         getaddrinfo.h.
70035
70036 2005-09-20  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool: Remove trailing slashes from the values specified for
70039         --source-base, --m4-base, --tests-base, --aux-dir.
70040         Suggested by Simon Josefsson <jas@extundo.com>.
70041
70042 2005-09-20  Bruno Haible  <bruno@clisp.org>
70043
70044         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70045         func_modules_to_filelist, func_import, func_create_testdir): Make all
70046         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70047         change when gnulib-tool is invoked in a different locale.
70048
70049 2005-09-19  Simon Josefsson  <jas@extundo.com>
70050
70051         * m4/socklen.m4: Fix typo.
70052
70053 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70054
70055         Use a consistent style for including <config.h>.
70056         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70057         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70058         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70059         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70060         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70061         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70062         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70063         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70064         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70065         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70066         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70067         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70068         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70069         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70070         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70071         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70072         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70073         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70074         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70075         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70076         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70077         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70078         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70079         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70080         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70081         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70082         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70083         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70084         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70085         lib/xstrtoumax.c, lib/yesno.c:
70086         Standardize inclusion of config.h.
70087         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70088         lib/inttostr.h:  Removed inclusion of config.h from header files.
70089         * lib/inttostr.c:  Adjusted in-tree users.
70090         * lib/timespec.h: Remove superfluous warning to include config.h.
70091         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70092         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70093         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70094         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70095         config.h with HAVE_CONFIG_H.
70096
70097 2005-09-19  Jim Meyering  <jim@meyering.net>
70098
70099         * modules/pathmax (License): Change to LGPL.
70100
70101 2005-09-19  Derek Price  <derek@ximbiot.com>
70102
70103         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70104
70105 2005-09-19  Bruno Haible  <bruno@clisp.org>
70106
70107         * gnulib-tool (import): Provide default for --tests-base.
70108
70109 2005-09-19  Bruno Haible  <bruno@clisp.org>
70110
70111         * doc/quote.texi: New file, extracted from gnulib.texi.
70112         * doc/ctime.texi: New file, extracted from gnulib.texi.
70113         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70114         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70115         * doc/gnulib.texi: Include them.
70116
70117 2005-09-18  Bruno Haible  <bruno@clisp.org>
70118
70119         Portability fix.
70120         * gnulib-tool (func_readlink): New function.
70121         (func_ln_if_changed): Use it.
70122
70123 2005-09-18  Bruno Haible  <bruno@clisp.org>
70124
70125         * gnulib-tool: Support --with-tests also with --import.
70126         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70127         (func_import): Use variables $testsbase and $inctests. Emit a
70128         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70129         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70130         SUBDIRS += $testsdir.
70131         (func_create_testdir): Update.
70132
70133 2005-09-18  Bruno Haible  <bruno@clisp.org>
70134
70135         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70136         instead of $dry_run.
70137         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70138         (func_ln_if_changed): Don't handle dry-run here.
70139         (func_import): In dry-run mode, detect more precisely which actions
70140         would be performed, and don't use "...ing" verbs.
70141
70142 2005-09-18  Bruno Haible  <bruno@clisp.org>
70143
70144         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70145         (func_import): Use join on two temporary files instead of three nested
70146         loops, in order to determine which files are new or old.
70147
70148 2005-09-18  Bruno Haible  <bruno@clisp.org>
70149
70150         * gnulib-tool (func_import): Comment out code that spits out the
70151         new files with --dry-run.
70152
70153 2005-09-18  Bruno Haible  <bruno@clisp.org>
70154
70155         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70156
70157 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/stat-time.h: New file.
70160         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70161         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70162         in a different way.
70163         (timespec_cmp): New function.
70164         * lib/utimecmp.c: Include stat-time.h.
70165         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70166         members exist, not on the obsolescent ST_MTIM_NSEC.
70167         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70168
70169 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70170
70171         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70172
70173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * MODULES.html.sh (File system functions): Add stat-time.
70176         * modules/stat-time: New file.
70177         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70178         is now done in a different way, by the stat-time module.
70179         * modules/utimecmp (Depends-on): Add stat-time.
70180
70181 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * m4/st_mtim.m4: Remove.  Superseded by...
70184         * m4/stat-time.m4: New file.
70185         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70186         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70187
70188 2005-09-15  Derek Price  <derek@ximbiot.com>
70189
70190         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70191
70192 2005-09-15  Derek Price  <derek@ximbiot.com>
70193
70194         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70195         * lib/regex_internal.c: Ditto, using this...
70196         (__GNUC_PREREQ): ...new macro.
70197         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70198         using...
70199         (__GNUC_PREREQ): ...this new macro.
70200
70201         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70202
70203 2005-09-15  Derek Price  <derek@ximbiot.com>
70204             Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70207         changes, consolidating in...
70208         * lib/regex_internal.h: ...this file.
70209
70210 2005-09-13  Jim Meyering  <jim@meyering.net>
70211
70212         * lib/canon-host.c: Filter through gnu indent and reword comments
70213         slightly.
70214         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70215
70216 2005-09-13  Derek Price  <derek@ximbiot.com>
70217
70218         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70219         failure.
70220         Reported by Jim Meyering  <jim@meyering.net>.
70221
70222 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70223
70224         * lib/base64.c: Typo.
70225         (base64_encode): Put b64str in initialized data section.
70226
70227 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70228
70229         Merge glibc and coreutils changes into gnulib, plus a few
70230         extra fixes.
70231         * lib/md5.c: Use #error rather than a string.
70232         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70233         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70234         (__attribute__): Define to empty for non recent-GCC.
70235         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70236         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70237         Renamed from their non-__ counterparts, with new macros replacing
70238         them if not _LIBC.  Add __THROW attribute.
70239         (rol): Remove.
70240         (struct md5_ctx): Align buffer if using GCC.
70241         * lib/sha1.h (struct sha1_ctx): Likewise.
70242         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70243         The old name was backwards.
70244         (NOTSWAP): Remove; not used.
70245         (rol): New macro, moved here from md5.h.
70246         (sha1_process_block): Remove a FIXME that doesn't make sense.
70247
70248 2005-09-12  Derek Price  <derek@ximbiot.com>
70249
70250         Return usable errors from canon-host.
70251         * lib/canon-host.h: New file.
70252         * lib/canon-host.c (canon_host): Wrap...
70253         (canon_host_r): ...this new function, which now relies exclusively on
70254         getaddrinfo.
70255         (ch_strerror): New function.
70256         (last_cherror): New global.
70257         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70258         interface.
70259         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70260         void *.
70261         (freeaddrinfo): Free ai->ai_canonname when set.
70262
70263 2005-09-12  Derek Price  <derek@ximbiot.com>
70264
70265         Make canon-host require getaddrinfo.
70266         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70267         AC_LIBSOURCE canon-host.h.  Call...
70268         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70269         gl_GETADDRINFO.
70270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70271
70272 2005-09-12  Derek Price  <derek@ximbiot.com>
70273
70274         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70275         LGPL.
70276         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70277
70278 2005-09-12  Derek Price  <derek@ximbiot.com>
70279
70280         * lib/gai_strerror.c: Include config.h when available.  Include
70281         getaddrinfo.h before other headers to test interface.
70282         Reported by Larry Jones <lawrence.jones@ugs.com>.
70283
70284 2005-09-12  Derek Price  <derek@ximbiot.com>
70285             Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * modules/glob (Files): Add glob-libc.h.
70288
70289 2005-09-12  Derek Price  <derek@ximbiot.com>
70290             Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70293         glob_.h, glob-libc.h.
70294         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70295
70296 2005-09-12  Derek Price  <derek@ximbiot.com>
70297             Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70300         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70301         protecting things that should be done only in gnulib contexts.
70302         * lib/glob_.h: New file, containing only the glob things needed for
70303         gnulib.
70304         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70305         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70306         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70307         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70308         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70309         and to respect the namespace rules better.
70310
70311 2005-09-08  Simon Josefsson  <jas@extundo.com>
70312
70313         * modules/socklen: New file.
70314
70315 2005-09-08  Simon Josefsson  <jas@extundo.com>
70316
70317         * m4/socklen.m4: New file.
70318
70319 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70320
70321         * modules/utimens (Files): Add m4/utimbuf.m4, since
70322         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70323         Reported by Sergey Poznyakoff.
70324
70325 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70328         definitions, since that's the preferred style in glibc.
70329         Fix a minor spacing issue, and update copyright notice to match
70330         glibc's.
70331
70332 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70335
70336 2005-09-06  Simon Josefsson  <jas@extundo.com>
70337
70338         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70339         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70340
70341 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70344         warning.
70345
70346 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * config/srclist.txt: Add glibc bug 1302.
70349
70350 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         Change bitset word type from unsigned int to unsigned long int,
70353         as this has better performance on typical 64-bit hosts.
70354         Port bitset code to hosts with unusual word sizes.
70355         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70356         (build_collating_symbol):
70357         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70358         argument is a bitset.  This is merely a style issue, but it makes
70359         it clearer that an entire array is expected.
70360         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70361         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70362         Port to the case where bitset_word is not the same as unsigned int.
70363         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70364         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70365         Likewise.
70366         * lib/regexec.c (check_dst_limits_calc_pos_1,
70367         check_subexp_matching_top):
70368         (build_trtable, group_nodes_into_DFAstates):
70369         Likewise.
70370         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70371         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70372         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70373         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70374         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70375         * lib/regcomp.c (optimize_subexps, lower_subexp):
70376         Work even if bitset_word has holes in its bitwise representation.
70377         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70378         * lib/regexec.c (check_dst_limits_calc_pos_1,
70379         check_subexp_matching_top):
70380         Likewise.
70381         * lib/regex_internal.c (re_string_reconstruct):
70382         Don't assume UCHAR_MAX == 255.
70383         * lib/regex_internal.h (bitset_set_all): Likewise.
70384         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70385         All uses changed.
70386         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70387         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70388         All uses changed.
70389         (BITSET_WORD_MAX): New macro.
70390         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70391         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70392         (bitset_empty, bitset_copy):
70393         Prefer sizeof (bitset) to multiplying it out ourselves.
70394         (bitset_not_merge): Remove; unused.
70395         (bitset_contain): Return bool, not unsigned int with one bit on.
70396         All callers changed.
70397         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70398         alignment than re_node_set; do this by defining a new internal
70399         type struct dests_alloc and using it to allocate memory.
70400
70401 2005-09-05  Bruno Haible  <bruno@clisp.org>
70402
70403         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70404         links.
70405
70406 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70407
70408         * modules/size_max (Makefile.am): Add size_max.h
70409
70410 2005-09-04  Derek Price  <derek@ximbiot.com>
70411
70412         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70413
70414 2005-09-03  Simon Josefsson  <jas@extundo.com>
70415
70416         * gnulib-tool: Fix typo.
70417
70418 2005-09-03  Simon Josefsson  <jas@extundo.com>
70419
70420         * config/srclist.txt: Add glibc bug 1293.
70421
70422 2005-09-03  Derek Price  <derek@ximbiot.com>
70423
70424         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70425         From Larry Jones <lawrence.jones@ugs.com>.
70426
70427 2005-09-02  Simon Josefsson  <jas@extundo.com>
70428
70429         * modules/socklen: New file.
70430
70431 2005-09-02  Simon Josefsson  <jas@extundo.com>
70432
70433         * modules/havelib: New module.
70434
70435         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70436         Use havelib.
70437
70438 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         Check for arithmetic overflow when calculating sizes, to prevent
70441         some buffer-overflow issues.  These patches are conservative, in the
70442         sense that when I couldn't determine whether an overflow was possible,
70443         I inserted a run-time check.
70444         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70445         macros.
70446         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70447         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70448         (re_xnrealloc, re_x2nrealloc): New inline functions.
70449         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70450         parse_bracket_exp):
70451         (build_equiv_class, build_charclass): Check for arithmetic overflow
70452         in size expression calculations.
70453         * lib/regex_internal.c (re_string_realloc_buffers):
70454         (build_wcs_upper_buffer, re_node_set_add_intersect):
70455         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70456         (re_dfa_add_node, register_state): Likewise.
70457         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70458         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70459         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70460         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70461
70462 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70465         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70466
70467 2005-09-02  Bruno Haible  <bruno@clisp.org>
70468
70469         Support for lib vs. lib64 distinction on biarch platforms.
70470         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
70471         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
70472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
70473
70474 2005-09-02  Bruno Haible  <bruno@clisp.org>
70475
70476         * gnulib-tool (import): In the other first-use case, provide defaults
70477         as well.
70478
70479 2005-09-02  Bruno Haible  <bruno@clisp.org>
70480
70481         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
70482         patches not yet found in the latest gettext release.
70483
70484 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
70487         to avoid a collision with bits/local_lim.h in glibc.
70488         All uses changed.  Problem reported by Dmitry V. Levin in
70489         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
70490
70491         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
70492         bugs in int versus size_t comparisons.
70493         (re_string_context_at): Fix bug where the code assumed that
70494         Idx is signed.
70495
70496         Use bool where appropriate.
70497         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
70498         All callers changed.
70499         (calc_eclosure_iter): Likewise, for ROOT arg.
70500         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
70501         (build_charclass_op): Likewise, for NON_MATCH arg.
70502         * lib/regex_internal.c (re_string_allocate, re_string_construct):
70503         (re_string_construct_common): Likewise, for ICASE arg.
70504         * lib/regexec.c (re_search_2_stub, re_search_stub):
70505         Likewise, for RET_LEN arg.
70506         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
70507         (set_regs): Likewise, for FL_BACKTRACK arg.
70508         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
70509         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
70510         (calc_eclosure_iter, parse_bracket_exp):
70511         Use bool for internal variables that are booleans.
70512         * lib/regexec.c (re_search_internal, check_matching,
70513         proceed_next_node):
70514         (set_regs, build_sifted_states, sift_states_bkref):
70515         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
70516         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70517         (find_collation_sequence_value):
70518         Likewise.
70519         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
70520         (re_node_set_compare):
70521         Return bool, not int. All callers changed.
70522         * lib/regexec.c (check_halt_node_context, check_dst_limits):
70523         (build_trtable, check_node_accept): Likewise.
70524         * lib/regex_internal.h: Include stdbool.h.
70525
70526         Fix bugs uncovered when converting to bool.
70527         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
70528         failure instead of charging ahead blindly.
70529         * lib/regex_internal.c (register_state): Likewise.
70530         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
70531         for freeing internal storage.
70532         (group_nodes_into_DFA_states): Use unsigned int, not int, for
70533         bitset pieces used as boolean, to avoid undefined behavior
70534         on hosts that do int overflow checking.
70535
70536 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         * config/srclist.txt: Add glibc bugs 1285-1287.
70539
70540 2005-09-01  Jim Meyering  <jim@meyering.net>
70541
70542         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
70543         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
70544         Require gl_STAT_MACROS, too.
70545
70546 2005-09-01  Bruno Haible  <bruno@clisp.org>
70547
70548         * gnulib-tool (import): In the first-use case, provide defaults.
70549
70550 2005-09-01  Bruno Haible  <bruno@clisp.org>
70551
70552         * gnulib-tool (func_import): Remove the .tmp files.
70553
70554 2005-09-01  Bruno Haible  <bruno@clisp.org>
70555
70556         * gnulib-tool (func_import): Fix handling of symbolic links.
70557
70558 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
70561         old glibc regex code mishandles strings longer than 2**31 bytes.
70562         This patch fixes this when the regex code is used in gnulib
70563         (i.e., outside glibc).
70564
70565         This patch should not affect the use of the regex code inside
70566         glibc.  No doubt this problem also needs to be handled for glibc
70567         as well, but the result will be an incompatible change to the
70568         glibc ABI, and the old ABI will have to be supported too.  That
70569         can be the the subject for another patch.
70570
70571         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
70572         governing whether the rest of this patch is active.  By default,
70573         the macro is disabled and the patch has no effect.
70574         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
70575         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
70576         (struct re_pattern_buffer, re_search, re_search_2, re_match):
70577         (re_match_2, re_set_registers): Use the new types.
70578         * lib/regex_internal.h (Idx, re_hashval_t): New types.
70579         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
70580         New macros.
70581         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
70582         (re_string_context_at, bin_tree_t, re_dfastate_t):
70583         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
70584         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
70585         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
70586         (re_string_char_size_at, re_string_wchar_at):
70587         (re_string_elem_size_at):
70588         Use the new types and macros to port to 64-bit hosts.
70589         Use unsigned types for internal values, so that the code
70590         mostly works even for arrays larger than SSIZE_MAX.
70591         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
70592         (search_duplicated_node, calc_eclosure_iter, fetch_number):
70593         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
70594         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
70595         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
70596         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
70597         (calc_inveclosure, parse_dup_op, build_range_exp):
70598         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
70599         (fetch_number, create_token_tree, mark_opt_subexp):
70600         Likewise.
70601         * lib/regex_internal.c (re_string_construct_common,
70602         create_ci_newstate):
70603         (create_cd_newstate, re_string_allocate, re_string_construct):
70604         (re_string_realloc_buffers, build_wcs_upper_buffer):
70605         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70606         (re_string_reconstruct, re_string_peek_byte_case):
70607         (re_string_fetch_byte_case, re_string_context_at):
70608         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70609         (re_node_set_init_copy, re_node_set_add_intersect):
70610         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70611         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70612         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70613         (re_acquire_state, re_acquire_state_context, register_state):
70614         Likewise.
70615         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
70616         search_cur_bkref_entry):
70617         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
70618         (re_search_internal, re_search_2_stub, re_search_stub)
70619         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
70620         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
70621         (update_cur_sifted_state, check_dst_limits):
70622         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70623         (check_subexp_limits, sift_states_bkref, merge_state_array):
70624         (check_subexp_matching_top, get_subexp, get_subexp_sub):
70625         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
70626         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70627         (expand_bkref_cache, check_node_accept_bytes):
70628         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
70629         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
70630         (acquire_init_state_context, check_halt_node_context):
70631         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
70632         (sift_states_backward, clean_state_log_if_needed):
70633         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
70634         (find_recover_state, transit_state_sb, transit_state_mb):
70635         (transit_state_bkref, build_trtable, match_ctx_clean):
70636         Likewise.
70637         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
70638         to work around an assumption that REG_MISSING is negative.
70639
70640         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
70641         (seek_collating_symbol_entry) [defined _LIBC]:
70642         (lookup_collation_sequence_value) [defined _LIBC]:
70643         (build_range_exp, build_collating_symbol) [defined _LIBC]:
70644         Use prototypes rather than old-style function definitions.
70645         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
70646         (transit_state_sb) [0]:
70647         (find_collation_sequence_value) [defined _LIBC]: Likewise.
70648
70649         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
70650         rm_eo.
70651
70652         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
70653         (optimize_subexps, lower_subexp):
70654         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
70655         since the signed shift might overflow.  Use 1u<<31 instead.
70656         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70657         Likewise.
70658         * lib/regexec.c (check_dst_limits_calc_pos_1,
70659         check_subexp_matching_top): Likewise.
70660
70661         * lib/regcomp.c (optimize_subexps, lower_subexp):
70662         Use CHAR_BIT rather than 8, for clarity.
70663         * lib/regexec.c (check_dst_limits_calc_pos_1):
70664         (check_subexp_matching_top): Likewise.
70665         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
70666         have to worry about portability issues when shifting it left.
70667         Remove no-longer-needed test for table_size > 0.
70668         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
70669         in a word, as the resulting behavior is undefined.
70670         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
70671         in one case, a <= should have been an <, and in another case the
70672         whole test was missing.
70673         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
70674         the standard name CHAR_BIT.
70675         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
70676         this is not true on one's complement and signed-magnitude hosts.
70677
70678         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
70679         next_last_offset.
70680         (struct re_dfa_t): Remove unused member states_alloc.
70681         * lib/regcomp.c (init_dfa): Don't initialize unused members.
70682
70683 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
70686         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
70687         and large-file glibc and in 32-bit large-file Solaris.
70688
70689 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
70692         lengths fit in regoff_t; this isn't true if regoff_t is the same
70693         width as size_t.
70694         * lib/regex.c (re_search_internal): 5th arg is LAST_START
70695         (= START + RANGE) instead of RANGE.  This avoids overflow
70696         problems when regoff_t is the same width as size_t.
70697         All callers changed.
70698         (re_search_2_stub): Check for overflow when adding the
70699         sizes of the two strings.
70700         (re_search_stub): Check for overflow when adding START
70701         to RANGE; if it occurs, substitute the extreme value.
70702
70703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
70706
70707 2005-08-31  Jim Meyering  <jim@meyering.net>
70708
70709         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
70710         a pointer-to-const.
70711         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
70712         (register_state): Likewise.
70713         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
70714         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
70715         (group_nodes_into_DFAstates): Likewise.
70716
70717 2005-08-31  Jim Meyering  <jim@meyering.net>
70718
70719         * check-module: Add a FIXME comment.
70720
70721 2005-08-31  Eric Blake  <ebb9@byu.net>
70722
70723         * modules/unistd-safer (Files): Add unistd--.h.
70724         * modules/stdio-safer (Files): Add stdio--.h.
70725
70726 2005-08-31  Derek Price  <derek@ximbiot.com>
70727
70728         * lib/getdelim.c (getdelim): Return EOF on EOF.
70729         Reported by Larry Jones <lawrence.jones@ugs.com>.
70730
70731 2005-08-31  Bruno Haible  <bruno@clisp.org>
70732
70733         Avoid unnecessary diffs in the generated lib/Makefile.am.
70734         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
70735         the generated files.
70736         (func_import): Don't set cmd.
70737
70738 2005-08-31  Bruno Haible  <bruno@clisp.org>
70739
70740         * lib/strstr.c: Include <stddef.h>, for NULL.
70741         * lib/strcasestr.c: Likewise.
70742         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70743
70744 2005-08-31  Bruno Haible  <bruno@clisp.org>
70745
70746         * gnulib-tool: New option --macro-prefix.
70747         (func_import): Use macro_prefix.
70748         (import): Handle option --macro-prefix.
70749
70750 2005-08-31  Bruno Haible  <bruno@clisp.org>
70751
70752         * gnulib-tool (import): Rename most ac_* variables to cached_*.
70753         Also use new variables cached_lgpl, cached_libtool.
70754
70755 2005-08-31  Bruno Haible  <bruno@clisp.org>
70756
70757         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
70758         always instantiating them.
70759
70760 2005-08-31  Bruno Haible  <bruno@clisp.org>
70761
70762         * gnulib-tool (func_import): Read the previous cached settings
70763         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
70764         earlier added by gnulib but are now dropped. Warn when a gnulib file
70765         overwrites a non-gnulib file.
70766
70767 2005-08-31  Bruno Haible  <bruno@clisp.org>
70768
70769         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
70770         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
70771         projects that don't keep autogenerated files in CVS. Put into
70772         actioncmd only the specified modules, not the transitive closure.
70773
70774 2005-08-31  Bruno Haible  <bruno@clisp.org>
70775
70776         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
70777         Create directories that shall be filled.
70778         (import): Don't look for gl_* macros in configure.ac. Recurse across
70779         all directories containing a gnulib-cache.m4 files, if meaningful.
70780
70781 2005-08-31  Bruno Haible  <bruno@clisp.org>
70782
70783         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
70784         (import): Set seen_libtool when we see gl_LIBTOOL.
70785
70786 2005-08-31  Bruno Haible  <bruno@clisp.org>
70787
70788         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
70789         declaration macro definitions from generated gnulib.m4.
70790
70791 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
70792
70793         * lib/iconvme.h: Add prototype for iconv_alloc.
70794
70795 2005-08-29  Simon Josefsson  <jas@extundo.com>
70796
70797         * lib/iconvme.c: Fix errno.
70798
70799 2005-08-29  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
70802         that it works when the directory contains spaces.
70803
70804 2005-08-29  Bruno Haible  <bruno@clisp.org>
70805
70806         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
70807
70808 2005-08-29  Bruno Haible  <bruno@clisp.org>
70809
70810         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
70811         Emit more advice.
70812
70813 2005-08-29  Bruno Haible  <bruno@clisp.org>
70814         and Stepan Kasal  <kasal@ucw.cz>
70815
70816         * check-module: If more parameters are given, check each of them
70817         separately; add more exceptions, as noted by Jim Meyering.
70818         (check_module): New procedure.
70819         (%exempt_header): Now contains all exceptions.
70820
70821 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
70822
70823         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
70824
70825 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70826
70827         * lib/iconvme.c: Split iconv_string into iconv_alloc.
70828
70829 2005-08-28  Bruno Haible  <bruno@clisp.org>
70830
70831         * m4/gnulib-tool.m4: New file.
70832
70833 2005-08-27  Jim Meyering  <jim@meyering.net>
70834
70835         * modules/unistd-safer (Files): Add pipe-safer.c.
70836         * modules/fcntl-safer (Files): Add creat-safer.c.
70837
70838 2005-08-27  Jim Meyering  <jim@meyering.net>
70839
70840         * m4/stdlib-safer.m4: New file.  From coreutils.
70841         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
70842         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
70843         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
70844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
70845         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
70846
70847 2005-08-27  Jim Meyering  <jim@meyering.net>
70848
70849         * lib/fopen-safer.c: Merge minor changes from coreutils.
70850         * lib/dup-safer.c: Likewise.
70851         * lib/fd-safer.c: Likewise.
70852
70853         Merge from coreutils.
70854         * lib/stdio--.h: New file.
70855         * lib/stdlib--.h: New file.
70856         * lib/mkstemp-safer.c: New file.
70857
70858         GNU tar needs these.
70859         * lib/pipe-safer.c: New file.
70860         * lib/creat-safer.c: New file.
70861         * lib/fcntl--.h (creat): Define to creat_safer.
70862         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
70863         * lib/unistd--.h (pipe): Define to pipe_safer.
70864         * lib/unistd-safer.h: Declare pipe_safer.
70865
70866 2005-08-26  Simon Josefsson  <jas@extundo.com>
70867
70868         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
70869         Haible <bruno@clisp.org>.
70870
70871 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * lib/regex_internal.h: Remove all references to
70874         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
70875         or better.
70876         (bitset_not, bitset_merge, bitset_not_merge):
70877         (bitset_mask, re_string_allocate, re_string_construct):
70878         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
70879         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
70880         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
70881         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
70882         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70883         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70884         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
70885         (re_acquire_state_context):
70886         Remove unnecessary forward decls.
70887         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
70888         Put __attribute at function definition,
70889         now that the function decl has been removed.
70890         * lib/regex_internal.c (re_string_peek_byte_case):
70891         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
70892         Likewise.
70893
70894 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
70895
70896         * m4/regex.m4: Add AC_PREREQ(2.50).
70897         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
70898
70899 2005-08-25  Simon Josefsson  <jas@extundo.com>
70900
70901         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
70902         __fsetlocking.
70903
70904 2005-08-25  Simon Josefsson  <jas@extundo.com>
70905
70906         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
70907         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
70908         GLIBC specific code.
70909
70910 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         Make regex safe for g++.  This fixes one real bug (an "err"
70913         that should have been "*err").  g++ problem reported by
70914         Sam Steingold.
70915         * lib/regex_internal.h (re_calloc): New macro, consistent with
70916         re_malloc etc.  All callers of calloc changed to use re_calloc.
70917         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
70918         not int.  All callers changed.
70919         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
70920         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
70921         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
70922         (find_recover_state): Change "err" to "*err"; this fixes what
70923         appears to be a real bug.
70924         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
70925         versus int.
70926
70927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * modules/regex (Depends-on): Add malloc, since the code
70930         assumes that !malloc(0) means failure.
70931
70932 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70933
70934         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
70935
70936         alloca modernization/simplification for regex.
70937         * lib/regex.c: Remove portability cruft for alloca.  This no longer
70938         needs to be at the start of the file, and can be moved into
70939         regex_internal.h and simplified.
70940         * lib/regex_internal.h: Include <alloca.h>.
70941         (__libc_use_alloca) [!defined _LIBC]: New macro.
70942         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
70943         now works outside glibc.
70944
70945 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * config/srclist.txt: Add glibc bugs 1241, 1245.
70948
70949 2005-08-25  Jim Meyering  <jim@meyering.net>
70950
70951         * lib/open-safer.c: Include <config.h>.
70952         Otherwise, we'd lose LARGEFILE support in any file using
70953         e.g. "fcntl--.h"
70954
70955 2005-08-25  Bruno Haible  <bruno@clisp.org>
70956
70957         * m4/minmax.m4: Require autoconf 2.52.
70958         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
70959         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
70960         alternatives of translit over the alphabet.
70961         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
70962
70963 2005-08-24  Simon Josefsson  <jas@extundo.com>
70964
70965         * tests/test-getpass.c: New file.
70966
70967 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
70970         for GNU regex features.
70971
70972 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
70975         * lib/regex.h (regerror): Likewise.
70976
70977         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
70978         requires this.  (The code never needed it.)
70979
70980         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
70981         All uses of recently-renamed identifiers changed to use the new,
70982         POSIX-compliant names.  The code will build and run just fine
70983         without these changes, but it's better to eat our own dog food
70984         and use the standard-conforming names.
70985
70986         * lib/regex.h: Fix a multitude of POSIX name space violations.
70987         These changes have an effect only for programs that define
70988         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
70989         do not change anything for programs compiled in the normal way.
70990         Also, there is no effect on the ABI.
70991
70992         (_REGEX_SOURCE): New macro.
70993         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
70994         defined and _GNU_SOURCE is not; this fixes a name space violation.
70995
70996         Rename the following macros to obey POSIX requirements.
70997         The old names are still visible as macros if _REGEX_SOURCE is defined.
70998         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
70999         RE_BACKSLASH_ESCAPE_IN_LISTS.
71000         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71001         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71002         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71003         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71004         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71005         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71006         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71007         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71008         (REG_INTERVALS): renamed from RE_INTERVALS.
71009         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71010         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71011         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71012         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71013         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71014         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71015         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71016         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71017         RE_UNMATCHED_RIGHT_PAREN_ORD.
71018         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71019         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71020         (REG_DEBUG): renamed from RE_DEBUG.
71021         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71022         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71023         unusual, since we can't clash with the POSIX REG_ICASE.
71024         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71025         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71026         (REG_NO_SUB): renamed from RE_NO_SUB.
71027         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71028         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71029         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71030         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71031         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71032         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71033         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71034         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71035         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71036         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71037         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71038         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71039         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71040         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71041         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71042         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71043         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71044         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71045         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71046         (REG_FIXED): Renamed from REGS_FIXED.
71047         (REG_NREGS): Renamed from RE_NREGS.
71048
71049         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71050         of other REG_* macros, since POSIX says the user is allowed to
71051         #undef these macros selectively.
71052
71053         (reg_errcode_t): Update comment stating what other tables need
71054         to be consistent.
71055
71056         Rename the following enum values to obey POSIX requirements.
71057         The old names are still visible as macros.
71058         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71059         is not defined, since GNU is supposed to be a superset of POSIX as
71060         much as possible, and since we want reg_errcode_t to be a signed
71061         type for implementation consistency.
71062         (_REG_NOERROR): Renamed from REG_NOERROR.
71063         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71064         (_REG_BADPAT): Renamed from REG_BADPAT.
71065         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71066         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71067         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71068         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71069         (_REG_EBRACK): Renamed from REG_EBRACK.
71070         (_REG_EPAREN): Renamed from REG_EPAREN.
71071         (_REG_EBRACE): Renamed from REG_EBRACE.
71072         (_REG_BADBR): Renamed from REG_BADBR.
71073         (_REG_ERANGE): Renamed from REG_ERANGE.
71074         (_REG_ESPACE): Renamed from REG_ESPACE.
71075         (_REG_BADRPT): Renamed from REG_BADRPT.
71076         (_REG_EEND): Renamed from REG_EEND.
71077         (_REG_ESIZE): Renamed from REG_ESIZE.
71078         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71079         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71080         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71081         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71082         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71083
71084         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71085         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71086         changed.  But support the old name if the new one is not defined
71087         and if _REGEX_SOURCE.
71088
71089         Change the following member names in struct re_pattern_buffer.
71090         The old names are still supported if !_REGEX_SOURCE.
71091         The new names are always supported, regardless of _REGEX_SOURCE.
71092         (re_buffer): Renamed from buffer.
71093         (re_allocated): Renamed from allocated.
71094         (re_used): Renamed from used.
71095         (re_syntax): Renamed from syntax.
71096         (re_fastmap): Renamed from fastmap.
71097         (re_translate): Renamed from translate.
71098         (re_can_be_null): Renamed from can_be_null.
71099         (re_regs_allocated): Renamed from regs_allocated.
71100         (re_fastmap_accurate): Renamed from fastmap_accurate.
71101         (re_no_sub): Renamed from no_sub.
71102         (re_not_bol): Renamed from not_bol.
71103         (re_not_eol): Renamed from not_eol.
71104         (re_newline_anchor): Renamed from newline_anchor.
71105
71106         Change the following member names in struct re_registers.
71107         The old names are still supported if !_REGEX_SOURCE.
71108         The new names are always supported, regardless of _REGEX_SOURCE.
71109         (rm_num_regs): Renamed from num_regs.
71110         (rm_start): Renamed from start.
71111         (rm_end): Renamed from end.
71112
71113         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71114         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71115         Prepend __ to parameter names.
71116
71117         Undo yesterday's changes.
71118
71119 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71122         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71123         lib/regex.c.
71124
71125 2005-08-24  Jim Meyering  <jim@meyering.net>
71126
71127         Sync from coreutils.
71128         * m4/fcntl-safer.m4: New file.
71129
71130         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71131         and object files for this module.
71132
71133 2005-08-24  Jim Meyering  <jim@meyering.net>
71134
71135         Sync from coreutils.
71136         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71137
71138 2005-08-24  Jim Meyering  <jim@meyering.net>
71139
71140         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71141         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71142
71143 2005-08-24  Jim Meyering  <jim@meyering.net>
71144
71145         * modules/fcntl-safer: New module.
71146         * modules/fts (Depends-on): Add fcntl-safer.
71147         * MODULES.html.sh (File descriptor based Input/Output):
71148         Add fcntl-safer.
71149
71150 2005-08-24  Bruno Haible  <bruno@clisp.org>
71151
71152         Support for unit test modules.
71153         * modules/README: Mention tests modules.
71154         * modules/TEMPLATE-TESTS: New file.
71155         * gnulib-tool: New options --extract-tests-module, --with-tests and
71156         --tests-base (unused for the moment).
71157         (testsbase, inctests): New variables.
71158         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71159         (func_verify_module): Exclude TEMPLATE-TESTS.
71160         (func_verify_nontests_module, func_verify_tests_module): New functions.
71161         (func_get_dependencies): Add implicit dependency for tests modules.
71162         (func_get_tests_module): New function.
71163         (func_modules_transitive_closure): When --with-tests was specified,
71164         include the unit tests as well, unless explicitly avoided.
71165         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71166         (func_emit_tests_Makefile_am): New function.
71167         (func_create_testdir): When --with-tests was specified, emit a
71168         tests/ directory.
71169         * MODULES.html.sh (Future developments): Update.
71170
71171 2005-08-24  Bruno Haible  <bruno@clisp.org>
71172
71173         * modules/tls-tests: New file.
71174         * tests/test-tls.c: New file, from GNU gettext.
71175
71176 2005-08-24  Bruno Haible  <bruno@clisp.org>
71177
71178         * modules/lock-tests: New file.
71179         * tests/test-lock.c: New file, from GNU gettext.
71180
71181 2005-08-24  Bruno Haible  <bruno@clisp.org>
71182
71183         * lib/lock.h: Add multiple inclusion guard.
71184         * lib/tls.h: Add multiple inclusion guard.
71185
71186 2005-08-24  Bruno Haible  <bruno@clisp.org>
71187
71188         * gnulib-tool: Add support for the --aux-dir option to
71189         --create-testdir, --create-megatestdir, --test, --megatest.
71190         (func_create_testdir, func_create_megatestdir): Optionally emit a
71191         AC_CONFIG_AUX_DIR directive.
71192         (create-testdir, create-megatestdir, test, megatest): Provide a
71193         default value for $auxdir.
71194
71195 2005-08-24  Bruno Haible  <bruno@clisp.org>
71196
71197         * gnulib-tool (import): Use compound statement instead of subshell
71198         where possible.
71199
71200 2005-08-24  Bruno Haible  <bruno@clisp.org>
71201
71202         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71203
71204 2005-08-24  Bruno Haible  <bruno@clisp.org>
71205
71206         * gnulib-tool (func_version): Update.
71207
71208 2005-08-24  Bruno Haible  <bruno@clisp.org>
71209
71210         * gnulib-tool (func_import, func_create_testdir,
71211         func_create_megatestdir): Quote all autoconf macro arguments.
71212
71213 2005-08-24  Bruno Haible  <bruno@clisp.org>
71214
71215         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71216         option --force, because --force causes the aclocal.m4 of each
71217         subdirectory to be newer than the corresponding config.h.in.
71218
71219 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71222         All contents moved to gl_REGEX.
71223         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71224         assume that it does.
71225
71226 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * lib/regex.h (REG_NOSYS)
71229         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71230         Define, since POSIX requires it as of 2001.
71231         (_REG_ENOSYS)
71232         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71233         New private symbol, used to keep the enum signed in all cases.
71234         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71235         Youngman in
71236         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71237
71238         * lib/regex_internal.c (re_string_skip_chars, register_state):
71239         (calc_state_hash):
71240         Remove forward decls; no longer needed now that we use prototypes.
71241         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71242         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71243         (clean_state_log_if_needed): Likewise.
71244
71245 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * config/srclist.txt: Add glibc bugs 1231-1233.
71248
71249 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         Fix problems reported by Sam Steingold in
71252         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71253         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71254         assumed that reg_errcode_t is a signed type, which is not
71255         necessarily true if _XOPEN_SOURCE is not defined.
71256         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71257         since some compilers warn about it otherwise.
71258
71259 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71260
71261         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71262         (init_word_char, create_initial_state, duplicate_node_closure):
71263         (fetch_token, peek_token_bracket, build_range_exp):
71264         (build_collating_symbol): Remove forward decls; no longer needed
71265         now that we use prototypes.
71266
71267         * lib/regcomp.c:
71268         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71269         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71270         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71271         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71272         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71273         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71274         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71275         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71276         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71277         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71278         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71279         (build_charclass, build_charclass_op, fetch_number, create_tree):
71280         (create_token_tree, mark_opt_subexp, duplicate_tree):
71281         Use prototypes rather than old-style definitions.
71282
71283         * lib/regex_internal.c:
71284         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71285         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71286         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71287         (re_string_reconstruct, re_string_peek_byte_case):
71288         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71289         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71290         (re_node_set_init_copy, re_node_set_add_intersect):
71291         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71292         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71293         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71294         (re_acquire_state, re_acquire_state_context, register_state):
71295         (create_ci_newstate, create_cd_newstate, free_state):
71296         Likewise.
71297         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71298         re_search_2):
71299         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71300         (re_search_internal, prune_impossible_nodes):
71301         (acquire_init_state_context, check_matching, static):
71302         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71303         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71304         (update_regs, sift_states_backward, build_sifted_states):
71305         (clean_state_log_if_needed, merge_state_array):
71306         (update_cur_sifted_state, add_epsilon_src_nodes):
71307         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71308         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71309         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71310         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71311         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71312         (check_arrival, check_arrival_add_next_nodes):
71313         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71314         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71315         (check_node_accept_bytes, check_node_accept, extend_buffers):
71316         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71317         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71318         (sift_ctx_init):
71319         Likewise.
71320
71321         * lib/regex_internal.h:
71322         (re_string_allocate, re_string_construct, re_string_reconstruct):
71323         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71324         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71325         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71326         (re_string_context_at, re_string_peek_byte_case):
71327         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71328         is defined, since we now use prototypes always.
71329
71330         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71331         C89 or better.  All uses removed.
71332
71333 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * config/srclist.txt: Add glibc bugs 1220-1227.
71336
71337 2005-08-20  Jim Meyering  <jim@meyering.net>
71338
71339         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71340         of unused local, dfa.
71341
71342 2005-08-20  Bruno Haible  <bruno@clisp.org>
71343
71344         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71345
71346 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71349         (re_node_set_insert_last, re_dfa_add_node):
71350         Rename local variables to avoid GCC shadowing warnings.
71351
71352 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71355         [defined lint]: Suppress bogus uninitialized-variable warnings.
71356
71357         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71358         and let the caller return REG_ESPACE if out of space.  This
71359         removes an uninitialied-variable warning with GCC 4.0.1, and also
71360         avoids taking the address of a local variable.  All callers
71361         changed.
71362
71363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71366         $LIBCSRC/posix/regexec.c.
71367         Add glibc bug 1217 for regcomp.c.
71368
71369 2005-08-19  Jim Meyering  <jim@meyering.net>
71370
71371         * lib/regexec.c (proceed_next_node): Redo local variables to
71372         avoid GCC shadowing warnings.
71373
71374 2005-08-18  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/strstr.c (strstr): Fix return value in multibyte case.
71377         * lib/strcasestr.c (strcasestr): Likewise.
71378
71379 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71382
71383 2005-08-17  Jim Meyering  <jim@meyering.net>
71384
71385         Make the %s format (seconds since the epoch) work for a negative
71386         number and when used with a zero-padded field width, e.g. %015s.
71387
71388         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71389         label so that it precedes the code to set `digits'.  Otherwise,
71390         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71391         print `00-22'.  Now, it prints `-0022', as it should.
71392
71393 2005-08-17  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/strstr (Files): Add m4/mbrtowc.m4.
71396         (Depends-on): Add mbuiter.
71397
71398 2005-08-17  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/strcasestr: New file.
71401         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71402         strcasestr.
71403
71404 2005-08-17  Bruno Haible  <bruno@clisp.org>
71405
71406         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71407
71408 2005-08-17  Bruno Haible  <bruno@clisp.org>
71409
71410         * modules/mbuiter: New file.
71411         * MODULES.html.sh (Extended multibyte and wide character utilities):
71412         Add mbuiter.
71413
71414 2005-08-17  Bruno Haible  <bruno@clisp.org>
71415
71416         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71417         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71418
71419 2005-08-17  Bruno Haible  <bruno@clisp.org>
71420
71421         * m4/strcasestr.m4: New file.
71422
71423 2005-08-17  Bruno Haible  <bruno@clisp.org>
71424
71425         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71426         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71427
71428 2005-08-17  Bruno Haible  <bruno@clisp.org>
71429
71430         * lib/strcasestr.h: New file.
71431         * lib/strcasestr.c: New file.
71432
71433 2005-08-17  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/strcasecmp.c: Use mbuiter.h.
71436
71437 2005-08-17  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/mbuiter.h: New file.
71440
71441 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71444         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71445         and gl_GETOPT are both invoked via different paths (as happens
71446         with GNU tar CVS because it uses both argp and getopt), the former
71447         wins.
71448
71449 2005-08-16  Bruno Haible  <bruno@clisp.org>
71450
71451         * modules/tls: New file.
71452         * MODULES.html.sh (Multithreading): Add tls.
71453
71454 2005-08-16  Bruno Haible  <bruno@clisp.org>
71455
71456         * modules/strnlen1: New file.
71457         * MODULES.html.sh (String handling): Add strnlen1.
71458
71459 2005-08-16  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/strcase (Files): Add m4/mbrtowc.m4.
71462         (Depends-on): Add strnlen1, mbchar.
71463
71464 2005-08-16  Bruno Haible  <bruno@clisp.org>
71465
71466         * modules/mbiter: New file.
71467         * MODULES.html.sh (Extended multibyte and wide character utilities):
71468         Add mbiter.
71469
71470 2005-08-16  Bruno Haible  <bruno@clisp.org>
71471
71472         * modules/mbfile: New file.
71473         * MODULES.html.sh (Extended multibyte and wide character utilities):
71474         Add mbfile.
71475
71476 2005-08-16  Bruno Haible  <bruno@clisp.org>
71477
71478         * modules/mbchar: New file.
71479         * MODULES.html.sh (Extended multibyte and wide character utilities):
71480         New section.
71481
71482 2005-08-16  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/tls.m4: New file, from GNU gettext.
71485
71486 2005-08-16  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
71489         always.
71490         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
71491
71492 2005-08-16  Bruno Haible  <bruno@clisp.org>
71493
71494         * m4/mbiter.m4: New file.
71495
71496 2005-08-16  Bruno Haible  <bruno@clisp.org>
71497
71498         * m4/mbfile.m4: New file.
71499
71500 2005-08-16  Bruno Haible  <bruno@clisp.org>
71501
71502         * m4/mbchar.m4: New file.
71503
71504 2005-08-16  Bruno Haible  <bruno@clisp.org>
71505
71506         * lib/tls.h: New file, from GNU gettext.
71507         * lib/tls.c: New file, from GNU gettext.
71508
71509 2005-08-16  Bruno Haible  <bruno@clisp.org>
71510
71511         * lib/strnlen1.h: New file.
71512         * lib/strnlen1.c: New file.
71513
71514 2005-08-16  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
71517         (mbi_init): Update.
71518         (mbi_avail, mbi_advance): Let the iteration end before the terminating
71519         NUL byte, not after it.
71520
71521 2005-08-16  Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/strcase.h (strcasecmp): Add note in comments.
71524         * lib/strncasecmp.c: Use code from strcasecmp.c.
71525         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
71526         (strcasecmp): Work correctly in multibyte locales.
71527
71528 2005-08-16  Bruno Haible  <bruno@clisp.org>
71529
71530         * lib/mbiter.h: New file.
71531
71532 2005-08-16  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/mbfile.h: New file.
71535
71536 2005-08-16  Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/mbchar.h: New file.
71539         * lib/mbchar.c: New file.
71540
71541 2005-08-16  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
71544         the valid ones. Makes the comparison operations transitive:
71545         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
71546         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
71547
71548 2005-08-15  Simon Josefsson  <jas@extundo.com>
71549
71550         * modules/ssize_t (License): Change to 'unlimited'.
71551
71552         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
71553
71554 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71555
71556         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
71557         Add comments for each pending glibc patch.
71558
71559 2005-08-15  Bruno Haible  <bruno@clisp.org>
71560
71561         * lib/regex.h (__restrict_arr): Don't define to __restrict if
71562         __cplusplus is defined.
71563
71564 2005-08-14  Jim Meyering  <jim@meyering.net>
71565
71566         Sync from coreutils.
71567
71568         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
71569         Use the hash-table-based cycle-detection code not just when
71570         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
71571         Reported by James Youngman in
71572         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
71573         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
71574         FTS_TIGHT_CYCLE_CHECK.
71575         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
71576         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
71577         once again.
71578         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
71579         * lib/fts.c (fd_safer): Remove decl.
71580         Include fcntl--.h rather than unistd-safer.h
71581         (fts_safe_changedir): Don't call fd_safer; no longer needed
71582         now that we include fcntl--.h.
71583
71584 2005-08-12  Simon Josefsson  <jas@extundo.com>
71585
71586         * modules/getndelim2: Use ssize_t module.
71587         * modules/getnline: Likewise.
71588         * modules/safe-read: Likewise.
71589         * modules/xreadlink: Likewise.
71590
71591         * modules/ssize_t: New file.
71592
71593 2005-08-12  Simon Josefsson  <jas@extundo.com>
71594
71595         * m4/readline.m4: Look for termcap, curses or ncurses if required.
71596
71597 2005-08-12  Simon Josefsson  <jas@extundo.com>
71598
71599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71600         ssize_t.
71601
71602 2005-08-12  Simon Josefsson  <jas@extundo.com>
71603
71604         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
71605         readline, getdelim and check_version.
71606         (Support for systems lacking ISO C 99: Sizes of integer types):
71607         Add size_max.
71608
71609 2005-08-12  Bruno Haible  <bruno@clisp.org>
71610
71611         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
71612
71613 2005-08-11  Simon Josefsson  <jas@extundo.com>
71614
71615         * modules/readline: New file.
71616
71617         * modules/strnlen (Files): Add strnlen.h.
71618
71619 2005-08-11  Simon Josefsson  <jas@extundo.com>
71620
71621         * m4/readline.m4: New file.
71622
71623 2005-08-11  Simon Josefsson  <jas@extundo.com>
71624
71625         * lib/readline.h, readline.c: New file.
71626
71627 2005-08-11  Simon Josefsson  <jas@extundo.com>
71628
71629         * doc/gnulib.texi (Initial import, Finishing touches): Mention
71630         gl_AVOID.
71631
71632 2005-08-11  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/strnlen.h (strnlen): Change parameter name to match comment.
71635
71636 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
71637
71638         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
71639
71640 2005-08-10  Simon Josefsson  <jas@extundo.com>
71641
71642         * tests/test-iconvme.c: New file.
71643
71644 2005-08-10  Simon Josefsson  <jas@extundo.com>
71645
71646         * m4/strnlen.m4: New file.
71647
71648         * m4/strndup.m4: Don't check for strnlen declaration, done in
71649         strnlen.m4.
71650
71651 2005-08-10  Simon Josefsson  <jas@extundo.com>
71652
71653         * lib/strndup.c: Use strnlen.h.
71654
71655         * lib/strnlen.h: New file.
71656
71657 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71658
71659         * README: Typos.
71660
71661 2005-08-02  Simon Josefsson  <jas@extundo.com>
71662
71663         * modules/readline: New file.
71664
71665 2005-08-02  Simon Josefsson  <jas@extundo.com>
71666
71667         * modules/getdelim: New file.
71668
71669         * modules/getline: Rewrite, don't use getndelim2.
71670
71671 2005-08-02  Simon Josefsson  <jas@extundo.com>
71672
71673         * m4/getline.m4: Separate out getdelim stuff into separate module.
71674
71675         * m4/getdelim.m4: New file.
71676
71677 2005-08-02  Simon Josefsson  <jas@extundo.com>
71678
71679         * lib/getline.h, getline.c: Rewrite.
71680
71681         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
71682
71683 2005-07-31  Bruno Haible  <bruno@clisp.org>
71684
71685         * lib/lock.h (gl_lock_initializer): New macro.
71686         (gl_lock_define_initialized): Use it.
71687         (gl_rwlock_initializer): New macro.
71688         (gl_rwlock_define_initialized): Use it.
71689         (gl_recursive_lock_initializer): New macro.
71690         (gl_recursive_lock_define_initialized): Use it.
71691
71692 2005-07-30  Karl Berry  <karl@gnu.org>
71693
71694         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
71695         Report from Ben Pfaff, regarding getopt.
71696
71697 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
71700         normal way.
71701         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
71702         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
71703         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
71704         (gl_GETOPT): Use the new macros.  Most of the implementation
71705         is moved to the new macros.  This is for programs like Emacs
71706         that don't want all the functionality of gl_GETOPT.
71707
71708 2005-07-26  Bruno Haible  <bruno@clisp.org>
71709
71710         * m4/lock.m4: Update from GNU gettext.
71711
71712 2005-07-26  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/lock.h: Update from GNU gettext.
71715         * lib/lock.c: Update from GNU gettext.
71716
71717 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
71720         obsolescent AC_TRY_RUN.  Include the default includes files, for
71721         'exit'.
71722
71723 2005-07-24  Bruno Haible  <bruno@clisp.org>
71724
71725         * modules/visibility: New file.
71726         * MODULES.html.sh (Misc): Add visibility.
71727
71728 2005-07-24  Bruno Haible  <bruno@clisp.org>
71729
71730         * m4/visibility.m4: New file.
71731
71732 2005-07-24  Bruno Haible  <bruno@clisp.org>
71733
71734         * doc/visibility.texi: New file.
71735
71736 2005-07-22  Bruno Haible  <bruno@clisp.org>
71737
71738         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
71739         $(ALLOCA_H), redundant through BUILT_SOURCES.
71740         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
71741         redundant through BUILT_SOURCES.
71742         * modules/byteswap (Makefile.am): Remove explicit dependency on
71743         $(BYTESWAP_H), redundant through BUILT_SOURCES.
71744         * modules/fnmatch (Makefile.am): Remove explicit dependency on
71745         $(FNMATCH_H), redundant through BUILT_SOURCES.
71746         * modules/getopt (Makefile.am): Remove explicit dependency on
71747         $(GETOPT_H), redundant through BUILT_SOURCES.
71748         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
71749         redundant through BUILT_SOURCES.
71750         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
71751         redundant through BUILT_SOURCES.
71752         * modules/stdbool (Makefile.am): Remove explicit dependency on
71753         $(STDBOOL_H), redundant through BUILT_SOURCES.
71754         * modules/stdint (Makefile.am): Remove explicit dependency on
71755         $(STDINT_H), redundant through BUILT_SOURCES.
71756         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
71757         Remove explicit dependency on $(SYSEXITS_H).
71758         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
71759
71760 2005-07-18  Simon Josefsson  <jas@extundo.com>
71761
71762         * lib/check-version.c (check_version): Accept identical versions too.
71763
71764 2005-07-18  Bruno Haible  <bruno@clisp.org>
71765
71766         * modules/lock: New file.
71767         * MODULES.html.sh (Multithreading): New section.
71768
71769 2005-07-18  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/lock.m4: New file, from GNU gettext.
71772
71773 2005-07-18  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/lock.h: New file, from GNU gettext.
71776         * lib/lock.c: New file, from GNU gettext.
71777
71778 2005-07-18  Bruno Haible  <bruno@clisp.org>
71779
71780         * lib/lock.h (gl_once_t): New type.
71781         (gl_once_define, gl_once): New macros.
71782         * lib/lock.c (fresh_once): New variable.
71783         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
71784         functions.
71785
71786 2005-07-16  Simon Josefsson  <jas@extundo.com>
71787
71788         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
71789         workaround, suggested by Bruno.
71790
71791 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * modules/xalloc (Depends-on): Add xalloc-die.
71794         * modules/xvasprintf (Depends-on): Add xalloc-die.
71795
71796 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
71799         with a minor change.
71800
71801 2005-07-15  Bruno Haible  <bruno@clisp.org>
71802
71803         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
71804         When using lib/poll.c, define poll as rpl_poll.
71805
71806 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * modules/argp (Depends-on): Remove unlocked-io.
71809
71810 2005-07-14  Derek Price  <derek@ximbiot.com>
71811
71812         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
71813         for glob symlink bug.
71814
71815 2005-07-14  Bruno Haible  <bruno@clisp.org>
71816
71817         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
71818         Instead, test for *_unlocked function declarations directly.
71819
71820 2005-07-11  Simon Josefsson  <jas@extundo.com>
71821
71822         * modules/size_max: New file.
71823
71824         * modules/xsize: Depend on size_max module for size_max.m4.
71825
71826 2005-07-11  Simon Josefsson  <jas@extundo.com>
71827
71828         * lib/size_max.h: New file.
71829
71830 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
71831
71832         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
71833         copyright symbol and the year.
71834         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
71835         (version_etc_va): Use parameterized copyright notice.
71836         Reword to conform to the current GNU coding standards.
71837
71838 2005-07-11  Karl Berry  <karl@gnu.org>
71839
71840         * doc/gnulib.texi (Quoting): new node.
71841         (Initial import): more info, from Patrice.
71842
71843 2005-07-11  Bruno Haible  <bruno@clisp.org>
71844
71845         * gnulib-tool (func_usage): Document option --avoid.
71846         (Command line options): Handle --avoid.
71847         (func_acceptable): New function.
71848         (func_modules_transitive_closure): Use it.
71849
71850 2005-07-11  Bruno Haible  <bruno@clisp.org>
71851
71852         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
71853         Reported by Jim Meyering.
71854
71855 2005-07-10  Bruno Haible  <bruno@clisp.org>
71856
71857         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
71858         Needed when size_t is smaller than 'unsigned int'.
71859         Reported by Paul Eggert.
71860
71861 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71862
71863         * modules/argp (Depends-on): Add unlocked-io
71864
71865 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71866
71867         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
71868         block of defines.
71869
71870 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * config/srclist.txt: Comment out regcomp.c, since we have a porting
71873         fix now.
71874
71875 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
71876         and Paul Eggert  <eggert@cs.ucla.edu>
71877
71878         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
71879         in wint_t, not wchar_t.  Remove now-unnecessary cast.
71880
71881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * modules/regex (Files): Add lib/regex_internal.c,
71884         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
71885         (Depends-on): Add extensions.
71886         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
71887
71888 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71889
71890         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
71891         pathconf.
71892         * m4/same.m4 (gl_SAME): Likewise.
71893         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
71894
71895         * m4/regex.m4: Adjust to new libc regex implementation.
71896         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
71897         all the .c and .h parts of (the new) regex.
71898         Quote the m4 stuff better.
71899         Check for RE_ICASE bug of old gnulib.
71900         Check for REG_STARTEND of recent libc.
71901         Rename local variables from jm_* to gl_*.
71902         Quote operand of "test -f".
71903         Say "recent enough" version of libc, not "version 2".
71904         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
71905         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
71906         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
71907         Remove check for btowc, isascii.
71908         Require AM_LANGINFO_CODESET.
71909
71910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71911
71912         * lib/regex.c, regex.h: Sync from libc.
71913         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
71914         * lib/regexec.c:
71915         New files, synced from libc, except that regex_internal.h
71916         currently has a small porting fix.
71917
71918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
71919
71920         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
71921         regex_internal.c, regexec.c.
71922         Add regex_internal.h too, but as a comment, since the libc version
71923         is currently broken in gnulib mode.
71924
71925 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         Support programs like Emacs that use gnulib but not gettext.
71928         * MODULES.html.sh (Internationalization functions): Add gettext-h.
71929         * modules/gettext-h: New file.
71930         * modules/gettext (Files): Remove lib/gettext.h.
71931         (Depends-on): Add gettext-h.
71932         (Makefile.am): Remove lib_SOURCES.
71933         * modules/argmatch, modules/c-stack, modules/closeout:
71934         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
71935         * modules/execute, modules/file-type, modules/getaddrinfo:
71936         * modules/getopt, modules/human, modules/javacomp:
71937         * modules/javaexec, modules/mkdir-p, modules/obstack:
71938         * modules/openat, modules/pagealign_alloc, modules/pipe:
71939         * modules/quotearg, modules/regex, modules/rpmatch:
71940         * modules/unicodeio, modules/userspec, modules/version-etc:
71941         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
71942         * modules/xsetenv:
71943         Depend on gettext-h, not gettext.
71944
71945 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * gnulib-tool (func_import): Add support for 'public domain' license.
71948         * modules/alloca, modules/atexit, modules/memmove:
71949         Now public domain, not GPL.
71950         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
71951         * modules/realloc, modules/strerror, modules/strtod:
71952         Now LGPL, not GPL.
71953
71954 2005-07-05  Bruno Haible  <bruno@clisp.org>
71955
71956         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
71957         autoconf CVS. Needed for mingw.
71958
71959 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71960
71961         Remove the dependency of the strftime module on the tzset module.
71962         * modules/strftime (Depends-on): Remove dependency on tzset.
71963
71964 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         Remove the dependency of the strftime module on the tzset module.
71967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
71968         gl_FUNC_TZSET_CLOBBER.
71969
71970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         Remove the dependency of the strftime module on the tzset module.
71973         * lib/strftime.c (my_strftime)
71974         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
71975         Copy the input structure, to work around some of the bug with
71976         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
71977         Solaris releases, you should also use the tzset module, but we won't
71978         require it as a dependency any more since we don't want LGPLed code
71979         to depend on GPLed code.
71980
71981 2005-07-02  Jim Meyering  <jim@meyering.net>
71982
71983         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
71984         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
71985         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
71986         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
71987
71988 2005-07-02  Jim Meyering  <jim@meyering.net>
71989
71990         * lib/backupfile.c (backup_args): Change a `0' to NULL.
71991
71992 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
71995         declares only 'struct timespec;' (!).
71996
71997 2005-07-01  Jim Meyering  <jim@meyering.net>
71998
71999         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72000         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72001         * lib/save-cwd.c, tempname.c:
72002         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72003         and don't include <sys/file.h>).
72004
72005 2005-06-29  Jim Meyering  <jim@meyering.net>
72006
72007         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72008         type name.  Use the variable name instead.
72009         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72010         Likewise.
72011
72012 2005-06-28  Simon Josefsson  <jas@extundo.com>
72013
72014         * modules/check-version (Files): Add check-version.m4.
72015
72016 2005-06-28  Simon Josefsson  <jas@extundo.com>
72017
72018         * m4/check-version.m4: New file, suggested by Jim Meyering
72019         <jim@meyering.net>.
72020
72021 2005-06-28  Simon Josefsson  <jas@extundo.com>
72022
72023         * lib/check-version.h, lib/check-version.c: New files.
72024
72025 2005-06-28  Simon Josefsson  <jas@extundo.com>
72026
72027         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72028         collision with global variable.  Better indentation.  Don't
72029         increment buffer pointer beyond buffer end.  Based on comments
72030         from Paul Eggert <eggert@cs.ucla.edu>.
72031
72032         * lib/base64.h: Indent.
72033
72034 2005-06-28  Simon Josefsson  <jas@extundo.com>
72035
72036         * doc/gnulib.texi (Library version handling): New section.
72037
72038 2005-06-28  Jim Meyering  <jim@meyering.net>
72039
72040         * check-module (find_included_lib_files): Hard-code another
72041         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72042         but modules/fts-lgpl (correctly) does not list those files.
72043
72044         * modules/canonicalize (Files): Add lib/pathmax.h.
72045
72046 2005-06-25  Simon Josefsson  <jas@extundo.com>
72047
72048         * modules/check-version: New file.
72049
72050 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72053         initializer of struct addrinfo, as an indication that we don't
72054         care how many members the structure has.
72055
72056 2005-06-24  Derek Price  <derek@ximbiot.com>
72057         and Bruno Haible  <bruno@clisp.org>
72058
72059         Remove stat module & update lstat.
72060         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72061         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72062         * m4/stat.m4: Remove this file.
72063
72064 2005-06-24  Derek Price  <derek@ximbiot.com>
72065         and Bruno Haible  <bruno@clisp.org>
72066
72067         Remove stat module & update lstat.
72068         * lib/stat.c: Remove this file...
72069         (slash_aware_lstat): ...moving this content and its support...
72070         * lib/lstat.c (rpl_lstat): ...into here.
72071         * lib/lstat.h: New file.
72072
72073 2005-06-24  Derek Price  <derek@ximbiot.com>
72074         and Bruno Haible  <bruno@clisp.org>
72075
72076         Remove stat module & update lstat.
72077         * config/srclist.txt (libc sources): Remove stat.
72078
72079 2005-06-24  Derek Price  <derek@ximbiot.com>
72080         and Bruno Haible  <bruno@clisp.org>
72081
72082         Remove stat module & update lstat.
72083         * MODULES.html.sh (stat): Remove.
72084         * MODULES.html: Regenerated.
72085         * modules/lstat (Description): Correct function name.
72086         (Files): Add "lstat.h".
72087         (Depends-on): Remove stat, add xalloc, stat-macros.
72088         * modules/stat: Remove this file.
72089         (Include): Add "lstat.h", remove <sys/stat.h>.
72090
72091 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72094         (ranged_convert): Don't save conversion in a temporary struct.
72095         This causes a warning with GCC 4.0.0, and anyway in the typical
72096         case it's not worth the extra 100 bytes or so of code.
72097         (ranged_convert, __mktime_internal): When calling a function via a
72098         pointer P, use P () rather than (*P) (), as we now assume C89 or
72099         better.
72100
72101 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72104         "who -r" failed to give output.  Problem reported by Tim Waugh.
72105
72106         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72107         (xcalloc): Use it to avoid needless tests.
72108         Problem reported by Jim Meyering.
72109
72110 2005-06-20  Derek Price  <derek@ximbiot.com>
72111
72112         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72113         unnecessary for Autoconfs > 2.59c.
72114
72115 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72116
72117         * lib/argp.h (__option_is_short): Check upper limit of
72118         __key. Isprint() requires its argument to have the value
72119         of an unsigned char or EOF.
72120
72121 2005-06-16  Jim Meyering  <jim@meyering.net>
72122
72123         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72124         when either N or S is zero.
72125
72126 2005-06-16  Derek Price  <derek@ximbiot.com>
72127
72128         * m4/bison.m4: Declare YACC & YFLAGS precious.
72129
72130 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72133         multibyte string or pattern, fall back on unibyte matching.
72134         Problem reported by James Youngman.
72135
72136 2005-06-08  Bruno Haible  <bruno@clisp.org>
72137
72138         * modules/csharpcomp: New file.
72139         * MODULES.html.sh (C#): Add csharpcomp.
72140
72141 2005-06-08  Bruno Haible  <bruno@clisp.org>
72142
72143         * m4/csharpcomp.m4: New file, from GNU gettext.
72144
72145 2005-06-08  Bruno Haible  <bruno@clisp.org>
72146
72147         * lib/csharpcomp.h: New file, from GNU gettext.
72148         * lib/csharpcomp.c: New file, from GNU gettext.
72149         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72150
72151 2005-06-08  Bruno Haible  <bruno@clisp.org>
72152
72153         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72154         warning on mingw.
72155
72156 2005-06-07  Derek Price  <derek@ximbiot.com>
72157
72158         Sync from CVS.
72159         * lib/glob_.h: Indent nested #ifdef.
72160
72161 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         Sync from coreutils.
72164         Use "file name" when talking about file names, instead of "filename"
72165         or "path", as per the GNU coding standards.
72166         * lib/mkdir-p.c: Renamed from makepath.c.
72167         (make_dir_parents): Renamed from make_path.  All callers changed.
72168         * lib/mkdir-p.h: Likewise.  All includers changed.
72169         * lib/filenamecat.c: Renamed from path-concat.c.
72170         (file_name_concat): Renamed from path_concat.  All callers changed.
72171         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72172         * lib/filenamecat.h: Likewise.  All includers changed.
72173         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72174         in comments or local variable names.
72175         * lib/basename.c: Likewise.
72176         * lib/canonicalize.c, canonicalize.h: Likewise.
72177         * lib/dirname.c, dirname.h: Likewise.
72178         * lib/euidaccess.c: Likewise.
72179         * lib/exclude.c: Likewise
72180         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72181         * lib/fsusage.c, fsuage.h: Likewise.
72182         * lib/fts.c, fts_.h: Likewise.
72183         * lib/getcwd.c: Likewise.
72184         * lib/getloadavg.c: Likewise.
72185         * lib/mkstemp.c: Likewise.
72186         * lib/mountlist.c, mountlist.h: Likewise.
72187         * lib/openat.c, openat.h: Likewise.
72188         * lib/readlink-stub.c: Likewise.
72189         * lib/readutmp.c, readutmp.h: Likewise.
72190         * lib/rename.c: Likewise.
72191         * lib/rmdir.c: Likewise.
72192         * lib/same.c: Likewise.
72193         * lib/savedir.c: Likewise.
72194         * lib/stripslash.c: Likewise.
72195         * lib/tempname.c: Likewise.
72196         * lib/xreadlink.c: Likewise.
72197         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72198         All uses changed.
72199         * lib/exclude.h: Likewise.
72200
72201         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72202         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72203         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72204         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72205         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72206         files have been getting away with it for years (MORE/BSD 4.3
72207         is extinct now).
72208         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72209         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72210
72211         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72212         Define to 256, not 255, as per modern POSIX.
72213
72214 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         Sync from coreutils.
72217         Use "file name" when talking about file names, instead of "filename"
72218         or "path", as per the GNU coding standards.
72219         * MODULES.html.sh: mkdir-p renamed from makepath.
72220         filenamecat renamed from path-concat.
72221         * modules/filenamecat: Renamed from modules/path-concat.
72222         (Files): filenamecat.h and filenamecat.c renamed from
72223         path-concat.h and path-concat.c.
72224         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72225         (Include): filenamecat.h, not path-concat.h.
72226         * modules/mkdir-p: Renamed from modules/makepath.
72227         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72228         makepath.c.
72229         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72230         (Include): mkdir-p.h, not makepath.h.
72231
72232 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         Sync from coreutils.
72235         * m4/mkdir-p.m4: Renamed from makepath.m4.
72236         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72237         Rename files from makepath.c to mkdir-p.c, and from
72238         makepath.h to mkdir-p.h.
72239         * m4/filenamecat.m4: Renamed from path-concat.m4.
72240         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72241         Rename files from path-concat.c to filenamecat.c,
72242         and from path-concat.h to filenamecat.h.
72243         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72244         "file name" in local variables or comments.
72245         * m4/rename.m4: Likewise.
72246
72247 2005-06-01  Bruno Haible  <bruno@clisp.org>
72248
72249         * modules/csharpexec: New file.
72250         * MODULES.html.sh (C#): New section.
72251
72252 2005-06-01  Bruno Haible  <bruno@clisp.org>
72253
72254         * m4/csharp.m4: New file, from GNU gettext.
72255         * m4/csharpexec.m4: New file, from GNU gettext.
72256
72257 2005-06-01  Bruno Haible  <bruno@clisp.org>
72258
72259         * lib/csharpexec.h: New file, from GNU gettext.
72260         * lib/csharpexec.c: New file, from GNU gettext.
72261         * lib/csharpexec.sh.in: New file, from GNU gettext.
72262
72263 2005-05-31  Derek Price  <derek@ximbiot.com>
72264             Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         Sync from cvs.
72267         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72268
72269 2005-05-31  Derek Price  <derek@ximbiot.com>
72270             Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         Sync from cvs.
72273         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72274
72275 2005-05-29  Derek Price  <derek@ximbiot.com>
72276
72277         * config/srclist.txt (glob_.h, glob.c): Add these files.
72278
72279 2005-05-29  Derek Price  <derek@ximbiot.com>
72280
72281         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72282         * modules/glob: New file.
72283         * modules/getlogin_r: Add link to POSIX spec in description.
72284
72285 2005-05-29  Derek Price  <derek@ximbiot.com>
72286             Paul Eggert  <eggert@cs.ucla.edu>
72287
72288         * m4/glob.m4: New file.
72289
72290 2005-05-29  Derek Price  <derek@ximbiot.com>
72291             Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * lib/glob_.h, lib/glob.c: New files.
72294
72295 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72298         * modules/fts-lgpl (Depends-on): Remove gettext.
72299
72300 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72303         and don't require gt_INTTYPES_PRI.
72304
72305 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72308
72309         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72310         the configuration hassle isn't worth it.
72311         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72312         (LONGEST_MODIFIER, PRIuMAX): Remove.
72313
72314 2005-05-27  Bruno Haible  <bruno@clisp.org>
72315
72316         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72317
72318 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72321         _POSIX_PTHREAD_SEMANTICS for Solaris.
72322
72323 2005-05-25  Derek Price  <derek@ximbiot.com>
72324
72325         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72326
72327 2005-05-25  Derek Price  <derek@ximbiot.com>
72328             Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72331         * lib/getlogin_r.c, getlogin_r.h: New files.
72332
72333 2005-05-25  Bruno Haible  <bruno@clisp.org>
72334             Derek Price  <derek@ximbiot.com>
72335
72336         * lib/getlogin_r.h: Simplify API documentation.
72337
72338 2005-05-23  Derek Price  <derek@ximbiot.com>
72339
72340         * modules/minmax (Files): Add m4/minmax.m4.
72341         (configure.ac): Add gl_MINMAX.
72342
72343 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72346         so that unistd-safer.h (GPL'ed code) need not be included.
72347
72348 2005-05-22  Bruno Haible  <bruno@clisp.org>
72349
72350         * m4/minmax.m4: New file.
72351         Based on a patch by Derek Price <derek@ximbiot.com>.
72352
72353 2005-05-22  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72356         (INT64_MIN): Fix definition.
72357         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72358
72359         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72360         NEED_SIGNED_INT_TYPES.
72361
72362         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72363         HAVE_SYSTEM_INTTYPES.
72364
72365 2005-05-22  Bruno Haible  <bruno@clisp.org>
72366
72367         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72368         Also include <sys/param.h> if it defines MIN, MAX.
72369         Based on a patch by Derek Price <derek@ximbiot.com>.
72370
72371 2005-05-21  Jim Meyering  <jim@meyering.net>
72372
72373         * modules/fts (Files): Add m4/inttypes-pri.m4.
72374         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72375
72376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72377
72378         New fts module.
72379         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72380         (setup_dir, free_dir): New functions.
72381         (enter_dir, leave_dir): Define trivial
72382         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72383         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72384         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72385         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72386         Move to fts-cycle.c.
72387         (fts_open): Use setup_dir.
72388         (fts_close): Use free_dir.
72389         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72390         This adds a label and some gotos, but the alternatives were messier.
72391         Check for memory allocation failure when entering a dir.
72392         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72393         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72394         (FTS): New member fts_cycle, that is a union that contains the
72395         old active_dir_ht and cycle_state.  All uses changed to mention
72396         fts_cycle.ht and fts_cycle.state.
72397         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72398         fts.c, with the following changes:
72399         (setup_dir, free_dir): New functions.
72400         (enter_dir): Now returns bool.  Return true if successful, false
72401         if memory exhausted.  All callers changed.
72402         Do not bother partly cleaning up on
72403         memory allocation failure; that is free_dir's job.
72404         However, free ad if hash_insert fails, to avoid memory leak.
72405         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72406         fts->fts_options to see which union member to use.
72407
72408 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72411         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72412
72413 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72416
72417 2005-05-20  Jim Meyering  <jim@meyering.net>
72418
72419         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72420         Now a macro, to pacify GCC.
72421
72422 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72423
72424         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72425         of -1.
72426
72427 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72428
72429         * lib/chown.c (rpl_chown): Return -1 on failure.
72430
72431 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72432
72433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72434         Don't check for stddef.h.
72435         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72436         don't use its results.
72437         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72438         since we include them unconditionally.  Don't require
72439         AM_STDBOOL_H, since stdbool is a prerequisite.
72440         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72441         since we assume C89 or better.
72442         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72443         as we don't use their results.
72444         Don't check for fchdir, memmove, memset, strrchr, as we use
72445         them unconditionally.
72446         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72447         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72448
72449 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72452         Include <stddef.h> unconditionally, since we assume C89 now.
72453         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72454         * lib/fts.c: Include fts_.h first, to check interface.
72455         Do not include intprops.h; no longer needed.
72456         Include cycle-check.h and hash.h, since fts_.h no longer does.
72457         Remove unnecessary casts of closedir to void.
72458         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72459         decide whether to decrement nlinks.
72460         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72461         (FTS): Use struct hash_table * instead of Hash_table, so that
72462         we no longer need to include hash.h here.
72463
72464 2005-05-18  Jim Meyering  <jim@meyering.net>
72465
72466         * modules/dirfd (License): Change to LGPL.  Most of the code
72467         is already in the public domain.
72468
72469 2005-05-18  Jim Meyering  <jim@meyering.net>
72470
72471         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
72472         Reported by Yoann Vandoorselaere.
72473
72474 2005-05-17  Jim Meyering  <jim@meyering.net>
72475
72476         * m4/fts.m4: New file, from coreutils.
72477
72478 2005-05-17  Jim Meyering  <jim@meyering.net>
72479
72480         * lib/fts.c, lib/fts_.h: New files, from coreutils.
72481
72482 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72483
72484         Sync from coreutils.
72485         * m4/unlinkdir.m4: New file.
72486
72487 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         Sync from coreutils.
72490         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
72491         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
72492         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
72493         White space changes only.
72494         * lib/makepath.c (make_path): Port to hosts where leading "//" is
72495         special.
72496         * lib/yesno.c: Include getline.h, not ctype.h.
72497         (yesno): Don't remove leading white space; POSIX doesn't allow it.
72498         Use getline to remove arbitrary restriction on response length.
72499
72500 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * config/srclist-update: Spell out "Street" in FSF postal
72503         mail address; this is the style the FSF seems to prefer.
72504
72505         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
72506         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
72507         this updates FSF postal mail address.
72508
72509         Sync from coreutils.
72510         * modules/unlinkdir: New file.
72511         * modules/yesno (Depends-on): Add getline.
72512         * MODULES.html.sh (File system functions): Add unlinkdir.
72513
72514 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
72517         lib/strsep.h:
72518         Change the initial comment to refer to GPL, not LGPL.
72519         gnulib-tool will change it to LGPL as needed.
72520
72521         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
72522         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
72523         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
72524         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
72525         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
72526         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
72527         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
72528         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
72529         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
72530         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
72531         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
72532         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
72533         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
72534         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
72535         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
72536         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
72537         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
72538         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
72539         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
72540         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
72541         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
72542         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
72543         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
72544         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
72545         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
72546         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
72547         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
72548         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
72549         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
72550         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
72551         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
72552         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
72553         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
72554         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
72555         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
72556         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
72557         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
72558         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
72559         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
72560         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
72561         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
72562         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
72563         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
72564         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
72565         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
72566         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
72567         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
72568         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
72569         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
72570         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
72571         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72572         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
72573         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
72574         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
72575         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
72576         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
72577         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
72578         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
72579         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
72580         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
72581         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
72582         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
72583         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
72584         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
72585         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
72586         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
72587         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
72588         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
72589         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
72590         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
72591         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
72592         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
72593         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
72594         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
72595         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
72596         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
72597         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
72598         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
72599         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
72600         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
72601         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
72602         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
72603         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
72604         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
72605         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
72606         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
72607         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
72608         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
72609         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
72610         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
72611         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
72612         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
72613         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
72614         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
72615         lib/yesno.c, lib/yesno.h:
72616         Update FSF postal mail address.
72617
72618 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72619
72620         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
72621         tests/test-memmem.c, tests/test-stpncpy.c:
72622         Update FSF postal mail address.
72623
72624 2005-05-13  Bruno Haible  <bruno@clisp.org>
72625
72626         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
72627         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
72628         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
72629         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
72630         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
72631         Add support for 64-bit integers in the MSVC compiler.
72632
72633 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72634
72635         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
72636
72637 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
72638
72639         * gnulib-tool (func_import): Sort and uniquify recommended includes.
72640
72641 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * doc/getdate.texi (General date syntax): Don't say that date
72644         date --iso-8601=ns generates acceptable dates; it doesn't yet.
72645         Problem reported by Nic Ferrier.
72646
72647 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72648
72649         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
72650         specified in ai_socktype. Fix invalid ai_protocol
72651         check. ai_protocol is usually set to 0 or depending on
72652         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
72653         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
72654         ai_socktype / ai_protocol in the returned addrinfo structure.
72655
72656 2005-05-10  Simon Josefsson  <jas@extundo.com>
72657
72658         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
72659         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72660
72661 2005-05-10  Karl Berry  <karl@gnu.org>
72662
72663         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
72664         (from http://www.gnu.org/licenses).
72665         * doc/COPYING.LIB: also rename to COPYING.LESSER.
72666         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
72667         fdl.texi suffices.
72668
72669 2005-05-10  Karl Berry  <karl@gnu.org>
72670
72671         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
72672         (COPYING.DOC): remove.
72673
72674         * config/srclist-update: new FSF address.
72675
72676 2005-05-10  Derek Price  <derek@ximbiot.com>
72677
72678         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
72679         possible.
72680
72681 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72682             Bruno Haible  <bruno@clisp.org>
72683
72684         * modules/inet_ntop: New file.
72685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72686         inet_ntop.
72687
72688 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72689             Bruno Haible  <bruno@clisp.org>
72690
72691         * m4/inet_ntop.m4: New file.
72692
72693 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72694             Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/inet_ntop.h: New file.
72697         * lib/inet_ntop.c: New file, from glibc with modifications.
72698
72699 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * modules/time_r (License): Change to LGPL.
72702         * modules/extensions (License): Change to LGPL.  Actually,
72703         the license is more permissive than that, but currently gnulib-tool
72704         doesn't know how to handle more-permissive licenses.
72705
72706         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
72707         Problem reported by Dave Love.
72708
72709 2005-05-08  Jim Meyering  <jim@meyering.net>
72710
72711         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
72712         blank.
72713
72714 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * modules/argmatch (Depends-on): Add stdbool.
72717         * modules/backupfile (Depends-on): Likewise.
72718         * modules/chdir-long (Depends-on): Likewise.
72719         * modules/closeout (Depends-on): Likewise.
72720         * modules/cycle-check (Depends-on): Likewise.
72721         * modules/dirname (Depends-on): Likewise.
72722         * modules/fnmatch (Depends-on): Likewise.
72723         * modules/fsusage (Depends-on): Likewise.
72724         * modules/fwriteerror (Depends-on): Likewise.
72725         * modules/getcwd (Depends-on): Likewise.
72726         * modules/getloadavg (Depends-on): Likewise.
72727         * modules/hard-locale (Depends-on): Likewise.
72728         * modules/makepath (Depends-on): Likewise.
72729         * modules/mountlist (Depends-on): Likewise.
72730         * modules/nanosleep (Depends-on): Likewise.
72731         * modules/posixtm (Depends-on): Likewise.
72732         * modules/quotearg (Depends-on): Likewise.
72733         * modules/readtokens (Depends-on): Likewise.
72734         * modules/readtokens0 (Depends-on): Likewise.
72735         * modules/readutmp (Depends-on): Likewise.
72736         * modules/save-cwd (Depends-on): Likewise.
72737         * modules/strftime (Depends-on): Likewise.
72738         * modules/userspec (Depends-on): Likewise.
72739         * modules/utimecmp (Depends-on): Likewise.
72740         * modules/xgetcwd (Depends-on): Likewise.
72741         * modules/xnanosleep (Depends-on): Likewise.
72742         * modules/xstrtod (Depends-on): Likewise.
72743         * modules/yesno (Depends-on): Likewise.
72744
72745 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
72748         needless checks.
72749
72750 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         Merge from coreutils.  Among other things,
72753         add bulletproofing for cases where stdin, stdout, or stderr are closed.
72754         * lib/fd-safer.c: New file.
72755         * lib/fcntl-safer.h, open-safer.c: Remove.
72756         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
72757         * lib/dup-safer.c: Include unistd-safer.h first.
72758         Don't include errno.h.
72759         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
72760         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
72761         * lib/file-type.c: Rely on file-type.h change.
72762         * lib/getloadavg.c: Include unistd-safer.h.
72763         (getloadavg): Use safer open.
72764         * lib/getusershell.c: Include "stdio-safer.h".
72765         (getusershell): Use safer fopen.
72766         * lib/long-options.c (long_options): Use NULL rather than 0.
72767         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
72768         'free'.
72769         * lib/modechange.c: Likewise.
72770         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
72771         (MODE_DONE): New constant.
72772         (struct mode_change): Remove 'next' member.
72773         (make_node_op_equals): New function; like the old one of the
72774         same name, except it allocates an array.
72775         (mode_compile, mode_create_from_ref): Use it.
72776         (mode_compile): Allocate result as an array, not a linked list.
72777         Parse octal string ourself, so that we catch mistakes like "+0".
72778         (mode_adjust): Arg is an array, not a linked list.
72779         * lib/modechange.c: Include stat-macros.h, xalloc.h.
72780         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
72781         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
72782         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
72783         Remove.  This is now stat-macros.h's job.
72784         (talloc): Remove.  All callers replaced by xalloc, so that
72785         our invokers don't have to worry about reporting memory failures.
72786         (make_node_op_equals): Remove.
72787         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72788         New constants.
72789         (struct mode_change): Moved here from modechange.h.
72790         (mode_append_entry): Remove.
72791         (mode_compile): Remove MASKED_OPS arg, since it encouraged
72792         apps to have incorrect behavior.  Use simpler algorithm for head
72793         and tail.  Don't futz with umask; that's now the job of mode_adjust.
72794         Detect more invalid usages rather than having somewhat-random behavior.
72795         Don't insert an "a=" action, as that leads to incorrect behavior.
72796         (mode_compile, mode_create_from_ref): Return NULL on error instead
72797         of an enum, since now there's only one way to have an error.  All
72798         callers changed.
72799         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
72800         at the correct time.  Simplify calculation of "+u" and its ilk.
72801         Don't mishandle "+X".
72802         (mode_free): Remove "register" and localize decls.
72803         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
72804         (struct mode_change): Move to modechange.c; callers don't
72805         need to see this stuff.
72806         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
72807         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
72808         (mode_change, mode_adjust): Reflect the new signatures noted above.
72809         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
72810         that might redefine system include files.
72811         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
72812         (my_usleep): Use NULL rather than (void *) 0.
72813         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
72814         Use siginterrupt to specify that system calls should be interrupted.
72815         (rpl_nanosleep): Move initialization of suspended closer to call of
72816         my_usleep.
72817         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
72818         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
72819         (desirable_utmp_entry): New function.
72820         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
72821         using x2nrealloc, to simplify logic.
72822         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
72823         size calculation.  Do not assume utmp file is a regular file.
72824         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
72825         (READ_UTMP_CHECK_PIDS): New constant.
72826         * lib/save-cwd.c: Include unistd-safer.h.
72827         (save_cwd): Use fd_safer.
72828         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
72829         [!_LIBC] Include "stat-macros.h" instead.
72830         * lib/unistd-safer.h (fd_safer): New decl.
72831
72832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72833
72834         * modules/getloadavg (Depends-on): Add unistd-safer.
72835         * modules/getusershell (Depends-on): Add stdio-safer.
72836         * modules/lstat (Depends-on): Remove xalloc.
72837         * modules/mkstemp (Depends-on): Add stat-macros.
72838         * modules/modechange (Depends-on): Remove xstrtol.
72839         Add stat-macros, xalloc.
72840         * modules/save-cwd (Depends-on): Add unistd-safer.
72841         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
72842         * modules/unistd-safer (Files): Add lib/fd-safer.c
72843         (Makefile.am): Remove lib_SOURCES.
72844
72845         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
72846         Remove fcntl-safer; unistd-safer supersedes it.
72847
72848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
72851         AC_HEADER_STAT.
72852         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
72853         (gl_PREREQ_CHOWN): Remove.
72854         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
72855         it.  Don't require AC_HEADER_STAT.
72856         (gl_PREREQ_LSTAT): Remove.
72857         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
72858         Don't require AC_HEADER_STAT.
72859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
72860         (gl_PREREQ_RMDIR): Remove.
72861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
72862         mention stat-macros.h or AC_HEADER_STAT, since we'll make
72863         the stat-macros module a prerequisite.
72864         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
72865         * m4/filemode.m4 (gl_FILEMODE): Likewise.
72866         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
72867         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
72868         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
72869         variable names.
72870         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
72871         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
72872         variable prefixes.
72873         * m4/fcntl-safer.m4: Remove.
72874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
72875         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
72876         Invoke gl_PREREQ_FD_SAFER.
72877         (gl_PREREQ_FD_SAFER): New macro.
72878         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
72879         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
72880         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
72881         Remove duplicate call to AC_LIBOBJ(readutmp).
72882         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
72883
72884         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
72885         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
72886
72887 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
72888
72889         * MODULES.html.sh (Misc): Add byteswap.
72890
72891 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72892
72893         * modules/getcwd (Depends-on): Add extensions.
72894         * modules/openat (Depends-on): Likewise.
72895
72896 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72897
72898         * modules/byteswap: New file.
72899
72900 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72901
72902         * m4/byteswap.m4: New file.
72903
72904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
72905
72906         * lib/byteswap_.h: New file.
72907
72908 2005-04-25  Karl Berry  <karl@gnu.org>
72909
72910         * m4/gettext.m4: Update from GNU gettext 0.14.4.
72911
72912 2005-04-25  Albert Chin  <china@thewrittenword.com>
72913
72914         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
72915         Toolkit C bug.
72916
72917 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
72918
72919         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
72920         (func_ln_if_changed): Remove forcibly for no error message
72921         in case file does not exist.
72922
72923 2005-04-19  Simon Josefsson  <jas@extundo.com>
72924
72925         * gnulib-tool (Options): Make --symlink mean --symbolic.
72926
72927 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
72928
72929         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
72930
72931 2005-04-16  Simon Josefsson  <jas@extundo.com>
72932
72933         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
72934
72935 2005-04-15  Simon Josefsson  <jas@extundo.com>
72936
72937         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
72938
72939 2005-04-15  Simon Josefsson  <jas@extundo.com>
72940
72941         * gnulib-tool: Rename --symlink to --symbolic.
72942
72943 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
72944
72945         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
72946         symbolic links to files instead of copying/moving.  Add --aux-dir,
72947         specifying directory relative --dir where auxiliary build tools
72948         are placed.
72949
72950 2005-04-14  Bruno Haible  <bruno@clisp.org>
72951
72952         * modules/allocsa (License): Change to LGPL.
72953         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72954
72955 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
72958         that "UTC +1 second" continues to work.  Problem reported
72959         by Dmitry V. Levin.
72960         (relunit_snumber): New rule.
72961         (relunit): Use it.
72962
72963 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * lib/getdate.y (universal_time_zone_table): New constant.
72966         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
72967         universal_time_zone_table.
72968         (lookup_zone): Prefer universal_time_zone_table to
72969         local_time_zone_table, so that "GMT" time stamps are allowed in
72970         London during the summer.  Problem reported by Ian Abbott.
72971
72972 2005-04-12  Jim Meyering  <jim@meyering.net>
72973
72974         * lib/human.c (humblock): Set *options even when returning due to
72975         xstrtoumax conversion failure.  Thanks to a used-uninitialized
72976         warning from gcc-4.
72977
72978 2005-04-09  Jim Meyering  <jim@meyering.net>
72979
72980         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
72981         -Wuninitialized: initialize tm0.tm_year.
72982
72983 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
72986         count, since there's no maximum.  All uses changed.
72987         Add member dsts_seen.
72988         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
72989         not being INT_MAX.
72990         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
72991         Use pc_rels_seen to decide whther a date is absolute.
72992
72993         * lib/getdate.y (number): Don't overwrite year.
72994         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
72995         check.
72996
72997 2005-04-02  Simon Josefsson  <jas@extundo.com>
72998
72999         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73000         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73001
73002 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73003
73004         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73005         where no absolute path name can be longer than PATH_MAX.
73006
73007 2005-03-27  Jim Meyering  <jim@meyering.net>
73008
73009         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73010
73011 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73014         "one's complement" -> "ones' complement" in comment, as per Knuth.
73015         "value of type" -> "type or expression" in comment.
73016         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73017
73018 2005-03-26  Jim Meyering  <jim@meyering.net>
73019
73020         Comment nits.
73021         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73022         Correct typos: s/or/of/.
73023
73024 2005-03-26  Jim Meyering  <jim@meyering.net>
73025
73026         * modules/check-include-files: Move to ../ and rename to...
73027         * check-module: ...this.
73028
73029 2005-03-25  Jim Meyering  <jim@meyering.net>
73030
73031         * modules/xvasprintf (Files): Add xalloc.h.
73032
73033 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * modules/gettext (Files): config/config.rpath ->
73036         build-aux/config.rpath
73037         * modules/iconv (Files): Likewise.
73038         Problem reported by Oskar Liljeblad.
73039
73040 2005-03-23  Jim Meyering  <jim@meyering.net>
73041
73042         * modules/check-include-files: New script to check for
73043         missing dependencies, multiple includes, etc.
73044
73045         * modules/c-strtold (Depends-on): Add xalloc.
73046         * modules/c-strtod (Depends-on): Add xalloc.
73047         * modules/hash (Depends-on): Add xalloc.
73048         (Files): Remove lib/xalloc.h.
73049
73050         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73051         * modules/userspec (Files): Add lib/inttostr.h.
73052
73053 2005-03-23  Jim Meyering  <jim@meyering.net>
73054
73055         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73056
73057 2005-03-22  Jim Meyering  <jim@meyering.net>
73058
73059         * modules/stat-macros: New module.
73060         * modules/canonicalize, modules/euidaccess, modules/file-type,
73061         * modules/filemode, modules/lchown, modules/makepath,
73062         * modules/rmdir, modules/stat: Depend on new stat-macros module
73063         rather than listing lib/stat-macros.h manually.
73064         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73065
73066 2005-03-22  Jim Meyering  <jim@meyering.net>
73067
73068         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73069
73070 2005-03-22  Bruno Haible  <bruno@clisp.org>
73071
73072         * config/srclist.txt: Replace target directory 'config' with
73073         'build-aux'.
73074         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73075         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73076         ../build-aux/.
73077
73078 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * modules/chdir-long (Depends-on): Add mempcpy.
73081
73082         * modules/acl, modules/backupfile, modules/c-strtod,
73083         modules/c-strtold, modules/canon-host, modules/canonicalize,
73084         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73085         modules/exclude, modules/exitfail, modules/file-type,
73086         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73087         modules/getdate, modules/getline, modules/getpagesize,
73088         modules/getpass, modules/getugroups, modules/group-member,
73089         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73090         modules/inttostr, modules/long-options, modules/makepath,
73091         modules/md5, modules/memcasecmp, modules/memcoll,
73092         modules/modechange, modules/mountlist, modules/path-concat,
73093         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73094         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73095         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73096         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73097         modules/strftime, modules/strndup, modules/strverscmp,
73098         modules/timespec, modules/unlocked-io, modules/userspec,
73099         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73100         modules/yesno:
73101         Remove lib_SOURCES line from Makefile.am section, as this is now
73102         done automatically by the corresponding Autoconf macro.
73103
73104 2005-03-21  Jim Meyering  <jim@meyering.net>
73105
73106         Changes imported from coreutils.
73107
73108         * lib/cycle-check.c: Don't include xalloc.h.
73109
73110         * lib/path-concat.c: Don't include assert.h.
73111         (path_concat): Remove assertion that would have triggered
73112         for ABASE starting with more than one slash.
73113         Reported by Andreas Schwab.
73114
73115         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73116         properly when ABASE is an absolute file name.
73117         Correct the description of this function.
73118         Include <assert.h>.
73119         Add an assertion and a test driver.
73120         This fixes a bug introduced on 2004-07-02.
73121         Andreas Schwab reported the resulting failure of cp --parents:
73122         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73123
73124 2005-03-21  Jim Meyering  <jim@meyering.net>
73125
73126         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73127         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73128
73129 2005-03-21  Jim Meyering  <jim@meyering.net>
73130         and  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73133         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73134         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73135         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73136         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73137         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73138         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73139         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73140         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73141         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73142         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73143         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73144         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73145         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73146         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73147         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73148         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73149         for these modules.
73150
73151 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73154         (which shouldn't happen), generate nothing instead of returning 0
73155         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73156
73157 2005-03-16  Bruno Haible  <bruno@clisp.org>
73158
73159         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73160         HAVE_LONGLONG_64BIT.
73161
73162 2005-03-16  Bruno Haible  <bruno@clisp.org>
73163
73164         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73165         HAVE_LONGLONG_64BIT.
73166
73167 2005-03-16  Bruno Haible  <bruno@clisp.org>
73168
73169         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73170         HAVE_LONGLONG_64BIT.
73171
73172 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73175         reliably distinguish strftime failure from empty output on POSIX
73176         hosts.
73177
73178 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73181         (iconv_string): Don't guess a size-zero buffer, as that might cause
73182         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73183         result would be 'too large', where 'too large' is (heuristically)
73184         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73185         overflow concerns.  This will prevent some unwanted malloc failures
73186         when the inputs are very large.
73187
73188 2005-03-15  Karl Berry  <karl@gnu.org>
73189
73190         * config/srclist.txt (config.rpath): from gettext.
73191         * config/config.rpath: update.
73192
73193 2005-03-15  Bruno Haible  <bruno@clisp.org>
73194
73195         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73196         to 'negate'.
73197
73198         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73199         variable.
73200
73201         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73202         results.
73203
73204 2005-03-14  Simon Josefsson  <jas@extundo.com>
73205
73206         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73207         <fx@gnu.org>.
73208
73209 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73212         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73213         intprops.h.
73214         * lib/strtol.c: Likewise.
73215
73216 2005-03-14  Jim Meyering  <jim@meyering.net>
73217
73218         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73219         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73220         to be nonzero so that we (and caller) can detect the difference
73221         between a valid zero-length expansion and an error return, even
73222         when the underlying strftime fails before writing anything into
73223         that location.
73224
73225 2005-03-14  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73228         Update from GNU gettext 0.14.3.
73229
73230 2005-03-10  Jim Meyering  <jim@meyering.net>
73231
73232         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73233
73234 2005-03-10  Jim Meyering  <jim@meyering.net>
73235
73236         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73237         so that this module works on systems without fchdir.
73238
73239 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         Factor int-properties macros into a single file, except for
73242         glibc-related files.
73243         * lib/intprops.h: New file.
73244         * lib/getloadavg.c: Include it instead of limits.h.
73245         (INT_STRLEN_BOUND): Remove.
73246         * lib/human.c: Include intprops.h.
73247         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73248         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73249         302/1000.
73250         * lib/inttostr.h: Include intprops.h instead of limits.h.
73251         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73252         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73253         for consistency with intprops.h.
73254         (time_t_is_integer, twos_complement_arithmetic): Use them.
73255         * lib/sig2str.h: Include <signal.h>, intprops.h.
73256         (INT_STRLEN_BOUND): Remove.
73257         * lib/strftime.c (TYPE_SIGNED): Remove.
73258         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73259         * lib/strtol.c: Adjust comments to match intprops.h.
73260         * lib/userspec.c: Include intprops.h.
73261         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73262         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73263         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73264         instead of rolling our own expressions.
73265         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73266
73267         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73268         instead of int.
73269         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73270         the right thing even if adding 1900 would overflow.  Similarly
73271         for tm_mon + 1 and tm_yday + 1.
73272         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73273         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73274         (DO_SIGNED_NUMBER): New macro.
73275         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73276
73277 2005-03-07  Bruno Haible  <bruno@clisp.org>
73278
73279         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73280
73281 2005-03-07  Bruno Haible  <bruno@clisp.org>
73282
73283         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73284
73285 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73286
73287         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73288         (func_import): Only replace files via --import when they have actually
73289         changed.
73290
73291 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73292
73293         * m4/mmap-anon.m4: New file.
73294         * m4/pagealign_alloc.m4: New file.
73295
73296 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73297             Bruno Haible  <bruno@clisp.org>
73298
73299         * modules/pagealign_alloc: New file.
73300         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73301
73302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73303             Bruno Haible  <bruno@clisp.org>
73304
73305         * lib/pagealign_alloc.h: New file.
73306         * lib/pagealign_alloc.c: New file.
73307
73308 2005-03-03  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73311         Use an all-permissive copyright notice, recommended by RMS.
73312
73313 2005-03-02  Bruno Haible  <bruno@clisp.org>
73314
73315         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73316         of AIX, the replacement has to be done only after <string.h> is
73317         included, therefore not in config.h. stpncpy.h does the replacement,
73318         and stpncpy.c uses it.
73319
73320 2005-03-02  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73323         stpncpy.c uses it.
73324
73325 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73328         The workaround isn't strictly needed for POSIX conformance, and
73329         it's too much of a pain to configure and maintain.  We'll ask
73330         people to fix their kernels instead.
73331         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73332         (NANOSLEEP_BUG_WORKAROUND): Remove.
73333         (xnanosleep): Remove the workaround.
73334
73335 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73338         Reported by Derek Price.
73339         (Include): Add "timespec.h".
73340
73341         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73342
73343 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73346         to detect nanosleep bug.
73347
73348 2005-03-01  Bruno Haible  <bruno@clisp.org>
73349
73350         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73351
73352 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * modules/gethrxtime: New file.
73355         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73356         (Depends-on): Add gethrxtime.
73357         (configure.ac): Add gl_XNANOSLEEP.
73358         (Makefile.am): Remove lib_SOURCES line.
73359
73360 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73361
73362         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73363         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73364
73365 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73368         * lib/timespec.h (gettime): Return void, since it always
73369         succeeds now.  All uses changed.
73370         * lib/gettime.c (gettime): Likewise.
73371         [HAVE_NANOTIME]: Prefer nanotime.
73372         Assume gettimeofday succeeds, as POSIX requires.
73373         Assime time () succeeds, since other code already does.
73374         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73375         (timespec_subtract): Remove.
73376         (NANOSLEEP_BUG_WORKAROUND): New constant.
73377         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73378         things considerably.  Use it only on GNU/Linux hosts, since the
73379         workaround shouldn't be needed elsewhere.
73380
73381 2005-02-24  Bruno Haible  <bruno@clisp.org>
73382
73383         * modules/gettext (Files): Add m4/glibc2.m4.
73384
73385 2005-02-24  Bruno Haible  <bruno@clisp.org>
73386
73387         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73388         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73389         * m4/progtest.m4:
73390         Update from GNU gettext 0.14.2.
73391         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73392
73393 2005-02-24  Bruno Haible  <bruno@clisp.org>
73394
73395         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73396         * lib/config.charset: Update from GNU gettext 0.14.2.
73397
73398 2005-02-24  Bruno Haible  <bruno@clisp.org>
73399
73400         * lib/gettext.h: Update from GNU gettext 0.14.2.
73401
73402 2005-02-23  Simon Josefsson  <jas@extundo.com>
73403
73404         * m4/iconvme.m4: New file.
73405
73406 2005-02-23  Jim Meyering  <jim@meyering.net>
73407
73408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73409         change.
73410         Thanks to Bruno Haible for catching it.
73411
73412 2005-02-22  Simon Josefsson  <jas@extundo.com>
73413
73414         * modules/iconvme: New file.
73415
73416         * MODULES.html.sh: Add iconvme.
73417
73418 2005-02-22  Simon Josefsson  <jas@extundo.com>
73419
73420         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73421
73422 2005-02-22  Simon Josefsson  <jas@extundo.com>
73423
73424         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73425
73426 2005-02-22  Jim Meyering  <jim@meyering.net>
73427
73428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73429         s/ifndef/ifdef/.
73430
73431 2005-02-20  Neil Conway  <neilc@samurai.com>
73432
73433         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73434         returned by OSX/Darwin if the specified buffer is not large
73435         enough for the hostname.
73436
73437 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73438
73439         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73440         pass it to _help, otherwise the latter coredumps trying to
73441         dereference state.root_argp.
73442
73443 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73444
73445         * modules/chdir-long (Depends-on): Add memrchr.
73446         * modules/memrchr (Files): Add lib/memrchr.h.
73447         (Include): "memrchr.h".
73448
73449 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73452
73453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/memrchr.h: New file.
73456         * lib/chdir-long.c: Include it.
73457         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73458         Don't bother including stddef.h.
73459
73460 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73463         inclusion.
73464         Include <sys/types.h>, for dev_t.
73465         (ME_DUMMY, ME_REMOTE): Move from here....
73466         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73467         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73468         Dmitry V. Levin.
73469         Include mountlist.h first, to test the interface.
73470
73471 2005-01-29  Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/progname.c (program_name): Initialize.
73474         Needed when linking statically on MacOS X.
73475
73476 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73477
73478         Sync from coreutils.
73479         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
73480         (Depends-on): Add c-strtod.
73481         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
73482
73483 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73484
73485         Sync from coreutils.
73486         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
73487
73488         Remove files that are specific to coreutils.
73489         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
73490
73491 2005-01-28  Bruno Haible  <bruno@clisp.org>
73492
73493         * modules/javacomp: New file.
73494         * MODULES.html.sh (Java): Add javacomp.
73495
73496 2005-01-28  Bruno Haible  <bruno@clisp.org>
73497
73498         * m4/javacomp.m4: New file, from GNU gettext.
73499
73500 2005-01-28  Bruno Haible  <bruno@clisp.org>
73501
73502         * lib/javacomp.sh.in: New file, from GNU gettext.
73503         * lib/javacomp.h: New file, from GNU gettext.
73504         * lib/javacomp.c: New file, from GNU gettext.
73505
73506 2005-01-26  Simon Josefsson  <jas@extundo.com>
73507
73508         * lib/gai_strerror.c: Use GPL in header.
73509
73510 2005-01-26  Bruno Haible  <bruno@clisp.org>
73511
73512         * modules/javaexec: New file.
73513         * MODULES.html.sh (Java): Add javaexec.
73514
73515 2005-01-26  Bruno Haible  <bruno@clisp.org>
73516
73517         * m4/javaexec.m4: New file, from GNU gettext.
73518
73519 2005-01-26  Bruno Haible  <bruno@clisp.org>
73520
73521         * lib/javaexec.sh.in: New file, from GNU gettext.
73522         * lib/javaexec.h: New file, from GNU gettext.
73523         * lib/javaexec.c: New file, from GNU gettext.
73524
73525 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73526
73527         * modules/lchown (Depends-on): Remove lchown.h
73528
73529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73530
73531         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
73532         must be defined if the header file was not found, in order
73533         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
73534
73535 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73536
73537         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
73538         initializers for struct pentry_state.
73539         (__argp_error): Check return value of __asprintf
73540         (__argp_failure): Translate error message
73541
73542         * lib/argp-parse.c: Removed braces around the expansion of N_()
73543
73544 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73545
73546         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
73547         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
73548         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
73549         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
73550         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
73551         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
73552         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
73553         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
73554         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
73555         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
73556         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
73557         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
73558         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
73559         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
73560         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
73561         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
73562         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
73563         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
73564         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
73565         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
73566         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
73567         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
73568         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
73569         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
73570         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
73571         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
73572         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
73573         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
73574         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
73575         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
73576         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
73577         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
73578         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
73579         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
73580         xstrtol.m4, xstrtoumax.m4, yesno.m4:
73581         Use an all-permissive copyright notice, recommended by RMS.
73582
73583 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * modules/chdir-long (Depends-on): Remove mempcpy.
73586
73587 2005-01-21  Jim Meyering  <jim@meyering.net>
73588
73589         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
73590         same value as for Solaris 9.
73591
73592         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
73593         component length.  This included changing the parameter to be
73594         of type `char *' rather than `char const *'.
73595         * lib/chdir-long.h (chdir_long): Update prototype.
73596
73597         * lib/openat.c (fdopendir, fstatat): New functions.
73598         * lib/openat.h: Include headers required for use of DIR and struct
73599         stat.
73600         [AT_SYMLINK_NOFOLLOW]: Define.
73601         (fdopendir, fstatat): Add prototypes.
73602
73603 2005-01-21  Bruno Haible  <bruno@clisp.org>
73604
73605         * modules/classpath: New file.
73606         * MODULES.html.sh (Java): Add classpath.
73607
73608 2005-01-21  Bruno Haible  <bruno@clisp.org>
73609
73610         * lib/classpath.h: New file, from GNU gettext.
73611         * lib/classpath.c: New file, from GNU gettext.
73612
73613 2005-01-20  Simon Josefsson  <jas@extundo.com>
73614
73615         * modules/version-etc-fsf: New file.
73616
73617 2005-01-20  Simon Josefsson  <jas@extundo.com>
73618
73619         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
73620         * lib/version-etc.c: Remove version_etc_copyright.
73621         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
73622         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
73623
73624 2005-01-20  Simon Josefsson  <jas@extundo.com>
73625
73626         * lib/base64.h (isbase64): Add.
73627
73628         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
73629         using a unsigned prototype, don't inline.
73630         (base64_decode): Use it.
73631
73632 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
73635         it.
73636
73637 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * lib/save-cwd.c (save_cwd): Remove code to support the case
73640         where fchdir is missing or flaky.
73641
73642 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
73645
73646 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
73649         AC_LIBSOURCES now does this.
73650         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
73651         with new ullong_max module.
73652
73653 2005-01-19  Bruno Haible  <bruno@clisp.org>
73654
73655         * modules/sh-quote: New file.
73656         * MODULES.html.sh (Executing programs): Add sh-quote.
73657
73658 2005-01-19  Bruno Haible  <bruno@clisp.org>
73659
73660         * lib/sh-quote.h: New file, from GNU gettext.
73661         * lib/sh-quote.c: New file, from GNU gettext.
73662
73663 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         Merge from coreutils.
73666         * m4/ullong_max.m4: New file.
73667         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
73668         (gl_MACROS): Assume localeconv exists.
73669
73670 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73671
73672         Merge changes from coreutils, as described below in several
73673         changelogs dated today.
73674
73675         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
73676         (O_DIRECTORY): Remove; not needed here, since "." must be
73677         a directory.  All uses removed.
73678         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
73679         universal on Suns, and we also need to test for IRIX.
73680         Revamp code to use 'if' rather than '#if'.
73681         Avoid unnecessary comparison of cwd->desc to 0.
73682
73683         * lib/utimens.c (futimens): Robustify the previous patch, by checking
73684         for known valid error numbers rather than observed invalid ones.
73685
73686 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * modules/ullong_max: New file.
73689
73690         * modules/chdir-long, modules/openat: New files.
73691         * modules/save-cwd (Depends-on): Depend on chdir-long.
73692         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
73693
73694 2005-01-18  Jim Meyering  <jim@meyering.net>
73695
73696         Merge from coreutils.
73697         * m4/chdir-long.m4, m4/openat.m4: New files.
73698         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
73699         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
73700         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
73701         is sane and DOES follow symlinks.  Besides, testing 20 different
73702         systems found no broken chown implementations.
73703         Prompted by a change in rsync's copy of this macro.
73704         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
73705
73706         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
73707
73708         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
73709         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
73710         NULL-means-set-to-current-time semantics.
73711         Remove temporary file immediately, rather than waiting
73712         for configure's at-exit trap code to do it.
73713
73714 2005-01-18  Jim Meyering  <jim@meyering.net>
73715
73716         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73717
73718         * lib/utimens.c (futimens): Account for the fact that futimes
73719         can also fail with errno == ENOSYS or errno == ENOENT.
73720         Patch from Dmitry V. Levin.
73721
73722         Change the name of the robust chdir function from chdir to chdir_long.
73723         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
73724         (restore_cwd): Use chdir_long, not chdir.
73725         * lib/chdir-long.c: Renamed from chdir.c.
73726         * lib/chdir-long.h: Renamed from chdir.h.
73727         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
73728         Hurd.
73729
73730 2005-01-18  Bruno Haible  <bruno@clisp.org>
73731
73732         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
73733         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
73734         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
73735         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
73736         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
73737         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
73738         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
73739         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
73740         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
73741         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
73742         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
73743         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
73744         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
73745         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
73746         Use an all-permissive copyright notice, recommended by RMS.
73747
73748 2005-01-18  Bob Proulx  <bob@proulx.com>
73749
73750         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
73751         simplify offsetof() macro construct to avoid compile failure with
73752         native HP-UX 11.0 ANSI C compiler.
73753
73754 2005-01-17  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
73757         redundant because stpncpy.m4 takes care of it.
73758
73759 2005-01-17  Bruno Haible  <bruno@clisp.org>
73760
73761         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
73762
73763 2005-01-17  Bruno Haible  <bruno@clisp.org>
73764
73765         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
73766         used.
73767
73768 2005-01-17  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/fwriteerror.h (fwriteerror): Change specification to include
73771         fclose.
73772         * lib/fwriteerror.c: Include <stdbool.h>.
73773         (fwriteerror): At the end, close the file stream. Record whether
73774         stdout was already closed.
73775
73776 2005-01-17  Bruno Haible  <bruno@clisp.org>
73777
73778         * lib/execute.c (environ): Declare if needed.
73779         * lib/pipe.c (environ): Likewise.
73780         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
73781
73782 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73783
73784         * modules/argp: Depend on vsnprintf
73785
73786 2005-01-10  Jim Meyering  <jim@meyering.net>
73787
73788         * modules/closeout (Depends-on): Add atexit.
73789
73790 2005-01-06  Bruno Haible  <bruno@clisp.org>
73791
73792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
73793
73794 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
73797         definitions to be after all include files, to avoid collisions.
73798         Problem reported by Bob Proulx.
73799
73800 2005-01-04  Jim Meyering  <jim@meyering.net>
73801
73802         Changes imported from coreutils.
73803         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
73804         as the mkstemp template, use a temporary directory and an
73805         8.3-friendly template to avoid trouble on systems like DJGPP.
73806         Reported by Juan M. Guerrero via Stepan Kasal.
73807         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
73808         close. Remove the temporary directory right away, rather than waiting
73809         for configure's at-exit trap code to do it.
73810         Suggestion from Stepan Kasal.
73811
73812 2005-01-01  Simon Josefsson  <jas@extundo.com>
73813
73814         * gnulib-tool: Print #include directives when --import'ing.
73815
73816 2004-12-28  Simon Josefsson  <jas@extundo.com>
73817
73818         * tests/test-base64.c: Include required header files.  Remove
73819         unused variables.
73820
73821 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73822
73823         * modules/error (Depends-on): Remove gettext.
73824
73825 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
73828         not needed.  This removes a dependency on the gettext module.
73829         [defined _LIBC]: Do not include <libintl.h>; not needed.
73830
73831 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
73834         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
73835
73836 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
73839         HAVE_DECL_STRTOLD.
73840
73841 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * modules/getdate (Depends-on): Remove alloca-opt.
73844
73845 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
73848
73849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * lib/argp-parse.c: Include <stddef.h>.
73852         (alignof, alignto): New macros.
73853         (parser_init): Don't assume that void * is aligned sufficiently
73854         for struct option.
73855
73856         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
73857         need to extend the stack.
73858         (YYINITDEPTH): New macro, so that the initial stack isn't overly
73859         large.
73860
73861 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73862
73863         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
73864
73865 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
73868         (2004-10-24) change.  Apparently this was a false alarm.
73869
73870         * modules/getdate: Depend on alloca-opt, not alloca.
73871
73872 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
73875         Remove now-obsolete comment about AIX.
73876         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
73877         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
73878         (YYMAXDEPTH): New macro.
73879
73880 2004-12-18  Simon Josefsson  <jas@extundo.com>
73881
73882         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
73883
73884 2004-12-18  Bruno Haible  <bruno@clisp.org>
73885
73886         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
73887
73888 2004-12-18  Bruno Haible  <bruno@clisp.org>
73889
73890         * lib/fatal-signal.c (fatal_signals): Make non-const.
73891         (init_fatal_signals): New function.
73892         (uninstall_handlers, install_handlers): Ignore signals that were set to
73893         SIG_IGN.
73894         (at_fatal_signal): Call init_fatal_signals.
73895         (init_fatal_signal_set): Likewise. Ignore signals that were set to
73896         SIG_IGN.
73897         Reported by Paul Eggert.
73898
73899 2004-12-18  Bruno Haible  <bruno@clisp.org>
73900
73901         * doc/alloca.texi: New file.
73902         * doc/alloca-opt.texi: New file.
73903
73904 2004-12-17  Jim Meyering  <jim@meyering.net>
73905
73906         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
73907         Otherwise, install-sh could exit with improper exit status when
73908         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
73909
73910 2004-12-16  Simon Josefsson  <jas@extundo.com>
73911
73912         * tests/test-base64.c: Add license.
73913
73914 2004-12-15  Stepan Kasal  <address@hidden>
73915
73916         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
73917
73918 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * modules/getcwd (Files): Add m4/d-ino.m4.
73921         Suggested by Mark D. Baushke.
73922
73923 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * lib/getdate.y (textint): New member "negative".
73926         (time_zone_hhmm): New function.
73927         Expect 14 shift-reduce conflicts, not 13.
73928         (o_colon_minutes): New rule.
73929         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
73930         (yylex): Set the "negative" member of signed numbers.
73931
73932 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * doc/getdate.texi (Time of day items, Time zone items):
73935         Describe new formats +00:00, UTC+00:00.
73936
73937 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
73940         spurious "-l"s.  Problem reported by Stepan Kasal.
73941
73942 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
73945         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
73946
73947 2004-12-04  Simon Josefsson  <jas@extundo.com>
73948
73949         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
73950         Vandoorselaere <yoann@prelude-ids.org>.
73951
73952 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         Changes imported from coreutils.
73955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
73956         exist.
73957         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
73958
73959 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         Changes imported from coreutils.
73962         * lib/hard-locale.c: Assume <locale.h> exists.
73963         Include "strdup.h".
73964         (GLIBC_VERSION): New macro.
73965         (hard_locale): Assume setlocale exists.
73966         Rewrite to avoid #ifdef.
73967         Use strdup rather than malloc + strcpy.
73968         * lib/human.c: Assume <locale.h> exists.
73969         (human_readable): Assume localeconv exists.
73970
73971 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * modules/hard-locale (Depends-on): Add strdup.
73974
73975 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73976
73977         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
73978         convert T2, not T.  (Imported from libc.)
73979
73980 2004-11-30  Simon Josefsson  <jas@extundo.com>
73981
73982         * modules/restrict (License): Change to LGPL.
73983
73984 2004-11-30  Simon Josefsson  <jas@extundo.com>
73985
73986         * m4/restrict.m4: Add copyright and copying conditions.
73987
73988 2004-11-30  Simon Josefsson  <jas@extundo.com>
73989
73990         * m4/base64.m4: New file.
73991
73992 2004-11-30  Simon Josefsson  <jas@extundo.com>
73993
73994         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
73995         base64.
73996
73997         * tests/test-base64.c: New file.
73998
73999         * modules/base64: New file.
74000
74001 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74004         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74005
74006         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74007
74008 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74011         (__getcwd.c): Don't restore errno; glibc doesn't.
74012         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74013         first, falling back to our code only if its results look suspicious.
74014         Ensure that the resulting buffer is only as large as necessary.
74015
74016         * lib/readutmp.c: Include readutmp.h first.
74017         Include <errno.h>, since readutmp.h no longer does that.
74018         * lib/readutmp.h: Don't include <errno.h>,
74019         <sys/param.h>, <time.h>; not needed to establish interface.
74020         (errno): Remove decl.
74021         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74022         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74023         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74024
74025 2004-11-28  Simon Josefsson  <jas@extundo.com>
74026
74027         * lib/base64.h, base64.c: New file.
74028
74029 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74032
74033 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74036         (Depends-on): Remove pathmax, same.  Add mempcpy.
74037         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74038         (Makefile.am): Append getcwd.h to lib_SOURCES.
74039         (Include): Add getcwd.h.
74040         (Maintainer): Change from Jim Meyering to "all, glibc",
74041         since getdate now uses intended-for-glibc code.
74042         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74043         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74044
74045 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74048         HP's ANSI C compiler.
74049         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74050         Declaring int functions causes warnings on some modern systems and
74051         shouldn't be needed to compile on ancient ones.
74052         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74053         defined.
74054
74055         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74056         with the following changes.
74057         (__set_errno): Parenthesize properly.
74058         Include <stdbool.h>.
74059         (MIN, MAX, MATCHING_INO): New macros.
74060         (__getcwd): Define with prototype, not K&R form.
74061         Use heuristics to allocate default buffer on stack if possible.
74062         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74063         behavior, and to avoid the PATH_MAX limit when computing
74064         ../../../../...
74065         Use MATCHING_INO to compare inode number to file.
74066         Check for arithmetic overflow in size calculations.
74067         Fix bug in reallocation of dot array that caused getcwd to fail
74068         on directories nested deeper than 75.
74069         Be more careful about saving errno on error.
74070         Do not use realloc; use only free+malloc, as this is a bit
74071         more flexible and avoids a needless copy operation.
74072         Do not inspect st_dev and st_ino for symbolic links; POSIX
74073         doesn't specify the latter.
74074         Check for closedir errors.
74075         Avoid needless casts.
74076         Use "#ifdef weak_alias" around weak_alias, to be like other
74077         glibc code.
74078         The following changes to getcwd.c have effect only when used in
74079         gnulib; they have no effect inside glibc proper.
74080         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74081         as alloca isn't used.
74082         (alloca, __alloca): Likewise.
74083         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74084         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74085         unconditionally, as gnulib assumes C89 or better.
74086         Do not include <sys/param.h>.
74087         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74088         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74089         better.
74090         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74091         Include <dirent.h> in a way that is compatible with modern Autoconf.
74092         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74093         New macros, if not already defined.
74094         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74095         Use "_LIBC", not "defined _LIBC", for consistency.
74096         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74097         a mempcpy module.
74098         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74099         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74100         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74101         credit only to Jim Meyering and adjust the copyright dates.
74102         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74103         <stdlib.h>, <unistd.h>, "pathmax.h".
74104         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74105         (INITIAL_BUFFER_SIZE): Remove.
74106         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74107
74108 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74111         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74112         Use the _ONCE methods, for efficiency.
74113         Check for fcntl.h.  In test program, include <errno.h>
74114         and <fcntl.h> if available.  Remove old K&R cruft from
74115         test program.  Check for common errors in GNU/Linux,
74116         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74117         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74119         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74120         name accordingly.
74121         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74122         accommodate new getcwd.c.
74123         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74124         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74125         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74126         that's all we need now.
74127
74128 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74129
74130         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74131         argp-parse.c depends on getopt internals, that means we should
74132         always use our getopt, to be on the safe side.
74133         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74134         order not to spoil the result of an eventual previous invocation
74135         of gl_GETOPT_SUBSTITUTE.
74136
74137 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74138
74139         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74140         redefinition warnings. To avoid them, include the defines
74141         in `#if !defined __need_getopt ... #endif'. The only place
74142         where __getopt_argv_const is used is in definitions
74143         of getopt_long and getopt_long_only below, which are as well
74144         protected by `#ifndef __need_getopt'.
74145         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74146         __need_getopt after including <stdio.h> and <unistd.h> These
74147         headers might have defined it.
74148
74149 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74150
74151         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74152
74153 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74156         (futimens): New function, which uses futimes if available.
74157         (futimens, utimens): Support timespec==NULL, with same semantics
74158         as utime and utimens.
74159         * lib/utimens.h (futimens): New decl.
74160
74161 2004-11-23  Jim Meyering  <jim@meyering.net>
74162
74163         * lib/getopt_.h: Remove trailing blanks.
74164
74165 2004-11-23  Jim Meyering  <jim@meyering.net>
74166
74167         * lib/__fpending.c: Add comment.
74168
74169 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * modules/canonicalize (Depends-on): Add xreadlink.
74172         Problem reported by James Youngman.
74173
74174 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74177         New macros.
74178         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74179         optopt): Use them instead of invoking ## directly; otherwise, the
74180         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74181
74182 2004-11-19  Bruno Haible  <bruno@clisp.org>
74183
74184         * lib/strtok_r.c: Move comments from here...
74185         * lib/strtok_r.h: ... to here.
74186
74187 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74190         implementations that mishandle size_t overflow.
74191
74192 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74193
74194         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74195         might fail.  Problem reported by Yoann Vandoorselaere.
74196         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74197         implementations that mishandle size_t overflow.
74198
74199 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74200
74201         * modules/canon-host (Depends-on): Add strdup.
74202
74203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74206
74207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * lib/canon-host.c: Include "strdup.h".
74210         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74211         Use strdup instead of malloc/strcpy to duplicate strings.
74212
74213         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74214         (human_space_before_unit): New constant.
74215         * lib/human.c (human_readable): Support it.
74216
74217         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74218         (xgetcwd): Set errno correctly when failing.
74219         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74220         the failure is actually due to a PATH_MAX problem.
74221
74222         Further getopt changes to make it more likely that glibc will
74223         buy the changes back.
74224         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74225         (getopt): Use it, so to preserve glibc semantic
74226         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74227         when compiling for libc.
74228         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74229         (getopt_long, getopt_long_only): Use it.
74230
74231         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74232         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74233         (getopt): Argv is now char * const *, as per standard.
74234         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74235         not char *__getopt_argv_const *.
74236         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74237         _getopt_long_only_r): Likewise.
74238         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74239         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74240         _getopt_long_r, _getopt_long_only_r): Likewise.
74241         * lib/getopt_.h (__getopt_argv_const): Remove.
74242         (getopt): Argv is now char * const *, as per standard.
74243
74244         * lib/getdate.y (tORDINAL): New token.
74245         (day, relunit): Allow it for relative times.
74246         (relative_time_table): Use tORDINAL for ordinals.
74247
74248 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74251         Document that "second" isn't allowed as an ordinal number.
74252
74253 2004-11-16  Jim Meyering  <jim@meyering.net>
74254
74255         * modules/closeout (Depends-on): Add fpending.
74256
74257 2004-11-15  Jim Meyering  <jim@meyering.net>
74258
74259         * lib/closeout.c: Include "__fpending.h" once again.
74260         Include <stdbool.h>.
74261         (close_stdout): Don't fail just because stdout was closed initially,
74262         since some programs don't write to stdout in the normal course of
74263         operation (other than --version and --help), and we don't want this
74264         function to make e.g. `touch file >&-' fail.
74265         But do fail if it was closed and someone has tried to write to it.
74266         E.g., `printf foo >&-' must fail.
74267
74268 2004-11-13  Jim Meyering  <jim@meyering.net>
74269
74270         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74271
74272 2004-11-12  Simon Josefsson  <jas@extundo.com>
74273
74274         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74275         small doc fix is still pending.
74276
74277 2004-11-11  Simon Josefsson  <jas@extundo.com>
74278
74279         * modules/strtok_r: New file.
74280
74281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74282         strtok_r.
74283
74284 2004-11-11  Simon Josefsson  <jas@extundo.com>
74285
74286         * m4/strtok_r.m4: New file.
74287
74288         * m4/getopt.m4: Replace opterr.
74289
74290 2004-11-11  Simon Josefsson  <jas@extundo.com>
74291
74292         * lib/strtok_r.h, strtok_r.c: New file.
74293
74294 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74295
74296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74297         of replacing opterr, getopt, etc.  This should handle the
74298         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74299
74300 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74303         we can stop lying to compilers about the constness of argv when we
74304         are compiled outside glibc.
74305         (getopt, getopt_long, getopt_long_only): Use it.
74306         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74307         _getopt_internal, getopt): Likewise.
74308         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74309         _getopt_long_only_r): Likewise.
74310         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74311         _getopt_long_r, _getopt_long_only_r): Likewise.
74312
74313         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74314         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74315         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74316         the other external symbols.
74317         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74318         declaration, since the above renaming now works around collisions.
74319
74320 2004-11-11  Jim Meyering  <jim@meyering.net>
74321
74322         * lib/linebreak.c: Remove trailing blanks.
74323         * lib/alloca_.h: Likewise.
74324         * lib/acosl.c: Likewise.
74325         * lib/euidaccess.c: Likewise.
74326         * lib/allocsa.h: Likewise.
74327
74328 2004-11-10  Simon Josefsson  <jas@extundo.com>
74329
74330         * m4/getaddrinfo.m4: New file.
74331
74332 2004-11-10  Simon Josefsson  <jas@extundo.com>
74333
74334         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74335
74336 2004-11-10  Simon Josefsson  <jas@extundo.com>
74337
74338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74339         getaddrinfo.
74340
74341         * modules/getaddrinfo: New file.
74342
74343 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74346
74347 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74348
74349         * lib/mktime.c (SHR): New macro, which is a portable
74350         substitute for >> that should work even on Crays.
74351         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74352         Problem reported by Mark D. Baushke in
74353         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74354         * lib/getdate.y (SHR): Likewise.
74355         (tm_diff): Use it.
74356         * lib/strftime.c (SHR): Likewise.
74357         (tm_diff): Use it.
74358         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74359         quote_these_too, so that right shifts are well defined.  All uses
74360         changed.
74361
74362 2004-11-10  Jim Meyering  <jim@meyering.net>
74363
74364         Ensure that no close failure goes unreported.
74365         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74366         return early when it seems there's nothing to flush.
74367         Don't include __fpending.h.
74368
74369 2004-11-10  Jim Meyering  <jim@meyering.net>
74370
74371         * modules/closeout (Depends-on): Remove fpending.
74372
74373 2004-11-10  Jim Meyering  <jim@meyering.net>
74374
74375         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74376
74377 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74380         gl_FUNC_STRFTIME.
74381         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74382         and AC_REQUIRE when possible, to avoid duplicate checks.
74383         Check for <wchar.h>.
74384
74385 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74386
74387         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74388
74389 2004-11-09  Bruno Haible  <bruno@clisp.org>
74390
74391         * m4/sockpfaf.m4: New file.
74392
74393 2004-11-05  Bruno Haible  <bruno@clisp.org>
74394
74395         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74396         Reported by Mark D. Baushke <mdb@cvshome.org>.
74397
74398 2004-11-04  Bruno Haible  <bruno@clisp.org>
74399
74400         2004-09-11  Bruno Haible  <bruno@clisp.org>
74401                 * allocsa.valgrind: New file.
74402         2004-02-06  Bruno Haible  <bruno@clisp.org>
74403                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74404                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74405                 Reported by Christopher Seip <chris.seip@hp.com>.
74406
74407 2004-11-04  Bruno Haible  <bruno@clisp.org>
74408
74409         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74410         (Makefile.am): Distribute it.
74411
74412 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74415         with errno == ERANGE if the buffer is too small.
74416         Problem reported by Mark D. Baushke.
74417
74418 2004-11-03  Albert Chin  <china@thewrittenword.com>
74419             Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74422         equivalent, substitute $ac_type for equivalent type rather than
74423         blindly using uint32_t *always* which won't work if uint32_t is not
74424         available.  Define _UINT32_T to work around typedef of uint32_t if
74425         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74426         2.5.1.
74427
74428 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * m4/jm-macros.m4: Sync from coreutils.
74431         (gl_MACROS): Check for mbrlen, for pathchk.
74432         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74433
74434 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74435
74436         * lib/xreadlink.c (MAXSIZE): New macro.
74437         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74438         size does not exceed MAXSIZE.  Avoid cast.
74439         As suggested by Mark D. Baushke in
74440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74441         if readlink fails with buffer size just under MAXSIZE, try again
74442         with MAXSIZE.
74443
74444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74447
74448 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74449         and  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74452         (get_date): Overparenthesize to avoid GCC warning.
74453
74454 2004-11-02  Bruno Haible  <bruno@clisp.org>
74455
74456         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74457         returns void.
74458
74459 2004-11-02  Bruno Haible  <bruno@clisp.org>
74460
74461         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74462         function returns void.
74463
74464 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74467         fflush_unlocked, flockfile, funlockfile, funlockfile,
74468         fputs_unlocked, putc_unlocked.
74469
74470 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74473         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
74474         already declared.
74475
74476 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74477
74478         * modules/getdate (Files): Add doc/getdate.texi.
74479         (Depends-on): Add setenv, xalloc.
74480
74481 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * lib/getdate.y: Add support for TZ="foo" within a date string.
74484         Fix some bugs near time_t boundaries.  Reject dates with
74485         out-of-range components, e.g., "Sept 31".
74486         Include <stdlib.h>, "setenv.h", "xalloc.h".
74487         (ISDIGIT_LOCALE): Remove; unused.
74488         Note that the TZ and time functions used here are not reentrant.
74489         (mktime_ok, get_tz): New functions.
74490         (TZBUFSIZE): New constant.
74491         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
74492         This requires that we sometimes generate our own TZ="XXX..." setting.
74493
74494 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * doc/getdate.texi: New file, from coreutils with modifications for
74497         the new TZ parsing.
74498
74499 2004-10-27  Derek R. Price  <derek@ximbiot.com>
74500
74501         * lib/mktime.c (not_equal_tm): Remove redundant check.
74502
74503 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * modules/regex (lib_SOURCES): Add regex.c.
74506         Reported by James Youngman in
74507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
74508
74509 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * lib/getdate.y: Use Bison 1.875 features, and some minor
74512         code cleanups.  This change does not affect semantics.
74513         Don't include <stdlib.h>; no longer needed.
74514         Don't include unlocked-io.h; only the "#if TEST" code uses
74515         stdio, and performance isn't crucial there.
74516         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
74517         Bison 1.875 features as described below.
74518         All uses of "PC." replaced by "pc->".
74519         (YYSTYPE): Add a forward declaration.
74520         (yylex, yyerror): Use full prototypes in forward decls.
74521         Use "%pure-parser" rather than obsolescent "%pure_parser".
74522         Use %parse-param and %lex-param instead of obsolescent
74523         YYPARSE_PARAM and YYLEX_PARAM.
74524         (meridian_table, month_and_day_table, time_units_table,
74525         relative_time_table, time_zone_table, military_table,
74526         lookup_zone, lookup_word, get_date):
74527         Use NULL instead of 0 where appropriate.
74528         (to_hour): Avoid abort (), to avoid a dependency on
74529         stdlib.h.
74530         (yyerror, yylex): Now accepts parser_control * arg.
74531         (main) [TEST]: Use '\0' rather than 0 for char.
74532
74533 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
74536
74537 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
74540         It's now the caller's responsibility to handle the case where
74541         !HAVE_GETPAGESIZE && !defined getpagesize.
74542
74543         * lib/mktime.c (leapyear): Arg is long int, not int.
74544
74545 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
74548
74549 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
74552         missing.  Problem reported by James Youngman.
74553
74554 2004-10-16  Simon Josefsson  <jas@extundo.com>
74555
74556         * gnulib-tool: Fix comments.  Fix parse problem.
74557         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
74558
74559 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
74562         implementation of getopt_long.  Problem reported by Alexander Taler in:
74563         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
74564
74565 2004-10-15  Bruno Haible  <bruno@clisp.org>
74566
74567         * gnulib-tool: Untabify. Initialize supplied_libname.
74568         (func_usage): More homogenous output.
74569         (func_modules_transitive_closure, func_modules_to_filelist,
74570         func_emit_lib_Makefile_am): New functions.
74571         (func_import): New function, extracted from big case statement. Use
74572         func_get_license, func_modules_transitive_closure,
74573         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
74574         opt_lgpl. Don't use test -a, as it's not portable.
74575         (func_create_testdir): Use func_modules_transitive_closure,
74576         func_modules_to_filelist, func_emit_lib_Makefile_am.
74577
74578 2004-10-15  Bruno Haible  <bruno@clisp.org>
74579
74580         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
74581
74582 2004-10-15  Bruno Haible  <bruno@clisp.org>
74583
74584         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
74585         the portions belonging to each module.
74586         Suggested by Derek Robert Price <derek@ximbiot.com>.
74587
74588 2004-10-12  Simon Josefsson  <jas@extundo.com>
74589
74590         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
74591         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
74592         to real functions.
74593
74594 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74595
74596         * modules/vsnprintf: New file.
74597
74598 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74599
74600         * m4/vsnprintf.m4: New file.
74601
74602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74603
74604         * lib/vsnprintf.h: New file.
74605         * lib/vsnprintf.c: New file.
74606
74607 2004-10-11  Bruno Haible  <bruno@clisp.org>
74608
74609         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
74610         vsnprintf.
74611
74612 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
74615
74616 2004-10-07  Bruno Haible  <bruno@clisp.org>
74617
74618         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
74619         fits into the provided buffer.
74620
74621 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74622
74623         * lib/diacrit.c, diacrit.h: Add GPL notice.
74624
74625         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
74626         notice.
74627         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
74628         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
74629         This avoids a potential constant-folding bug.
74630
74631 2004-10-05  Bruno Haible  <bruno@clisp.org>
74632
74633         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
74634         for the declaration of strsep.
74635
74636 2004-10-05  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
74639
74640 2004-10-04  Simon Josefsson  <jas@extundo.com>
74641
74642         * modules/memmem: New file.
74643         * tests/test-memmem.c: New file.
74644         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
74645
74646 2004-10-04  Simon Josefsson  <jas@extundo.com>
74647
74648         * m4/memmem.m4: New file.
74649
74650 2004-10-04  Simon Josefsson  <jas@extundo.com>
74651
74652         * lib/memmem.h: New file.
74653         * lib/memmem.c: New file, taken from glibc.
74654
74655 2004-10-04  Simon Josefsson  <jas@extundo.com>
74656
74657         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
74658         '#ifdef USE_UNLOCKED_IO'.
74659
74660 2004-10-04  Simon Josefsson  <jas@extundo.com>
74661
74662         * config/srclist.txt: Add memmem from glibc.
74663
74664 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
74667
74668         * modules/argmatch, modules/argp, modules/closeout, modules/error,
74669         modules/exclude, modules/getdate, modules/getline,
74670         modules/getndelim2, modules/getpass, modules/getpass-gnu,
74671         modules/getusershell, modules/linebuffer, modules/md5,
74672         modules/mountlist, modules/posixtm, modules/readtokens,
74673         modules/readutmp, modules/regex, modules/sha1,
74674         modules/version-etc, modules/yesno:
74675         Remove dependency on unlocked-io.
74676
74677 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
74680
74681         * m4/unlocked-io.m4: Add copyright notice.
74682         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
74683
74684 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
74687         * lib/xmalloc.c (xmemdup): Likewise.
74688         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
74689         XFREE): Remove these long-obsolescent macros.
74690         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
74691         * lib/xstrdup.c: Remove.
74692
74693         * lib/regex.c (re_comp): Cast gettext return value to char *,
74694         Problem reported by Martin Neitzel via Mark D. Baushke.
74695
74696 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
74699         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
74700         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
74701         regex.c, sha1.c, version-etc.c, yesno.c:
74702         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
74703         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
74704         the includer's responsibility.
74705
74706         Sync from coreutils.
74707
74708         * lib/modechange.c (mode_compile): Don't decrement a pointer that
74709         points to the start of a string, as the C Standard says the
74710         resulting behavior is undefined.
74711
74712         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
74713         simple -> simple_backups, numbered_existing ->
74714         numbered_existing_backups, numbered -> numbered_backups
74715         to avoid shadowing problems.  All uses changed.
74716         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
74717         * lib/backupfile.c (check_extension, numbered_backup):
74718         Rename locals to avoid shadowing 'basename'.
74719         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
74720         once.
74721
74722         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
74723         * lib/.cvsignore: Add getopt.h.
74724
74725 2004-10-04  Bruno Haible  <bruno@clisp.org>
74726
74727         * modules/README: New file.
74728         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
74729         not a module.
74730
74731 2004-10-02  Jim Meyering  <jim@meyering.net>
74732
74733         * lib/dirfd.h, getpagesize.h: Add copyright notice.
74734
74735 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74736
74737         * modules/strsep: New file.
74738
74739 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74740
74741         * m4/strsep.m4: New file.
74742
74743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74744
74745         * lib/strsep.h: New file.
74746         * lib/strsep.c: New file.
74747
74748 2004-10-01  Simon Josefsson  <jas@extundo.com>
74749
74750         * lib/snprintf.c (snprintf): Handle size==0.
74751
74752 2004-10-01  Simon Josefsson  <jas@extundo.com>
74753             Bruno Haible  <bruno@clisp.org>
74754
74755         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
74756         (snprintf): Declare 'args'.
74757
74758 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * lib/snprintf.c: Remove comments as to why each header is needed.
74761
74762 2004-10-01  Bruno Haible  <bruno@clisp.org>
74763
74764         * MODULES.html.sh: Add strsep.
74765
74766 2004-09-30  Simon Josefsson  <jas@extundo.com>
74767
74768         * modules/snprintf: New file.
74769
74770 2004-09-30  Simon Josefsson  <jas@extundo.com>
74771
74772         * m4/snprintf.m4: New file.
74773
74774 2004-09-30  Simon Josefsson  <jas@extundo.com>
74775
74776         * lib/snprintf.h, lib/snprintf.c: New files.
74777
74778 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74779
74780         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
74781         (hol_entry_help): Never translate an empty string.
74782         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
74783         * lib/argp.h (OPTION_NO_TRANS): New option.
74784
74785 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74786
74787         * modules/argp (Maintainer): Replace Simon Josefsson
74788         by Sergey Poznyakoff.
74789
74790 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
74793         changes merged back into glibc.
74794
74795 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
74798
74799 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74800
74801         * lib/xvasprintf.c: Include xalloc.h.
74802         (xvasprintf): Use xalloc_die, not xmalloc_die.
74803
74804 2004-09-29  Bruno Haible  <bruno@clisp.org>
74805
74806         * modules/alloca-opt: New file, derived from modules/alloca.
74807         * modules/allocsa: Depend on alloca-opt instead of alloca.
74808         * modules/setenv: Likewise.
74809         * modules/vasnprintf: Likewise.
74810         * MODULES.html.sh: Add alloca-opt.
74811
74812 2004-09-28  Simon Josefsson  <jas@extundo.com>
74813
74814         * gnulib-tool: New parameter --lgpl, to asseert that modules are
74815         LGPL, and to replace license template from GPL to LGPL.
74816
74817 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * modules/dummy: Change license to LGPL.
74820
74821 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
74824
74825 2004-09-24  Simon Josefsson  <jas@extundo.com>
74826
74827         * modules/minmax (License): Change from GPL to LGPL.
74828
74829 2004-09-23  Simon Josefsson  <jas@extundo.com>
74830
74831         * gnulib-tool (--import): Typo.
74832
74833 2004-09-23  Simon Josefsson  <jas@extundo.com>
74834
74835         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
74836
74837 2004-09-22  Bruno Haible  <bruno@clisp.org>
74838
74839         * modules/*: Add 'License' field.
74840         * gnulib-tool: Accept --extract-license option.
74841         (func_get_license): New function.
74842
74843 2004-09-21  Bruno Haible  <bruno@clisp.org>
74844
74845         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
74846         Reported by Simon Josefsson.
74847
74848 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
74851         gl_AC_TYPE_LONG_LONG.
74852
74853 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
74856
74857 2004-09-18  Simon Josefsson  <jas@extundo.com>
74858         and  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
74861         calls with autoreconf.  Define GL_LIB.
74862
74863 2004-09-14  Karl Berry  <karl@gnu.org>
74864
74865         * config/srclist.txt: unsync setenv.c, sigh.
74866
74867 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
74870         Problem reported by Bruno Haible in:
74871         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
74872
74873 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * config/srclist.txt: Comment out argp-pvh.c.
74876
74877 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
74880         in case some system header has #define'd it.  Problem reported by
74881         Soeren D. Schulze in
74882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
74883
74884 2004-09-09  Karl Berry  <karl@gnu.org>
74885
74886         * regex.[ch]: delete from the root.  These were supposed to be
74887                 synced with emacs cvs, but this has not happened for about
74888                 a year, and anyway nothing else uses emacs regex.[ch].
74889                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
74890                 lib/regex[.ch] is untouched.
74891
74892 2004-09-09  Bruno Haible  <bruno@clisp.org>
74893
74894         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
74895
74896 2004-09-09  Bruno Haible  <bruno@clisp.org>
74897
74898         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
74899         modifications.
74900         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
74901
74902 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74903
74904         * modules/xvasprintf: New file.
74905         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
74906
74907 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
74908
74909         * lib/xvasprintf.h: New file.
74910         * lib/xvasprintf.c: New file.
74911         * lib/xasprintf.c: New file.
74912
74913 2004-09-08  Bruno Haible  <bruno@clisp.org>
74914
74915         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
74916
74917 2004-09-08  Bruno Haible  <bruno@clisp.org>
74918
74919         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
74920         length is > INT_MAX.
74921         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
74922         more.
74923
74924 2004-09-08  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/stdint_.h: New file, taken from GNU clisp.
74927
74928 2004-09-08  Bruno Haible  <bruno@clisp.org>
74929             Oskar Liljeblad  <oskar@osk.mine.nu>
74930
74931         * modules/stdint: New file.
74932         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
74933
74934 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         Import from coreutils.
74937         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
74938         strings on unbounded length.  alloca's performance benefits aren't
74939         that important here.
74940         (V_STRDUP): Remove.
74941         (parse_with_separator): New function, with most of the internals
74942         of the old parse_user_spec.  Allow user to omit both user and group,
74943         for compatibility with FreeBSD.
74944         Clone only the user name, not the entire spec.
74945         Do not set *uid, *gid unless entirely successful.
74946         Avoid memory leak in some failing cases.
74947         Fix regression for USER.GROUP reported by Dmitry V. Levin in
74948         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
74949         (parse_user_spec): Rewrite to use parse_with_separator.
74950
74951 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         * modules/userspec: Don't depend on alloca.
74954
74955 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
74958
74959 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
74962         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
74963         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
74964
74965 2004-08-16  Simon Josefsson  <jas@extundo.com>
74966
74967         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
74968         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
74969         Add --dry-run for --import.
74970         Let user provided command line parameters override configure.ac
74971         settings.
74972
74973 2004-08-12  Simon Josefsson  <jas@extundo.com>
74974
74975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
74976         as discussed with Paul Eggert in threads rooted at
74977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
74978         and
74979         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
74980         Before, the test was empty, and relied on ELIDE_CODE in source
74981         code.)
74982         (gl_PREREQ_GETOPT): New macro.
74983         (gl_GETOPT): Use them.
74984
74985 2004-08-12  Simon Josefsson  <jas@extundo.com>
74986
74987         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
74988         * lib/getopt_.h: Renamed from getopt.h.
74989
74990 2004-08-12  Simon Josefsson  <jas@extundo.com>
74991
74992         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
74993         Change default library name from libfoo to libgnu.
74994         Now, if you have a configure.ac that says:
74995                 gl_SOURCE_BASE(gl)
74996                 gl_M4_BASE(gl/m4)
74997                 gl_MODULES(error getopt etcetera)
74998                 gl_INIT
74999         you can import all you need by running:
75000                 ../gnulib/gnulib-tool --import
75001
75002         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75003         (Makefile.am): Rewrite, use logic from argz.
75004         (Include): Use <getopt.h> instead of "getopt.h".
75005
75006 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * modules/argp (Files): Add m4/unlocked-io.m4.
75009         (Depends-on): Add extensions.
75010
75011 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75014         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75015         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75016         Check for program_invocation_name, program_invocation_short_name,
75017         flockfile, funlockfile, features.h, _getopt_long_only_r.
75018
75019 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75022         its complicated substitute.
75023         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75024         and program_invocation_name.
75025         (__argp_basename) [!_LIBC]: Remove; the only use was
75026         replaced by its body.
75027         (__argp_short_program_name): Change condition from
75028         !defined __argp_short_program_name to
75029         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75030         to match argp-namefrob.h.
75031         (__argp_failure): Don't assume strerror_r returns char *.
75032         * lib/argp-parse.c (N_): Define unconditionally.
75033         (argp_default_options): Fill out initializers with 0 to avoid
75034         gcc warnings.
75035
75036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75039         getopt1.c.
75040
75041 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         Merge from coreutils.
75044
75045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75046
75047         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75048         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75049
75050 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         Merge from coreutils.
75053
75054         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75055         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75056         for Reliant Unix 5.43.
75057
75058         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75059         (union fooround): Use uintmax_t, not long int.
75060         The rest is a merge from libc:
75061         [defined _LIBC]: Include <shlib-compat.h>.
75062         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75063
75064         * lib/settime.c (settime): Recode to avoid warning with
75065         Sun Forte C 6U2.
75066
75067         * lib/strverscmp.c: Convert to UTF-8.
75068
75069 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75072         m4/uintmax_t.m4.
75073
75074 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         * modules/xalloc-die: New file.
75077         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75078
75079         * modules/md5 (Files): Add m4/uint32_t.m4.
75080         * modules/sha1: Renamed from modules/sha.
75081         (Files):
75082         Rename lib/sha.h to lib/sha1.h.
75083         Rename lib/sha.c to lib/sha1.c.
75084         Rename m4/sha.m4 to m4/sha1.m4.
75085         (lib_SOURCES): Likewise.
75086         (configure.ac): Rename gl_SHA to gl_SHA1.
75087         (Include): sha.h -> sha1.h.
75088
75089 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75092         * m4/sha1.m4: Renamed from sha.m4.
75093         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75094
75095 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75096
75097         * lib/obstack.h (obstack_empty_p):
75098         Don't assume that chunk->contents is suitably aligned.
75099         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75100         Likewise. Problem reported by Benno in
75101         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75102
75103         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75104         readable.  This could be improved further but it'd take some work.
75105
75106 2004-08-08  Simon Josefsson  <jas@extundo.com>
75107
75108         * modules/xgethostname (Depends-on): Remove exit and error (not
75109         used).
75110
75111         * modules/getpass-gnu: Add getpass.h.
75112         (Depends-on): Add stdbool.
75113         * modules/getpass: Add getpass.h.
75114
75115 2004-08-08  Simon Josefsson  <jas@extundo.com>
75116
75117         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75118         Check getpass declaration.
75119
75120 2004-08-08  Simon Josefsson  <jas@extundo.com>
75121
75122         * lib/xgethostname.c: Don't include error.h (not used).
75123
75124         * lib/getpass.h: Add.
75125         * lib/getpass.c: Include getpass.h first.
75126
75127 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * lib/xalloc-die.c: New file.
75130         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75131         All uses removed.
75132         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75133         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75134         xalloc-die.c.
75135         (_, N_, xalloc_die): Move to xalloc-die.c.
75136         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75137         so that we needn't mess with xalloc_msg_memory_exhausted.
75138
75139         * lib/sha1.h: Renamed from sha.h.
75140         (SHA1_H): Renamed from _SHA_H.
75141         (sha1_ctx): Renamed from sha_ctx.
75142         (sha1_init_ctx): Renamed from sha_init_ctx.
75143         (sha1_process_block): Renamed from sha_process_block.
75144         (sha1_process_bytes): Renamed from sha_process_bytes.
75145         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75146         (sha1_read_ctx): Renamed from sha_read_ctx.
75147         (sha1_stream): Renamed from sha_stream.
75148         (sha1_buffer): Renamed from sha_buffer.
75149         * lib/sha1.c: Likewise; renamed from sha.c.
75150         Do not include <sys/types.h>.
75151         Include <stddef.h> rather than <stdlib.h>.
75152
75153 2004-08-08  Bruno Haible  <bruno@clisp.org>
75154
75155         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75156         FILESYSTEM_PREFIX_LEN.
75157         * lib/progreloc.c: Likewise.
75158         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75159
75160 2004-08-06  Simon Josefsson  <jas@extundo.com>
75161
75162         * modules/progname (Depends-on): Don't depend on stdbool.
75163
75164 2004-08-06  Simon Josefsson  <jas@extundo.com>
75165
75166         * modules/getsubopt: New file.
75167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75168         getsubopt.
75169
75170 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         More merge from coreutils.
75173
75174         * m4/utimens.m4, m4/utimecmp.m4: New files.
75175         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75176         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75177         prereq.m4, sha.m4: Import changes from coreutils.
75178
75179 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75180
75181         More merge from coreutils.
75182         * modules/raise, modules/readtokens0, modules/utimens:
75183         * modules/utimecmp, module/xnanosleep: New files.
75184         * modules/strftime: Add lib/strftime.h.
75185         Change include from <time.h> to "strftime.h".
75186         * modules/yesno: Add lib/yesno.h.
75187         * modules/backupfile: Remove lib/addext.c.
75188         * modules/euidaccess: Add stat-macros.h.
75189         * modules/canonicalize, modules/euidaccess,
75190         modules/filemode, modules/lchown, modules/makepath,
75191         modules/rmdir, modules/stat: Likewise.
75192
75193 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         Merge from tar.
75196         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75197         SIZE_MAX is a valid preprocessor constant.
75198         (__argp_basename): Change from "#ifndef _LIBC"
75199         to "#ifndef __argp_short_program_name", so that
75200         we don't compile these functions for tar.
75201
75202         More merges from coreutils.
75203         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75204         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75205         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75206         * lib/addext.c: Remove; no longer needed.
75207         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75208         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75209         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75210         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75211         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75212         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75213         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75214         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75215         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75216         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75217         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75218         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75219         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75220         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75221         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75222         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75223         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75224         Import changes from coreutils.
75225
75226 2004-08-05  Simon Josefsson  <jas@extundo.com>
75227
75228         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75229
75230 2004-08-05  Simon Josefsson  <jas@extundo.com>
75231
75232         * m4/getsubopt.m4: New file.
75233
75234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         Merge from coreutils.
75237
75238         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75239         * m4/getcwd-path-max.m4: New files.
75240
75241         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75242         FILESYSTEM_PREFIX_LEN ->
75243         FILE_SYSTEM_PREFIX_LEN.
75244         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75245         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75246         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75247         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75248
75249         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75250         prerequisite modules now handle the DOS stuff.
75251         Don't check for unistd.h.
75252
75253 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         Merge from coreutils.
75256
75257         * lib/.gdb-history: Remove; this doesn't belong here.
75258
75259         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75260         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75261         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75262         * lib/getcwd.c: New files.
75263
75264         * lib/dirname.h: Include <stdbool.h>.
75265         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75266         for consistency with POSIX terminology.  All uses changed.
75267         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75268         (strip_trailing_slashes): Use bool for booleans.
75269         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75270
75271         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75272         sometimes returns a positive errno value even when it succeeds.
75273         (print_errno_message) [!LIBC]: Fall back on strerror if
75274         __strerror_r fails.
75275
75276         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75277         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75278         (longest_relative_suffix): New function.
75279         (path_concat): Use it.  Assume first argument is not NULL.
75280         Port to DOS.  Omit redundant separators.
75281         Report an error instead of returning NULL.
75282         Use mempcpy instead of memcpy.
75283         (xpath_concat): Remove: not declared or used.
75284
75285         * lib/same.h: Include <stdbool.h>
75286         (same_name): Return bool, not int.
75287         * lib/same.c (same_name): Likewise.
75288         (errno): Don't declare; we assume C89 or better now.
75289
75290         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75291         if not already defined.
75292
75293         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75294         * lib/dup-safer.c (errno): Likewise.
75295
75296 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         Merge from coreutils.
75299         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75300         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75301         * modules/path-concat: Don't depend on strdup.
75302
75303 2004-08-03  Simon Josefsson  <jas@extundo.com>
75304
75305         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75306         * lib/progname.h: Don't include stdbool.h.
75307
75308 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75311         * MODULES.html.sh (func_all_modules): Remove fatal.
75312
75313 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75316
75317 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75320         working.
75321
75322 2004-08-02  Simon Josefsson  <jas@extundo.com>
75323
75324         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75325         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75326         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75327
75328 2004-08-01  Simon Josefsson  <jas@extundo.com>
75329
75330         * lib/xgetdomainname.c: Include stdlib.h, for free().
75331
75332 2004-07-19  Bruno Haible  <bruno@clisp.org>
75333
75334         * MODULES.html.sh (func_all_modules): Add dummy.
75335
75336 2004-07-16  Simon Josefsson  <jas@extundo.com>
75337
75338         * modules/dummy: New file.
75339
75340 2004-07-16  Simon Josefsson  <jas@extundo.com>
75341
75342         * lib/dummy.c: New file.
75343
75344 2004-07-16  Bruno Haible  <bruno@clisp.org>
75345
75346         * lib/backupfile.h: Add extern "C" for C++.
75347         * lib/closeout.h: Likewise.
75348         * lib/copy-file.h: Likewise.
75349         * lib/findprog.h: Likewise.
75350         * lib/full-write.h: Likewise.
75351         * lib/pathname.h: Likewise.
75352         * lib/progname.h: Likewise.
75353         * lib/stpcpy.h: Likewise.
75354         * lib/stpncpy.h: Likewise.
75355         * lib/strcase.h: Likewise.
75356         * lib/strstr.h: Likewise.
75357         * lib/xalloc.h: Likewise.
75358
75359         * lib/mbswidth.h: Add extern "C" for C++.
75360         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75361
75362 2004-07-13  Robert Millan  <robertmh@gnu.org>
75363
75364         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75365
75366 2004-07-09  Simon Josefsson  <jas@extundo.com>
75367
75368         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75369         failed without this.)
75370
75371 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * modules/chown (Files): Add lib/fchown-stub.c, since
75374         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75375
75376 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * lib/fchown-stub.c: New file.
75379
75380 2004-06-24  Jim Meyering  <jim@meyering.net>
75381
75382         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75383
75384 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * modules/argz: Omit "#include".
75387
75388         * MODULES.html.sh (func_all_modules): Add calloc, to match
75389         2004-06-01 addition of calloc module.
75390
75391 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75392
75393         * m4/argz.m4: New file, which is autoupdated from libtool.
75394
75395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75396
75397         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75398         libtool.
75399
75400 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75401
75402         * config/srclist-update: Don't insist on "USA." before the
75403         close-comment, as libtool omits the period and puts the */ on a
75404         separate line.
75405         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75406         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75407
75408 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75409
75410         * modules/argz: New file.
75411         * MODULES.html.sh (func_all_modules): Add argz.
75412
75413 2004-06-12  Jim Meyering  <jim@meyering.net>
75414         and  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * modules/hash (Files): Add lib/xalloc.h.
75417         * modules/pipe (Depends-on): Add wait-process.
75418         * modules/stat (Depends-on): Add xalloc.
75419         * modules/userspec (Files): Add lib/userspec.h.
75420         * modules/xstrto
75421
75422         Upgrade from gettext-0.13.
75423         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75424         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75425         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75426
75427 2004-06-10  Jim Meyering  <jim@meyering.net>
75428
75429         * lib/calloc.c: New file.
75430
75431 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * lib/getdate.y (yylex): Allow space between sign and number.
75434         Problem reported by Dan Jacobson.
75435
75436 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         Merge from coreutils CVS.
75439
75440         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75441         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75442         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75443         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75444         xstrtol.m4: Fix copyright date and/or serial number.
75445
75446         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75447         See if we need an fchown replacement.
75448         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75449         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75450         and use the replacement function if we detect either defect.
75451
75452         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75453         gl_UTIMECMP.
75454
75455 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75456         and  Jim Meyering  <jim@meyering.net>
75457
75458         Merge from coreutils CVS.
75459
75460         * lib/stat-macros.h: New file, with contents from file-type.h
75461         and coreutils' system.h.
75462         * lib/file-type.c: Include "stat-macros.h".
75463         * lib/file-type.h (file_type): Move all macro definitions to new file,
75464         stat-macros.h.
75465
75466         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75467         Wrap old code with this conditional.
75468         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
75469         function that does not dereference symlinks.
75470         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
75471
75472         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
75473         dependency problems.
75474         (xreadlink): Accept new arg SIZE, for efficiency.
75475         All decls and uses changed.
75476         * lib/xreadlink.h: Include <stddef.h>, for size_t.
75477
75478         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
75479         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
75480
75481         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
75482         sysexits.h.
75483
75484 2004-06-01  Jim Meyering  <jim@meyering.net>
75485
75486         * m4/calloc.m4: New file.
75487
75488 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
75491         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
75492         Also, fix a typo in a diagnostic.
75493
75494 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
75497         or AC_FUNC_REALLOC.
75498
75499 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
75500
75501         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
75502         macros to be defined.
75503         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
75504         the allocator returns NULL because the requested size is zero.
75505
75506 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75507
75508         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
75509         var.  Add comment explaining why libc still defines it.  This
75510         merges the following patch from glibc:
75511         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
75512
75513 2004-05-20  Andreas Schwab  <schwab@suse.de>
75514
75515         * m4/free.m4: Replace free if it not known to work, not the other
75516         way round.
75517
75518 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
75521         present in glibc since revision 1.1 of this file.
75522         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
75523         obstack_alignment_mask, obstack_alloc, obstack_base,
75524         obstack_blank, obstack_blank_fast, obstack_chunk_size,
75525         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
75526         obstack_grow0, obstack_init, obstack_int_grow,
75527         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
75528         obstack_next_free, obstack_object_size, obstack_ptr_grow,
75529         obstack_ptr_grow_fast, obstack_room): Remove declarations of
75530         nonexistent functions.
75531
75532 2004-05-18  Karl Berry  <karl@gnu.org>
75533
75534         * config/srclist.txt: break link for vasnprintf.c.
75535
75536 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         Port obstack to the AS/400, where pointers are 16 bytes wide and
75539         you cannot cast an integer to a valid pointer.  This patch is
75540         currently waiting to be integrated into glibc; see
75541         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
75542
75543         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
75544         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
75545         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
75546         (struct obstack): temp member is now a union of a pointer and
75547         an integer, instead of an integer.  All integer uses changed.
75548         This does not affect the physical layout of struct obstack,
75549         except on hosts (like the AS/400) where the size or alignment of
75550         void * is greater than that of ptrdiff_t.
75551         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
75552         __STDC__)]: Store temporary in pointer member of union, not
75553         integer member.
75554         * lib/obstack.c: Include <stddef.h>, for offsetof.
75555         (struct fooalign): Remove; it doesn't need a name.
75556         (union fooround): Change double to long double, and add void *.
75557         (DEFAULT_ALIGNMENT): Use offsetof to compute.
75558         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
75559         not a macro.  Hence the values are always int; so remove all
75560         casts-to-int in uses.
75561
75562 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
75565         we can get this patch merged into glibc.
75566
75567 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75568             Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * m4/argp: Depend on alloca.
75571
75572 2004-05-17  Derek R. Price  <derek@ximbiot.com>
75573             Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
75576         freecoding.
75577
75578 2004-05-17  Bruno Haible  <bruno@clisp.org>
75579
75580         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
75581         precision that consists of a '.' followed by an empty digit string.
75582         Patch by Tor Lillqvist <tml@iki.fi>.
75583
75584 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
75587         for backward compatibility with older code.  We need our own
75588         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
75589         it under some other name, and our alloca.h will define it.
75590
75591 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
75592             Derek Price  <derek@ximbiot.com>
75593
75594         * lib/alloca.c: Include <alloca.h>, to get our interface.
75595         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
75596         include <alloca.h> first.  Use C89 prototype for alloca; this
75597         requires including <stddef.h> for size_t.  Use extern "C" if C++.
75598         Use #elif for simplicity, since we can assume C89 now.
75599         Don't try to source the system alloca.h since it will not be found
75600         and to prevent recursively including its replacement.
75601         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
75602         * lib/regex.c: Likewise.
75603
75604 2004-05-16  Derek Price  <derek@ximbiot.com>
75605             Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         getline cleanup.  This changes the getndelim2 API: both order of
75608         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
75609         no delimiter).
75610
75611         * lib/getline.c: Don't include stddef.h or stdio.h, since our
75612         interface does that.
75613         (getline): Always use getdelim, so that we don't have two
75614         copies of this code.
75615         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
75616         if available.
75617         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
75618         (GETNDELIM2_MAXIMUM): New macro.
75619         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
75620         instead of the old practice of delim2==0.  All callers changed.
75621         Return -1 on overflow, instead of returning junk.
75622         Do not set *linesize unless allocation succeeds.
75623         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
75624         that we include sys/types.h.
75625         * lib/getnline.h: Likewise.
75626         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
75627         (getndelim2): Reorder arguments.
75628         * lib/getnline.c (getnline, getndelim):
75629         Don't discard the NMAX argument.
75630         (getnline): Invoke getndelim, to avoid code duplication.
75631         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
75632         of (size_t) -1 by callers of the getnline family.
75633
75634 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
75637         Check for gettimeofday.
75638         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
75639         Check for settimeofday, stime.
75640
75641 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/nanosleep.c (suspended): Change its type from int to
75644         sig_atomic_t volatile.
75645         (first_call): Make it private to rpl_nanosleep, and have it
75646         be zero initially as that's a bit faster.
75647         (my_usleep): Round up fractional times instead of truncating them,
75648         as this is the usual meaning for 'sleep'.
75649
75650         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
75651         doesn't work.
75652         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
75653         (ENOSYS): Define if not defined.
75654         (settime): Fall back on stime if it exists and settimeofday fails.
75655         But don't bother with fallbacks if a method fails with errno == EPERM.
75656
75657 2004-05-11  Jim Meyering  <jim@meyering.net>
75658
75659         Prior to this change, the save_cwd caller required read access to the
75660         current directory on most systems (ones with the fchdir function).
75661
75662         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
75663         fails, try write-only, and finally, resort to using xgetcwd.
75664
75665 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * lib/obstack.c, obstack.h: Import changes from libc.
75668
75669 2004-04-28  Bruno Haible  <bruno@clisp.org>
75670
75671         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
75672         also implicitly appends .exe to executables.
75673         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
75674         accepts Windows pathnames.
75675         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75676         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75677         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
75678         Treat Cygwin like Windows, since it now accepts Windows pathnames.
75679         Reported by Derek Robert Price <derek@ximbiot.com>.
75680
75681 2004-04-21  Karl Berry  <karl@gnu.org>
75682
75683         * config/srclist.txt (localcharset.c): break sync.
75684
75685 2004-04-20  Paul Eggert  <eggert@twinsun.com>
75686
75687         * m4/host-os.m4: Add a copyright notice.
75688
75689 2004-04-20  Jim Meyering  <jim@meyering.net>
75690
75691         Change UTILS_ to gl_ in AC_DEFINE'd names.
75692         Change utils_- and jm_-prefixed variables, too.
75693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
75694         UTILS_FUNC_MKDIR_TRAILING_SLASH.
75695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
75696
75697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
75698         Don't emit trailing blanks.
75699         Also rename jm_-prefixed variables to have gl_ prefix.
75700
75701         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
75702         Also rename jm_-prefixed variables to have gl_ prefix.
75703
75704         * m4/jm-macros.m4: Reflect the renamings.
75705         * m4/prereq.m4: Likewise.
75706
75707 2004-04-20  Jim Meyering  <jim@meyering.net>
75708
75709         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
75710         memory.
75711
75712 2004-04-20  Jim Meyering  <jim@meyering.net>
75713             Bruno Haible  <bruno@clisp.org>
75714
75715         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
75716         memory when realloc fails.
75717
75718 2004-04-19  Jim Meyering  <jim@meyering.net>
75719
75720         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
75721         now that readutmp.c may call `free (0)'.
75722
75723 2004-04-19  Bruno Haible  <bruno@clisp.org>
75724
75725         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
75726         * m4/inttypes_h.m4: Likewise.
75727         * m4/stdint_h.m4: Likewise.
75728         * m4/intmax_t.m4: Likewise.
75729         * m4/uintmax_t.m4: Likewise.
75730
75731 2004-04-18  Jim Meyering  <jim@meyering.net>
75732
75733         * m4/prereq.m4: Don't forbid jm_ prefix.
75734
75735         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
75736         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
75737         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
75738         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
75739         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
75740         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
75741         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
75742         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
75743         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
75744         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
75745         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
75746         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
75747         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
75748         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
75749         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
75750         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
75751         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
75752         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
75753         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
75754
75755 2004-04-18  Jim Meyering  <jim@meyering.net>
75756
75757         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
75758         failure, don't leak memory and do call END_UTMP_ENT.
75759
75760 2004-04-16  Jim Meyering  <jim@meyering.net>
75761
75762         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
75763         coreutils' stat program.
75764         (gl_PREREQ): Don't require jm_PREREQ_STAT.
75765
75766 2004-04-11  Paul Eggert  <eggert@twinsun.com>
75767
75768         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
75769         C89.
75770         (CHAR_BIT): Remove, since we assume C89.
75771         Include <stdint.h> if available, as per current Autoconf CVS advice.
75772
75773 2004-03-31  Jim Meyering  <jim@meyering.net>
75774
75775         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
75776         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
75777         * m4/xalloc.m4: Likewise.
75778
75779 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75780
75781         Merge from coreutils.
75782
75783         * m4/inttostr.m4: New file.
75784         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
75785         Require AM_STDBOOL_H and gl_TIMESPEC instead.
75786         Require gl_CLOCK_TIME.
75787         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
75788
75789 2004-03-30  Paul Eggert  <eggert@twinsun.com>
75790
75791         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
75792         not bool, to be more consistent with Unix conventions.
75793         Suggested by Bruno Haible.
75794
75795         Merge from coreutils.
75796
75797         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
75798         * lib/umaxtostr.c: New files.
75799
75800         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
75801         the usual <time.h> dance.
75802         (get_date): Change signature to support fractional time stamps.
75803         All callers changed.
75804         * lib/getdate.y: Include "getdate.h" first, as we can now
75805         assume C89 and don't need to worry about 'const'.
75806         Similarly, include "unlocked-io.h" near start, not in middle.
75807         Include <limits.h>.
75808         (textint.value): Use long int rather than int.
75809         (textint.digits): Use size_t rather than int.
75810         (BILLION, LOG10_BILLION): New constants.
75811         (parser_control): New member rel_ns.  Members day_ordinal,
75812         time_zone, month, day, hour, minutes, rel_year, rel_month,
75813         rel_day, rel_hour, rel_minutes, rel_seconds
75814         are now long int, not int.  Member seconds is now struct timespec,
75815         not int.  New member timespec_seen.  Members dates_seen, days_seen,
75816         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
75817         not int.
75818         (%union.intval): Now long int, not int.
75819         New member timespec.
75820         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
75821         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
75822         (spec): Now is a timespec or an item list.
75823         (timespec, items): New nonterminals.
75824         (time, rel, relunit, number, get_date):
75825         Add support for fractional seconds.
75826         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
75827         (gmtime, localtime, mktime): Remove decls; not needed with C89.
75828         (to_hour): First arg is now long int, not int.
75829         (to_year): Returns long int, not int.
75830         Don't treat year -70 like 70.
75831         (tm_diff): Returns long int, not int.
75832         (lookup_word): Use bool instead of int when appropriate.
75833         (yylex): Use size_t for count, not int.
75834         Detect overflow when parsing large integer constants.
75835         Add support for fractions.
75836         (get_date): Make pointers 'const' if possible.
75837         Use more-portable code to detect integer overflow.
75838         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
75839         Don't use ctime; it's not reliable if the year has >4 digits.
75840
75841         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
75842         This is for compatibility with BSD.
75843
75844         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
75845         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
75846         From coreutils' system.h.
75847
75848         * lib/userspec.c: Don't include "posixver.h".
75849         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
75850         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
75851         compatible extension.  Simplify code by removing a boolean int
75852         that was always nonzero if a string was nonnull.
75853
75854 2004-03-30  Jim Meyering  <jim@meyering.net>
75855
75856         Merge from coreutils.
75857
75858         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
75859         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
75860         on some systems one must include <grp.h> before it.
75861         Reported by Christian Krackowizer.
75862
75863 2004-03-30  Jim Meyering  <jim@meyering.net>
75864
75865         Merge from coreutils.
75866
75867         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
75868
75869         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
75870         an empty input stream.
75871
75872         * lib/readtokens.c: Include <stdbool.h>.
75873         (readtoken): Use `size_t' rather than int/long.
75874         All callers adjusted.
75875         Use `bool' rather than `int' where appropriate.
75876         Use memset rather than an explicit loop.
75877         Use x2nrealloc rather than xrealloc.
75878         Allow the use of `\0' as a delimiter.
75879         (readtokens): Likewise.
75880         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
75881
75882 2004-03-30  Jim Meyering  <jim@meyering.net>
75883
75884         * m4/realloc.m4: Remove file, since now it does no more than
75885         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
75886         the `configure.ac' section of module/realloc.
75887         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
75888
75889 2004-03-30  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
75892         nonnull.
75893
75894 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75895
75896         Merge changes to getloadavg.c from coreutils and Emacs.
75897
75898         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
75899         Define to an expression, not to the empty string.
75900         Include cloexec.h and xalloc.h.
75901         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
75902         Use set_cloexec_flag rather than rolling our own.
75903         * lib/cloexec.c, lib/cloexec.h: New files.
75904
75905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
75906
75907         * m4/cloexec.m4: New file.
75908
75909 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75910
75911         * lib/getopt.h: Sync with libc CVS.
75912
75913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75914             Bruno Haible  <bruno@clisp.org>
75915
75916         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
75917         mbswidth.
75918
75919 2004-03-18  Paul Eggert  <eggert@twinsun.com>
75920             Bruno Haible  <bruno@clisp.org>
75921
75922         * lib/mbswidth.h: Include <wchar.h> only if
75923         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
75924         <wchar.h>.
75925         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
75926
75927 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75928
75929         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
75930         Sync with libc CVS.
75931         * lib/getopt_int.h: New file, also synced from libc.
75932
75933 2004-03-09  Paul Eggert  <eggert@twinsun.com>
75934
75935         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
75936         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
75937         Bring back getopt.c, getopt.h, getopt1.c.
75938
75939 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75940
75941         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
75942         All uses changed.  Check for sa_sigaction member; this fixes
75943         a bug first reported by Jason Andrade in
75944         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75945
75946 2004-03-07  Paul Eggert  <eggert@twinsun.com>
75947
75948         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
75949         '#if' expressions.  Unlike the code it replaces, it does not
75950         depend on (defined _SC_PAGESIZE).  However, it does depend on
75951         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
75952         first reported by Jason Andrade in
75953         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
75954
75955 2004-02-25  Simon Josefsson  <jas@extundo.com>
75956
75957         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
75958
75959 2004-02-25  Simon Josefsson  <jas@extundo.com>
75960
75961         * lib/strdup.h: New file.
75962         * lib/strdup.c: Include it.
75963         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
75964         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
75965
75966 2004-02-23  Karl Berry  <karl@gnu.org>
75967
75968         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
75969         (from fencepost.gnu.org:/gd/gnuorg).
75970
75971 2004-02-23  Karl Berry  <karl@gnu.org>
75972
75973         * config/srclistvars.sh (GNUORG) [karl]: redefine.
75974         * config/srclist.txt: add maintain/standards documents.
75975
75976 2004-02-18  Bruno Haible  <bruno@clisp.org>
75977
75978         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
75979         Reported by Derek Robert Price <derek@ximbiot.com>.
75980
75981 2004-02-16  Karl Berry  <karl@gnu.org>
75982
75983         * config/mkinstalldirs, install-sh: update from automake.
75984
75985 2004-02-06  Karl Berry  <karl@gnu.org>
75986
75987         * m4/po.m4: update from gettext 0.14.1.
75988
75989 2004-02-06  Karl Berry  <karl@gnu.org>
75990
75991         * lib/config.charset: update from gettext 0.14.1.
75992
75993 2004-02-05  Paul Eggert  <eggert@twinsun.com>
75994
75995         Add comments and code, prompted by suggestions from Bruno Haible
75996         for sh-quote.
75997         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
75998         describing the enum quoting_style values.
75999         * lib/quotearg.c (quotearg_alloc): New function.
76000         (quotearg_buffer_restyled): Treat lone { and } as special.
76001         Treat = as special.  Work around bug with older shells
76002         that "see" a '\' that is really the 2nd byte of a multibyte char.
76003         Quote empty string with shell_quoting_style.
76004
76005 2004-02-03  Bruno Haible  <bruno@clisp.org>
76006
76007         * m4/pipe.m4: New file, from GNU gettext.
76008
76009 2004-02-03  Bruno Haible  <bruno@clisp.org>
76010
76011         * lib/pipe.h: New file, from GNU gettext.
76012         * lib/pipe.c: New file, from GNU gettext.
76013
76014 2004-01-27  Bruno Haible  <bruno@clisp.org>
76015
76016         * m4/execute.m4: New file, from GNU gettext.
76017
76018 2004-01-27  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/execute.h: New file, from GNU gettext.
76021         * lib/execute.c: New file, from GNU gettext.
76022         * lib/w32spawn.h: New file, from GNU gettext.
76023
76024 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76025
76026         Merge from diffutils.
76027
76028         * lib/file-type.c (file_type): Add typed memory objects.
76029         * lib/file-type.h (S_TYPEISTMO): New macro.
76030
76031         * lib/c-stack.h (c_stack_action): Remove argv argument.
76032         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76033         (die): Don't calculate message unless segv_action returns.
76034         (get_stack_location, min_address_from_argv, max_address_from_argv,
76035         volatile stack_base, volatile_stack_size): Remove.
76036         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76037         that every segmentation violation is a stack overflow.  (Ouch!)
76038         See Debian bug 136249 (still outstanding) for more info about why
76039         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76040
76041 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76042
76043         Exit-status fix from coreutils.
76044
76045         Use exit_failure consistently in place of EXIT_FAILURE,
76046         so that program exit statuses are consistent on failure.
76047
76048         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76049         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76050         * lib/argmatch.h: Comment fix to match the above.
76051         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76052         Now a macro referring to exit_failure, instead of a separate
76053         variable.  Include "exitfail.h" to get it.
76054         * lib/xstrtol.h: Include "exitfail.h".
76055         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76056
76057         * lib/long-options.c (parse_long_options): Use prototype
76058         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76059         for clarity.
76060
76061 2004-01-21  Jim Meyering  <jim@meyering.net>
76062
76063         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76064         so as not to conflict with a different-sized __mktime_internal
76065         function in GNU libc.
76066         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76067         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76068
76069 2004-01-20  Karl Berry  <karl@gnu.org>
76070
76071         * config/config.guess: update from config.
76072
76073         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76074
76075 2004-01-20  Bruno Haible  <bruno@clisp.org>
76076
76077         Safer stack allocation.
76078         * lib/setenv.c: Include allocsa.h.
76079         (alloca): Remove fallback definition.
76080         (freea): Remove macro.
76081         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76082         instead of freea.
76083
76084 2004-01-20  Bruno Haible  <bruno@clisp.org>
76085
76086         * m4/eealloc.m4: New file, from GNU gettext.
76087
76088 2004-01-20  Bruno Haible  <bruno@clisp.org>
76089
76090         * m4/allocsa.m4: New file, from GNU gettext.
76091
76092 2004-01-20  Bruno Haible  <bruno@clisp.org>
76093
76094         * lib/xallocsa.h: New file, from GNU gettext.
76095         * lib/xallocsa.c: New file, from GNU gettext.
76096
76097 2004-01-20  Bruno Haible  <bruno@clisp.org>
76098
76099         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76100
76101 2004-01-20  Bruno Haible  <bruno@clisp.org>
76102
76103         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76104         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76105         specially.
76106
76107 2004-01-20  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76110         patch.
76111
76112 2004-01-20  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76115
76116 2004-01-20  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/eealloc.h: New file.
76119
76120 2004-01-20  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/binary-io.h: Avoid warnings on Cygwin.
76123
76124 2004-01-20  Bruno Haible  <bruno@clisp.org>
76125
76126         * lib/allocsa.h: New file, from GNU gettext.
76127         * lib/allocsa.c: New file, from GNU gettext.
76128
76129 2004-01-18  Karl Berry  <karl@gnu.org>
76130
76131         * doc/gpl.texi, doc/lgpl.texi: new files.
76132
76133 2004-01-18  Karl Berry  <karl@gnu.org>
76134
76135         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76136         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76137
76138 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76139
76140         Merge from coreutils.
76141
76142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76143         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76144         (gl_DEFAULT_POSIX2_VERSION): Move
76145         the documentation from 'configure' into 'config.hin',
76146         so that 'configure --help' isn't burdened by it and
76147         we don't have to worry about its formatting there.
76148         Reword the documentation so that it's more succinct
76149         and can be run together into a single paragraph.
76150         * m4/same.m4 (gl_SAME): Check for pathconf.
76151
76152 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76153
76154         Merge from coreutils.
76155
76156         * lib/posixver.c: Include posixver.h.
76157
76158         * lib/same.c: Include <stdbool.h>, <limits.h>.
76159         (_POSIX_NAME_MAX): Define if not defined.
76160         (MIN): New macro.
76161         (same_name): If file names are silently truncated, report
76162         that the file names are the same if they are the same after
76163         the silent truncation.
76164
76165         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76166         conversion function.
76167         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76168         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76169         longer needed.
76170
76171 2004-01-15  Jim Meyering  <jim@meyering.net>
76172
76173         Merge from coreutils.
76174
76175         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76176         if no library is required.
76177         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76178         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76179         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76180         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76181         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76182         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76183         value, $ac_cv_search_crypt, if it's "none required".
76184         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76185         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76186         not gl_FUNC_GETLOADAVG.
76187         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76188         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76189
76190 2004-01-15  Jim Meyering  <jim@meyering.net>
76191
76192         Merge from coreutils.
76193
76194         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76195         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76196         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76197
76198         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76199         optional configure-time default.
76200
76201         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76202
76203         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76204
76205 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76206
76207         Merge from coreutils.
76208
76209         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76210         value, $ac_cv_search_nanosleep, if it's "none required".
76211
76212 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76213
76214         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76215         with like-named macro in fnmatch.c.
76216         (EXT): Use an internal constant instead.
76217
76218         Merge fnmatch patches from glibc.
76219         * lib/fnmatch.c (mbsinit): Remove define.
76220         Add libc_hidden_ver (__fnmatch, fnmatch).
76221         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76222         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76223
76224 2004-01-14  Karl Berry  <karl@gnu.org>
76225
76226         * config/install-sh: update from automake.
76227
76228 2004-01-13  Karl Berry  <karl@gnu.org>
76229
76230         * config/install-sh: update from automake.
76231
76232 2004-01-09  Karl Berry  <karl@gnu.org>
76233
76234         * config/install-sh: update from automake.
76235
76236 2004-01-05  Karl Berry  <karl@gnu.org>
76237
76238         * config/config.{sub,guess}: update from config.
76239
76240 2003-12-31  Karl Berry  <karl@gnu.org>
76241
76242         * config/depcomp: update from automake.
76243
76244 2003-12-14  Karl Berry  <karl@gnu.org>
76245
76246         * lib/config.charset: update from gettext-runtime.
76247
76248 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76249
76250         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76251         Bug reported by Alfred M. Szmidt.
76252
76253 2003-12-03  Bruno Haible  <bruno@clisp.org>
76254
76255         * m4/gettext.m4: Upgrade from gettext-0.13.
76256         * m4/po.m4: Upgrade from gettext-0.13.
76257         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76258         * m4/intmax.m4: New file, from gettext-0.13.
76259         * m4/printf-posix.m4: New file, from gettext-0.13.
76260
76261 2003-11-29  Karl Berry  <karl@gnu.org>
76262
76263         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76264
76265 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76266             Bruno Haible  <bruno@clisp.org>
76267
76268         * lib/printf-parse.h: Don't include sys/types.h.
76269         (ARG_NONE): New macro.
76270         (char_directive): Change type of *arg_index fields to size_t.
76271         * lib/printf-parse.c: Don't include sys/types.h.
76272         (SSIZE_MAX): Remove macro.
76273         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76274         Remove unnecessary overflow check.
76275         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76276         fields.
76277
76278 2003-11-25  Bruno Haible  <bruno@clisp.org>
76279
76280         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76281
76282 2003-11-25  Bruno Haible  <bruno@clisp.org>
76283
76284         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76285         gt_TYPE_SSIZE_T.
76286
76287 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76288
76289         * modules/alloca: Remove dependency on xalloc.
76290
76291 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76292
76293         * lib/alloca.c: Remove dependency on xalloc module.
76294         (xalloc_die): Remove.
76295         (memory_full) [!defined emacs]: New macro.
76296         [!defined emacs]: Don't include xalloc.h.
76297         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76298         address arithmetic overflows.  Change datatypes a bit to avoid
76299         unnecessary casts.
76300
76301 2003-11-22  Jim Meyering  <jim@meyering.net>
76302
76303         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76304         s/size/size_t/.
76305
76306 2003-11-21  Karl Berry  <karl@gnu.org>
76307
76308         * config/config.{sub,guess}: update from config.
76309
76310 2003-11-18  Karl Berry  <karl@gnu.org>
76311
76312         * config/config.{sub,guess}: update from config.
76313
76314         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76315
76316 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76317
76318         * README: Mention that S+T cannot overflow if S is the size of
76319         an existing object and T is sufficiently small.
76320
76321 2003-11-17  Jim Meyering  <jim@meyering.net>
76322
76323         On systems without utime and without a utimes function capable of
76324         dealing with a NULL struct utimbuf* argument, this utime replacement
76325         could -- in unusual circumstances -- leak a file descriptor.
76326         * lib/utime.c: Include <unistd.h> and <errno.h>.
76327         (utime_null): Be sure to close `fd' and to preserve errno.
76328         Reported by Geoff Collyer via Arnold Robbins.
76329
76330 2003-11-17  Bruno Haible  <bruno@clisp.org>
76331
76332         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76333         (Depends-on): Add xsize.
76334
76335 2003-11-17  Bruno Haible  <bruno@clisp.org>
76336
76337         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76338
76339 2003-11-17  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/vasnprintf.c (alloca): Remove fallback definition.
76342         (freea): Remove definition.
76343         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76344         Reported by Paul Eggert.
76345
76346 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76347             Bruno Haible  <bruno@clisp.org>
76348
76349         Protect against address arithmetic overflow.
76350         * lib/printf-args.h: Include stddef.h.
76351         (arguments): Change type of field 'count' to size_t.
76352         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76353         'unsigned int' where appropriate.
76354         * lib/printf-parse.h: Include sys/types.h.
76355         (char_directive): Change type of *arg_index fields to ssize_t.
76356         (char_directives): Change type of fields 'count', max_*_length to
76357         size_t.
76358         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76359         (SSIZE_MAX): Define fallback value.
76360         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76361         instead of 'int' where appropriate. Check a_allocated, d_allocated
76362         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76363         * lib/vasnprintf.c: Include xsize.h.
76364         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76365         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76366         overflow. Avoid wraparound when converting a width or precision from
76367         decimal to binary.
76368
76369 2003-11-16  Bruno Haible  <bruno@clisp.org>
76370
76371         Update from GNU gettext.
76372         * lib/printf-parse.c: Generalize to it can be compiled for wide
76373         strings.
76374         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76375         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76376         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76377         SNPRINTF): New macros.
76378         Don't include <alloca.h> if the file is used inside libintl.
76379         (local_wcslen): New function, for Solaris 2.5.1.
76380         (VASNPRINTF): Use it instead of wcslen.
76381
76382 2003-11-16  Bruno Haible  <bruno@clisp.org>
76383
76384         * lib/xsize.h (xmax): New function.
76385         (xsum, xsum3, xsum4): Declare as "pure" functions.
76386
76387 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76388
76389         * modules/xalloc (Files): Undo latest change, since xalloc.h
76390         no longer needs SIZE_MAX or PTRDIFF_MAX.
76391
76392 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76393
76394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76395         gl_PTRDIFF_MAX.
76396
76397 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76398
76399         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76400         "return", to pacify some unknown compiler.  Problem reported
76401         by Joerg Schilling.
76402
76403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76404
76405         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76406         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76407         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76408         heuristic is just as accurate as far as we know, and it removes a
76409         dependency on size_max.m4 and ptrdiff_max.m4.
76410
76411 2003-11-11  Bruno Haible  <bruno@clisp.org>
76412
76413         * modules/xsize (Files): Add m4/size_max.m4.
76414         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76415
76416 2003-11-11  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/size_max.m4: New file.
76419         * m4/ptrdiff_max.m4: New file.
76420         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76421         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76422         (gl_XALLOC): Invoke it.
76423
76424 2003-11-11  Bruno Haible  <bruno@clisp.org>
76425
76426         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76427         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76428         defined.
76429
76430 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76431
76432         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76433         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76434         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76435         From Bruno Haible.
76436         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76437         not (size_t) -1, since it's defined here.
76438
76439 2003-11-09  Karl Berry  <karl@gnu.org>
76440
76441         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76442
76443 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76444
76445         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76446         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76447         Reject sizes of exactly SIZE_MAX bytes.
76448         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76449         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76450
76451 2003-11-05  Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76454         SIZE_MAX defined in <limits.h> on Solaris.
76455
76456 2003-11-04  Jim Meyering  <jim@meyering.net>
76457
76458         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76459         variable names, rather than @VAR@.
76460         * modules/poll: Likewise.
76461
76462 2003-11-04  Bruno Haible  <bruno@clisp.org>
76463
76464         * modules/xsize: New file.
76465         * modules/linebreak: Depend on xsize.
76466         * MODULES.html.sh (func_all_modules): Add xsize.
76467
76468 2003-11-04  Bruno Haible  <bruno@clisp.org>
76469
76470         * m4/xsize.m4: New file.
76471
76472 2003-11-04  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/xsize.h: New file.
76475         * lib/linebreak.c: Include xsize.h.
76476         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
76477         argument for overflow.
76478         Suggested by Paul Eggert.
76479
76480 2003-11-03  Karl Berry  <karl@gnu.org>
76481
76482         * config/config.{guess,sub}: update from config.
76483
76484 2003-11-03  Jim Meyering  <jim@meyering.net>
76485
76486         * modules/userspec (lib_SOURCES): Add userspec.h.
76487         (Include): Add "userspec.h".
76488         Improve description.
76489
76490 2003-11-03  Jim Meyering  <jim@meyering.net>
76491
76492         * lib/userspec.c: Include "userspec.h".
76493         * lib/userspec.h: New file.
76494
76495 2003-11-03  Bruno Haible  <bruno@clisp.org>
76496
76497         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
76498
76499 2003-11-03  Bruno Haible  <bruno@clisp.org>
76500
76501         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
76502         available, to avoid (extremely rare) race condition.
76503         Suggested by Paul Eggert.
76504
76505 2003-11-02  Karl Berry  <karl@gnu.org>
76506
76507         * config/srclist.txt (vasprintf.c): sync broken, sigh.
76508
76509 2003-10-31  Paul Eggert  <eggert@twinsun.com>
76510
76511         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
76512         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
76513         (read_filesystem_list): Set and use me_type_malloced.
76514         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
76515         whatever the type happens to be), for brevity and consistency.
76516         Check for size calculation overflow on Alphas running OSF/1.
76517
76518 2003-10-31  Jim Meyering  <jim@meyering.net>
76519
76520         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
76521
76522         * lib/linebuffer.c: Include <string.h> for declaration of memset.
76523
76524 2003-10-30  Paul Eggert  <eggert@twinsun.com>
76525             Bruno Haible  <bruno@clisp.org>
76526
76527         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
76528         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
76529
76530 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
76533         netbsd*-gnu*.  Suggested by Robert Millan.
76534
76535 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76536
76537         * modules/group-member: Depend on stdbool.
76538
76539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76540
76541         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
76542
76543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76544
76545         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
76546         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
76547         after the 'gnu' in these cases.  This fixes some bugs in the
76548         previous change, and is based on suggestions by Robert Millan.
76549
76550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
76551
76552         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
76553         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
76554         no longer needed.
76555         * lib/quotearg.c (quotearg_n_options): Use it.
76556         * lib/group-member.c: Include <stdbool.h>.
76557         (free_group_info): Arg is now const *; don't free arg.
76558         (get_group_info): Now returns bool and accepts struct group_info *,
76559         rather than returning a malloc'ed struct group_info *.
76560         All uses changed.  Check for overflow in internal size calculation.
76561
76562         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
76563         rather than xmalloc/xrealloc.
76564         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
76565         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
76566         conformance bug: the old code used a pointer after freeing the
76567         storage that it addressed.
76568         * lib/hash.c (hash_initialize): Simplify the code by using
76569         xalloc_oversized rather than doing it by hand.
76570         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
76571         the buffer preserved.  Use free and xmalloc instead.
76572         * lib/quotearg.c (quotearg_n_options): Likewise.
76573         Use a simpler test for size overflow.  Don't use xalloc_oversized
76574         because unsigned int might be wider than size_t (!); this suggests
76575         that we should switch from unsigned int to size_t for slot numbers.
76576
76577 2003-10-28  Paul Eggert  <eggert@twinsun.com>
76578
76579         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
76580         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
76581         NetBSD kernels.  Requested by Richard Stallman.
76582
76583 2003-10-27  Paul Eggert  <eggert@twinsun.com>
76584
76585         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
76586         to allocate the returned structure.  Do not allocate a subarray,
76587         as x2nrealloc will do that.
76588         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
76589         instead of xnrealloc.
76590         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
76591
76592 2003-10-27  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/stdbool_.h: Better support for BeOS.
76595
76596 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76597
76598         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
76599         now uses inline.
76600
76601 2003-10-26  Paul Eggert  <eggert@twinsun.com>
76602
76603         * lib/xalloc.h (xalloc_oversized): New static inline function, for
76604         callers that want to do their own size-overflow checking.  Include
76605         <stdbool.h>, since xalloc_oversized returns bool.
76606         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
76607         to use xalloc_oversized.
76608
76609         Add two functions x2realloc, x2nrealloc, for programs that grow
76610         arrays dynamically by doubling their sizes.
76611         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
76612         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
76613         New functions.
76614
76615         Port to C99 semantics for 'inline' of external functions.
76616         Bug reported by Bruno Haible.
76617         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
76618         with the old contents of xnmalloc.
76619         (xnmalloc, xmalloc): Use it.
76620         (xnrealloc_inline): New static inline function,
76621         with the old contents of xnrealloc.
76622         (xnrealloc, xrealloc): Use it.
76623
76624         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
76625         that.
76626
76627 2003-10-26  Karl Berry  <karl@gnu.org>
76628
76629         * config/srclist.txt (COPYING.DOC): no longer available from
76630         /gd/gnuorg; don't know where the ultimate source is.
76631
76632 2003-10-25  Paul Eggert  <eggert@twinsun.com>
76633
76634         Fix several address-calculation bugs in the hash modules,
76635         plus some minor code cleanup.
76636
76637         * lib/hash.h: Include <stdbool.h>, for bool.
76638         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
76639         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
76640         hash_get_n_entries, hash_get_max_bucket_length,
76641         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
76642         hash_rehash): Use size_t rather than unsigned.
76643         * lib/hash.c (struct hash_table, hash_get_n_buckets,
76644         hash_get_n_buckets_used, hash_get_n_entries,
76645         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
76646         hash_get_entries, hash_do_for_each, hash_string, is_prime,
76647         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
76648         Likewise.
76649         (SIZE_MAX): Define if not defined.
76650         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
76651         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
76652         hash_print):
76653         Use const * when possible.
76654         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
76655         (check_tuning): Fix bug: if tuning parameters were very close to
76656         0 or 1, rounding errors could have caused subscript violations.
76657         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
76658         (hash_initialize): Add 'fail:' label
76659         to free table and return NULL, and use it to simplify code.
76660         Use calloc rather than clearing the storage ourself.
76661         (hash_initialize, hash_rehash): Check for arithmetic overflow in
76662         buffer size calculations.
76663         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
76664         Include <stddef.h>, for size_t.
76665         * lib/hash-pjw.c (hash_pjw): Likewise.
76666         Switch to method described by Bruno Haible.
76667         Include <limits.h>, for CHAR_BIT.
76668         (SIZE_BITS): New macro.
76669
76670 2003-10-23  Paul Eggert  <eggert@twinsun.com>
76671
76672         * m4/getline.m4 (AM_FUNC_GETLINE):
76673         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
76674         hosts.  Problem reported by Derek Robert Price in
76675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
76676         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
76677         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
76678
76679 2003-10-21  Paul Eggert  <eggert@twinsun.com>
76680
76681         * lib/getndelim2.c (getndelim2): When size calculation overflows,
76682         ceiling the allocation at NMAX bytes rather than silently
76683         discarding input bytes before NMAX is reached.  This makes
76684         a difference only if NMAX exceeds SIZE_MAX / 2.
76685
76686         * lib/obstack.c: Merge from glibc.
76687         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
76688         Add libc_hidden_def (_obstack_newchunk).
76689         (_obstack_free) [! defined _LIBC]: Remove.
76690         [defined _LIBC]: Make a strong alias from obstack_free, rather than
76691         a clone of the function body.
76692         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
76693         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
76694
76695         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
76696         glibc.
76697         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
76698         arg to memcpy.
76699
76700         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
76701         (obstack_ptr_grow_fast, obstack_int_grow_fast):
76702         Don't use lvalue casts, as GCC plans to remove support for them
76703         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
76704         was also present in the non-GCC version, indicating that this
76705         code had always been buggy and had never been widely used.
76706         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
76707         Use the fast variant of each macro, rather than copying the
76708         definiens of the fast variant; that way, we'll be more likely to
76709         catch future bugs in the fast variants.
76710
76711 2003-10-20  Bruno Haible  <bruno@clisp.org>
76712
76713         * modules/wait-process: New file.
76714         * MODULES.html.sh (func_all_modules): Add wait-process.
76715
76716 2003-10-20  Bruno Haible  <bruno@clisp.org>
76717
76718         * m4/wait-process.m4: New file.
76719
76720 2003-10-20  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/wait-process.h: New file, from GNU gettext.
76723         * lib/wait-process.c: New file, from GNU gettext.
76724
76725 2003-10-19  Jim Meyering  <jim@meyering.net>
76726
76727         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
76728         HPUX 10.20.
76729
76730 2003-10-18  Karl Berry  <karl@gnu.org>
76731
76732         * config/config.guess: update from config.
76733
76734 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76735
76736         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
76737         (getgroups): First arg is int, not size_t.
76738         Don't let 'free' mangle errno.
76739
76740 2003-10-16  Paul Eggert  <eggert@twinsun.com>
76741
76742         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
76743
76744 2003-10-16  Karl Berry  <karl@gnu.org>
76745
76746         * config/config.{guess,sub}: update from config.
76747
76748 2003-10-16  Jim Meyering  <jim@meyering.net>
76749
76750         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
76751         memcpy.
76752
76753 2003-10-15  Paul Eggert  <eggert@twinsun.com>
76754
76755         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
76756         (SIZE_MAX): Remove.
76757         (new_exclude, add_exclude_file): Initial size no longer needs to
76758         be a power of 2.
76759         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
76760         our own address arithmetic overflow checking.
76761
76762         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
76763         (fnmatch): Do not alloca more than 2000 wide characters;
76764         instead, use malloc for large buffers.
76765         Check for address arithmetic overflow, and return -1
76766         with errno set to ENOMEM in that case.
76767         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
76768         (NEW_PATTERN): Do not alloca more than 8000 bytes;
76769         instead, return -1.  Check for address arithmetic overflow.
76770
76771 2003-10-14  Paul Eggert  <eggert@twinsun.com>
76772
76773         Handle invalid suffixes and overflow independently, so that
76774         callers can treat them independently as needed.  Fix some bugs in
76775         suffix handling, e.g., "100k@" was not diagnosed as an invalid
76776         suffix for a human-readable blocksize.  The major caller-visible
76777         change is the addition of a new
76778         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
76779         that both overflow and suffix chars were found.
76780
76781         * lib/human.c (humblock): Don't check separately for invalid suffix
76782         char; that is xstrtoumax's job (now that its bug is fixed).
76783         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
76784         INTMAX_MAX]: New macros.
76785         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
76786         TYPE_MAXIMUM): New macros.
76787         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
76788         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
76789         if overflow occurs, as it's what __strtol does and it's more useful
76790         in practice.
76791         (__xstrtol): If __strtol reports some error other than ERANGE,
76792         reflect it to the caller as LONGINT_INVALID.  If it reports
76793         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
76794         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
76795         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
76796         value.
76797         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
76798         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
76799         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
76800         [defined UINTMAX_MAX]: New macros.
76801
76802 2003-10-14  Bruno Haible  <bruno@clisp.org>
76803
76804         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
76805
76806 2003-10-14  Bruno Haible  <bruno@clisp.org>
76807
76808         * m4/sig_atomic_t: New file, from GNU gettext.
76809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
76810
76811 2003-10-14  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
76814         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
76815         Also use volatile where needed.
76816
76817 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76818
76819         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
76820         Change maintainer from Bruno Haible to 'all'.
76821
76822 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76823
76824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
76825
76826 2003-10-12  Paul Eggert  <eggert@twinsun.com>
76827
76828         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
76829         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
76830         and define in terms of the other primitives.
76831         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
76832         (SIZE_MAX): Define if not already defined.
76833         (array_size_overflow): New function.
76834         (xalloc_die): Abort instead of exiting if 'error' returns.
76835         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
76836         (xmalloc, xrealloc): Use them.
76837         (xcalloc): Check for address arithmetic overflow.
76838         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
76839         a bit faster than strcpy.
76840
76841 2003-10-10  Simon Josefsson  <jas@extundo.com>
76842
76843         * modules/argp (Depends-on): Add restrict and strcase.
76844
76845 2003-10-10  Simon Josefsson  <jas@extundo.com>
76846
76847         * m4/argp.m4: Add AC_C_INLINE.
76848
76849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76850
76851         Merge getpass from libc, plus a few fixes.
76852
76853         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
76854         Include <stdbool.h>.
76855         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
76856         __fsetlocking to empty.
76857         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
76858         do include <bits/libc-lock.h>.
76859         Do not include <fcntl.h>; not needed.
76860         [_LIBC]: Include <wchar.h>.
76861         (NOTCANCEL_MODE): New macro.
76862         (flockfile, funlockfile) [_LIBC]: New macros.
76863         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
76864         [!_LIBC]: New macros.
76865         (call_fclose): New function.
76866         (getpass): Use it.  Save tty stream separately; this simplifies the
76867         code and makes it more reliable if stdin happens to equal stdout.
76868         Invoke __fsetlocking on tty.
76869         Handle thread cancellation if needed.
76870         Namespace cleanup (use __tcgetattr, __getline).
76871         Use bool for Booleans.
76872         [USE_IN_LIBIO]: Handle wide streams.
76873         [!_LIBC]: Unconditionally do the fseek, since we don't know what
76874         stream might go where.
76875
76876         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
76877         doesn't have to include <stdio.h> before us.
76878         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
76879         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
76880         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
76881         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
76882         if not declared, so that we can use getpass.c code from libc without
76883         rewriting it.
76884         (flockfile, ftrylockfile, funlockfile): New macros.
76885
76886 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76887
76888         * modules/getpass: Depend on stdbool.
76889
76890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
76891
76892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
76893
76894 2003-10-07  Karl Berry  <karl@gnu.org>
76895
76896         * config/config.{guess,sub}: update from config.
76897
76898 2003-10-06  Jim Meyering  <jim@meyering.net>
76899             Bruno Haible  <bruno@clisp.org>
76900
76901         This lets translators provide better translations for the
76902         "Written by ..." part of --version output.
76903         * lib/version-etc.h: Include stdarg.h.
76904         (version_etc_copyright): Declare as readonly.
76905         (version_etc): Make this function variadic with a NULL-terminated list
76906         of author name strings.
76907         (version_etc_va): New declaration.
76908         * lib/version-etc.c: Include stdarg.h, stdlib.h.
76909         (version_etc_copyright): Declare as readonly.
76910         (version_etc_va): New function. Provide a different translatable string
76911         for each possible number of authors < 10. Abbreviate when there are 10
76912         authors or more.
76913         (version_etc): Make this function variadic. Call version_etc_va.
76914         Suggestion from Gary V. Vaughan.
76915
76916         * lib/long-options.h (parse_long_options): Change prototype: the
76917         authors string is moved to the end and becomes variadic.
76918         * lib/long-options.c: Include stdarg.h.
76919         (parse_long_options): Make this function variadic, too.
76920         Call version_etc_va, not version_etc.
76921
76922 2003-10-06  Bruno Haible  <bruno@clisp.org>
76923
76924         * modules/version-etc-2: Remove file.
76925         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
76926
76927 2003-10-06  Bruno Haible  <bruno@clisp.org>
76928
76929         * modules/fatal-signal: New file.
76930         * MODULES.html.sh (func_all_modules): Add fatal-signal.
76931
76932 2003-10-06  Bruno Haible  <bruno@clisp.org>
76933
76934         * m4/fatal-signal.m4: New file.
76935         * m4/signalblocking.m4: New file, from GNU gettext.
76936
76937 2003-10-06  Bruno Haible  <bruno@clisp.org>
76938
76939         * lib/version-etc-2.h: Remove file.
76940         * lib/version-etc-2.c: Remove file.
76941
76942 2003-10-06  Bruno Haible  <bruno@clisp.org>
76943
76944         * lib/fatal-signal.h: New file, from GNU gettext.
76945         * lib/fatal-signal.c: New file, from GNU gettext.
76946
76947 2003-10-05  Paul Eggert  <eggert@twinsun.com>
76948
76949         * README: Rework advice for preventing empty .o files.
76950         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
76951         not <sys/types.h>.
76952
76953 2003-10-04  Karl Berry  <karl@gnu.org>
76954
76955         * lib/argp*: update from libc.
76956
76957 2003-10-04  Karl Berry  <karl@gnu.org>
76958
76959         * config/config.{guess,sub}: update from config.
76960
76961 2003-10-02  Bruno Haible  <bruno@clisp.org>
76962
76963         * modules/lchown (Include): Add lchown.h.
76964         * modules/time_r (Include): Use "..." syntax.
76965         * modules/xgetdomainname (Include): Add xgetdomainname.h.
76966
76967 2003-10-01  Simon Josefsson  <jas@extundo.com>
76968
76969         * MODULES.html.sh (func_all_modules): Move gethostname from section
76970         'based on' to section 'lacking' POSIX:2001.
76971
76972 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
76973
76974         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
76975         to output mode on the same stream.
76976
76977 2003-09-29  Paul Eggert  <eggert@twinsun.com>
76978
76979         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
76980         Fix arg typo in previous patch.
76981
76982 2003-09-28  Jim Meyering  <jim@meyering.net>
76983
76984         * lib/error.c: Correct cpp indentation.
76985
76986 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76987
76988         * modules/free: New file.
76989
76990 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76991
76992         * m4/free.m4: New file.
76993
76994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
76995
76996         * lib/minmax.h (MIN, MAX)
76997         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
76998         Omit the special code that used __typeof__, since we worry that
76999         it could be more trouble than it's worth.  See:
77000         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77001         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77002
77003         * lib/free.c: New file.
77004
77005 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77006
77007         Trivial fixes to Makefile.am parts of module listings.
77008         * modules/strstr: Append strstr.h to lib_SOURCES.
77009         * modules/strcase: Likewise, for strcase.h.
77010
77011 2003-09-27  Karl Berry  <karl@gnu.org>
77012
77013         * config/mkinstalldirs: update from automake.
77014
77015 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77016
77017         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77018         (error_tail): Do not loop, reallocating temporary buffer, since
77019         the output cannot contain more wide characters than the input
77020         contains bytes, the size must be big enough already.  This avoids
77021         one potential size overflow calculation.  Check for size overflow
77022         when calculating temporary buffer size.  Free temporary buffer
77023         when done, if it was allocated with malloc; this plugs a memory
77024         leak.  Remove casts from void * to pointers, that are no longer
77025         needed now that we're assuming C89 or better.
77026
77027         Merge error changes from glibc.
77028
77029         * lib/error.c, error.h: Update copyright notice header to match glibc.
77030         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77031         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77032         Disable cancellation while printing error.
77033         * lib/error.h: Prepend __ to parameter names.
77034
77035 2003-09-26  Jim Meyering  <jim@meyering.net>
77036
77037         * lib/error.c (error_tail): Move some declarations
77038         into inner scope where the local variables are used.
77039
77040 2003-09-26  Bruno Haible  <bruno@clisp.org>
77041
77042         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77043         stpncpy().
77044         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77045
77046 2003-09-26  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77049         (stpncpy): Define as alias for gnu_stpncpy.
77050         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77051
77052 2003-09-25  Simon Josefsson  <jas@extundo.com>
77053
77054         * lib/xgetdomainname.h: New file.
77055         * lib/xgetdomainname.c: New file.
77056
77057 2003-09-25  Simon Josefsson  <jas@extundo.com>
77058             Bruno Haible  <bruno@clisp.org>
77059
77060         * modules/getdomainname: New file.
77061         * modules/xgetdomainname: New file.
77062         * MODULES.html.sh (func_all_modules): Add getdomainname,
77063         xgetdomainname.
77064
77065 2003-09-25  Simon Josefsson  <jas@extundo.com>
77066             Bruno Haible  <bruno@clisp.org>
77067
77068         * m4/getdomainname.m4: New file.
77069
77070 2003-09-25  Simon Josefsson  <jas@extundo.com>
77071             Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/getdomainname.h: New file.
77074         * lib/getdomainname.c: New file.
77075
77076 2003-09-25  Karl Berry  <karl@gnu.org>
77077
77078         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77079
77080 2003-09-25  Karl Berry  <karl@gnu.org>
77081
77082         * config/install-sh: update from automake.
77083
77084 2003-09-25  Bruno Haible  <bruno@clisp.org>
77085
77086         * modules/version-etc-2: New file, from modules/version-etc with
77087         modifications.
77088         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77089
77090 2003-09-25  Bruno Haible  <bruno@clisp.org>
77091
77092         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77093         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77094
77095 2003-09-24  Simon Josefsson  <jas@extundo.com>
77096
77097         * modules/xgethostname: Add xgethostname.h.
77098
77099 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77100
77101         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77102         the buffer associated with the argument.  Bug reported by
77103         Simon Josefsson.
77104
77105 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77106
77107         * README: Document assumptions that 'int' is at least 32 bits
77108         wide, that integer arithmetic is 2's complement without overflow,
77109         that there are no holes in integer values, that adding sizes of
77110         two nonoverlapping objects can't overflow, and that all-bits-zero
77111         yields scalar zero.  Fix spelling and capitalization typos.
77112
77113 2003-09-19  Karl Berry  <karl@gnu.org>
77114
77115         * lib/argp.h: update from libc.
77116
77117 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77118
77119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77120         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77121         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77122
77123 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77124
77125         * gnulib-tool: Use "test -h", not "test -L", for portability
77126         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77127         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77128         (sed_extract_prog): Issue s commands one-by-one, rather than
77129         using \| in one s command.
77130
77131 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77132
77133         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77134         input error, instead of returning NULL the next time we are called
77135         (and therefore losing track of errno).
77136
77137 2003-09-16  Bruno Haible  <bruno@clisp.org>
77138
77139         * gnulib-tool (func_create_testdir): Warn about duplicated
77140         dependencies.
77141
77142 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77143
77144         * modules/argmatch, modules/fatal, modules/obstack,
77145         modules/xalloc, modules/xgethostname: Sort dependencies by
77146         importance, not alphabetically.
77147
77148 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77149
77150         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77151         fails, so that the caller gets the proper errno.
77152
77153         * lib/readutmp.c (read_utmp): Likewise.
77154         Check for fstat error.  Close stream and free storage
77155         when failing.
77156
77157 2003-09-14  Karl Berry  <karl@gnu.org>
77158
77159         * config/srclist.txt (strdup.c): disable for c89 changes.
77160
77161 2003-09-14  Jim Meyering  <jim@meyering.net>
77162
77163         * lib/getloadavg.c: Correct cpp indentation.
77164         * lib/strdup.c: Likewise.
77165         * lib/vasnprintf.c: Likewise.
77166
77167 2003-09-14  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/fwriteerror: New file.
77170         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77171
77172 2003-09-14  Bruno Haible  <bruno@clisp.org>
77173
77174         * lib/fwriteerror.h: New file.
77175         * lib/fwriteerror.c: New file.
77176
77177 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77178
77179         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77180         modules/xgethostname, modules/xalloc: Depend on exit.
77181
77182 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77183
77184         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77185
77186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77187         and AC_MINIX, too, so that their extensions are available.
77188
77189         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77190         This macro has been superseded by gl_BACKUPFILE.
77191
77192         More patches to assume C89 or better.
77193
77194         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77195
77196         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77197         unconditionally.
77198         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77200         Include <string.h>, <stdlib.h> unconditionally.
77201         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77202         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77203         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77204         headers or for string.h.
77205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77206         or strtoul.
77207
77208         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77209         headers.
77210         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77211         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77212         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77213         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77214         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77215         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77216         memcpy, memset.
77217         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77218         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77219         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77220         strtol.
77221         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77222         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77223         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77224         strtoul.
77225
77226 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77227
77228         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77229         * lib/obstack.c [!defined _LIBC]: Likewise.
77230         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77231         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77232         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77233
77234         More changes to assume C89 or better.
77235
77236         * lib/error.c (error_tail): Assume vprintf.
77237
77238         * lib/argmatch.c (getenv): Remove decl.
77239         * lib/progreloc.c (get_full_program_name): Define via prototype.
77240         * lib/setenv.c (clearenv): Likewise.
77241         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77242         needed.
77243         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77244         (malloc, memcpy): Remove decls.
77245         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77246         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77247         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77248         (memcpy): Remove macro.
77249         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77250         (__P): Remove.  All uses removed.
77251         (PTR): Remove.  All uses changed to void *.
77252         (CHAR_BIT, NULL): Remove.
77253         (spaces, zeros, memset_space, memset_zero)
77254         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77255         Remove.
77256         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77257         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77258         Define with prototype.
77259         Remove now-unnecessary prototype decl.
77260         (extra_args_spec): Assume ANSI C.  All uses changed.
77261         (extra_args_spec_iso): Remove.
77262         (my_strftime, emacs_strftimeu): Define via prototype.
77263         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77264         unconditionally.
77265         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77266         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77267         (strtoul, strtol): Remove decls.
77268         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77269         LONG_MAX): Remove.
77270         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77271         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77272         (LOCALE_PARAM_PROTO): New macro.
77273         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77274         (INTERNAL (strtol), strtol): Define with a prototype.
77275         (PARAMS): Remove.  All uses removed.
77276         * lib/tempname.c: Include <string.h> unconditionally.
77277         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77278         * lib/xgethostname.c (main): Define with a prototype.
77279         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77280         Include <stdlib.h> unconditionally.
77281         (calloc, malloc, realloc, free): Remove decls.
77282         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77283         Include <stdlib.h> unconditionally.  Sort include file names.
77284         (strtod): Remove.
77285         (xstrtod): Define with a prototype.
77286         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77287         (strtol, strtoul): Remove decls.
77288
77289 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77290
77291         More patches to assume C89 or better.
77292         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77293         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77294         string.h, memchr, STDC_HEADERS.
77295
77296 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77297
77298         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77299         Include <stdlib.h>, <string.h> unconditionally.
77300         Remove now-unnecessary cast to char *.
77301         * lib/strnlen.c: Include <string.h> unconditionally.
77302         * lib/yesno.c (yesno): Define with a prototype.
77303
77304 2003-09-11  Bruno Haible  <bruno@clisp.org>
77305
77306         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77307
77308 2003-09-10  Jim Meyering  <jim@meyering.net>
77309
77310         * lib/error.c: Correct indentation of cpp directives.
77311
77312 2003-09-10  Bruno Haible  <bruno@clisp.org>
77313
77314         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77315         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77316         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77317         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77318         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77319         <stdlib.h> and <string.h> checks.
77320         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77321         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77322
77323 2003-09-10  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/strcspn.c: Include <string.h> unconditionally.
77326         * lib/strpbrk.c: Include <string.h> unconditionally.
77327         * lib/strstr.c: Include <string.h> unconditionally.
77328         * lib/unicodeio.c: Include <string.h> unconditionally.
77329         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77330         * lib/unsetenv.c: Likewise.
77331         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77332         * lib/yesno.c: Include <stdlib.h> unconditionally.
77333         (rpmatch): Add prototype.
77334
77335 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77336
77337         More patches to assume C89 or better.
77338         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77339         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77340         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77341         or for string.h.
77342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77343         stdlib.h.
77344         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77345         C headers.
77346         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77347         string.h.
77348         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77349         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77350         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77351         or for string.h.
77352         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77353         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77354         C headers.
77355         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77356         memcpy.
77357         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77358         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77359         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77360         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77361         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77362         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77363         string.h, free.
77364         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77365         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77366         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77367         C headers, or for string.h.
77368         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77369         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77370         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77371         headers, memory.h, stdlib.h, string.h, strings.h.
77372         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77373         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77374         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77375         strchr.
77376         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77377         headers, memory.h, string.h.
77378         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77379         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77380         free.
77381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77382         headers.
77383         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77384         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77385         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77386         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77387         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77388
77389 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77390
77391         More K&R removal.
77392
77393         * lib/acosl.c (main): Use a prototype.
77394         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77395         tanl.c: Likewise.
77396
77397         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77398
77399         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77400         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77401         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77402         with a prototype.
77403         * lib/getopt.c (const): Remove macro.
77404         Include <string.h> unconditionally.
77405         (my_index): Remove; all uses changed to strchr.
77406         (strlen): Remove decl.
77407         (exchange): Remove forward decl; no longer needed.
77408         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77409         Define with prototype.
77410         * lib/getopt1.c (const): Remove macro.
77411         (getopt_long, getopt_long_only, main): Define with prototype.
77412
77413         * lib/getugroups.c: Include <string.h> unconditionally.
77414
77415         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77416         (getusershell, setusershell, endusershell, readname, main):
77417         Define with prototypes.
77418
77419         * lib/group-member.c: Include group-member.h first.
77420         Include <stdlib.h> unconditionally.
77421
77422         * lib/hard-locale.c: Include hard-locale.h first.
77423         Include <stdlib.h>, <string.h> unconditionally.
77424
77425         * lib/hash.c (free, malloc): Remove decls.
77426         Include <stdlib.h> unconditionally.
77427
77428         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77429         (getenv): Do not declare.
77430
77431         * lib/idcache.c: Include <string.h> unconditionally.
77432
77433         * lib/long-options.c: Include long-options.h first, to test interface.
77434         Include <stdlib.h> unconditionally.
77435
77436         * lib/makepath.c: Include makepath.h first, to test interface.
77437         Include <stdlib.h> and <string.h> unconditionally.
77438
77439         * lib/linebuffer.c: Include <stdlib.h>.
77440         (free): Remove decl.
77441
77442         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77443         stddef.h. rpl_malloc returns void *, not char *.
77444         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77445         prototype.
77446
77447         * lib/md5.h: Include <limits.h> unconditionally.
77448         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77449         (__P): Remove; all uses removed.
77450         * lib/md5.c: Include "md5.h" first.
77451         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77452         md5_buffer, md5_process_bytes, md5_process_block):
77453         Define with prototypes.
77454         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77455         * lib/sha.c: Include "sha.h" first.
77456         Include <stdlib.h>, <string.h> unconditionally.
77457
77458         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77459         * lib/memcmp.c (__ptr_t): Likewise.
77460         * lib/memrchr.c (__ptr_t): Likewise.
77461         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77462         Include <string.h> unconditionally.
77463         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77464         * lib/memchr.c: Include <stdlib.h> unconditionally.
77465         * lib/memchr.c (LONG_MAX): Remove.
77466         * lib/memrchr.c (LONG_MAX): Likewise.
77467         * lib/memchr.c (__memchr): Define via a prototype.
77468         * lib/memrchr.c (__memrchr): Likewise.
77469         * lib/memcmp.c (__P): Remove, and remove all uses.
77470         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
77471         Remove forward decls; no longer needed.
77472         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
77473         Use types required by C89 in prototype.
77474
77475         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
77476         * lib/savedir.c: Likewise.
77477         * lib/mkdir.c (free): Remove decl.
77478         * lib/rmdir.c (rmdir): Define with a prototype.
77479         * lib/savedir.c: Include savedir.h first, to test interface.
77480
77481         * lib/mktime.c (STDC_HEADERS): Remove.
77482         Include <stdlib.h>, <string.h> unconditionally.
77483
77484         * lib/modechange.c: Include <stdlib.h> unconditionally.
77485         (malloc): Remove decl.
77486
77487         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
77488         (free): Remove decl.
77489
77490         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
77491         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
77492         (This type really should be intptr_t, but that's a C99ism.)
77493         (_obstack_memcpy): Remove: all uses changed to memcpy.
77494         Include <string.h> unconditionally.
77495         (struct obstack): Assume __STDC__ for types of members
77496         chunkfun, freefun, extra_arg.
77497         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
77498         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
77499         obstack_begin, obstack_specify_allocation,
77500         obstack_specify_allocation_with_arg, obstack_chunkfun,
77501         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
77502         Remove unprototyped decls and the macros that use them.
77503         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
77504         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
77505         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
77506         (defined __STDC__ && __STDC__)]:
77507         Remove nonprototyped code.
77508         Include <stdlib.h> unconditionally.
77509         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
77510         _obstack_allocated_p, _obstack_free, obstack_free,
77511         _obstack_memory_used, print_and_abort):
77512         Define using prototypes.
77513         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
77514         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
77515         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
77516         obstack_next_free, obstack_object_size, obstack_room) [0]:
77517         Remove unused, unprototyped code.
77518
77519         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
77520
77521         * lib/physmem.c (physmem_total, physmem_available, main): Define
77522         with prototypes.
77523
77524         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
77525         (main): Define with a prototype.
77526
77527         * lib/posixver.c (getenv): Remove decl.
77528
77529         * lib/putenv.c (malloc): Returns void *, not char *.
77530         Include <string.h> unconditionally.
77531         (strchr, memcpy, NULL): Do not define.
77532
77533         * lib/readtokens.c: Include readtokens.h first, to test interface.
77534         Include <stdlib.h>, <string.h> unconditionally.
77535         (init_tokenbuffer): Define with a prototype.
77536
77537         * lib/regex.c (PARAMS): Remove.  All uses removed.
77538         All uses of _RE_ARGS removed, too.
77539         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77540         unconditionally.
77541         (bzero): Assume memset exists.
77542         (memcmp, memcpy, NULL): Remove.
77543         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
77544         char, or assignments to local vars of type signed char.
77545         (init_syntax_once, PREFIX(extract_number_and_incr),
77546         PREFIX(print_partial_compiled_pattern),
77547         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
77548         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
77549         PREFIX(regex_grow_registers), PREFIX(regex_compile),
77550         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
77551         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
77552         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
77553         wcs_compile_range, byte_compile_range, truncate_wchar,
77554         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
77555         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
77556         count_mbs_length, wcs_re_match_2_internal,
77557         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
77558         PREFIX(alt_match_null_string_p),
77559         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
77560         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
77561         regfree, PREFIX(extract_number)): Define with prototype.  Remove
77562         now-unnecessary declaration, if any.
77563         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
77564         regcomp, regexec):
77565         Remove now-unnecessary casts among pointer types.
77566         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
77567
77568         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
77569         (free): Remove decl.
77570
77571         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
77572
77573         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
77574         (free): Remove decl.
77575
77576         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
77577         * lib/xgetcwd.c: Likewise.
77578
77579         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
77580         (free): Remove decl.
77581
77582         * lib/strchrnul.c (strchrnul): Define with a prototype.
77583         Fix bug: c_in was not converted to char before searching.
77584
77585         The following changes are not K&R related:
77586
77587         * lib/group-member.h: Include <sys/types.h>, so that this file is
77588         self-contained.
77589         * lib/makepath.h: Likewise.
77590
77591         * lib/getusershell.c (readname, default_index, line_size, readname):
77592         Use size_t, not int, for sizes.
77593         (readname): If the size overflows, report an error instead of
77594         looping forever.
77595
77596 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77597
77598         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
77599         libc.
77600
77601 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77602
77603         * README: New section: portability guidelines.
77604
77605 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77606
77607         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
77608         C89 spec.
77609
77610 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
77611
77612         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
77613
77614 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77615
77616         Assume C89 or better; remove K&R cruft.
77617         A few of these changes were first proposed by Derek Robert Price
77618         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
77619
77620         * lib/addext.c: Include <string.h> unconditionally.
77621         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
77622         Don't declare getenv or malloc.
77623
77624         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
77625         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
77626         (NULL): Remove.
77627         (find_stack_direction, alloca): Use prototypes.
77628
77629         * lib/atexit.c (atexit): Define using a prototype.
77630
77631         * lib/basename.c, dirname.c, stripslash.c:
77632         Include <string.h> unconditionally.
77633
77634         * lib/bcopy.c: Include <stddef.h>.
77635         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
77636
77637         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
77638
77639         * lib/error.h (error, error_at_line, error_print_progname)
77640         [! (defined (__STDC__) && __STDC__)]: Remove decls.
77641         * lib/error.c: Include error.h first, to check interface.
77642         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77643         (VA_START): Remove; all uses changeed to va_start.
77644         (exit, strerror): Remove decls.
77645         (error_print_progname): Prototype uncondionally.
77646         Don't include <errno.h>; no longer needed.
77647         (private_strerror): Remove.
77648         (error_tail): Always define.
77649         (error, error_at_line): Assume C89 or better; always use prototypes.
77650         * lib/fatal.c: Include "fatal.h" first, to test interface.
77651         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
77652         (VA_START): Remove; all uses changed to va_start.
77653         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
77654         this case.
77655         (exit): Remove decl.
77656         (fatal): Prototype unconditionally.  Assume va_start works.
77657         Abort at end, to pacify gcc.
77658
77659         * lib/euidaccess.c (main): Define with a prototype.
77660
77661         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
77662
77663         * lib/exitfail.c: Include <stdlib.h> unconditionally.
77664
77665         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
77666         prototypes.
77667         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
77668         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
77669         (getenv): Remove decl.
77670         (fnmatch): Define using a prototype.
77671         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
77672         (FCT): Define using a prototype.
77673
77674         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
77675
77676         * lib/gethostname.c: Include <stddef.h>.
77677         (gethostname): Define with prototype.  Length is size_t, not int.
77678
77679 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77680
77681         Assume C89 or better; remove K&R cruft.
77682         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
77683         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
77684         string.h, getenv, malloc.
77685         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
77686         headers.
77687         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
77688         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
77689         do not check for strerror.
77690         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
77691         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
77692         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
77693         do not check for doprnt or vprintf.
77694         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
77695         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
77696
77697 2003-09-08  Paul Eggert  <eggert@twinsun.com>
77698
77699         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
77700         getversion.c should have been removed then, but was accidentally
77701         preserved.
77702
77703         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
77704         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
77705
77706 2003-09-08  Karl Berry  <karl@gnu.org>
77707
77708         * config/config.sub, config.guess, srclistvars.sh: update from savannah
77709                 config, forget about prep.
77710
77711         * config/depcomp, missing: update from automake.
77712
77713 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77714
77715         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
77716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77717
77718 2003-09-07  Paul Eggert  <eggert@twinsun.com>
77719
77720         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
77721         copy_tm_result.  Bug reported by Simon Josefsson in
77722         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
77723
77724 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77725
77726         * m4/time_r.m4: New file.
77727         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
77728         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
77729         is. Check for timegm declaration.
77730         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
77731         Do not check for gmtime_r.
77732         Replace mktime if __mktime_internal does not exist and if mktime
77733         hasn't been replaced already.
77734
77735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77736
77737         * lib/time_r.c, lib/time_r.h: New files.
77738
77739         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
77740         __localtime_r.
77741         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
77742         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
77743
77744         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
77745         __gmtime_r.
77746         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
77747         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
77748         Include <time_r.h>.
77749
77750         * lib/timegm.c: Switch to glibc implementation, with the following
77751         changes:
77752         [defined HAVE_CONFIG_H]: Include <config.h>.
77753         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
77754         (__mktime_internal) [!defined _LIBC]: New decl.
77755         (__gmtime_r) [!defined _LIBC]: New macro and function.
77756         (timegm): Use a prototype, since gnulib assumes C89.
77757         Do not bother declaring tmp to be const, as it's not really usefu.
77758         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
77759         (timegm): Declare only if HAVE_DECL_TIMEGM.
77760
77761 2003-09-06  Paul Eggert  <eggert@twinsun.com>
77762
77763         * MODULES.html.sh (func_all_modules): Add time_r.
77764         * modules/time_r: New file.
77765         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
77766         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
77767
77768 2003-09-03  Paul Eggert  <eggert@twinsun.com>
77769
77770         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
77771         Bug reported by Lute Kamstra in
77772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
77773
77774         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
77775         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
77776         course with correspondingly smaller numbers for tomorrow and
77777         yesterday.  From Tadayoshi Funaba.  Originally installed into
77778         sh-utils on 1999-08-07, but the patch got lost (I guess during the
77779         coreutils merge?).
77780
77781 2003-08-31  Simon Josefsson  <jas@extundo.com>
77782
77783         * modules/timegm: New file.
77784         * MODULES.html.sh (func_all_modules): Add timegm.
77785
77786 2003-08-31  Simon Josefsson  <jas@extundo.com>
77787
77788         * m4/timegm.m4: New file.
77789
77790 2003-08-31  Simon Josefsson  <jas@extundo.com>
77791
77792         * lib/timegm.h: New file.
77793         * lib/timegm.c: New file.  Based on
77794         wget-1.8.2/src/http.c:mktime_from_utc.
77795
77796 2003-08-31  Karl Berry  <karl@gnu.org>
77797
77798         * lib/argp.h: update from libc.
77799
77800 2003-08-28  Bruno Haible  <bruno@clisp.org>
77801
77802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
77803         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
77804         followed by '#define fnmatch fnmatch_posix' gives an error.
77805
77806 2003-08-28  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
77809         warning on QNX, which defines O_BINARY to 000000.
77810
77811 2003-08-27  Jim Meyering  <jim@meyering.net>
77812
77813         * m4/mkstemp.m4: Require that the system mkstemp be able to create
77814         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
77815         would fail after 32.  Reported by Danny Levinson.  Details here:
77816         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
77817
77818 2003-08-24  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
77821         MSVC7 <stdio.h> is included later.
77822
77823 2003-08-22  Simon Josefsson  <jas@extundo.com>
77824
77825         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
77826
77827 2003-08-20  Karl Berry  <karl@gnu.org>
77828
77829         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
77830
77831 2003-08-20  Bruno Haible  <bruno@clisp.org>
77832
77833         * modules/progname: New file.
77834         * MODULES.html.sh (func_all_modules): Add progname.
77835
77836 2003-08-20  Bruno Haible  <bruno@clisp.org>
77837
77838         * lib/progname.h: New file, from GNU gettext.
77839         * lib/progname.c: New file, from GNU gettext.
77840         * lib/progreloc.c: New file, from GNU gettext.
77841
77842 2003-08-19  Jim Meyering  <jim@meyering.net>
77843
77844         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
77845         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
77846
77847 2003-08-19  Bruno Haible  <bruno@clisp.org>
77848
77849         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
77850         more.
77851
77852 2003-08-19  Bruno Haible  <bruno@clisp.org>
77853
77854         * lib/xstrdup.c: Assume <string.h> exists.
77855
77856 2003-08-18  Paul Eggert  <eggert@twinsun.com>
77857
77858         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
77859         in makefile rules.
77860
77861 2003-08-18  Jim Meyering  <jim@meyering.net>
77862
77863         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
77864         * m4/lib-ld.m4: Likewise.
77865
77866 2003-08-18  Jim Meyering  <jim@meyering.net>
77867
77868         * lib/setenv.h: Indent nested cpp directive.
77869         * lib/vasnprintf.c: Remove trailing blanks.
77870
77871 2003-08-17  Simon Josefsson  <jas@extundo.com>
77872
77873         * modules/xstrndup: New file.
77874         * MODULES.html.sh (func_all_modules): Add xstrndup.
77875
77876 2003-08-17  Simon Josefsson  <jas@extundo.com>
77877
77878         * modules/argp: Fix autoconf macro name. Add more dependencies.
77879
77880 2003-08-17  Simon Josefsson  <jas@extundo.com>
77881
77882         * m4/xstrndup.m4: New file.
77883
77884 2003-08-17  Simon Josefsson  <jas@extundo.com>
77885
77886         * m4/argp.m4: New file.
77887
77888 2003-08-17  Simon Josefsson  <jas@extundo.com>
77889             Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/xstrndup.h: New file.
77892         * lib/xstrndup.c: New file.
77893
77894 2003-08-17  Bruno Haible  <bruno@clisp.org>
77895
77896         * modules/strndup (Files, Include): Add lib/strndup.h.
77897
77898 2003-08-17  Bruno Haible  <bruno@clisp.org>
77899
77900         * modules/euidaccess (Files): Add lib/euidaccess.h.
77901
77902 2003-08-17  Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/strndup.h: New file.
77905
77906 2003-08-17  Bruno Haible  <bruno@clisp.org>
77907
77908         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
77909         like AC_GNU_SOURCE.
77910         * modules/extensions (configure.ac): Comment out the invocation of
77911         gl_USE_SYSTEM_EXTENSIONS.
77912
77913 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77914
77915         Merges from coreutils, etc.
77916         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
77917         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
77918         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
77919         fixing a typo.
77920         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
77921         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
77922
77923 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77924
77925         Document merge from coreutils.
77926         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
77927         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
77928         * modules/utime: Add m4/utimes-null.m4.
77929
77930 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77931
77932         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
77933         space, undoing this 2003-08-12 change:
77934         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77935
77936 2003-08-16  Paul Eggert  <eggert@twinsun.com>
77937
77938         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
77939         strtoul.c from libc, undoing this 2003-08-12 change:
77940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
77941
77942 2003-08-16  Jim Meyering  <jim@meyering.net>
77943
77944         Merges from coreutils.
77945         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
77946         prefix.  Adjust cache variables similarly.  Create 500 rather than
77947         just 300 files, to exercise bug on Darwin6.5, too.
77948         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
77949         $missing_dir.
77950         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
77951         AM_SYS_POSIX_TERMIOS.
77952         Reported by mkc@mathdogs.com.
77953         Also change use of $am_cv_sys_posix_termios
77954         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
77955         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
77956         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
77957         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
77958         in /proc/mounts until it finds one with matching device number.  This
77959         is unnecessary when the FILE argument *is* a mount point.  No stat call
77960         is necessary in that case.  So, disable the statvfs-testing code on
77961         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
77962         as RedHat bug# 84846.
77963         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77964         to 1MB, so as not to render systems with no stack size limit (e.g.,
77965         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77966         Include <unistd.h>.  On some systems,
77967         it is required for the definition of _SC_PAGESIZE.
77968
77969 2003-08-16  Jim Meyering  <jim@meyering.net>
77970
77971         Merge from coreutils.
77972         * lib/xstrtoimax.c: #else #if -> #elif.
77973         * lib/xstrtoumax.c: Likewise.
77974
77975 2003-08-16  Jim Meyering  <jim@meyering.net>
77976
77977         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
77978         * m4/utimes.m4: Removed.
77979         * m4/utimes-null.m4: Renamed from utimes.m4.
77980
77981         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
77982         to 1MB, so as not to render systems with no stack size limit (e.g.,
77983         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
77984         Include <unistd.h>.  On some systems,
77985         it is required for the definition of _SC_PAGESIZE.
77986
77987 2003-08-16  Jim Meyering  <jim@meyering.net>
77988         and Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         Merges from coreutils, etc.
77991
77992         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
77993         using the latest version from cvs.  This avoids problems with #line
77994         directives using a vendor (Sun) compiler.
77995         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
77996         Don't set GETGROUPS_LIB here; now it's
77997         done via getgroups.m4's wrapper function.
77998         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
77999         rather than just in sh-util/configure.in, so that the
78000         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78001         same.
78002         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78003         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78004         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78005         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78006         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78007         Remove code that is now done by the newly-required macros.
78008         Append $(EXEEXT) to DF_PROG.
78009         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78010         Do not invoke or require the following here,
78011         since prereq.m4 or some gnulib .m4 now does this for us:
78012         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78013         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78014         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78015         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78016         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78017         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78018         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78019         AC_FUNC_OBSTACK.
78020         Do not replace the following functions, as this is now the job
78021         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78022         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78023         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78024         atexit getpass, strdup, getpagesize.
78025         Replace 'raise'.
78026         Do not check for the following functions, as this is now the job
78027         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78028         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78029         setregid.
78030         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78031         Check for sys/sysctl.h.
78032         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78033         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78034         of checking for ssize_t ourselves.
78035
78036         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78037         Require every macro that gnulib/modules/* suggests for us.
78038         (jm_PREREQ_ADDEXT): New macro.
78039         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78040         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78041
78042         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78043         (gl_PHYSMEM): Use it.
78044         Also check for `table' function.
78045         Check for new headers and functions.
78046         Add check for sys/sysmp.h.
78047         With suggestions from Kaveh Ghazi.
78048         Ignore headers that are present but cannot be compiled.  This
78049         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78050         C 5.4.
78051
78052 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78053
78054         Document merge from coreutils.
78055         * modules/userspec: Depend on posixver.
78056         * modules/strftime: Depend on tzset.
78057
78058 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78059
78060         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78061         rather than tab, after '#' in shell-script copyright notices.
78062         Suggested by Bruno Haible.
78063
78064 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78065
78066         * config/srclist-update: Use three spaces, rather than tab, after '#'
78067         in shell-script copyright notices.  Suggested by Bruno Haible.
78068         Remove unnecessary parenthesization in regular expression.
78069
78070 2003-08-15  Jim Meyering  <jim@meyering.net>
78071
78072         Merge from coreutils.
78073         * lib/xgethostname.c: Include <stdlib.h>.
78074         (xghostname): Don't exit for anything other than memory-related
78075         failure; just return NULL.
78076         * lib/userspec.c: Include "posixver.h".
78077         (parse_user_spec): Accept `.' as a separator only
78078         in pre-POSIX-200112 mode.
78079         * lib/strtoimax.c: Use #elif rather than #else #if.
78080         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78081         Remove function, now that we can rely on a working tzset function.
78082         [!_LIBC]: Ensure that the required autoconf test has been run.
78083         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78084         Use underlying_strftime for %r.
78085         * lib/sha.c: Merge in some clean-up and optimization changes from
78086         glibc.
78087         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78088         Ensure that it is a multiple of 64.
78089         Rearrange loop exit tests so as to avoid performing an
78090         additional fread after encountering an error or EOF.
78091         * lib/realloc.c: Update copyright date.
78092
78093 2003-08-15  Jim Meyering  <jim@meyering.net>
78094         and Paul Eggert  <eggert@twinsun.com>
78095
78096         Merge from coreutils.
78097         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78098         member but strut utmpx does not.  Needed for AIX 4.3.3.
78099         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78100
78101 2003-08-15  Jim Meyering  <jim@meyering.net>
78102         and Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         Merges from coreutils, etc.
78105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78106         Require gl_FUNC_TZSET_CLOBBER.
78107         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78108         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78109         members.
78110
78111 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78112
78113         Help the merge from coreutils.
78114         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78115         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78116         * m4/tzset.m4: Use it too.
78117
78118 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78119
78120         * modules/tzset: New file.
78121
78122 2003-08-14  Jim Meyering  <jim@meyering.net>
78123
78124         Merges from coreutils.
78125         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78126         variable names, rather than @FNMATCH_H@.
78127         * modules/alloca: Likewise for $(ALLOCA_H).
78128
78129         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78130         the three copies of the literal target, `fnmatch.h'.
78131         * modules/alloca (alloca.h): Likewise.
78132
78133 2003-08-14  Jim Meyering  <jim@meyering.net>
78134
78135         Merge from coreutils.
78136         * m4/tzset.m4: New file.
78137         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78138         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78139         otherwise, AIX 5.1 systems would end up using the latter.
78140         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78141         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78142         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78143         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78144
78145 2003-08-14  Jim Meyering  <jim@meyering.net>
78146
78147         Merge from coreutils.
78148         * lib/obstack.h: Whitespace changes.
78149         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78150         and xcalloc return values.
78151         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78152         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78153         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78154         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78155         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78156         error from mntctl.
78157         Use mntctl's return value to drive the entry-processing loop, since
78158         we can't rely on the value of the vmt_length member in the last
78159         entry.  On some systems doing so could result in exhausting
78160         virtual memory.  Based in part on a patch from Mike Jetzer.
78161
78162 2003-08-14  Jim Meyering  <jim@meyering.net>
78163         and Paul Eggert  <eggert@twinsun.com>
78164
78165         Merges from coreutils, plus other fixes.
78166         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78167         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78168         for credits and details.  Thanks to Kaveh Ghazi for helping
78169         to keep these files in sync.
78170         (ARRAY_SIZE): Define it.
78171         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78172         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78173         (memcasecmp): Don't assume size_t fits in unsigned int.
78174         Remove casts and duplicate code.
78175         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78176         (memcpy): Remove definition.
78177         Merge in some clean-up and optimization changes from glibc.
78178         [BLOCKSIZE]: Move definition to top of file.
78179         Ensure that it is a multiple of 64.
78180         Rearrange loop exit tests so as to avoid performing an
78181         additional fread after encountering an error or EOF.
78182         * lib/md5.h (md5_uintptr): Define.
78183         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78184         return to the initial working directory.  Preserve errno
78185         for caller.
78186         * lib/idcache.c: Include "xalloc.h".
78187         (xmalloc, xrealloc): Remove decls.
78188         (getuser): Remove casts no longer required in C89.
78189         * lib/human.c: Include stdio.h, for sprintf.
78190         * lib/group-member.c: Include "xalloc.h".
78191         (xmalloc, xrealloc): Remove decls.
78192         (get_group_info): Remove casts no longer required in C89.
78193         * lib/getusershell.c (readname): Remove casts no longer required in
78194         C89.
78195         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78196         * lib/getline.c: Whitespace fix, from coreutils.
78197
78198 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78199
78200         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78201         Check for isascii.
78202
78203         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78204         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78205         Undo previous (whitespace-only) change.
78206
78207 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78208
78209         * lib/exclude.c: Include <ctype.h>
78210         (IN_CTYPE_DOMAIN): New macro.
78211         (is_space): New fn.
78212         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78213         and empty lines.
78214
78215         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78216         Undo previous (whitespace-only) change.
78217
78218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78219
78220         * config/srclist-update: Change update back to the old behavior,
78221         leaving whitespace alone.  Use one 'sed' command rather than a
78222         pipeline.
78223         (fixlicense): Now a variable, not a function.
78224         (remove_trailing_blanks): Remove.
78225         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78226         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78227         Undo previous (whitespace-only) change.
78228
78229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78230
78231         Merge from coreutils.
78232         * modules/euidaccess: Add lib_SOURCES, include for new
78233         file euidaccess.h
78234
78235 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78236
78237         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78238         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78239         Normalize leading white space and remove trailing white space.
78240
78241         Merge from coreutils
78242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78243
78244         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78245         0.12.1.  These files are now being upgraded automatically by
78246         ../config/srclist-update.
78247
78248 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78249
78250         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78251         Normalize leading white space and remove trailing white space.
78252         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78253         notice, as per ../config/srclist-update.
78254
78255         Merge from coreutils.
78256         * lib/euidaccess.h: New file.
78257         * lib/euidaccess.c: Include it.
78258         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78259         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78261
78262 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78263
78264         * config/srclist-update: Add copyright notice.
78265         (remove_id_lines, remove_trailing_blanks): New constants.
78266         (fixfile): Use them to normalize spacing a bit in copied files.
78267         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78268         Normalize leading white space and remove trailing white space.
78269
78270         * config/texinfo.tex: Sync with texinfo.
78271
78272         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78273         strtoul.c from libc, to merge coreutils whitespace changes.
78274
78275         * config/srclist.txt: Get the following m4 files from gettext:
78276         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78277         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78278         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78279         wint_t.m4.
78280
78281 2003-08-12  Karl Berry  <karl@gnu.org>
78282
78283         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78284         been made.
78285
78286 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78287
78288         * modules/gnu-source, m4/gnu-source.m4:
78289         Remove; we're assuming Autoconf 2.54 or later now.
78290         Suggested by Bruno Haible.
78291         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78292
78293 2003-08-11  Bruno Haible  <bruno@clisp.org>
78294
78295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78296
78297 2003-08-11  Bruno Haible  <bruno@clisp.org>
78298
78299         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78300         (vasnprintf): Use it instead of wcslen.
78301
78302 2003-08-11  Bruno Haible  <bruno@clisp.org>
78303
78304         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78305         value to ensure that _Bool promotes to int. Use #define for _Bool when
78306         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78307
78308 2003-08-10  Karl Berry  <karl@gnu.org>
78309
78310         * lib/regex.h: update from libc (whitespace fix).
78311
78312 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78313
78314         Merge some files from coreutils.  These changes were
78315         originally made by Jim Meyering.
78316         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78317         many older Unixes require this.
78318         * lib/alloca.c (alloca): Remove cast to argument of free;
78319         no longer needed in C89.
78320         * lib/alloca_.h, regex.h: Fix white space to match
78321         what GNU indent does.
78322
78323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78324
78325         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78326         apparently Emacs's Unicode mode got confused before my 2003-08-05
78327         checkin.
78328
78329 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78330
78331         * m4/extensions.m4: New file.
78332         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78333         Require gl_USE_SYSTEM_EXTENSIONS.
78334         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78335         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78336
78337 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78338
78339         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78340         * modules/extensions, modules/gnu-source: New files.
78341         * modules/timespec, modules/unlocked-io: Depend on extensions.
78342
78343 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78344
78345         * modules/restrict: New file.
78346         * MODULES.html.sh (func_all_modules): Add restrict.
78347         * modules/regex: Depend on restrict.
78348
78349 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78350
78351         * m4/restrict.m4: New file.
78352         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78353
78354 2003-08-07  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78357         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78358
78359 2003-08-07  Bruno Haible  <bruno@clisp.org>
78360
78361         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78362         makes the module 'getndelim2' compatible with the module 'getline'.
78363
78364 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78365
78366         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78367         byte with "\201" to avoid glitches when editing that source file
78368         with multi-gnome-terminal.
78369
78370 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78371
78372         * lib/bumpalloc.h: Remove.
78373
78374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78375
78376         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78377         * modules/bumpalloc: Remove.
78378
78379 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78380
78381         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78382         GNU coding style.
78383
78384         Merge from coreutils.
78385         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78386         1. From glibc.
78387         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78388         from Karl Berry, implemented by Jim Meyering.
78389         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78390         from Dmitry V. Levin.
78391         Remove anachronistic cast of xrealloc.
78392         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78393         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78394         type. Otherwise, it wouldn't compile with at least /bin/cc on
78395         ymp-cray-unicos9.0.2.X.
78396         Combine two mostly-identical uses of alloca into one.
78397         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78398
78399 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78400
78401         [From Emacs.]
78402
78403         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78404         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78405         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78406         obsolete NLIST_NAME_UNION.
78407         [__GNU__]: Undef BSD and FSCALE.
78408         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78409
78410 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78411
78412         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78413         an enum type, so that it's guaranteed to promote to int.  See:
78414         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78415
78416 2003-08-03  Karl Berry  <karl@gnu.org>
78417
78418         * config/depcomp: update from automake.
78419
78420 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78421
78422         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78423         (strerror): Don't assume that a printable int fits in 14 bytes.
78424
78425 2003-07-31  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/getpass-gnu: New file.
78428         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78429
78430 2003-07-31  Bruno Haible  <bruno@clisp.org>
78431
78432         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78433
78434 2003-07-24  Karl Berry  <karl@gnu.org>
78435
78436         * config/missing: update from automake.
78437
78438 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78439             Bruno Haible  <bruno@clisp.org>
78440
78441         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78442         * lib/getline.c (getline, getdelim): Likewise.
78443         Remove _GNU_SOURCE define; now it's defined in config.h through
78444         m4/getline.m4.
78445
78446 2003-07-23  Karl Berry  <karl@gnu.org>
78447
78448         * config/config.sub: update from prep.
78449
78450 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78451
78452         * modules/xalloc (Depends-on): Add exitfail.
78453         * modules/xmemcoll: Likewise.
78454
78455 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78456
78457         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78458         over-parenthesization in macros.
78459
78460         Sync with coreutils.
78461
78462         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78463         required by C99.
78464
78465         Use `exit_failure' for xalloc and xmemcoll instead of their own
78466         private exit-failure variables.
78467         * lib/xalloc.h (xalloc_exit_failure): Remove.
78468         * lib/xmalloc.c: Likewise.  Include exitfail.h.
78469         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
78470         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
78471         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
78472         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
78473
78474 2003-07-20  Jim Meyering  <jim@meyering.net>
78475
78476         * modules/closeout (Depends-on): Add exitfail.
78477         Suggestion from Bruno Haible.
78478
78479 2003-07-19  Karl Berry  <karl@gnu.org>
78480
78481         * config/config.sub: update from prep.
78482
78483 2003-07-18  Paul Eggert  <eggert@twinsun.com>
78484
78485         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
78486         Remove.
78487         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
78488         to test that it can stand by itself.  Include "exitfail.h".
78489         Clients should set exit_failure instead.
78490         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
78491
78492 2003-07-18  Bruno Haible  <bruno@clisp.org>
78493
78494         * modules/getndelim2: New file.
78495         * modules/getline: Share files with module getndelim2.
78496         * modules/getnline: Depend on getndelim2 instead of sharing files with
78497         it. Add getnline.c to lib_SOURCES.
78498         * MODULES.html.sh (func_all_modules): Add getndelim2.
78499
78500 2003-07-18  Bruno Haible  <bruno@clisp.org>
78501
78502         * m4/getndelim2.m4: New file.
78503         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
78504         invoke gl_PREREQ_GETNDELIM2.
78505         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
78506         gl_PREREQ_GETNDELIM2.
78507         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
78508         gl_GETNDELIM2.
78509
78510 2003-07-18  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/getndelim2.h: New file.
78513         * lib/getndelim2.c: Make into a module of its own. Include config.h,
78514         getndelim2.h.
78515         (getndelim2): Make non-static. Change return type to ssize_t.
78516         * lib/getline.h: Change argument names.
78517         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
78518         * lib/getnline.c: Include getndelim2.h.
78519
78520 2003-07-18  Andreas Schwab  <schwab@suse.de>
78521
78522         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
78523
78524 2003-07-17  Karl Berry  <karl@gnu.org>
78525
78526         * config/config.sub: update from prep.
78527
78528 2003-07-17  Bruno Haible  <bruno@clisp.org>
78529
78530         * modules/getnline: New file.
78531         * modules/getline: Add lib/getndelim2.c to source file list.
78532         * MODULES.html.sh (func_all_modules): Add getnline.
78533
78534 2003-07-17  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/getnline.m4: New file.
78537
78538 2003-07-17  Bruno Haible  <bruno@clisp.org>
78539
78540         * m4/Makefile.am.in: Remove file.
78541         * m4/Makefile.am: Remove file.
78542         * m4/Makefile.in: Remove file.
78543
78544 2003-07-17  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/getnline.h: New file.
78547         * lib/getnline.c: New file.
78548         * lib/getndelim2.c: New file, extracted from getline.c.
78549         (getndelim2): Renamed from getdelim2, with added nmax argument.
78550         * lib/getline.c: Include getndelim2.c.
78551         (getdelim2): Moved out to getndelim2.c.
78552         (getline, getdelim): Update.
78553
78554 2003-07-17  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/Makefile.am: Remove file.
78557         * lib/Makefile.in: Remove file.
78558
78559 2003-07-17  Bruno Haible  <bruno@clisp.org>
78560
78561         * configure.in: Remove file.
78562         * Makefile.in: Remove file.
78563
78564 2003-07-17  Bruno Haible  <bruno@clisp.org>
78565
78566         * MODULES.html.sh: Put the </BODY> right before </HTML>.
78567
78568 2003-07-16  Karl Berry  <karl@gnu.org>
78569
78570         * config/srclist-update: was running fixlicense twice, which caused
78571                 texinfo.tex to be nullified for some reason.  Simplify,
78572                 $gplsrc is no longer needed as far as I can see?
78573
78574 2003-07-16  Jim Meyering  <jim@meyering.net>
78575
78576         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
78577
78578 2003-07-15  Paul Eggert  <eggert@twinsun.com>
78579
78580         * config/srclist.txt: Get the following files from gettext-runtime/intl
78581         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
78582         ref-del.sin.  From Bruno Haible.
78583         * config/srclist-update (fixfile): Change grep pattern again, since the
78584         previous fix didn't work (there was another trailing $).  Use
78585         '[$]' to escape the $s.
78586
78587 2003-07-15  Karl Berry  <karl@gnu.org>
78588
78589         * lib/vasnprintf.c: update from gettext.
78590
78591 2003-07-15  Karl Berry  <karl@gnu.org>
78592
78593         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
78594         gets expanded when surrounded by '$'.
78595
78596 2003-07-15  Jim Meyering  <jim@meyering.net>
78597
78598         * modules/save-cwd: Don't depend on error.  From Derek Price.
78599
78600 2003-07-15  Jim Meyering  <jim@meyering.net>
78601
78602         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
78603
78604 2003-07-14  Simon Josefsson  <jas@extundo.com>
78605
78606         * modules/mempcpy: New file.
78607         * MODULES.html.sh (func_all_modules): Add mempcpy.
78608
78609 2003-07-14  Simon Josefsson  <jas@extundo.com>
78610
78611         * m4/mempcpy.m4: New file.
78612
78613 2003-07-14  Simon Josefsson  <jas@extundo.com>
78614
78615         * lib/mempcpy.h: New file.
78616         * lib/mempcpy.c: New file.
78617
78618 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78619
78620         * modules/getdate, modules/posixtm: Depend on mktime.
78621
78622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78623
78624         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
78625         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
78626         unicodeio.c, unicodeio.h, unlocked-io.h:
78627         Switch from LGPL to GPL.
78628
78629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78630
78631         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
78632         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
78633         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
78634         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
78635         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
78636         updated automatically by ../config/srclist-update.  This changes
78637         their license from LPGL to GPL.
78638
78639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
78640
78641         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
78642         assumed to refer to the root of the most recent stable gettext version.
78643         * config/srclistvars.sh: Add defaults for eggert.
78644         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
78645         Match "This program" as well as "The program".  This is needed
78646         for gettext.
78647
78648 2003-07-14  Jim Meyering  <jim@meyering.net>
78649
78650         Don't emit diagnostics.  Let callers do that.
78651         * lib/save-cwd.c: Don't include "error.h".
78652         (save_cwd): Don't call error.  Ensure that errno is valid
78653         when returning nonzero.
78654
78655         * lib/save-cwd.h (restore_cwd): Update prototype.
78656         * lib/save-cwd.c (restore_cwd): Remove two parameters.
78657         Simplify.  Don't call error upon failure.  Let callers do that.
78658         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
78659         when auditing is enabled.  But don't bother updating the #if.
78660
78661 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
78662
78663         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
78664         it breaks C++ compilation.
78665         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
78666
78667 2003-07-10  Simon Josefsson  <jas@extundo.com>
78668
78669         * modules/strchrnul (Makefile.am): Add strchrnul.h.
78670
78671 2003-07-10  Jim Meyering  <jim@meyering.net>
78672
78673         * m4/clock_time.m4: Remove trailing blank.
78674         * m4/intmax_t.m4: Likewise.
78675
78676 2003-07-10  Jim Meyering  <jim@meyering.net>
78677
78678         * lib/vasnprintf.c: Remove trailing blanks.
78679         Make cpp indentation consistent.
78680
78681 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78682
78683         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
78684         posixver.c, strftime.c, strnlen.c, strverscmp.c:
78685         Switch from LGPL to GPL.
78686
78687 2003-07-09  Paul Eggert  <eggert@twinsun.com>
78688
78689         * config/srclist.txt: Sort sublists.  Add
78690         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
78691         that differ from gnulib for one reason or another; we'd like this list
78692         to be smaller but for now let's document what we have.
78693
78694 2003-07-08  Paul Eggert  <eggert@twinsun.com>
78695
78696         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
78697         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
78698         and sweeter "eval x=$x".
78699         * config/srclist.txt: Get lib/argp* from glibc.
78700
78701 2003-07-07  Paul Eggert  <eggert@twinsun.com>
78702
78703         * lib/mktime.c: Fix some boundary cases and remove need for floating
78704         point.
78705
78706         Issue a compile-time diagnostic if time_t is floating point, or if
78707         two's complement arithmetic is not in effect, or if arithmetic
78708         right shift does not propagate the sign.  These assumptions were
78709         all in the original code but they weren't checked.
78710
78711         (TIME_T_MIDPOINT, verify): New macros.
78712         (__isleap): Remove; it has integer overflow problems.
78713         (leapyear): New function, without those problems.
78714         (ydhms_tm_diff): Remove; splitting into two parts.
78715         (ydhms_diff): New function, containing the arithmetic part of
78716         the old ydhms_tm_diff function.  Issue a compile-time
78717         diagnostic if we are not using C99 integer division.
78718         Avoid casts when possible.
78719         (guess_time_tm): New function, containing the checking part of
78720         the old ydhms_tm_diff function.  Return the new value, rather than
78721         the difference between it and the old.  Accept a new argument T
78722         so that *T specifies the old value.  Check for overflow in the result.
78723
78724         (__mktime_internal): Use a time_t offset, not a long int offset.
78725         This undoes the 2003-06-04 change, which is no longer needed now
78726         that we have better overflow checking.
78727         (localtime_offset): Likewise.
78728
78729         (__mktime_internal): Avoid harmful overflow on hosts where time_t
78730         and long are 64-bit but int is only 32-bit.
78731         (ydhms_diff): Use long int to store year1 and yday1.
78732         Issue a compile-time diagnostic if long int is not wide enough.
78733
78734         (__mktime_internal): Use long int to store adjusted year and yday.
78735         Use plain C rather than preprocessor commands, if that doesn't
78736         affect efficiency.
78737         Check for overflow (and try to repair) after each probe
78738         rather than checking only at the very end.  This avoids some bugs
78739         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
78740         does not equal GMT offset at maximum time).
78741         Use integer to check for overflow rather than floating point; this
78742         is more portable to non-IEEE hosts, and is a tad faster.
78743         When we detect that we are oscillating between two values,
78744         don't check whether tm_isdst has the requested value, since
78745         we already know the answer.  When tm_isdst has the wrong value,
78746         use a different heuristic to find the right one, based on the
78747         extreme values actually observed in practice in tz2003a,
78748         rather than the (overly optimistic) "previous 3 calendar quarters".
78749
78750         (not_equal_tm, print_tm, check_result): Use "const T" rather than
78751         "T const" to accommodate glibc style.
78752         (check_result): Use less-confusing report format.  "long" -> "long int.
78753         (main): Likewise.
78754         Don't loop if the iteration overflows time_t.
78755         Allow a negative step in the iteration.
78756
78757 2003-07-06  Karl Berry  <karl@gnu.org>
78758
78759         * config/depcomp: update from automake.
78760         * config/config.sub: update from prep.
78761
78762 2003-07-03  Karl Berry  <karl@gnu.org>
78763
78764         * config/config.guess: update from prep.
78765
78766 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78767
78768         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
78769         xreadlink.c now includes it unconditionally.
78770
78771 2003-07-01  Paul Eggert  <eggert@twinsun.com>
78772
78773         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
78774         having it depend on HAVE_SYS_TYPES_H.
78775
78776 2003-07-01  Bruno Haible  <bruno@clisp.org>
78777
78778         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
78779         <sys/types.h> should be sufficient.
78780         Reported by Paul Eggert.
78781
78782 2003-06-26  Karl Berry  <karl@gnu.org>
78783
78784         * config/depcomp: update from automake.
78785
78786 2003-06-26  Bruno Haible  <bruno@clisp.org>
78787
78788         * modules/human: Depend on module stdbool.
78789
78790 2003-06-25  Bruno Haible  <bruno@clisp.org>
78791
78792         * modules/readlink: New file.
78793         * modules/xreadlink: Depend on it.
78794         * MODULES.html.sh (func_all_modules): Add readlink.
78795
78796 2003-06-25  Bruno Haible  <bruno@clisp.org>
78797
78798         * m4/readlink.m4: New file.
78799
78800 2003-06-25  Bruno Haible  <bruno@clisp.org>
78801
78802         * lib/readlink.c: New file.
78803
78804 2003-06-22  Karl Berry  <karl@gnu.org>
78805
78806         * config/srclist.txt: update mkinstalldirs from automake.
78807         * config/mkinstalldirs: update.
78808
78809 2003-06-22  Bruno Haible  <bruno@clisp.org>
78810
78811         Portability to mingw32.
78812         * m4/ssize_t.m4: New file, from GNU gettext.
78813         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
78814         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
78815
78816 2003-06-22  Bruno Haible  <bruno@clisp.org>
78817
78818         * modules/safe-read: Add m4/ssize_t.m4.
78819         * modules/xreadlink: Add m4/ssize_t.m4.
78820
78821 2003-06-20  Bruno Haible  <bruno@clisp.org>
78822
78823         Assume C89, so PARAMS isn't needed.
78824         * lib/unicodeio.h (PARAMS): Remove.
78825         * lib/unicodeio.c: Don't use PARAMS.
78826
78827 2003-06-18  Karl Berry  <karl@gnu.org>
78828
78829         * config/config.{guess,sub}: update from prep.
78830
78831 2003-06-18  Jim Meyering  <jim@meyering.net>
78832
78833         Merge changes from coreutils.
78834         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
78835         Remove explicit declarations of xmalloc and realloc.
78836         Include xalloc.h.
78837         (read_utmp): Remove anachronistic cast of xmalloc.
78838
78839 2003-06-17  Paul Eggert  <eggert@twinsun.com>
78840
78841         Assume C89, so PARAMS isn't needed.
78842         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
78843         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
78844         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
78845         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
78846         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
78847         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
78848         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
78849         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
78850         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
78851         lib/xstrtod.h, lib/xstrtol.h: Likewise.
78852         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
78853         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
78854         no longer needed. Anyway, config.h should always be included before any
78855         other file.
78856
78857 2003-06-11  Simon Josefsson  <jas@extundo.com>
78858
78859         * modules/sysexits: New file.
78860         * MODULES.html.sh (func_all_modules): Add sysexits.
78861
78862 2003-06-11  Simon Josefsson  <jas@extundo.com>
78863
78864         * lib/sysexit_.h: New file.
78865
78866 2003-06-11  Derek Price  <derek@ximbiot.com>
78867
78868         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
78869         necessary.
78870
78871 2003-06-11  Bruno Haible  <bruno@clisp.org>
78872
78873         * m4/sysexits.m4: New file.
78874
78875 2003-06-10  Simon Josefsson  <jas@extundo.com>
78876
78877         * lib/argp.h: New file, from glibc.
78878         * lib/argp-ba.c: New file, from glibc.
78879         * lib/argp-eexst.c: New file, from glibc.
78880         * lib/argp-fmtstream.c: New file, from glibc.
78881         * lib/argp-fmtstream.h: New file, from glibc.
78882         * lib/argp-fs-xinl.c: New file, from glibc.
78883         * lib/argp-help.c: New file, from glibc.
78884         * lib/argp-namefrob.h: New file, from glibc.
78885         * lib/argp-parse.c: New file, from glibc.
78886         * lib/argp-pv.c: New file, from glibc.
78887         * lib/argp-pvh.c: New file, from glibc.
78888         * lib/argp-xinl.c: New file, from glibc.
78889
78890 2003-06-10  Simon Josefsson  <jas@extundo.com>
78891
78892         * modules/strchrnul: New file.
78893
78894 2003-06-10  Simon Josefsson  <jas@extundo.com>
78895
78896         * modules/argp: New file.
78897
78898 2003-06-10  Simon Josefsson  <jas@extundo.com>
78899
78900         * m4/strchrnul.m4: New file.
78901
78902 2003-06-10  Simon Josefsson  <jas@extundo.com>
78903
78904         * lib/strchrnul.h: New file.
78905         * lib/strchrnul.c: New file.
78906
78907 2003-06-10  Bruno Haible  <bruno@clisp.org>
78908
78909         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
78910
78911 2003-06-07  Karl Berry  <karl@gnu.org>
78912
78913         * config/config.{guess,sub}: update from prep.
78914
78915 2003-06-07  Jim Meyering  <jim@meyering.net>
78916
78917         * modules/strtod: Use $(...) notation, not @...@ for
78918         AC_REPLACE'd variables.
78919         * modules/localcharset: Likewise.
78920
78921 2003-06-07  Jim Meyering  <jim@meyering.net>
78922
78923         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
78924         in place of my name in the copyright comment.
78925         Remove definition and uses of __P.
78926
78927         From coreutils.
78928         * lib/stat.c: Don't declare xmalloc explicitly.
78929         Instead, include "xalloc.h".
78930         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
78931         xrealloc, and xcalloc return values.
78932         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
78933         Improve comment.
78934         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
78935
78936 2003-06-07  Bruno Haible  <bruno@clisp.org>
78937
78938         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
78939         avoid AC_CONFIG_LINKS.
78940         * modules/fnmatch (Makefile.am): Use explicit creation rule for
78941         fnmatch.h, to avoid AC_CONFIG_LINKS.
78942         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
78943
78944 2003-06-07  Bruno Haible  <bruno@clisp.org>
78945
78946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
78947         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
78948         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78949         directory.
78950         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
78951         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
78952         directory.
78953
78954 2003-06-06  Jim Meyering  <jim@meyering.net>
78955
78956         Merge from coreutils.
78957         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
78958         Consolidate declarations and initializations of *_base* locals.
78959
78960         Merge from coreutils.
78961         This avoids a core dump on systems without GNU putenv,
78962         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
78963         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
78964         (unsetenv): New static function, from GNU libc.
78965         (rpl_putenv): Use it.
78966
78967         * lib/modechange.c: Remove trailing blanks.
78968
78969         Merge from coreutils.
78970         * lib/fsusage.c: Remove declaration of statfs.
78971         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
78972
78973         * lib/posixtm.c: Include <stdbool.h> unconditionally.
78974
78975 2003-06-06  Jim Meyering  <jim@meyering.net>
78976
78977         * lib/stdbool_.h: Renamed from stdbool.h.in.
78978
78979 2003-06-06  Jim Meyering  <jim@meyering.net>
78980             Bruno Haible  <bruno@clisp.org>
78981
78982         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
78983         Adjust Makefile.am snippet not to redirect directly to target.
78984         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
78985
78986 2003-06-05  Paul Eggert  <eggert@twinsun.com>
78987
78988         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
78989         mismatch, look in future quarters as well as past.  This fixes a
78990         bug when processing fall-backwards gaps immediately after a long
78991         period of daylight-saving time.
78992
78993         * lib/mktime.c: Assume freestanding C89 or better.
78994         (HAVE_LIMITS_H): Remove.  Assume it's 1.
78995         (__P): Remove; not used.
78996         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
78997         (mktime, not_equal_tm, print_tm, check_result,
78998         main): Use prototypes.  Use const * where appropriate.
78999         (main): Fix typo in testing code that uncovered by above changes.
79000         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79001
79002 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79003
79004         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79005         locale.h, localeconv.  This merges changes from coreutils.
79006
79007         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79008         It can be removed after the next Autoconf is released.
79009         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79010         needed.
79011
79012 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79013
79014         * lib/mktime.c: Fix Debian bug 177940
79015         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79016         (localtime_offset): Now long int, not time_t, because we want it
79017         to be guaranteed to be signed.  All uses changed.
79018         (__mktime_internal): If overflow would occur when adding offset,
79019         don't add it.
79020
79021         Merge 'human' changes from coreutils.  Rewrite to support
79022         locale-specific notations like thousands separators.
79023         * lib/human.c: Simplify authorship notice.
79024         Include human.h immediately after config.h.
79025         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79026         <limits.h>: Do not include, since human.h does.
79027         (SIZE_MAX, UINTMAX_MAX): New macros.
79028         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79029         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79030         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79031         (power_letter): Renamed from suffixes.
79032         (generate_suffix_backwards): Remove.
79033         (adjust_value): Now takes int style (because of human.h changes)
79034         and long double value (for greater precision on some platforms).
79035         (group_number): New function.
79036         (human_readable): Use it.  Use integer options, not enum.
79037         Put the options before the sizes in the arg list.
79038         Support all the new options.
79039         The old human_readable function has been removed;
79040         use inttostr.h instead.
79041         (human_readable, default_block_size, humblock):
79042         Use uintmax_t, not int, for block sizes.
79043         (human_readable_inexact, block_size_types): Remove.
79044         (block_size_opts): New constant.
79045         (human_options): Renamed from human_block_size, with new signature
79046         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79047         * lib/human.h: Add copyright and authorship notice.
79048         Include <limits.h> and <stdbool.h> unconditionally.
79049         (PARAMS): Remove.  All uses removed.
79050         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79051         (enum human_inexact_style): Remove tag; now a nameless enum.
79052         (human_floor, human_ceiling, human_round_to_even): Now have
79053         values 2, 0, 1 rather than -1, 1, 0.
79054         (human_group_digits, human_suppress_point_zero, human_autoscale,
79055         human_base_1024, human_SI, human_B): New constants.
79056         (human_readable_inexact, human_block_size): Remove.
79057         (human_readable): Size args are now uintmax_t, not int.
79058         (human_options): New decl.
79059
79060         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79061         unnecessary now that we assume C89 or better.  This change
79062         imported from coreutils.
79063
79064         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79065         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79066         in the 2003-05-30 sync from glibc.
79067
79068         .h files should stand alone, but we shouldn't include <sys/types.h>
79069         if we can get away with just <stddef.h>.
79070
79071         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79072         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79073         rather than <sys/types.h>, as we merely need size_t.
79074         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79075         to get size_t.
79076         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79077         Include <stdio.h>, to get FILE.
79078         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79079         memcasecmp.h has included <stddef.h> and all we need is size_t.
79080         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79081         our interface, instead of including <sys/types.h>
79082
79083 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79084
79085         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79086         now, as glibc mktime is buggy on non-glibc systems.
79087
79088 2003-06-03  Karl Berry  <karl@gnu.org>
79089
79090         * config/config.sub: update from prep.
79091
79092 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79093
79094         [from coreutils]
79095         Fix some minor time-related bugs with POSIX time arguments.
79096         Some valid time stamps were being rejected (notably -1, and
79097         time stamps before 1900 on 64-bit hosts).  And some invalid
79098         time stamps were being accepted, e.g. September 31.
79099
79100         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79101         that we can return (time_t) -1 successfully.
79102         * lib/posixtm.c: Likewise.
79103         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79104         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79105         (t): Remove static var.
79106         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79107         of static var.  All uses changed.
79108         (year): Do not reject years before 1900; they can occur with
79109         64-bit time_t.
79110         (posix_time_parse): Do not check for out-of-range components;
79111         that is now the caller's responsibility, since our checks were
79112         only approximations.
79113         (posixtime): Use mktime to check for out-of-range components,
79114         since it knows them exactly.
79115         If mktime returns (time_t) -1, check whether an error actually occurred
79116         by invoking localtime on -1.
79117         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79118         posixtime failures better.
79119         Improve the test data (in comments only).
79120
79121 2003-06-02  Karl Berry  <karl@gnu.org>
79122
79123         * config/mkinstalldirs (version): new variable.
79124         (--version): new option.
79125         (usage): improve message.
79126
79127 2003-05-30  Karl Berry  <karl@gnu.org>
79128
79129         * lib/mktime.c: update from libc.
79130
79131 2003-05-30  Bruno Haible  <bruno@clisp.org>
79132
79133         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79134         * config/config.rpath: Upgrade to gettext-0.12.1.
79135
79136 2003-05-30  Bruno Haible  <bruno@clisp.org>
79137
79138         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79139         * m4/nls.m4: New file, from gettext-0.12.1.
79140         * m4/po.m4: New file, from gettext-0.12.1.
79141         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79142
79143 2003-05-30  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79146         * lib/localcharset.h: Likewise.
79147         * lib/localcharset.c: Likewise.
79148
79149 2003-05-29  Karl Berry  <karl@gnu.org>
79150
79151         * config/config.rpath: update from gettext.
79152
79153 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79154
79155         Assume the headers required for C89 freestanding compilers.
79156         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79157         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79158         * m4/human.m4 (gl_HUMAN): Likewise.
79159         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79160         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79161         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79162         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79163         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79164         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79165
79166 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79167
79168         Assume the headers required for C89 freestanding compilers.
79169         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79170         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79171         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79172         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79173         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79174         define, since <limits.h> is guaranteed to do that.
79175         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79176         * lib/exclude.c: Include <stdbool.h> unconditionally.
79177         * lib/tempname.c: Include <stddef.h> unconditionally.
79178         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79179         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79180         <stddef.h> does that.
79181         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79182         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79183         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79184         needed.
79185         * lib/xstrtol.c: Likewise.
79186         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79187         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79188
79189         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79190         warnings on some platforms.
79191
79192         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79193         arbitrarily.
79194
79195 2003-05-26  Jim Meyering  <jim@meyering.net>
79196
79197         Merge in a change from coreutils:
79198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79199         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79200         that condition, rather than `-1' which is slightly misleading.
79201         Change the name of the cache variable to have the gl_ prefix.
79202         Prompted by a patch from Richard Dawe for DJGPP.
79203
79204 2003-05-24  Karl Berry  <karl@gnu.org>
79205
79206         * config/config.guess: update from prep.
79207
79208 2003-05-22  Karl Berry  <karl@gnu.org>
79209
79210         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79211
79212 2003-05-20  Karl Berry  <karl@gnu.org>
79213
79214         * config/config.guess: update from prep.
79215
79216 2003-05-18  Karl Berry  <karl@gnu.org>
79217
79218         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79219         might actually be set by the user.
79220
79221         * config/depcomp, install-sh, mdate-sh: update from automake.
79222
79223 2003-05-17  Bruno Haible  <bruno@clisp.org>
79224
79225         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79226         invalid expansion for AC_EGREP_CPP.
79227         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79228         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79229         Suggested by Akim Demaille <akim@epita.fr> in
79230         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79231
79232 2003-05-12  Jim Meyering  <jim@meyering.net>
79233
79234         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79235         the space-padded-by-default conversion specifiers, %e, %k, %l.
79236
79237 2003-05-12  Bruno Haible  <bruno@clisp.org>
79238
79239         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79240         the string is longer than 4 KB.
79241
79242 2003-05-11  Karl Berry  <karl@gnu.org>
79243
79244         * config/config.{guess,sub}: update from prep.
79245
79246 2003-05-09  Bruno Haible  <bruno@clisp.org>
79247
79248         * modules/error: Add m4/strerror_r.m4 to file list.
79249
79250 2003-05-03  Bruno Haible  <bruno@clisp.org>
79251
79252         Upgrade to Unicode-4.0.
79253         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79254         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79255         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79256         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79257         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79258         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79259         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79260         Change width of U+E0100..U+E01EF from 1 to 0.
79261
79262 2003-04-25  Jim Meyering  <jim@meyering.net>
79263
79264         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79265         of type size_t, not int.
79266
79267 2003-04-25  Bruno Haible  <bruno@clisp.org>
79268
79269         * lib/copy-file.c: Include <stddef.h>, for size_t.
79270
79271 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79272
79273         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79274         code which expansion is under static control.  Patch imported from
79275         Akim Demaille's patch to Bison; see
79276         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79277
79278 2003-04-14  Bruno Haible  <bruno@clisp.org>
79279
79280         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79281
79282 2003-04-11  Jim Meyering  <jim@meyering.net>
79283
79284         Merge changes from Coreutils.
79285
79286         2003-03-22  Jim Meyering  <jim@meyering.net>
79287
79288         * lib/strftime.c (widen): Cast alloca return value to proper type.
79289
79290         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79291
79292         From GNU libc.
79293         * lib/strftime.c (my_strftime): Handle very large width
79294         specifications for numeric values correctly.  Improve checks for
79295         overflow.
79296
79297         2003-01-19  Jim Meyering  <jim@meyering.net>
79298
79299         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79300         definitions.
79301         (nl_get_alt_digit) [! defined my_strftime]: Define.
79302         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79303         _nl_get_alt_digit and _nl_get_walt_digit.
79304
79305         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79306         libc. These changes have no effect outside of _LIBC.
79307
79308 2003-04-10  Bruno Haible  <bruno@clisp.org>
79309
79310         * modules/findprog: New file.
79311         * MODULES.html.sh (func_all_modules): Add it.
79312
79313 2003-04-10  Bruno Haible  <bruno@clisp.org>
79314
79315         * m4/findprog.m4: New file.
79316         * m4/eaccess.m4: New file.
79317
79318 2003-04-10  Bruno Haible  <bruno@clisp.org>
79319
79320         * lib/findprog.h: New file, from GNU gettext.
79321         * lib/findprog.c: New file, from GNU gettext.
79322
79323 2003-04-05  Jim Meyering  <jim@meyering.net>
79324
79325         Merge changes from Coreutils.
79326
79327         * lib/exclude.h (PARAMS): Remove definition and uses.
79328         * lib/exclude.c: Remove uses of `PARAMS'.
79329
79330         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79331         Add test-cases for DOS filenames. Declare program_name.
79332         (main): Set up program_name.  Patch by Rich Dawe.
79333
79334         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79335         error from mntctl.
79336         Use mntctl's return value to drive the entry-processing loop, since
79337         we can't rely on the value of the vmt_length member in the last
79338         entry.  On some systems doing so could result in exhausting
79339         virtual memory.  Based in part on a patch from Mike Jetzer.
79340
79341 2003-04-04  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/linebreak: New file.
79344         * MODULES.html.sh (func_all_modules): Add it.
79345
79346 2003-04-04  Bruno Haible  <bruno@clisp.org>
79347
79348         * m4/linebreak.m4: New file.
79349
79350 2003-04-04  Bruno Haible  <bruno@clisp.org>
79351
79352         * lib/linebreak.h: New file, from GNU gettext.
79353         * lib/linebreak.c: New file, from GNU gettext with slight
79354         modifications.
79355         * lib/lbrkprop.h: New file, from GNU gettext.
79356
79357 2003-04-03  Bruno Haible  <bruno@clisp.org>
79358
79359         * modules/utf8-ucs4: New file.
79360         * modules/utf16-ucs4: New file.
79361         * modules/ucs4-utf8: New file.
79362         * modules/ucs4-utf16: New file.
79363         * MODULES.html.sh (func_all_modules): Add them.
79364
79365 2003-04-03  Bruno Haible  <bruno@clisp.org>
79366
79367         * m4/utf-ucs4.m4: New file.
79368         * m4/ucs4-utf.m4: New file.
79369
79370 2003-04-03  Bruno Haible  <bruno@clisp.org>
79371
79372         * lib/utf8-ucs4.h: New file, from GNU gettext.
79373         * lib/utf16-ucs4.h: New file, from GNU gettext.
79374         * lib/ucs4-utf8.h: New file, from GNU gettext.
79375         * lib/ucs4-utf16.h: New file, from GNU gettext.
79376
79377 2003-04-02  Bruno Haible  <bruno@clisp.org>
79378
79379         * modules/binary-io: New file.
79380         * MODULES.html.sh (func_all_modules): Add it.
79381
79382 2003-04-02  Bruno Haible  <bruno@clisp.org>
79383
79384         * lib/binary-io.h: New file, from GNU gettext.
79385
79386 2003-04-01  Bruno Haible  <bruno@clisp.org>
79387
79388         * modules/pathname: New file.
79389         * MODULES.html.sh (func_all_modules): Add it.
79390
79391 2003-04-01  Bruno Haible  <bruno@clisp.org>
79392
79393         * lib/pathname.h: New file, from GNU gettext.
79394         * lib/concatpath.c: New file, from GNU gettext.
79395
79396 2003-03-30  Bruno Haible  <bruno@clisp.org>
79397
79398         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79399
79400 2003-03-30  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79403         function chown() doesn't exist.
79404
79405 2003-03-28  Bruno Haible  <bruno@clisp.org>
79406
79407         * modules/copy-file: New file.
79408         * MODULES.html.sh (func_all_modules): Add it.
79409
79410 2003-03-28  Bruno Haible  <bruno@clisp.org>
79411
79412         * m4/copy-file.m4: New file.
79413
79414 2003-03-28  Bruno Haible  <bruno@clisp.org>
79415
79416         * lib/copy-file.h: New file, from GNU gettext.
79417         * lib/copy-file.c: New file, from GNU gettext.
79418
79419 2003-03-18  Jim Meyering  <jim@meyering.net>
79420
79421         * lib/quote.c (quote_n): Fix typo in comment.
79422
79423 2003-03-18  Bruno Haible  <bruno@clisp.org>
79424
79425         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79426         checking.
79427         * m4/onceonly_2_57.m4: Likewise.
79428
79429 2003-03-17  Bruno Haible  <bruno@clisp.org>
79430
79431         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79432         (m4_quote): Remove macro.
79433         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79434
79435 2003-03-14  Jim Meyering  <jim@meyering.net>
79436
79437         Merge changes from Coreutils.
79438         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79439         to be const, in order to avoid warnings.
79440         (obstack_room): Likewise.
79441         (obstack_empty_p): Likewise.
79442
79443 2003-03-14  Bruno Haible  <bruno@clisp.org>
79444
79445         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79446         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79447
79448 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79449
79450         Merge changes from Bison.
79451         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79452         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79453         when compiling Bison 1.875's `bitset bset = obstack_alloc
79454         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79455         * lib/hash.c: Include <stdbool.h> unconditionally.
79456
79457 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79458
79459         * m4/onceonly.m4 (m4_quote): New macro.
79460         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79461         Quote AC_FOREACH variable-expansions properly.
79462
79463 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79464
79465         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79466
79467 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79468
79469         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
79470         Reported by Bruce Becker; see:
79471         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
79472
79473 2003-03-03  Paul Eggert  <eggert@twinsun.com>
79474             Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
79477         Reported by John Hughes, see
79478         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
79479
79480 2003-02-20  Bruno Haible  <bruno@clisp.org>
79481
79482         * MODULES.html.sh (func_all_modules): Add poll.
79483
79484 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79485
79486         * modules/poll: New file.
79487
79488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79489
79490         * lib/poll_.h: New file.
79491         * lib/poll.c: New file.
79492
79493 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
79494
79495         * m4/poll.m4: New file.
79496
79497 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79498
79499         * modules/mathl: New file.
79500
79501 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79502
79503         * lib/mathl.h: New file.
79504         * lib/acosl.c: New file.
79505         * lib/asinl.c: New file.
79506         * lib/atanl.c: New file.
79507         * lib/ceill.c: New file.
79508         * lib/cosl.c: New file.
79509         * lib/expl.c: New file.
79510         * lib/floorl.c: New file.
79511         * lib/frexpl.c: New file.
79512         * lib/ldexpl.c: New file.
79513         * lib/logl.c: New file.
79514         * lib/sincosl.c: New file.
79515         * lib/sinl.c: New file.
79516         * lib/sqrtl.c: New file.
79517         * lib/tanl.c: New file.
79518         * lib/trigl.c: New file.
79519         * lib/trigl.h: New file.
79520
79521 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
79522
79523         * m4/mathl.m4: New file.
79524
79525 2003-02-18  Bruno Haible  <bruno@clisp.org>
79526
79527         * MODULES.html.sh (func_all_modules): Add mathl.
79528
79529 2003-02-17  Bruno Haible  <bruno@clisp.org>
79530
79531         * modules/mkdtemp: New module.
79532         * MODULES.html.sh (func_all_modules): Add it.
79533
79534 2003-02-17  Bruno Haible  <bruno@clisp.org>
79535
79536         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
79537
79538 2003-02-17  Bruno Haible  <bruno@clisp.org>
79539
79540         * lib/mkdtemp.h: New file, from GNU gettext.
79541         * lib/mkdtemp.c: New file, from GNU gettext.
79542
79543 2003-02-02  Jim Meyering  <jim@meyering.net>
79544
79545         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
79546         e.g. glibc-2.2.93.
79547
79548 2003-01-31  Bruno Haible  <bruno@clisp.org>
79549
79550         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
79551         'rpl_rename'.
79552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
79553         'rpl_strnlen'.
79554         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
79555         'rpl_strtod'.
79556         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
79557         'rpl_utime'.
79558
79559 2003-01-31  Bruno Haible  <bruno@clisp.org>
79560
79561         * lib/rename.c: #undef rename before defining rpl_rename.
79562         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
79563
79564 2003-01-30  Bruno Haible  <bruno@clisp.org>
79565
79566         * modules/vasnprintf, modules/vasprintf: New modules.
79567         * MODULES.html.sh (func_all_modules): Add them.
79568
79569 2003-01-30  Bruno Haible  <bruno@clisp.org>
79570
79571         * m4/signed.m4: New file, from GNU gettext.
79572         * m4/longdouble.m4: New file, from GNU gettext.
79573         * m4/wchar_t.m4: New file, from GNU gettext.
79574         * m4/wint_t.m4: New file, from GNU gettext.
79575         * m4/vasnprintf.m4: New file.
79576         * m4/vasprintf.m4: New file.
79577
79578 2003-01-30  Bruno Haible  <bruno@clisp.org>
79579
79580         * lib/printf-args.h: New file, from GNU gettext.
79581         * lib/printf-args.c: New file, from GNU gettext.
79582         * lib/printf-parse.h: New file, from GNU gettext.
79583         * lib/printf-parse.c: New file, from GNU gettext.
79584         * lib/vasnprintf.h: New file, from GNU gettext.
79585         * lib/vasnprintf.c: New file, from GNU gettext.
79586         * lib/asnprintf.c: New file, from GNU gettext.
79587         * lib/vasprintf.h: New file, from GNU gettext with modifications.
79588         * lib/vasprintf.c: New file, from GNU gettext.
79589         * lib/asprintf.c: New file, from GNU gettext.
79590
79591 2003-01-29  Bruno Haible  <bruno@clisp.org>
79592
79593         * modules/stpncpy: New module.
79594         * MODULES.html.sh (func_all_modules): Add it.
79595
79596 2003-01-29  Bruno Haible  <bruno@clisp.org>
79597
79598         * m4/stpncpy.m4: New file.
79599
79600 2003-01-29  Bruno Haible  <bruno@clisp.org>
79601
79602         * lib/stpncpy.h: New file, from GNU gettext with modifications.
79603         * lib/stpncpy.c: New file, from GNU gettext with modifications.
79604
79605 2003-01-28  Bruno Haible  <bruno@clisp.org>
79606
79607         * modules/c-ctype: New module.
79608         * MODULES.html.sh (func_all_modules): Add it.
79609
79610 2003-01-28  Bruno Haible  <bruno@clisp.org>
79611
79612         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
79613         Paul Eggert.
79614         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
79615         Paul Eggert.
79616
79617 2003-01-27  Bruno Haible  <bruno@clisp.org>
79618
79619         * modules/xsetenv: New module.
79620         * MODULES.html.sh (func_all_modules): Add it.
79621
79622 2003-01-27  Bruno Haible  <bruno@clisp.org>
79623
79624         * lib/xsetenv.h: New file, from GNU gettext.
79625         * lib/xsetenv.c: New file, from GNU gettext.
79626
79627 2003-01-23  Jim Meyering  <jim@meyering.net>
79628
79629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
79630         from working on systems without dirfd (at least Irix and OSF1/Tru64).
79631
79632 2003-01-23  Bruno Haible  <bruno@clisp.org>
79633
79634         * modules/minmax: New module.
79635         * MODULES.html.sh (func_all_modules): Add it.
79636
79637 2003-01-23  Bruno Haible  <bruno@clisp.org>
79638
79639         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
79640         Eggert.
79641
79642 2003-01-22  Bruno Haible  <bruno@clisp.org>
79643
79644         * modules/exit: New module.
79645         * MODULES.html.sh (func_all_modules): Add it.
79646
79647 2003-01-22  Bruno Haible  <bruno@clisp.org>
79648
79649         * lib/exit.h: New file, from GNU gettext.
79650
79651 2003-01-19  Bruno Haible  <bruno@clisp.org>
79652
79653         * gnulib-tool: Recognize option --extract-maintainer.
79654         (func_get_maintainer): New function.
79655         * modules/*: Add Maintainer entry.
79656
79657 2003-01-16  Jim Meyering  <jim@meyering.net>
79658
79659         * m4/regex.m4: The `regex' struct is both input and output.
79660         Initialize it before each use.  Patch by Tim Waugh.
79661
79662 2003-01-16  Bruno Haible  <bruno@clisp.org>
79663
79664         * MODULES.html.sh: Add a table of contents. Add the module name as
79665         leftmost column. Add hyperlinks.
79666
79667 2003-01-15  Bruno Haible  <bruno@clisp.org>
79668
79669         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
79670
79671 2003-01-15  Bruno Haible  <bruno@clisp.org>
79672
79673         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
79674         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
79675         suffix.
79676
79677 2003-01-15  Bruno Haible  <bruno@clisp.org>
79678
79679         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
79680
79681 2003-01-15  Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
79684         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
79685
79686 2003-01-14  Jim Meyering  <jim@meyering.net>
79687
79688         * lib/same.c (same_name): Tweak a comment.
79689
79690 2003-01-14  Bruno Haible  <bruno@clisp.org>
79691
79692         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
79693         when a string comparison is sufficient.
79694
79695 2003-01-14  Bruno Haible  <bruno@clisp.org>
79696
79697         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
79698         'unsigned int'.
79699
79700 2003-01-14  Bruno Haible  <bruno@clisp.org>
79701
79702         * lib/hash-pjw.c: Add comment about low quality of this function.
79703
79704 2003-01-13  Bruno Haible  <bruno@clisp.org>
79705
79706         * modules/stpcpy: Distribute lib/stpcpy.h.
79707         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
79708
79709 2003-01-13  Bruno Haible  <bruno@clisp.org>
79710
79711         * modules/*: Add a description.
79712         * modules/strpbrk: Fix Makefile.am snippet.
79713         * modules/strtoimax: Fix dependencies.
79714         * modules/strtoumax: Likewise.
79715
79716 2003-01-13  Bruno Haible  <bruno@clisp.org>
79717
79718         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
79719         * modules/alloca (Makefile.am): All object files depend on alloca.h.
79720         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
79721
79722 2003-01-13  Bruno Haible  <bruno@clisp.org>
79723
79724         * gnulib-tool (func_create_testdir): Store config/* files in the main
79725         directory.
79726         * config.rpath: Move to ...
79727         * config/config.rpath: ... here.
79728         * modules/gettext: Contains config/config.rpath, not config.rpath.
79729         * modules/iconv: Likewise.
79730
79731 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79732
79733         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79734         to avoid collisions with libcurses and libreadline.
79735
79736         * m4/getstr.m4: Remove.
79737         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
79738
79739 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79740
79741         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79742         to avoid collisions with libcurses and libreadline.
79743
79744         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
79745         * lib/getstr.h, getstr.c: Remove.
79746         * lib/getline.c: Include "getline.h", to check interface.
79747         Move body of old getstr.c here: this defines MIN_CHUNK and
79748         declares getdelim2, which is renamed from getstr.
79749         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
79750
79751         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
79752         All uses changed.
79753         * lib/linebuffer.h: Likewise.
79754         (readline): Remove backward-compatibility macro.
79755
79756 2003-01-12  Paul Eggert  <eggert@twinsun.com>
79757
79758         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
79759         to avoid collisions with libcurses and libreadline.
79760         * getstr: Remove.
79761         * MODULES.html.sh: Remove getstr.
79762         * modules/getline: Depend on unlocked-io, not getstr.
79763
79764 2003-01-12  Jim Meyering  <jim@meyering.net>
79765
79766         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
79767
79768 2003-01-10  Bruno Haible  <bruno@clisp.org>
79769
79770         * modules/alloca: Change Makefile.am requirements. Simplify Include
79771         requirements. Add lib/alloca_.h to file list.
79772
79773 2003-01-10  Bruno Haible  <bruno@clisp.org>
79774
79775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
79776
79777 2003-01-10  Bruno Haible  <bruno@clisp.org>
79778
79779         * lib/alloca_.h: New file.
79780         * lib/getdate.y: Unconditionally include alloca.h.
79781         * lib/makepath.c: Likewise.
79782         * lib/setenv.c: Likewise.
79783         * lib/userspec.c: Likewise.
79784
79785 2003-01-09  Karl Berry  <karl@gnu.org>
79786
79787         * MODULES.html.sh: include `dirname $0` in PATH, to find
79788         gnulib-tool.
79789
79790 2003-01-09  Bruno Haible  <bruno@clisp.org>
79791
79792         * modules/stdbool: Change configure.ac, Makefile.am requirements.
79793         Simplify Include requirements. Add lib/stdbool.h.in to file list.
79794
79795 2003-01-09  Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
79798
79799 2003-01-09  Bruno Haible  <bruno@clisp.org>
79800
79801         * lib/stdbool.h.in: New file.
79802
79803 2003-01-09  Bruno Haible  <bruno@clisp.org>
79804
79805         * gnulib-tool (func_all_modules): Ignore files ending in ~.
79806         * MODULES.html.sh: Likewise.
79807
79808 2003-01-08  Jim Meyering  <jim@meyering.net>
79809
79810         * lib/full-write.c: Undefine and define-away `const' after inclusion
79811         of errno.h, not before.  Suggestion from Bruno Haible.
79812
79813 2003-01-08  Bruno Haible  <bruno@clisp.org>
79814
79815         * modules/full-read: Depend on full-write.
79816
79817 2003-01-08  Bruno Haible  <bruno@clisp.org>
79818
79819         * lib/safe-read.c: Include specification header first, to ensure its
79820         selfcontainedness.
79821         * lib/full-write.c: Likewise.
79822
79823 2003-01-07  Jim Meyering  <jim@meyering.net>
79824
79825         * lib/full-write.c: Rework so that it may serve to define full_read,
79826         too.
79827         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
79828
79829 2003-01-07  Bruno Haible  <bruno@clisp.org>
79830
79831         * lib/strtoimax.c: Include <stdint.h> as an alternative to
79832         <inttypes.h>.
79833         * lib/xstrtol.h: Likewise.
79834         * lib/xstrtoimax.c: Likewise.
79835         * lib/xstrtoumax.c: Likewise.
79836         * lib/human.h: Likewise.
79837
79838         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
79839         on systems that have <inttypes.h> but not <stdint.h>.
79840
79841 2003-01-07  Bruno Haible  <bruno@clisp.org>
79842
79843         * MODULES.html.sh: Add copyright notice.
79844         (missed_files): Omit CVS directory entries.
79845         (func_module): Make it work with sed-3.02.
79846         * MODULES.txt: Remove file.
79847
79848 2003-01-06  Jim Meyering  <jim@meyering.net>
79849
79850         * lib/version-etc.c: Update year in translatable copyright string.
79851
79852 2003-01-03  Karl Berry  <karl@gnu.org>
79853
79854         * config/config.{guess,sub}: update from prep.
79855
79856 2003-01-02  Karl Berry  <karl@gnu.org>
79857
79858         * doc/COPYING.DOC: belatedly updated to 1.2.
79859
79860 2003-01-01  Karl Berry  <karl@gnu.org>
79861
79862         * gnulib-tool (func_verify_module): report module name $module in
79863         error message, not $1.
79864         * gnulib-tool (create-testdir): don't complain if destdir couldn't
79865         be created, only if it doesn't exist.
79866         * gnulib-tool (last_checkin_date): don't expand the $Date here.
79867
79868 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79869
79870         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
79871
79872 2002-12-31  Paul Eggert  <eggert@twinsun.com>
79873
79874         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
79875         memcmp if strcoll doesn't work.
79876
79877 2002-12-31  Bruno Haible  <bruno@clisp.org>
79878
79879         * lib/utime.c (utime_null): No need to call ftruncate if the file was
79880         nonempty.
79881
79882 2002-12-31  Bruno Haible  <bruno@clisp.org>
79883
79884         * lib/memcoll.c (STRCOLL): New macro.
79885         (memcoll): Use it.
79886
79887 2002-12-31  Bruno Haible  <bruno@clisp.org>
79888
79889         * lib/localcharset.h: New file.
79890         * lib/localcharset.c: Include it.
79891         * lib/unicodeio.c: Likewise.
79892
79893 2002-12-31  Bruno Haible  <bruno@clisp.org>
79894
79895         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
79896         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
79897
79898 2002-12-31  Bruno Haible  <bruno@clisp.org>
79899
79900         * lib/getline.h: Include <stddef.h>, for size_t.
79901
79902         * lib/unicodeio.h: Include <stddef.h>, for size_t.
79903         * lib/unicodeio.c: Don't include <stddef.h>.
79904
79905 2002-12-31  Bruno Haible  <bruno@clisp.org>
79906
79907         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
79908         HAVE_TM_ZONE.
79909
79910 2002-12-24  Karl Berry  <karl@gnu.org>
79911
79912         * config/config.guess: update from prep.
79913
79914 2002-12-24  Bruno Haible  <bruno@clisp.org>
79915
79916         General infrasructure.
79917         * m4/README: Rewritten.
79918         * m4/onceonly.m4: New file.
79919         * m4/onceonly_2_57.m4: New file.
79920
79921         Module atexit.
79922         * m4/atexit.m4: New file.
79923
79924         Module strtod.
79925         * m4/strtod.m4: New file.
79926
79927         Module strtol.
79928         * m4/strtol.m4: New file.
79929
79930         Module strtoul.
79931         * m4/strtoul.m4: New file.
79932
79933         Module memchr.
79934         * m4/memchr.m4: New file.
79935
79936         Module memcmp.
79937         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
79938         (jm_FUNC_MEMCMP): Invoke it.
79939
79940         Module memcpy.
79941         * m4/memcpy.m4: New file.
79942
79943         Module memmove.
79944         * m4/memmove.m4: New file.
79945
79946         Module memset.
79947         * m4/memset.m4: New file.
79948
79949         Module strcspn.
79950         * m4/strcspn.m4: New file.
79951
79952         Module strpbrk.
79953         * m4/strpbrk.m4: New file.
79954
79955         Module strstr.
79956         * m4/strstr.m4: New file.
79957
79958         Module strerror.
79959         * m4/strerror.m4: New file.
79960
79961         Module mktime.
79962         * m4/mktime.m4: Renamed from jm-mktime.m4.
79963         (gl_PREREQ_MKTIME): New macro.
79964         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
79965
79966         Module malloc.
79967         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
79968         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
79969         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
79970
79971         Module realloc.
79972         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
79973         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
79974         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
79975
79976         Module strftime.
79977         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
79978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
79979         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
79980         gl_TM_GMTOFF.
79981         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
79982
79983         Module xalloc.
79984         * m4/xalloc.m4: New file.
79985
79986         Module alloca.
79987         * m4/alloca.m4: New file.
79988
79989         Module putenv.
79990         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
79991         (jm_FUNC_PUTENV): Invoke it.
79992
79993         Module setenv.
79994         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
79995         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
79996         when invoked twice.
79997         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
79998         gt_FUNC_SETENV.
79999
80000         Module memrchr.
80001         * m4/memrchr.m4: New file.
80002
80003         Module stpcpy.
80004         * m4/stpcpy.m4: New file.
80005
80006         Module strcase.
80007         * m4/strcase.m4: New file.
80008
80009         Module strdup.
80010         * m4/strdup.m4: New file.
80011
80012         Module strnlen.
80013         * m4/strnlen.m4: New file.
80014
80015         Module strndup.
80016         * m4/strndup.m4: New file.
80017
80018         Module xstrtod.
80019         * m4/xstrtod.m4: New file.
80020
80021         Module xstrtol.
80022         * m4/xstrtol.m4: New file.
80023
80024         Module getdate.
80025         * m4/getdate.m4: New file.
80026
80027         Module unlocked-io.
80028         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80029         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80030         * m4/jm-glibc-io.m4n: Remove file.
80031
80032         Module long-options.
80033         * m4/long-options.m4: New file.
80034
80035         Module md5.
80036         * m4/md5.m4: New file.
80037
80038         Module sha.
80039         * m4/sha.m4: New file.
80040
80041         Module getstr.
80042         * m4/getstr.m4: New file.
80043
80044         Module getline.
80045         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80046         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80047         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80048         simply getline. Infoke gl_PREREQ_GETLINE.
80049
80050         Module obstack.
80051         * m4/obstack.m4: New file.
80052
80053         Module hash.
80054         * m4/hash.m4: New file.
80055
80056         Module readtokens.
80057         * m4/readtokens.m4: New file.
80058
80059         Module strverscmp.
80060         * m4/strverscmp.m4: New file.
80061
80062         Module stdbool.
80063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80064         OSF/1.
80065
80066         Module strtoll.
80067         * m4/strtoll.m4: New file.
80068
80069         Module strtoull.
80070         * m4/strtoull.m4: New file.
80071
80072         Module strtoimax.
80073         * m4/strtoimax.m4: New file.
80074
80075         Module strtoumax.
80076         * m4/strtoumax.m4: New file.
80077
80078         Module xstrtoimax.
80079         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80080         jm_AC_PREREQ_XSTRTOIMAX.
80081         Moved the strtol prerequisites to strtol.m4.
80082         Moved the strtoll prerequisites to strtoll.m4.
80083         Moved the strtoimax prerequisites to strtoimax.m4.
80084
80085         Module xstrtoumax.
80086         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80087         jm_AC_PREREQ_XSTRTOUMAX.
80088         Moved the strtoul prerequisites to strtoul.m4.
80089         Moved the strtoull prerequisites to strtoull.m4.
80090         Moved the strtoumax prerequisites to strtoumax.m4.
80091
80092         Module chown.
80093         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80094         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80095
80096         Module dup2.
80097         * m4/dup2.m4: New file.
80098
80099         Module ftruncate.
80100         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80101         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80102
80103         Module getgroups.
80104         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80105         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80106
80107         Module gettimeofday.
80108         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80109         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80110         gl_PREREQ_GETTIMEOFDAY.
80111
80112         Module mkdir.
80113         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80114         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80115
80116         Module mkstemp.
80117         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80118         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80119         jm_AC_TYPE_UINTMAX_T.
80120         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80121
80122         Module stat.
80123         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80124         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80125
80126         Module lstat.
80127         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80128         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80129
80130         Module timespec.
80131         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80132         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80133         * m4/st_mtim.m4: Indentation.
80134
80135         Module nanosleep.
80136         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80137         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80138         gl_PREREQ_NANOSLEEP.
80139
80140         Module regex.
80141         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80142         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80143         (gl_REGEX): New macro.
80144
80145         Module rename.
80146         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80147         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80148
80149         Module rmdir.
80150         * m4/rmdir.m4: New file.
80151
80152         Module utime.
80153         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80154         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80155         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80156
80157         Module dirname.
80158         * m4/dirname.m4: New file.
80159
80160         Module getopt.
80161         * m4/getopt.m4: New file.
80162
80163         Module unistd-safer.
80164         * m4/unistd-safer.m4: New file.
80165
80166         Module fnmatch.
80167         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80168         declaration.
80169         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80170         (gl_FUNC_FNMATCH_POSIX): New macro.
80171         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80172         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80173         simply fnmatch.
80174
80175         Module exclude.
80176         * m4/exclude.m4: New file.
80177
80178         Module human.
80179         * m4/human.m4: New file.
80180
80181         Module acl.
80182         * m4/acl.m4: Nop.
80183
80184         Module backupfile.
80185         * m4/backupfile.m4: New file.
80186         * m4/d-ino.m4: Indentation.
80187
80188         Module fsusage.
80189         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80190         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80191         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80192
80193         Module dirfd.
80194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80195         requirements.
80196
80197         Module euidaccess.
80198         * m4/euidaccess.m4: New file.
80199
80200         Module file-type.
80201         * m4/file-type.m4: New file.
80202
80203         Module fileblocks.
80204         * m4/fileblocks.m4: New file.
80205
80206         Module filemode.
80207         * m4/filemode.m4: New file.
80208
80209         Module isdir.
80210         * m4/isdir.m4: New file.
80211
80212         Module lchown.
80213         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80214         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80215
80216         Module makepath.
80217         * m4/makepath.m4: New file.
80218
80219         Module modechange.
80220         * m4/modechange.m4: New file.
80221
80222         Module mountlist.
80223         * m4/mountlist.m4: New file.
80224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80225         Indentation.
80226
80227         Module path-concat.
80228         * m4/path-concat.m4: New file.
80229
80230         Module pathmax.
80231         * m4/pathmax.m4: New file.
80232
80233         Module same.
80234         * m4/same.m4: New file.
80235
80236         Module save-cwd.
80237         * m4/save-cwd.m4: New file.
80238
80239         Module savedir.
80240         * m4/savedir.m4: New file.
80241
80242         Module xgetcwd.
80243         * m4/xgetcwd.m4: New file.
80244         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80245
80246         Module xreadlink.
80247         * m4/xreadlink.m4: New file.
80248
80249         Module safe-read.
80250         * m4/safe-read.m4: New file.
80251
80252         Module safe-write.
80253         * m4/safe-write.m4: New file.
80254
80255         Module closeout.
80256         * m4/closeout.m4: New file.
80257
80258         Module stdio-safer.
80259         * m4/stdio-safer.m4: New file.
80260
80261         Module getpass.
80262         * m4/getpass.m4: New file.
80263
80264         Module getugroups.
80265         * m4/getugroups.m4: New file.
80266
80267         Module group-member.
80268         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80269         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80270
80271         Module idcache.
80272         * m4/idcache.m4: New file.
80273
80274         Module userspec.
80275         * m4/userspec.m4: New file.
80276
80277         Module gettime.
80278         * m4/clock_time.m4: New file.
80279         * m4/gettime.m4: New file.
80280
80281         Module settime.
80282         * m4/settime.m4: New file.
80283
80284         Module posixtm.
80285         * m4/posixtm.m4: New file.
80286
80287         Module gethostname.
80288         * m4/gethostname.m4: New file.
80289
80290         Module canon-host.
80291         * m4/canon-host.m4: New file.
80292
80293         Module gettext.
80294         * m4/codeset.m4: New file, from gettext-0.11.5.
80295         * m4/gettext.m4: New file, from gettext-0.11.5.
80296         * m4/glibc21.m4: New file, from gettext-0.11.5.
80297         * m4/iconv.m4: New file, from gettext-0.11.5.
80298         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80299         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80300         * m4/inttypes.m4: New file, from gettext-0.11.5.
80301         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80302         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80303         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80304         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80305         * m4/lib-link.m4: New file, from gettext-0.11.5.
80306         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80307         * m4/progtest.m4: New file, from gettext-0.11.5.
80308         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80309         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80310         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80311
80312         Module localcharset.
80313         * m4/localcharset.m4: New file.
80314
80315         Module hard-locale.
80316         * m4/hard-locale.m4: New file.
80317
80318         Module mbswidth.
80319         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80320         onceonly macros.
80321         * m4/mbrtowc.m4: Add comment.
80322
80323         Module memcasecmp.
80324         * m4/memcasecmp.m4: New file.
80325
80326         Module memcoll.
80327         * m4/memcoll.m4: New file.
80328
80329         Module unicodeio.
80330         * m4/unicodeio.m4: New file.
80331
80332         Module rpmatch.
80333         * m4/rpmatch.m4: New file.
80334
80335         Module yesno.
80336         * m4/yesno.m4: New file.
80337
80338         Module exitfail.
80339         * m4/exitfail.m4: New file.
80340
80341         Module c-stack.
80342         * m4/c-stack.m4 (gl_C_STACK): New macro.
80343         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80344
80345         Module error.
80346         * m4/error.m4 (gl_ERROR): New macro.
80347         (jm_PREREQ_ERROR): Use onceonly macros.
80348
80349         Module fatal.
80350         * m4/fatal.m4: New file.
80351
80352         Module getloadavg.
80353         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80354         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80355
80356         Module getpagesize.
80357         * m4/getpagesize.m4: New file.
80358
80359         Module getusershell.
80360         * m4/getusershell.m4: New file.
80361
80362         Module physmem.
80363         * m4/physmem.m4: New file.
80364
80365         Module posixver.
80366         * m4/posixver.m4: New file.
80367
80368         Module quotearg.
80369         * m4/quotearg.m4: New file.
80370
80371         Module quote.
80372         * m4/quote.m4: New file.
80373
80374         Module readutmp.
80375         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80376
80377         Module sig2str.
80378         * m4/sig2str.m4: New file.
80379
80380         Other.
80381         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80382         ulonglong.m4.
80383         * m4/intmax_t.m4: New file.
80384         * m4/d-type.m4: Indentation.
80385         * m4/jm-macros.m4: Update.
80386         * m4/prereq.m4 (jm_PREREQ): Update.
80387         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80388         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80389         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80390         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80391         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80392         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80393         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80394         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80395         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80396         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80397         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80398         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80399         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80400         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80401         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80402         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80403         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80404         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80405         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80406
80407 2002-12-24  Bruno Haible  <bruno@clisp.org>
80408
80409         * MODULES.txt: Update according to m4/ changes.
80410
80411         Module gettext.
80412         * config.rpath: New file, from gettext-0.11.5.
80413
80414         * modules/*: New module descriptions.
80415         * gnulib-tool: New file.
80416         * MODULES.html.sh: New file.
80417
80418 2002-12-21  Karl Berry  <karl@gnu.org>
80419
80420         * doc/fdl.texi: update to version 1.2.
80421
80422 2002-12-19  Karl Berry  <karl@gnu.org>
80423
80424         * config/config.guess: update from prep.
80425
80426 2002-12-18  Bruno Haible  <bruno@clisp.org>
80427
80428         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80429         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80430
80431 2002-12-17  Bruno Haible  <bruno@clisp.org>
80432
80433         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80434         stdlib.h, string.h.
80435
80436 2002-12-17  Bruno Haible  <bruno@clisp.org>
80437
80438         * lib/canon-host.c (strdup): Remove unused declaration.
80439
80440         * lib/fsusage.c: Include full_read.h.
80441         (get_fs_usage): Use full_read instead of safe_read.
80442
80443         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80444
80445 2002-12-12  Karl Berry  <karl@gnu.org>
80446
80447         * config/config.guess: update from prep.
80448
80449 2002-12-11  Bruno Haible  <bruno@clisp.org>
80450
80451         * m4/setenv.m4: New file, from gettext-0.11.5.
80452
80453 2002-12-11  Bruno Haible  <bruno@clisp.org>
80454
80455         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80456         not unsetenv().
80457         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80458         modifications:
80459
80460         2002-12-11  Bruno Haible  <bruno@clisp.org>
80461
80462                 * setenv.c (alloca): Fall back to malloc.
80463                 (freea): New macro.
80464                 (setenv): Use freea() to free memory allocated with alloca().
80465
80466         2002-11-13  Bruno Haible  <bruno@clisp.org>
80467
80468                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
80469                 function declarations.
80470                 * unsetenv.c (unsetenv): Likewise.
80471
80472         2002-03-04  Bruno Haible  <bruno@clisp.org>
80473
80474                 Portability to AIX 4.3.3.
80475                 * unsetenv.c: New file, extracted from setenv.c.
80476                 * setenv.c: Move the unsetenv() function to unsetenv.c.
80477
80478         2001-12-20  Bruno Haible  <bruno@clisp.org>
80479
80480                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
80481                 use malloc instead. For SunOS 4.
80482
80483         2001-12-11  Bruno Haible  <bruno@clisp.org>
80484
80485                 * setenv.c: Declare alloca.
80486                 (compar_fn_t): New typedef.
80487                 (KNOWN_VALUE, STORE_VALUE): Use it.
80488
80489         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
80490         setenv.h.
80491
80492 2002-12-10  Paul Eggert  <eggert@twinsun.com>
80493
80494         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
80495         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
80496         Choose values that are less likely to collide with system fnmatch
80497         options.
80498         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
80499         defined (e.g., a pure POSIX system).
80500         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
80501         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
80502
80503 2002-12-06  Paul Eggert  <eggert@twinsun.com>
80504
80505         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
80506         a pain in practice to deal with generated m4 files.  This change
80507         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
80508
80509         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
80510         and jm-glibc-io.m4, as they are no longer a special case.
80511         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
80512         kludge and the auto-generation stuff.  Check only whether the
80513         functions are declared, not whether they exist, since older hosts
80514         that don't declare the functions can't use the optimization anyway.
80515
80516 2002-12-06  Jim Meyering  <jim@meyering.net>
80517
80518         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
80519
80520         Merge in changes from libc's misc/error.c, in preparation
80521         for the merge of gnulib's changes back into libc.
80522
80523         * lib/error.c (_): Define only if not already defined.
80524         Move definition to follow all #include directives.
80525         Include unlocked-io.h only if !_LIBC.
80526         [_LIBC]: Include <libio/libioP.h>.
80527         [USE_IN_LIBIO]: Include <libio/iolibio.h>
80528         (fflush): Tweak definition to use INTUSE.
80529         (putc): Define.
80530
80531 2002-12-05  Paul Eggert  <eggert@twinsun.com>
80532
80533         * lib/alloca.c [defined emacs]: Include "lisp.h".
80534         (xalloc_die) [defined emacs]: New macro.
80535         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
80536         [! defined emacs]: Include <xalloc.h>.
80537         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
80538         (pointer): Typedef to POINTER_TYPE *.
80539         (malloc): Remove decl; we now always use xmalloc.
80540         (alloca): Use old-style definition, since Emacs needs this.
80541         Check for arithmetic overflow when computing combined size.
80542
80543 2002-12-04  Paul Eggert  <eggert@twinsun.com>
80544
80545         Do not generate unlocked-io.h automatically, since it's easier to
80546         maintain it by hand.
80547
80548         * lib/unlocked-io.h: New file, from GNU diffutils,
80549         but with proper copyright notice and attribution.
80550         * lib/gen-uio: Remove.
80551         * lib/Makefile.am: Add copyright notice.
80552         (libfetish_a_SOURCES): Add unlocked-io.h.
80553         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
80554         (DISTCLEANFILES, io_functions): Remove macros.
80555         (EXTRA_DIST): Remove gen_uio.
80556         (unlocked-io.h): Remove rule.
80557
80558 2002-12-04  Jim Meyering  <jim@meyering.net>
80559
80560         Reflect the fact that stat.c and lstat.c are no longer generated.
80561         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
80562         (DISTCLEANFILES): Likewise.
80563         (EXTRA_DIST): Likewise.
80564         (all_local): Don't depend on stat.c or lstat.c.
80565         (stat.c, lstat.c): Remove rules.
80566         (EXTRA_DIST): Remove xstat.in.
80567
80568         * lib/xstat.in: Remove file.  Contents moved into stat.c.
80569         * lib/stat.c: New file.  Contents mostly from xstat.in.
80570         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
80571         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
80572
80573         * lib/safe-read.c: Rework so that it may serve to define safe_write,
80574         too.
80575         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
80576
80577 2002-12-03  Jim Meyering  <jim@meyering.net>
80578
80579         * lib/safe-read.c, safe-write.c: Change variable names and comments,
80580         but not semantics, to minimize the differences between these two files.
80581         (safe_read): Change comment to mention SAFE_READ_ERROR.
80582
80583         * lib/safe-read.c (IS_EINTR): Define.
80584         (safe_read): Use IS_EINTR in place of in-function cpp directives.
80585
80586 2002-12-02  Jim Meyering  <jim@meyering.net>
80587
80588         * lib/safe-read.c (EINTR): Define.
80589         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80590         (INT_MAX): Provide fallback.
80591         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
80592
80593         * lib/safe-read.h (SAFE_READ_ERROR): Define.
80594
80595 2002-12-02  Bruno Haible  <bruno@clisp.org>
80596
80597         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
80598         Define, taken from safe-read.c.
80599         (INT_MAX): Provide fallback.
80600         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
80601         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
80602
80603         * lib/safe-read.c (EINTR): Remove definition.
80604         (safe_read): Don't use EINTR if it is absent.
80605
80606 2002-12-01  Jim Meyering  <jim@meyering.net>
80607
80608         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
80609         zero.
80610         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
80611
80612 2002-11-27  Paul Eggert  <eggert@twinsun.com>
80613
80614         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
80615         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
80616         with `if (! (value < limit)) abort ();', for readability.
80617
80618 2002-11-26  Karl Berry  <karl@gnu.org>
80619
80620         * lib/strdup.c: copy from libc again, with jim's ok.
80621         * lib/.cppi-disable: re-add strdup.c
80622
80623 2002-11-25  Karl Berry  <karl@gnu.org>
80624
80625         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
80626         instead of "strtol.c".
80627
80628 2002-11-25  Karl Berry  <karl@gnu.org>
80629
80630         * config/install-sh: update from automake for variable quoting, $0 in
80631         error msgs, etc.
80632
80633         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
80634         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
80635         entry.
80636
80637 2002-11-25  Jim Meyering  <jim@meyering.net>
80638
80639         * lib/mktime.c: Sync from libc, now that it has the latest fix.
80640
80641 2002-11-24  Karl Berry  <karl@gnu.org>
80642
80643         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
80644         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
80645
80646 2002-11-24  Jim Meyering  <jim@meyering.net>
80647
80648         Update from coreutils:
80649
80650         * lib/mktime.c: Merge in changes from libc.
80651
80652         Avoid a link-time failure on some Linux systems.
80653         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
80654         (otherwise).
80655         (__mon_yday): Declare with the STATIC attribute.
80656         (__mktime_internal): Likewise.
80657         Based on a report from Greg Schafer.
80658
80659 2002-11-23  Jim Meyering  <jim@meyering.net>
80660
80661         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
80662         Use `unsigned', not `int', as type of index.
80663
80664         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
80665
80666         * lib/fsusage.c: Remove unneeded parentheses around operands of
80667         `defined'.
80668
80669 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80670
80671         * lib/quotearg.h: Allow multiple inclusion by surrounding with
80672         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
80673         so that we can be included first.
80674         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
80675         * lib/quotearg.c: Include quotearg.h immediately after config.h.
80676         No need to include stddef.h or sys/types.h any more.
80677         Surround local include files with "", not "<>".
80678         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
80679         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
80680         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
80681         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
80682         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
80683         (ISPRINT): Remove; no longer needed now that we assume C89.
80684
80685         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
80686         Preserve errno.
80687
80688         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
80689         quotearg_char): Use SIZE_MAX rather than
80690         (size_t) -1 when we are talking about "infinity".
80691
80692         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
80693
80694 2002-11-22  Paul Eggert  <eggert@twinsun.com>
80695
80696         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
80697         hint that one should use `if (! x) abort ();' rather than `assert
80698         (x);', and anyway it's one less thing to worry about configuring.
80699         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
80700         hash_rehash, hash_insert): Use abort rather than assert.
80701
80702 2002-11-22  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/safe-read.h: Assume C89. Add comments.
80705         (safe_read): Change return type to size_t.
80706         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
80707         byte counts > SSIZE_MAX correctly.
80708         * lib/safe-write.h: New file.
80709         * lib/safe-write.c: New file.
80710         * lib/full-read.h: New file.
80711         * lib/full-read.c: New file.
80712         * lib/full-write.h: Assume C89. Add comments.
80713         * lib/full-write.c: Include safe-write.h.
80714         (full_write): Rewritten to use safe_write.
80715         Suggested by Jim Meyering and Paul Eggert.
80716
80717 2002-11-21  Jim Meyering  <jim@meyering.net>
80718
80719         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
80720
80721         Merge in changes from the coreutils.
80722
80723         2002-09-25  Paul Eggert  <eggert@twinsun.com>
80724         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
80725         <stdint.h>.
80726         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
80727         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
80728         int.  Work more efficiently if X is the same width as uintmax_t.
80729         Do not compare X to -1, to avoid bogus compiler warning.
80730         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
80731         Don't assume that f_frsize and f_bsize are the same type.
80732
80733         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
80734         warning on FreeBSD.
80735
80736         * lib/makepath.c (make_path): Restore umask *before* creating the final
80737         component.
80738         (make_path): Minor reformatting.
80739
80740         * lib/xmalloc.c: Adjust to work with new autoconf macros,
80741         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
80742         HAVE_MALLOC/HAVE_REALLOC.
80743
80744         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
80745         dummy ones.  At least on GNU/Linux systems, `auto' means something
80746         else.
80747         From Michael Stone.
80748
80749 2002-11-21  Bruno Haible  <bruno@clisp.org>
80750
80751         Remove case insensitive option matching.
80752         * lib/argmatch.h (argcasematch): Remove declaration.
80753         (ARGCASEMATCH): Remove macro.
80754         (__xargmatch_internal): Remove case_sensitive argument.
80755         (XARGMATCH): Update.
80756         (XARGCASEMATCH): Remove macro.
80757         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
80758         case_sensitive argument.
80759         (argcasematch): Remove function.
80760         (__xargmatch_internal): Remove case_sensitive argument.
80761         (main): Use XARGMATCH instead of XARGCASEMATCH.
80762
80763         * lib/xmalloc.c: Change compile-time error message. Add comment about
80764         required autoconf version.
80765
80766 2002-11-20  Paul Eggert  <eggert@twinsun.com>
80767
80768         Merge argmatch cleanups from Bison.  Assume C89.
80769
80770         * lib/argmatch.c: Include config.h here, not in argmatch.h.
80771         Include stdlib.h, for EXIT_FAILURE.
80772         Always include <string.h>, since we assume C89.
80773         (EXIT_FAILURE): Remove pre-C89 bug workaround.
80774         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
80775         Include <stddef.h> instead, since it's all we need for size_t.
80776         (PARAMS): Remove.  All uses removed.
80777         (ARRAY_CARDINALITY): Do not bother to #undef.
80778         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
80779         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80780         Remove unnecessary parentheses.
80781         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
80782         Insert necessary parentheses.
80783         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
80784         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
80785
80786 2002-11-19  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
80789         * lib/mbswidth.h: Include <stddef.h>, for size_t.
80790
80791         * lib/mbswidth.h (PARAMS): Remove macro.
80792         (mbswidth, mbsnwidth): Use ANSI C function declarations.
80793         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
80794
80795         * lib/gcd.h (PARAMS): Remove macro.
80796         (gcd): Use ANSI C function declarations.
80797         * lib/gcd.c (gcd): Likewise.
80798
80799 2002-11-15  Bruno Haible  <bruno@clisp.org>
80800
80801         * lib/strcspn.c: Include <stddef.h>.
80802         (strcspn): Use ANSI C function declaration. Change return type to
80803         size_t. Use NULL.
80804         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
80805         (strpbrk): Use NULL.
80806         * lib/strpbrk.h (PARAMS): Remove macro.
80807         (strpbrk): Use ANSI C function declaration.
80808         * lib/strstr.c: Don't include <sys/types.h>.
80809         * lib/strstr.h (PARAMS): Remove macro.
80810         (strstr): Use ANSI C function declarations.
80811
80812 2002-11-14  Karl Berry  <karl@gnu.org>
80813
80814         * config/mkinstalldirs: `do' on separate line, instead of
80815         `for var; do'.
80816
80817 2002-11-06  Bruno Haible  <bruno@clisp.org>
80818
80819         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
80820         * lib/gcd.c (gcd): Likewise.
80821
80822 2002-11-05  Bruno Haible  <bruno@clisp.org>
80823
80824         * lib/gcd.h: New file, from gettext-0.11.5.
80825         * lib/gcd.c: New file, from gettext-0.11.5.
80826
80827 2002-11-05  Bruno Haible  <bruno@clisp.org>
80828
80829         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80830         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80831         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80832         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
80833
80834         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
80835         <libintl.h>.
80836         * lib/makepath.c: Include gettext.h instead of <locale.h> and
80837         <libintl.h>.
80838
80839         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
80840         * lib/human.c: Include gettext.h instead of <libintl.h>.
80841         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
80842         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
80843         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
80844         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
80845         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
80846         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
80847         (textdomain): Remove definition.
80848         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
80849
80850         * lib/long-options.c: Remove include of <libintl.h> and definition of
80851         _.
80852         * lib/same.c: Remove include of <libintl.h> and definition of _.
80853
80854 2002-11-04  Owen Taylor  <otaylor@redhat.com>
80855
80856         * lib/config.charset: A few additions for Solaris.
80857
80858 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80859
80860         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
80861         * lib/localcharset.c (locale_charset): Declare as extern "C".
80862
80863 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
80864
80865         * lib/config.charset: msdos in uk_UA uses CP1125.
80866
80867 2002-11-04  Bruno Haible  <bruno@clisp.org>
80868
80869         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
80870         * lib/strcase.h: New file, from GNU gettext-0.11.5.
80871         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
80872         * lib/strstr.h: New file, from GNU gettext-0.11.5.
80873         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
80874
80875 2002-11-04  Bruno Haible  <bruno@clisp.org>
80876
80877         * lib/localcharset.c (locale_charset): Don't return an empty string.
80878
80879 2002-11-04  Bruno Haible  <bruno@clisp.org>
80880
80881         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
80882         aliases.
80883
80884 2002-11-04  Bruno Haible  <bruno@clisp.org>
80885
80886         * lib/config.charset: Update for newest glibc. Add canonical names
80887         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
80888
80889 2002-11-04  Bruno Haible  <bruno@clisp.org>
80890
80891         * lib/config.charset: Add support for NetBSD.
80892
80893 2002-11-04  Bruno Haible  <bruno@clisp.org>
80894
80895         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
80896
80897 2002-11-01  Bruno Haible  <bruno@clisp.org>
80898
80899         * configure.in: Add AC_CONFIG_AUX_DIR call.
80900         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
80901         test/Makefile.
80902         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
80903
80904 2002-09-28  Karl Berry  <karl@gnu.org>
80905
80906         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
80907         installed automake until the next release, since changes have been
80908         made.
80909
80910 2002-09-25  Karl Berry  <karl@gnu.org>
80911
80912         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
80913         * lib/getopt*: copy from libc/posix.
80914         * lib/gettext.h: copy from gettext.
80915         * lib/.cppi-disable: add strdup.c, gettext.h.
80916
80917 2002-09-25  Karl Berry  <karl@gnu.org>
80918
80919         * config/srclist.txt: enable gettext.h check.
80920         * config/config.{guess,sub}: update from prep.
80921         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
80922                 from automake 1.6.3.
80923         See srclist*.
80924
80925 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
80926
80927         * regex.c (PATFETCH): Remove the translating fetch.
80928         (PATFETCH_RAW): Rename to PATFETCH.
80929         (set_image_of_range): New fun.
80930         (SET_RANGE_TABLE_WORK_AREA): Use it.
80931         (regex_compile): Don't translate the pattern chars so eagerly.
80932         Only do it when inserting an `exactn' bytecode or when handling
80933         a char-range.
80934         (mutually_exclusive_p): Avoid empty statement.
80935
80936 2002-07-06  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/README: Don't mention Makefile.am.in.
80939         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
80940
80941 2002-07-01  Jim Meyering  <meyering@lucent.com>
80942
80943         * lib/c-stack.c: Include sys/time.h.
80944         From Volker Borchert.
80945
80946 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80947
80948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
80949
80950 2002-06-26  Paul Eggert  <eggert@twinsun.com>
80951
80952         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
80953         New macro.  Use it uniformly instead of
80954         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
80955         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
80956         reported by Vin Shelton.
80957
80958 2002-06-22  Paul Eggert  <eggert@twinsun.com>
80959
80960         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
80961         Do not assume SA_SIGINFO behavior.
80962         Bug reported by Jim Meyering on NetBSD 1.5.2.
80963
80964 2002-06-22  Jim Meyering  <meyering@lucent.com>
80965
80966         * m4/c-stack.m4: New file, from diffutils-2.8.2.
80967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
80968
80969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
80970         now that configure.ac uses AC_GNU_SOURCE.
80971         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
80972         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
80973
80974         Update to latest tools.  Suggestions from Paul Eggert.
80975         * m4/stdbool.m4: New file, from diffutils-2.8.2.
80976         * m4/gnu-source.m4: Update from diffutils-2.8.2.
80977         * m4/fnmatch.m4: Likewise.
80978         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
80979         to AC_HEADER_STDBOOL
80980
80981 2002-06-22  Jim Meyering  <meyering@lucent.com>
80982
80983         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
80984         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
80985
80986 2002-06-22  Jim Meyering  <meyering@lucent.com>
80987
80988         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
80989
80990         * lib/exitfail.c, exitfail.h: Likewise.
80991         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
80992
80993         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
80994         of fnmatch.h.
80995         (EXTRA_DIST): Add fnmatch_loop.c.
80996         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
80997
80998         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
80999         * lib/fnmatch.c: Update from diffutils-2.8.2.
81000         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81001         * lib/fnmatch.h: Remove file.
81002
81003 2002-06-21  Jim Meyering  <meyering@lucent.com>
81004
81005         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81006         * m4/mbrtowc.m4: Likewise.
81007
81008         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81009         * m4/mbswidth.m4: Reflect name change:
81010         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81011         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81012
81013         * m4/lib-link.m4: Update from gettext-0.11.2.
81014         * m4/gettext.m4: Likewise.
81015
81016         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81017         From Alfred M. Szmidt.
81018
81019 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81020
81021         * lib/file-type.h: Report an error if neither S_ISREG nor
81022         S_IFREG is defined, instead of using a test specific to glibc
81023         2.2.  This should be safe, since POSIX requires S_ISREG and
81024         Unix Version 7 had S_IFREG.  We don't need to check for
81025         <sys/types.h> since we don't use any symbols that it defines.
81026
81027 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81028
81029         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81030         $@-t, so that each temporary file name is unique and valid in the first
81031         8 characters, for operation under DOS.
81032
81033 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81034
81035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81036
81037 2002-06-15  Jim Meyering  <meyering@lucent.com>
81038
81039         Work even with DJGPP 2.03, which lacks support for symlinks.
81040         From Richard Dawe.
81041         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81042         is defined.
81043         * lib/lchown.c (S_ISLNK): Likewise.
81044
81045 2002-06-15  Jim Meyering  <meyering@lucent.com>
81046
81047         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81048         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81049         have been included before this file.
81050
81051 2002-06-14  Jim Meyering  <meyering@lucent.com>
81052
81053         * lib/file-type.h: Use the version from diffutils-2.8.2.
81054         * lib/file-type.c: Likewise.
81055
81056 2002-06-07  Jim Meyering  <meyering@lucent.com>
81057
81058         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81059         They're needed at least for NetBSD 1.5.2.
81060         ($statxfs_includes): Include those same headers.
81061         ($statxfs_includes): Include sys/vfs.h if available.
81062         ($statxfs_includes): Likewise for sys/statvfs.h.
81063         Check for the following members in both structs statfs and statvfs:
81064         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81065
81066 2002-06-01  Jim Meyering  <meyering@lucent.com>
81067
81068         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81069         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81070
81071 2002-05-28  Jim Meyering  <meyering@lucent.com>
81072
81073         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81074         Reported by Volker Borchert.
81075
81076 2002-05-27  Jim Meyering  <meyering@lucent.com>
81077
81078         Fix a problem seen only on nonconforming systems whereby ls.c's
81079         use of localtime, and then of gettimeofday would cause trouble:
81080         the localtime call used to initialize rpl_gettimeofday's save
81081         mechanism would clobber ls's current local time information so
81082         that in any long listing the first file would always be listed
81083         with date 1970-01-01.  Analysis by Volker Borchert.
81084
81085         * lib/gettimeofday.c (localtime): Undefine.
81086         (rpl_localtime): New function.
81087
81088 2002-05-27  Jim Meyering  <meyering@lucent.com>
81089
81090         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81091         localtime.
81092
81093         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81094         use the replacement function; it wouldn't resolve at link time.
81095         Reported by Volker Borchert.
81096
81097 2002-05-22  Jim Meyering  <meyering@lucent.com>
81098
81099         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81100         file-type.h.
81101         * lib/file-type.h: New file.
81102         * lib/file-type.c (file_type): New file/function.  Extracted from
81103         diffutils.
81104
81105 2002-04-30  Jim Meyering  <meyering@lucent.com>
81106
81107         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81108
81109 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81110
81111         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81112
81113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81114
81115         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81116         Do not check for alloca.h (no longer used) or stdbool.h (was never
81117         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81118
81119 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81120
81121         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81122
81123 2002-04-29  Jim Meyering  <meyering@lucent.com>
81124
81125         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81126         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81127         Use AC_FUNC_STRNLEN here instead.
81128
81129         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81130         With autoconf-2.53a, it's part of AC_PROG_CC.
81131
81132 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81133
81134         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81136
81137 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81138
81139         * lib/sig2str.h, lib/sig2str.c: New files.
81140         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81141
81142 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81143
81144         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81145         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81146         of 127, since 64 is the largest conceivable number for ancient
81147         nonstandard hosts.
81148         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81149
81150 2002-04-28  Jim Meyering  <meyering@lucent.com>
81151
81152         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81153
81154 2002-04-24  Jim Meyering  <meyering@lucent.com>
81155
81156         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81157         (jm_PREREQ): Use it.
81158
81159         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81160         mach/mach.h fcntl.h.
81161         Check for this function: setlocale.
81162
81163 2002-04-24  Jim Meyering  <meyering@lucent.com>
81164
81165         * lib/gettext.h: New file, from Gettext.
81166         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81167         (libfetish_a_SOURCES): Add gettext.h.
81168
81169 2002-04-16  Jim Meyering  <meyering@lucent.com>
81170
81171         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81172         ut_pid, ut_id, ut_exit.
81173
81174 2002-04-16  Jim Meyering  <meyering@lucent.com>
81175
81176         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81177         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81178         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81179
81180 2002-04-12  Jim Meyering  <meyering@lucent.com>
81181
81182         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81183         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81184         existence of the getmntinfo function.  Needed for Darwin 5.3.
81185
81186         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81187         This is necessary at least on Darwin 5.3.
81188
81189         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81190         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81191         strnlen.o in the library, and that makes some versions of ranlib
81192         object.
81193
81194 2002-04-12  Jim Meyering  <meyering@lucent.com>
81195
81196         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81197
81198 2002-04-09  Jim Meyering  <meyering@lucent.com>
81199
81200         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81201         to be more precise.  Rather than saying we're checking whether the
81202         function `works', say what we're testing.
81203         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81204         Reported by Bruno Haible.
81205
81206 2002-03-10  Jim Meyering  <meyering@lucent.com>
81207
81208         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81209         Suggestion from Santiago Vila.
81210
81211 2002-03-08  Jim Meyering  <meyering@lucent.com>
81212
81213         * lib/rename.c: Mention that this wrapper is needed also on
81214         mips-dec-ultrix4.4 systems.
81215
81216 2002-03-02  Jim Meyering  <meyering@lucent.com>
81217
81218         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81219         not HAVE_CLOCK_SETTIME.
81220
81221 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81222
81223         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81224         Check for clock_settime.
81225
81226 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81227
81228         * lib/nanosleep.h: Rename to....
81229         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81230
81231         * lib/gettime.c: New file.
81232         * lib/settime.c: New file.
81233         * lib/stime.c: Remove.
81234
81235         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81236         timespec.h.  Remove nanosleep.h.
81237
81238 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81239
81240         * m4/acl.m4: New file.
81241         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81242         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81243
81244 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81245
81246         * lib/acl.c, lib/acl.h: New files.
81247         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81248
81249 2002-02-24  Jim Meyering  <meyering@lucent.com>
81250
81251         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81252         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81253         cause trouble.  Reported by Nelson Beebe.
81254
81255 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81256
81257         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81258         compilers that don't know that xalloc_die never returns.
81259
81260 2002-02-20  Jim Meyering  <meyering@lucent.com>
81261
81262         * lib/getdate.c: Regenerate using bison-1.33.
81263
81264 2002-02-17  Jim Meyering  <meyering@lucent.com>
81265
81266         * config/config.guess (main): Don't use `head -1'; it's no longer
81267         portable. Use `sed 1q' instead.
81268
81269 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81270
81271         * m4/codeset.m4: Upgrade to gettext-0.11.
81272         * m4/gettext.m4: Upgrade to gettext-0.11.
81273         * m4/glibc21.m4: Upgrade to gettext-0.11.
81274         * m4/iconv.m4: Upgrade to gettext-0.11.
81275         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81276         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81277         * m4/lib-ld.m4: New file, from gettext-0.11.
81278         * m4/lib-link.m4: New file, from gettext-0.11.
81279         * m4/lib-prefix.m4: New file, from gettext-0.11.
81280         * m4/progtest.m4: Upgrade to gettext-0.11.
81281
81282 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81283
81284         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81285         (jm_PREREQ): Use it.
81286
81287 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81288
81289         * lib/posixver.c, lib/posixver.h: New files.
81290         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81291
81292 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81293             Bruno Haible  <bruno@clisp.org>
81294
81295         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81296         (fwrite_success_callback): New declaration.
81297         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81298         print_unicode_char. Call failure callback instead of error.
81299         (fwrite_success_callback): New function.
81300         (exit_failure_callback): New function.
81301         (fallback_failure_callback): New function.
81302         (print_unicode_char): Call unicode_to_mb.
81303
81304 2002-01-26  Jim Meyering  <meyering@lucent.com>
81305
81306         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81307         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81308
81309 2002-01-26  Jim Meyering  <meyering@lucent.com>
81310
81311         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81312
81313 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81314
81315         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81316
81317 2002-01-22  Jim Meyering  <meyering@lucent.com>
81318
81319         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81320         Otherwise, some versions of automake would omit the rule that makes
81321         Makefile from Makefile.in.
81322
81323 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81324
81325         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81326         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81327         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81328         (memcoll): Set errno to zero if there is no error.
81329
81330         * lib/quotearg.c (quotearg_buffer_restyled):
81331         Fix bug with quoting buffers containing NUL when backslashing escapes.
81332         This bug was exposed by the other changes in this patch.
81333         (quotearg_n_options): New arg ARGSIZE.
81334         All callers changed.
81335         (quoting_options_from_style): New function.
81336         (quotearg_n_style): Use it.
81337         (quotearg_n_style_mem): New function.
81338
81339         * lib/quotearg.h (quotearg_n_style_mem): New function.
81340
81341 2002-01-19  Jim Meyering  <meyering@lucent.com>
81342
81343         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81344         Remove useless quotes: DF_PROG="df".
81345         * m4/strnlen.m4: New file.
81346
81347 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81348
81349         * lib/backupfile.c (ISDIGIT): Comment fix.
81350         * lib/getdate.y (ISDIGIT): Likewise.
81351         * lib/posixtm.c (ISDIGIT, year): Likewise.
81352         * lib/strverscmp.c (ISDIGIT): Likewise.
81353         * lib/userspec.c (ISDIGIT): Likewise.
81354
81355 2002-01-16  Jim Meyering  <meyering@lucent.com>
81356
81357         * lib/getdate.y: Add three semicolons, each just before a closing
81358         brace. Bison (as of version 1.31) no longer papers over that mistake.
81359
81360 2002-01-05  Jim Meyering  <meyering@lucent.com>
81361
81362         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81363
81364 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81365
81366         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81367         not silently exit merely because the output buffer happens to
81368         have nothing pending.
81369
81370 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81371
81372         See the big note in ../ChangeLog.
81373         * lib/human.c (suffixes): Prefer K to k for 1024.
81374         (generate_suffix_backwards): New function.
81375         (human_readable_inexact): Use it.
81376         * lib/xstrtol.c (__xstrtol): If there is no number but there
81377         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81378         Accept 'K' as well as 'k'.
81379
81380 2001-12-15  Jim Meyering  <meyering@lucent.com>
81381
81382         * lib/regex.h (__restrict_arr): Update from libc.
81383
81384         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81385         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81386         (STREQ): Define.
81387
81388 2001-12-14  Jim Meyering  <meyering@lucent.com>
81389
81390         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81391         Suggestion from Bruno Haible.
81392
81393 2001-12-10  Jim Meyering  <meyering@lucent.com>
81394
81395         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81396         xrealloc, Instead, include "xalloc.h".
81397         (initbuffer): Don't cast xmalloc return value to char*.
81398         (readline): Reword comment.
81399         Don't cast xrealloc return value to char*
81400         Return NULL, not 0.
81401
81402 2001-12-09  Jim Meyering  <meyering@lucent.com>
81403
81404         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81405         about `signed and unsigned type in conditional expression'.
81406         * lib/posixtm.c (posix_time_parse): Likewise.
81407
81408         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81409
81410         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81411         to avoid a pedantic warning.
81412
81413         * lib/getstr.c: Don't include assert.h.
81414         (getstr): Remove warning-evoking assertions.
81415         Return -1 if offset parameter is out of bounds.
81416         Change the type of a local from int to size_t.
81417
81418         * lib/strftime.c (my_strftime_localtime_r): Include this function
81419         definition in the `#if ! HAVE_TM_GMTOFF' block.
81420
81421         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81422         Include xalloc.h instead.
81423
81424 2001-12-02  Jim Meyering  <meyering@lucent.com>
81425
81426         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81427         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81428         included.
81429
81430         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81431         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81432
81433 2001-11-30  Akim Demaille  <akim@epita.fr>
81434
81435         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81436         before being defined.
81437
81438 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81439
81440         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81441         First arg is int, not unsigned.
81442         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81443         (SIZE_MAX, UINT_MAX): New macros.
81444         (quotearg_n_options): Abort if N is negative.
81445         Avoid overflow check on hosts where size_t is 64 bits and int
81446         is 32 bits, as overflow is impossible there.
81447         Fix off-by-one typo that caused unnecessary reallocation.
81448
81449 2001-11-27  Jim Meyering  <meyering@lucent.com>
81450
81451         * lib/tempname.c: Merge with version from libc.
81452         * lib/regex.c: Likewise.
81453
81454         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81455         systems for which STDC_HEADERS is 0, it was not included, resulting in
81456         a warning about an integer-to-pointer conversion problem with getenv.
81457         Reported by Volker Borchert.
81458
81459 2001-11-26  Jim Meyering  <meyering@lucent.com>
81460
81461         * lib/gtod.h: Remove file.
81462         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81463         * lib/gettimeofday.c: Don't include gtod.h.
81464         (GTOD_init): Remove function.
81465         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81466         Suggestion from Volker Borchert.
81467
81468 2001-11-23  Jim Meyering  <meyering@lucent.com>
81469
81470         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
81471         it.
81472         * lib/hash.c (struct hash_table): Define it here instead.
81473
81474 2001-11-22  Jim Meyering  <meyering@lucent.com>
81475
81476         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
81477
81478 2001-11-20  Jim Meyering  <meyering@lucent.com>
81479
81480         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
81481         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
81482
81483 2001-11-19  Jim Meyering  <meyering@lucent.com>
81484
81485         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
81486         directory.  Use "conftestXXXXXX" as the template.
81487         Suggestion from Paul Eggert.
81488
81489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
81490         immediately, so the test doesn't mistakenly hit the max-open-files
81491         limit.
81492
81493 2001-11-18  Paul Eggert  <eggert@twinsun.com>
81494
81495         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
81496         (TEMPORARIES): New macro.
81497         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
81498         removes an artificial limitation (e.g. HP-UX 10.20, where
81499         TMP_MAX is 17576).
81500
81501 2001-11-18  Jim Meyering  <meyering@lucent.com>
81502
81503         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
81504
81505 2001-11-18  Jim Meyering  <meyering@lucent.com>
81506
81507         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
81508         on SunOS 4.
81509
81510         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
81511         files will be created before anything else.
81512
81513 2001-11-17  Paul Eggert  <eggert@twinsun.com>
81514
81515         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
81516         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
81517
81518 2001-11-17  Jim Meyering  <meyering@lucent.com>
81519
81520         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
81521         Prompted by a report from Bob Proulx.
81522
81523         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
81524         Instead, require UTILS_FUNC_MKSTEMP.
81525
81526 2001-11-17  Jim Meyering  <meyering@lucent.com>
81527
81528         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
81529         Now, that's done as part of AC_FUNC_STRTOD.
81530
81531 2001-11-17  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
81534         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
81535         rather than group writable.  Patch by Juan F. Codagnone.
81536
81537         * lib/readtokens.c: Remove explicit declarations of xmalloc and
81538         xrealloc, Instead, include "xalloc.h".
81539
81540         * lib/mountlist.c: Include unlocked-io.h after all system headers.
81541         Remove explicit declarations of xmalloc, xrealloc,
81542         and xstrdup.  Instead, include "xalloc.h".
81543
81544         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
81545         unlocked-io.h.
81546         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
81547         Likewise.
81548         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
81549
81550         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
81551         Reported by Padraig Brady.
81552
81553         * lib/mkstemp.c: #undef mkstemp.
81554         Include config.h.
81555         (rpl_mkstemp): Rename from mkstemp.
81556         Protoize.
81557
81558 2001-11-16  Jim Meyering  <meyering@lucent.com>
81559
81560         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
81561         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
81562         determine the amount of total physical memory, use pstat_getstatic.
81563         HPUX-11 doesn't define _SC_PHYS_PAGES.
81564         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
81565         If sysconf couldn't be used to determine the amount of available
81566         physical memory, use both pstat_getstatic and pstat_getdynamic.
81567         Based on a patch from Bob Proulx.
81568
81569 2001-11-10  Jim Meyering  <meyering@lucent.com>
81570
81571         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
81572         (jm_PREREQ): Use it.
81573
81574 2001-11-09  Jim Meyering  <meyering@lucent.com>
81575
81576         * m4/jm-macros.m4: Require autoconf-2.52f.
81577         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
81578         Use these AC_-prefixed names, not the AM_-prefixed ones.
81579
81580         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
81581
81582 2001-11-05  Jim Meyering  <meyering@lucent.com>
81583
81584         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
81585
81586 2001-11-04  Jim Meyering  <meyering@lucent.com>
81587
81588         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
81589         $DEFS.
81590
81591 2001-11-03  Jim Meyering  <meyering@lucent.com>
81592
81593         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
81594         of AC_DEFUN.
81595
81596         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
81597         know the name of the variable in the macro definition.
81598
81599 2001-11-03  Jim Meyering  <meyering@lucent.com>
81600
81601         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
81602         in argmatch_to_argument call.
81603
81604         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
81605         argument.
81606
81607         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
81608         e.g., a fault due to an attempt to free a NULL pointer.
81609
81610 2001-11-01  Jim Meyering  <meyering@lucent.com>
81611
81612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
81613         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
81614
81615 2001-11-01  Jim Meyering  <meyering@lucent.com>
81616
81617         * lib/dirfd.c, lib/dirfd.h: New files.
81618         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
81619
81620         * lib/hash.c (hash_print) [TESTING]: Clean up.
81621
81622 2001-10-22  Paul Eggert  <eggert@twinsun.com>
81623
81624         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
81625         to avoid a warning if -Wall.
81626
81627 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
81628
81629         * README: New file
81630         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
81631         (per RMS's instructions, this is now the canonical source)
81632         * lgpl/, gpl/: New directories.
81633
81634 2001-10-21  Paul Eggert  <eggert@twinsun.com>
81635
81636         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
81637
81638 2001-10-21  Jim Meyering  <meyering@lucent.com>
81639
81640         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
81641         this code would end up calling gettext even in packages built
81642         with --disable-nls.
81643         * lib/getopt.c (_): Likewise.
81644         * lib/regex.c (_): Likewise.
81645
81646 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81647
81648         * m4/error.m4 (jm_PREREQ_ERROR):
81649         Do not invoke AC_CHECK_FUNCS with strerror_r, as
81650         AC_FUNC_STRERROR_R does that.
81651         Check for strerror declaration.
81652
81653         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
81654         are supposed to have them these days.
81655         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
81656         Merge changes from latest Autoconf CVS.
81657         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
81658         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
81659         POSIX decided to standardize on the int flavor of strerror_r.
81660
81661 2001-10-20  Paul Eggert  <eggert@twinsun.com>
81662
81663         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
81664         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
81665         Use strerror_r that is only a macro, even if it is not a function.
81666         (strerror): Check for HAVE_DECL_STRERROR before declaring.
81667         (private_strerror): Use prototypes, not old-style function definition.
81668         (print_errno_message): New function.
81669         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
81670         char*-flavored one.
81671         (error_tail, error, error_at_line): Use it.
81672
81673 2001-10-11  Jim Meyering  <meyering@lucent.com>
81674
81675         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
81676         and quote_n (1, ... to avoid clobbering a buffer.
81677
81678 2001-10-05  Jim Meyering  <meyering@lucent.com>
81679
81680         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
81681         hash-pjw.h.
81682         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
81683         * lib/hash-pjw.h: New file.
81684
81685 2001-09-30  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
81688         `struct fsstat' has the `f_fstypename' member.
81689         Use that to define FS_TYPE, which is now used to make
81690         the getfsstat link test tighter.
81691
81692 2001-09-30  Jim Meyering  <meyering@lucent.com>
81693
81694         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
81695         Include <sys/ucred.h>, for Apple Darwin.
81696         Include sys/mount.h and sys/fs_types.h only if available.
81697         (FS_TYPE): Define.
81698         (read_filesystem_list): Use FS_TYPE.
81699
81700 2001-09-29  Paul Eggert  <eggert@twinsun.com>
81701
81702         * lib/exclude.c (excluded_filename): 0 -> false, since it's
81703         a boolean context.
81704
81705 2001-09-29  Jim Meyering  <meyering@lucent.com>
81706
81707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81708         [one-argument getmntent function]): Include stdio.h before mntent.h.
81709         SunOS 4.1.x needs it for the declaration of `FILE'.
81710         Patch by Volker Borchert.
81711
81712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
81713         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
81714         sys/fs_types.h, and make the link-test for getfsstat guard #include
81715         directives with appropriate #if HAVE_*_H tests so that we can
81716         detect getfsstat on Apple Darwin1.3.7 systems.
81717         Reported by Nelson Beebe.
81718         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
81719
81720 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81721
81722         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81723         #defines strtoimax.  Also treat the other strto* functions
81724         like strtoimax.
81725
81726         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
81727         Check for strtoul and strtoumax,
81728         as those declarations are made even in the signed case.
81729         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
81730         Likewise, for strtol and strtoimax.
81731
81732 2001-09-28  Paul Eggert  <eggert@twinsun.com>
81733
81734         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
81735         #defines strtoimax.  Also treat the other strto* functions
81736         like strtoimax.
81737
81738         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
81739         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
81740         (strtoimax, strtoumax): Do not declare if already defined as a macro.
81741
81742 2001-09-26  Jim Meyering  <meyering@lucent.com>
81743
81744         Most macros in unlocked-io.h had the wrong number of arguments.
81745         * lib/gen-uio: New script.
81746         (USE_UNLOCKED_IO): Define to 1 if not already defined.
81747         * lib/unlocked-io.hin: Remove file.
81748         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
81749         rather than trying to embed it here.
81750         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
81751         Reported by Padraig Brady.
81752
81753 2001-09-25  Volker Borchert  <bt@teknon.de>
81754
81755         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
81756         `result'.
81757
81758 2001-09-24  Jim Meyering  <meyering@lucent.com>
81759
81760         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
81761
81762 2001-09-23  Jim Meyering  <meyering@lucent.com>
81763
81764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
81765         instead of the mere test for existence of mntent.h.  The latter
81766         would get a false-positive on AIX 3.4 systems.
81767         In the outer getmntent if-block, don't die if neither of the getmntent
81768         tests succeeds.  Instead, just fall through and continue with the
81769         remaining tests.
81770
81771 2001-09-23  Jim Meyering  <meyering@lucent.com>
81772
81773         * lib/mountlist.c: Remove useless parentheses in #if directives.
81774         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
81775         the deprecated MOUNTED symbol is no longer defined in mntent.h.
81776
81777 2001-09-22  Jim Meyering  <meyering@lucent.com>
81778
81779         * m4/gettext.m4: New file.  From gettext.
81780         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
81781         * m4/progtest.m4: Likewise
81782         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
81783         * m4/glibc21.m4: Likewise.
81784
81785         * m4/libintl.m4: Remove.  No longer used.
81786
81787 2001-09-22  Jim Meyering  <meyering@lucent.com>
81788
81789         * lib/localcharset.c: Update from latest gettext.
81790         * lib/config.charset: Likewise.
81791
81792 2001-09-20  Jim Meyering  <meyering@lucent.com>
81793
81794         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
81795         strtoimax.
81796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
81797         strtoumax.
81798
81799 2001-09-20  Jim Meyering  <meyering@lucent.com>
81800
81801         * lib/xstrtol.c (strtoimax): Guard declaration with
81802         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
81803         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
81804         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
81805         (strtoumax): Likewise, for completeness (it wasn't necessary).
81806
81807 2001-09-17  Paul Eggert  <eggert@twinsun.com>
81808
81809         * lib/strtoimax.c (HAVE_LONG_LONG):
81810         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
81811         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
81812         to work around bug in IBM C compiler.
81813
81814 2001-09-17  Jim Meyering  <meyering@lucent.com>
81815
81816         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
81817         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
81818         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
81819         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
81820         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
81821         whenever the right hand side need not be expanded by the shell.
81822
81823 2001-09-16  Paul Eggert  <eggert@twinsun.com>
81824
81825         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
81826         library.  It's not correct, as some older glibcs are buggy.
81827         fnmatch wasn't fixed until glibc 2.2.
81828
81829         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
81830         special shell magic here.
81831
81832 2001-09-16  Jim Meyering  <meyering@lucent.com>
81833
81834         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
81835         * m4/jm-macros.m4: Require it.
81836
81837 2001-09-16  Jim Meyering  <meyering@lucent.com>
81838
81839         * lib/mkdir.c: New file.
81840
81841 2001-09-15  Jim Meyering  <meyering@lucent.com>
81842
81843         * m4/jm-macros.m4: Check for help2man.
81844
81845 2001-09-11  Jim Meyering  <meyering@lucent.com>
81846
81847         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
81848         The body, by Paul Eggert, was moved here from configure.in.
81849         * m4/jm-macros.m4: Require UTILS_HOST_OS.
81850
81851 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81852
81853         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
81854         (jm_PREREQ): Use it.
81855
81856 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81857
81858         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
81859         Use ssize_t, not int, to store result of readlink.
81860         Check for ssize_t overflow as well as size_t overflow,
81861         as POSIX says the result of readlink is implementation-defined
81862         when ssize_t overflows.
81863         Remove unnecessary cast to char*.
81864         Use free+malloc instead of realloc, as the storage doesn't need
81865         to be preserved and it's clearer and can be more efficient that way.
81866         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
81867         * lib/xreadlink.h (xreadlink): Update prototype.
81868
81869 2001-09-04  Paul Eggert  <eggert@twinsun.com>
81870
81871         * lib/xgetcwd.c: Revert some of the previous change; intead,
81872         fix the HAVE_GETCWD_NULL code to behave more like the
81873         !HAVE_GETCWD_NULL code used to.
81874
81875         Include "xalloc.h".
81876         (xgetcwd): Do not return NULL when memory is exhausted; instead,
81877         invoke xalloc_die.
81878
81879 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81880
81881         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
81882         sys/param.h, as pathmax.h includes them.
81883
81884 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81885
81886         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
81887         (jm_PREREQ_XGETCWD): New macro.
81888
81889         * m4/getcwd.m4: New file.
81890
81891 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81892
81893         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
81894         like the HAVE_GETCWD_NULL code.
81895         Include pathmax.h if not HAVE_GETCWD.
81896         Do not include xalloc.h.
81897         (INITIAL_BUFFER_SIZE): New symbol.
81898         Do not use xmalloc / xrealloc, since the caller is responsible for
81899         handling errors.  Preserve errno around `free' during failure.
81900         Do not overrun buffer when using getwd.
81901
81902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81903
81904         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
81905         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
81906         getcwd (NULL, 0).
81907
81908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
81909
81910         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
81911         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
81912         spotted by Jim Meyering.
81913
81914 2001-09-03  Jim Meyering  <meyering@lucent.com>
81915
81916         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
81917         failure.
81918
81919 2001-09-02  Jim Meyering  <meyering@lucent.com>
81920
81921         * lib/error.c: Update from GNU libc.
81922
81923 2001-09-01  Jim Meyering  <meyering@lucent.com>
81924
81925         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
81926         Used by df.
81927
81928 2001-09-01  Jim Meyering  <meyering@lucent.com>
81929
81930         * lib/xreadlink.c: New file.
81931         * lib/xreadlink.h: New file.
81932         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
81933         xreadlink.h.
81934
81935         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
81936         doesn't conflict with sparc Solaris 7's definition in
81937         /usr/include/sys/int_types.h.
81938
81939         * lib/exclude.c: Use `""', not `<>' to #include non-system header
81940         files.
81941         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
81942         and strncasecmp as r-values.  Unixware didn't have declarations.
81943
81944 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81945
81946         * lib/xstrtol.h: Add copyright notice.
81947         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
81948         LONGINT_INVALID_SUFFIX_CHAR.
81949
81950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81951
81952         * lib/xstrtol.c (strtoimax): New decl.
81953
81954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81955
81956         * lib/xgetcwd.c: Don't include pathmax.h.
81957         Include stdlib.h and unistd.h if available.
81958         Include xalloc.h.
81959         (xmalloc, xstrdup, free): Remove decls.
81960         (xgetcwd): Don't assume sizes fit in unsigned.
81961         Check for overflow when computing sizes.
81962         Simplify reallocation code.
81963
81964 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81965
81966         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
81967         a directory's st_size can have an arbitrary value, so the old
81968         usage could waste an arbitrary amount of memory.  All uses
81969         changed.
81970         * lib/savedir.h: Update prototype.
81971
81972 2001-08-31  Paul Eggert  <eggert@twinsun.com>
81973
81974         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
81975
81976         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
81977         old strtoimax.c.
81978
81979         Also, make the following further changes to make this file's
81980         configuration more similar to that of strtol.c:
81981         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
81982         (strtoumax, uintmax_t, strtoull, strtol): Remove.
81983         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
81984         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
81985         changed to signed values.
81986
81987         And make the following changes as well:
81988         Fix copyright notice, as 1999 was missing.
81989         (verify): New macro.
81990         (strtoimax): Check sizes at compile-time, not run-time.
81991         Prefer strtol to strtoll if both work.
81992         (main): Remove; it was not that useful and was a pain to maintain.
81993
81994         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
81995
81996 2001-08-31  Jim Meyering  <meyering@lucent.com>
81997
81998         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
81999         Use an initial, malloc'd, buffer of length 128 rather than
82000         a statically allocated one of length 1024.
82001
82002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82003
82004         Simplify code, partly by assuming autoconf 2.52 semantics.
82005
82006         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82007
82008         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82009         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82010         All uses removed.
82011         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82012         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82013         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82014         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82015         jm_AC_HEADER_INTTYPES_H.
82016         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82017
82018         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82019
82020         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82021         Quote first arg of AC_DEFUN.
82022         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82023         since they are needed to parse the include file even if we need
82024         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82025         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82026         but with opposite signedness.
82027
82028 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82029
82030         Merge 'exclude' changes from tar 1.13.22.
82031         This fixes one or two unlikely storage allocation overflow bugs,
82032         but doesn't change user-visible behavior otherwise.
82033
82034 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82035
82036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82037         (jm_PREREQ_EXCLUDE): New macro.
82038
82039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82040
82041         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82042         tm to be declared.
82043
82044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82045
82046         * lib/hash.c: Remove '2001' from copyright notice.
82047
82048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82049
82050         * lib/full-write.h: New file.
82051         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82052         * lib/full-write.c: Correct credits, as cccp.c no longer
82053         exists and anyway it was so heavily changed from the old cccp
82054         code as to be unrecognizable.  Include full-write.h.
82055         (full_write): Return size_t, with short writes meaning failure.
82056         All callers changed.  This fixes a bug with large buffers
82057         on 64-bit hosts.
82058         * lib/utime.c: Include full-write.h.
82059
82060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82061
82062         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82063         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82064         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82065         Include if available.
82066         (<xalloc.h>): Include
82067         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82068         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82069         collide with FNM macros.
82070         (struct patopts): New struct.
82071         (struct exclude): Use it, as exclude patterns now come with options.
82072         (new_exclude): Support above changes.
82073         (new_exclude, add_exclude_file):
82074         Initial size must now be a power of two to simplify overflow checking.
82075         (free_exclude, fnmatch_no_wildcards): New function.
82076         (excluded_filename): No longer requires options arg, as the options
82077         are determined by add_exclude.  Now returns bool, not int.
82078         (excluded_filename, add_exclude):
82079         Add support for the fancy new exclusion options.
82080         (add_exclude, add_exclude_file): Now takes int options arg.
82081         Check for arithmetic overflow when computing sizes.
82082         (add_exclude_file): xrealloc might modify errno, so don't
82083         realloc until after errno might be used.
82084
82085         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82086         New macros.
82087         (free_exclude): New decl.
82088         (add_exclude, add_exclude_file): Now takes int options arg.
82089         (excluded_filename): No longer requires options arg, as the options
82090         are determined by add_exclude.  Now returns bool, not int.
82091
82092 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82095
82096 2001-08-27  Jim Meyering  <meyering@lucent.com>
82097
82098         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82099
82100         * lib/version-etc.c (N_): Remove definition.
82101         Revert most of last change.
82102         Instead, simply don't mark the `Copyright...' string for translation.
82103         Based on advice from Paul Eggert.
82104
82105         * lib/strtoxmax.c: Tweak comment.
82106
82107 2001-08-26  Jim Meyering  <meyering@lucent.com>
82108
82109         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82110
82111         * m4/xstrtoimax.m4: New file.
82112         * m4/xstrtoumax.m4: Add comments explaining why we
82113         AC_REPLACE_FUNCS(strtol).
82114
82115 2001-08-26  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82118         of copyright with `%s' so translators don't get an untranslated
82119         message in 2002.
82120         (COPYRIGHT_YEAR): Define.
82121         (version_etc): Use fprintf rather than fputs.
82122         Suggestion from Ulrich Drepper.
82123
82124         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82125
82126         * lib/strtoll.c: New file, from GNU libc.
82127         * lib/xstrtoimax.c: New file.
82128
82129         * lib/xstrtol.h: Add xstrtoimax.
82130         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82131         * lib/strtoimax.c: New file.  Likewise, but first define
82132         STRTOUXMAX_SIGNED.
82133
82134         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82135         ...
82136         * lib/strtoxmax.c: ... then renamed to this.
82137
82138 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82139
82140         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82141         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82142         (jm_AC_TYPE_INTMAX_T): New macro.
82143         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82144
82145         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82146
82147         * m4/longlong.m4: Renamed from ulonglong.m4.
82148         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82149         * m4/uintmax_t.m4: Removed.
82150
82151 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82152
82153         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82154         Port to Solaris 8, where 'sed' requires a space after the 'r'
82155         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82156         Redirect output to $tmp just once.
82157
82158 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82159
82160         * lib/addext.c (<errno.h>): Include.
82161         (errno): Declare if not defined.
82162         (addext): Work correctly when pathconf returns -1 and leaves
82163         errno alone because there is no limit.  Also, work even if
82164         pathconf returns a value greater than SIZE_MAX.
82165
82166 2001-08-12  Jim Meyering  <meyering@lucent.com>
82167
82168         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82169         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82170         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82171         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82172         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82173         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82174         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82175         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82176         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82177         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82178         utime.m4, utimes.m4, xstrtoumax.m4:
82179         Quote the first argument in each use of AC_DEFUN.
82180
82181 2001-08-12  Jim Meyering  <meyering@lucent.com>
82182
82183         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82184         Simply `return getcwd (NULL, 0);'.
82185         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82186         Use 1300 as initial value for length, not PATH_MAX.
82187
82188         * lib/pathmax.h: Clean up cpp syntax.
82189
82190 2001-08-12  Jim Meyering  <meyering@lucent.com>
82191
82192         * lib/gettimeofday.c: New file.
82193         * lib/gtod.h: New file.
82194         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82195
82196 2001-08-05  Jim Meyering  <meyering@lucent.com>
82197
82198         * m4/jm-macros.m4: Require autoconf-2.52.
82199
82200 2001-08-04  Jim Meyering  <meyering@lucent.com>
82201
82202         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82203         stmt, to get in sync with glibc.
82204
82205 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82206
82207         The following changes are from gettext 0.10.39 as maintained by
82208         Bruno Haible.
82209
82210         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82211         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82212         with inverted sense.  All uses changed.
82213
82214         * lib/mbswidth.c: Don't include <limits.h>.
82215         Include <stdlib.h> and <string.h> unconditionally.
82216         (iswcntrl, mbsinit, ISCNTRL): New macros.
82217         (mbsnwidth): Use K&R style function declarations.
82218         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82219         can optimize it when MB_CUR_MAX == 1.
82220         The width of control characters is zero, not 1.
82221
82222 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82223
82224         The following changes are from gettext 0.10.39 as maintained by
82225         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82226
82227         * m4/codeset.m4: Upgrade to serial AM1.
82228         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82229         all uses changed.  Quote first arg of AC_DEFUN.
82230         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82231
82232         * m4/iconv.m4: Upgrade to serial AM2.
82233         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82234         Add --with-libconv-prefix.
82235         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82236         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82237         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82238         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82239         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82240
82241         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82242         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82243         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82244         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82245         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82246         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82247         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82248         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82250
82251         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82252         string.h any more.
82253
82254         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82255         not the default value.
82256
82257         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82258         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82259         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82260         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82261         Also check for iswcntrl, used for wcwidth fallback.
82262         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82263         to Autoconf 2.13.
82264
82265 2001-08-03  Jim Meyering  <meyering@lucent.com>
82266
82267         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82268         as it was in the original.  Reported by Paul Eggert.
82269
82270 2001-07-16  Jim Meyering  <meyering@lucent.com>
82271
82272         * m4/gettimeofday.m4: New file.
82273         Prompted by a report from Bernhard Baehr.
82274
82275 2001-07-15  Jim Meyering  <meyering@lucent.com>
82276
82277         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82278         stuff. Now it's in ../Makefile.cfg.
82279
82280 2001-07-15  Jim Meyering  <meyering@lucent.com>
82281
82282         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82283         (BUILT_SOURCES): Add unlocked-io.h.
82284         (io_functions): Define.
82285         (unlocked-io.h): New rule.
82286         (DISTCLEANFILES): Add unlocked-io.h.
82287         (all-local): Depend on unlocked-io.h, to ensure it is created.
82288
82289         * lib/unlocked-io.hin: New file
82290
82291         * lib/regex.c: Update from glibc.
82292
82293 2001-07-05  Jim Meyering  <meyering@lucent.com>
82294
82295         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82296         recommendation.
82297         (libfetish_a_SOURCES): Put all .h files here instead.
82298         Remove a thus-exposed (better checks in automake) duplicate and
82299         two unnecessary .h files.
82300
82301 2001-07-04  Jim Meyering  <meyering@lucent.com>
82302
82303         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82304         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82305         distcheck failure.
82306
82307 2001-07-02  Jim Meyering  <meyering@lucent.com>
82308
82309         The following changes were prompted by suggestions from Bruno Haible.
82310
82311         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82312         is now generated.
82313         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82314         definition of EXTRA_DIST.
82315         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82316         ensure that the generated file is created/updated whenever the list
82317         of $(unlocked_functions) is changed.
82318         (jm-glibc-io.m4): New rule.
82319         (unlocked-io.h): New rule -- currently unused.
82320
82321 2001-06-24  Jim Meyering  <meyering@lucent.com>
82322
82323         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82324         unmatched right bracket, rather than kludging it with an extra,
82325         falsely-matching quote in a comment.  Patch by Akim Demaille.
82326
82327 2001-06-11  Jim Meyering  <meyering@lucent.com>
82328
82329         * lib/regex.c: Update from GNU libc.
82330
82331 2001-05-27  Jim Meyering  <meyering@lucent.com>
82332
82333         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82334         Check for ut_type in struct utmp.
82335
82336 2001-05-27  Jim Meyering  <meyering@lucent.com>
82337
82338         * lib/readutmp.h (UT_TYPE): Define.
82339
82340 2001-05-24  Jim Meyering  <meyering@lucent.com>
82341
82342         * lib/argmatch.c: Include "quote.h".
82343         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82344         quote function.  Reported by Göran Uddeborg.
82345
82346 2001-05-22  Jim Meyering  <meyering@lucent.com>
82347
82348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82349         now that we use the package-supplied version unconditionally.
82350         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82351
82352 2001-05-21  Jim Meyering  <meyering@lucent.com>
82353
82354         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82355         shell syntax errors.
82356
82357 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82358
82359         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82360
82361 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82362
82363         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82364         Don't bother to check library strftime, since
82365         we'll be using our own my_strftime function anyway.
82366         Define my_strftime instead of strftime.
82367
82368 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82369
82370         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82371         which is not yet declared.
82372
82373 2001-05-15  Jim Meyering  <meyering@lucent.com>
82374
82375         * m4/regex.m4: Use proper quoting so brackets appear in the test
82376         program.
82377         Reported by, and with help from, Bruno Haible.
82378
82379 2001-05-13  Jim Meyering  <meyering@lucent.com>
82380
82381         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82382         undefined.
82383
82384 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82385
82386         dirname code cleanup.  base_name now behaves more compatibly
82387         with POSIX basename when given file names that have trailing
82388         slashes, and similarly for dir_name.  Add new primitives
82389         base_len and dir_len.  Put the directory-name-related decls
82390         into dirname.h.
82391
82392         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82393         * lib/backupfile.c (base_name): Likewise.
82394         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82395         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82396         * lib/makepath.c (strip_trailing_slashes): Likewise.
82397         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82398         ISSLASH): Likewise.
82399         * lib/rename.c (strip_trailing_slashes): Likewise.
82400         * lib/same.c (base_name): Likewise.
82401         * lib/stripslash.c (ISSLASH): Likewise.
82402
82403         * lib/addext.c: Include <dirname.h> after size_t is defined.
82404         * lib/backupfile.c: Likewise.
82405
82406         * lib/addext.c (addext): Use base_len to trim redundant
82407         trailing slashes instead of doing it ourselves.
82408         But do not trim the last slash if it is not redundant.
82409
82410         * lib/backupfile.c (find_backup_file_name,
82411         max_backup_version): Use base_len instead of rolling it ourselves.
82412         Handle the case of "" and (on DOS) "C:" correctly.
82413
82414         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82415         needed. Include <string.h>, <dirname.h>.
82416         (base_name): Allow file names ending in slashes, other than names
82417         that are all slashes.  In this case, return the basename followed
82418         by the slashes.  This is more general, and can be used in places
82419         where the original base_name purposely had an assertion failure.
82420         (base_len): New function.
82421
82422         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82423         Do not include <assert.h>; no longer needed.
82424         Include xalloc.h.
82425         (memrchr): Remove decl.
82426         (dir_name_r): Remove.
82427         (dir_len): Renamed from dirlen.  All callers changed.
82428         Rewrite in terms of base_name, for simplicity and consistency.
82429         (dir_name): Never return NULL.  All callers changed.
82430         Do not include <stdlib.h> in test program; no longer needed.
82431         return 0; is fine for test program.
82432
82433         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82434         New macros.
82435         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82436
82437         * lib/path-concat.c (path_concat): Use base_len to compute
82438         base length, not strlen; this means we cannot rely on memcpy
82439         to null-terminate.
82440
82441         * lib/same.c (STREQ): Remove.
82442         (same_name): Handle the case where the basename ends in trailing '/'.
82443
82444         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82445         a slash was stripped.  Do not strip the last slash after a
82446         file system prefix.
82447
82448 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82449
82450         * lib/Makefile.am (libfetish_a_SOURCES):
82451         Add strftime.c, since we now compile it on all hosts.
82452
82453         * lib/strftime.c (my_strftime):
82454         Define to nstrftime if emacs, but only if my_strftime is not defined.
82455         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82456         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82457         Add one more extra argument: a nanoseconds value.
82458         All uses changed.
82459         (ns): New macro.
82460         (my_strftime function): Add %N format.
82461         (emacs_strftimeu): Renamed from emacs_strftime,
82462         with extra ut argument.
82463
82464 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82465
82466         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82467
82468 2001-04-21  Jim Meyering  <meyering@lucent.com>
82469
82470         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
82471         doesn't interfere.
82472
82473 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82474
82475         * m4/ftruncate.m4: Check for chsize.
82476         Link with ftruncate.o unconditionally if ftruncate is missing.
82477         This was required when cross-compiling to i586-mingw32msvc.
82478
82479 2001-04-08  Jim Meyering  <meyering@lucent.com>
82480
82481         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
82482         recomputed; that's necessary when the offset spans a DST transition.
82483         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
82484
82485 2001-04-02  Jim Meyering  <meyering@lucent.com>
82486
82487         * lib/regex.h, regex.c: Update from GNU libc.
82488
82489 2001-03-24  Jim Meyering  <meyering@lucent.com>
82490
82491         * m4/jm-macros.m4: Require autoconf-2.49d.
82492
82493 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
82494
82495         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
82496
82497 2001-03-19  Paul Eggert  <eggert@twinsun.com>
82498
82499         * lib/version-etc.c (version_etc_copyright): Update to 2001.
82500
82501 2001-03-17  Jim Meyering  <meyering@lucent.com>
82502
82503         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
82504         now that the version in autoconf is equivalent.
82505         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
82506
82507         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
82508         Suggestion from Akim Demaille.
82509
82510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
82511         (jm_PREREQ_TEMPNAME): New function.
82512
82513 2001-03-16  Paul Eggert  <eggert@twinsun.com>
82514
82515         * lib/tempname.c (uint64_t): Define to uintmax_t if
82516         not defined, and if UINT64_MAX is not defined.
82517         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
82518         Reported by John David Anglin.
82519
82520 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
82521
82522         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
82523         resolve alias if codeset is empty.
82524         * lib/config.charset (BeOS): Use wildcard syntax.
82525
82526 2001-03-13  Jim Meyering  <meyering@lucent.com>
82527
82528         * lib/path-concat.c (path_concat)
82529         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
82530         concatenating e.g., `C:' and `foo'.
82531         From Bruno Haible.
82532
82533 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82534
82535         * lib/localcharset.c (locale_charset): Don't use
82536         setlocale(LC_CTYPE,NULL). Don't return NULL.
82537         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
82538
82539 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
82540
82541         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
82542         support for DOS/DJGPP.
82543
82544 2001-03-01  Paul Eggert  <eggert@twinsun.com>
82545
82546         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
82547         lacks mkstemp.  Compile our own tempname.c if we compile our own
82548         mkstemp.c, as mkstemp relies on tempname.
82549
82550 2001-03-01  Jim Meyering  <meyering@lucent.com>
82551
82552         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
82553         AH_VERBATIM really does output its argument verbatim.
82554
82555 2001-02-28  Paul Eggert  <eggert@twinsun.com>
82556
82557         * lib/Makefile.am (libfetish_a_SOURCES):
82558         Add dup-safer.c, fopen-safer.c.
82559         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
82560
82561         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
82562         * lib/unistd-safer.h: New files.
82563
82564 2001-02-25  Paul Eggert  <eggert@twinsun.com>
82565
82566         The mkstemp replacement is taken from glibc 2.2.2, with some
82567         portability fixes for use outside glibc, as follows:
82568
82569         * lib/tempname.c (struct_stat64): New macro.
82570         (direxists, __gen_tempname): Use it.
82571         This avoids a portability problem with Solaris 8.
82572
82573         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
82574         (<stddef.h>, <stdint.h>, <string.h>):
82575         Include only if STDC_HEADERS || _LIBC.
82576         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
82577         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
82578         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
82579         (__set_errno): Define this macro if <errno.h> doesn't.
82580         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
82581         Define these macros if <stdio.h> doesn't.
82582         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
82583         Define these macros if <sys/stat.h>
82584         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
82585         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
82586         __xstat64): Define if not _LIBC.
82587         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
82588         (__gen_tempname): Invoke gettimeofday only if
82589         HAVE_GETTIMEOFDAY || _LIBC;
82590         otherwise, fall back on plain "time".
82591         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
82592
82593         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
82594
82595         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
82596
82597 2001-02-18  Paul Eggert  <eggert@twinsun.com>
82598
82599         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
82600
82601 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82602
82603         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
82604         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
82605         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
82606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82607
82608 2001-02-17  Paul Eggert  <eggert@twinsun.com>
82609
82610         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
82611         Remove workaround macros for hosts that have mbrtowc but not
82612         mbstate_t, as we now insist on proper declarations for both
82613         before using mbrtowc.
82614
82615 2001-02-17  Jim Meyering  <meyering@lucent.com>
82616
82617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
82618         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
82619         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
82620         UnixWare 7.1.1.
82621
82622         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
82623         rather than AC_CACHE_VAL.
82624
82625 2001-02-17  Jim Meyering  <meyering@lucent.com>
82626
82627         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
82628         around included file name.
82629
82630         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
82631
82632         * lib/strftime.c: Update from GNU libc (the only changes were to
82633         comments).
82634
82635 2001-02-17  Jim Meyering  <meyering@lucent.com>
82636
82637         * lib/regex.c: Update from libc.
82638
82639 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
82640
82641         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
82642         clash.
82643
82644 2001-02-16  Paul Eggert  <eggert@twinsun.com>
82645
82646         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
82647         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
82648         Reported by Mark Hounschell via Paul Eggert.
82649
82650 2001-02-07  Jim Meyering  <meyering@lucent.com>
82651
82652         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
82653
82654 2001-02-05  Jim Meyering  <meyering@lucent.com>
82655
82656         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
82657         it includes the patch required for `large file' support with at least
82658         HP-UX's 10.20 /bin/cc.
82659
82660 2001-02-03  Jim Meyering  <meyering@lucent.com>
82661
82662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
82663         AS_IF, now that it works once again (mysteriously).
82664         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82665
82666 2001-01-30  Jim Meyering  <meyering@lucent.com>
82667
82668         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
82669         * m4/chown.m4: Rename conftestchown to conftest.chown.
82670         * m4/rename.m4: s/conftestdir/conftest.d1/ and
82671         s/conftestdir2/conftest.d2/.
82672         * m4/utimes.m4: s/conftestdata/conftest.data/
82673         Inspired by Pavel Roskin's change in autoconf.
82674
82675 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
82676
82677         * lib/config.charset: Update for FreeBSD 4.2.
82678
82679 2001-01-27  Jim Meyering  <meyering@lucent.com>
82680
82681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
82682         a use of AS_IF.
82683         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
82684
82685 2001-01-26  Jim Meyering  <meyering@lucent.com>
82686
82687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
82688         quotearg.c includes it.
82689
82690 2001-01-26  Jim Meyering  <meyering@lucent.com>
82691
82692         * lib/quotearg.c: Include stddef.h.
82693         * lib/quote.c: Include stddef.h.
82694         Reported by Axel Kittenberger.
82695
82696         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
82697         line in double quotes so that it evokes a better diagnostic.
82698         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
82699         Reported by Axel Kittenberger.
82700
82701 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
82702
82703         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
82704         as if it was a `charset'.
82705
82706 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82707
82708         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
82709         has const.
82710
82711 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
82712
82713         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
82714         to avoid a warning.  Add back 'const' to inptr.
82715
82716 2001-01-20  Jim Meyering  <meyering@lucent.com>
82717
82718         Be sure that headers are checked before used in code compiled
82719         for the type checks.
82720         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
82721         In place of that, invoke jm_CHECK_ALL_TYPES.
82722         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
82723         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
82724         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
82725         The check for ssize_t was mistakenly run before the test for unistd.h.
82726
82727         The configure-time check for stdbool.h was missing.
82728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
82729         (jm_PREREQ_HASH): New function.
82730
82731 2001-01-17  Jim Meyering  <meyering@lucent.com>
82732
82733         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
82734         for autoconf-2.49c.
82735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
82736
82737 2001-01-16  Jim Meyering  <meyering@lucent.com>
82738
82739         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
82740         From Bruno Haible.
82741
82742 2001-01-14  Jim Meyering  <meyering@lucent.com>
82743
82744         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
82745         foo and bar.  Create conftestdir/ in the script, not in the C code.
82746         Remove directories in the script, not in the C code.
82747         Remove conftestdir{,2} before trying to create the directory.
82748         Make the entire configure script fail if the mkdir fails.
82749
82750 2001-01-14  Jim Meyering  <meyering@lucent.com>
82751
82752         * lib/rename.c: New file.  From Volker Borchert.
82753         Include stdlib.h, string.h or strings.h, and xalloc.h.
82754         Use strip_trailing_slashes rather than open-coding it.
82755
82756 2001-01-03  Paul Eggert  <eggert@twinsun.com>
82757
82758         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
82759
82760 2001-01-03  Jim Meyering  <meyering@lucent.com>
82761
82762         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
82763         of local `inptr' to avoid warning with some system declarations of
82764         iconv.
82765
82766 2001-01-02  Volker Borchert  <bt@teknon.de>
82767
82768         * m4/rename.m4: New file.
82769         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
82770
82771 2001-01-01  Jim Meyering  <meyering@lucent.com>
82772
82773         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
82774         even on systems with utmpx.h.  It's necessary for the declaration of
82775         utmp's ut_user member.  Reported by Andreas Jaeger.
82776
82777         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
82778         available. They are required for the declarations of getgrgid and
82779         getpwuid resp.
82780         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
82781         Reported by Andreas Jaeger.
82782
82783 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
82784
82785         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
82786         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
82787         so `make install' also works in VPATH builds.
82788
82789 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
82790
82791         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
82792         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
82793         can be used in subdirectories.
82794
82795 2000-12-29  Paul Eggert  <eggert@twinsun.com>
82796
82797         * lib/modechange.c: Do not assume that mode_t uses the
82798         traditional octal encoding.  E.g. "chmod 1 FOO" should set
82799         the other-execute bit of FOO even if S_IXOTH != 1.
82800
82801         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
82802         WOTH, XOTH, ALLM): New macros.
82803         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
82804          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
82805         Use them.
82806         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
82807         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
82808         (mode_compile):
82809         No need to use uintmax_t; unsigned long is long enough.
82810         Don't bother to get suffix since we don't use it.
82811
82812 2000-12-26  Jim Meyering  <meyering@lucent.com>
82813
82814         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
82815         better with autoheader.
82816
82817 2000-12-24  Jim Meyering  <meyering@lucent.com>
82818
82819         * lib/hash.c (is_prime): Return explicit boolean values.
82820         (hash_get_first): Return NULL to appease Irix5.6's 89.
82821         Reported by Nelson Beebe.
82822
82823 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
82824
82825         * lib/localcharset.c (locale_charset): Add support for Win32.
82826
82827 2000-12-18  Paul Eggert  <eggert@twinsun.com>
82828
82829         * lib/physmem.h, lib/physmem.c: New files.
82830
82831         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
82832         (noinst_HEADERS): Add physmem.h.
82833
82834         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
82835         't' for compatibility with Solaris 8 sort.
82836
82837 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
82838
82839         * lib/config.charset: Add support for BeOS.
82840
82841 2000-12-17  Jim Meyering  <meyering@lucent.com>
82842
82843         * m4/dos.m4 (jm_AC_DOS): New file and macro.
82844         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
82845
82846 2000-12-16  Jim Meyering  <meyering@lucent.com>
82847
82848         This bug had a serious impact on chown: `chown N:M FILE' (for integer
82849         N and M) would have treated it like `chown N:N FILE'.
82850
82851         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
82852
82853 2000-12-16  Jim Meyering  <meyering@lucent.com>
82854
82855         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
82856         SHELLS_FILE to a file name that's useful on djgpp systems.
82857         Include stdlib.h.
82858         (ADDITIONAL_DEFAULT_SHELLS): Define.
82859         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
82860         Based mostly on a patch from Prashant TR.
82861
82862 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
82863
82864         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
82865         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
82866         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
82867
82868 2000-12-08  Andreas Schwab  <schwab@suse.de>
82869
82870         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
82871         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
82872
82873 2000-12-07  Jim Meyering  <meyering@lucent.com>
82874
82875         * lib/stripslash.c (ISSLASH): Define.
82876         (strip_trailing_slashes): Use ISSLASH rather than comparing against
82877         `/'.
82878         From Prashant TR.
82879
82880         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
82881         (dir_name_r): Declare this function as static.
82882         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
82883         manifest itself on a name containing a mix of slashes and
82884         backslashes.
82885         Make this function work with names starting with a DOS-style
82886         drive letter and colon prefix.
82887         (dir_name): Append `.' if necessary.
82888         Based mostly on patches from Prashant TR and Eli Zaretskii.
82889
82890         * lib/dirname.h (dir_name_r): Remove prototype.
82891
82892 2000-12-06  Paul Eggert  <eggert@twinsun.com>
82893
82894         * m4/off_t-format.m4: Remove this file.
82895         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
82896
82897 2000-12-06  Jim Meyering  <meyering@lucent.com>
82898
82899         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
82900         replacement strtoull, we may well need the replacement strtoul, too.
82901         Check for declarations of strtoul and strtoull.
82902         Check for strtol.  Mainly as a cue to cause automake to include
82903         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
82904         Check for limits.h -- strtol.c needs it.
82905
82906 2000-12-05  Jim Meyering  <meyering@lucent.com>
82907
82908         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
82909
82910 2000-12-04  Jim Meyering  <meyering@lucent.com>
82911
82912         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
82913         Also include memory.h, stdlib.h, unistd.h if appropriate.
82914         Reported by Andreas Jaeger (conflicting declaration of malloc).
82915
82916 2000-12-02  Jim Meyering  <meyering@lucent.com>
82917
82918         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
82919         * m4/jm-macros.m4 (jm_MACROS): require it.
82920
82921 2000-12-02  Jim Meyering  <meyering@lucent.com>
82922
82923         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
82924
82925 2000-12-01  Paul Eggert  <eggert@twinsun.com>
82926
82927         * lib/memrchr.c: Include <config.h> before any system include file.
82928
82929 2000-11-30  Jim Meyering  <meyering@lucent.com>
82930
82931         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
82932
82933 2000-11-30  Jim Meyering  <meyering@lucent.com>
82934
82935         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
82936
82937 2000-11-29  Paul Eggert  <eggert@twinsun.com>
82938
82939         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
82940
82941 2000-11-26  Jim Meyering  <meyering@lucent.com>
82942
82943         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
82944
82945 2000-11-22  Paul Eggert  <eggert@twinsun.com>
82946
82947         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
82948         size of (size_t) -1; it's not portable.
82949
82950 2000-11-17  Jim Meyering  <meyering@lucent.com>
82951
82952         * lib/strstr.c: Update from GNU libc.
82953
82954 2000-11-17  Akim Demaille  <akim@epita.fr>
82955
82956         * lib/obstack.h: Formatting changes.
82957         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
82958         prevent type checking.
82959         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
82960         cast the value to (void *): assigning a `foo *' to a `void *'
82961         variable is valid.
82962         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
82963
82964 2000-11-16  Jim Meyering  <meyering@lucent.com>
82965
82966         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
82967
82968 2000-11-11  Jim Meyering  <meyering@lucent.com>
82969
82970         * lib/error.c: Add a couple #includes, merging from GNU libc version.
82971
82972 2000-11-10  Jim Meyering  <meyering@lucent.com>
82973
82974         * lib/obstack.h: Update from GNU libc.
82975         * lib/obstack.c: Likewise.
82976
82977 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
82978
82979         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
82980
82981 2000-11-06  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/getusershell.c (setusershell): Use rewind rather than
82984         fseek/fseeko, to avoid configuration hassles with fseeko.
82985         Don't bother opening SHELLS_FILE if shellstream is NULL;
82986         it's not necessary.
82987
82988 2000-11-05  Jim Meyering  <meyering@lucent.com>
82989
82990         * lib/makepath.h (make_dir): Declare.
82991         * lib/makepath.c (make_dir): Remove `static' attribute.
82992         Tweak a comment.
82993
82994 2000-11-04  Jim Meyering  <meyering@lucent.com>
82995
82996         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
82997
82998 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
82999
83000         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83001         last one in a bucket, advance to the next bucket.
83002
83003 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83004
83005         * lib/fnmatch.c: Do not comment out all the code if we are using
83006         the GNU C library, because in some cases we are replacing buggy
83007         code in the GNU C library itself.
83008
83009 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83010
83011         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83012         (regex_compile): Catch bogus \(\1\).
83013
83014 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83015
83016         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83017         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83018         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83019
83020 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83021
83022         * lib/error.h, getline.h, modechange.h:
83023         Remove "2000" from Copyright line, as the file hasn't been
83024         changed this year other than in the copyright notice.
83025
83026         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83027         was changed this year.
83028
83029 2000-10-29  Jim Meyering  <meyering@lucent.com>
83030
83031         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83032         renaming.
83033         * m4/ls-mntd-fs.m4: Likewise
83034
83035 2000-10-29  Jim Meyering  <meyering@lucent.com>
83036
83037         * lib/xstat.in: Fix grammar in comment.
83038
83039 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83040
83041         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83042         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83043         doesn't define __restrict_arr.
83044
83045 2000-10-28  Jim Meyering  <meyering@lucent.com>
83046
83047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83048         (jm_PREREQ_MEMCHR): New function.
83049
83050 2000-10-28  Jim Meyering  <meyering@lucent.com>
83051
83052         * lib/memchr.c: Update from libc.
83053         Adjust for portability:
83054         [HAVE_STDLIB_H]: Include stdlib.h.
83055         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83056         Undef __memchr, too.
83057         [!weak_alias]: Define __memchr to memchr.
83058
83059         * lib/regex.c: Update from libc.
83060         * lib/regex.h: Likewise.
83061         * lib/getopt1.c: Likewise.
83062         * lib/memcmp.c: Likewise.
83063
83064         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83065         Avoid using fseek, when possible -- it's broken by design.
83066         Patch by Ulrich Drepper.
83067
83068 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83069
83070         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83071         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83072         Giving in to popular pressure to shut up the compiler with casts.
83073
83074 2000-10-26  Jim Meyering  <meyering@lucent.com>
83075
83076         * lib/strftime.c: Update from libc.
83077
83078 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83079
83080         * regex.c: More `unsigned char' -> `re_char' changes.
83081         Also change several `int' into `re_wchar_t'.
83082         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83083         (PUSH_FAILURE_POINTER): Don't cast any more.
83084         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83085         We want GCC to complain, since this piece of code makes
83086         re_match non-reentrant, which *should* be fixed.
83087         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83088         (EXTEND_BUFFER): Use RETALLOC.
83089         (SET_LIST_BIT): Don't cast.
83090         (re_wchar_t): New type.
83091         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83092         that those two functions will always properly return.
83093         (IMMEDIATE_QUIT_CHECK): Cast to void.
83094         (analyse_first): Use recursion rather than an explicit stack.
83095         (re_compile_fastmap): Can't fail anymore.
83096         (re_search_2): Don't check re_compile_fastmap for failure.
83097         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83098         Now also sets the new value (passed in a new argument).
83099         (re_match_2_internal): Use it.
83100         Also, use a new var `reg' of type size_t when looping through regs
83101         rather than reuse the inappropriate `mcnt'.
83102
83103 2000-10-25  Jim Meyering  <meyering@lucent.com>
83104
83105         * lib/obstack.c: Update from libc.
83106
83107 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83108
83109         * regex.c (regex_compile): Change the way of handling a range from
83110         a char less than 256 to a char not less than 256.
83111
83112 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83113
83114         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83115         NT-Emacs only.
83116         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83117         so that re_search functions only quit when callers expect them to.
83118
83119 2000-10-23  Jim Meyering  <meyering@lucent.com>
83120
83121         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83122         wrong.  That set_locale call must not have any side effects.
83123         From Paul Eggert.
83124
83125 2000-10-22  Jim Meyering  <meyering@lucent.com>
83126
83127         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83128         [CYCLIC]: Remove now-unused definition.
83129
83130         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83131         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83132         Suggestion from Ulrich Drepper.
83133
83134 2000-10-21  Jim Meyering  <meyering@lucent.com>
83135
83136         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83137         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83138         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83139
83140 2000-10-21  Jim Meyering  <meyering@lucent.com>
83141
83142         * lib/dirname.c (memrchr): Declare if necessary.
83143         (dir_name): Remove the restriction that there be no
83144         trailing slashes.  Now, this code skips past them, effectively
83145         ignoring them.
83146         [TEST_DIRNAME] (main): New unit tests.
83147
83148         * lib/memrchr.c: New file from GNU libc.
83149         Undef __memrchr, too.
83150         [!weak_alias]: Define __memrchr to memrchr.
83151         Guard weak_alias use with `#ifdef weak_alias'.
83152
83153 2000-10-21  Jim Meyering  <meyering@lucent.com>
83154
83155         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83156         (dir_name): Use dir_name_r.
83157         * lib/dirname.h (dir_name_r): Declare it.
83158
83159 2000-10-17  Jim Meyering  <meyering@lucent.com>
83160
83161         * lib/quote.h (PARAMS): Define and use.
83162         Reported by Akim Demaille.
83163
83164         * lib/getopt.c: Update from libc.
83165
83166 2000-10-16  Jim Meyering  <meyering@lucent.com>
83167
83168         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83169         setlocale.
83170         From Jan Fedak.
83171
83172 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83173
83174         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83175
83176 2000-09-25  Jim Meyering  <meyering@lucent.com>
83177
83178         * lib/md5.h (rol): Define (from GnuPG).
83179
83180         * lib/sha.c: Give credit (GnuPG) where due.
83181         (M): Use rol rather than open-coding it.
83182         Add a FIXME comment.
83183
83184 2000-09-21  Jim Meyering  <meyering@lucent.com>
83185
83186         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83187         Reported by Michael Stone.
83188
83189 2000-09-20  Jim Meyering  <meyering@lucent.com>
83190
83191         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83192         (noinst_HEADERS): Add sha.h.
83193         Based on code from Scott G. Miller and from GnuPG.
83194
83195 2000-09-18  Jim Meyering  <meyering@lucent.com>
83196
83197         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83198         LIBS. Otherwise, everyone ends up linking with -lelf for some
83199         configurations.
83200         Reported by Mike Stone.
83201
83202 2000-09-15  Jim Meyering  <meyering@lucent.com>
83203
83204         * lib/regex.c: Update from libc.
83205
83206 2000-09-10  Jim Meyering  <meyering@lucent.com>
83207
83208         * lib/getopt.c (_getopt_internal): Update from glibc.
83209
83210 2000-09-09  Jim Meyering  <meyering@lucent.com>
83211
83212         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83213         think it should be used as a general replacement for isascii.
83214         * lib/fnmatch.c: Likewise.
83215         * lib/mbswidth.c: Likewise
83216         * lib/regex.c: Likewise.
83217
83218         Don't use atoi.
83219         * lib/userspec.c: Include sys/param.h and limits.h.
83220         Include xstrtol.h.
83221         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83222         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83223         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83224         UID, GID.  Check range.
83225
83226 2000-09-06  Jim Meyering  <meyering@lucent.com>
83227
83228         * lib/getopt.c (_getopt_internal): Update from glibc.
83229
83230 2000-08-30  Jim Meyering  <meyering@lucent.com>
83231
83232         * lib/strftime.c: Merge in changes from GNU libc.
83233
83234 2000-08-26  Jim Meyering  <meyering@lucent.com>
83235
83236         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83237         * m4/fpending.m4: New file.
83238
83239 2000-08-26  Jim Meyering  <meyering@lucent.com>
83240
83241         * lib/closeout.c: Include "__fpending.h".
83242         (close_stdout_status): Return right away if there's nothing to flush.
83243
83244         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83245         * lib/__fpending.c: New file.
83246         * lib/__fpending.h: New file.
83247
83248 2000-08-20  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83251         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83252         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83253
83254 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83255
83256         Improve fileutils installation on systems where running
83257         programs (like install) can't be unlinked.
83258         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83259         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83260
83261 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83262
83263         Standardize on "memory exhausted" instead of "Memory exhausted"
83264         or "virtual memory exhausted".
83265         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83266         "virtual memory exhausted".
83267         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83268         our own message.
83269         * lib/userspec.c (parse_user_spec): Likewise.
83270         * lib/bumpalloc.h: comment fix
83271         * lib/same.c, userspec.c: Include xalloc.h.
83272
83273         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83274         not char *const and pointing to a constant array.
83275         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83276         (xrealloc): Comment fix.
83277
83278         * lib/userspec.c (parse_user_spec):
83279         Don't translate a message until just before returning,
83280         to avoid unnecessary translation.
83281
83282 2000-08-07  Jim Meyering  <meyering@lucent.com>
83283
83284         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83285         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83286         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83287         getgroups.c, gethostname.c, getopt.h, group-member.c,
83288         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83289         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83290         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83291         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83292         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83293         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83294         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83295         yesno.c: Back out Copyright date changes for each file with no change
83296         this year.  This eases coordination with other programs using the same
83297         source code modules.  From Paul Eggert.
83298
83299 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83300
83301         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83302         not char, for compatibility with glibc 2.1.3 strftime.c.
83303
83304 2000-08-03  Greg McGary  <greg@mcgary.org>
83305
83306         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83307         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83308         (EXTEND_BUFFER): Use them.
83309
83310 2000-08-01  Jim Meyering  <meyering@lucent.com>
83311
83312         * lib/dirname.c (ISSLASH): Define.
83313         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83314         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83315         both `\' and `/' may be use as path separators.
83316         Based on a patch from Prashant TR.
83317
83318 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83319
83320         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83321         slot vector a constant, since it might get modified.
83322
83323 2000-07-31  Jim Meyering  <meyering@lucent.com>
83324
83325         * lib/xmalloc.c: Use `virtual memory exhausted', not
83326         `Memory exhausted'.
83327         * lib/obstack.c (print_and_abort): Likewise.
83328
83329 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83330
83331         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83332         buffer, so that the caller can always quote one small
83333         component of a "memory exhausted" message in slot 0.
83334         From a suggestion by Jim Meyering.
83335
83336 2000-07-30  Jim Meyering  <meyering@lucent.com>
83337
83338         * lib/makepath.c (make_path): Quote the other instance, too.
83339
83340         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83341         (STATIC_BUF_SIZE): Define.
83342         (quotearg_n_options): Use only statically allocated storage when
83343         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83344         than STATIC_BUF_SIZE.
83345
83346 2000-07-29  Jim Meyering  <meyering@lucent.com>
83347
83348         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83349         * lib/dirname.c (dir_name): Likewise.
83350
83351         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83352         `/'.
83353
83354         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83355         (dir_name): Assert that there are no trailing slashes.
83356
83357 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83358
83359         * lib/mbswidth.h (mbswidth): Add a flags argument.
83360         (mbswidth): New declaration.
83361         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83362         * lib/mbswidth.c (mbswidth): Add a flags argument.
83363         (mbsnwidth): New function.
83364
83365 2000-07-24  Jim Meyering  <meyering@lucent.com>
83366
83367         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83368
83369 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83370
83371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83372
83373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83374
83375         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83376         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83377         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83378         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83379         invoke multibyte primitives.
83380
83381 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83382
83383         * lib/quotearg.c:
83384         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83385         so that mbstate_t is always defined.
83386
83387         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83388         be 1 in at least one GCC installation, and this configuration
83389         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83390         performance on hosts that have mbrtowc but have only unibyte
83391         locales, but I assume these hosts are rare.
83392
83393 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83394
83395         * lib/mbswidth.c (_XOPEN_SOURCE):
83396         Don't define; this causes problems on Solaris 7.
83397         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83398
83399 2000-07-23  Jim Meyering  <meyering@lucent.com>
83400
83401         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83402         too: getgrgid, getpwuid, getuid.
83403
83404 2000-07-23  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/basename.c (base_name): Add an assertion.
83407
83408 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83409
83410         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83411         shadow its mbsinit function.
83412
83413 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83414
83415         * lib/mbswidth.h: New file.
83416         * lib/mbswidth.c: New file.
83417         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83418         (noinst_HEADERS): Add mbswidth.h.
83419
83420 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83421
83422         * lib/config.charset: Add support for FreeBSD. Improve support for
83423         HP-UX and IRIX 6.
83424
83425 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83426
83427         * m4/mbswidth.m4: New file.
83428         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83429
83430 2000-07-15  Jim Meyering  <meyering@lucent.com>
83431
83432         * lib/makepath.c: Include quote.h.
83433         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83434         corresponding argument in a `quote (...)' call.
83435         Give better diagnostics.
83436
83437         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83438         (noinst_HEADERS): Add quote.h.
83439
83440         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83441         from tar's src/misc.c.
83442         * lib/quote.h: New file.  Prototypes for same.
83443
83444 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83445
83446         From a suggestion by Bruno Haible.
83447         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83448         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83449         to decide whether to define the BeOS workaround macro;
83450         this adjusts to the change to AC_MBSTATE_T.
83451
83452 2000-07-14  Jim Meyering  <meyering@lucent.com>
83453
83454         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83455         jm_AC_TYPE_UINTMAX_T.
83456
83457 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83458
83459         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83460
83461         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83462         quotearg_buffer_restyled): Add support for
83463         clocale_quoting_style.  Undo previous change to
83464         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83465         and "{RIGHT QUOTATION MARK}" msgids.
83466
83467 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83468
83469         From a suggestion by Bruno Haible.
83470         * m4/mbstate_t.m4 (AC_MBSTATE_T):
83471         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
83472         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
83473         and mbstate_t, to a single-part test that simply defines mbstate_t.
83474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
83475         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
83476
83477 2000-07-10  Jim Meyering  <meyering@lucent.com>
83478
83479         * m4/strerror_r.m4: Mirror the correction made in autoconf.
83480
83481         * m4/gnu-source.m4: Output to confdefs.h directly.
83482         Suggestion from Akim Demaille.
83483
83484 2000-07-09  Paul Eggert  <eggert@twinsun.com>
83485
83486         The old behavior of quoting `like this' doesn't look good with
83487         newer, ISO-style fonts.  See:
83488         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
83489
83490         Instead, quote "like this" by default.  Let the translator
83491         tailor the locale-specific quoting behavior by providing
83492         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
83493
83494         * lib/quotearg.c (N_): New macro.
83495         (gettext_default): New function.
83496         (quotearg_buffer_restyled): Use
83497         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
83498         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
83499
83500 2000-07-09  Jim Meyering  <meyering@lucent.com>
83501
83502         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
83503         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
83504
83505         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
83506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
83507
83508 2000-07-09  Jim Meyering  <meyering@lucent.com>
83509
83510         * lib/Most files: Update copyright dates to include 2000.
83511
83512 2000-07-08  Jim Meyering  <meyering@lucent.com>
83513
83514         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
83515         if not defined.
83516         (xgethostname): Remove now-unnecessary #ifdef.
83517         Move declaration of `err' into loop where it's used.
83518
83519 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83520         and Bruno Haible  <haible@clisp.cons.org>
83521
83522         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
83523         only if the test for an object-type mbstate_t fails.  This
83524         prevents us from mistakenly reporting that mbstate_t is a
83525         system object type after we "#define mbstate_t int" to work
83526         around its lack.
83527
83528 2000-07-05  Paul Eggert  <eggert@twinsun.com>
83529         and Bruno Haible  <haible@clisp.cons.org>
83530
83531         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
83532
83533 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83534
83535         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
83536         to strerror_r.
83537         Include <ctype.h> for use of isalpha.
83538
83539 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83540
83541         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
83542         by allocating a larger buffer. Test the gethostname return value for
83543         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
83544         returns an error and ENAMETOOLONG isn't defined.
83545
83546 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
83547
83548         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
83549         dimension.
83550
83551 2000-07-04  Jim Meyering  <meyering@lucent.com>
83552
83553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
83554         of the deprecated AC_CHECKING.
83555
83556 2000-07-04  Jim Meyering  <meyering@lucent.com>
83557
83558         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
83559         Reported by Bruno Haible.
83560
83561 2000-07-04  Jim Meyering  <meyering@lucent.com>
83562
83563         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
83564         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
83565         lacks mbrtowc.
83566
83567 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83568
83569         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
83570         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
83571
83572 2000-07-03  Paul Eggert  <eggert@twinsun.com>
83573         and Bruno Haible  <haible@clisp.cons.org>
83574
83575         * lib/quotearg.c (mbrtowc):
83576         Assign to *pwc, and return 1 only if result is nonzero.
83577         (iswprint): Use ISPRINT when substituting our own mbrtowc.
83578
83579 2000-07-03  Jim Meyering  <meyering@lucent.com>
83580
83581         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
83582
83583 2000-07-03  Jim Meyering  <meyering@lucent.com>
83584
83585         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
83586         This is necessary to get a definition of e.g., UTMP_FILE on
83587         HP-UX 10.20.
83588         From Bob Proulx.
83589
83590 2000-07-02  Jim Meyering  <meyering@lucent.com>
83591
83592         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
83593
83594         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
83595         AC_LIBOBJ(function_name).
83596         * m4/chown.m4: Likewise.
83597         * m4/fnmatch.m4: Likewise.
83598         * m4/ftruncate.m4: Likewise.
83599         * m4/getgroups.m4: Likewise.
83600         * m4/getline.m4: Likewise.
83601         * m4/group-member.m4: Likewise.
83602         * m4/jm-macros.m4: Likewise.
83603         * m4/lstat.m4: Likewise.
83604         * m4/malloc.m4: Likewise.
83605         * m4/memcmp.m4: Likewise.
83606         * m4/nanosleep.m4: Likewise.
83607         * m4/putenv.m4: Likewise.
83608         * m4/realloc.m4: Likewise.
83609         * m4/regex.m4: Likewise.
83610         * m4/stat.m4: Likewise.
83611         * m4/strftime.m4: Likewise.
83612
83613 2000-07-02  Jim Meyering  <meyering@lucent.com>
83614
83615         * lib/quotearg.c (mbstate_t): Don't define here.
83616
83617 2000-07-02  Jim Meyering  <meyering@lucent.com>
83618
83619         * lib/nanosleep.c (SIGCONT): Define if not already defined.
83620
83621 2000-07-01  Jim Meyering  <meyering@lucent.com>
83622
83623         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
83624
83625 2000-07-01  Jim Meyering  <meyering@lucent.com>
83626
83627         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
83628         problem.
83629
83630 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83631
83632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
83633         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
83634
83635 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
83636
83637         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
83638         per change in ../m4/ls-mntd-fs.m4.
83639         (read_filesystem_list): Ignore symbolic links.
83640
83641 2000-06-29  Jim Meyering  <meyering@lucent.com>
83642
83643         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
83644         for declaration of strcmp.
83645
83646         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
83647
83648         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
83649         Avoid warning by casting result to `char *' to remove `const'.
83650
83651 2000-06-28  Jim Meyering  <meyering@lucent.com>
83652
83653         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
83654         included by quotearg.c, for which we perform this test.  From
83655         Bruno Haible.
83656
83657 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83658
83659         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
83660         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
83661         <utmpx.h> exists, put readutmp.o into LIBOBJS.
83662
83663 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
83664
83665         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
83666
83667 2000-06-26  Paul Eggert  <eggert@twinsun.com>
83668
83669         savedir now sets errno on failure and invokes xmalloc to get memory.
83670         Fix a couple of other minor bugs while we're at it.
83671
83672         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
83673         (NAMLEN): Remove macro.
83674         (malloc, realloc): Remove decls.
83675         (stpcpy): Likewise.
83676         ("xalloc.h"): Include.
83677         (NAME_SIZE_DEFAULT): New macro.
83678         (savedir): Use xmalloc / xrealloc to allocate memory.
83679         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
83680         Skip "" directory entries.
83681         Use strlen to calculate directory entry length, since the old method
83682         is rarely used these days and isn't worth supporting.
83683         Don't use a pointer after freeing it.
83684         Check for integer overflow when calculating allocation size.
83685         Use memcpy to copy entries, instead of stpcpy.
83686         Set errno properly when returning NULL.
83687         Check for readdir error.
83688
83689 2000-06-26  Jim Meyering  <meyering@lucent.com>
83690
83691         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
83692
83693 2000-06-25  Jim Meyering  <meyering@lucent.com>
83694
83695         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
83696         Linux header bug when _XOPEN_SOURCE is defined to 500.
83697
83698 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83699
83700         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
83701         deficiency.
83702
83703 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
83704
83705         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
83706         Include xalloc.h.
83707         Don't include <stdlib.h>.  Don't declare malloc, realloc.
83708
83709 2000-06-24  Jim Meyering  <meyering@lucent.com>
83710
83711         * m4/strerror_r.m4: Revive this file -- to try out an experimental
83712         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
83713         for which strerror does return char*, but which lacks a conveniently
83714         accessible declaration of the function.  If the compile-test says
83715         strerror_r doesn't work, then resort to a `run'-test that works on
83716         BeOS and segfaults on DEC Unix.
83717
83718 2000-06-24  Jim Meyering  <meyering@lucent.com>
83719
83720         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
83721
83722 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83723
83724         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
83725         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
83726
83727 2000-06-23  Paul Eggert  <eggert@twinsun.com>
83728
83729         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
83730         (mbrtowc, mbstate_t): Define substitutes if
83731         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
83732         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
83733         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
83734
83735 2000-06-23  Jim Meyering  <meyering@lucent.com>
83736
83737         * m4/afs.m4: Add missing AC_MSG_RESULT.
83738         Reported by Bruno Haible.
83739
83740         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
83741         Suggestion from Bruno Haible.
83742
83743 2000-06-23  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
83746
83747 2000-06-21  Jim Meyering  <meyering@lucent.com>
83748
83749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
83750
83751 2000-06-21  Jim Meyering  <meyering@lucent.com>
83752
83753         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
83754         (noinst_HEADERS): Add getstr.h.
83755
83756         * lib/getline.c (getstr): Move into a separate file.
83757         * lib/getstr.c (getstr): New file, extracted from getline.c, with
83758         the following changes: new parameter, delim2; both delim[12]
83759         parameters have type `int', not `char'.  The latter would lose
83760         with 8-bit delimiters.
83761         * lib/getstr.h: New file.
83762
83763 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83764
83765         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
83766         than 1024, return a memory chunk of least possible size, instead
83767         of size PATH_MAX + 2. In the loop, increment the size proportionally.
83768         Use free/xmalloc instead of xrealloc to avoid copying for very long
83769         paths.
83770
83771 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83772
83773         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
83774         the empty string.
83775
83776 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
83777
83778         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
83779         address, not strdup.  Include <stdlib.h> and don't declare free().
83780
83781 2000-06-19  Jim Meyering  <meyering@lucent.com>
83782
83783         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
83784
83785 2000-06-18  Jim Meyering  <meyering@lucent.com>
83786
83787         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
83788
83789         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
83790         `checking whether...' message to be consistent with that of the
83791         lstat test.
83792
83793 2000-06-18  Jim Meyering  <meyering@lucent.com>
83794
83795         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
83796         Besides, these days every porting target provides a mkdir function.
83797
83798         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
83799         needed. (this snippet comes from src/system.h).
83800
83801 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
83802
83803         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
83804
83805 2000-06-15  Paul Eggert  <eggert@twinsun.com>
83806
83807         * lib/human.c (adjust_value): New function.
83808         (human_readable_inexact): Apply rounding style even when
83809         printing approximate values.
83810
83811 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83812
83813         * lib/human.c (human_readable_inexact): Allow an input block
83814         size that is not a multiple of the output block size, and vice versa.
83815         Reported by Piergiorgio Sartor.
83816
83817 2000-06-14  Paul Eggert  <eggert@twinsun.com>
83818
83819         * lib/getdate.y (get_date): Apply relative times after time
83820         zone indicator, not before.  Reported by Todd A. Jacobs.
83821
83822 2000-06-13  Jim Meyering  <meyering@lucent.com>
83823
83824         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
83825
83826         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
83827
83828 2000-06-12  Paul Eggert  <eggert@twinsun.com>
83829
83830         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
83831
83832 2000-06-12  Jim Meyering  <meyering@lucent.com>
83833
83834         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
83835         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
83836         optional argument.
83837         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
83838         the optional argument, `lib'.
83839
83840 2000-06-08  Jim Meyering  <meyering@lucent.com>
83841
83842         * m4/largefile.m4: Remove file (now that it's part of autoconf).
83843
83844 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83845
83846         Rewrite largefile configuration so that we don't need to run
83847         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
83848         AC_CANONICAL_HOST in configure.in -- jmm]
83849
83850         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
83851         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
83852         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
83853         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
83854         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
83855         All uses changed.
83856         Instead of inspecting the output of getconf, try to compile the
83857         test program without and with the macro definition.
83858         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
83859         for getconf.  Instead, check for the needed flags by compiling
83860         test programs.
83861
83862 2000-06-04  Paul Eggert  <eggert@twinsun.com>
83863
83864         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
83865
83866 2000-06-04  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
83869         SunOS 4.1.4 for which gid_t is an unsigned type.
83870
83871 2000-06-03  Jim Meyering  <meyering@lucent.com>
83872
83873         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
83874         now that autoconf requires that.
83875
83876         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
83877         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
83878         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
83879
83880 2000-06-03  Jim Meyering  <meyering@lucent.com>
83881
83882         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
83883
83884 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83885
83886         * m4/glibc21.m4: New file.
83887         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
83888
83889 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
83890
83891         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
83892         newer, don't install charset.alias.
83893         * lib/config.charset: Change the Linux/glibc rules so they become empty
83894         on glibc-2.1 or newer.
83895
83896 2000-06-02  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/mountlist.c: Back out last change.  Instead, do this...
83899         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
83900         me_dummy member using the same `ignore'-testing code.
83901         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
83902         fs_type strings.
83903         From Mark D. Roth.
83904
83905 2000-05-29  Jim Meyering  <meyering@lucent.com>
83906
83907         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
83908         mounts with the `ignore' attribute.  Based on a patch from
83909         Mark D. Roth.
83910
83911 2000-05-28  Jim Meyering  <meyering@lucent.com>
83912
83913         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
83914         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83915         * m4/stat.m4: Likewise.
83916         * m4/lstat.m4: Likewise.
83917         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
83918
83919         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
83920         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
83921
83922 2000-05-26  Jim Meyering  <meyering@lucent.com>
83923
83924         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
83925
83926 2000-05-24  Jim Meyering  <meyering@lucent.com>
83927
83928         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
83929         autoconf requires that.
83930         * m4/lib-check.m4: Likewise.
83931         * m4/jm-macros.m4: Likewise.
83932         * m4/strftime.m4: Likewise.
83933
83934         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
83935         AC_CHECK_DECLS, now that autoconf requires that.
83936
83937 2000-05-22  Jim Meyering  <meyering@lucent.com>
83938
83939         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83940         * m4/lstat.m4: Likewise.
83941
83942 2000-05-22  Jim Meyering  <meyering@lucent.com>
83943
83944         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
83945
83946 2000-05-20  Jim Meyering  <meyering@lucent.com>
83947
83948         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
83949         (jm_PREREQ): Use it.
83950
83951 2000-05-18  Jim Meyering  <meyering@lucent.com>
83952
83953         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
83954         back, too, since it may have been modified by allocate_entry.
83955         (hash_delete): Rewrite to use neither the assignment operator
83956         nor the comma operator in an if-expression.
83957
83958 2000-05-15  Paul Eggert  <eggert@twinsun.com>
83959
83960         * lib/closeout.c:
83961         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
83962         Remove; no longer needed.
83963         "quotearg.h": Add include.
83964         (file_name): Do not bother to explicitly initialize to NULL; it's less
83965         efficient on some hosts.
83966         (close_stdout_status): Remove test as to whether stdout was already
83967         closed; it breaks for the case "echo x | sort >&-".
83968         Quote file name colons.
83969         Do not assume that _("write error") lacks format strings.
83970
83971 2000-05-15  Jim Meyering  <meyering@lucent.com>
83972
83973         * lib/version-etc.c (version_etc_copyright): Update the copyright
83974         string used in all --version output.
83975
83976 2000-05-14  Jim Meyering  <meyering@lucent.com>
83977
83978         * lib/closeout.c (close_stdout_set_file_name): New function.
83979         (close_stdout_status): Use new file-scoped global.
83980         Return right away if fstat says the stdout file descriptor is invalid.
83981         * lib/closeout.h (close_stdout_set_file_name): Declare.
83982
83983 2000-05-10  Jim Meyering  <meyering@lucent.com>
83984
83985         * lib/closeout.c [default_exit_status]: New file-scoped variable.
83986         (close_stdout_set_status): New function.
83987         * lib/closeout.h (close_stdout_set_status): Declare.
83988
83989 2000-05-09  Jim Meyering  <meyering@lucent.com>
83990
83991         * m4/gettext.m4: Rename this...
83992         * m4/libintl.m4: ...to this.
83993
83994 2000-05-08  Jim Meyering  <meyering@lucent.com>
83995
83996         * lib/long-options.c: Don't include closeout.h.
83997         (parse_long_options): Don't call close_stdout for --version.
83998
83999 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84000
84001         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84002         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84003         2.1.3 bug.  This avoids a clash when files like regex.c define
84004         _GNU_SOURCE.
84005
84006 2000-05-06  Jim Meyering  <meyering@lucent.com>
84007
84008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84009         (AC_REPLACE_FUNCS): Add strnlen.
84010
84011         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84012         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84013
84014         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84015         AC_SEARCH_LIBS call for nanosleep.
84016         (LIB_NANOSLEEP): Set and AC_SUBST.
84017
84018 2000-05-06  Jim Meyering  <meyering@lucent.com>
84019
84020         * lib/strnlen.c: Undefine __strnlen and strnlen.
84021         [!weak_alias]: Define __strnlen to strnlen.
84022
84023         * lib/atexit.c: New file, from libiberty.
84024
84025 2000-05-06  Jim Meyering  <meyering@lucent.com>
84026
84027         * lib/closeout.c (close_stdout_status): Also check for errors on the
84028         stderr stream.
84029
84030 2000-05-05  Jim Meyering  <meyering@lucent.com>
84031
84032         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84033         AC_SEARCH_LIBS call for clock_gettime.
84034         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84035
84036         * m4/search-libs.m4: Update from autoconf.
84037
84038         su doesn't work on Solaris 2.6.
84039         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84040         <shadow.h>.  Reported by Dragos Harabor.
84041
84042 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84043
84044         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84045         memcpy instead of xmalloc, xrealloc, path_concat.
84046         (locale_charset): Treat empty environment variables as absent.
84047         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84048
84049 2000-05-04  Jim Meyering  <meyering@lucent.com>
84050
84051         * lib/getopt.c: Update from glibc.
84052         * lib/obstack.c: Likewise.
84053         * lib/obstack.h: Likewise.
84054         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84055         file
84056
84057         * lib/regex.h: Likewise.
84058         * lib/strndup.c: Likewise.
84059         * lib/strnlen.c: New file, from glibc.
84060
84061 2000-05-03  Jim Meyering  <meyering@lucent.com>
84062
84063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84064
84065 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84066
84067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84068         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84069         compile-time test, rather than inspecting host and OS, to
84070         decide whether to define _LARGEFILE_SOURCE.
84071
84072 2000-05-01  Jim Meyering  <meyering@lucent.com>
84073
84074         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84075
84076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84077         Based on a patch from Bruno Haible.
84078
84079 2000-05-01  Jim Meyering  <meyering@lucent.com>
84080
84081         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84082
84083 2000-04-29  Jim Meyering  <meyering@lucent.com>
84084
84085         * lib/path-concat.c: Declare strdup only if it's not defined.
84086         * lib/canon-host.c: Likewise.
84087
84088 2000-04-28  Jim Meyering  <meyering@lucent.com>
84089
84090         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84091         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84092         is included first, then limits.h is included by locale.h by libintl.h.
84093         From John David Anglin.
84094
84095 2000-04-25  Jim Meyering  <meyering@lucent.com>
84096
84097         * lib/makepath.c (S_IRWXUGO): Define.
84098         (make_path): Always perform explicit chmod if MODE specifies any
84099         of the `special' permission bits.  Prompted by a bug report against
84100         install from Mate Wierdl and Joost van Baal.
84101
84102 2000-04-18  Jim Meyering  <meyering@lucent.com>
84103
84104         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84105         (jm_PREREQ): Use it.
84106
84107 2000-04-18  Jim Meyering  <meyering@lucent.com>
84108
84109         * lib/README: New file.
84110
84111         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84112         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84113
84114 2000-04-17  Jim Meyering  <meyering@lucent.com>
84115
84116         Get it right :-)
84117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84118         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84119         Suggestion from Akim Demaille.
84120
84121 2000-04-17  Jim Meyering  <meyering@lucent.com>
84122
84123         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84124         the definition of it to rpl_strftime also defined-away the system's
84125         declaration.
84126
84127 2000-04-15  Jim Meyering  <meyering@lucent.com>
84128
84129         Use `C' to denote so-called `contiguous' files, the same way
84130         that tar does.
84131         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84132         (ftypelet): Use S_ISCTG.
84133         From Michael Deutschmann.
84134
84135 2000-04-14  Jim Meyering  <meyering@lucent.com>
84136
84137         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84138         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84139         clobbered.
84140
84141 2000-04-14  Jim Meyering  <meyering@lucent.com>
84142
84143         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84144
84145 2000-04-13  Jim Meyering  <meyering@lucent.com>
84146
84147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84148         AH_VERBATIM to insert required #ifndef into config.h.in.
84149         Suggestion from Akim Demaille.
84150
84151 2000-04-12  Jim Meyering  <meyering@lucent.com>
84152
84153         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84154         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84155         Christian Krackowizer.
84156
84157         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84158         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84159         (AC_SYS_LARGEFILE): Require.
84160         (AM_C_PROTOTYPES): Require.
84161
84162 2000-04-08  Jim Meyering  <meyering@lucent.com>
84163
84164         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84165         names don't conflict.  Reported by Eli Zaretskii.
84166
84167 2000-04-07  Jim Meyering  <meyering@lucent.com>
84168
84169         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84170         sys/types.h, to work around system header problems on AIX 3.2.5.
84171         From Bruno Haible.
84172
84173 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84174
84175         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84176         bug.  Deal with the different error behavior of Irix iconv.
84177
84178 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84179
84180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84181         IRIX if the installer said otherwise.
84182
84183 2000-04-05  Jim Meyering  <meyering@lucent.com>
84184
84185         Portability tweaks required for ultrix4.3.
84186         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84187         (jm_CHECK_DECLS): Add getutent to the list of functions.
84188         (_jm_DECL_HEADERS): Add utmpx.h.
84189         From John David Anglin.
84190
84191         * m4/strftime.m4: Back out the 2000-04-02 change.
84192         Instead of that change, simply undefine putenv in the test program.
84193
84194 2000-04-05  Jim Meyering  <meyering@lucent.com>
84195
84196         Portability tweaks required for ultrix4.3.
84197         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84198         getutent.
84199         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84200         * lib/canon-host.c: Declare strdup.
84201         * lib/path-concat.c: Likewise.
84202         From John David Anglin.
84203
84204 2000-04-04  Jim Meyering  <meyering@lucent.com>
84205
84206         Be more DOS 8.3-friendly.
84207         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84208         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84209         * lib/Makefile.am: Reflect renaming.
84210         Reported by Eli Zaretskii.
84211
84212         Use a temporary file name that won't clash with `charset.alias'
84213         in the DOS 8.3 name space.
84214         * lib/Makefile.am (charset_tmp): Define.
84215         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84216         (uninstall-local): Likewise.
84217         Reported by Eli Zaretskii.
84218
84219 2000-04-03  Jim Meyering  <meyering@lucent.com>
84220
84221         * m4/gettext.m4: Fix typo in comment.
84222
84223         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84224         textutils/configure.in).  Suggestion from Paul Eggert.
84225         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84226
84227 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84228
84229         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84230         variable in the shell rather than using putenv, which isn't
84231         portable.  This avoids the configure-time inter-test dependency
84232         on the potentially-renamed putenv function.
84233
84234 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84235
84236         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84237         before checking struct stat.st_blksize, so that
84238         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84239
84240 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84241
84242         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84243         since strftime.c uses HAVE_STRFTIME to decide whether to use
84244         the underlying strftime.
84245
84246 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84247
84248         * lib/time/strftime.c (my_strftime): Make sure we call the system
84249         strftime, not ourselves, when invoking the underlying strftime.
84250
84251 2000-03-24  Jim Meyering  <meyering@lucent.com>
84252
84253         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84254         (charset_alias): Define.
84255         (install-exec-local): Factor out common code.
84256         (uninstall-local): Split lines longer than 80.
84257         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84258         (SUFFIXES): Define.
84259         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84260         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84261
84262 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84263
84264         * lib/config.charset: Output a line containing "Packages using this
84265         file".
84266         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84267         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84268         ref-del.sed): New rules.
84269
84270 2000-03-17  Jim Meyering  <meyering@lucent.com>
84271
84272         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84273         Otherwise, include <strings.h>
84274
84275 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84276
84277         * lib/unicodeio.c (utf8_wctomb): New function.
84278         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84279         format instead of in UCS-4 with platform dependent endianness.
84280
84281 2000-03-10  Jim Meyering  <meyering@lucent.com>
84282
84283         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84284         From Marco Franzen.
84285
84286 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84287
84288         * lib/savedir.c (savedir): Work even if directory size is
84289         negative; this can happen with some screwy NFS configurations.
84290
84291 2000-03-06  Jim Meyering  <meyering@lucent.com>
84292
84293         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84294         if it's NULL (because we ran out of memory).  From Bruno Haible.
84295
84296 2000-03-05  Jim Meyering  <meyering@lucent.com>
84297
84298         * lib/localcharset.c ("path-concat.h"): Include.
84299         (get_charset_aliases): Use path_concat instead of ANSI string
84300         concatenation.
84301
84302         * lib/unicodeio.h (PARAMS): Define.
84303         Use it to guard prototype.
84304
84305 2000-03-04  Jim Meyering  <meyering@lucent.com>
84306
84307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84308         for lib/localcharset.c.
84309
84310 2000-03-04  Jim Meyering  <meyering@lucent.com>
84311
84312         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84313         installing into it.
84314         (uninstall-local): Uncomment this rule so `make distcheck' works
84315         once again.
84316
84317         * lib/unicodeio.c (<errno.h>): Include it.
84318         (errno): Declare if not defined.
84319
84320         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84321
84322         * lib/config.charset: New version, incorporating remarks from a linux
84323         i18n mailing list.  From Bruno Haible.
84324
84325 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84326
84327         * m4/codeset.m4: New file.
84328         * m4/iconv.m4: New file.
84329         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84330
84331 2000-03-03  Jim Meyering  <meyering@lucent.com>
84332
84333         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84334
84335 2000-03-02  Jim Meyering  <meyering@lucent.com>
84336
84337         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84338         the messages come out on separate lines.
84339
84340         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84341         rather than jm_CHECK_DECLARATIONS.
84342         * m4/decl.m4: Remove now-unused file.
84343
84344         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84345         geteuid.
84346
84347 2000-03-02  Jim Meyering  <meyering@lucent.com>
84348
84349         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84350
84351 2000-03-01  Jim Meyering  <meyering@lucent.com>
84352
84353         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84354         * lib/unicodeio.c: Likewise.
84355
84356 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84357
84358         * lib/config.charset: New file.
84359         * lib/localcharset.c: New file.
84360         * lib/unicodeio.h, lib/unicodeio.c: New files.
84361         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84362         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84363         (noinst_HEADERS): Add unicodeio.h.
84364         (all-local, install-exec-local, charset.alias): New targets.
84365
84366 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84367
84368         * lib/quotearg.c (ALERT_CHAR): New macro.
84369         (quotearg_buffer_restyled): Use it.
84370
84371 2000-02-27  Jim Meyering  <meyering@lucent.com>
84372
84373         * m4/check-decl.m4: Add getenv to the list.
84374
84375 2000-02-27  Jim Meyering  <meyering@lucent.com>
84376
84377         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84378         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84379
84380         * lib/backupfile.c: Guard inclusion of stdlib.h with
84381         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84382         Declare malloc if needed.
84383
84384         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84385         `#ifndef HAVE_DECL..'
84386         now that autoconf always defines the HAVE_DECL_ symbols.
84387         * lib/human.c: Likewise.
84388         * lib/same.c: Likewise.
84389         * lib/strtoumax.c: Likewise.
84390
84391         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84392         declaration check was not run.
84393         * lib/hash.c: Likewise.
84394         * lib/human.c: Likewise.
84395         * lib/same.c: Likewise.
84396         * lib/strtoumax.c: Likewise.
84397
84398         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84399         `.', then first look up the entire `.'-containing string as a login
84400         name.
84401
84402 2000-02-23  Jim Meyering  <meyering@lucent.com>
84403
84404         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84405         in place of my hack.
84406
84407 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84408
84409         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84410         (textint): New typedef.
84411         (parser_control): Member year changed from int to textint.
84412         All uses changed.
84413         (YYSTYPE): Removed; replaced by %union with int and textint members.
84414         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84415         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84416         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84417         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84418         (date, number, to_year): Use width of number in digits, not its value,
84419         to determine whether it's a 2-digit year, or a 2-digit time.
84420         (yylex): Store number of digits of numeric tokens.
84421         Reported by John Kendall.
84422
84423         (parser_control): Changed from struct parser_control to typedef (for
84424         consistency).  All uses changed.
84425
84426         (tID): Removed; not used.
84427         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84428
84429 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84430
84431         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84432         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84433
84434 2000-02-12  Jim Meyering  <meyering@lucent.com>
84435
84436         * lib/userspec.c (ISDIGIT): Define it.
84437         (isdigit): Remove definition.
84438         (is_number): Use ISDIGIT, not isdigit.
84439         <libintl.h>: Include.
84440         (_ and N_): Define.
84441         (parse_user_spec): Mark translatable strings.
84442
84443 2000-02-10  Jim Meyering  <meyering@lucent.com>
84444
84445         With these changes, nanosleep.[ch] are finally enough like the other
84446         lib/* replacement files to compile on a few more losing systems.
84447
84448         * lib/nanosleep.h: Don't include config.h.
84449         Remove prototype from declaration of nanosleep.
84450         (PARAMS): Remove now-unneeded definition.
84451         * lib/nanosleep.c: #undef nanosleep.
84452         (rpl_nanosleep): Rename from nanosleep.
84453
84454 2000-02-10  Jim Meyering  <meyering@lucent.com>
84455
84456         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84457         gnu_nanosleep to rpl_nanosleep.
84458
84459 2000-02-09  Jim Meyering  <meyering@lucent.com>
84460
84461         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84462         struct spwd, rather than in struct passwd.  Reported by GaĂ«l QuĂ©ri.
84463
84464 2000-02-08  Akim Demaille  <akim@epita.fr>
84465
84466         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84467         `[' and `]' and remove uses of `changequote'.
84468         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
84469         (AC_SYS_LARGEFILE): Likewise.
84470         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84471         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
84472         of changequote.
84473         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
84474         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
84475         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
84476         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
84477
84478 2000-02-05  Jim Meyering  <meyering@lucent.com>
84479
84480         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
84481         Remove explicit use of AC_HEADER_TIME.  It is required by
84482         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
84483         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
84484         in autoconf whereby the expansion of the latter ended up preceding
84485         the expansion of its prerequisite, AC_HEADER_TIME.
84486         Reported by Volker Borchert.
84487
84488 2000-02-03  Jim Meyering  <meyering@lucent.com>
84489
84490         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
84491
84492 2000-02-03  Jim Meyering  <meyering@lucent.com>
84493
84494         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
84495         rather than with `#if HAVE_UTMPNAME'.
84496
84497 2000-02-02  Jim Meyering  <meyering@lucent.com>
84498
84499         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
84500         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
84501         Reported by Eli Zaretskii.
84502
84503 2000-02-01  Jim Meyering  <meyering@lucent.com>
84504
84505         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
84506
84507 2000-01-31  Jim Meyering  <meyering@lucent.com>
84508
84509         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
84510         functions.  Add the time.h and sys/time.h headers along with the
84511         AC_REQUIRE'ment of AC_HEADER_TIME.
84512
84513 2000-01-31  Jim Meyering  <meyering@lucent.com>
84514
84515         * lib/nanosleep.h (nanosleep): Guard declaration with
84516         `#if ! HAVE_DECL_NANOSLEEP'.
84517         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
84518         the declaration in that vendor's sys/timers.h.
84519         Reported by Christian Krackowizer.
84520
84521         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
84522         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
84523         (ISPRINT): Likewise.
84524         Reported by Tom Tromey.
84525
84526 2000-01-30  Jim Meyering  <meyering@lucent.com>
84527
84528         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
84529
84530         * m4/prereq.m4 (utmp_includes): Define.
84531         Check for ut_user and ut_name members in both struct utmpx
84532         and struct utmp.
84533
84534 2000-01-30  Jim Meyering  <meyering@lucent.com>
84535
84536         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
84537         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
84538         header files where only utmpx.ut_user is declared.
84539
84540         * lib/readutmp.h (UT_USER): Define.
84541
84542 2000-01-29  Jim Meyering  <meyering@lucent.com>
84543
84544         * m4/lib-check.m4: New file containing library-related checks from
84545         fileutils and sh-utils (textutils had none).
84546
84547 2000-01-28  Jim Meyering  <meyering@lucent.com>
84548
84549         * m4/perl.m4: Change format of warning message to look more like that
84550         from the missing script.  Suggestion from François Pinard.
84551
84552 2000-01-25  Jim Meyering  <meyering@lucent.com>
84553
84554         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
84555         well as time.h in the compile check.
84556         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
84557         Fix typo in cross-compiling case: s/yes/no/.
84558
84559 2000-01-23  Jim Meyering  <meyering@lucent.com>
84560
84561         * m4/jm-macros.m4: Move df-related tests here from
84562         fileutils/configure.in
84563
84564         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
84565         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
84566
84567         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
84568         s/space/ac_fsusage_space/.
84569         (jm_FILE_SYSTEM_USAGE): Take two parameters.
84570
84571         * m4/ftruncate.m4: New file (derived from part of
84572         fileutils/configure.in).
84573         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
84574         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
84575
84576         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
84577         AC_SUBST these here, rather than just in sh-util/configure.in, so
84578         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
84579         all the same.
84580         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
84581         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
84582         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
84583         (AC_SUBST(POW_LIBM)): Likewise.
84584         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
84585
84586 2000-01-23  Jim Meyering  <meyering@lucent.com>
84587
84588         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
84589         obstack.c.
84590
84591 2000-01-22  Jim Meyering  <meyering@lucent.com>
84592
84593         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
84594
84595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
84596
84597         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
84598         configure.in
84599         (AC_CHECK_HEADERS): Likewise for sh-utils.
84600         (AC_CHECK_HEADERS): Likewise for textutils.
84601         Merge the three lists of headers.
84602
84603         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
84604         from fileutils' configure.in.
84605
84606         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
84607         code. Moved tests into their own function (_jm_DECL_HEADERS) in
84608         check-decl.m4.
84609
84610         * m4/check-decl.m4: Use #if rather than #ifdef.
84611         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
84612         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
84613         (_jm_DECL_HEADERS): Define new function.
84614         (jm_CHECK_DECLARATIONS): Require it.
84615
84616 2000-01-22  Jim Meyering  <meyering@lucent.com>
84617
84618         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
84619         [! HAVE_DECL_STRTOULL]: Declare strtoull.
84620         Required for some AIX systems.  Reported by Christian Krackowizer.
84621         [TESTING] (main): New function.
84622
84623         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
84624         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
84625         letters.
84626
84627         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
84628         iswprint.
84629
84630         * lib/strverscmp.c (ISDIGIT): Define.
84631         (strverscmp): Use ISDIGIT, not isdigit.
84632
84633 2000-01-19  Jim Meyering  <meyering@lucent.com>
84634
84635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
84636         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
84637         defines `struct timespec' in <sys/time.h>
84638
84639         * m4/c-bs-a.m4: Remove uses of changequote altogether.
84640         Thanks to Akim for explaining.
84641
84642 2000-01-17  Paul Eggert  <eggert@twinsun.com>
84643
84644         * lib/nanosleep.c (nanosleep):
84645         Don't use SA_INTERRUPT to decide whether to call sigaction, as
84646         POSIX.1 doesn't require SA_INTERRUPT and some systems
84647         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
84648         it's been part of POSIX.1 since day 1 (in 1988).
84649
84650 2000-01-17  Jim Meyering  <meyering@lucent.com>
84651
84652         * lib/interlock: Remove unused file.  Reported by François Pinard.
84653
84654 2000-01-16  Paul Eggert  <eggert@twinsun.com>
84655
84656         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
84657         alert, backslash, formfeed, and vertical tab unnecessarily in
84658         shell quoting style.
84659
84660 2000-01-16  Jim Meyering  <meyering@lucent.com>
84661
84662         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
84663         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
84664         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
84665         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
84666
84667 2000-01-16  Jim Meyering  <meyering@lucent.com>
84668
84669         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
84670         because the latter didn't work.
84671
84672 2000-01-15  Jim Meyering  <meyering@lucent.com>
84673
84674         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
84675         (AC_REPLACE_FUNCS): Add memcpy and memset.
84676         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
84677         Add strpbrk.
84678         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
84679
84680 2000-01-12  Jim Meyering  <meyering@lucent.com>
84681
84682         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
84683         (jm_PREREQ): Use it.
84684         (jm_PREREQ_READUTMP): New macro.
84685         (jm_PREREQ): Use it.
84686
84687 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84688
84689         Quote multibyte characters correctly.
84690         * m4/c-bs-a.m4: New file.
84691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
84692         (jm_PREREQ): Use it.
84693
84694 2000-01-11  Paul Eggert  <eggert@twinsun.com>
84695
84696         * m4/uintmax_t.m4: Port to autoconf 2.13.
84697
84698 2000-01-08  Jim Meyering  <meyering@ascend.com>
84699
84700         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
84701         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
84702
84703 2000-01-04  Jim Meyering  <meyering@ascend.com>
84704
84705         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
84706         jm_STRUCT_DIRENT_D_TYPE.
84707         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
84708         jm_STRUCT_DIRENT_D_INO.
84709         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
84710         jm_STRUCT_UTIMBUF.
84711         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
84712         renamings.
84713         * m4/utime.m4: Likewise.
84714
84715         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
84716         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
84717
84718 2000-01-03  Paul Eggert  <eggert@twinsun.com>
84719
84720         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
84721         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
84722
84723 2000-01-02  Jim Meyering  <meyering@ascend.com>
84724
84725         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
84726         remember if this is necessary.
84727
84728 1999-12-26  Jim Meyering  <meyering@ascend.com>
84729
84730         * m4/jm-macros.m4: Use it here.
84731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
84732
84733 1999-12-23  Jim Meyering  <meyering@ascend.com>
84734
84735         * m4/jm-macros.m4: Check for clock_gettime (moved from
84736         fileutils/configure.in)
84737         Check for gettimeofday.
84738
84739 1999-12-20  Jim Meyering  <meyering@ascend.com>
84740
84741         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
84742         autoconf-2.14a-1999-12-20.
84743
84744 1999-12-19  Jim Meyering  <meyering@ascend.com>
84745
84746         * m4/lstat-slash.m4: New file.
84747         * m4/jm-macros.m4: Use the new macro:
84748         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84749
84750 1999-12-07  Jim Meyering  <meyering@ascend.com>
84751
84752         * m4/perl.m4: Require that File::Compare be available, too.
84753         Too many systems seem to lack it.
84754
84755         * m4/strftime.m4: Add checks for most of the cpp macros tested in
84756         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
84757
84758 1999-11-18  Paul Eggert  <eggert@twinsun.com>
84759
84760         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
84761         problem with the QNX 4.25 shell, which doesn't propagate exit
84762         status of failed commands inside shell assignments.
84763
84764 1999-11-17  Jim Meyering  <meyering@ascend.com>
84765
84766         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
84767
84768 1999-11-07  Jim Meyering  <meyering@ascend.com>
84769
84770         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
84771
84772 1999-11-06  Jim Meyering  <meyering@ascend.com>
84773
84774         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
84775         * m4/jm-macros.m4 (jm_MACROS): Use it here.
84776
84777 1999-11-05  Jim Meyering  <meyering@ascend.com>
84778
84779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
84780         configure.in of textutils, fileutils, and sh-utils into this one
84781         (shared between those packages) file.
84782         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
84783         AC_STRUCT_ST_BLKSIZE.
84784
84785 1999-11-03  Jim Meyering  <meyering@ascend.com>
84786
84787         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
84788         of AC_CHECK_TYPE checks includes unistd.h.
84789         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
84790         Suggestion from Akim Demaille.
84791
84792 1999-10-30  Jim Meyering  <meyering@ascend.com>
84793
84794         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
84795         m4-quoted string.
84796         * m4/ls-mntd-fs.m4: Likewise.
84797         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
84798         * m4/jm-winsz1.m4: Likewise.
84799
84800         * m4/const.m4: Remove file, since the fix made it into the experimental
84801         version of autoconf.
84802         * m4/mktime.m4: Likewise.
84803
84804         * m4/check-type.m4: Remove file, now that the latest version of
84805         AC_CHECK_TYPE takes a third arg to specify additional #includes.
84806
84807         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
84808         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
84809         AC_CHECK_TYPE.
84810
84811 1999-10-04  Jim Meyering  <meyering@ascend.com>
84812
84813         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
84814
84815 1999-09-22  Paul Eggert  <eggert@twinsun.com>
84816
84817         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
84818         2.95.1 bug with HP-UX 10.20.
84819
84820 1999-09-17  Jim Meyering  <meyering@ascend.com>
84821
84822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
84823         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
84824         due to missing strdup (against sh-utils-2.0).
84825
84826 1999-08-29  Jim Meyering  <meyering@ascend.com>
84827
84828         * m4/jm-macros.m4: Require jm_BISON.
84829         * m4/bison.m4: New file.
84830
84831 1999-08-17  Paul Eggert  <eggert@twinsun.com>
84832
84833         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
84834         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
84835
84836 1999-08-05  Jim Meyering  <meyering@ascend.com>
84837
84838         * m4/getline.m4: Rename test file from conftestdata to conftest.data
84839         to avoid conflicts with `conftest' on 8+3 filesystems.
84840         Suggestion from Eli Zaretskii.
84841
84842 1999-08-04  Jim Meyering  <meyering@ascend.com>
84843
84844         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
84845         fileutils and sh-utils (textutils's getline test was inadequate).
84846         (AM_FUNC_GETLINE): Run this test.
84847         (AC_CHECK_FUNCS): Check for getdelim.
84848         Reported by Bob Proulx.
84849
84850 1999-08-02  Jim Meyering  <meyering@ascend.com>
84851
84852         * m4/jm-macros.m4: Add a comment.
84853
84854 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84855
84856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
84857         <inttypes.h> defines strtoumax as a macro (and not as a
84858         function).
84859
84860 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84861
84862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
84863         that we can shift, multiply and divide unsigned long long
84864         values; Ultrix cc can't do it.
84865
84866 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84867
84868         * m4/mktime.m4: New file, which is a preview of what should appear
84869         in the next public autoconf release.
84870
84871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84872
84873         * m4/lfs.m4: Remove this file.
84874         * m4/largefile.m4: New file.  It contains the old contents of
84875         lfs.m4, except that all names with prefix AC_LFS have been
84876         changed to use the prefix AC_SYS_LARGEFILE instead, to be
84877         compatible with future autoconf versions.  Also, some minor m4
84878         quoting problems have been fixed.
84879
84880 1999-08-01  Paul Eggert  <eggert@twinsun.com>
84881
84882         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
84883         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
84884         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
84885         and simplify the shell code.
84886
84887 1999-08-01  Jim Meyering  <meyering@ascend.com>
84888
84889         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
84890         m4.
84891
84892 1999-07-20  Jim Meyering  <meyering@ascend.com>
84893
84894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
84895
84896 1999-07-15  Jim Meyering  <meyering@ascend.com>
84897
84898         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
84899
84900 1999-05-22  Jim Meyering  <meyering@ascend.com>
84901
84902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
84903
84904 1999-05-20  Jim Meyering  <meyering@ascend.com>
84905
84906         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
84907         Add a colon after each `then' in case $4 is empty.
84908
84909 1999-05-16  Jim Meyering  <meyering@ascend.com>
84910
84911         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
84912
84913 1999-05-10  Jim Meyering  <meyering@ascend.com>
84914
84915         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
84916
84917         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
84918         AC_FUNC_MKTIME.
84919
84920 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
84921
84922         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
84923
84924 1999-05-04  Paul Eggert  <eggert@twinsun.com>
84925
84926         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
84927         not CPPFLAGS, so that linking works correctly in IRIX.
84928
84929 1999-04-30  Paul Eggert  <eggert@twinsun.com>
84930
84931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
84932
84933 1999-04-20  Paul Eggert  <eggert@twinsun.com>
84934
84935         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
84936         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
84937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
84938         jm_AC_TYPE_UNSIGNED_LONG_LONG.
84939         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
84940
84941         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
84942
84943 1999-04-20  Jim Meyering  <meyering@ascend.com>
84944
84945         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
84946         AC_REPLACE xstroull if necessary.  From Paul Eggert.
84947         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
84948
84949 1999-04-18  Jim Meyering  <meyering@ascend.com>
84950
84951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
84952         * m4/jm-macros.m4: Use it.
84953
84954 1999-04-06  Jim Meyering  <meyering@ascend.com>
84955
84956         * m4/strftime.m4: Remove test for %f.
84957
84958 1999-03-29  Jim Meyering  <meyering@ascend.com>
84959
84960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
84961         superset of the AC_TYPE_* checks in the textutils, fileutils,
84962         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
84963         AC_TYPE_PID_T.
84964
84965 1999-03-28  Jim Meyering  <meyering@ascend.com>
84966
84967         * m4/jm-macros.m4: Define GNU_PACKAGE here.
84968         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
84969         replaced e.g., in the *.sh files of the sh-utils.
84970
84971 1999-03-20  Jim Meyering  <meyering@ascend.com>
84972
84973         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
84974         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
84975         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
84976
84977 1999-03-19  Jim Meyering  <meyering@ascend.com>
84978
84979         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
84980
84981 1999-03-12  Jim Meyering  <meyering@ascend.com>
84982
84983         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
84984
84985 1999-03-07  Jim Meyering  <meyering@ascend.com>
84986
84987         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
84988         declared.
84989
84990 1999-02-17  Jim Meyering  <meyering@ascend.com>
84991
84992         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
84993         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
84994
84995 1999-02-07  Jim Meyering  <meyering@ascend.com>
84996
84997         * m4/group-member.m4: New file -- extracted from sh-utils'
84998         configure.in.
84999
85000         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85001         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85002
85003 1999-02-06  Jim Meyering  <meyering@ascend.com>
85004
85005         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85006         * m4/fnmatch.m4: Likewise.
85007         * m4/getgroups.m4: Likewise.
85008         * m4/lstat.m4: Likewise.
85009         * m4/malloc.m4: Likewise.
85010         * m4/putenv.m4: Likewise.
85011         * m4/realloc.m4: Likewise.
85012         * m4/regex.m4: Likewise.
85013         * m4/stat.m4: Likewise.
85014         * m4/strftime.m4: Likewise.
85015         Suggestion from Alain Magloire.
85016
85017         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85018         * m4/fnmatch.m4: Likewise.
85019         * m4/getgroups.m4: Likewise.
85020         * m4/getline.m4: Likewise.
85021         * m4/lstat.m4: Likewise.
85022         * m4/malloc.m4: Likewise.
85023         * m4/memcmp.m4: Likewise.
85024         * m4/putenv.m4: Likewise.
85025         * m4/realloc.m4: Likewise.
85026         * m4/regex.m4: Likewise.
85027         * m4/stat.m4: Likewise.
85028         * m4/strftime.m4: Likewise.
85029         Suggestion from Alain Magloire.
85030
85031         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85032         an argument.
85033
85034         * m4/regex.m4: Add a run-time Test for proper operation of
85035         re_compile_pattern.
85036
85037 1999-01-31  Jim Meyering  <meyering@ascend.com>
85038
85039         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85040
85041 1999-01-30  Jim Meyering  <meyering@ascend.com>
85042
85043         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85044
85045         * m4/jm-mktime.m4: Make this a wrapper around the official
85046         AM_FUNC_MKTIME rather than my private copy, now that the official one
85047         is up to date.
85048         * m4/mktime.m4: Remove file.
85049
85050         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85051         * m4/uptime.m4: Likewise.
85052         * m4/uintmax_t.m4: Likewise.
85053
85054 1999-01-28  Jim Meyering  <meyering@ascend.com>
85055
85056         * m4/jm-macros.m4: Use jm_AFS.
85057         * m4/afs.m4: New file (from fileutils' configure.in).
85058
85059         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85060         * m4/chown.m4: Likewise.
85061         * m4/d-ino.m4: Likewise.
85062         * m4/d-type.m4: Likewise.
85063         * m4/fnmatch.m4: Likewise.
85064         * m4/getgroups.m4: Likewise.
85065         * m4/gettext.m4: Likewise.
85066         * m4/jm-mktime.m4: Likewise.
85067         * m4/jm-winsz2.m4: Likewise.
85068         * m4/lcmessage.m4: Likewise.
85069         * m4/ls-mntd-fs.m4: Likewise.
85070         * m4/malloc.m4: Likewise.
85071         * m4/memcmp.m4: Likewise.
85072         * m4/putenv.m4: Likewise.
85073         * m4/realloc.m4: Likewise.
85074         * m4/st_mtim.m4: Likewise.
85075         * m4/strftime.m4: Likewise.
85076
85077 1999-01-16  Jim Meyering  <meyering@ascend.com>
85078
85079         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85080         (ARGMATCH_DIE_DECL): Define.
85081
85082 1999-01-12  Jim Meyering  <meyering@ascend.com>
85083
85084         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85085         Reported by Lars Hecking.
85086
85087 1999-01-10  Jim Meyering  <meyering@ascend.com>
85088
85089         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85090         gross kludge.
85091         * m4/inttypes_h.m4: Likewise.
85092         * m4/lstat.m4: Likewise.
85093         * m4/malloc.m4: Likewise.
85094         * m4/readdir.m4: Likewise.
85095         * m4/realloc.m4: Likewise.
85096         * m4/st_dm_mode.m4: Likewise.
85097         * m4/stat.m4: Likewise.
85098         * m4/utimbuf.m4: Likewise.
85099         * m4/utimes.m4: Likewise.
85100
85101         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85102         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85103         comments in config.h.in are meaningful.
85104
85105         * m4/jm-macros.m4: Require autoconf-2.13 here.
85106
85107         * m4/regex.m4: By default, don't use the included regex.c on systems
85108         with glibc 2.  Suggestion from Uli Drepper.
85109
85110 1999-01-02  Jim Meyering  <meyering@ascend.com>
85111
85112         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85113
85114 1998-12-18  Jim Meyering  <meyering@ascend.com>
85115
85116         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85117         Based on a suggestion from Lars Hecking.
85118
85119 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85120
85121         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85122
85123 1998-11-16  Jim Meyering  <meyering@ascend.com>
85124
85125         * m4/lfs.m4: Double-quote the `uname...` expression.
85126
85127 1998-11-14  Jim Meyering  <meyering@ascend.com>
85128
85129         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85130         * m4/stat.m4: Likewise.
85131
85132 1998-11-03  Jim Meyering  <meyering@ascend.com>
85133
85134         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85135         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85136
85137 1998-10-18  Jim Meyering  <meyering@ascend.com>
85138
85139         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85140
85141 1998-10-17  Jim Meyering  <meyering@ascend.com>
85142
85143         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85144         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85145         calls for those previously hard-coded headers.  Instead, take a new
85146         parameter.
85147         (jm_CHECK_DECLARATIONS): Reflect interface change.
85148         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85149         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85150
85151         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85152
85153 1998-10-14  Jim Meyering  <meyering@ascend.com>
85154
85155         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85156         instead of "TZ=America/Vancouver".  From Paul Eggert.
85157
85158 1998-10-11  Jim Meyering  <meyering@ascend.com>
85159
85160         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85161         This adds a test for a recently added compatibility fix for mktime.c.
85162         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85163
85164 1998-09-27  Jim Meyering  <meyering@ascend.com>
85165
85166         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85167
85168         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85169         ../configure.in, including a change from Gordon Matzigkeit to allow
85170         cross-compiling for the Hurd.
85171
85172         * m4/glibc.m4: New file/macro to test for the GNU C Library
85173         versions 1 and 2.  From Gordon Matzigkeit.
85174         Indent.
85175
85176 1998-09-21  Jim Meyering  <meyering@ascend.com>
85177
85178         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85179
85180 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85181
85182         Port nanosecond-resolution times to UnixWare 2.1.2 and
85183         pedantic Solaris 2.6.
85184
85185         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85186         AC_STRUCT_ST_MTIM.
85187         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85188         Generate name of ns member, instead of just 1 or undef.
85189         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85190
85191 1998-08-15  Jim Meyering  <meyering@ascend.com>
85192
85193         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85194         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85195         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85196         instead of jm_TYPE_SSIZE_T.
85197
85198 1998-08-12  Jim Meyering  <meyering@ascend.com>
85199
85200         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85201
85202 1998-08-02  Jim Meyering  <meyering@ascend.com>
85203
85204         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85205         in acconfig.h manually.
85206
85207 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85208
85209         * m4/st_mtim.m4: New file.
85210
85211 1998-07-28  Jim Meyering  <meyering@ascend.com>
85212
85213         * m4/utimes.m4: Undef stat.
85214
85215 1998-07-25  Jim Meyering  <meyering@ascend.com>
85216
85217         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85218         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85219
85220 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85221
85222         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85223         uid and gid actually remain unchanged.
85224
85225 1998-07-07  Jim Meyering  <meyering@ascend.com>
85226
85227         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85228
85229 1998-07-04  Jim Meyering  <meyering@ascend.com>
85230
85231         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85232         to prove that this macro can be used in packages without regex.c.
85233
85234 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85235
85236         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85237         is to be used.
85238
85239 1998-07-03  Jim Meyering  <meyering@ascend.com>
85240
85241         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85242
85243         * m4/gettext.m4: New file -- from gettext-0.10.35.
85244         * m4/lcmessage.m4: Likewise.
85245         * m4/progtest.m4: Likewise.
85246
85247         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85248         * m4/jm-macros.m4: Require the new macro.
85249
85250 1998-06-29  Jim Meyering  <meyering@ascend.com>
85251
85252         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85253         for the definition of NGROUPS (used in a system header included
85254         by sys/mount.h).
85255
85256 1998-06-28  Jim Meyering  <meyering@ascend.com>
85257
85258         * m4/ls-mntd-fs.m4: New file.
85259         * m4/fstypename.m4: New file.
85260
85261         * m4/jm-macros.m4: Require the new macro.
85262         * m4/jm-glibc-io.m4: New file.
85263
85264 1998-05-19  Jim Meyering  <meyering@ascend.com>
85265
85266         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85267         * m4/lchown.m4: New file.
85268
85269         * m4/Makefile.am.in: New file.
85270         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85271
85272 1998-05-14  Jim Meyering  <meyering@ascend.com>
85273
85274         * m4/Makefile.am (EXTRA_DIST): Add them.
85275         * m4/jm-macros.m4: New file.
85276         * m4/utimbuf.m4: New file.
85277
85278 1998-05-12  Jim Meyering  <meyering@ascend.com>
85279
85280         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85281
85282 1998-05-11  Jim Meyering  <meyering@ascend.com>
85283
85284         * m4/isc-posix.m4: New file.
85285
85286 1998-05-10  Jim Meyering  <meyering@ascend.com>
85287
85288         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85289
85290 1998-05-09  Jim Meyering  <meyering@ascend.com>
85291
85292         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85293         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85294         with automake.
85295
85296         * m4/ssize_t.m4: New file.
85297         * m4/mktime.m4: Remove file -- the new automake has this now.
85298
85299 1998-04-26  Jim Meyering  <meyering@ascend.com>
85300
85301         * m4/assert.m4: New file.
85302         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85303
85304 1998-04-05  Jim Meyering  <meyering@ascend.com>
85305
85306         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85307         (jm_PREREQ): Use it here.
85308
85309 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85310
85311         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85312         in acconfig.h.
85313
85314 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85315
85316         * m4/prereq.m4: New file.
85317         * m4/error.m4: New file.
85318         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85319
85320 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85321
85322         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85323         cache-check for the same variable -- that defeated the purpose of
85324         the test; the test program was never run.  This was a problem only
85325         on systems with losing getline functions -- HP-UX 10.20 is one.
85326         Reported by Bjorn Helgaas.
85327
85328 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85329
85330         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85331
85332 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85333
85334         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85335
85336         * m4/const.m4: New file.  Use an initializer in this declaration
85337         typedef int charset[2]; const charset x;
85338         Reported by Bob Glickstein.
85339
85340 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85341
85342         * m4/chown.m4: Fix reversed types on -1 args to chown.
85343         From Kaveh Ghazi.
85344
85345 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85346
85347         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85348         Add lseek and memchr.
85349
85350         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85351         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85352         have a 20-character limit on names.
85353
85354 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85355
85356         * m4/inttypes_h.m4: New file.
85357         * m4/uintmax_t.m4: New file.
85358         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85359
85360
85361         -----
85362
85363         Local Variables:
85364         coding: utf-8
85365         End:
85366
85367         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85368
85369         Copying and distribution of this file, with or without
85370         modification, are permitted provided the copyright notice
85371         and this notice are preserved.